From 62c07baaf4863ac5da14451facba0d79ca763988 Mon Sep 17 00:00:00 2001 From: Savage Fivetran Date: Thu, 25 Jun 2026 14:15:14 -0700 Subject: [PATCH 1/2] bugfix/cast_non_numeric_as_null --- CHANGELOG.md | 11 ++++++++--- dbt_project.yml | 2 +- integration_tests/dbt_project.yml | 2 +- .../staging/stg_workday__worker_history.sql | 7 ++++++- 4 files changed, 16 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 44fa22a..5102c48 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,10 @@ -<<<<<<< MagicBot/standardize-unioning-macros +# dbt_workday v1.0.1 + +[PR #35](https://github.com/fivetran/dbt_workday/pull/35) includes the following update. + +## Bug Fix +- Fixes a runtime error in `stg_workday__worker_history` where `annual_currency_summary_primary_compensation_basis`, `annual_currency_summary_total_base_pay`, and `annual_currency_summary_total_salary_and_allowances` failed to cast when the value was non-numeric. These columns now resolve to `null` instead of erroring the run. + # dbt_workday v1.0.0 [PR #32](https://github.com/fivetran/dbt_workday/pull/32) includes the following updates. @@ -16,14 +22,13 @@ ## Under the Hood - Adds the `fivetran_using_source_casing` variable for case-sensitive destination support. When enabled, downstream transformations respect source casing to ensure consistent results. See the [Additional Configurations](https://github.com/fivetran/dbt_workday/#source-casing-for-case-sensitive-destinations) section of the README for details. - Introduces `fivetran_utils.partition_by_source_relation` to conditionally include `source_relation` in partition clauses only when multiple sources are configured. -======= + # dbt_workday v0.9.2 [PR #33](https://github.com/fivetran/dbt_workday/pull/33) includes the following update. ## Bug Fix - Fixes an issue in `stg_workday__worker_history` where `annual_currency_summary_primary_compensation_basis`, `annual_currency_summary_total_base_pay`, and `annual_currency_summary_total_salary_and_allowances` could surface as strings instead of numeric values. These columns are now cast to float when the source type is a string. ->>>>>>> main # dbt_workday v0.9.1 diff --git a/dbt_project.yml b/dbt_project.yml index 4e93fd2..13b4323 100644 --- a/dbt_project.yml +++ b/dbt_project.yml @@ -1,6 +1,6 @@ config-version: 2 name: 'workday' -version: '1.0.0' +version: '1.0.1' require-dbt-version: [">=1.3.0", "<3.0.0"] models: diff --git a/integration_tests/dbt_project.yml b/integration_tests/dbt_project.yml index e2347e8..a748a54 100644 --- a/integration_tests/dbt_project.yml +++ b/integration_tests/dbt_project.yml @@ -1,5 +1,5 @@ name: 'workday_integration_tests' -version: '1.0.0' +version: '1.0.1' config-version: 2 profile: 'integration_tests' diff --git a/models/workday_history/staging/stg_workday__worker_history.sql b/models/workday_history/staging/stg_workday__worker_history.sql index db8fb0b..530724c 100644 --- a/models/workday_history/staging/stg_workday__worker_history.sql +++ b/models/workday_history/staging/stg_workday__worker_history.sql @@ -52,7 +52,12 @@ final as ( {% set is_str = col.is_string() %} {% endif %} {% if is_str %} - cast({{ col.name }} as {{ dbt.type_float() }}) as {{ col.name }}, + case + when trim({{ col.name }}) <> '' + and translate(trim({{ col.name }}), '0123456789.+-eE', '') = '' + then cast({{ col.name }} as {{ dbt.type_float() }}) + else null + end as {{ col.name }}, {% else %} {{ col.name }}, {% endif %} From 22f06a205bffc16bd1d7959e8bdfeb7d77f784eb Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 25 Jun 2026 21:23:01 +0000 Subject: [PATCH 2/2] Generate dbt docs via GitHub Actions --- docs/catalog.json | 2 +- docs/manifest.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/catalog.json b/docs/catalog.json index f041f1a..acfff31 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.11.11", "generated_at": "2026-06-12T17:13:35.518164Z", "invocation_id": "e0651fd8-5586-4993-a3d4-8e578b9b912b", "invocation_started_at": "2026-06-12T17:13:30.274741Z", "env": {}}, "nodes": {"seed.workday_integration_tests.workday_country_personal_information_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "workday_country_personal_information_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"fivetran_id": {"type": "text", "index": 1, "name": "fivetran_id", "comment": null}, "personal_info_common_id": {"type": "text", "index": 2, "name": "personal_info_common_id", "comment": null}, "country_code": {"type": "text", "index": 3, "name": "country_code", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 5, "name": "_fivetran_deleted", "comment": null}, "gender": {"type": "text", "index": 6, "name": "gender", "comment": null}, "hispanic_or_latino": {"type": "integer", "index": 7, "name": "hispanic_or_latino", "comment": null}, "hukou_locality": {"type": "integer", "index": 8, "name": "hukou_locality", "comment": null}, "hukou_postal_code": {"type": "integer", "index": 9, "name": "hukou_postal_code", "comment": null}, "hukou_region_code": {"type": "integer", "index": 10, "name": "hukou_region_code", "comment": null}, "hukou_subregion_code": {"type": "integer", "index": 11, "name": "hukou_subregion_code", "comment": null}, "hukou_type_code": {"type": "integer", "index": 12, "name": "hukou_type_code", "comment": null}, "local_hukou": {"type": "integer", "index": 13, "name": "local_hukou", "comment": null}, "marital_status": {"type": "text", "index": 14, "name": "marital_status", "comment": null}, "marital_status_date": {"type": "integer", "index": 15, "name": "marital_status_date", "comment": null}, "native_region_code": {"type": "integer", "index": 16, "name": "native_region_code", "comment": null}, "native_region": {"type": "text", "index": 17, "name": "native_region", "comment": null}, "personnel_file_agency_for_person": {"type": "integer", "index": 18, "name": "personnel_file_agency_for_person", "comment": null}, "political_affiliation": {"type": "text", "index": 19, "name": "political_affiliation", "comment": null}, "religion": {"type": "integer", "index": 20, "name": "religion", "comment": null}, "social_benefits_locality": {"type": "integer", "index": 21, "name": "social_benefits_locality", "comment": null}}, "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_country_personal_information_data"}, "seed.workday_integration_tests.workday_job_family_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "workday_job_family_data", "database": "postgres", "comment": null, "owner": "postgres"}, "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": "public", "name": "workday_job_family_group_data", "database": "postgres", "comment": null, "owner": "postgres"}, "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": "public", "name": "workday_job_family_job_family_group_data", "database": "postgres", "comment": null, "owner": "postgres"}, "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": "public", "name": "workday_job_family_job_profile_data", "database": "postgres", "comment": null, "owner": "postgres"}, "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": "public", "name": "workday_job_profile_data", "database": "postgres", "comment": null, "owner": "postgres"}, "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": "public", "name": "workday_military_service_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "personal_info_common_id": {"type": "text", "index": 3, "name": "personal_info_common_id", "comment": null}, "discharge_date": {"type": "date", "index": 4, "name": "discharge_date", "comment": null}, "discharge_type": {"type": "integer", "index": 5, "name": "discharge_type", "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}, "status_id": {"type": "text", "index": 9, "name": "status_id", "comment": null}, "status_begin_date": {"type": "integer", "index": 10, "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": "public", "name": "workday_organization_data", "database": "postgres", "comment": null, "owner": "postgres"}, "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": "public", "name": "workday_organization_job_family_data", "database": "postgres", "comment": null, "owner": "postgres"}, "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": "public", "name": "workday_organization_role_data", "database": "postgres", "comment": null, "owner": "postgres"}, "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": "public", "name": "workday_organization_role_worker_data", "database": "postgres", "comment": null, "owner": "postgres"}, "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": "public", "name": "workday_person_contact_email_address_data", "database": "postgres", "comment": null, "owner": "postgres"}, "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": "public", "name": "workday_person_name_data", "database": "postgres", "comment": null, "owner": "postgres"}, "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_common_data_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "workday_personal_information_common_data_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"fivetran_id": {"type": "text", "index": 1, "name": "fivetran_id", "comment": null}, "worker_id": {"type": "text", "index": 2, "name": "worker_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "additional_nationality": {"type": "integer", "index": 5, "name": "additional_nationality", "comment": null}, "blood_type": {"type": "integer", "index": 6, "name": "blood_type", "comment": null}, "citizenship_status": {"type": "text", "index": 7, "name": "citizenship_status", "comment": null}, "city_of_birth": {"type": "text", "index": 8, "name": "city_of_birth", "comment": null}, "city_of_birth_code": {"type": "integer", "index": 9, "name": "city_of_birth_code", "comment": null}, "country_of_birth": {"type": "text", "index": 10, "name": "country_of_birth", "comment": null}, "country_region_of_birth": {"type": "integer", "index": 11, "name": "country_region_of_birth", "comment": null}, "date_of_birth": {"type": "date", "index": 12, "name": "date_of_birth", "comment": null}, "date_of_death": {"type": "integer", "index": 13, "name": "date_of_death", "comment": null}, "last_medical_exam_date": {"type": "integer", "index": 14, "name": "last_medical_exam_date", "comment": null}, "last_medical_exam_valid_to": {"type": "integer", "index": 15, "name": "last_medical_exam_valid_to", "comment": null}, "medical_exam_notes": {"type": "integer", "index": 16, "name": "medical_exam_notes", "comment": null}, "primary_nationality": {"type": "text", "index": 17, "name": "primary_nationality", "comment": null}, "region_of_birth": {"type": "integer", "index": 18, "name": "region_of_birth", "comment": null}}, "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_common_data_data"}, "seed.workday_integration_tests.workday_personal_information_ethnicity_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "workday_personal_information_ethnicity_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "id": {"type": "text", "index": 3, "name": "id", "comment": null}, "country_personal_information_id": {"type": "text", "index": 4, "name": "country_personal_information_id", "comment": null}, "ethnicity_code": {"type": "text", "index": 5, "name": "ethnicity_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_personal_information_ethnicity_data"}, "seed.workday_integration_tests.workday_personal_information_history_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "workday_personal_information_history_data", "database": "postgres", "comment": null, "owner": "postgres"}, "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": "date", "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": "public", "name": "workday_position_data", "database": "postgres", "comment": null, "owner": "postgres"}, "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": "double precision", "index": 26, "name": "primary_compensation_basis_amount_change", "comment": null}, "primary_compensation_basis_percent_change": {"type": "double precision", "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": "public", "name": "workday_position_job_profile_data", "database": "postgres", "comment": null, "owner": "postgres"}, "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": "public", "name": "workday_position_organization_data", "database": "postgres", "comment": null, "owner": "postgres"}, "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}, "_fivetran_active": {"type": "boolean", "index": 6, "name": "_fivetran_active", "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}}, "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": "public", "name": "workday_worker_history_data", "database": "postgres", "comment": null, "owner": "postgres"}, "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_deleted": {"type": "boolean", "index": 5, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "academic_tenure_date": {"type": "integer", "index": 7, "name": "academic_tenure_date", "comment": null}, "active": {"type": "boolean", "index": 8, "name": "active", "comment": null}, "active_status_date": {"type": "date", "index": 9, "name": "active_status_date", "comment": null}, "annual_currency_summary_currency": {"type": "text", "index": 10, "name": "annual_currency_summary_currency", "comment": null}, "annual_currency_summary_frequency": {"type": "text", "index": 11, "name": "annual_currency_summary_frequency", "comment": null}, "annual_currency_summary_primary_compensation_basis": {"type": "double precision", "index": 12, "name": "annual_currency_summary_primary_compensation_basis", "comment": null}, "annual_currency_summary_total_base_pay": {"type": "double precision", "index": 13, "name": "annual_currency_summary_total_base_pay", "comment": null}, "annual_currency_summary_total_salary_and_allowances": {"type": "double precision", "index": 14, "name": "annual_currency_summary_total_salary_and_allowances", "comment": null}, "annual_summary_currency": {"type": "text", "index": 15, "name": "annual_summary_currency", "comment": null}, "annual_summary_frequency": {"type": "text", "index": 16, "name": "annual_summary_frequency", "comment": null}, "annual_summary_primary_compensation_basis": {"type": "double precision", "index": 17, "name": "annual_summary_primary_compensation_basis", "comment": null}, "annual_summary_total_base_pay": {"type": "double precision", "index": 18, "name": "annual_summary_total_base_pay", "comment": null}, "annual_summary_total_salary_and_allowances": {"type": "double precision", "index": 19, "name": "annual_summary_total_salary_and_allowances", "comment": null}, "benefits_service_date": {"type": "integer", "index": 20, "name": "benefits_service_date", "comment": null}, "company_service_date": {"type": "integer", "index": 21, "name": "company_service_date", "comment": null}, "compensation_effective_date": {"type": "date", "index": 22, "name": "compensation_effective_date", "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}, "continuous_service_date": {"type": "date", "index": 25, "name": "continuous_service_date", "comment": null}, "contract_assignment_details": {"type": "integer", "index": 26, "name": "contract_assignment_details", "comment": null}, "contract_currency_code": {"type": "integer", "index": 27, "name": "contract_currency_code", "comment": null}, "contract_end_date": {"type": "integer", "index": 28, "name": "contract_end_date", "comment": null}, "contract_frequency_name": {"type": "integer", "index": 29, "name": "contract_frequency_name", "comment": null}, "contract_pay_rate": {"type": "double precision", "index": 30, "name": "contract_pay_rate", "comment": null}, "contract_vendor_name": {"type": "integer", "index": 31, "name": "contract_vendor_name", "comment": null}, "date_entered_workforce": {"type": "integer", "index": 32, "name": "date_entered_workforce", "comment": null}, "days_unemployed": {"type": "double precision", "index": 33, "name": "days_unemployed", "comment": null}, "eligible_for_hire": {"type": "text", "index": 34, "name": "eligible_for_hire", "comment": null}, "eligible_for_rehire_on_latest_termination": {"type": "text", "index": 35, "name": "eligible_for_rehire_on_latest_termination", "comment": null}, "employee_compensation_currency": {"type": "text", "index": 36, "name": "employee_compensation_currency", "comment": null}, "employee_compensation_frequency": {"type": "text", "index": 37, "name": "employee_compensation_frequency", "comment": null}, "employee_compensation_primary_compensation_basis": {"type": "double precision", "index": 38, "name": "employee_compensation_primary_compensation_basis", "comment": null}, "employee_compensation_total_base_pay": {"type": "double precision", "index": 39, "name": "employee_compensation_total_base_pay", "comment": null}, "employee_compensation_total_salary_and_allowances": {"type": "double precision", "index": 40, "name": "employee_compensation_total_salary_and_allowances", "comment": null}, "end_employment_date": {"type": "date", "index": 41, "name": "end_employment_date", "comment": null}, "expected_date_of_return": {"type": "integer", "index": 42, "name": "expected_date_of_return", "comment": null}, "expected_retirement_date": {"type": "integer", "index": 43, "name": "expected_retirement_date", "comment": null}, "first_day_of_work": {"type": "date", "index": 44, "name": "first_day_of_work", "comment": null}, "has_international_assignment": {"type": "boolean", "index": 45, "name": "has_international_assignment", "comment": null}, "hire_date": {"type": "date", "index": 46, "name": "hire_date", "comment": null}, "hire_reason": {"type": "text", "index": 47, "name": "hire_reason", "comment": null}, "hire_rescinded": {"type": "boolean", "index": 48, "name": "hire_rescinded", "comment": null}, "home_country": {"type": "integer", "index": 49, "name": "home_country", "comment": null}, "hourly_frequency_currency": {"type": "text", "index": 50, "name": "hourly_frequency_currency", "comment": null}, "hourly_frequency_frequency": {"type": "text", "index": 51, "name": "hourly_frequency_frequency", "comment": null}, "hourly_frequency_primary_compensation_basis": {"type": "double precision", "index": 52, "name": "hourly_frequency_primary_compensation_basis", "comment": null}, "hourly_frequency_total_base_pay": {"type": "double precision", "index": 53, "name": "hourly_frequency_total_base_pay", "comment": null}, "hourly_frequency_total_salary_and_allowances": {"type": "double precision", "index": 54, "name": "hourly_frequency_total_salary_and_allowances", "comment": null}, "last_datefor_which_paid": {"type": "integer", "index": 55, "name": "last_datefor_which_paid", "comment": null}, "local_termination_reason": {"type": "integer", "index": 56, "name": "local_termination_reason", "comment": null}, "months_continuous_prior_employment": {"type": "double precision", "index": 57, "name": "months_continuous_prior_employment", "comment": null}, "not_returning": {"type": "boolean", "index": 58, "name": "not_returning", "comment": null}, "original_hire_date": {"type": "date", "index": 59, "name": "original_hire_date", "comment": null}, "pay_group_frequency_currency": {"type": "text", "index": 60, "name": "pay_group_frequency_currency", "comment": null}, "pay_group_frequency_frequency": {"type": "integer", "index": 61, "name": "pay_group_frequency_frequency", "comment": null}, "pay_group_frequency_primary_compensation_basis": {"type": "double precision", "index": 62, "name": "pay_group_frequency_primary_compensation_basis", "comment": null}, "pay_group_frequency_total_base_pay": {"type": "double precision", "index": 63, "name": "pay_group_frequency_total_base_pay", "comment": null}, "pay_group_frequency_total_salary_and_allowances": {"type": "double precision", "index": 64, "name": "pay_group_frequency_total_salary_and_allowances", "comment": null}, "pay_through_date": {"type": "date", "index": 65, "name": "pay_through_date", "comment": null}, "primary_termination_category": {"type": "text", "index": 66, "name": "primary_termination_category", "comment": null}, "primary_termination_reason": {"type": "text", "index": 67, "name": "primary_termination_reason", "comment": null}, "probation_end_date": {"type": "integer", "index": 68, "name": "probation_end_date", "comment": null}, "probation_start_date": {"type": "integer", "index": 69, "name": "probation_start_date", "comment": null}, "reason_reference_id": {"type": "text", "index": 70, "name": "reason_reference_id", "comment": null}, "regrettable_termination": {"type": "boolean", "index": 71, "name": "regrettable_termination", "comment": null}, "rehire": {"type": "boolean", "index": 72, "name": "rehire", "comment": null}, "resignation_date": {"type": "integer", "index": 73, "name": "resignation_date", "comment": null}, "retired": {"type": "boolean", "index": 74, "name": "retired", "comment": null}, "retirement_date": {"type": "integer", "index": 75, "name": "retirement_date", "comment": null}, "retirement_eligibility_date": {"type": "integer", "index": 76, "name": "retirement_eligibility_date", "comment": null}, "return_unknown": {"type": "boolean", "index": 77, "name": "return_unknown", "comment": null}, "seniority_date": {"type": "date", "index": 78, "name": "seniority_date", "comment": null}, "severance_date": {"type": "integer", "index": 79, "name": "severance_date", "comment": null}, "terminated": {"type": "boolean", "index": 80, "name": "terminated", "comment": null}, "termination_date": {"type": "date", "index": 81, "name": "termination_date", "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": "seed.workday_integration_tests.workday_worker_history_data"}, "seed.workday_integration_tests.workday_worker_leave_status_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "workday_worker_leave_status_data", "database": "postgres", "comment": null, "owner": "postgres"}, "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": "double precision", "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": "double precision", "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": "double precision", "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": "double precision", "index": 32, "name": "number_of_babies_adopted_children", "comment": null}, "number_of_child_dependents": {"type": "double precision", "index": 33, "name": "number_of_child_dependents", "comment": null}, "number_of_previous_births": {"type": "double precision", "index": 34, "name": "number_of_previous_births", "comment": null}, "number_of_previous_maternity_leaves": {"type": "double precision", "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": "public", "name": "workday_worker_position_history_data", "database": "postgres", "comment": null, "owner": "postgres"}, "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_deleted": {"type": "boolean", "index": 6, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "academic_pay_setup_data_annual_work_period_end_date": {"type": "integer", "index": 8, "name": "academic_pay_setup_data_annual_work_period_end_date", "comment": null}, "academic_pay_setup_data_annual_work_period_start_date": {"type": "integer", "index": 9, "name": "academic_pay_setup_data_annual_work_period_start_date", "comment": null}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"type": "double precision", "index": 10, "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": 11, "name": "academic_pay_setup_data_disbursement_plan_period_end_date", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"type": "integer", "index": 12, "name": "academic_pay_setup_data_disbursement_plan_period_start_date", "comment": null}, "business_site_summary_display_language": {"type": "text", "index": 13, "name": "business_site_summary_display_language", "comment": null}, "business_site_summary_local": {"type": "text", "index": 14, "name": "business_site_summary_local", "comment": null}, "business_site_summary_location": {"type": "text", "index": 15, "name": "business_site_summary_location", "comment": null}, "business_site_summary_location_type": {"type": "text", "index": 16, "name": "business_site_summary_location_type", "comment": null}, "business_site_summary_name": {"type": "text", "index": 17, "name": "business_site_summary_name", "comment": null}, "business_site_summary_scheduled_weekly_hours": {"type": "double precision", "index": 18, "name": "business_site_summary_scheduled_weekly_hours", "comment": null}, "business_site_summary_time_profile": {"type": "text", "index": 19, "name": "business_site_summary_time_profile", "comment": null}, "business_title": {"type": "text", "index": 20, "name": "business_title", "comment": null}, "critical_job": {"type": "boolean", "index": 21, "name": "critical_job", "comment": null}, "default_weekly_hours": {"type": "double precision", "index": 22, "name": "default_weekly_hours", "comment": null}, "difficulty_to_fill": {"type": "text", "index": 23, "name": "difficulty_to_fill", "comment": null}, "effective_date": {"type": "date", "index": 24, "name": "effective_date", "comment": null}, "employee_type": {"type": "text", "index": 25, "name": "employee_type", "comment": null}, "end_date": {"type": "date", "index": 26, "name": "end_date", "comment": null}, "end_employment_date": {"type": "date", "index": 27, "name": "end_employment_date", "comment": null}, "exclude_from_head_count": {"type": "boolean", "index": 28, "name": "exclude_from_head_count", "comment": null}, "expected_assignment_end_date": {"type": "integer", "index": 29, "name": "expected_assignment_end_date", "comment": null}, "external_employee": {"type": "integer", "index": 30, "name": "external_employee", "comment": null}, "federal_withholding_fein": {"type": "integer", "index": 31, "name": "federal_withholding_fein", "comment": null}, "frequency": {"type": "text", "index": 32, "name": "frequency", "comment": null}, "full_time_equivalent_percentage": {"type": "integer", "index": 33, "name": "full_time_equivalent_percentage", "comment": null}, "headcount_restriction_code": {"type": "integer", "index": 34, "name": "headcount_restriction_code", "comment": null}, "home_country": {"type": "integer", "index": 35, "name": "home_country", "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": "seed.workday_integration_tests.workday_worker_position_history_data"}, "seed.workday_integration_tests.workday_worker_position_organization_history_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "workday_worker_position_organization_history_data", "database": "postgres", "comment": null, "owner": "postgres"}, "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.int_workday__employee_history": {"metadata": {"type": "VIEW", "schema": "public_workday_dev", "name": "int_workday__employee_history", "database": "postgres", "comment": null, "owner": "postgres"}, "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": "double precision", "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": "double precision", "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": "double precision", "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": "double precision", "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": "date", "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.stg_workday__country_personal_information_base": {"metadata": {"type": "VIEW", "schema": "public_workday_dev", "name": "stg_workday__country_personal_information_base", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"fivetran_id": {"type": "text", "index": 1, "name": "fivetran_id", "comment": null}, "personal_info_common_id": {"type": "text", "index": 2, "name": "personal_info_common_id", "comment": null}, "country_code": {"type": "text", "index": 3, "name": "country_code", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 5, "name": "_fivetran_deleted", "comment": null}, "gender": {"type": "text", "index": 6, "name": "gender", "comment": null}, "hispanic_or_latino": {"type": "integer", "index": 7, "name": "hispanic_or_latino", "comment": null}, "hukou_locality": {"type": "integer", "index": 8, "name": "hukou_locality", "comment": null}, "hukou_postal_code": {"type": "integer", "index": 9, "name": "hukou_postal_code", "comment": null}, "hukou_region_code": {"type": "integer", "index": 10, "name": "hukou_region_code", "comment": null}, "hukou_subregion_code": {"type": "integer", "index": 11, "name": "hukou_subregion_code", "comment": null}, "hukou_type_code": {"type": "integer", "index": 12, "name": "hukou_type_code", "comment": null}, "local_hukou": {"type": "integer", "index": 13, "name": "local_hukou", "comment": null}, "marital_status": {"type": "text", "index": 14, "name": "marital_status", "comment": null}, "marital_status_date": {"type": "integer", "index": 15, "name": "marital_status_date", "comment": null}, "native_region_code": {"type": "integer", "index": 16, "name": "native_region_code", "comment": null}, "native_region": {"type": "text", "index": 17, "name": "native_region", "comment": null}, "personnel_file_agency_for_person": {"type": "integer", "index": 18, "name": "personnel_file_agency_for_person", "comment": null}, "political_affiliation": {"type": "text", "index": 19, "name": "political_affiliation", "comment": null}, "religion": {"type": "integer", "index": 20, "name": "religion", "comment": null}, "social_benefits_locality": {"type": "integer", "index": 21, "name": "social_benefits_locality", "comment": null}, "_dbt_source_relation": {"type": "text", "index": 22, "name": "_dbt_source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__country_personal_information_base"}, "model.workday.stg_workday__job_family_base": {"metadata": {"type": "VIEW", "schema": "public_workday_dev", "name": "stg_workday__job_family_base", "database": "postgres", "comment": null, "owner": "postgres"}, "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}, "_dbt_source_relation": {"type": "text", "index": 8, "name": "_dbt_source_relation", "comment": null}}, "stats": {"has_stats": {"id": "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": "public_workday_dev", "name": "stg_workday__job_family_group_base", "database": "postgres", "comment": null, "owner": "postgres"}, "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}, "_dbt_source_relation": {"type": "text", "index": 8, "name": "_dbt_source_relation", "comment": null}}, "stats": {"has_stats": {"id": "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": "public_workday_dev", "name": "stg_workday__job_family_job_family_group_base", "database": "postgres", "comment": null, "owner": "postgres"}, "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}, "_dbt_source_relation": {"type": "text", "index": 5, "name": "_dbt_source_relation", "comment": null}}, "stats": {"has_stats": {"id": "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": "public_workday_dev", "name": "stg_workday__job_family_job_profile_base", "database": "postgres", "comment": null, "owner": "postgres"}, "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}, "_dbt_source_relation": {"type": "text", "index": 5, "name": "_dbt_source_relation", "comment": null}}, "stats": {"has_stats": {"id": "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": "public_workday_dev", "name": "stg_workday__job_profile_base", "database": "postgres", "comment": null, "owner": "postgres"}, "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}, "_dbt_source_relation": {"type": "text", "index": 26, "name": "_dbt_source_relation", "comment": null}}, "stats": {"has_stats": {"id": "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": "public_workday_dev", "name": "stg_workday__military_service_base", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "personal_info_common_id": {"type": "text", "index": 3, "name": "personal_info_common_id", "comment": null}, "discharge_date": {"type": "date", "index": 4, "name": "discharge_date", "comment": null}, "discharge_type": {"type": "integer", "index": 5, "name": "discharge_type", "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}, "status_id": {"type": "text", "index": 9, "name": "status_id", "comment": null}, "status_begin_date": {"type": "integer", "index": 10, "name": "status_begin_date", "comment": null}, "_dbt_source_relation": {"type": "text", "index": 11, "name": "_dbt_source_relation", "comment": null}}, "stats": {"has_stats": {"id": "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": "public_workday_dev", "name": "stg_workday__organization_base", "database": "postgres", "comment": null, "owner": "postgres"}, "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}, "_dbt_source_relation": {"type": "text", "index": 30, "name": "_dbt_source_relation", "comment": null}}, "stats": {"has_stats": {"id": "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": "public_workday_dev", "name": "stg_workday__organization_job_family_base", "database": "postgres", "comment": null, "owner": "postgres"}, "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}, "_dbt_source_relation": {"type": "text", "index": 6, "name": "_dbt_source_relation", "comment": null}}, "stats": {"has_stats": {"id": "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": "public_workday_dev", "name": "stg_workday__organization_role_base", "database": "postgres", "comment": null, "owner": "postgres"}, "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}, "_dbt_source_relation": {"type": "text", "index": 6, "name": "_dbt_source_relation", "comment": null}}, "stats": {"has_stats": {"id": "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": "public_workday_dev", "name": "stg_workday__organization_role_worker_base", "database": "postgres", "comment": null, "owner": "postgres"}, "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}, "_dbt_source_relation": {"type": "text", "index": 6, "name": "_dbt_source_relation", "comment": null}}, "stats": {"has_stats": {"id": "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": "public_workday_dev", "name": "stg_workday__person_contact_email_address_base", "database": "postgres", "comment": null, "owner": "postgres"}, "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}, "_dbt_source_relation": {"type": "text", "index": 8, "name": "_dbt_source_relation", "comment": null}}, "stats": {"has_stats": {"id": "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": "public_workday_dev", "name": "stg_workday__person_name_base", "database": "postgres", "comment": null, "owner": "postgres"}, "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}, "_dbt_source_relation": {"type": "text", "index": 33, "name": "_dbt_source_relation", "comment": null}}, "stats": {"has_stats": {"id": "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": "public_workday_dev", "name": "stg_workday__personal_information_base", "database": "postgres", "comment": null, "owner": "postgres"}, "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": "date", "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}, "_dbt_source_relation": {"type": "text", "index": 39, "name": "_dbt_source_relation", "comment": null}}, "stats": {"has_stats": {"id": "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_common_data_base": {"metadata": {"type": "VIEW", "schema": "public_workday_dev", "name": "stg_workday__personal_information_common_data_base", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"fivetran_id": {"type": "text", "index": 1, "name": "fivetran_id", "comment": null}, "worker_id": {"type": "text", "index": 2, "name": "worker_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "additional_nationality": {"type": "integer", "index": 5, "name": "additional_nationality", "comment": null}, "blood_type": {"type": "integer", "index": 6, "name": "blood_type", "comment": null}, "citizenship_status": {"type": "text", "index": 7, "name": "citizenship_status", "comment": null}, "city_of_birth": {"type": "text", "index": 8, "name": "city_of_birth", "comment": null}, "city_of_birth_code": {"type": "integer", "index": 9, "name": "city_of_birth_code", "comment": null}, "country_of_birth": {"type": "text", "index": 10, "name": "country_of_birth", "comment": null}, "country_region_of_birth": {"type": "integer", "index": 11, "name": "country_region_of_birth", "comment": null}, "date_of_birth": {"type": "date", "index": 12, "name": "date_of_birth", "comment": null}, "date_of_death": {"type": "integer", "index": 13, "name": "date_of_death", "comment": null}, "last_medical_exam_date": {"type": "integer", "index": 14, "name": "last_medical_exam_date", "comment": null}, "last_medical_exam_valid_to": {"type": "integer", "index": 15, "name": "last_medical_exam_valid_to", "comment": null}, "medical_exam_notes": {"type": "integer", "index": 16, "name": "medical_exam_notes", "comment": null}, "primary_nationality": {"type": "text", "index": 17, "name": "primary_nationality", "comment": null}, "region_of_birth": {"type": "integer", "index": 18, "name": "region_of_birth", "comment": null}, "_dbt_source_relation": {"type": "text", "index": 19, "name": "_dbt_source_relation", "comment": null}}, "stats": {"has_stats": {"id": "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_common_data_base"}, "model.workday.stg_workday__personal_information_ethnicity_base": {"metadata": {"type": "VIEW", "schema": "public_workday_dev", "name": "stg_workday__personal_information_ethnicity_base", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "id": {"type": "text", "index": 3, "name": "id", "comment": null}, "country_personal_information_id": {"type": "text", "index": 4, "name": "country_personal_information_id", "comment": null}, "ethnicity_code": {"type": "text", "index": 5, "name": "ethnicity_code", "comment": null}, "_dbt_source_relation": {"type": "text", "index": 6, "name": "_dbt_source_relation", "comment": null}}, "stats": {"has_stats": {"id": "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": "public_workday_dev", "name": "stg_workday__position_base", "database": "postgres", "comment": null, "owner": "postgres"}, "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": "double precision", "index": 26, "name": "primary_compensation_basis_amount_change", "comment": null}, "primary_compensation_basis_percent_change": {"type": "double precision", "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}, "_dbt_source_relation": {"type": "text", "index": 33, "name": "_dbt_source_relation", "comment": null}}, "stats": {"has_stats": {"id": "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": "public_workday_dev", "name": "stg_workday__position_job_profile_base", "database": "postgres", "comment": null, "owner": "postgres"}, "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}, "_dbt_source_relation": {"type": "text", "index": 11, "name": "_dbt_source_relation", "comment": null}}, "stats": {"has_stats": {"id": "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": "public_workday_dev", "name": "stg_workday__position_organization_base", "database": "postgres", "comment": null, "owner": "postgres"}, "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}, "_fivetran_active": {"type": "boolean", "index": 6, "name": "_fivetran_active", "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}, "_dbt_source_relation": {"type": "text", "index": 9, "name": "_dbt_source_relation", "comment": null}}, "stats": {"has_stats": {"id": "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": "public_workday_dev", "name": "stg_workday__worker_base", "database": "postgres", "comment": null, "owner": "postgres"}, "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_deleted": {"type": "boolean", "index": 5, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "academic_tenure_date": {"type": "integer", "index": 7, "name": "academic_tenure_date", "comment": null}, "active": {"type": "boolean", "index": 8, "name": "active", "comment": null}, "active_status_date": {"type": "date", "index": 9, "name": "active_status_date", "comment": null}, "annual_currency_summary_currency": {"type": "text", "index": 10, "name": "annual_currency_summary_currency", "comment": null}, "annual_currency_summary_frequency": {"type": "text", "index": 11, "name": "annual_currency_summary_frequency", "comment": null}, "annual_currency_summary_primary_compensation_basis": {"type": "double precision", "index": 12, "name": "annual_currency_summary_primary_compensation_basis", "comment": null}, "annual_currency_summary_total_base_pay": {"type": "double precision", "index": 13, "name": "annual_currency_summary_total_base_pay", "comment": null}, "annual_currency_summary_total_salary_and_allowances": {"type": "double precision", "index": 14, "name": "annual_currency_summary_total_salary_and_allowances", "comment": null}, "annual_summary_currency": {"type": "text", "index": 15, "name": "annual_summary_currency", "comment": null}, "annual_summary_frequency": {"type": "text", "index": 16, "name": "annual_summary_frequency", "comment": null}, "annual_summary_primary_compensation_basis": {"type": "double precision", "index": 17, "name": "annual_summary_primary_compensation_basis", "comment": null}, "annual_summary_total_base_pay": {"type": "double precision", "index": 18, "name": "annual_summary_total_base_pay", "comment": null}, "annual_summary_total_salary_and_allowances": {"type": "double precision", "index": 19, "name": "annual_summary_total_salary_and_allowances", "comment": null}, "benefits_service_date": {"type": "integer", "index": 20, "name": "benefits_service_date", "comment": null}, "company_service_date": {"type": "integer", "index": 21, "name": "company_service_date", "comment": null}, "compensation_effective_date": {"type": "date", "index": 22, "name": "compensation_effective_date", "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}, "continuous_service_date": {"type": "date", "index": 25, "name": "continuous_service_date", "comment": null}, "contract_assignment_details": {"type": "integer", "index": 26, "name": "contract_assignment_details", "comment": null}, "contract_currency_code": {"type": "integer", "index": 27, "name": "contract_currency_code", "comment": null}, "contract_end_date": {"type": "integer", "index": 28, "name": "contract_end_date", "comment": null}, "contract_frequency_name": {"type": "integer", "index": 29, "name": "contract_frequency_name", "comment": null}, "contract_pay_rate": {"type": "double precision", "index": 30, "name": "contract_pay_rate", "comment": null}, "contract_vendor_name": {"type": "integer", "index": 31, "name": "contract_vendor_name", "comment": null}, "date_entered_workforce": {"type": "integer", "index": 32, "name": "date_entered_workforce", "comment": null}, "days_unemployed": {"type": "double precision", "index": 33, "name": "days_unemployed", "comment": null}, "eligible_for_hire": {"type": "text", "index": 34, "name": "eligible_for_hire", "comment": null}, "eligible_for_rehire_on_latest_termination": {"type": "text", "index": 35, "name": "eligible_for_rehire_on_latest_termination", "comment": null}, "employee_compensation_currency": {"type": "text", "index": 36, "name": "employee_compensation_currency", "comment": null}, "employee_compensation_frequency": {"type": "text", "index": 37, "name": "employee_compensation_frequency", "comment": null}, "employee_compensation_primary_compensation_basis": {"type": "double precision", "index": 38, "name": "employee_compensation_primary_compensation_basis", "comment": null}, "employee_compensation_total_base_pay": {"type": "double precision", "index": 39, "name": "employee_compensation_total_base_pay", "comment": null}, "employee_compensation_total_salary_and_allowances": {"type": "double precision", "index": 40, "name": "employee_compensation_total_salary_and_allowances", "comment": null}, "end_employment_date": {"type": "date", "index": 41, "name": "end_employment_date", "comment": null}, "expected_date_of_return": {"type": "integer", "index": 42, "name": "expected_date_of_return", "comment": null}, "expected_retirement_date": {"type": "integer", "index": 43, "name": "expected_retirement_date", "comment": null}, "first_day_of_work": {"type": "date", "index": 44, "name": "first_day_of_work", "comment": null}, "has_international_assignment": {"type": "boolean", "index": 45, "name": "has_international_assignment", "comment": null}, "hire_date": {"type": "date", "index": 46, "name": "hire_date", "comment": null}, "hire_reason": {"type": "text", "index": 47, "name": "hire_reason", "comment": null}, "hire_rescinded": {"type": "boolean", "index": 48, "name": "hire_rescinded", "comment": null}, "home_country": {"type": "integer", "index": 49, "name": "home_country", "comment": null}, "hourly_frequency_currency": {"type": "text", "index": 50, "name": "hourly_frequency_currency", "comment": null}, "hourly_frequency_frequency": {"type": "text", "index": 51, "name": "hourly_frequency_frequency", "comment": null}, "hourly_frequency_primary_compensation_basis": {"type": "double precision", "index": 52, "name": "hourly_frequency_primary_compensation_basis", "comment": null}, "hourly_frequency_total_base_pay": {"type": "double precision", "index": 53, "name": "hourly_frequency_total_base_pay", "comment": null}, "hourly_frequency_total_salary_and_allowances": {"type": "double precision", "index": 54, "name": "hourly_frequency_total_salary_and_allowances", "comment": null}, "last_datefor_which_paid": {"type": "integer", "index": 55, "name": "last_datefor_which_paid", "comment": null}, "local_termination_reason": {"type": "integer", "index": 56, "name": "local_termination_reason", "comment": null}, "months_continuous_prior_employment": {"type": "double precision", "index": 57, "name": "months_continuous_prior_employment", "comment": null}, "not_returning": {"type": "boolean", "index": 58, "name": "not_returning", "comment": null}, "original_hire_date": {"type": "date", "index": 59, "name": "original_hire_date", "comment": null}, "pay_group_frequency_currency": {"type": "text", "index": 60, "name": "pay_group_frequency_currency", "comment": null}, "pay_group_frequency_frequency": {"type": "integer", "index": 61, "name": "pay_group_frequency_frequency", "comment": null}, "pay_group_frequency_primary_compensation_basis": {"type": "double precision", "index": 62, "name": "pay_group_frequency_primary_compensation_basis", "comment": null}, "pay_group_frequency_total_base_pay": {"type": "double precision", "index": 63, "name": "pay_group_frequency_total_base_pay", "comment": null}, "pay_group_frequency_total_salary_and_allowances": {"type": "double precision", "index": 64, "name": "pay_group_frequency_total_salary_and_allowances", "comment": null}, "pay_through_date": {"type": "date", "index": 65, "name": "pay_through_date", "comment": null}, "primary_termination_category": {"type": "text", "index": 66, "name": "primary_termination_category", "comment": null}, "primary_termination_reason": {"type": "text", "index": 67, "name": "primary_termination_reason", "comment": null}, "probation_end_date": {"type": "integer", "index": 68, "name": "probation_end_date", "comment": null}, "probation_start_date": {"type": "integer", "index": 69, "name": "probation_start_date", "comment": null}, "reason_reference_id": {"type": "text", "index": 70, "name": "reason_reference_id", "comment": null}, "regrettable_termination": {"type": "boolean", "index": 71, "name": "regrettable_termination", "comment": null}, "rehire": {"type": "boolean", "index": 72, "name": "rehire", "comment": null}, "resignation_date": {"type": "integer", "index": 73, "name": "resignation_date", "comment": null}, "retired": {"type": "boolean", "index": 74, "name": "retired", "comment": null}, "retirement_date": {"type": "integer", "index": 75, "name": "retirement_date", "comment": null}, "retirement_eligibility_date": {"type": "integer", "index": 76, "name": "retirement_eligibility_date", "comment": null}, "return_unknown": {"type": "boolean", "index": 77, "name": "return_unknown", "comment": null}, "seniority_date": {"type": "date", "index": 78, "name": "seniority_date", "comment": null}, "severance_date": {"type": "integer", "index": 79, "name": "severance_date", "comment": null}, "terminated": {"type": "boolean", "index": 80, "name": "terminated", "comment": null}, "termination_date": {"type": "date", "index": 81, "name": "termination_date", "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}, "_dbt_source_relation": {"type": "text", "index": 89, "name": "_dbt_source_relation", "comment": null}}, "stats": {"has_stats": {"id": "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": "public_workday_dev", "name": "stg_workday__worker_leave_status_base", "database": "postgres", "comment": null, "owner": "postgres"}, "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": "double precision", "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": "double precision", "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": "double precision", "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": "double precision", "index": 32, "name": "number_of_babies_adopted_children", "comment": null}, "number_of_child_dependents": {"type": "double precision", "index": 33, "name": "number_of_child_dependents", "comment": null}, "number_of_previous_births": {"type": "double precision", "index": 34, "name": "number_of_previous_births", "comment": null}, "number_of_previous_maternity_leaves": {"type": "double precision", "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}, "_dbt_source_relation": {"type": "text", "index": 46, "name": "_dbt_source_relation", "comment": null}}, "stats": {"has_stats": {"id": "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": "public_workday_dev", "name": "stg_workday__worker_position_base", "database": "postgres", "comment": null, "owner": "postgres"}, "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_deleted": {"type": "boolean", "index": 6, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "academic_pay_setup_data_annual_work_period_end_date": {"type": "integer", "index": 8, "name": "academic_pay_setup_data_annual_work_period_end_date", "comment": null}, "academic_pay_setup_data_annual_work_period_start_date": {"type": "integer", "index": 9, "name": "academic_pay_setup_data_annual_work_period_start_date", "comment": null}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"type": "double precision", "index": 10, "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": 11, "name": "academic_pay_setup_data_disbursement_plan_period_end_date", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"type": "integer", "index": 12, "name": "academic_pay_setup_data_disbursement_plan_period_start_date", "comment": null}, "business_site_summary_display_language": {"type": "text", "index": 13, "name": "business_site_summary_display_language", "comment": null}, "business_site_summary_local": {"type": "text", "index": 14, "name": "business_site_summary_local", "comment": null}, "business_site_summary_location": {"type": "text", "index": 15, "name": "business_site_summary_location", "comment": null}, "business_site_summary_location_type": {"type": "text", "index": 16, "name": "business_site_summary_location_type", "comment": null}, "business_site_summary_name": {"type": "text", "index": 17, "name": "business_site_summary_name", "comment": null}, "business_site_summary_scheduled_weekly_hours": {"type": "double precision", "index": 18, "name": "business_site_summary_scheduled_weekly_hours", "comment": null}, "business_site_summary_time_profile": {"type": "text", "index": 19, "name": "business_site_summary_time_profile", "comment": null}, "business_title": {"type": "text", "index": 20, "name": "business_title", "comment": null}, "critical_job": {"type": "boolean", "index": 21, "name": "critical_job", "comment": null}, "default_weekly_hours": {"type": "double precision", "index": 22, "name": "default_weekly_hours", "comment": null}, "difficulty_to_fill": {"type": "text", "index": 23, "name": "difficulty_to_fill", "comment": null}, "effective_date": {"type": "date", "index": 24, "name": "effective_date", "comment": null}, "employee_type": {"type": "text", "index": 25, "name": "employee_type", "comment": null}, "end_date": {"type": "date", "index": 26, "name": "end_date", "comment": null}, "end_employment_date": {"type": "date", "index": 27, "name": "end_employment_date", "comment": null}, "exclude_from_head_count": {"type": "boolean", "index": 28, "name": "exclude_from_head_count", "comment": null}, "expected_assignment_end_date": {"type": "integer", "index": 29, "name": "expected_assignment_end_date", "comment": null}, "external_employee": {"type": "integer", "index": 30, "name": "external_employee", "comment": null}, "federal_withholding_fein": {"type": "integer", "index": 31, "name": "federal_withholding_fein", "comment": null}, "frequency": {"type": "text", "index": 32, "name": "frequency", "comment": null}, "full_time_equivalent_percentage": {"type": "integer", "index": 33, "name": "full_time_equivalent_percentage", "comment": null}, "headcount_restriction_code": {"type": "integer", "index": 34, "name": "headcount_restriction_code", "comment": null}, "home_country": {"type": "integer", "index": 35, "name": "home_country", "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}, "_dbt_source_relation": {"type": "text", "index": 64, "name": "_dbt_source_relation", "comment": null}}, "stats": {"has_stats": {"id": "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": "public_workday_dev", "name": "stg_workday__worker_position_organization_base", "database": "postgres", "comment": null, "owner": "postgres"}, "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}, "_dbt_source_relation": {"type": "text", "index": 12, "name": "_dbt_source_relation", "comment": null}}, "stats": {"has_stats": {"id": "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.workday__employee_daily_history": {"metadata": {"type": "BASE TABLE", "schema": "public_workday_dev", "name": "workday__employee_daily_history", "database": "postgres", "comment": "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.", "owner": "postgres"}, "columns": {"employee_day_id": {"type": "text", "index": 1, "name": "employee_day_id", "comment": "Surrogate key hashed on `date_day` and `history_unique_key`"}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": "Date on which the account had these field values."}, "history_unique_key": {"type": "text", "index": 3, "name": "history_unique_key", "comment": "Surrogate key hashed on 'employee_id' and '_fivetran_date'."}, "employee_id": {"type": "text", "index": 4, "name": "employee_id", "comment": "Surrogate key on `worker_id`, `source_relation`, `position_id`, `position_start_date` to create unique identifier for a Workday employee."}, "_fivetran_date": {"type": "date", "index": 5, "name": "_fivetran_date", "comment": "Date when the record was first created or modified in the source."}, "worker_id": {"type": "text", "index": 6, "name": "worker_id", "comment": "Unique identifier for the worker."}, "source_relation": {"type": "text", "index": 7, "name": "source_relation", "comment": "The record's source if the unioning functionality is used. Otherwise this field will be empty."}, "position_id": {"type": "text", "index": 8, "name": "position_id", "comment": "Identifier for the specific position."}, "_fivetran_start": {"type": "timestamp without time zone", "index": 9, "name": "_fivetran_start", "comment": "Timestamp when the record was first created or modified in the source."}, "_fivetran_end": {"type": "timestamp without time zone", "index": 10, "name": "_fivetran_end", "comment": "Timestamp marking the end of a record being active."}, "is_wh_fivetran_active": {"type": "boolean", "index": 11, "name": "is_wh_fivetran_active", "comment": "Is the worker history record the most recent fivetran active record."}, "is_wph_fivetran_active": {"type": "boolean", "index": 12, "name": "is_wph_fivetran_active", "comment": "Is the worker position history record the most recent fivetranactive record."}, "is_pih_fivetran_active": {"type": "boolean", "index": 13, "name": "is_pih_fivetran_active", "comment": "Is the personal information history record the most recent fivetran active record."}, "academic_tenure_date": {"type": "integer", "index": 14, "name": "academic_tenure_date", "comment": "Date when academic tenure is achieved."}, "is_active": {"type": "boolean", "index": 15, "name": "is_active", "comment": null}, "active_status_date": {"type": "date", "index": 16, "name": "active_status_date", "comment": "Date when the active status was last updated."}, "annual_currency_summary_currency": {"type": "text", "index": 17, "name": "annual_currency_summary_currency", "comment": "Currency used for annual compensation summaries."}, "annual_currency_summary_frequency": {"type": "text", "index": 18, "name": "annual_currency_summary_frequency", "comment": "Frequency of currency for annual compensation summaries."}, "annual_currency_summary_primary_compensation_basis": {"type": "double precision", "index": 19, "name": "annual_currency_summary_primary_compensation_basis", "comment": "Primary compensation basis used for annual compensation summaries."}, "annual_currency_summary_total_base_pay": {"type": "double precision", "index": 20, "name": "annual_currency_summary_total_base_pay", "comment": "Total base pay in the currency for annual summaries."}, "annual_currency_summary_total_salary_and_allowances": {"type": "double precision", "index": 21, "name": "annual_currency_summary_total_salary_and_allowances", "comment": "Total salary and allowances in the currency for annual summaries."}, "annual_summary_currency": {"type": "text", "index": 22, "name": "annual_summary_currency", "comment": "Currency used for annual summaries."}, "annual_summary_frequency": {"type": "text", "index": 23, "name": "annual_summary_frequency", "comment": "Frequency of currency for annual summaries."}, "annual_summary_primary_compensation_basis": {"type": "double precision", "index": 24, "name": "annual_summary_primary_compensation_basis", "comment": "Primary compensation basis used for annual summaries."}, "annual_summary_total_base_pay": {"type": "double precision", "index": 25, "name": "annual_summary_total_base_pay", "comment": "Total base pay in the currency for annual summaries."}, "annual_summary_total_salary_and_allowances": {"type": "double precision", "index": 26, "name": "annual_summary_total_salary_and_allowances", "comment": "Total salary and allowances in the currency for annual summaries."}, "benefits_service_date": {"type": "integer", "index": 27, "name": "benefits_service_date", "comment": "Date when the worker's benefits service starts."}, "company_service_date": {"type": "integer", "index": 28, "name": "company_service_date", "comment": "Date when the worker's service with the company started."}, "compensation_effective_date": {"type": "date", "index": 29, "name": "compensation_effective_date", "comment": "Effective date when changes to the worker's compensation take effect."}, "compensation_grade_id": {"type": "text", "index": 30, "name": "compensation_grade_id", "comment": "Identifier for the compensation grade."}, "compensation_grade_profile_id": {"type": "text", "index": 31, "name": "compensation_grade_profile_id", "comment": "Unique identifier for the compensation grade profile associated with the worker."}, "continuous_service_date": {"type": "date", "index": 32, "name": "continuous_service_date", "comment": "Date when the worker's continuous service with the organization started."}, "contract_assignment_details": {"type": "integer", "index": 33, "name": "contract_assignment_details", "comment": "Details of the worker's contract assignment."}, "contract_currency_code": {"type": "integer", "index": 34, "name": "contract_currency_code", "comment": "Currency code used for the worker's contract."}, "contract_end_date": {"type": "integer", "index": 35, "name": "contract_end_date", "comment": "Date when the worker's contract is scheduled to end."}, "contract_frequency_name": {"type": "integer", "index": 36, "name": "contract_frequency_name", "comment": "Frequency of payment for the worker's contract."}, "contract_pay_rate": {"type": "double precision", "index": 37, "name": "contract_pay_rate", "comment": "Pay rate associated with the worker's contract."}, "contract_vendor_name": {"type": "integer", "index": 38, "name": "contract_vendor_name", "comment": "Name of the vendor associated with the worker's contract."}, "date_entered_workforce": {"type": "integer", "index": 39, "name": "date_entered_workforce", "comment": "Date when the worker entered the workforce."}, "days_unemployed": {"type": "double precision", "index": 40, "name": "days_unemployed", "comment": "Number of days the worker has been unemployed."}, "eligible_for_hire": {"type": "text", "index": 41, "name": "eligible_for_hire", "comment": "Flag indicating whether the worker is eligible for hire."}, "eligible_for_rehire_on_latest_termination": {"type": "text", "index": 42, "name": "eligible_for_rehire_on_latest_termination", "comment": "Flag indicating whether the worker is eligible for rehire based on the latest termination."}, "employee_compensation_currency": {"type": "text", "index": 43, "name": "employee_compensation_currency", "comment": "Currency code used for the worker's employee compensation."}, "employee_compensation_frequency": {"type": "text", "index": 44, "name": "employee_compensation_frequency", "comment": "Frequency of payment for the worker's employee compensation."}, "employee_compensation_primary_compensation_basis": {"type": "double precision", "index": 45, "name": "employee_compensation_primary_compensation_basis", "comment": "Primary compensation basis used for the worker's employee compensation."}, "employee_compensation_total_base_pay": {"type": "double precision", "index": 46, "name": "employee_compensation_total_base_pay", "comment": "Total base pay for the worker's employee compensation."}, "employee_compensation_total_salary_and_allowances": {"type": "double precision", "index": 47, "name": "employee_compensation_total_salary_and_allowances", "comment": "Total salary and allowances for the worker's employee compensation."}, "end_employment_date": {"type": "timestamp without time zone", "index": 48, "name": "end_employment_date", "comment": "Date when the worker's employment is scheduled to end."}, "expected_date_of_return": {"type": "integer", "index": 49, "name": "expected_date_of_return", "comment": "Expected date of the worker's return."}, "expected_retirement_date": {"type": "integer", "index": 50, "name": "expected_retirement_date", "comment": "Expected date of the worker's retirement."}, "first_day_of_work": {"type": "date", "index": 51, "name": "first_day_of_work", "comment": "The date when the worker started their first day of work."}, "is_has_international_assignment": {"type": "boolean", "index": 52, "name": "is_has_international_assignment", "comment": "Flag indicating whether the worker has an international assignment."}, "hire_date": {"type": "date", "index": 53, "name": "hire_date", "comment": "The date when the worker was hired."}, "hire_reason": {"type": "text", "index": 54, "name": "hire_reason", "comment": "The reason for hiring the worker."}, "is_hire_rescinded": {"type": "boolean", "index": 55, "name": "is_hire_rescinded", "comment": "Flag indicating whether the worker's hire was rescinded."}, "home_country": {"type": "integer", "index": 56, "name": "home_country", "comment": "The home country of the worker."}, "hourly_frequency_currency": {"type": "text", "index": 57, "name": "hourly_frequency_currency", "comment": "Currency code used for the worker's hourly compensation."}, "hourly_frequency_frequency": {"type": "text", "index": 58, "name": "hourly_frequency_frequency", "comment": "Frequency of payment for the worker's hourly compensation."}, "hourly_frequency_primary_compensation_basis": {"type": "double precision", "index": 59, "name": "hourly_frequency_primary_compensation_basis", "comment": "Primary compensation basis used for the worker's hourly compensation."}, "hourly_frequency_total_base_pay": {"type": "double precision", "index": 60, "name": "hourly_frequency_total_base_pay", "comment": "Total base pay for the worker's hourly compensation."}, "hourly_frequency_total_salary_and_allowances": {"type": "double precision", "index": 61, "name": "hourly_frequency_total_salary_and_allowances", "comment": "Total salary and allowances for the worker's hourly compensation."}, "last_datefor_which_paid": {"type": "integer", "index": 62, "name": "last_datefor_which_paid", "comment": "Last date for which the worker was paid."}, "local_termination_reason": {"type": "integer", "index": 63, "name": "local_termination_reason", "comment": "The reason for local termination of the worker."}, "months_continuous_prior_employment": {"type": "double precision", "index": 64, "name": "months_continuous_prior_employment", "comment": "Number of months of continuous prior employment."}, "is_not_returning": {"type": "boolean", "index": 65, "name": "is_not_returning", "comment": "Flag indicating whether the worker is not returning."}, "original_hire_date": {"type": "date", "index": 66, "name": "original_hire_date", "comment": "The original date when the worker was hired."}, "pay_group_frequency_currency": {"type": "text", "index": 67, "name": "pay_group_frequency_currency", "comment": "Currency code used for the worker's pay group frequency."}, "pay_group_frequency_frequency": {"type": "integer", "index": 68, "name": "pay_group_frequency_frequency", "comment": "Frequency of payment for the worker's pay group."}, "pay_group_frequency_primary_compensation_basis": {"type": "double precision", "index": 69, "name": "pay_group_frequency_primary_compensation_basis", "comment": "Primary compensation basis used for the worker's pay group."}, "pay_group_frequency_total_base_pay": {"type": "double precision", "index": 70, "name": "pay_group_frequency_total_base_pay", "comment": "Total base pay for the worker's pay group."}, "pay_group_frequency_total_salary_and_allowances": {"type": "double precision", "index": 71, "name": "pay_group_frequency_total_salary_and_allowances", "comment": "Total salary and allowances for the worker's pay group."}, "pay_through_date": {"type": "date", "index": 72, "name": "pay_through_date", "comment": "The date through which the worker is paid."}, "primary_termination_category": {"type": "text", "index": 73, "name": "primary_termination_category", "comment": "The primary termination category for the worker."}, "primary_termination_reason": {"type": "text", "index": 74, "name": "primary_termination_reason", "comment": "The primary termination reason for the worker."}, "probation_end_date": {"type": "integer", "index": 75, "name": "probation_end_date", "comment": "The date when the worker's probation ends."}, "probation_start_date": {"type": "integer", "index": 76, "name": "probation_start_date", "comment": "The date when the worker's probation starts."}, "reason_reference_id": {"type": "text", "index": 77, "name": "reason_reference_id", "comment": "The reference ID for the termination reason."}, "is_regrettable_termination": {"type": "boolean", "index": 78, "name": "is_regrettable_termination", "comment": "Flag indicating whether the worker's termination is regrettable."}, "is_rehire": {"type": "boolean", "index": 79, "name": "is_rehire", "comment": "Flag indicating whether the worker is eligible for rehire."}, "resignation_date": {"type": "integer", "index": 80, "name": "resignation_date", "comment": "The date when the worker resigned."}, "is_retired": {"type": "boolean", "index": 81, "name": "is_retired", "comment": "Flag indicating whether the worker is retired."}, "retirement_date": {"type": "integer", "index": 82, "name": "retirement_date", "comment": "The date when the worker retired."}, "retirement_eligibility_date": {"type": "integer", "index": 83, "name": "retirement_eligibility_date", "comment": "The date when the worker becomes eligible for retirement."}, "is_return_unknown": {"type": "boolean", "index": 84, "name": "is_return_unknown", "comment": "Flag indicating whether the worker's return status is unknown."}, "seniority_date": {"type": "date", "index": 85, "name": "seniority_date", "comment": "The date when the worker's seniority is recorded."}, "severance_date": {"type": "integer", "index": 86, "name": "severance_date", "comment": "The date when the worker's severance is recorded."}, "is_terminated": {"type": "boolean", "index": 87, "name": "is_terminated", "comment": "Has the worker been terminated?"}, "termination_date": {"type": "timestamp without time zone", "index": 88, "name": "termination_date", "comment": "The date when the worker is terminated."}, "is_termination_involuntary": {"type": "boolean", "index": 89, "name": "is_termination_involuntary", "comment": "Flag indicating whether the termination is involuntary."}, "termination_last_day_of_work": {"type": "date", "index": 90, "name": "termination_last_day_of_work", "comment": "The last day of work for the worker during termination."}, "time_off_service_date": {"type": "integer", "index": 91, "name": "time_off_service_date", "comment": "The date when the worker's time-off service starts."}, "universal_id": {"type": "integer", "index": 92, "name": "universal_id", "comment": "The universal ID associated with the worker."}, "user_id": {"type": "text", "index": 93, "name": "user_id", "comment": "The identifier for the user associated with the worker."}, "vesting_date": {"type": "integer", "index": 94, "name": "vesting_date", "comment": "The date when the worker's vesting starts."}, "worker_code": {"type": "integer", "index": 95, "name": "worker_code", "comment": "The code associated with the worker."}, "position_location": {"type": "text", "index": 96, "name": "position_location", "comment": "The position location of the employee."}, "is_exclude_from_head_count": {"type": "boolean", "index": 97, "name": "is_exclude_from_head_count", "comment": "Flag indicating whether the position is excluded from headcount."}, "fte_percent": {"type": "integer", "index": 98, "name": "fte_percent", "comment": "The percentage of hours, the employee's scheduled hours divided by the employer's hours for a full-time workweek"}, "is_job_exempt": {"type": "boolean", "index": 99, "name": "is_job_exempt", "comment": "Indicates whether the job is exempt from certain regulations."}, "is_specify_paid_fte": {"type": "boolean", "index": 100, "name": "is_specify_paid_fte", "comment": "Flag indicating whether to specify paid FTE for the worker position."}, "is_specify_working_fte": {"type": "boolean", "index": 101, "name": "is_specify_working_fte", "comment": "Flag indicating whether to specify working FTE for the worker position."}, "is_work_shift_required": {"type": "boolean", "index": 102, "name": "is_work_shift_required", "comment": "Flag indicating whether a work shift is required."}, "academic_pay_setup_data_annual_work_period_end_date": {"type": "integer", "index": 103, "name": "academic_pay_setup_data_annual_work_period_end_date", "comment": "The end date of the annual work period in academic pay setup data."}, "academic_pay_setup_data_annual_work_period_start_date": {"type": "integer", "index": 104, "name": "academic_pay_setup_data_annual_work_period_start_date", "comment": "The start date of the annual work period in academic pay setup data."}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"type": "double precision", "index": 105, "name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "comment": "The work percentage of the year in the annual work period in academic pay setup data."}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"type": "integer", "index": 106, "name": "academic_pay_setup_data_disbursement_plan_period_end_date", "comment": "The end date of the disbursement plan period in academic pay setup data."}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"type": "integer", "index": 107, "name": "academic_pay_setup_data_disbursement_plan_period_start_date", "comment": "The start date of the disbursement plan period in academic pay setup data."}, "business_site_summary_display_language": {"type": "text", "index": 108, "name": "business_site_summary_display_language", "comment": "The display language of the business site summary."}, "business_site_summary_local": {"type": "text", "index": 109, "name": "business_site_summary_local", "comment": "Local information related to the business site summary."}, "business_site_summary_location_type": {"type": "text", "index": 110, "name": "business_site_summary_location_type", "comment": "The type of location for the business site summary."}, "business_site_summary_name": {"type": "text", "index": 111, "name": "business_site_summary_name", "comment": "The name associated with the business site summary."}, "business_site_summary_scheduled_weekly_hours": {"type": "double precision", "index": 112, "name": "business_site_summary_scheduled_weekly_hours", "comment": "The scheduled weekly hours associated with the business site summary."}, "business_site_summary_time_profile": {"type": "text", "index": 113, "name": "business_site_summary_time_profile", "comment": "The time profile associated with the business site summary."}, "business_title": {"type": "text", "index": 114, "name": "business_title", "comment": "The business title associated with the worker position."}, "is_critical_job": {"type": "boolean", "index": 115, "name": "is_critical_job", "comment": "Flag indicating whether the job is critical."}, "default_weekly_hours": {"type": "double precision", "index": 116, "name": "default_weekly_hours", "comment": "The default weekly hours associated with the worker position."}, "difficulty_to_fill": {"type": "text", "index": 117, "name": "difficulty_to_fill", "comment": "Indication of the difficulty level in filling the job."}, "position_effective_date": {"type": "timestamp without time zone", "index": 118, "name": "position_effective_date", "comment": "The position effective date for the employee."}, "employee_type": {"type": "text", "index": 119, "name": "employee_type", "comment": "The type of employee associated with the worker position."}, "position_end_date": {"type": "timestamp without time zone", "index": 120, "name": "position_end_date", "comment": "The end date of the worker position."}, "expected_assignment_end_date": {"type": "integer", "index": 121, "name": "expected_assignment_end_date", "comment": "The expected end date of the assignment associated with the worker position."}, "external_employee": {"type": "integer", "index": 122, "name": "external_employee", "comment": "Flag indicating whether the worker is an external employee."}, "federal_withholding_fein": {"type": "integer", "index": 123, "name": "federal_withholding_fein", "comment": "The Federal Employer Identification Number (FEIN) for federal withholding."}, "frequency": {"type": "text", "index": 124, "name": "frequency", "comment": "The frequency associated with the worker position."}, "headcount_restriction_code": {"type": "integer", "index": 125, "name": "headcount_restriction_code", "comment": "The code associated with headcount restriction for the worker position."}, "host_country": {"type": "integer", "index": 126, "name": "host_country", "comment": "The host country associated with the worker."}, "international_assignment_type": {"type": "integer", "index": 127, "name": "international_assignment_type", "comment": "The type of international assignment associated with the worker position."}, "is_primary_job": {"type": "boolean", "index": 128, "name": "is_primary_job", "comment": "Flag indicating whether the job is the primary job for the worker."}, "job_profile_id": {"type": "text", "index": 129, "name": "job_profile_id", "comment": "Identifier for the job profile."}, "management_level_code": {"type": "text", "index": 130, "name": "management_level_code", "comment": "Code indicating the management level associated with the job profile."}, "paid_fte": {"type": "double precision", "index": 131, "name": "paid_fte", "comment": "The paid full-time equivalent (FTE) associated with the worker position."}, "pay_group": {"type": "integer", "index": 132, "name": "pay_group", "comment": "The pay group associated with the worker position."}, "pay_rate": {"type": "integer", "index": 133, "name": "pay_rate", "comment": "The pay rate associated with the worker position."}, "pay_rate_type": {"type": "text", "index": 134, "name": "pay_rate_type", "comment": "The type of pay rate associated with the worker position."}, "payroll_entity": {"type": "integer", "index": 135, "name": "payroll_entity", "comment": "The payroll entity associated with the worker position."}, "payroll_file_number": {"type": "integer", "index": 136, "name": "payroll_file_number", "comment": "The file number associated with payroll for the worker position."}, "regular_paid_equivalent_hours": {"type": "integer", "index": 137, "name": "regular_paid_equivalent_hours", "comment": "The regular paid equivalent hours associated with the worker position."}, "scheduled_weekly_hours": {"type": "double precision", "index": 138, "name": "scheduled_weekly_hours", "comment": "The scheduled weekly hours associated with the worker position."}, "position_start_date": {"type": "timestamp without time zone", "index": 139, "name": "position_start_date", "comment": "The start date of the worker position."}, "start_international_assignment_reason": {"type": "date", "index": 140, "name": "start_international_assignment_reason", "comment": "The reason for starting an international assignment associated with the worker position."}, "work_hours_profile": {"type": "integer", "index": 141, "name": "work_hours_profile", "comment": "The work hours profile associated with the worker position."}, "work_shift": {"type": "integer", "index": 142, "name": "work_shift", "comment": "The work shift associated with the worker position."}, "work_space": {"type": "integer", "index": 143, "name": "work_space", "comment": "The work space associated with the worker position."}, "worker_hours_profile_classification": {"type": "integer", "index": 144, "name": "worker_hours_profile_classification", "comment": "The classification of worker hours profile associated with the worker position."}, "working_fte": {"type": "double precision", "index": 145, "name": "working_fte", "comment": "The working full-time equivalent (FTE) associated with the worker position."}, "working_time_frequency": {"type": "integer", "index": 146, "name": "working_time_frequency", "comment": "The frequency of working time associated with the worker position."}, "working_time_unit": {"type": "integer", "index": 147, "name": "working_time_unit", "comment": "The unit of working time associated with the worker position."}, "working_time_value": {"type": "integer", "index": 148, "name": "working_time_value", "comment": "The value of working time associated with the worker position."}, "additional_nationality": {"type": "integer", "index": 149, "name": "additional_nationality", "comment": "Additional nationality associated with the individual."}, "blood_type": {"type": "integer", "index": 150, "name": "blood_type", "comment": "The blood type of the individual."}, "citizenship_status": {"type": "text", "index": 151, "name": "citizenship_status", "comment": "The citizenship status of the individual."}, "city_of_birth": {"type": "text", "index": 152, "name": "city_of_birth", "comment": "The city of birth of the individual."}, "city_of_birth_code": {"type": "integer", "index": 153, "name": "city_of_birth_code", "comment": "The city of birth code of the individual."}, "country_of_birth": {"type": "text", "index": 154, "name": "country_of_birth", "comment": "The country of birth of the individual."}, "date_of_birth": {"type": "date", "index": 155, "name": "date_of_birth", "comment": "The date of birth of the individual."}, "date_of_death": {"type": "integer", "index": 156, "name": "date_of_death", "comment": "The date of death of the individual."}, "gender": {"type": "text", "index": 157, "name": "gender", "comment": "The gender of the individual."}, "is_hispanic_or_latino": {"type": "integer", "index": 158, "name": "is_hispanic_or_latino", "comment": "lag indicating whether the individual is Hispanic or Latino."}, "hukou_locality": {"type": "integer", "index": 159, "name": "hukou_locality", "comment": "The locality associated with the Hukou."}, "hukou_postal_code": {"type": "integer", "index": 160, "name": "hukou_postal_code", "comment": "The postal code associated with the Hukou."}, "hukou_region": {"type": "integer", "index": 161, "name": "hukou_region", "comment": "The region associated with the Hukou."}, "hukou_subregion": {"type": "integer", "index": 162, "name": "hukou_subregion", "comment": "The subregion associated with the Hukou."}, "hukou_type": {"type": "integer", "index": 163, "name": "hukou_type", "comment": "The type of Hukou."}, "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": "date", "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": "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."}}, "stats": {"has_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": "public_workday_dev", "name": "workday__employee_overview", "database": "postgres", "comment": "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.", "owner": "postgres"}, "columns": {"employee_id": {"type": "text", "index": 1, "name": "employee_id", "comment": "Surrogate key on `worker_id`, `source_relation`, `position_id`, `position_start_date` to create unique identifier for a Workday employee."}, "worker_id": {"type": "text", "index": 2, "name": "worker_id", "comment": "Unique identifier for the worker."}, "source_relation": {"type": "text", "index": 3, "name": "source_relation", "comment": "The record's source if the unioning functionality is used. Otherwise this field will be empty."}, "fivetran_id": {"type": "text", "index": 4, "name": "fivetran_id", "comment": "Fivetran composite key identifier."}, "position_id": {"type": "text", "index": 5, "name": "position_id", "comment": "Identifier for the specific position."}, "position_start_date": {"type": "date", "index": 6, "name": "position_start_date", "comment": "The position start date for this employee."}, "worker_code": {"type": "integer", "index": 7, "name": "worker_code", "comment": "The code associated with the worker."}, "user_id": {"type": "text", "index": 8, "name": "user_id", "comment": "The identifier for the user associated with the worker."}, "universal_id": {"type": "integer", "index": 9, "name": "universal_id", "comment": "The universal ID associated with the worker."}, "is_user_active": {"type": "boolean", "index": 10, "name": "is_user_active", "comment": "Is the user currently active."}, "is_employed": {"type": "boolean", "index": 11, "name": "is_employed", "comment": "Is the worker currently employed?"}, "hire_date": {"type": "date", "index": 12, "name": "hire_date", "comment": "The date when the worker was hired."}, "departure_date": {"type": "date", "index": 13, "name": "departure_date", "comment": "The departure date for the employee."}, "days_as_worker": {"type": "integer", "index": 14, "name": "days_as_worker", "comment": "Number of days since the worker has been created."}, "is_terminated": {"type": "boolean", "index": 15, "name": "is_terminated", "comment": "Has the worker been terminated?"}, "primary_termination_category": {"type": "text", "index": 16, "name": "primary_termination_category", "comment": "The primary termination category for the worker."}, "primary_termination_reason": {"type": "text", "index": 17, "name": "primary_termination_reason", "comment": "The primary termination reason for the worker."}, "is_regrettable_termination": {"type": "boolean", "index": 18, "name": "is_regrettable_termination", "comment": "Has the worker been regrettably terminated?"}, "compensation_effective_date": {"type": "date", "index": 19, "name": "compensation_effective_date", "comment": "Effective date when changes to the worker's compensation take effect."}, "employee_compensation_frequency": {"type": "text", "index": 20, "name": "employee_compensation_frequency", "comment": "Frequency of payment for the worker's employee compensation."}, "annual_currency_summary_currency": {"type": "text", "index": 21, "name": "annual_currency_summary_currency", "comment": "Currency used for annual compensation summaries."}, "annual_currency_summary_total_base_pay": {"type": "double precision", "index": 22, "name": "annual_currency_summary_total_base_pay", "comment": "Total base pay in the currency for annual summaries."}, "annual_currency_summary_primary_compensation_basis": {"type": "double precision", "index": 23, "name": "annual_currency_summary_primary_compensation_basis", "comment": "Primary compensation basis used for annual compensation summaries."}, "annual_summary_currency": {"type": "text", "index": 24, "name": "annual_summary_currency", "comment": "Currency used for annual summaries."}, "annual_summary_total_base_pay": {"type": "double precision", "index": 25, "name": "annual_summary_total_base_pay", "comment": "Total base pay in the currency for annual summaries."}, "annual_summary_primary_compensation_basis": {"type": "double precision", "index": 26, "name": "annual_summary_primary_compensation_basis", "comment": "Primary compensation basis used for annual summaries."}, "compensation_grade_id": {"type": "text", "index": 27, "name": "compensation_grade_id", "comment": "Identifier for the compensation grade."}, "compensation_grade_profile_id": {"type": "text", "index": 28, "name": "compensation_grade_profile_id", "comment": "Unique identifier for the compensation grade profile associated with the worker."}, "first_name": {"type": "text", "index": 29, "name": "first_name", "comment": "The first name of the individual."}, "last_name": {"type": "text", "index": 30, "name": "last_name", "comment": "The last name or surname of the individual."}, "date_of_birth": {"type": "date", "index": 31, "name": "date_of_birth", "comment": "The date of birth of the individual."}, "gender": {"type": "text", "index": 32, "name": "gender", "comment": "The gender of the individual."}, "is_hispanic_or_latino": {"type": "integer", "index": 33, "name": "is_hispanic_or_latino", "comment": "lag indicating whether the individual is Hispanic or Latino."}, "email_address": {"type": "text", "index": 34, "name": "email_address", "comment": "The actual email address of the person."}, "ethnicity_codes": {"type": "text", "index": 35, "name": "ethnicity_codes", "comment": "String aggregation of all ethnicity codes associated with an individual."}, "military_status": {"type": "text", "index": 36, "name": "military_status", "comment": "The military status of the worker."}, "business_title": {"type": "text", "index": 37, "name": "business_title", "comment": "The business title associated with the worker position."}, "job_profile_id": {"type": "text", "index": 38, "name": "job_profile_id", "comment": "Identifier for the job profile."}, "employee_type": {"type": "text", "index": 39, "name": "employee_type", "comment": "The type of employee associated with the worker position."}, "position_location": {"type": "text", "index": 40, "name": "position_location", "comment": "The position location of the employee."}, "management_level_code": {"type": "text", "index": 41, "name": "management_level_code", "comment": "Code indicating the management level associated with the job profile."}, "fte_percent": {"type": "integer", "index": 42, "name": "fte_percent", "comment": "The percentage of hours, the employee's scheduled hours divided by the employer's hours for a full-time workweek"}, "position_end_date": {"type": "date", "index": 43, "name": "position_end_date", "comment": "The position end date for this employee."}, "position_effective_date": {"type": "date", "index": 44, "name": "position_effective_date", "comment": "The position effective date for the employee."}, "days_employed": {"type": "integer", "index": 45, "name": "days_employed", "comment": "The number of days the employee held their position."}, "is_employed_one_year": {"type": "boolean", "index": 46, "name": "is_employed_one_year", "comment": "Tracks whether a worker was employed at least one year."}, "is_employed_five_years": {"type": "boolean", "index": 47, "name": "is_employed_five_years", "comment": "Tracks whether a worker was employed at least five years."}, "is_employed_ten_years": {"type": "boolean", "index": 48, "name": "is_employed_ten_years", "comment": "Tracks whether a worker was employed at least ten years."}, "is_employed_twenty_years": {"type": "boolean", "index": 49, "name": "is_employed_twenty_years", "comment": "Tracks whether a worker was employed at least twenty years."}, "is_employed_thirty_years": {"type": "boolean", "index": 50, "name": "is_employed_thirty_years", "comment": "Tracks whether a worker was employed at least thirty years."}, "is_current_employee_one_year": {"type": "boolean", "index": 51, "name": "is_current_employee_one_year", "comment": "Tracks whether a worker is active for more than a year."}, "is_current_employee_five_years": {"type": "boolean", "index": 52, "name": "is_current_employee_five_years", "comment": "Tracks whether a worker is active for more than five years."}, "is_current_employee_ten_years": {"type": "boolean", "index": 53, "name": "is_current_employee_ten_years", "comment": "Tracks whether a worker is active for more than ten years."}, "is_current_employee_twenty_years": {"type": "boolean", "index": 54, "name": "is_current_employee_twenty_years", "comment": "Tracks whether a worker is active for more than twenty years."}, "is_current_employee_thirty_years": {"type": "boolean", "index": 55, "name": "is_current_employee_thirty_years", "comment": "Tracks whether a worker is active for more than thirty years."}}, "stats": {"has_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": "public_workday_dev", "name": "workday__job_overview", "database": "postgres", "comment": "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.", "owner": "postgres"}, "columns": {"job_profile_id": {"type": "text", "index": 1, "name": "job_profile_id", "comment": "Identifier for the job profile."}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": "The record's source if the unioning functionality is used. Otherwise this field will be empty."}, "job_profile_code": {"type": "text", "index": 3, "name": "job_profile_code", "comment": "Code assigned to the job profile."}, "job_title": {"type": "text", "index": 4, "name": "job_title", "comment": "The title of the job for the worker."}, "private_title": {"type": "integer", "index": 5, "name": "private_title", "comment": "The private title associated with the job."}, "job_summary": {"type": "text", "index": 6, "name": "job_summary", "comment": "The summary of the job."}, "job_description": {"type": "text", "index": 7, "name": "job_description", "comment": "Brief description of the job profile."}, "job_family_codes": {"type": "text", "index": 8, "name": "job_family_codes", "comment": "String array of all job family codes assigned to a job profile."}, "job_family_summaries": {"type": "text", "index": 9, "name": "job_family_summaries", "comment": "String array of all job family summaries assigned to a job profile."}, "job_family_group_codes": {"type": "text", "index": 10, "name": "job_family_group_codes", "comment": "String array of all job family group codes assigned to a job profile."}, "job_family_group_summaries": {"type": "text", "index": 11, "name": "job_family_group_summaries", "comment": "String array of all job family group summaries assigned to a job profile."}}, "stats": {"has_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": "public_workday_dev", "name": "workday__monthly_summary", "database": "postgres", "comment": "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.", "owner": "postgres"}, "columns": {"metrics_month": {"type": "date", "index": 1, "name": "metrics_month", "comment": "Month in which metrics are being aggregated."}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": "The record's source if the unioning functionality is used. Otherwise this field will be empty."}, "new_employees": {"type": "bigint", "index": 3, "name": "new_employees", "comment": "New employees that came in this month."}, "churned_employees": {"type": "bigint", "index": 4, "name": "churned_employees", "comment": "Churned employees that came in this month."}, "churned_voluntary_employees": {"type": "bigint", "index": 5, "name": "churned_voluntary_employees", "comment": "Voluntary churned employees that came in this month."}, "churned_involuntary_employees": {"type": "bigint", "index": 6, "name": "churned_involuntary_employees", "comment": "Involuntary churned employees that came in this month."}, "churned_workers": {"type": "bigint", "index": 7, "name": "churned_workers", "comment": "Churned workers that came in this month."}, "active_employees": {"type": "bigint", "index": 8, "name": "active_employees", "comment": "Employees considered active this month."}, "active_male_employees": {"type": "bigint", "index": 9, "name": "active_male_employees", "comment": "Male employees considered active this month."}, "active_female_employees": {"type": "bigint", "index": 10, "name": "active_female_employees", "comment": "Female employees considered active this month."}, "active_workers": {"type": "bigint", "index": 11, "name": "active_workers", "comment": "Workers considered active this month."}, "active_known_gender_employees": {"type": "bigint", "index": 12, "name": "active_known_gender_employees", "comment": "Known gender employees considered active this month."}, "avg_employee_primary_compensation": {"type": "double precision", "index": 13, "name": "avg_employee_primary_compensation", "comment": "Average primary compensation salary of employee that month."}, "avg_employee_base_pay": {"type": "double precision", "index": 14, "name": "avg_employee_base_pay", "comment": "Average base pay of the employee that month."}, "avg_employee_salary_and_allowances": {"type": "double precision", "index": 15, "name": "avg_employee_salary_and_allowances", "comment": "Average salary and allowances of the employee that month."}, "avg_days_as_employee": {"type": "numeric", "index": 16, "name": "avg_days_as_employee", "comment": "Average days employee has been active month."}, "avg_worker_primary_compensation": {"type": "double precision", "index": 17, "name": "avg_worker_primary_compensation", "comment": "Average primary compensation for the worker this month."}, "avg_worker_base_pay": {"type": "double precision", "index": 18, "name": "avg_worker_base_pay", "comment": "Average base pay for the worker this month."}, "avg_worker_salary_and_allowances": {"type": "double precision", "index": 19, "name": "avg_worker_salary_and_allowances", "comment": "Average salary plus allowances for the worker this month."}, "avg_days_as_worker": {"type": "numeric", "index": 20, "name": "avg_days_as_worker", "comment": "Average days as a worker this month."}}, "stats": {"has_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": "public_workday_dev", "name": "workday__organization_overview", "database": "postgres", "comment": "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.", "owner": "postgres"}, "columns": {"organization_id": {"type": "text", "index": 1, "name": "organization_id", "comment": "Identifier for the organization."}, "organization_role_id": {"type": "text", "index": 2, "name": "organization_role_id", "comment": "The role id associated with the organization."}, "worker_id": {"type": "text", "index": 3, "name": "worker_id", "comment": "Unique identifier for the worker."}, "position_id": {"type": "text", "index": 4, "name": "position_id", "comment": "Identifier for the specific position."}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": "The record's source if the unioning functionality is used. Otherwise this field will be empty."}, "organization_code": {"type": "text", "index": 6, "name": "organization_code", "comment": "Code associated with the organization."}, "organization_name": {"type": "text", "index": 7, "name": "organization_name", "comment": "Name of the organization."}, "organization_type": {"type": "text", "index": 8, "name": "organization_type", "comment": "Type or category of the organization."}, "organization_sub_type": {"type": "text", "index": 9, "name": "organization_sub_type", "comment": "Subtype or classification of the organization."}, "superior_organization_id": {"type": "text", "index": 10, "name": "superior_organization_id", "comment": "Identifier for the superior organization, if applicable."}, "top_level_organization_id": {"type": "text", "index": 11, "name": "top_level_organization_id", "comment": "Identifier for the top-level organization, if applicable."}, "manager_id": {"type": "text", "index": 12, "name": "manager_id", "comment": "Identifier for the manager associated with the organization."}, "organization_role_code": {"type": "text", "index": 13, "name": "organization_role_code", "comment": "Code assigned to the organization role for reference and categorization."}}, "stats": {"has_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": "public_workday_dev", "name": "workday__position_overview", "database": "postgres", "comment": "Each record represents a position with enriched data on positions. This allows end users to understand position availabilities, vacancies, cost to optimize hiring efforts.", "owner": "postgres"}, "columns": {"position_id": {"type": "text", "index": 1, "name": "position_id", "comment": "Identifier for the specific position."}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": "The record's source if the unioning functionality is used. Otherwise this field will be empty."}, "position_code": {"type": "text", "index": 3, "name": "position_code", "comment": "Code associated with the position for reference and categorization."}, "job_posting_title": {"type": "text", "index": 4, "name": "job_posting_title", "comment": "Title used for job postings associated with the position."}, "effective_date": {"type": "date", "index": 5, "name": "effective_date", "comment": "Date when the job profile becomes effective."}, "is_closed": {"type": "boolean", "index": 6, "name": "is_closed", "comment": "Flag indicating whether the position is closed."}, "is_hiring_freeze": {"type": "boolean", "index": 7, "name": "is_hiring_freeze", "comment": "Flag indicating whether the organization is under a hiring freeze."}, "is_available_for_hire": {"type": "boolean", "index": 8, "name": "is_available_for_hire", "comment": "Flag indicating whether the organization is available for hiring."}, "availability_date": {"type": "date", "index": 9, "name": "availability_date", "comment": "Date when the organization becomes available."}, "is_available_for_recruiting": {"type": "boolean", "index": 10, "name": "is_available_for_recruiting", "comment": "Flag indicating whether the position is available for recruiting."}, "earliest_hire_date": {"type": "date", "index": 11, "name": "earliest_hire_date", "comment": "Earliest date when the position can be filled."}, "is_available_for_overlap": {"type": "boolean", "index": 12, "name": "is_available_for_overlap", "comment": "Flag indicating whether the position is available for overlap with other positions."}, "earliest_overlap_date": {"type": "integer", "index": 13, "name": "earliest_overlap_date", "comment": "Earliest date when the position can overlap with other positions."}, "worker_for_filled_position_id": {"type": "text", "index": 14, "name": "worker_for_filled_position_id", "comment": "Identifier for the worker filling the position, if applicable."}, "worker_type_code": {"type": "text", "index": 15, "name": "worker_type_code", "comment": "Code indicating the type of worker associated with the position."}, "position_time_type_code": {"type": "text", "index": 16, "name": "position_time_type_code", "comment": "Code indicating the time type associated with the position."}, "supervisory_organization_id": {"type": "text", "index": 17, "name": "supervisory_organization_id", "comment": "Identifier for the supervisory organization associated with the position."}, "job_profile_id": {"type": "text", "index": 18, "name": "job_profile_id", "comment": "Identifier for the job profile."}, "compensation_package_code": {"type": "integer", "index": 19, "name": "compensation_package_code", "comment": "Code associated with the compensation package of the position."}, "compensation_grade_code": {"type": "integer", "index": 20, "name": "compensation_grade_code", "comment": "Code associated with the compensation grade of the position."}, "compensation_grade_profile_code": {"type": "integer", "index": 21, "name": "compensation_grade_profile_code", "comment": "Code associated with the compensation grade profile of the position."}}, "stats": {"has_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": "public_workday_dev", "name": "workday__worker_position_org_daily_history", "database": "postgres", "comment": "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.", "owner": "postgres"}, "columns": {"wpo_day_id": {"type": "text", "index": 1, "name": "wpo_day_id", "comment": "Surrogate key hashed on `date_day` and `history_unique_key`"}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": "Date on which the account had these field values."}, "worker_id": {"type": "text", "index": 3, "name": "worker_id", "comment": "Unique identifier for the worker."}, "position_id": {"type": "text", "index": 4, "name": "position_id", "comment": "Identifier for the specific position."}, "organization_id": {"type": "text", "index": 5, "name": "organization_id", "comment": "Identifier for the organization."}, "source_relation": {"type": "text", "index": 6, "name": "source_relation", "comment": "The record's source if the unioning functionality is used. Otherwise this field will be empty."}, "_fivetran_start": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_start", "comment": "Timestamp when the record was first created or modified in the source."}, "_fivetran_end": {"type": "timestamp without time zone", "index": 8, "name": "_fivetran_end", "comment": "Timestamp marking the end of a record being active."}, "_fivetran_active": {"type": "boolean", "index": 9, "name": "_fivetran_active", "comment": "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."}, "_fivetran_date": {"type": "date", "index": 10, "name": "_fivetran_date", "comment": "Date when the record was first created or modified in the source."}, "history_unique_key": {"type": "text", "index": 11, "name": "history_unique_key", "comment": "Surrogate key hashed on `position_id`, `worker_id`, `organization_id`, `source_relation`, and `_fivetran_start` ."}, "index": {"type": "integer", "index": 12, "name": "index", "comment": "An index for a particular identifier."}, "date_of_pay_group_assignment": {"type": "integer", "index": 13, "name": "date_of_pay_group_assignment", "comment": "Date a group's pay is assigned to be processed."}, "primary_business_site": {"type": "integer", "index": 14, "name": "primary_business_site", "comment": "Primary location a worker's business is situated."}, "is_used_in_change_organization_assignments": {"type": "boolean", "index": 15, "name": "is_used_in_change_organization_assignments", "comment": "If a worker has opted to change these organization assignments."}}, "stats": {"has_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.country_personal_information": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "workday_country_personal_information_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"fivetran_id": {"type": "text", "index": 1, "name": "fivetran_id", "comment": null}, "personal_info_common_id": {"type": "text", "index": 2, "name": "personal_info_common_id", "comment": null}, "country_code": {"type": "text", "index": 3, "name": "country_code", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 5, "name": "_fivetran_deleted", "comment": null}, "gender": {"type": "text", "index": 6, "name": "gender", "comment": null}, "hispanic_or_latino": {"type": "integer", "index": 7, "name": "hispanic_or_latino", "comment": null}, "hukou_locality": {"type": "integer", "index": 8, "name": "hukou_locality", "comment": null}, "hukou_postal_code": {"type": "integer", "index": 9, "name": "hukou_postal_code", "comment": null}, "hukou_region_code": {"type": "integer", "index": 10, "name": "hukou_region_code", "comment": null}, "hukou_subregion_code": {"type": "integer", "index": 11, "name": "hukou_subregion_code", "comment": null}, "hukou_type_code": {"type": "integer", "index": 12, "name": "hukou_type_code", "comment": null}, "local_hukou": {"type": "integer", "index": 13, "name": "local_hukou", "comment": null}, "marital_status": {"type": "text", "index": 14, "name": "marital_status", "comment": null}, "marital_status_date": {"type": "integer", "index": 15, "name": "marital_status_date", "comment": null}, "native_region_code": {"type": "integer", "index": 16, "name": "native_region_code", "comment": null}, "native_region": {"type": "text", "index": 17, "name": "native_region", "comment": null}, "personnel_file_agency_for_person": {"type": "integer", "index": 18, "name": "personnel_file_agency_for_person", "comment": null}, "political_affiliation": {"type": "text", "index": 19, "name": "political_affiliation", "comment": null}, "religion": {"type": "integer", "index": 20, "name": "religion", "comment": null}, "social_benefits_locality": {"type": "integer", "index": 21, "name": "social_benefits_locality", "comment": null}}, "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.country_personal_information"}, "source.workday.workday.job_family": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "workday_job_family_data", "database": "postgres", "comment": null, "owner": "postgres"}, "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": "public", "name": "workday_job_family_group_data", "database": "postgres", "comment": null, "owner": "postgres"}, "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": "public", "name": "workday_job_family_job_family_group_data", "database": "postgres", "comment": null, "owner": "postgres"}, "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": "public", "name": "workday_job_family_job_profile_data", "database": "postgres", "comment": null, "owner": "postgres"}, "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": "public", "name": "workday_job_profile_data", "database": "postgres", "comment": null, "owner": "postgres"}, "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": "public", "name": "workday_military_service_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "personal_info_common_id": {"type": "text", "index": 3, "name": "personal_info_common_id", "comment": null}, "discharge_date": {"type": "date", "index": 4, "name": "discharge_date", "comment": null}, "discharge_type": {"type": "integer", "index": 5, "name": "discharge_type", "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}, "status_id": {"type": "text", "index": 9, "name": "status_id", "comment": null}, "status_begin_date": {"type": "integer", "index": 10, "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": "public", "name": "workday_organization_data", "database": "postgres", "comment": null, "owner": "postgres"}, "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": "public", "name": "workday_organization_job_family_data", "database": "postgres", "comment": null, "owner": "postgres"}, "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": "public", "name": "workday_organization_role_data", "database": "postgres", "comment": null, "owner": "postgres"}, "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": "public", "name": "workday_organization_role_worker_data", "database": "postgres", "comment": null, "owner": "postgres"}, "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": "public", "name": "workday_person_contact_email_address_data", "database": "postgres", "comment": null, "owner": "postgres"}, "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": "public", "name": "workday_person_name_data", "database": "postgres", "comment": null, "owner": "postgres"}, "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_common_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "workday_personal_information_common_data_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"fivetran_id": {"type": "text", "index": 1, "name": "fivetran_id", "comment": null}, "worker_id": {"type": "text", "index": 2, "name": "worker_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "additional_nationality": {"type": "integer", "index": 5, "name": "additional_nationality", "comment": null}, "blood_type": {"type": "integer", "index": 6, "name": "blood_type", "comment": null}, "citizenship_status": {"type": "text", "index": 7, "name": "citizenship_status", "comment": null}, "city_of_birth": {"type": "text", "index": 8, "name": "city_of_birth", "comment": null}, "city_of_birth_code": {"type": "integer", "index": 9, "name": "city_of_birth_code", "comment": null}, "country_of_birth": {"type": "text", "index": 10, "name": "country_of_birth", "comment": null}, "country_region_of_birth": {"type": "integer", "index": 11, "name": "country_region_of_birth", "comment": null}, "date_of_birth": {"type": "date", "index": 12, "name": "date_of_birth", "comment": null}, "date_of_death": {"type": "integer", "index": 13, "name": "date_of_death", "comment": null}, "last_medical_exam_date": {"type": "integer", "index": 14, "name": "last_medical_exam_date", "comment": null}, "last_medical_exam_valid_to": {"type": "integer", "index": 15, "name": "last_medical_exam_valid_to", "comment": null}, "medical_exam_notes": {"type": "integer", "index": 16, "name": "medical_exam_notes", "comment": null}, "primary_nationality": {"type": "text", "index": 17, "name": "primary_nationality", "comment": null}, "region_of_birth": {"type": "integer", "index": 18, "name": "region_of_birth", "comment": null}}, "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_common_data"}, "source.workday.workday.personal_information_ethnicity": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "workday_personal_information_ethnicity_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "id": {"type": "text", "index": 3, "name": "id", "comment": null}, "country_personal_information_id": {"type": "text", "index": 4, "name": "country_personal_information_id", "comment": null}, "ethnicity_code": {"type": "text", "index": 5, "name": "ethnicity_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.personal_information_ethnicity"}, "source.workday.workday.personal_information_history": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "workday_personal_information_history_data", "database": "postgres", "comment": null, "owner": "postgres"}, "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": "date", "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": "public", "name": "workday_position_data", "database": "postgres", "comment": null, "owner": "postgres"}, "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": "double precision", "index": 26, "name": "primary_compensation_basis_amount_change", "comment": null}, "primary_compensation_basis_percent_change": {"type": "double precision", "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": "public", "name": "workday_position_job_profile_data", "database": "postgres", "comment": null, "owner": "postgres"}, "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": "public", "name": "workday_position_organization_data", "database": "postgres", "comment": null, "owner": "postgres"}, "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}, "_fivetran_active": {"type": "boolean", "index": 6, "name": "_fivetran_active", "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}}, "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": "public", "name": "workday_worker_history_data", "database": "postgres", "comment": null, "owner": "postgres"}, "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_deleted": {"type": "boolean", "index": 5, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "academic_tenure_date": {"type": "integer", "index": 7, "name": "academic_tenure_date", "comment": null}, "active": {"type": "boolean", "index": 8, "name": "active", "comment": null}, "active_status_date": {"type": "date", "index": 9, "name": "active_status_date", "comment": null}, "annual_currency_summary_currency": {"type": "text", "index": 10, "name": "annual_currency_summary_currency", "comment": null}, "annual_currency_summary_frequency": {"type": "text", "index": 11, "name": "annual_currency_summary_frequency", "comment": null}, "annual_currency_summary_primary_compensation_basis": {"type": "double precision", "index": 12, "name": "annual_currency_summary_primary_compensation_basis", "comment": null}, "annual_currency_summary_total_base_pay": {"type": "double precision", "index": 13, "name": "annual_currency_summary_total_base_pay", "comment": null}, "annual_currency_summary_total_salary_and_allowances": {"type": "double precision", "index": 14, "name": "annual_currency_summary_total_salary_and_allowances", "comment": null}, "annual_summary_currency": {"type": "text", "index": 15, "name": "annual_summary_currency", "comment": null}, "annual_summary_frequency": {"type": "text", "index": 16, "name": "annual_summary_frequency", "comment": null}, "annual_summary_primary_compensation_basis": {"type": "double precision", "index": 17, "name": "annual_summary_primary_compensation_basis", "comment": null}, "annual_summary_total_base_pay": {"type": "double precision", "index": 18, "name": "annual_summary_total_base_pay", "comment": null}, "annual_summary_total_salary_and_allowances": {"type": "double precision", "index": 19, "name": "annual_summary_total_salary_and_allowances", "comment": null}, "benefits_service_date": {"type": "integer", "index": 20, "name": "benefits_service_date", "comment": null}, "company_service_date": {"type": "integer", "index": 21, "name": "company_service_date", "comment": null}, "compensation_effective_date": {"type": "date", "index": 22, "name": "compensation_effective_date", "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}, "continuous_service_date": {"type": "date", "index": 25, "name": "continuous_service_date", "comment": null}, "contract_assignment_details": {"type": "integer", "index": 26, "name": "contract_assignment_details", "comment": null}, "contract_currency_code": {"type": "integer", "index": 27, "name": "contract_currency_code", "comment": null}, "contract_end_date": {"type": "integer", "index": 28, "name": "contract_end_date", "comment": null}, "contract_frequency_name": {"type": "integer", "index": 29, "name": "contract_frequency_name", "comment": null}, "contract_pay_rate": {"type": "double precision", "index": 30, "name": "contract_pay_rate", "comment": null}, "contract_vendor_name": {"type": "integer", "index": 31, "name": "contract_vendor_name", "comment": null}, "date_entered_workforce": {"type": "integer", "index": 32, "name": "date_entered_workforce", "comment": null}, "days_unemployed": {"type": "double precision", "index": 33, "name": "days_unemployed", "comment": null}, "eligible_for_hire": {"type": "text", "index": 34, "name": "eligible_for_hire", "comment": null}, "eligible_for_rehire_on_latest_termination": {"type": "text", "index": 35, "name": "eligible_for_rehire_on_latest_termination", "comment": null}, "employee_compensation_currency": {"type": "text", "index": 36, "name": "employee_compensation_currency", "comment": null}, "employee_compensation_frequency": {"type": "text", "index": 37, "name": "employee_compensation_frequency", "comment": null}, "employee_compensation_primary_compensation_basis": {"type": "double precision", "index": 38, "name": "employee_compensation_primary_compensation_basis", "comment": null}, "employee_compensation_total_base_pay": {"type": "double precision", "index": 39, "name": "employee_compensation_total_base_pay", "comment": null}, "employee_compensation_total_salary_and_allowances": {"type": "double precision", "index": 40, "name": "employee_compensation_total_salary_and_allowances", "comment": null}, "end_employment_date": {"type": "date", "index": 41, "name": "end_employment_date", "comment": null}, "expected_date_of_return": {"type": "integer", "index": 42, "name": "expected_date_of_return", "comment": null}, "expected_retirement_date": {"type": "integer", "index": 43, "name": "expected_retirement_date", "comment": null}, "first_day_of_work": {"type": "date", "index": 44, "name": "first_day_of_work", "comment": null}, "has_international_assignment": {"type": "boolean", "index": 45, "name": "has_international_assignment", "comment": null}, "hire_date": {"type": "date", "index": 46, "name": "hire_date", "comment": null}, "hire_reason": {"type": "text", "index": 47, "name": "hire_reason", "comment": null}, "hire_rescinded": {"type": "boolean", "index": 48, "name": "hire_rescinded", "comment": null}, "home_country": {"type": "integer", "index": 49, "name": "home_country", "comment": null}, "hourly_frequency_currency": {"type": "text", "index": 50, "name": "hourly_frequency_currency", "comment": null}, "hourly_frequency_frequency": {"type": "text", "index": 51, "name": "hourly_frequency_frequency", "comment": null}, "hourly_frequency_primary_compensation_basis": {"type": "double precision", "index": 52, "name": "hourly_frequency_primary_compensation_basis", "comment": null}, "hourly_frequency_total_base_pay": {"type": "double precision", "index": 53, "name": "hourly_frequency_total_base_pay", "comment": null}, "hourly_frequency_total_salary_and_allowances": {"type": "double precision", "index": 54, "name": "hourly_frequency_total_salary_and_allowances", "comment": null}, "last_datefor_which_paid": {"type": "integer", "index": 55, "name": "last_datefor_which_paid", "comment": null}, "local_termination_reason": {"type": "integer", "index": 56, "name": "local_termination_reason", "comment": null}, "months_continuous_prior_employment": {"type": "double precision", "index": 57, "name": "months_continuous_prior_employment", "comment": null}, "not_returning": {"type": "boolean", "index": 58, "name": "not_returning", "comment": null}, "original_hire_date": {"type": "date", "index": 59, "name": "original_hire_date", "comment": null}, "pay_group_frequency_currency": {"type": "text", "index": 60, "name": "pay_group_frequency_currency", "comment": null}, "pay_group_frequency_frequency": {"type": "integer", "index": 61, "name": "pay_group_frequency_frequency", "comment": null}, "pay_group_frequency_primary_compensation_basis": {"type": "double precision", "index": 62, "name": "pay_group_frequency_primary_compensation_basis", "comment": null}, "pay_group_frequency_total_base_pay": {"type": "double precision", "index": 63, "name": "pay_group_frequency_total_base_pay", "comment": null}, "pay_group_frequency_total_salary_and_allowances": {"type": "double precision", "index": 64, "name": "pay_group_frequency_total_salary_and_allowances", "comment": null}, "pay_through_date": {"type": "date", "index": 65, "name": "pay_through_date", "comment": null}, "primary_termination_category": {"type": "text", "index": 66, "name": "primary_termination_category", "comment": null}, "primary_termination_reason": {"type": "text", "index": 67, "name": "primary_termination_reason", "comment": null}, "probation_end_date": {"type": "integer", "index": 68, "name": "probation_end_date", "comment": null}, "probation_start_date": {"type": "integer", "index": 69, "name": "probation_start_date", "comment": null}, "reason_reference_id": {"type": "text", "index": 70, "name": "reason_reference_id", "comment": null}, "regrettable_termination": {"type": "boolean", "index": 71, "name": "regrettable_termination", "comment": null}, "rehire": {"type": "boolean", "index": 72, "name": "rehire", "comment": null}, "resignation_date": {"type": "integer", "index": 73, "name": "resignation_date", "comment": null}, "retired": {"type": "boolean", "index": 74, "name": "retired", "comment": null}, "retirement_date": {"type": "integer", "index": 75, "name": "retirement_date", "comment": null}, "retirement_eligibility_date": {"type": "integer", "index": 76, "name": "retirement_eligibility_date", "comment": null}, "return_unknown": {"type": "boolean", "index": 77, "name": "return_unknown", "comment": null}, "seniority_date": {"type": "date", "index": 78, "name": "seniority_date", "comment": null}, "severance_date": {"type": "integer", "index": 79, "name": "severance_date", "comment": null}, "terminated": {"type": "boolean", "index": 80, "name": "terminated", "comment": null}, "termination_date": {"type": "date", "index": 81, "name": "termination_date", "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": "source.workday.workday.worker_history"}, "source.workday.workday.worker_leave_status": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "workday_worker_leave_status_data", "database": "postgres", "comment": null, "owner": "postgres"}, "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": "double precision", "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": "double precision", "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": "double precision", "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": "double precision", "index": 32, "name": "number_of_babies_adopted_children", "comment": null}, "number_of_child_dependents": {"type": "double precision", "index": 33, "name": "number_of_child_dependents", "comment": null}, "number_of_previous_births": {"type": "double precision", "index": 34, "name": "number_of_previous_births", "comment": null}, "number_of_previous_maternity_leaves": {"type": "double precision", "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": "public", "name": "workday_worker_position_history_data", "database": "postgres", "comment": null, "owner": "postgres"}, "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_deleted": {"type": "boolean", "index": 6, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "academic_pay_setup_data_annual_work_period_end_date": {"type": "integer", "index": 8, "name": "academic_pay_setup_data_annual_work_period_end_date", "comment": null}, "academic_pay_setup_data_annual_work_period_start_date": {"type": "integer", "index": 9, "name": "academic_pay_setup_data_annual_work_period_start_date", "comment": null}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"type": "double precision", "index": 10, "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": 11, "name": "academic_pay_setup_data_disbursement_plan_period_end_date", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"type": "integer", "index": 12, "name": "academic_pay_setup_data_disbursement_plan_period_start_date", "comment": null}, "business_site_summary_display_language": {"type": "text", "index": 13, "name": "business_site_summary_display_language", "comment": null}, "business_site_summary_local": {"type": "text", "index": 14, "name": "business_site_summary_local", "comment": null}, "business_site_summary_location": {"type": "text", "index": 15, "name": "business_site_summary_location", "comment": null}, "business_site_summary_location_type": {"type": "text", "index": 16, "name": "business_site_summary_location_type", "comment": null}, "business_site_summary_name": {"type": "text", "index": 17, "name": "business_site_summary_name", "comment": null}, "business_site_summary_scheduled_weekly_hours": {"type": "double precision", "index": 18, "name": "business_site_summary_scheduled_weekly_hours", "comment": null}, "business_site_summary_time_profile": {"type": "text", "index": 19, "name": "business_site_summary_time_profile", "comment": null}, "business_title": {"type": "text", "index": 20, "name": "business_title", "comment": null}, "critical_job": {"type": "boolean", "index": 21, "name": "critical_job", "comment": null}, "default_weekly_hours": {"type": "double precision", "index": 22, "name": "default_weekly_hours", "comment": null}, "difficulty_to_fill": {"type": "text", "index": 23, "name": "difficulty_to_fill", "comment": null}, "effective_date": {"type": "date", "index": 24, "name": "effective_date", "comment": null}, "employee_type": {"type": "text", "index": 25, "name": "employee_type", "comment": null}, "end_date": {"type": "date", "index": 26, "name": "end_date", "comment": null}, "end_employment_date": {"type": "date", "index": 27, "name": "end_employment_date", "comment": null}, "exclude_from_head_count": {"type": "boolean", "index": 28, "name": "exclude_from_head_count", "comment": null}, "expected_assignment_end_date": {"type": "integer", "index": 29, "name": "expected_assignment_end_date", "comment": null}, "external_employee": {"type": "integer", "index": 30, "name": "external_employee", "comment": null}, "federal_withholding_fein": {"type": "integer", "index": 31, "name": "federal_withholding_fein", "comment": null}, "frequency": {"type": "text", "index": 32, "name": "frequency", "comment": null}, "full_time_equivalent_percentage": {"type": "integer", "index": 33, "name": "full_time_equivalent_percentage", "comment": null}, "headcount_restriction_code": {"type": "integer", "index": 34, "name": "headcount_restriction_code", "comment": null}, "home_country": {"type": "integer", "index": 35, "name": "home_country", "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": "source.workday.workday.worker_position_history"}, "source.workday.workday.worker_position_organization_history": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "workday_worker_position_organization_history_data", "database": "postgres", "comment": null, "owner": "postgres"}, "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.11.11", "generated_at": "2026-06-25T21:23:00.487971Z", "invocation_id": "64d0afb4-cb41-4baa-bb88-8ea782e44061", "invocation_started_at": "2026-06-25T21:22:55.667104Z", "env": {}}, "nodes": {"seed.workday_integration_tests.workday_country_personal_information_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "workday_country_personal_information_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"fivetran_id": {"type": "text", "index": 1, "name": "fivetran_id", "comment": null}, "personal_info_common_id": {"type": "text", "index": 2, "name": "personal_info_common_id", "comment": null}, "country_code": {"type": "text", "index": 3, "name": "country_code", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 5, "name": "_fivetran_deleted", "comment": null}, "gender": {"type": "text", "index": 6, "name": "gender", "comment": null}, "hispanic_or_latino": {"type": "integer", "index": 7, "name": "hispanic_or_latino", "comment": null}, "hukou_locality": {"type": "integer", "index": 8, "name": "hukou_locality", "comment": null}, "hukou_postal_code": {"type": "integer", "index": 9, "name": "hukou_postal_code", "comment": null}, "hukou_region_code": {"type": "integer", "index": 10, "name": "hukou_region_code", "comment": null}, "hukou_subregion_code": {"type": "integer", "index": 11, "name": "hukou_subregion_code", "comment": null}, "hukou_type_code": {"type": "integer", "index": 12, "name": "hukou_type_code", "comment": null}, "local_hukou": {"type": "integer", "index": 13, "name": "local_hukou", "comment": null}, "marital_status": {"type": "text", "index": 14, "name": "marital_status", "comment": null}, "marital_status_date": {"type": "integer", "index": 15, "name": "marital_status_date", "comment": null}, "native_region_code": {"type": "integer", "index": 16, "name": "native_region_code", "comment": null}, "native_region": {"type": "text", "index": 17, "name": "native_region", "comment": null}, "personnel_file_agency_for_person": {"type": "integer", "index": 18, "name": "personnel_file_agency_for_person", "comment": null}, "political_affiliation": {"type": "text", "index": 19, "name": "political_affiliation", "comment": null}, "religion": {"type": "integer", "index": 20, "name": "religion", "comment": null}, "social_benefits_locality": {"type": "integer", "index": 21, "name": "social_benefits_locality", "comment": null}}, "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_country_personal_information_data"}, "seed.workday_integration_tests.workday_job_family_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "workday_job_family_data", "database": "postgres", "comment": null, "owner": "postgres"}, "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": "public", "name": "workday_job_family_group_data", "database": "postgres", "comment": null, "owner": "postgres"}, "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": "public", "name": "workday_job_family_job_family_group_data", "database": "postgres", "comment": null, "owner": "postgres"}, "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": "public", "name": "workday_job_family_job_profile_data", "database": "postgres", "comment": null, "owner": "postgres"}, "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": "public", "name": "workday_job_profile_data", "database": "postgres", "comment": null, "owner": "postgres"}, "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": "public", "name": "workday_military_service_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "personal_info_common_id": {"type": "text", "index": 3, "name": "personal_info_common_id", "comment": null}, "discharge_date": {"type": "date", "index": 4, "name": "discharge_date", "comment": null}, "discharge_type": {"type": "integer", "index": 5, "name": "discharge_type", "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}, "status_id": {"type": "text", "index": 9, "name": "status_id", "comment": null}, "status_begin_date": {"type": "integer", "index": 10, "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": "public", "name": "workday_organization_data", "database": "postgres", "comment": null, "owner": "postgres"}, "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": "public", "name": "workday_organization_job_family_data", "database": "postgres", "comment": null, "owner": "postgres"}, "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": "public", "name": "workday_organization_role_data", "database": "postgres", "comment": null, "owner": "postgres"}, "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": "public", "name": "workday_organization_role_worker_data", "database": "postgres", "comment": null, "owner": "postgres"}, "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": "public", "name": "workday_person_contact_email_address_data", "database": "postgres", "comment": null, "owner": "postgres"}, "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": "public", "name": "workday_person_name_data", "database": "postgres", "comment": null, "owner": "postgres"}, "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_common_data_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "workday_personal_information_common_data_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"fivetran_id": {"type": "text", "index": 1, "name": "fivetran_id", "comment": null}, "worker_id": {"type": "text", "index": 2, "name": "worker_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "additional_nationality": {"type": "integer", "index": 5, "name": "additional_nationality", "comment": null}, "blood_type": {"type": "integer", "index": 6, "name": "blood_type", "comment": null}, "citizenship_status": {"type": "text", "index": 7, "name": "citizenship_status", "comment": null}, "city_of_birth": {"type": "text", "index": 8, "name": "city_of_birth", "comment": null}, "city_of_birth_code": {"type": "integer", "index": 9, "name": "city_of_birth_code", "comment": null}, "country_of_birth": {"type": "text", "index": 10, "name": "country_of_birth", "comment": null}, "country_region_of_birth": {"type": "integer", "index": 11, "name": "country_region_of_birth", "comment": null}, "date_of_birth": {"type": "date", "index": 12, "name": "date_of_birth", "comment": null}, "date_of_death": {"type": "integer", "index": 13, "name": "date_of_death", "comment": null}, "last_medical_exam_date": {"type": "integer", "index": 14, "name": "last_medical_exam_date", "comment": null}, "last_medical_exam_valid_to": {"type": "integer", "index": 15, "name": "last_medical_exam_valid_to", "comment": null}, "medical_exam_notes": {"type": "integer", "index": 16, "name": "medical_exam_notes", "comment": null}, "primary_nationality": {"type": "text", "index": 17, "name": "primary_nationality", "comment": null}, "region_of_birth": {"type": "integer", "index": 18, "name": "region_of_birth", "comment": null}}, "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_common_data_data"}, "seed.workday_integration_tests.workday_personal_information_ethnicity_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "workday_personal_information_ethnicity_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "id": {"type": "text", "index": 3, "name": "id", "comment": null}, "country_personal_information_id": {"type": "text", "index": 4, "name": "country_personal_information_id", "comment": null}, "ethnicity_code": {"type": "text", "index": 5, "name": "ethnicity_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_personal_information_ethnicity_data"}, "seed.workday_integration_tests.workday_personal_information_history_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "workday_personal_information_history_data", "database": "postgres", "comment": null, "owner": "postgres"}, "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": "date", "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": "public", "name": "workday_position_data", "database": "postgres", "comment": null, "owner": "postgres"}, "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": "double precision", "index": 26, "name": "primary_compensation_basis_amount_change", "comment": null}, "primary_compensation_basis_percent_change": {"type": "double precision", "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": "public", "name": "workday_position_job_profile_data", "database": "postgres", "comment": null, "owner": "postgres"}, "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": "public", "name": "workday_position_organization_data", "database": "postgres", "comment": null, "owner": "postgres"}, "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}, "_fivetran_active": {"type": "boolean", "index": 6, "name": "_fivetran_active", "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}}, "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": "public", "name": "workday_worker_history_data", "database": "postgres", "comment": null, "owner": "postgres"}, "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_deleted": {"type": "boolean", "index": 5, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "academic_tenure_date": {"type": "integer", "index": 7, "name": "academic_tenure_date", "comment": null}, "active": {"type": "boolean", "index": 8, "name": "active", "comment": null}, "active_status_date": {"type": "date", "index": 9, "name": "active_status_date", "comment": null}, "annual_currency_summary_currency": {"type": "text", "index": 10, "name": "annual_currency_summary_currency", "comment": null}, "annual_currency_summary_frequency": {"type": "text", "index": 11, "name": "annual_currency_summary_frequency", "comment": null}, "annual_currency_summary_primary_compensation_basis": {"type": "double precision", "index": 12, "name": "annual_currency_summary_primary_compensation_basis", "comment": null}, "annual_currency_summary_total_base_pay": {"type": "double precision", "index": 13, "name": "annual_currency_summary_total_base_pay", "comment": null}, "annual_currency_summary_total_salary_and_allowances": {"type": "double precision", "index": 14, "name": "annual_currency_summary_total_salary_and_allowances", "comment": null}, "annual_summary_currency": {"type": "text", "index": 15, "name": "annual_summary_currency", "comment": null}, "annual_summary_frequency": {"type": "text", "index": 16, "name": "annual_summary_frequency", "comment": null}, "annual_summary_primary_compensation_basis": {"type": "double precision", "index": 17, "name": "annual_summary_primary_compensation_basis", "comment": null}, "annual_summary_total_base_pay": {"type": "double precision", "index": 18, "name": "annual_summary_total_base_pay", "comment": null}, "annual_summary_total_salary_and_allowances": {"type": "double precision", "index": 19, "name": "annual_summary_total_salary_and_allowances", "comment": null}, "benefits_service_date": {"type": "integer", "index": 20, "name": "benefits_service_date", "comment": null}, "company_service_date": {"type": "integer", "index": 21, "name": "company_service_date", "comment": null}, "compensation_effective_date": {"type": "date", "index": 22, "name": "compensation_effective_date", "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}, "continuous_service_date": {"type": "date", "index": 25, "name": "continuous_service_date", "comment": null}, "contract_assignment_details": {"type": "integer", "index": 26, "name": "contract_assignment_details", "comment": null}, "contract_currency_code": {"type": "integer", "index": 27, "name": "contract_currency_code", "comment": null}, "contract_end_date": {"type": "integer", "index": 28, "name": "contract_end_date", "comment": null}, "contract_frequency_name": {"type": "integer", "index": 29, "name": "contract_frequency_name", "comment": null}, "contract_pay_rate": {"type": "double precision", "index": 30, "name": "contract_pay_rate", "comment": null}, "contract_vendor_name": {"type": "integer", "index": 31, "name": "contract_vendor_name", "comment": null}, "date_entered_workforce": {"type": "integer", "index": 32, "name": "date_entered_workforce", "comment": null}, "days_unemployed": {"type": "double precision", "index": 33, "name": "days_unemployed", "comment": null}, "eligible_for_hire": {"type": "text", "index": 34, "name": "eligible_for_hire", "comment": null}, "eligible_for_rehire_on_latest_termination": {"type": "text", "index": 35, "name": "eligible_for_rehire_on_latest_termination", "comment": null}, "employee_compensation_currency": {"type": "text", "index": 36, "name": "employee_compensation_currency", "comment": null}, "employee_compensation_frequency": {"type": "text", "index": 37, "name": "employee_compensation_frequency", "comment": null}, "employee_compensation_primary_compensation_basis": {"type": "double precision", "index": 38, "name": "employee_compensation_primary_compensation_basis", "comment": null}, "employee_compensation_total_base_pay": {"type": "double precision", "index": 39, "name": "employee_compensation_total_base_pay", "comment": null}, "employee_compensation_total_salary_and_allowances": {"type": "double precision", "index": 40, "name": "employee_compensation_total_salary_and_allowances", "comment": null}, "end_employment_date": {"type": "date", "index": 41, "name": "end_employment_date", "comment": null}, "expected_date_of_return": {"type": "integer", "index": 42, "name": "expected_date_of_return", "comment": null}, "expected_retirement_date": {"type": "integer", "index": 43, "name": "expected_retirement_date", "comment": null}, "first_day_of_work": {"type": "date", "index": 44, "name": "first_day_of_work", "comment": null}, "has_international_assignment": {"type": "boolean", "index": 45, "name": "has_international_assignment", "comment": null}, "hire_date": {"type": "date", "index": 46, "name": "hire_date", "comment": null}, "hire_reason": {"type": "text", "index": 47, "name": "hire_reason", "comment": null}, "hire_rescinded": {"type": "boolean", "index": 48, "name": "hire_rescinded", "comment": null}, "home_country": {"type": "integer", "index": 49, "name": "home_country", "comment": null}, "hourly_frequency_currency": {"type": "text", "index": 50, "name": "hourly_frequency_currency", "comment": null}, "hourly_frequency_frequency": {"type": "text", "index": 51, "name": "hourly_frequency_frequency", "comment": null}, "hourly_frequency_primary_compensation_basis": {"type": "double precision", "index": 52, "name": "hourly_frequency_primary_compensation_basis", "comment": null}, "hourly_frequency_total_base_pay": {"type": "double precision", "index": 53, "name": "hourly_frequency_total_base_pay", "comment": null}, "hourly_frequency_total_salary_and_allowances": {"type": "double precision", "index": 54, "name": "hourly_frequency_total_salary_and_allowances", "comment": null}, "last_datefor_which_paid": {"type": "integer", "index": 55, "name": "last_datefor_which_paid", "comment": null}, "local_termination_reason": {"type": "integer", "index": 56, "name": "local_termination_reason", "comment": null}, "months_continuous_prior_employment": {"type": "double precision", "index": 57, "name": "months_continuous_prior_employment", "comment": null}, "not_returning": {"type": "boolean", "index": 58, "name": "not_returning", "comment": null}, "original_hire_date": {"type": "date", "index": 59, "name": "original_hire_date", "comment": null}, "pay_group_frequency_currency": {"type": "text", "index": 60, "name": "pay_group_frequency_currency", "comment": null}, "pay_group_frequency_frequency": {"type": "integer", "index": 61, "name": "pay_group_frequency_frequency", "comment": null}, "pay_group_frequency_primary_compensation_basis": {"type": "double precision", "index": 62, "name": "pay_group_frequency_primary_compensation_basis", "comment": null}, "pay_group_frequency_total_base_pay": {"type": "double precision", "index": 63, "name": "pay_group_frequency_total_base_pay", "comment": null}, "pay_group_frequency_total_salary_and_allowances": {"type": "double precision", "index": 64, "name": "pay_group_frequency_total_salary_and_allowances", "comment": null}, "pay_through_date": {"type": "date", "index": 65, "name": "pay_through_date", "comment": null}, "primary_termination_category": {"type": "text", "index": 66, "name": "primary_termination_category", "comment": null}, "primary_termination_reason": {"type": "text", "index": 67, "name": "primary_termination_reason", "comment": null}, "probation_end_date": {"type": "integer", "index": 68, "name": "probation_end_date", "comment": null}, "probation_start_date": {"type": "integer", "index": 69, "name": "probation_start_date", "comment": null}, "reason_reference_id": {"type": "text", "index": 70, "name": "reason_reference_id", "comment": null}, "regrettable_termination": {"type": "boolean", "index": 71, "name": "regrettable_termination", "comment": null}, "rehire": {"type": "boolean", "index": 72, "name": "rehire", "comment": null}, "resignation_date": {"type": "integer", "index": 73, "name": "resignation_date", "comment": null}, "retired": {"type": "boolean", "index": 74, "name": "retired", "comment": null}, "retirement_date": {"type": "integer", "index": 75, "name": "retirement_date", "comment": null}, "retirement_eligibility_date": {"type": "integer", "index": 76, "name": "retirement_eligibility_date", "comment": null}, "return_unknown": {"type": "boolean", "index": 77, "name": "return_unknown", "comment": null}, "seniority_date": {"type": "date", "index": 78, "name": "seniority_date", "comment": null}, "severance_date": {"type": "integer", "index": 79, "name": "severance_date", "comment": null}, "terminated": {"type": "boolean", "index": 80, "name": "terminated", "comment": null}, "termination_date": {"type": "date", "index": 81, "name": "termination_date", "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": "seed.workday_integration_tests.workday_worker_history_data"}, "seed.workday_integration_tests.workday_worker_leave_status_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "workday_worker_leave_status_data", "database": "postgres", "comment": null, "owner": "postgres"}, "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": "double precision", "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": "double precision", "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": "double precision", "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": "double precision", "index": 32, "name": "number_of_babies_adopted_children", "comment": null}, "number_of_child_dependents": {"type": "double precision", "index": 33, "name": "number_of_child_dependents", "comment": null}, "number_of_previous_births": {"type": "double precision", "index": 34, "name": "number_of_previous_births", "comment": null}, "number_of_previous_maternity_leaves": {"type": "double precision", "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": "public", "name": "workday_worker_position_history_data", "database": "postgres", "comment": null, "owner": "postgres"}, "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_deleted": {"type": "boolean", "index": 6, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "academic_pay_setup_data_annual_work_period_end_date": {"type": "integer", "index": 8, "name": "academic_pay_setup_data_annual_work_period_end_date", "comment": null}, "academic_pay_setup_data_annual_work_period_start_date": {"type": "integer", "index": 9, "name": "academic_pay_setup_data_annual_work_period_start_date", "comment": null}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"type": "double precision", "index": 10, "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": 11, "name": "academic_pay_setup_data_disbursement_plan_period_end_date", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"type": "integer", "index": 12, "name": "academic_pay_setup_data_disbursement_plan_period_start_date", "comment": null}, "business_site_summary_display_language": {"type": "text", "index": 13, "name": "business_site_summary_display_language", "comment": null}, "business_site_summary_local": {"type": "text", "index": 14, "name": "business_site_summary_local", "comment": null}, "business_site_summary_location": {"type": "text", "index": 15, "name": "business_site_summary_location", "comment": null}, "business_site_summary_location_type": {"type": "text", "index": 16, "name": "business_site_summary_location_type", "comment": null}, "business_site_summary_name": {"type": "text", "index": 17, "name": "business_site_summary_name", "comment": null}, "business_site_summary_scheduled_weekly_hours": {"type": "double precision", "index": 18, "name": "business_site_summary_scheduled_weekly_hours", "comment": null}, "business_site_summary_time_profile": {"type": "text", "index": 19, "name": "business_site_summary_time_profile", "comment": null}, "business_title": {"type": "text", "index": 20, "name": "business_title", "comment": null}, "critical_job": {"type": "boolean", "index": 21, "name": "critical_job", "comment": null}, "default_weekly_hours": {"type": "double precision", "index": 22, "name": "default_weekly_hours", "comment": null}, "difficulty_to_fill": {"type": "text", "index": 23, "name": "difficulty_to_fill", "comment": null}, "effective_date": {"type": "date", "index": 24, "name": "effective_date", "comment": null}, "employee_type": {"type": "text", "index": 25, "name": "employee_type", "comment": null}, "end_date": {"type": "date", "index": 26, "name": "end_date", "comment": null}, "end_employment_date": {"type": "date", "index": 27, "name": "end_employment_date", "comment": null}, "exclude_from_head_count": {"type": "boolean", "index": 28, "name": "exclude_from_head_count", "comment": null}, "expected_assignment_end_date": {"type": "integer", "index": 29, "name": "expected_assignment_end_date", "comment": null}, "external_employee": {"type": "integer", "index": 30, "name": "external_employee", "comment": null}, "federal_withholding_fein": {"type": "integer", "index": 31, "name": "federal_withholding_fein", "comment": null}, "frequency": {"type": "text", "index": 32, "name": "frequency", "comment": null}, "full_time_equivalent_percentage": {"type": "integer", "index": 33, "name": "full_time_equivalent_percentage", "comment": null}, "headcount_restriction_code": {"type": "integer", "index": 34, "name": "headcount_restriction_code", "comment": null}, "home_country": {"type": "integer", "index": 35, "name": "home_country", "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": "seed.workday_integration_tests.workday_worker_position_history_data"}, "seed.workday_integration_tests.workday_worker_position_organization_history_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "workday_worker_position_organization_history_data", "database": "postgres", "comment": null, "owner": "postgres"}, "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.int_workday__employee_history": {"metadata": {"type": "VIEW", "schema": "public_workday_dev", "name": "int_workday__employee_history", "database": "postgres", "comment": null, "owner": "postgres"}, "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": "double precision", "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": "double precision", "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": "double precision", "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": "double precision", "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": "date", "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.stg_workday__country_personal_information_base": {"metadata": {"type": "VIEW", "schema": "public_workday_dev", "name": "stg_workday__country_personal_information_base", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"fivetran_id": {"type": "text", "index": 1, "name": "fivetran_id", "comment": null}, "personal_info_common_id": {"type": "text", "index": 2, "name": "personal_info_common_id", "comment": null}, "country_code": {"type": "text", "index": 3, "name": "country_code", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 5, "name": "_fivetran_deleted", "comment": null}, "gender": {"type": "text", "index": 6, "name": "gender", "comment": null}, "hispanic_or_latino": {"type": "integer", "index": 7, "name": "hispanic_or_latino", "comment": null}, "hukou_locality": {"type": "integer", "index": 8, "name": "hukou_locality", "comment": null}, "hukou_postal_code": {"type": "integer", "index": 9, "name": "hukou_postal_code", "comment": null}, "hukou_region_code": {"type": "integer", "index": 10, "name": "hukou_region_code", "comment": null}, "hukou_subregion_code": {"type": "integer", "index": 11, "name": "hukou_subregion_code", "comment": null}, "hukou_type_code": {"type": "integer", "index": 12, "name": "hukou_type_code", "comment": null}, "local_hukou": {"type": "integer", "index": 13, "name": "local_hukou", "comment": null}, "marital_status": {"type": "text", "index": 14, "name": "marital_status", "comment": null}, "marital_status_date": {"type": "integer", "index": 15, "name": "marital_status_date", "comment": null}, "native_region_code": {"type": "integer", "index": 16, "name": "native_region_code", "comment": null}, "native_region": {"type": "text", "index": 17, "name": "native_region", "comment": null}, "personnel_file_agency_for_person": {"type": "integer", "index": 18, "name": "personnel_file_agency_for_person", "comment": null}, "political_affiliation": {"type": "text", "index": 19, "name": "political_affiliation", "comment": null}, "religion": {"type": "integer", "index": 20, "name": "religion", "comment": null}, "social_benefits_locality": {"type": "integer", "index": 21, "name": "social_benefits_locality", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__country_personal_information_base"}, "model.workday.stg_workday__job_family_base": {"metadata": {"type": "VIEW", "schema": "public_workday_dev", "name": "stg_workday__job_family_base", "database": "postgres", "comment": null, "owner": "postgres"}, "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": "public_workday_dev", "name": "stg_workday__job_family_group_base", "database": "postgres", "comment": null, "owner": "postgres"}, "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": "public_workday_dev", "name": "stg_workday__job_family_job_family_group_base", "database": "postgres", "comment": null, "owner": "postgres"}, "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": "public_workday_dev", "name": "stg_workday__job_family_job_profile_base", "database": "postgres", "comment": null, "owner": "postgres"}, "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": "public_workday_dev", "name": "stg_workday__job_profile_base", "database": "postgres", "comment": null, "owner": "postgres"}, "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": "public_workday_dev", "name": "stg_workday__military_service_base", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "personal_info_common_id": {"type": "text", "index": 3, "name": "personal_info_common_id", "comment": null}, "discharge_date": {"type": "date", "index": 4, "name": "discharge_date", "comment": null}, "discharge_type": {"type": "integer", "index": 5, "name": "discharge_type", "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}, "status_id": {"type": "text", "index": 9, "name": "status_id", "comment": null}, "status_begin_date": {"type": "integer", "index": 10, "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": "public_workday_dev", "name": "stg_workday__organization_base", "database": "postgres", "comment": null, "owner": "postgres"}, "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": "public_workday_dev", "name": "stg_workday__organization_job_family_base", "database": "postgres", "comment": null, "owner": "postgres"}, "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": "public_workday_dev", "name": "stg_workday__organization_role_base", "database": "postgres", "comment": null, "owner": "postgres"}, "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": "public_workday_dev", "name": "stg_workday__organization_role_worker_base", "database": "postgres", "comment": null, "owner": "postgres"}, "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": "public_workday_dev", "name": "stg_workday__person_contact_email_address_base", "database": "postgres", "comment": null, "owner": "postgres"}, "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": "public_workday_dev", "name": "stg_workday__person_name_base", "database": "postgres", "comment": null, "owner": "postgres"}, "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": "public_workday_dev", "name": "stg_workday__personal_information_base", "database": "postgres", "comment": null, "owner": "postgres"}, "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": "date", "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_common_data_base": {"metadata": {"type": "VIEW", "schema": "public_workday_dev", "name": "stg_workday__personal_information_common_data_base", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"fivetran_id": {"type": "text", "index": 1, "name": "fivetran_id", "comment": null}, "worker_id": {"type": "text", "index": 2, "name": "worker_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "additional_nationality": {"type": "integer", "index": 5, "name": "additional_nationality", "comment": null}, "blood_type": {"type": "integer", "index": 6, "name": "blood_type", "comment": null}, "citizenship_status": {"type": "text", "index": 7, "name": "citizenship_status", "comment": null}, "city_of_birth": {"type": "text", "index": 8, "name": "city_of_birth", "comment": null}, "city_of_birth_code": {"type": "integer", "index": 9, "name": "city_of_birth_code", "comment": null}, "country_of_birth": {"type": "text", "index": 10, "name": "country_of_birth", "comment": null}, "country_region_of_birth": {"type": "integer", "index": 11, "name": "country_region_of_birth", "comment": null}, "date_of_birth": {"type": "date", "index": 12, "name": "date_of_birth", "comment": null}, "date_of_death": {"type": "integer", "index": 13, "name": "date_of_death", "comment": null}, "last_medical_exam_date": {"type": "integer", "index": 14, "name": "last_medical_exam_date", "comment": null}, "last_medical_exam_valid_to": {"type": "integer", "index": 15, "name": "last_medical_exam_valid_to", "comment": null}, "medical_exam_notes": {"type": "integer", "index": 16, "name": "medical_exam_notes", "comment": null}, "primary_nationality": {"type": "text", "index": 17, "name": "primary_nationality", "comment": null}, "region_of_birth": {"type": "integer", "index": 18, "name": "region_of_birth", "comment": null}}, "stats": {"has_stats": {"id": "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_common_data_base"}, "model.workday.stg_workday__personal_information_ethnicity_base": {"metadata": {"type": "VIEW", "schema": "public_workday_dev", "name": "stg_workday__personal_information_ethnicity_base", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "id": {"type": "text", "index": 3, "name": "id", "comment": null}, "country_personal_information_id": {"type": "text", "index": 4, "name": "country_personal_information_id", "comment": null}, "ethnicity_code": {"type": "text", "index": 5, "name": "ethnicity_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__personal_information_ethnicity_base"}, "model.workday.stg_workday__position_base": {"metadata": {"type": "VIEW", "schema": "public_workday_dev", "name": "stg_workday__position_base", "database": "postgres", "comment": null, "owner": "postgres"}, "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": "double precision", "index": 26, "name": "primary_compensation_basis_amount_change", "comment": null}, "primary_compensation_basis_percent_change": {"type": "double precision", "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": "public_workday_dev", "name": "stg_workday__position_job_profile_base", "database": "postgres", "comment": null, "owner": "postgres"}, "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": "public_workday_dev", "name": "stg_workday__position_organization_base", "database": "postgres", "comment": null, "owner": "postgres"}, "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}, "_fivetran_active": {"type": "boolean", "index": 6, "name": "_fivetran_active", "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}}, "stats": {"has_stats": {"id": "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": "public_workday_dev", "name": "stg_workday__worker_base", "database": "postgres", "comment": null, "owner": "postgres"}, "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_deleted": {"type": "boolean", "index": 5, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "academic_tenure_date": {"type": "integer", "index": 7, "name": "academic_tenure_date", "comment": null}, "active": {"type": "boolean", "index": 8, "name": "active", "comment": null}, "active_status_date": {"type": "date", "index": 9, "name": "active_status_date", "comment": null}, "annual_currency_summary_currency": {"type": "text", "index": 10, "name": "annual_currency_summary_currency", "comment": null}, "annual_currency_summary_frequency": {"type": "text", "index": 11, "name": "annual_currency_summary_frequency", "comment": null}, "annual_currency_summary_primary_compensation_basis": {"type": "double precision", "index": 12, "name": "annual_currency_summary_primary_compensation_basis", "comment": null}, "annual_currency_summary_total_base_pay": {"type": "double precision", "index": 13, "name": "annual_currency_summary_total_base_pay", "comment": null}, "annual_currency_summary_total_salary_and_allowances": {"type": "double precision", "index": 14, "name": "annual_currency_summary_total_salary_and_allowances", "comment": null}, "annual_summary_currency": {"type": "text", "index": 15, "name": "annual_summary_currency", "comment": null}, "annual_summary_frequency": {"type": "text", "index": 16, "name": "annual_summary_frequency", "comment": null}, "annual_summary_primary_compensation_basis": {"type": "double precision", "index": 17, "name": "annual_summary_primary_compensation_basis", "comment": null}, "annual_summary_total_base_pay": {"type": "double precision", "index": 18, "name": "annual_summary_total_base_pay", "comment": null}, "annual_summary_total_salary_and_allowances": {"type": "double precision", "index": 19, "name": "annual_summary_total_salary_and_allowances", "comment": null}, "benefits_service_date": {"type": "integer", "index": 20, "name": "benefits_service_date", "comment": null}, "company_service_date": {"type": "integer", "index": 21, "name": "company_service_date", "comment": null}, "compensation_effective_date": {"type": "date", "index": 22, "name": "compensation_effective_date", "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}, "continuous_service_date": {"type": "date", "index": 25, "name": "continuous_service_date", "comment": null}, "contract_assignment_details": {"type": "integer", "index": 26, "name": "contract_assignment_details", "comment": null}, "contract_currency_code": {"type": "integer", "index": 27, "name": "contract_currency_code", "comment": null}, "contract_end_date": {"type": "integer", "index": 28, "name": "contract_end_date", "comment": null}, "contract_frequency_name": {"type": "integer", "index": 29, "name": "contract_frequency_name", "comment": null}, "contract_pay_rate": {"type": "double precision", "index": 30, "name": "contract_pay_rate", "comment": null}, "contract_vendor_name": {"type": "integer", "index": 31, "name": "contract_vendor_name", "comment": null}, "date_entered_workforce": {"type": "integer", "index": 32, "name": "date_entered_workforce", "comment": null}, "days_unemployed": {"type": "double precision", "index": 33, "name": "days_unemployed", "comment": null}, "eligible_for_hire": {"type": "text", "index": 34, "name": "eligible_for_hire", "comment": null}, "eligible_for_rehire_on_latest_termination": {"type": "text", "index": 35, "name": "eligible_for_rehire_on_latest_termination", "comment": null}, "employee_compensation_currency": {"type": "text", "index": 36, "name": "employee_compensation_currency", "comment": null}, "employee_compensation_frequency": {"type": "text", "index": 37, "name": "employee_compensation_frequency", "comment": null}, "employee_compensation_primary_compensation_basis": {"type": "double precision", "index": 38, "name": "employee_compensation_primary_compensation_basis", "comment": null}, "employee_compensation_total_base_pay": {"type": "double precision", "index": 39, "name": "employee_compensation_total_base_pay", "comment": null}, "employee_compensation_total_salary_and_allowances": {"type": "double precision", "index": 40, "name": "employee_compensation_total_salary_and_allowances", "comment": null}, "end_employment_date": {"type": "date", "index": 41, "name": "end_employment_date", "comment": null}, "expected_date_of_return": {"type": "integer", "index": 42, "name": "expected_date_of_return", "comment": null}, "expected_retirement_date": {"type": "integer", "index": 43, "name": "expected_retirement_date", "comment": null}, "first_day_of_work": {"type": "date", "index": 44, "name": "first_day_of_work", "comment": null}, "has_international_assignment": {"type": "boolean", "index": 45, "name": "has_international_assignment", "comment": null}, "hire_date": {"type": "date", "index": 46, "name": "hire_date", "comment": null}, "hire_reason": {"type": "text", "index": 47, "name": "hire_reason", "comment": null}, "hire_rescinded": {"type": "boolean", "index": 48, "name": "hire_rescinded", "comment": null}, "home_country": {"type": "integer", "index": 49, "name": "home_country", "comment": null}, "hourly_frequency_currency": {"type": "text", "index": 50, "name": "hourly_frequency_currency", "comment": null}, "hourly_frequency_frequency": {"type": "text", "index": 51, "name": "hourly_frequency_frequency", "comment": null}, "hourly_frequency_primary_compensation_basis": {"type": "double precision", "index": 52, "name": "hourly_frequency_primary_compensation_basis", "comment": null}, "hourly_frequency_total_base_pay": {"type": "double precision", "index": 53, "name": "hourly_frequency_total_base_pay", "comment": null}, "hourly_frequency_total_salary_and_allowances": {"type": "double precision", "index": 54, "name": "hourly_frequency_total_salary_and_allowances", "comment": null}, "last_datefor_which_paid": {"type": "integer", "index": 55, "name": "last_datefor_which_paid", "comment": null}, "local_termination_reason": {"type": "integer", "index": 56, "name": "local_termination_reason", "comment": null}, "months_continuous_prior_employment": {"type": "double precision", "index": 57, "name": "months_continuous_prior_employment", "comment": null}, "not_returning": {"type": "boolean", "index": 58, "name": "not_returning", "comment": null}, "original_hire_date": {"type": "date", "index": 59, "name": "original_hire_date", "comment": null}, "pay_group_frequency_currency": {"type": "text", "index": 60, "name": "pay_group_frequency_currency", "comment": null}, "pay_group_frequency_frequency": {"type": "integer", "index": 61, "name": "pay_group_frequency_frequency", "comment": null}, "pay_group_frequency_primary_compensation_basis": {"type": "double precision", "index": 62, "name": "pay_group_frequency_primary_compensation_basis", "comment": null}, "pay_group_frequency_total_base_pay": {"type": "double precision", "index": 63, "name": "pay_group_frequency_total_base_pay", "comment": null}, "pay_group_frequency_total_salary_and_allowances": {"type": "double precision", "index": 64, "name": "pay_group_frequency_total_salary_and_allowances", "comment": null}, "pay_through_date": {"type": "date", "index": 65, "name": "pay_through_date", "comment": null}, "primary_termination_category": {"type": "text", "index": 66, "name": "primary_termination_category", "comment": null}, "primary_termination_reason": {"type": "text", "index": 67, "name": "primary_termination_reason", "comment": null}, "probation_end_date": {"type": "integer", "index": 68, "name": "probation_end_date", "comment": null}, "probation_start_date": {"type": "integer", "index": 69, "name": "probation_start_date", "comment": null}, "reason_reference_id": {"type": "text", "index": 70, "name": "reason_reference_id", "comment": null}, "regrettable_termination": {"type": "boolean", "index": 71, "name": "regrettable_termination", "comment": null}, "rehire": {"type": "boolean", "index": 72, "name": "rehire", "comment": null}, "resignation_date": {"type": "integer", "index": 73, "name": "resignation_date", "comment": null}, "retired": {"type": "boolean", "index": 74, "name": "retired", "comment": null}, "retirement_date": {"type": "integer", "index": 75, "name": "retirement_date", "comment": null}, "retirement_eligibility_date": {"type": "integer", "index": 76, "name": "retirement_eligibility_date", "comment": null}, "return_unknown": {"type": "boolean", "index": 77, "name": "return_unknown", "comment": null}, "seniority_date": {"type": "date", "index": 78, "name": "seniority_date", "comment": null}, "severance_date": {"type": "integer", "index": 79, "name": "severance_date", "comment": null}, "terminated": {"type": "boolean", "index": 80, "name": "terminated", "comment": null}, "termination_date": {"type": "date", "index": 81, "name": "termination_date", "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_base"}, "model.workday.stg_workday__worker_leave_status_base": {"metadata": {"type": "VIEW", "schema": "public_workday_dev", "name": "stg_workday__worker_leave_status_base", "database": "postgres", "comment": null, "owner": "postgres"}, "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": "double precision", "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": "double precision", "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": "double precision", "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": "double precision", "index": 32, "name": "number_of_babies_adopted_children", "comment": null}, "number_of_child_dependents": {"type": "double precision", "index": 33, "name": "number_of_child_dependents", "comment": null}, "number_of_previous_births": {"type": "double precision", "index": 34, "name": "number_of_previous_births", "comment": null}, "number_of_previous_maternity_leaves": {"type": "double precision", "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": "public_workday_dev", "name": "stg_workday__worker_position_base", "database": "postgres", "comment": null, "owner": "postgres"}, "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_deleted": {"type": "boolean", "index": 6, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "academic_pay_setup_data_annual_work_period_end_date": {"type": "integer", "index": 8, "name": "academic_pay_setup_data_annual_work_period_end_date", "comment": null}, "academic_pay_setup_data_annual_work_period_start_date": {"type": "integer", "index": 9, "name": "academic_pay_setup_data_annual_work_period_start_date", "comment": null}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"type": "double precision", "index": 10, "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": 11, "name": "academic_pay_setup_data_disbursement_plan_period_end_date", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"type": "integer", "index": 12, "name": "academic_pay_setup_data_disbursement_plan_period_start_date", "comment": null}, "business_site_summary_display_language": {"type": "text", "index": 13, "name": "business_site_summary_display_language", "comment": null}, "business_site_summary_local": {"type": "text", "index": 14, "name": "business_site_summary_local", "comment": null}, "business_site_summary_location": {"type": "text", "index": 15, "name": "business_site_summary_location", "comment": null}, "business_site_summary_location_type": {"type": "text", "index": 16, "name": "business_site_summary_location_type", "comment": null}, "business_site_summary_name": {"type": "text", "index": 17, "name": "business_site_summary_name", "comment": null}, "business_site_summary_scheduled_weekly_hours": {"type": "double precision", "index": 18, "name": "business_site_summary_scheduled_weekly_hours", "comment": null}, "business_site_summary_time_profile": {"type": "text", "index": 19, "name": "business_site_summary_time_profile", "comment": null}, "business_title": {"type": "text", "index": 20, "name": "business_title", "comment": null}, "critical_job": {"type": "boolean", "index": 21, "name": "critical_job", "comment": null}, "default_weekly_hours": {"type": "double precision", "index": 22, "name": "default_weekly_hours", "comment": null}, "difficulty_to_fill": {"type": "text", "index": 23, "name": "difficulty_to_fill", "comment": null}, "effective_date": {"type": "date", "index": 24, "name": "effective_date", "comment": null}, "employee_type": {"type": "text", "index": 25, "name": "employee_type", "comment": null}, "end_date": {"type": "date", "index": 26, "name": "end_date", "comment": null}, "end_employment_date": {"type": "date", "index": 27, "name": "end_employment_date", "comment": null}, "exclude_from_head_count": {"type": "boolean", "index": 28, "name": "exclude_from_head_count", "comment": null}, "expected_assignment_end_date": {"type": "integer", "index": 29, "name": "expected_assignment_end_date", "comment": null}, "external_employee": {"type": "integer", "index": 30, "name": "external_employee", "comment": null}, "federal_withholding_fein": {"type": "integer", "index": 31, "name": "federal_withholding_fein", "comment": null}, "frequency": {"type": "text", "index": 32, "name": "frequency", "comment": null}, "full_time_equivalent_percentage": {"type": "integer", "index": 33, "name": "full_time_equivalent_percentage", "comment": null}, "headcount_restriction_code": {"type": "integer", "index": 34, "name": "headcount_restriction_code", "comment": null}, "home_country": {"type": "integer", "index": 35, "name": "home_country", "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_base"}, "model.workday.stg_workday__worker_position_organization_base": {"metadata": {"type": "VIEW", "schema": "public_workday_dev", "name": "stg_workday__worker_position_organization_base", "database": "postgres", "comment": null, "owner": "postgres"}, "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.workday__employee_daily_history": {"metadata": {"type": "BASE TABLE", "schema": "public_workday_dev", "name": "workday__employee_daily_history", "database": "postgres", "comment": "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.", "owner": "postgres"}, "columns": {"employee_day_id": {"type": "text", "index": 1, "name": "employee_day_id", "comment": "Surrogate key hashed on `date_day` and `history_unique_key`"}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": "Date on which the account had these field values."}, "history_unique_key": {"type": "text", "index": 3, "name": "history_unique_key", "comment": "Surrogate key hashed on 'employee_id' and '_fivetran_date'."}, "employee_id": {"type": "text", "index": 4, "name": "employee_id", "comment": "Surrogate key on `worker_id`, `source_relation`, `position_id`, `position_start_date` to create unique identifier for a Workday employee."}, "_fivetran_date": {"type": "date", "index": 5, "name": "_fivetran_date", "comment": "Date when the record was first created or modified in the source."}, "worker_id": {"type": "text", "index": 6, "name": "worker_id", "comment": "Unique identifier for the worker."}, "source_relation": {"type": "text", "index": 7, "name": "source_relation", "comment": "The record's source if the unioning functionality is used. Otherwise this field will be empty."}, "position_id": {"type": "text", "index": 8, "name": "position_id", "comment": "Identifier for the specific position."}, "_fivetran_start": {"type": "timestamp without time zone", "index": 9, "name": "_fivetran_start", "comment": "Timestamp when the record was first created or modified in the source."}, "_fivetran_end": {"type": "timestamp without time zone", "index": 10, "name": "_fivetran_end", "comment": "Timestamp marking the end of a record being active."}, "is_wh_fivetran_active": {"type": "boolean", "index": 11, "name": "is_wh_fivetran_active", "comment": "Is the worker history record the most recent fivetran active record."}, "is_wph_fivetran_active": {"type": "boolean", "index": 12, "name": "is_wph_fivetran_active", "comment": "Is the worker position history record the most recent fivetranactive record."}, "is_pih_fivetran_active": {"type": "boolean", "index": 13, "name": "is_pih_fivetran_active", "comment": "Is the personal information history record the most recent fivetran active record."}, "academic_tenure_date": {"type": "integer", "index": 14, "name": "academic_tenure_date", "comment": "Date when academic tenure is achieved."}, "is_active": {"type": "boolean", "index": 15, "name": "is_active", "comment": null}, "active_status_date": {"type": "date", "index": 16, "name": "active_status_date", "comment": "Date when the active status was last updated."}, "annual_currency_summary_currency": {"type": "text", "index": 17, "name": "annual_currency_summary_currency", "comment": "Currency used for annual compensation summaries."}, "annual_currency_summary_frequency": {"type": "text", "index": 18, "name": "annual_currency_summary_frequency", "comment": "Frequency of currency for annual compensation summaries."}, "annual_currency_summary_primary_compensation_basis": {"type": "double precision", "index": 19, "name": "annual_currency_summary_primary_compensation_basis", "comment": "Primary compensation basis used for annual compensation summaries."}, "annual_currency_summary_total_base_pay": {"type": "double precision", "index": 20, "name": "annual_currency_summary_total_base_pay", "comment": "Total base pay in the currency for annual summaries."}, "annual_currency_summary_total_salary_and_allowances": {"type": "double precision", "index": 21, "name": "annual_currency_summary_total_salary_and_allowances", "comment": "Total salary and allowances in the currency for annual summaries."}, "annual_summary_currency": {"type": "text", "index": 22, "name": "annual_summary_currency", "comment": "Currency used for annual summaries."}, "annual_summary_frequency": {"type": "text", "index": 23, "name": "annual_summary_frequency", "comment": "Frequency of currency for annual summaries."}, "annual_summary_primary_compensation_basis": {"type": "double precision", "index": 24, "name": "annual_summary_primary_compensation_basis", "comment": "Primary compensation basis used for annual summaries."}, "annual_summary_total_base_pay": {"type": "double precision", "index": 25, "name": "annual_summary_total_base_pay", "comment": "Total base pay in the currency for annual summaries."}, "annual_summary_total_salary_and_allowances": {"type": "double precision", "index": 26, "name": "annual_summary_total_salary_and_allowances", "comment": "Total salary and allowances in the currency for annual summaries."}, "benefits_service_date": {"type": "integer", "index": 27, "name": "benefits_service_date", "comment": "Date when the worker's benefits service starts."}, "company_service_date": {"type": "integer", "index": 28, "name": "company_service_date", "comment": "Date when the worker's service with the company started."}, "compensation_effective_date": {"type": "date", "index": 29, "name": "compensation_effective_date", "comment": "Effective date when changes to the worker's compensation take effect."}, "compensation_grade_id": {"type": "text", "index": 30, "name": "compensation_grade_id", "comment": "Identifier for the compensation grade."}, "compensation_grade_profile_id": {"type": "text", "index": 31, "name": "compensation_grade_profile_id", "comment": "Unique identifier for the compensation grade profile associated with the worker."}, "continuous_service_date": {"type": "date", "index": 32, "name": "continuous_service_date", "comment": "Date when the worker's continuous service with the organization started."}, "contract_assignment_details": {"type": "integer", "index": 33, "name": "contract_assignment_details", "comment": "Details of the worker's contract assignment."}, "contract_currency_code": {"type": "integer", "index": 34, "name": "contract_currency_code", "comment": "Currency code used for the worker's contract."}, "contract_end_date": {"type": "integer", "index": 35, "name": "contract_end_date", "comment": "Date when the worker's contract is scheduled to end."}, "contract_frequency_name": {"type": "integer", "index": 36, "name": "contract_frequency_name", "comment": "Frequency of payment for the worker's contract."}, "contract_pay_rate": {"type": "double precision", "index": 37, "name": "contract_pay_rate", "comment": "Pay rate associated with the worker's contract."}, "contract_vendor_name": {"type": "integer", "index": 38, "name": "contract_vendor_name", "comment": "Name of the vendor associated with the worker's contract."}, "date_entered_workforce": {"type": "integer", "index": 39, "name": "date_entered_workforce", "comment": "Date when the worker entered the workforce."}, "days_unemployed": {"type": "double precision", "index": 40, "name": "days_unemployed", "comment": "Number of days the worker has been unemployed."}, "eligible_for_hire": {"type": "text", "index": 41, "name": "eligible_for_hire", "comment": "Flag indicating whether the worker is eligible for hire."}, "eligible_for_rehire_on_latest_termination": {"type": "text", "index": 42, "name": "eligible_for_rehire_on_latest_termination", "comment": "Flag indicating whether the worker is eligible for rehire based on the latest termination."}, "employee_compensation_currency": {"type": "text", "index": 43, "name": "employee_compensation_currency", "comment": "Currency code used for the worker's employee compensation."}, "employee_compensation_frequency": {"type": "text", "index": 44, "name": "employee_compensation_frequency", "comment": "Frequency of payment for the worker's employee compensation."}, "employee_compensation_primary_compensation_basis": {"type": "double precision", "index": 45, "name": "employee_compensation_primary_compensation_basis", "comment": "Primary compensation basis used for the worker's employee compensation."}, "employee_compensation_total_base_pay": {"type": "double precision", "index": 46, "name": "employee_compensation_total_base_pay", "comment": "Total base pay for the worker's employee compensation."}, "employee_compensation_total_salary_and_allowances": {"type": "double precision", "index": 47, "name": "employee_compensation_total_salary_and_allowances", "comment": "Total salary and allowances for the worker's employee compensation."}, "end_employment_date": {"type": "timestamp without time zone", "index": 48, "name": "end_employment_date", "comment": "Date when the worker's employment is scheduled to end."}, "expected_date_of_return": {"type": "integer", "index": 49, "name": "expected_date_of_return", "comment": "Expected date of the worker's return."}, "expected_retirement_date": {"type": "integer", "index": 50, "name": "expected_retirement_date", "comment": "Expected date of the worker's retirement."}, "first_day_of_work": {"type": "date", "index": 51, "name": "first_day_of_work", "comment": "The date when the worker started their first day of work."}, "is_has_international_assignment": {"type": "boolean", "index": 52, "name": "is_has_international_assignment", "comment": "Flag indicating whether the worker has an international assignment."}, "hire_date": {"type": "date", "index": 53, "name": "hire_date", "comment": "The date when the worker was hired."}, "hire_reason": {"type": "text", "index": 54, "name": "hire_reason", "comment": "The reason for hiring the worker."}, "is_hire_rescinded": {"type": "boolean", "index": 55, "name": "is_hire_rescinded", "comment": "Flag indicating whether the worker's hire was rescinded."}, "home_country": {"type": "integer", "index": 56, "name": "home_country", "comment": "The home country of the worker."}, "hourly_frequency_currency": {"type": "text", "index": 57, "name": "hourly_frequency_currency", "comment": "Currency code used for the worker's hourly compensation."}, "hourly_frequency_frequency": {"type": "text", "index": 58, "name": "hourly_frequency_frequency", "comment": "Frequency of payment for the worker's hourly compensation."}, "hourly_frequency_primary_compensation_basis": {"type": "double precision", "index": 59, "name": "hourly_frequency_primary_compensation_basis", "comment": "Primary compensation basis used for the worker's hourly compensation."}, "hourly_frequency_total_base_pay": {"type": "double precision", "index": 60, "name": "hourly_frequency_total_base_pay", "comment": "Total base pay for the worker's hourly compensation."}, "hourly_frequency_total_salary_and_allowances": {"type": "double precision", "index": 61, "name": "hourly_frequency_total_salary_and_allowances", "comment": "Total salary and allowances for the worker's hourly compensation."}, "last_datefor_which_paid": {"type": "integer", "index": 62, "name": "last_datefor_which_paid", "comment": "Last date for which the worker was paid."}, "local_termination_reason": {"type": "integer", "index": 63, "name": "local_termination_reason", "comment": "The reason for local termination of the worker."}, "months_continuous_prior_employment": {"type": "double precision", "index": 64, "name": "months_continuous_prior_employment", "comment": "Number of months of continuous prior employment."}, "is_not_returning": {"type": "boolean", "index": 65, "name": "is_not_returning", "comment": "Flag indicating whether the worker is not returning."}, "original_hire_date": {"type": "date", "index": 66, "name": "original_hire_date", "comment": "The original date when the worker was hired."}, "pay_group_frequency_currency": {"type": "text", "index": 67, "name": "pay_group_frequency_currency", "comment": "Currency code used for the worker's pay group frequency."}, "pay_group_frequency_frequency": {"type": "integer", "index": 68, "name": "pay_group_frequency_frequency", "comment": "Frequency of payment for the worker's pay group."}, "pay_group_frequency_primary_compensation_basis": {"type": "double precision", "index": 69, "name": "pay_group_frequency_primary_compensation_basis", "comment": "Primary compensation basis used for the worker's pay group."}, "pay_group_frequency_total_base_pay": {"type": "double precision", "index": 70, "name": "pay_group_frequency_total_base_pay", "comment": "Total base pay for the worker's pay group."}, "pay_group_frequency_total_salary_and_allowances": {"type": "double precision", "index": 71, "name": "pay_group_frequency_total_salary_and_allowances", "comment": "Total salary and allowances for the worker's pay group."}, "pay_through_date": {"type": "date", "index": 72, "name": "pay_through_date", "comment": "The date through which the worker is paid."}, "primary_termination_category": {"type": "text", "index": 73, "name": "primary_termination_category", "comment": "The primary termination category for the worker."}, "primary_termination_reason": {"type": "text", "index": 74, "name": "primary_termination_reason", "comment": "The primary termination reason for the worker."}, "probation_end_date": {"type": "integer", "index": 75, "name": "probation_end_date", "comment": "The date when the worker's probation ends."}, "probation_start_date": {"type": "integer", "index": 76, "name": "probation_start_date", "comment": "The date when the worker's probation starts."}, "reason_reference_id": {"type": "text", "index": 77, "name": "reason_reference_id", "comment": "The reference ID for the termination reason."}, "is_regrettable_termination": {"type": "boolean", "index": 78, "name": "is_regrettable_termination", "comment": "Flag indicating whether the worker's termination is regrettable."}, "is_rehire": {"type": "boolean", "index": 79, "name": "is_rehire", "comment": "Flag indicating whether the worker is eligible for rehire."}, "resignation_date": {"type": "integer", "index": 80, "name": "resignation_date", "comment": "The date when the worker resigned."}, "is_retired": {"type": "boolean", "index": 81, "name": "is_retired", "comment": "Flag indicating whether the worker is retired."}, "retirement_date": {"type": "integer", "index": 82, "name": "retirement_date", "comment": "The date when the worker retired."}, "retirement_eligibility_date": {"type": "integer", "index": 83, "name": "retirement_eligibility_date", "comment": "The date when the worker becomes eligible for retirement."}, "is_return_unknown": {"type": "boolean", "index": 84, "name": "is_return_unknown", "comment": "Flag indicating whether the worker's return status is unknown."}, "seniority_date": {"type": "date", "index": 85, "name": "seniority_date", "comment": "The date when the worker's seniority is recorded."}, "severance_date": {"type": "integer", "index": 86, "name": "severance_date", "comment": "The date when the worker's severance is recorded."}, "is_terminated": {"type": "boolean", "index": 87, "name": "is_terminated", "comment": "Has the worker been terminated?"}, "termination_date": {"type": "timestamp without time zone", "index": 88, "name": "termination_date", "comment": "The date when the worker is terminated."}, "is_termination_involuntary": {"type": "boolean", "index": 89, "name": "is_termination_involuntary", "comment": "Flag indicating whether the termination is involuntary."}, "termination_last_day_of_work": {"type": "date", "index": 90, "name": "termination_last_day_of_work", "comment": "The last day of work for the worker during termination."}, "time_off_service_date": {"type": "integer", "index": 91, "name": "time_off_service_date", "comment": "The date when the worker's time-off service starts."}, "universal_id": {"type": "integer", "index": 92, "name": "universal_id", "comment": "The universal ID associated with the worker."}, "user_id": {"type": "text", "index": 93, "name": "user_id", "comment": "The identifier for the user associated with the worker."}, "vesting_date": {"type": "integer", "index": 94, "name": "vesting_date", "comment": "The date when the worker's vesting starts."}, "worker_code": {"type": "integer", "index": 95, "name": "worker_code", "comment": "The code associated with the worker."}, "position_location": {"type": "text", "index": 96, "name": "position_location", "comment": "The position location of the employee."}, "is_exclude_from_head_count": {"type": "boolean", "index": 97, "name": "is_exclude_from_head_count", "comment": "Flag indicating whether the position is excluded from headcount."}, "fte_percent": {"type": "integer", "index": 98, "name": "fte_percent", "comment": "The percentage of hours, the employee's scheduled hours divided by the employer's hours for a full-time workweek"}, "is_job_exempt": {"type": "boolean", "index": 99, "name": "is_job_exempt", "comment": "Indicates whether the job is exempt from certain regulations."}, "is_specify_paid_fte": {"type": "boolean", "index": 100, "name": "is_specify_paid_fte", "comment": "Flag indicating whether to specify paid FTE for the worker position."}, "is_specify_working_fte": {"type": "boolean", "index": 101, "name": "is_specify_working_fte", "comment": "Flag indicating whether to specify working FTE for the worker position."}, "is_work_shift_required": {"type": "boolean", "index": 102, "name": "is_work_shift_required", "comment": "Flag indicating whether a work shift is required."}, "academic_pay_setup_data_annual_work_period_end_date": {"type": "integer", "index": 103, "name": "academic_pay_setup_data_annual_work_period_end_date", "comment": "The end date of the annual work period in academic pay setup data."}, "academic_pay_setup_data_annual_work_period_start_date": {"type": "integer", "index": 104, "name": "academic_pay_setup_data_annual_work_period_start_date", "comment": "The start date of the annual work period in academic pay setup data."}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"type": "double precision", "index": 105, "name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "comment": "The work percentage of the year in the annual work period in academic pay setup data."}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"type": "integer", "index": 106, "name": "academic_pay_setup_data_disbursement_plan_period_end_date", "comment": "The end date of the disbursement plan period in academic pay setup data."}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"type": "integer", "index": 107, "name": "academic_pay_setup_data_disbursement_plan_period_start_date", "comment": "The start date of the disbursement plan period in academic pay setup data."}, "business_site_summary_display_language": {"type": "text", "index": 108, "name": "business_site_summary_display_language", "comment": "The display language of the business site summary."}, "business_site_summary_local": {"type": "text", "index": 109, "name": "business_site_summary_local", "comment": "Local information related to the business site summary."}, "business_site_summary_location_type": {"type": "text", "index": 110, "name": "business_site_summary_location_type", "comment": "The type of location for the business site summary."}, "business_site_summary_name": {"type": "text", "index": 111, "name": "business_site_summary_name", "comment": "The name associated with the business site summary."}, "business_site_summary_scheduled_weekly_hours": {"type": "double precision", "index": 112, "name": "business_site_summary_scheduled_weekly_hours", "comment": "The scheduled weekly hours associated with the business site summary."}, "business_site_summary_time_profile": {"type": "text", "index": 113, "name": "business_site_summary_time_profile", "comment": "The time profile associated with the business site summary."}, "business_title": {"type": "text", "index": 114, "name": "business_title", "comment": "The business title associated with the worker position."}, "is_critical_job": {"type": "boolean", "index": 115, "name": "is_critical_job", "comment": "Flag indicating whether the job is critical."}, "default_weekly_hours": {"type": "double precision", "index": 116, "name": "default_weekly_hours", "comment": "The default weekly hours associated with the worker position."}, "difficulty_to_fill": {"type": "text", "index": 117, "name": "difficulty_to_fill", "comment": "Indication of the difficulty level in filling the job."}, "position_effective_date": {"type": "timestamp without time zone", "index": 118, "name": "position_effective_date", "comment": "The position effective date for the employee."}, "employee_type": {"type": "text", "index": 119, "name": "employee_type", "comment": "The type of employee associated with the worker position."}, "position_end_date": {"type": "timestamp without time zone", "index": 120, "name": "position_end_date", "comment": "The end date of the worker position."}, "expected_assignment_end_date": {"type": "integer", "index": 121, "name": "expected_assignment_end_date", "comment": "The expected end date of the assignment associated with the worker position."}, "external_employee": {"type": "integer", "index": 122, "name": "external_employee", "comment": "Flag indicating whether the worker is an external employee."}, "federal_withholding_fein": {"type": "integer", "index": 123, "name": "federal_withholding_fein", "comment": "The Federal Employer Identification Number (FEIN) for federal withholding."}, "frequency": {"type": "text", "index": 124, "name": "frequency", "comment": "The frequency associated with the worker position."}, "headcount_restriction_code": {"type": "integer", "index": 125, "name": "headcount_restriction_code", "comment": "The code associated with headcount restriction for the worker position."}, "host_country": {"type": "integer", "index": 126, "name": "host_country", "comment": "The host country associated with the worker."}, "international_assignment_type": {"type": "integer", "index": 127, "name": "international_assignment_type", "comment": "The type of international assignment associated with the worker position."}, "is_primary_job": {"type": "boolean", "index": 128, "name": "is_primary_job", "comment": "Flag indicating whether the job is the primary job for the worker."}, "job_profile_id": {"type": "text", "index": 129, "name": "job_profile_id", "comment": "Identifier for the job profile."}, "management_level_code": {"type": "text", "index": 130, "name": "management_level_code", "comment": "Code indicating the management level associated with the job profile."}, "paid_fte": {"type": "double precision", "index": 131, "name": "paid_fte", "comment": "The paid full-time equivalent (FTE) associated with the worker position."}, "pay_group": {"type": "integer", "index": 132, "name": "pay_group", "comment": "The pay group associated with the worker position."}, "pay_rate": {"type": "integer", "index": 133, "name": "pay_rate", "comment": "The pay rate associated with the worker position."}, "pay_rate_type": {"type": "text", "index": 134, "name": "pay_rate_type", "comment": "The type of pay rate associated with the worker position."}, "payroll_entity": {"type": "integer", "index": 135, "name": "payroll_entity", "comment": "The payroll entity associated with the worker position."}, "payroll_file_number": {"type": "integer", "index": 136, "name": "payroll_file_number", "comment": "The file number associated with payroll for the worker position."}, "regular_paid_equivalent_hours": {"type": "integer", "index": 137, "name": "regular_paid_equivalent_hours", "comment": "The regular paid equivalent hours associated with the worker position."}, "scheduled_weekly_hours": {"type": "double precision", "index": 138, "name": "scheduled_weekly_hours", "comment": "The scheduled weekly hours associated with the worker position."}, "position_start_date": {"type": "timestamp without time zone", "index": 139, "name": "position_start_date", "comment": "The start date of the worker position."}, "start_international_assignment_reason": {"type": "date", "index": 140, "name": "start_international_assignment_reason", "comment": "The reason for starting an international assignment associated with the worker position."}, "work_hours_profile": {"type": "integer", "index": 141, "name": "work_hours_profile", "comment": "The work hours profile associated with the worker position."}, "work_shift": {"type": "integer", "index": 142, "name": "work_shift", "comment": "The work shift associated with the worker position."}, "work_space": {"type": "integer", "index": 143, "name": "work_space", "comment": "The work space associated with the worker position."}, "worker_hours_profile_classification": {"type": "integer", "index": 144, "name": "worker_hours_profile_classification", "comment": "The classification of worker hours profile associated with the worker position."}, "working_fte": {"type": "double precision", "index": 145, "name": "working_fte", "comment": "The working full-time equivalent (FTE) associated with the worker position."}, "working_time_frequency": {"type": "integer", "index": 146, "name": "working_time_frequency", "comment": "The frequency of working time associated with the worker position."}, "working_time_unit": {"type": "integer", "index": 147, "name": "working_time_unit", "comment": "The unit of working time associated with the worker position."}, "working_time_value": {"type": "integer", "index": 148, "name": "working_time_value", "comment": "The value of working time associated with the worker position."}, "additional_nationality": {"type": "integer", "index": 149, "name": "additional_nationality", "comment": "Additional nationality associated with the individual."}, "blood_type": {"type": "integer", "index": 150, "name": "blood_type", "comment": "The blood type of the individual."}, "citizenship_status": {"type": "text", "index": 151, "name": "citizenship_status", "comment": "The citizenship status of the individual."}, "city_of_birth": {"type": "text", "index": 152, "name": "city_of_birth", "comment": "The city of birth of the individual."}, "city_of_birth_code": {"type": "integer", "index": 153, "name": "city_of_birth_code", "comment": "The city of birth code of the individual."}, "country_of_birth": {"type": "text", "index": 154, "name": "country_of_birth", "comment": "The country of birth of the individual."}, "date_of_birth": {"type": "date", "index": 155, "name": "date_of_birth", "comment": "The date of birth of the individual."}, "date_of_death": {"type": "integer", "index": 156, "name": "date_of_death", "comment": "The date of death of the individual."}, "gender": {"type": "text", "index": 157, "name": "gender", "comment": "The gender of the individual."}, "is_hispanic_or_latino": {"type": "integer", "index": 158, "name": "is_hispanic_or_latino", "comment": "lag indicating whether the individual is Hispanic or Latino."}, "hukou_locality": {"type": "integer", "index": 159, "name": "hukou_locality", "comment": "The locality associated with the Hukou."}, "hukou_postal_code": {"type": "integer", "index": 160, "name": "hukou_postal_code", "comment": "The postal code associated with the Hukou."}, "hukou_region": {"type": "integer", "index": 161, "name": "hukou_region", "comment": "The region associated with the Hukou."}, "hukou_subregion": {"type": "integer", "index": 162, "name": "hukou_subregion", "comment": "The subregion associated with the Hukou."}, "hukou_type": {"type": "integer", "index": 163, "name": "hukou_type", "comment": "The type of Hukou."}, "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": "date", "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": "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."}}, "stats": {"has_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": "public_workday_dev", "name": "workday__employee_overview", "database": "postgres", "comment": "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.", "owner": "postgres"}, "columns": {"employee_id": {"type": "text", "index": 1, "name": "employee_id", "comment": "Surrogate key on `worker_id`, `source_relation`, `position_id`, `position_start_date` to create unique identifier for a Workday employee."}, "worker_id": {"type": "text", "index": 2, "name": "worker_id", "comment": "Unique identifier for the worker."}, "source_relation": {"type": "text", "index": 3, "name": "source_relation", "comment": "The record's source if the unioning functionality is used. Otherwise this field will be empty."}, "fivetran_id": {"type": "text", "index": 4, "name": "fivetran_id", "comment": "Fivetran composite key identifier."}, "position_id": {"type": "text", "index": 5, "name": "position_id", "comment": "Identifier for the specific position."}, "position_start_date": {"type": "date", "index": 6, "name": "position_start_date", "comment": "The position start date for this employee."}, "worker_code": {"type": "integer", "index": 7, "name": "worker_code", "comment": "The code associated with the worker."}, "user_id": {"type": "text", "index": 8, "name": "user_id", "comment": "The identifier for the user associated with the worker."}, "universal_id": {"type": "integer", "index": 9, "name": "universal_id", "comment": "The universal ID associated with the worker."}, "is_user_active": {"type": "boolean", "index": 10, "name": "is_user_active", "comment": "Is the user currently active."}, "is_employed": {"type": "boolean", "index": 11, "name": "is_employed", "comment": "Is the worker currently employed?"}, "hire_date": {"type": "date", "index": 12, "name": "hire_date", "comment": "The date when the worker was hired."}, "departure_date": {"type": "date", "index": 13, "name": "departure_date", "comment": "The departure date for the employee."}, "days_as_worker": {"type": "integer", "index": 14, "name": "days_as_worker", "comment": "Number of days since the worker has been created."}, "is_terminated": {"type": "boolean", "index": 15, "name": "is_terminated", "comment": "Has the worker been terminated?"}, "primary_termination_category": {"type": "text", "index": 16, "name": "primary_termination_category", "comment": "The primary termination category for the worker."}, "primary_termination_reason": {"type": "text", "index": 17, "name": "primary_termination_reason", "comment": "The primary termination reason for the worker."}, "is_regrettable_termination": {"type": "boolean", "index": 18, "name": "is_regrettable_termination", "comment": "Has the worker been regrettably terminated?"}, "compensation_effective_date": {"type": "date", "index": 19, "name": "compensation_effective_date", "comment": "Effective date when changes to the worker's compensation take effect."}, "employee_compensation_frequency": {"type": "text", "index": 20, "name": "employee_compensation_frequency", "comment": "Frequency of payment for the worker's employee compensation."}, "annual_currency_summary_currency": {"type": "text", "index": 21, "name": "annual_currency_summary_currency", "comment": "Currency used for annual compensation summaries."}, "annual_currency_summary_total_base_pay": {"type": "double precision", "index": 22, "name": "annual_currency_summary_total_base_pay", "comment": "Total base pay in the currency for annual summaries."}, "annual_currency_summary_primary_compensation_basis": {"type": "double precision", "index": 23, "name": "annual_currency_summary_primary_compensation_basis", "comment": "Primary compensation basis used for annual compensation summaries."}, "annual_summary_currency": {"type": "text", "index": 24, "name": "annual_summary_currency", "comment": "Currency used for annual summaries."}, "annual_summary_total_base_pay": {"type": "double precision", "index": 25, "name": "annual_summary_total_base_pay", "comment": "Total base pay in the currency for annual summaries."}, "annual_summary_primary_compensation_basis": {"type": "double precision", "index": 26, "name": "annual_summary_primary_compensation_basis", "comment": "Primary compensation basis used for annual summaries."}, "compensation_grade_id": {"type": "text", "index": 27, "name": "compensation_grade_id", "comment": "Identifier for the compensation grade."}, "compensation_grade_profile_id": {"type": "text", "index": 28, "name": "compensation_grade_profile_id", "comment": "Unique identifier for the compensation grade profile associated with the worker."}, "first_name": {"type": "text", "index": 29, "name": "first_name", "comment": "The first name of the individual."}, "last_name": {"type": "text", "index": 30, "name": "last_name", "comment": "The last name or surname of the individual."}, "date_of_birth": {"type": "date", "index": 31, "name": "date_of_birth", "comment": "The date of birth of the individual."}, "gender": {"type": "text", "index": 32, "name": "gender", "comment": "The gender of the individual."}, "is_hispanic_or_latino": {"type": "integer", "index": 33, "name": "is_hispanic_or_latino", "comment": "lag indicating whether the individual is Hispanic or Latino."}, "email_address": {"type": "text", "index": 34, "name": "email_address", "comment": "The actual email address of the person."}, "ethnicity_codes": {"type": "text", "index": 35, "name": "ethnicity_codes", "comment": "String aggregation of all ethnicity codes associated with an individual."}, "military_status": {"type": "text", "index": 36, "name": "military_status", "comment": "The military status of the worker."}, "business_title": {"type": "text", "index": 37, "name": "business_title", "comment": "The business title associated with the worker position."}, "job_profile_id": {"type": "text", "index": 38, "name": "job_profile_id", "comment": "Identifier for the job profile."}, "employee_type": {"type": "text", "index": 39, "name": "employee_type", "comment": "The type of employee associated with the worker position."}, "position_location": {"type": "text", "index": 40, "name": "position_location", "comment": "The position location of the employee."}, "management_level_code": {"type": "text", "index": 41, "name": "management_level_code", "comment": "Code indicating the management level associated with the job profile."}, "fte_percent": {"type": "integer", "index": 42, "name": "fte_percent", "comment": "The percentage of hours, the employee's scheduled hours divided by the employer's hours for a full-time workweek"}, "position_end_date": {"type": "date", "index": 43, "name": "position_end_date", "comment": "The position end date for this employee."}, "position_effective_date": {"type": "date", "index": 44, "name": "position_effective_date", "comment": "The position effective date for the employee."}, "days_employed": {"type": "integer", "index": 45, "name": "days_employed", "comment": "The number of days the employee held their position."}, "is_employed_one_year": {"type": "boolean", "index": 46, "name": "is_employed_one_year", "comment": "Tracks whether a worker was employed at least one year."}, "is_employed_five_years": {"type": "boolean", "index": 47, "name": "is_employed_five_years", "comment": "Tracks whether a worker was employed at least five years."}, "is_employed_ten_years": {"type": "boolean", "index": 48, "name": "is_employed_ten_years", "comment": "Tracks whether a worker was employed at least ten years."}, "is_employed_twenty_years": {"type": "boolean", "index": 49, "name": "is_employed_twenty_years", "comment": "Tracks whether a worker was employed at least twenty years."}, "is_employed_thirty_years": {"type": "boolean", "index": 50, "name": "is_employed_thirty_years", "comment": "Tracks whether a worker was employed at least thirty years."}, "is_current_employee_one_year": {"type": "boolean", "index": 51, "name": "is_current_employee_one_year", "comment": "Tracks whether a worker is active for more than a year."}, "is_current_employee_five_years": {"type": "boolean", "index": 52, "name": "is_current_employee_five_years", "comment": "Tracks whether a worker is active for more than five years."}, "is_current_employee_ten_years": {"type": "boolean", "index": 53, "name": "is_current_employee_ten_years", "comment": "Tracks whether a worker is active for more than ten years."}, "is_current_employee_twenty_years": {"type": "boolean", "index": 54, "name": "is_current_employee_twenty_years", "comment": "Tracks whether a worker is active for more than twenty years."}, "is_current_employee_thirty_years": {"type": "boolean", "index": 55, "name": "is_current_employee_thirty_years", "comment": "Tracks whether a worker is active for more than thirty years."}}, "stats": {"has_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": "public_workday_dev", "name": "workday__job_overview", "database": "postgres", "comment": "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.", "owner": "postgres"}, "columns": {"job_profile_id": {"type": "text", "index": 1, "name": "job_profile_id", "comment": "Identifier for the job profile."}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": "The record's source if the unioning functionality is used. Otherwise this field will be empty."}, "job_profile_code": {"type": "text", "index": 3, "name": "job_profile_code", "comment": "Code assigned to the job profile."}, "job_title": {"type": "text", "index": 4, "name": "job_title", "comment": "The title of the job for the worker."}, "private_title": {"type": "integer", "index": 5, "name": "private_title", "comment": "The private title associated with the job."}, "job_summary": {"type": "text", "index": 6, "name": "job_summary", "comment": "The summary of the job."}, "job_description": {"type": "text", "index": 7, "name": "job_description", "comment": "Brief description of the job profile."}, "job_family_codes": {"type": "text", "index": 8, "name": "job_family_codes", "comment": "String array of all job family codes assigned to a job profile."}, "job_family_summaries": {"type": "text", "index": 9, "name": "job_family_summaries", "comment": "String array of all job family summaries assigned to a job profile."}, "job_family_group_codes": {"type": "text", "index": 10, "name": "job_family_group_codes", "comment": "String array of all job family group codes assigned to a job profile."}, "job_family_group_summaries": {"type": "text", "index": 11, "name": "job_family_group_summaries", "comment": "String array of all job family group summaries assigned to a job profile."}}, "stats": {"has_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": "public_workday_dev", "name": "workday__monthly_summary", "database": "postgres", "comment": "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.", "owner": "postgres"}, "columns": {"metrics_month": {"type": "date", "index": 1, "name": "metrics_month", "comment": "Month in which metrics are being aggregated."}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": "The record's source if the unioning functionality is used. Otherwise this field will be empty."}, "new_employees": {"type": "bigint", "index": 3, "name": "new_employees", "comment": "New employees that came in this month."}, "churned_employees": {"type": "bigint", "index": 4, "name": "churned_employees", "comment": "Churned employees that came in this month."}, "churned_voluntary_employees": {"type": "bigint", "index": 5, "name": "churned_voluntary_employees", "comment": "Voluntary churned employees that came in this month."}, "churned_involuntary_employees": {"type": "bigint", "index": 6, "name": "churned_involuntary_employees", "comment": "Involuntary churned employees that came in this month."}, "churned_workers": {"type": "bigint", "index": 7, "name": "churned_workers", "comment": "Churned workers that came in this month."}, "active_employees": {"type": "bigint", "index": 8, "name": "active_employees", "comment": "Employees considered active this month."}, "active_male_employees": {"type": "bigint", "index": 9, "name": "active_male_employees", "comment": "Male employees considered active this month."}, "active_female_employees": {"type": "bigint", "index": 10, "name": "active_female_employees", "comment": "Female employees considered active this month."}, "active_workers": {"type": "bigint", "index": 11, "name": "active_workers", "comment": "Workers considered active this month."}, "active_known_gender_employees": {"type": "bigint", "index": 12, "name": "active_known_gender_employees", "comment": "Known gender employees considered active this month."}, "avg_employee_primary_compensation": {"type": "double precision", "index": 13, "name": "avg_employee_primary_compensation", "comment": "Average primary compensation salary of employee that month."}, "avg_employee_base_pay": {"type": "double precision", "index": 14, "name": "avg_employee_base_pay", "comment": "Average base pay of the employee that month."}, "avg_employee_salary_and_allowances": {"type": "double precision", "index": 15, "name": "avg_employee_salary_and_allowances", "comment": "Average salary and allowances of the employee that month."}, "avg_days_as_employee": {"type": "numeric", "index": 16, "name": "avg_days_as_employee", "comment": "Average days employee has been active month."}, "avg_worker_primary_compensation": {"type": "double precision", "index": 17, "name": "avg_worker_primary_compensation", "comment": "Average primary compensation for the worker this month."}, "avg_worker_base_pay": {"type": "double precision", "index": 18, "name": "avg_worker_base_pay", "comment": "Average base pay for the worker this month."}, "avg_worker_salary_and_allowances": {"type": "double precision", "index": 19, "name": "avg_worker_salary_and_allowances", "comment": "Average salary plus allowances for the worker this month."}, "avg_days_as_worker": {"type": "numeric", "index": 20, "name": "avg_days_as_worker", "comment": "Average days as a worker this month."}}, "stats": {"has_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": "public_workday_dev", "name": "workday__organization_overview", "database": "postgres", "comment": "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.", "owner": "postgres"}, "columns": {"organization_id": {"type": "text", "index": 1, "name": "organization_id", "comment": "Identifier for the organization."}, "organization_role_id": {"type": "text", "index": 2, "name": "organization_role_id", "comment": "The role id associated with the organization."}, "worker_id": {"type": "text", "index": 3, "name": "worker_id", "comment": "Unique identifier for the worker."}, "position_id": {"type": "text", "index": 4, "name": "position_id", "comment": "Identifier for the specific position."}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": "The record's source if the unioning functionality is used. Otherwise this field will be empty."}, "organization_code": {"type": "text", "index": 6, "name": "organization_code", "comment": "Code associated with the organization."}, "organization_name": {"type": "text", "index": 7, "name": "organization_name", "comment": "Name of the organization."}, "organization_type": {"type": "text", "index": 8, "name": "organization_type", "comment": "Type or category of the organization."}, "organization_sub_type": {"type": "text", "index": 9, "name": "organization_sub_type", "comment": "Subtype or classification of the organization."}, "superior_organization_id": {"type": "text", "index": 10, "name": "superior_organization_id", "comment": "Identifier for the superior organization, if applicable."}, "top_level_organization_id": {"type": "text", "index": 11, "name": "top_level_organization_id", "comment": "Identifier for the top-level organization, if applicable."}, "manager_id": {"type": "text", "index": 12, "name": "manager_id", "comment": "Identifier for the manager associated with the organization."}, "organization_role_code": {"type": "text", "index": 13, "name": "organization_role_code", "comment": "Code assigned to the organization role for reference and categorization."}}, "stats": {"has_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": "public_workday_dev", "name": "workday__position_overview", "database": "postgres", "comment": "Each record represents a position with enriched data on positions. This allows end users to understand position availabilities, vacancies, cost to optimize hiring efforts.", "owner": "postgres"}, "columns": {"position_id": {"type": "text", "index": 1, "name": "position_id", "comment": "Identifier for the specific position."}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": "The record's source if the unioning functionality is used. Otherwise this field will be empty."}, "position_code": {"type": "text", "index": 3, "name": "position_code", "comment": "Code associated with the position for reference and categorization."}, "job_posting_title": {"type": "text", "index": 4, "name": "job_posting_title", "comment": "Title used for job postings associated with the position."}, "effective_date": {"type": "date", "index": 5, "name": "effective_date", "comment": "Date when the job profile becomes effective."}, "is_closed": {"type": "boolean", "index": 6, "name": "is_closed", "comment": "Flag indicating whether the position is closed."}, "is_hiring_freeze": {"type": "boolean", "index": 7, "name": "is_hiring_freeze", "comment": "Flag indicating whether the organization is under a hiring freeze."}, "is_available_for_hire": {"type": "boolean", "index": 8, "name": "is_available_for_hire", "comment": "Flag indicating whether the organization is available for hiring."}, "availability_date": {"type": "date", "index": 9, "name": "availability_date", "comment": "Date when the organization becomes available."}, "is_available_for_recruiting": {"type": "boolean", "index": 10, "name": "is_available_for_recruiting", "comment": "Flag indicating whether the position is available for recruiting."}, "earliest_hire_date": {"type": "date", "index": 11, "name": "earliest_hire_date", "comment": "Earliest date when the position can be filled."}, "is_available_for_overlap": {"type": "boolean", "index": 12, "name": "is_available_for_overlap", "comment": "Flag indicating whether the position is available for overlap with other positions."}, "earliest_overlap_date": {"type": "integer", "index": 13, "name": "earliest_overlap_date", "comment": "Earliest date when the position can overlap with other positions."}, "worker_for_filled_position_id": {"type": "text", "index": 14, "name": "worker_for_filled_position_id", "comment": "Identifier for the worker filling the position, if applicable."}, "worker_type_code": {"type": "text", "index": 15, "name": "worker_type_code", "comment": "Code indicating the type of worker associated with the position."}, "position_time_type_code": {"type": "text", "index": 16, "name": "position_time_type_code", "comment": "Code indicating the time type associated with the position."}, "supervisory_organization_id": {"type": "text", "index": 17, "name": "supervisory_organization_id", "comment": "Identifier for the supervisory organization associated with the position."}, "job_profile_id": {"type": "text", "index": 18, "name": "job_profile_id", "comment": "Identifier for the job profile."}, "compensation_package_code": {"type": "integer", "index": 19, "name": "compensation_package_code", "comment": "Code associated with the compensation package of the position."}, "compensation_grade_code": {"type": "integer", "index": 20, "name": "compensation_grade_code", "comment": "Code associated with the compensation grade of the position."}, "compensation_grade_profile_code": {"type": "integer", "index": 21, "name": "compensation_grade_profile_code", "comment": "Code associated with the compensation grade profile of the position."}}, "stats": {"has_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": "public_workday_dev", "name": "workday__worker_position_org_daily_history", "database": "postgres", "comment": "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.", "owner": "postgres"}, "columns": {"wpo_day_id": {"type": "text", "index": 1, "name": "wpo_day_id", "comment": "Surrogate key hashed on `date_day` and `history_unique_key`"}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": "Date on which the account had these field values."}, "worker_id": {"type": "text", "index": 3, "name": "worker_id", "comment": "Unique identifier for the worker."}, "position_id": {"type": "text", "index": 4, "name": "position_id", "comment": "Identifier for the specific position."}, "organization_id": {"type": "text", "index": 5, "name": "organization_id", "comment": "Identifier for the organization."}, "source_relation": {"type": "text", "index": 6, "name": "source_relation", "comment": "The record's source if the unioning functionality is used. Otherwise this field will be empty."}, "_fivetran_start": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_start", "comment": "Timestamp when the record was first created or modified in the source."}, "_fivetran_end": {"type": "timestamp without time zone", "index": 8, "name": "_fivetran_end", "comment": "Timestamp marking the end of a record being active."}, "_fivetran_active": {"type": "boolean", "index": 9, "name": "_fivetran_active", "comment": "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."}, "_fivetran_date": {"type": "date", "index": 10, "name": "_fivetran_date", "comment": "Date when the record was first created or modified in the source."}, "history_unique_key": {"type": "text", "index": 11, "name": "history_unique_key", "comment": "Surrogate key hashed on `position_id`, `worker_id`, `organization_id`, `source_relation`, and `_fivetran_start` ."}, "index": {"type": "integer", "index": 12, "name": "index", "comment": "An index for a particular identifier."}, "date_of_pay_group_assignment": {"type": "integer", "index": 13, "name": "date_of_pay_group_assignment", "comment": "Date a group's pay is assigned to be processed."}, "primary_business_site": {"type": "integer", "index": 14, "name": "primary_business_site", "comment": "Primary location a worker's business is situated."}, "is_used_in_change_organization_assignments": {"type": "boolean", "index": 15, "name": "is_used_in_change_organization_assignments", "comment": "If a worker has opted to change these organization assignments."}}, "stats": {"has_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.country_personal_information": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "workday_country_personal_information_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"fivetran_id": {"type": "text", "index": 1, "name": "fivetran_id", "comment": null}, "personal_info_common_id": {"type": "text", "index": 2, "name": "personal_info_common_id", "comment": null}, "country_code": {"type": "text", "index": 3, "name": "country_code", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 5, "name": "_fivetran_deleted", "comment": null}, "gender": {"type": "text", "index": 6, "name": "gender", "comment": null}, "hispanic_or_latino": {"type": "integer", "index": 7, "name": "hispanic_or_latino", "comment": null}, "hukou_locality": {"type": "integer", "index": 8, "name": "hukou_locality", "comment": null}, "hukou_postal_code": {"type": "integer", "index": 9, "name": "hukou_postal_code", "comment": null}, "hukou_region_code": {"type": "integer", "index": 10, "name": "hukou_region_code", "comment": null}, "hukou_subregion_code": {"type": "integer", "index": 11, "name": "hukou_subregion_code", "comment": null}, "hukou_type_code": {"type": "integer", "index": 12, "name": "hukou_type_code", "comment": null}, "local_hukou": {"type": "integer", "index": 13, "name": "local_hukou", "comment": null}, "marital_status": {"type": "text", "index": 14, "name": "marital_status", "comment": null}, "marital_status_date": {"type": "integer", "index": 15, "name": "marital_status_date", "comment": null}, "native_region_code": {"type": "integer", "index": 16, "name": "native_region_code", "comment": null}, "native_region": {"type": "text", "index": 17, "name": "native_region", "comment": null}, "personnel_file_agency_for_person": {"type": "integer", "index": 18, "name": "personnel_file_agency_for_person", "comment": null}, "political_affiliation": {"type": "text", "index": 19, "name": "political_affiliation", "comment": null}, "religion": {"type": "integer", "index": 20, "name": "religion", "comment": null}, "social_benefits_locality": {"type": "integer", "index": 21, "name": "social_benefits_locality", "comment": null}}, "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.country_personal_information"}, "source.workday.workday.job_family": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "workday_job_family_data", "database": "postgres", "comment": null, "owner": "postgres"}, "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": "public", "name": "workday_job_family_group_data", "database": "postgres", "comment": null, "owner": "postgres"}, "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": "public", "name": "workday_job_family_job_family_group_data", "database": "postgres", "comment": null, "owner": "postgres"}, "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": "public", "name": "workday_job_family_job_profile_data", "database": "postgres", "comment": null, "owner": "postgres"}, "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": "public", "name": "workday_job_profile_data", "database": "postgres", "comment": null, "owner": "postgres"}, "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": "public", "name": "workday_military_service_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "personal_info_common_id": {"type": "text", "index": 3, "name": "personal_info_common_id", "comment": null}, "discharge_date": {"type": "date", "index": 4, "name": "discharge_date", "comment": null}, "discharge_type": {"type": "integer", "index": 5, "name": "discharge_type", "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}, "status_id": {"type": "text", "index": 9, "name": "status_id", "comment": null}, "status_begin_date": {"type": "integer", "index": 10, "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": "public", "name": "workday_organization_data", "database": "postgres", "comment": null, "owner": "postgres"}, "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": "public", "name": "workday_organization_job_family_data", "database": "postgres", "comment": null, "owner": "postgres"}, "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": "public", "name": "workday_organization_role_data", "database": "postgres", "comment": null, "owner": "postgres"}, "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": "public", "name": "workday_organization_role_worker_data", "database": "postgres", "comment": null, "owner": "postgres"}, "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": "public", "name": "workday_person_contact_email_address_data", "database": "postgres", "comment": null, "owner": "postgres"}, "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": "public", "name": "workday_person_name_data", "database": "postgres", "comment": null, "owner": "postgres"}, "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_common_data": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "workday_personal_information_common_data_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"fivetran_id": {"type": "text", "index": 1, "name": "fivetran_id", "comment": null}, "worker_id": {"type": "text", "index": 2, "name": "worker_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "additional_nationality": {"type": "integer", "index": 5, "name": "additional_nationality", "comment": null}, "blood_type": {"type": "integer", "index": 6, "name": "blood_type", "comment": null}, "citizenship_status": {"type": "text", "index": 7, "name": "citizenship_status", "comment": null}, "city_of_birth": {"type": "text", "index": 8, "name": "city_of_birth", "comment": null}, "city_of_birth_code": {"type": "integer", "index": 9, "name": "city_of_birth_code", "comment": null}, "country_of_birth": {"type": "text", "index": 10, "name": "country_of_birth", "comment": null}, "country_region_of_birth": {"type": "integer", "index": 11, "name": "country_region_of_birth", "comment": null}, "date_of_birth": {"type": "date", "index": 12, "name": "date_of_birth", "comment": null}, "date_of_death": {"type": "integer", "index": 13, "name": "date_of_death", "comment": null}, "last_medical_exam_date": {"type": "integer", "index": 14, "name": "last_medical_exam_date", "comment": null}, "last_medical_exam_valid_to": {"type": "integer", "index": 15, "name": "last_medical_exam_valid_to", "comment": null}, "medical_exam_notes": {"type": "integer", "index": 16, "name": "medical_exam_notes", "comment": null}, "primary_nationality": {"type": "text", "index": 17, "name": "primary_nationality", "comment": null}, "region_of_birth": {"type": "integer", "index": 18, "name": "region_of_birth", "comment": null}}, "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_common_data"}, "source.workday.workday.personal_information_ethnicity": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "workday_personal_information_ethnicity_data", "database": "postgres", "comment": null, "owner": "postgres"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "id": {"type": "text", "index": 3, "name": "id", "comment": null}, "country_personal_information_id": {"type": "text", "index": 4, "name": "country_personal_information_id", "comment": null}, "ethnicity_code": {"type": "text", "index": 5, "name": "ethnicity_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.personal_information_ethnicity"}, "source.workday.workday.personal_information_history": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "workday_personal_information_history_data", "database": "postgres", "comment": null, "owner": "postgres"}, "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": "date", "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": "public", "name": "workday_position_data", "database": "postgres", "comment": null, "owner": "postgres"}, "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": "double precision", "index": 26, "name": "primary_compensation_basis_amount_change", "comment": null}, "primary_compensation_basis_percent_change": {"type": "double precision", "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": "public", "name": "workday_position_job_profile_data", "database": "postgres", "comment": null, "owner": "postgres"}, "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": "public", "name": "workday_position_organization_data", "database": "postgres", "comment": null, "owner": "postgres"}, "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}, "_fivetran_active": {"type": "boolean", "index": 6, "name": "_fivetran_active", "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}}, "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": "public", "name": "workday_worker_history_data", "database": "postgres", "comment": null, "owner": "postgres"}, "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_deleted": {"type": "boolean", "index": 5, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "academic_tenure_date": {"type": "integer", "index": 7, "name": "academic_tenure_date", "comment": null}, "active": {"type": "boolean", "index": 8, "name": "active", "comment": null}, "active_status_date": {"type": "date", "index": 9, "name": "active_status_date", "comment": null}, "annual_currency_summary_currency": {"type": "text", "index": 10, "name": "annual_currency_summary_currency", "comment": null}, "annual_currency_summary_frequency": {"type": "text", "index": 11, "name": "annual_currency_summary_frequency", "comment": null}, "annual_currency_summary_primary_compensation_basis": {"type": "double precision", "index": 12, "name": "annual_currency_summary_primary_compensation_basis", "comment": null}, "annual_currency_summary_total_base_pay": {"type": "double precision", "index": 13, "name": "annual_currency_summary_total_base_pay", "comment": null}, "annual_currency_summary_total_salary_and_allowances": {"type": "double precision", "index": 14, "name": "annual_currency_summary_total_salary_and_allowances", "comment": null}, "annual_summary_currency": {"type": "text", "index": 15, "name": "annual_summary_currency", "comment": null}, "annual_summary_frequency": {"type": "text", "index": 16, "name": "annual_summary_frequency", "comment": null}, "annual_summary_primary_compensation_basis": {"type": "double precision", "index": 17, "name": "annual_summary_primary_compensation_basis", "comment": null}, "annual_summary_total_base_pay": {"type": "double precision", "index": 18, "name": "annual_summary_total_base_pay", "comment": null}, "annual_summary_total_salary_and_allowances": {"type": "double precision", "index": 19, "name": "annual_summary_total_salary_and_allowances", "comment": null}, "benefits_service_date": {"type": "integer", "index": 20, "name": "benefits_service_date", "comment": null}, "company_service_date": {"type": "integer", "index": 21, "name": "company_service_date", "comment": null}, "compensation_effective_date": {"type": "date", "index": 22, "name": "compensation_effective_date", "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}, "continuous_service_date": {"type": "date", "index": 25, "name": "continuous_service_date", "comment": null}, "contract_assignment_details": {"type": "integer", "index": 26, "name": "contract_assignment_details", "comment": null}, "contract_currency_code": {"type": "integer", "index": 27, "name": "contract_currency_code", "comment": null}, "contract_end_date": {"type": "integer", "index": 28, "name": "contract_end_date", "comment": null}, "contract_frequency_name": {"type": "integer", "index": 29, "name": "contract_frequency_name", "comment": null}, "contract_pay_rate": {"type": "double precision", "index": 30, "name": "contract_pay_rate", "comment": null}, "contract_vendor_name": {"type": "integer", "index": 31, "name": "contract_vendor_name", "comment": null}, "date_entered_workforce": {"type": "integer", "index": 32, "name": "date_entered_workforce", "comment": null}, "days_unemployed": {"type": "double precision", "index": 33, "name": "days_unemployed", "comment": null}, "eligible_for_hire": {"type": "text", "index": 34, "name": "eligible_for_hire", "comment": null}, "eligible_for_rehire_on_latest_termination": {"type": "text", "index": 35, "name": "eligible_for_rehire_on_latest_termination", "comment": null}, "employee_compensation_currency": {"type": "text", "index": 36, "name": "employee_compensation_currency", "comment": null}, "employee_compensation_frequency": {"type": "text", "index": 37, "name": "employee_compensation_frequency", "comment": null}, "employee_compensation_primary_compensation_basis": {"type": "double precision", "index": 38, "name": "employee_compensation_primary_compensation_basis", "comment": null}, "employee_compensation_total_base_pay": {"type": "double precision", "index": 39, "name": "employee_compensation_total_base_pay", "comment": null}, "employee_compensation_total_salary_and_allowances": {"type": "double precision", "index": 40, "name": "employee_compensation_total_salary_and_allowances", "comment": null}, "end_employment_date": {"type": "date", "index": 41, "name": "end_employment_date", "comment": null}, "expected_date_of_return": {"type": "integer", "index": 42, "name": "expected_date_of_return", "comment": null}, "expected_retirement_date": {"type": "integer", "index": 43, "name": "expected_retirement_date", "comment": null}, "first_day_of_work": {"type": "date", "index": 44, "name": "first_day_of_work", "comment": null}, "has_international_assignment": {"type": "boolean", "index": 45, "name": "has_international_assignment", "comment": null}, "hire_date": {"type": "date", "index": 46, "name": "hire_date", "comment": null}, "hire_reason": {"type": "text", "index": 47, "name": "hire_reason", "comment": null}, "hire_rescinded": {"type": "boolean", "index": 48, "name": "hire_rescinded", "comment": null}, "home_country": {"type": "integer", "index": 49, "name": "home_country", "comment": null}, "hourly_frequency_currency": {"type": "text", "index": 50, "name": "hourly_frequency_currency", "comment": null}, "hourly_frequency_frequency": {"type": "text", "index": 51, "name": "hourly_frequency_frequency", "comment": null}, "hourly_frequency_primary_compensation_basis": {"type": "double precision", "index": 52, "name": "hourly_frequency_primary_compensation_basis", "comment": null}, "hourly_frequency_total_base_pay": {"type": "double precision", "index": 53, "name": "hourly_frequency_total_base_pay", "comment": null}, "hourly_frequency_total_salary_and_allowances": {"type": "double precision", "index": 54, "name": "hourly_frequency_total_salary_and_allowances", "comment": null}, "last_datefor_which_paid": {"type": "integer", "index": 55, "name": "last_datefor_which_paid", "comment": null}, "local_termination_reason": {"type": "integer", "index": 56, "name": "local_termination_reason", "comment": null}, "months_continuous_prior_employment": {"type": "double precision", "index": 57, "name": "months_continuous_prior_employment", "comment": null}, "not_returning": {"type": "boolean", "index": 58, "name": "not_returning", "comment": null}, "original_hire_date": {"type": "date", "index": 59, "name": "original_hire_date", "comment": null}, "pay_group_frequency_currency": {"type": "text", "index": 60, "name": "pay_group_frequency_currency", "comment": null}, "pay_group_frequency_frequency": {"type": "integer", "index": 61, "name": "pay_group_frequency_frequency", "comment": null}, "pay_group_frequency_primary_compensation_basis": {"type": "double precision", "index": 62, "name": "pay_group_frequency_primary_compensation_basis", "comment": null}, "pay_group_frequency_total_base_pay": {"type": "double precision", "index": 63, "name": "pay_group_frequency_total_base_pay", "comment": null}, "pay_group_frequency_total_salary_and_allowances": {"type": "double precision", "index": 64, "name": "pay_group_frequency_total_salary_and_allowances", "comment": null}, "pay_through_date": {"type": "date", "index": 65, "name": "pay_through_date", "comment": null}, "primary_termination_category": {"type": "text", "index": 66, "name": "primary_termination_category", "comment": null}, "primary_termination_reason": {"type": "text", "index": 67, "name": "primary_termination_reason", "comment": null}, "probation_end_date": {"type": "integer", "index": 68, "name": "probation_end_date", "comment": null}, "probation_start_date": {"type": "integer", "index": 69, "name": "probation_start_date", "comment": null}, "reason_reference_id": {"type": "text", "index": 70, "name": "reason_reference_id", "comment": null}, "regrettable_termination": {"type": "boolean", "index": 71, "name": "regrettable_termination", "comment": null}, "rehire": {"type": "boolean", "index": 72, "name": "rehire", "comment": null}, "resignation_date": {"type": "integer", "index": 73, "name": "resignation_date", "comment": null}, "retired": {"type": "boolean", "index": 74, "name": "retired", "comment": null}, "retirement_date": {"type": "integer", "index": 75, "name": "retirement_date", "comment": null}, "retirement_eligibility_date": {"type": "integer", "index": 76, "name": "retirement_eligibility_date", "comment": null}, "return_unknown": {"type": "boolean", "index": 77, "name": "return_unknown", "comment": null}, "seniority_date": {"type": "date", "index": 78, "name": "seniority_date", "comment": null}, "severance_date": {"type": "integer", "index": 79, "name": "severance_date", "comment": null}, "terminated": {"type": "boolean", "index": 80, "name": "terminated", "comment": null}, "termination_date": {"type": "date", "index": 81, "name": "termination_date", "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": "source.workday.workday.worker_history"}, "source.workday.workday.worker_leave_status": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "workday_worker_leave_status_data", "database": "postgres", "comment": null, "owner": "postgres"}, "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": "double precision", "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": "double precision", "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": "double precision", "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": "double precision", "index": 32, "name": "number_of_babies_adopted_children", "comment": null}, "number_of_child_dependents": {"type": "double precision", "index": 33, "name": "number_of_child_dependents", "comment": null}, "number_of_previous_births": {"type": "double precision", "index": 34, "name": "number_of_previous_births", "comment": null}, "number_of_previous_maternity_leaves": {"type": "double precision", "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": "public", "name": "workday_worker_position_history_data", "database": "postgres", "comment": null, "owner": "postgres"}, "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_deleted": {"type": "boolean", "index": 6, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "academic_pay_setup_data_annual_work_period_end_date": {"type": "integer", "index": 8, "name": "academic_pay_setup_data_annual_work_period_end_date", "comment": null}, "academic_pay_setup_data_annual_work_period_start_date": {"type": "integer", "index": 9, "name": "academic_pay_setup_data_annual_work_period_start_date", "comment": null}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"type": "double precision", "index": 10, "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": 11, "name": "academic_pay_setup_data_disbursement_plan_period_end_date", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"type": "integer", "index": 12, "name": "academic_pay_setup_data_disbursement_plan_period_start_date", "comment": null}, "business_site_summary_display_language": {"type": "text", "index": 13, "name": "business_site_summary_display_language", "comment": null}, "business_site_summary_local": {"type": "text", "index": 14, "name": "business_site_summary_local", "comment": null}, "business_site_summary_location": {"type": "text", "index": 15, "name": "business_site_summary_location", "comment": null}, "business_site_summary_location_type": {"type": "text", "index": 16, "name": "business_site_summary_location_type", "comment": null}, "business_site_summary_name": {"type": "text", "index": 17, "name": "business_site_summary_name", "comment": null}, "business_site_summary_scheduled_weekly_hours": {"type": "double precision", "index": 18, "name": "business_site_summary_scheduled_weekly_hours", "comment": null}, "business_site_summary_time_profile": {"type": "text", "index": 19, "name": "business_site_summary_time_profile", "comment": null}, "business_title": {"type": "text", "index": 20, "name": "business_title", "comment": null}, "critical_job": {"type": "boolean", "index": 21, "name": "critical_job", "comment": null}, "default_weekly_hours": {"type": "double precision", "index": 22, "name": "default_weekly_hours", "comment": null}, "difficulty_to_fill": {"type": "text", "index": 23, "name": "difficulty_to_fill", "comment": null}, "effective_date": {"type": "date", "index": 24, "name": "effective_date", "comment": null}, "employee_type": {"type": "text", "index": 25, "name": "employee_type", "comment": null}, "end_date": {"type": "date", "index": 26, "name": "end_date", "comment": null}, "end_employment_date": {"type": "date", "index": 27, "name": "end_employment_date", "comment": null}, "exclude_from_head_count": {"type": "boolean", "index": 28, "name": "exclude_from_head_count", "comment": null}, "expected_assignment_end_date": {"type": "integer", "index": 29, "name": "expected_assignment_end_date", "comment": null}, "external_employee": {"type": "integer", "index": 30, "name": "external_employee", "comment": null}, "federal_withholding_fein": {"type": "integer", "index": 31, "name": "federal_withholding_fein", "comment": null}, "frequency": {"type": "text", "index": 32, "name": "frequency", "comment": null}, "full_time_equivalent_percentage": {"type": "integer", "index": 33, "name": "full_time_equivalent_percentage", "comment": null}, "headcount_restriction_code": {"type": "integer", "index": 34, "name": "headcount_restriction_code", "comment": null}, "home_country": {"type": "integer", "index": 35, "name": "home_country", "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": "source.workday.workday.worker_position_history"}, "source.workday.workday.worker_position_organization_history": {"metadata": {"type": "BASE TABLE", "schema": "public", "name": "workday_worker_position_organization_history_data", "database": "postgres", "comment": null, "owner": "postgres"}, "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 eb18f1b..2f56a8e 100644 --- a/docs/manifest.json +++ b/docs/manifest.json @@ -1 +1 @@ -{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/manifest/v12.json", "dbt_version": "1.11.11", "generated_at": "2026-06-12T17:13:30.995272Z", "invocation_id": "e0651fd8-5586-4993-a3d4-8e578b9b912b", "invocation_started_at": "2026-06-12T17:13:17.180998+00:00", "env": {}, "project_name": "workday_integration_tests", "project_id": "457920b1e5594993369a050db836d437", "user_id": null, "send_anonymous_usage_stats": false, "adapter_type": "postgres", "quoting": {"database": true, "schema": true, "identifier": true, "column": null}, "run_started_at": "2026-06-12T17:13:17.181304+00:00"}, "nodes": {"seed.workday_integration_tests.workday_job_family_data": {"database": "postgres", "schema": "public", "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, "static_analysis": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ target.type in ('postgres','redshift') or var('fivetran_using_source_casing', false) }}", "column_types": {"_fivetran_synced": "timestamp"}}, "created_at": 1781284399.6130073, "relation_name": "\"postgres\".\"public\".\"workday_job_family_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_job_family_group_data": {"database": "postgres", "schema": "public", "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, "static_analysis": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ target.type in ('postgres','redshift') or var('fivetran_using_source_casing', false) }}", "column_types": {"_fivetran_synced": "timestamp"}}, "created_at": 1781284399.6205943, "relation_name": "\"postgres\".\"public\".\"workday_job_family_group_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_position_job_profile_data": {"database": "postgres", "schema": "public", "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, "static_analysis": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ target.type in ('postgres','redshift') or var('fivetran_using_source_casing', false) }}", "column_types": {"_fivetran_synced": "timestamp"}}, "created_at": 1781284399.6236925, "relation_name": "\"postgres\".\"public\".\"workday_position_job_profile_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_organization_data": {"database": "postgres", "schema": "public", "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, "static_analysis": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ target.type in ('postgres','redshift') or var('fivetran_using_source_casing', false) }}", "column_types": {"_fivetran_synced": "timestamp"}}, "created_at": 1781284399.6269217, "relation_name": "\"postgres\".\"public\".\"workday_organization_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_worker_leave_status_data": {"database": "postgres", "schema": "public", "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, "static_analysis": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "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"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ target.type in ('postgres','redshift') or var('fivetran_using_source_casing', false) }}", "column_types": {"_fivetran_synced": "timestamp", "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": 1781284399.6300406, "relation_name": "\"postgres\".\"public\".\"workday_worker_leave_status_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_position_data": {"database": "postgres", "schema": "public", "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, "static_analysis": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "primary_compensation_basis": "float", "primary_compensation_basis_amount_change": "float", "primary_compensation_basis_percent_change": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ target.type in ('postgres','redshift') or var('fivetran_using_source_casing', false) }}", "column_types": {"_fivetran_synced": "timestamp", "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": 1781284399.6332028, "relation_name": "\"postgres\".\"public\".\"workday_position_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_personal_information_ethnicity_data": {"database": "postgres", "schema": "public", "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": "107fa2f924415ca927c3d3b0e328f2d760c473ca80b61057155b85218e53d9ed"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ target.type in ('postgres','redshift') or var('fivetran_using_source_casing', false) }}", "column_types": {"_fivetran_synced": "timestamp"}}, "created_at": 1781284399.6362584, "relation_name": "\"postgres\".\"public\".\"workday_personal_information_ethnicity_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_worker_position_organization_history_data": {"database": "postgres", "schema": "public", "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": "5480a1177e9e1909ba459d0393d1e8c4ecb40cc87db76809340dded54ab15d9d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": 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": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ target.type in ('postgres','redshift') or var('fivetran_using_source_casing', false) }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1781284399.6393018, "relation_name": "\"postgres\".\"public\".\"workday_worker_position_organization_history_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_organization_role_worker_data": {"database": "postgres", "schema": "public", "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, "static_analysis": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ target.type in ('postgres','redshift') or var('fivetran_using_source_casing', false) }}", "column_types": {"_fivetran_synced": "timestamp"}}, "created_at": 1781284399.6424375, "relation_name": "\"postgres\".\"public\".\"workday_organization_role_worker_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_job_family_job_profile_data": {"database": "postgres", "schema": "public", "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, "static_analysis": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ target.type in ('postgres','redshift') or var('fivetran_using_source_casing', false) }}", "column_types": {"_fivetran_synced": "timestamp"}}, "created_at": 1781284399.6454222, "relation_name": "\"postgres\".\"public\".\"workday_job_family_job_profile_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_country_personal_information_data": {"database": "postgres", "schema": "public", "name": "workday_country_personal_information_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_country_personal_information_data.csv", "original_file_path": "seeds/workday_country_personal_information_data.csv", "unique_id": "seed.workday_integration_tests.workday_country_personal_information_data", "fqn": ["workday_integration_tests", "workday_country_personal_information_data"], "alias": "workday_country_personal_information_data", "checksum": {"name": "sha256", "checksum": "f68c3082af227073768e2a494e17f37e7b73958b59dab3f12fa4625fca9b522d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ target.type in ('postgres','redshift') or var('fivetran_using_source_casing', false) }}", "column_types": {"_fivetran_synced": "timestamp"}}, "created_at": 1781284399.6484601, "relation_name": "\"postgres\".\"public\".\"workday_country_personal_information_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_worker_position_history_data": {"database": "postgres", "schema": "public", "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": "ed202c88c92ec5e05fb28c902ea5988a1492e617dd646cabd4ef2a64bca7785f"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "academic_pay_setup_data_annual_work_period_work_percent_of_year": "float", "business_site_summary_scheduled_weekly_hours": "float", "default_weekly_hours": "float", "_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": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ target.type in ('postgres','redshift') or var('fivetran_using_source_casing', false) }}", "column_types": {"_fivetran_synced": "timestamp", "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' }}", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1781284399.6516783, "relation_name": "\"postgres\".\"public\".\"workday_worker_position_history_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_personal_information_history_data": {"database": "postgres", "schema": "public", "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": "cf68af0cbe18950f7fc92fb28f70b2a8947264d154a08d0498bb9f6aff4c1186"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": 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": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ target.type in ('postgres','redshift') or var('fivetran_using_source_casing', false) }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1781284399.6548364, "relation_name": "\"postgres\".\"public\".\"workday_personal_information_history_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_job_family_job_family_group_data": {"database": "postgres", "schema": "public", "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, "static_analysis": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ target.type in ('postgres','redshift') or var('fivetran_using_source_casing', false) }}", "column_types": {"_fivetran_synced": "timestamp"}}, "created_at": 1781284399.6578243, "relation_name": "\"postgres\".\"public\".\"workday_job_family_job_family_group_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_position_organization_data": {"database": "postgres", "schema": "public", "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": "f5ced8efdd1f948d8d3c2de8d6cc6a6f52551a8a10e77874624d802ac350a8cc"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": 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": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ target.type in ('postgres','redshift') or var('fivetran_using_source_casing', false) }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1781284399.660806, "relation_name": "\"postgres\".\"public\".\"workday_position_organization_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_person_name_data": {"database": "postgres", "schema": "public", "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": "8957c4cfb94030e4bfd30f70b43a6bab404785ea72390ea453413023e9d720a5"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ target.type in ('postgres','redshift') or var('fivetran_using_source_casing', false) }}", "column_types": {"_fivetran_synced": "timestamp"}}, "created_at": 1781284399.6637552, "relation_name": "\"postgres\".\"public\".\"workday_person_name_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_organization_job_family_data": {"database": "postgres", "schema": "public", "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, "static_analysis": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ target.type in ('postgres','redshift') or var('fivetran_using_source_casing', false) }}", "column_types": {"_fivetran_synced": "timestamp"}}, "created_at": 1781284399.6666727, "relation_name": "\"postgres\".\"public\".\"workday_organization_job_family_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_personal_information_common_data_data": {"database": "postgres", "schema": "public", "name": "workday_personal_information_common_data_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_personal_information_common_data_data.csv", "original_file_path": "seeds/workday_personal_information_common_data_data.csv", "unique_id": "seed.workday_integration_tests.workday_personal_information_common_data_data", "fqn": ["workday_integration_tests", "workday_personal_information_common_data_data"], "alias": "workday_personal_information_common_data_data", "checksum": {"name": "sha256", "checksum": "b472ca7e494b28b870355821234d4395773330368e5066955ba69c611169c9b9"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ target.type in ('postgres','redshift') or var('fivetran_using_source_casing', false) }}", "column_types": {"_fivetran_synced": "timestamp"}}, "created_at": 1781284399.669704, "relation_name": "\"postgres\".\"public\".\"workday_personal_information_common_data_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_job_profile_data": {"database": "postgres", "schema": "public", "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, "static_analysis": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ target.type in ('postgres','redshift') or var('fivetran_using_source_casing', false) }}", "column_types": {"_fivetran_synced": "timestamp"}}, "created_at": 1781284399.672626, "relation_name": "\"postgres\".\"public\".\"workday_job_profile_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_person_contact_email_address_data": {"database": "postgres", "schema": "public", "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, "static_analysis": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ target.type in ('postgres','redshift') or var('fivetran_using_source_casing', false) }}", "column_types": {"_fivetran_synced": "timestamp"}}, "created_at": 1781284399.6755984, "relation_name": "\"postgres\".\"public\".\"workday_person_contact_email_address_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_organization_role_data": {"database": "postgres", "schema": "public", "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, "static_analysis": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ target.type in ('postgres','redshift') or var('fivetran_using_source_casing', false) }}", "column_types": {"_fivetran_synced": "timestamp"}}, "created_at": 1781284399.6786299, "relation_name": "\"postgres\".\"public\".\"workday_organization_role_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_military_service_data": {"database": "postgres", "schema": "public", "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": "def70ff8093177913fa8dabfd06dcb77b523ef3f86d2a6c876eec0f3c931c9a1"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ target.type in ('postgres','redshift') or var('fivetran_using_source_casing', false) }}", "column_types": {"_fivetran_synced": "timestamp"}}, "created_at": 1781284399.6816742, "relation_name": "\"postgres\".\"public\".\"workday_military_service_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_worker_history_data": {"database": "postgres", "schema": "public", "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": "fbb146b86dd709011a56421e89d7a997bfe0eae6c9e6f23840a135c3e48b987d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "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", "_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": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ target.type in ('postgres','redshift') or var('fivetran_using_source_casing', false) }}", "column_types": {"_fivetran_synced": "timestamp", "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' }}", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1781284399.6849346, "relation_name": "\"postgres\".\"public\".\"workday_worker_history_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "model.workday.workday__position_overview": {"database": "postgres", "schema": "public_workday_dev", "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_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.position_id"]}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.source_relation"]}, "position_code": {"name": "position_code", "description": "Code associated with the position for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.position_code"]}, "job_posting_title": {"name": "job_posting_title", "description": "Title used for job postings associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_posting_title"]}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.effective_date"]}, "is_closed": {"name": "is_closed", "description": "Flag indicating whether the position is closed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.closed"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hiring_freeze"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.available_for_hire"]}, "availability_date": {"name": "availability_date", "description": "Date when the organization becomes available.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.availability_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.available_for_recruiting"]}, "earliest_hire_date": {"name": "earliest_hire_date", "description": "Earliest date when the position can be filled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.earliest_hire_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.available_for_overlap"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.earliest_overlap_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.worker_for_filled_position_id"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.worker_type_code"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.position_time_type_code"]}, "supervisory_organization_id": {"name": "supervisory_organization_id", "description": "Identifier for the supervisory organization associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.supervisory_organization_id"]}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_profile_id"]}, "compensation_package_code": {"name": "compensation_package_code", "description": "Code associated with the compensation package of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.compensation_package_code"]}, "compensation_grade_code": {"name": "compensation_grade_code", "description": "Code associated with the compensation grade of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.compensation_grade_code"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.compensation_grade_profile_code"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday.yml", "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "table", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1781284401.373601, "relation_name": "\"postgres\".\"public_workday_dev\".\"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", "doc_blocks": ["doc.workday.workday__position_overview"], "language": "sql", "refs": [{"name": "stg_workday__position", "package": null, "version": null}, {"name": "stg_workday__position_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__position_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n academic_tenure_eligible as academic_tenure_eligible,\n availability_date as availability_date,\n available_for_hire as available_for_hire,\n available_for_overlap as available_for_overlap,\n available_for_recruiting as available_for_recruiting,\n closed as closed,\n compensation_grade_code as compensation_grade_code,\n compensation_grade_profile_code as compensation_grade_profile_code,\n compensation_package_code as compensation_package_code,\n compensation_step_code as compensation_step_code,\n critical_job as critical_job,\n difficulty_to_fill_code as difficulty_to_fill_code,\n earliest_hire_date as earliest_hire_date,\n earliest_overlap_date as earliest_overlap_date,\n effective_date as effective_date,\n hiring_freeze as hiring_freeze,\n id as id,\n job_description as job_description,\n job_description_summary as job_description_summary,\n job_posting_title as job_posting_title,\n position_code as position_code,\n position_time_type_code as position_time_type_code,\n primary_compensation_basis as primary_compensation_basis,\n primary_compensation_basis_amount_change as primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change as primary_compensation_basis_percent_change,\n supervisory_organization_id as supervisory_organization_id,\n work_shift_required as work_shift_required,\n worker_for_filled_position_id as worker_for_filled_position_id,\n worker_position_id as worker_position_id,\n worker_type_code as worker_type_code\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n difficulty_to_fill_code as difficulty_to_fill_code,\n is_critical_job as is_critical_job,\n job_category_code as job_category_code,\n job_profile_id as job_profile_id,\n management_level_code as management_level_code,\n name as name,\n position_id as position_id,\n work_shift_required as work_shift_required\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__position_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n academic_tenure_eligible as academic_tenure_eligible,\n availability_date as availability_date,\n available_for_hire as available_for_hire,\n available_for_overlap as available_for_overlap,\n available_for_recruiting as available_for_recruiting,\n closed as closed,\n compensation_grade_code as compensation_grade_code,\n compensation_grade_profile_code as compensation_grade_profile_code,\n compensation_package_code as compensation_package_code,\n compensation_step_code as compensation_step_code,\n critical_job as critical_job,\n difficulty_to_fill_code as difficulty_to_fill_code,\n earliest_hire_date as earliest_hire_date,\n earliest_overlap_date as earliest_overlap_date,\n effective_date as effective_date,\n hiring_freeze as hiring_freeze,\n id as id,\n job_description as job_description,\n job_description_summary as job_description_summary,\n job_posting_title as job_posting_title,\n position_code as position_code,\n position_time_type_code as position_time_type_code,\n primary_compensation_basis as primary_compensation_basis,\n primary_compensation_basis_amount_change as primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change as primary_compensation_basis_percent_change,\n supervisory_organization_id as supervisory_organization_id,\n work_shift_required as work_shift_required,\n worker_for_filled_position_id as worker_for_filled_position_id,\n worker_position_id as worker_position_id,\n worker_type_code as worker_type_code\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n difficulty_to_fill_code as difficulty_to_fill_code,\n is_critical_job as is_critical_job,\n job_category_code as job_category_code,\n job_profile_id as job_profile_id,\n management_level_code as management_level_code,\n name as name,\n position_id as position_id,\n work_shift_required as work_shift_required\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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, "primary_key": [], "time_spine": null}, "model.workday.workday__employee_overview": {"database": "postgres", "schema": "public_workday_dev", "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": "b4b41327513d4e0603d953f0c8af861417d1b618ee859f65fcb69066fcc9d40e"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.employee_id"]}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.worker_id"]}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.position_id"]}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.source_relation"]}, "fivetran_id": {"name": "fivetran_id", "description": "Fivetran composite key identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.fivetran_id"]}, "worker_code": {"name": "worker_code", "description": "The code associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.worker_code"]}, "user_id": {"name": "user_id", "description": "The identifier for the user associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.user_id"]}, "universal_id": {"name": "universal_id", "description": "The universal ID associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.universal_id"]}, "is_user_active": {"name": "is_user_active", "description": "Is the user currently active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.is_user_active"]}, "is_employed": {"name": "is_employed", "description": "Is the worker currently employed?", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.is_employed"]}, "hire_date": {"name": "hire_date", "description": "The date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hire_date"]}, "departure_date": {"name": "departure_date", "description": "The departure date for the employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.departure_date"]}, "days_as_worker": {"name": "days_as_worker", "description": "Number of days since the worker has been created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.days_as_worker"]}, "is_terminated": {"name": "is_terminated", "description": "Has the worker been terminated?", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.is_terminated"]}, "primary_termination_category": {"name": "primary_termination_category", "description": "The primary termination category for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.primary_termination_category"]}, "primary_termination_reason": {"name": "primary_termination_reason", "description": "The primary termination reason for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.primary_termination_reason"]}, "is_regrettable_termination": {"name": "is_regrettable_termination", "description": "Has the worker been regrettably terminated?", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.is_regrettable_termination"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.compensation_effective_date"]}, "employee_compensation_frequency": {"name": "employee_compensation_frequency", "description": "Frequency of payment for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.employee_compensation_frequency"]}, "annual_currency_summary_currency": {"name": "annual_currency_summary_currency", "description": "Currency used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.annual_currency_summary_currency"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.annual_currency_summary_total_base_pay"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.annual_currency_summary_primary_compensation_basis"]}, "annual_summary_currency": {"name": "annual_summary_currency", "description": "Currency used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.annual_summary_currency"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.annual_summary_total_base_pay"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.annual_summary_primary_compensation_basis"]}, "compensation_grade_id": {"name": "compensation_grade_id", "description": "Identifier for the compensation grade.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.compensation_grade_id"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.compensation_grade_profile_id"]}, "date_of_birth": {"name": "date_of_birth", "description": "The date of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.date_of_birth"]}, "employee_type": {"name": "employee_type", "description": "The type of employee associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.employee_type"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.management_level_code"]}, "gender": {"name": "gender", "description": "The gender of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.gender"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hispanic_or_latino"]}, "first_name": {"name": "first_name", "description": "The first name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.first_name"]}, "last_name": {"name": "last_name", "description": "The last name or surname of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.last_name"]}, "email_address": {"name": "email_address", "description": "The actual email address of the person.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.email_address"]}, "ethnicity_codes": {"name": "ethnicity_codes", "description": "String aggregation of all ethnicity codes associated with an individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.ethnicity_codes"]}, "military_status": {"name": "military_status", "description": "The military status of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.military_status"]}, "business_title": {"name": "business_title", "description": "The business title associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.business_title"]}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_profile_id"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.fte_percent"]}, "position_start_date": {"name": "position_start_date", "description": "The position start date for this employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.position_start_date"]}, "position_end_date": {"name": "position_end_date", "description": "The position end date for this employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.position_end_date"]}, "position_effective_date": {"name": "position_effective_date", "description": "The position effective date for the employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.position_effective_date"]}, "position_location": {"name": "position_location", "description": "The position location of the employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.position_location"]}, "days_employed": {"name": "days_employed", "description": "The number of days the employee held their position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.days_employed"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.employed_one_year"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.employed_five_years"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.employed_ten_years"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.employed_twenty_years"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.employed_thirty_years"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.is_current_employee_one_year"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.is_current_employee_five_years"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.is_current_employee_ten_years"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.is_current_employee_twenty_years"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.is_current_employee_thirty_years"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday.yml", "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "table", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1781284401.3575122, "relation_name": "\"postgres\".\"public_workday_dev\".\"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 fivetran_id,\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", "doc_blocks": ["doc.workday.workday__employee_overview"], "language": "sql", "refs": [{"name": "int_workday__worker_employee_enhanced", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n academic_tenure_date as academic_tenure_date,\n active as active,\n active_status_date as active_status_date,\n annual_currency_summary_currency as annual_currency_summary_currency,\n annual_currency_summary_frequency as annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis as annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay as annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances as annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency as annual_summary_currency,\n annual_summary_frequency as annual_summary_frequency,\n annual_summary_primary_compensation_basis as annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay as annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances as annual_summary_total_salary_and_allowances,\n benefits_service_date as benefits_service_date,\n company_service_date as company_service_date,\n compensation_effective_date as compensation_effective_date,\n compensation_grade_id as compensation_grade_id,\n compensation_grade_profile_id as compensation_grade_profile_id,\n continuous_service_date as continuous_service_date,\n contract_assignment_details as contract_assignment_details,\n contract_currency_code as contract_currency_code,\n contract_end_date as contract_end_date,\n contract_frequency_name as contract_frequency_name,\n contract_pay_rate as contract_pay_rate,\n contract_vendor_name as contract_vendor_name,\n date_entered_workforce as date_entered_workforce,\n days_unemployed as days_unemployed,\n eligible_for_hire as eligible_for_hire,\n eligible_for_rehire_on_latest_termination as eligible_for_rehire_on_latest_termination,\n employee_compensation_currency as employee_compensation_currency,\n employee_compensation_frequency as employee_compensation_frequency,\n employee_compensation_primary_compensation_basis as employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay as employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances as employee_compensation_total_salary_and_allowances,\n end_employment_date as end_employment_date,\n expected_date_of_return as expected_date_of_return,\n expected_retirement_date as expected_retirement_date,\n first_day_of_work as first_day_of_work,\n has_international_assignment as has_international_assignment,\n hire_date as hire_date,\n hire_reason as hire_reason,\n hire_rescinded as hire_rescinded,\n home_country as home_country,\n hourly_frequency_currency as hourly_frequency_currency,\n hourly_frequency_frequency as hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis as hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay as hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances as hourly_frequency_total_salary_and_allowances,\n id as id,\n last_datefor_which_paid as last_datefor_which_paid,\n local_termination_reason as local_termination_reason,\n months_continuous_prior_employment as months_continuous_prior_employment,\n not_returning as not_returning,\n original_hire_date as original_hire_date,\n pay_group_frequency_currency as pay_group_frequency_currency,\n pay_group_frequency_frequency as pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis as pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay as pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances as pay_group_frequency_total_salary_and_allowances,\n pay_through_date as pay_through_date,\n primary_termination_category as primary_termination_category,\n primary_termination_reason as primary_termination_reason,\n probation_end_date as probation_end_date,\n probation_start_date as probation_start_date,\n reason_reference_id as reason_reference_id,\n regrettable_termination as regrettable_termination,\n rehire as rehire,\n resignation_date as resignation_date,\n retired as retired,\n retirement_date as retirement_date,\n retirement_eligibility_date as retirement_eligibility_date,\n return_unknown as return_unknown,\n seniority_date as seniority_date,\n severance_date as severance_date,\n terminated as terminated,\n termination_date as termination_date,\n termination_involuntary as termination_involuntary,\n termination_last_day_of_work as termination_last_day_of_work,\n time_off_service_date as time_off_service_date,\n universal_id as universal_id,\n user_id as user_id,\n vesting_date as vesting_date,\n worker_code as worker_code\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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_common_data as (\nwith base as (\n\n select *\n from \"postgres\".\"public_workday_dev\".\"stg_workday__personal_information_common_data_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_synced as _fivetran_synced,\n _fivetran_deleted as _fivetran_deleted,\n fivetran_id as fivetran_id,\n worker_id as worker_id,\n additional_nationality as additional_nationality,\n blood_type as blood_type,\n citizenship_status as citizenship_status,\n city_of_birth as city_of_birth,\n city_of_birth_code as city_of_birth_code,\n country_of_birth as country_of_birth,\n country_region_of_birth as country_region_of_birth,\n date_of_birth as date_of_birth,\n date_of_death as date_of_death,\n last_medical_exam_date as last_medical_exam_date,\n last_medical_exam_valid_to as last_medical_exam_valid_to,\n medical_exam_notes as medical_exam_notes,\n primary_nationality as primary_nationality,\n region_of_birth as region_of_birth\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n from base\n),\n\nfinal as (\n\n select\n fivetran_id,\n 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 country_region_of_birth,\n date_of_birth,\n date_of_death,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n medical_exam_notes,\n primary_nationality,\n region_of_birth\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__country_personal_information as (\nwith base as (\n\n select *\n from \"postgres\".\"public_workday_dev\".\"stg_workday__country_personal_information_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_synced as _fivetran_synced,\n _fivetran_deleted as _fivetran_deleted,\n fivetran_id as fivetran_id,\n personal_info_common_id as personal_info_common_id,\n country_code as country_code,\n gender as gender,\n hispanic_or_latino as hispanic_or_latino,\n hukou_locality as hukou_locality,\n hukou_postal_code as hukou_postal_code,\n hukou_region_code as hukou_region_code,\n hukou_subregion_code as hukou_subregion_code,\n hukou_type_code as hukou_type_code,\n local_hukou as local_hukou,\n marital_status as marital_status,\n marital_status_date as marital_status_date,\n native_region_code as native_region_code,\n native_region as native_region,\n personnel_file_agency_for_person as personnel_file_agency_for_person,\n political_affiliation as political_affiliation,\n religion as religion,\n social_benefits_locality as social_benefits_locality\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n from base\n),\n\nfinal as (\n\n select\n fivetran_id,\n personal_info_common_id,\n country_code,\n source_relation,\n _fivetran_synced,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region_code,\n hukou_subregion_code,\n hukou_type_code,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n native_region_code,\n native_region,\n personnel_file_agency_for_person,\n political_affiliation,\n religion,\n social_benefits_locality\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"public_workday_dev\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n academic_suffix as academic_suffix,\n additional_name_type as additional_name_type,\n country as country,\n first_name as first_name,\n full_name_singapore_malaysia as full_name_singapore_malaysia,\n hereditary_suffix as hereditary_suffix,\n honorary_suffix as honorary_suffix,\n index as index,\n last_name as last_name,\n local_first_name as local_first_name,\n local_first_name_2 as local_first_name_2,\n local_last_name as local_last_name,\n local_last_name_2 as local_last_name_2,\n local_middle_name as local_middle_name,\n local_middle_name_2 as local_middle_name_2,\n local_secondary_last_name as local_secondary_last_name,\n local_secondary_last_name_2 as local_secondary_last_name_2,\n middle_name as middle_name,\n personal_info_system_id as personal_info_system_id,\n prefix_salutation as prefix_salutation,\n prefix_title as prefix_title,\n prefix_title_code as prefix_title_code,\n professional_suffix as professional_suffix,\n religious_suffix as religious_suffix,\n royal_suffix as royal_suffix,\n secondary_last_name as secondary_last_name,\n social_suffix as social_suffix,\n social_suffix_id as social_suffix_id,\n tertiary_last_name as tertiary_last_name,\n type as type\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n 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\".\"public_workday_dev\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n email_address as email_address,\n email_code as email_code,\n email_comment as email_comment,\n id as id,\n personal_info_system_id as personal_info_system_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n 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\".\"public_workday_dev\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n id as id,\n country_personal_information_id as country_personal_information_id,\n ethnicity_code as ethnicity_code\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n from base\n),\n\nfinal as (\n\n select\n source_relation,\n _fivetran_synced, \n country_personal_information_id as worker_id,\n ethnicity_code,\n id as ethnicity_id\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\".\"public_workday_dev\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n personal_info_common_id as personal_info_common_id,\n discharge_date as discharge_date,\n discharge_type as discharge_type,\n notes as notes,\n rank as rank,\n service as service,\n status_id as status_id,\n status_begin_date as status_begin_date\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n from base\n),\n\nfinal as (\n select\n personal_info_common_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n notes,\n rank,\n service,\n discharge_type,\n status_id 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_common_data as (\n\n select\n fivetran_id,\n worker_id,\n source_relation,\n date_of_birth\n from __dbt__cte__stg_workday__personal_information_common_data\n),\n\nworker_personal_country_data as (\n\n select\n fivetran_id as personal_country_id,\n personal_info_common_id,\n source_relation,\n gender,\n is_hispanic_or_latino\n from __dbt__cte__stg_workday__country_personal_information\n),\n\nworker_personal_info_data as (\n\n select\n worker_personal_common_data.fivetran_id,\n worker_personal_country_data.personal_country_id,\n worker_personal_common_data.worker_id,\n worker_personal_common_data.source_relation,\n worker_personal_common_data.date_of_birth,\n worker_personal_country_data.gender,\n worker_personal_country_data.is_hispanic_or_latino\n from worker_personal_common_data\n left join worker_personal_country_data\n on worker_personal_common_data.fivetran_id = worker_personal_country_data.personal_info_common_id\n and worker_personal_common_data.source_relation = worker_personal_country_data.source_relation\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.fivetran_id,\n worker_personal_info_data.worker_id,\n worker_personal_info_data.source_relation,\n worker_personal_info_data.date_of_birth,\n worker_personal_info_data.gender,\n worker_personal_info_data.is_hispanic_or_latino,\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.personal_country_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.fivetran_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\".\"public_workday_dev\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n academic_pay_setup_data_annual_work_period_end_date as academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date as academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year as academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date as academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date as academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language as business_site_summary_display_language,\n business_site_summary_local as business_site_summary_local,\n business_site_summary_location as business_site_summary_location,\n business_site_summary_location_type as business_site_summary_location_type,\n business_site_summary_name as business_site_summary_name,\n business_site_summary_scheduled_weekly_hours as business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile as business_site_summary_time_profile,\n business_title as business_title,\n critical_job as critical_job,\n default_weekly_hours as default_weekly_hours,\n difficulty_to_fill as difficulty_to_fill,\n effective_date as effective_date,\n employee_type as employee_type,\n end_date as end_date,\n end_employment_date as end_employment_date,\n exclude_from_head_count as exclude_from_head_count,\n expected_assignment_end_date as expected_assignment_end_date,\n external_employee as external_employee,\n federal_withholding_fein as federal_withholding_fein,\n frequency as frequency,\n full_time_equivalent_percentage as full_time_equivalent_percentage,\n headcount_restriction_code as headcount_restriction_code,\n home_country as home_country,\n host_country as host_country,\n international_assignment_type as international_assignment_type,\n is_primary_job as is_primary_job,\n job_exempt as job_exempt,\n job_profile_id as job_profile_id,\n management_level_code as management_level_code,\n paid_fte as paid_fte,\n pay_group as pay_group,\n pay_rate as pay_rate,\n pay_rate_type as pay_rate_type,\n pay_through_date as pay_through_date,\n payroll_entity as payroll_entity,\n payroll_file_number as payroll_file_number,\n position_id as position_id,\n regular_paid_equivalent_hours as regular_paid_equivalent_hours,\n scheduled_weekly_hours as scheduled_weekly_hours,\n specify_paid_fte as specify_paid_fte,\n specify_working_fte as specify_working_fte,\n start_date as start_date,\n start_international_assignment_reason as start_international_assignment_reason,\n work_hours_profile as work_hours_profile,\n work_shift as work_shift,\n work_shift_required as work_shift_required,\n work_space as work_space,\n worker_hours_profile_classification as worker_hours_profile_classification,\n worker_id as worker_id,\n working_fte as working_fte,\n working_time_frequency as working_time_frequency,\n working_time_unit as working_time_unit,\n working_time_value as working_time_value\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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 int_worker_personal_details.fivetran_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 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 fivetran_id,\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\".\"public_workday_dev\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n academic_tenure_date as academic_tenure_date,\n active as active,\n active_status_date as active_status_date,\n annual_currency_summary_currency as annual_currency_summary_currency,\n annual_currency_summary_frequency as annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis as annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay as annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances as annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency as annual_summary_currency,\n annual_summary_frequency as annual_summary_frequency,\n annual_summary_primary_compensation_basis as annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay as annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances as annual_summary_total_salary_and_allowances,\n benefits_service_date as benefits_service_date,\n company_service_date as company_service_date,\n compensation_effective_date as compensation_effective_date,\n compensation_grade_id as compensation_grade_id,\n compensation_grade_profile_id as compensation_grade_profile_id,\n continuous_service_date as continuous_service_date,\n contract_assignment_details as contract_assignment_details,\n contract_currency_code as contract_currency_code,\n contract_end_date as contract_end_date,\n contract_frequency_name as contract_frequency_name,\n contract_pay_rate as contract_pay_rate,\n contract_vendor_name as contract_vendor_name,\n date_entered_workforce as date_entered_workforce,\n days_unemployed as days_unemployed,\n eligible_for_hire as eligible_for_hire,\n eligible_for_rehire_on_latest_termination as eligible_for_rehire_on_latest_termination,\n employee_compensation_currency as employee_compensation_currency,\n employee_compensation_frequency as employee_compensation_frequency,\n employee_compensation_primary_compensation_basis as employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay as employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances as employee_compensation_total_salary_and_allowances,\n end_employment_date as end_employment_date,\n expected_date_of_return as expected_date_of_return,\n expected_retirement_date as expected_retirement_date,\n first_day_of_work as first_day_of_work,\n has_international_assignment as has_international_assignment,\n hire_date as hire_date,\n hire_reason as hire_reason,\n hire_rescinded as hire_rescinded,\n home_country as home_country,\n hourly_frequency_currency as hourly_frequency_currency,\n hourly_frequency_frequency as hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis as hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay as hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances as hourly_frequency_total_salary_and_allowances,\n id as id,\n last_datefor_which_paid as last_datefor_which_paid,\n local_termination_reason as local_termination_reason,\n months_continuous_prior_employment as months_continuous_prior_employment,\n not_returning as not_returning,\n original_hire_date as original_hire_date,\n pay_group_frequency_currency as pay_group_frequency_currency,\n pay_group_frequency_frequency as pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis as pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay as pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances as pay_group_frequency_total_salary_and_allowances,\n pay_through_date as pay_through_date,\n primary_termination_category as primary_termination_category,\n primary_termination_reason as primary_termination_reason,\n probation_end_date as probation_end_date,\n probation_start_date as probation_start_date,\n reason_reference_id as reason_reference_id,\n regrettable_termination as regrettable_termination,\n rehire as rehire,\n resignation_date as resignation_date,\n retired as retired,\n retirement_date as retirement_date,\n retirement_eligibility_date as retirement_eligibility_date,\n return_unknown as return_unknown,\n seniority_date as seniority_date,\n severance_date as severance_date,\n terminated as terminated,\n termination_date as termination_date,\n termination_involuntary as termination_involuntary,\n termination_last_day_of_work as termination_last_day_of_work,\n time_off_service_date as time_off_service_date,\n universal_id as universal_id,\n user_id as user_id,\n vesting_date as vesting_date,\n worker_code as worker_code\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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_common_data", "sql": " __dbt__cte__stg_workday__personal_information_common_data as (\nwith base as (\n\n select *\n from \"postgres\".\"public_workday_dev\".\"stg_workday__personal_information_common_data_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_synced as _fivetran_synced,\n _fivetran_deleted as _fivetran_deleted,\n fivetran_id as fivetran_id,\n worker_id as worker_id,\n additional_nationality as additional_nationality,\n blood_type as blood_type,\n citizenship_status as citizenship_status,\n city_of_birth as city_of_birth,\n city_of_birth_code as city_of_birth_code,\n country_of_birth as country_of_birth,\n country_region_of_birth as country_region_of_birth,\n date_of_birth as date_of_birth,\n date_of_death as date_of_death,\n last_medical_exam_date as last_medical_exam_date,\n last_medical_exam_valid_to as last_medical_exam_valid_to,\n medical_exam_notes as medical_exam_notes,\n primary_nationality as primary_nationality,\n region_of_birth as region_of_birth\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n from base\n),\n\nfinal as (\n\n select\n fivetran_id,\n 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 country_region_of_birth,\n date_of_birth,\n date_of_death,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n medical_exam_notes,\n primary_nationality,\n region_of_birth\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__country_personal_information", "sql": " __dbt__cte__stg_workday__country_personal_information as (\nwith base as (\n\n select *\n from \"postgres\".\"public_workday_dev\".\"stg_workday__country_personal_information_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_synced as _fivetran_synced,\n _fivetran_deleted as _fivetran_deleted,\n fivetran_id as fivetran_id,\n personal_info_common_id as personal_info_common_id,\n country_code as country_code,\n gender as gender,\n hispanic_or_latino as hispanic_or_latino,\n hukou_locality as hukou_locality,\n hukou_postal_code as hukou_postal_code,\n hukou_region_code as hukou_region_code,\n hukou_subregion_code as hukou_subregion_code,\n hukou_type_code as hukou_type_code,\n local_hukou as local_hukou,\n marital_status as marital_status,\n marital_status_date as marital_status_date,\n native_region_code as native_region_code,\n native_region as native_region,\n personnel_file_agency_for_person as personnel_file_agency_for_person,\n political_affiliation as political_affiliation,\n religion as religion,\n social_benefits_locality as social_benefits_locality\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n from base\n),\n\nfinal as (\n\n select\n fivetran_id,\n personal_info_common_id,\n country_code,\n source_relation,\n _fivetran_synced,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region_code,\n hukou_subregion_code,\n hukou_type_code,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n native_region_code,\n native_region,\n personnel_file_agency_for_person,\n political_affiliation,\n religion,\n social_benefits_locality\n from fields\n where not coalesce(_fivetran_deleted, false)\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\".\"public_workday_dev\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n academic_suffix as academic_suffix,\n additional_name_type as additional_name_type,\n country as country,\n first_name as first_name,\n full_name_singapore_malaysia as full_name_singapore_malaysia,\n hereditary_suffix as hereditary_suffix,\n honorary_suffix as honorary_suffix,\n index as index,\n last_name as last_name,\n local_first_name as local_first_name,\n local_first_name_2 as local_first_name_2,\n local_last_name as local_last_name,\n local_last_name_2 as local_last_name_2,\n local_middle_name as local_middle_name,\n local_middle_name_2 as local_middle_name_2,\n local_secondary_last_name as local_secondary_last_name,\n local_secondary_last_name_2 as local_secondary_last_name_2,\n middle_name as middle_name,\n personal_info_system_id as personal_info_system_id,\n prefix_salutation as prefix_salutation,\n prefix_title as prefix_title,\n prefix_title_code as prefix_title_code,\n professional_suffix as professional_suffix,\n religious_suffix as religious_suffix,\n royal_suffix as royal_suffix,\n secondary_last_name as secondary_last_name,\n social_suffix as social_suffix,\n social_suffix_id as social_suffix_id,\n tertiary_last_name as tertiary_last_name,\n type as type\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n 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\".\"public_workday_dev\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n email_address as email_address,\n email_code as email_code,\n email_comment as email_comment,\n id as id,\n personal_info_system_id as personal_info_system_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n 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\".\"public_workday_dev\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n id as id,\n country_personal_information_id as country_personal_information_id,\n ethnicity_code as ethnicity_code\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n from base\n),\n\nfinal as (\n\n select\n source_relation,\n _fivetran_synced, \n country_personal_information_id as worker_id,\n ethnicity_code,\n id as ethnicity_id\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\".\"public_workday_dev\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n personal_info_common_id as personal_info_common_id,\n discharge_date as discharge_date,\n discharge_type as discharge_type,\n notes as notes,\n rank as rank,\n service as service,\n status_id as status_id,\n status_begin_date as status_begin_date\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n from base\n),\n\nfinal as (\n select\n personal_info_common_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n notes,\n rank,\n service,\n discharge_type,\n status_id 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_common_data as (\n\n select\n fivetran_id,\n worker_id,\n source_relation,\n date_of_birth\n from __dbt__cte__stg_workday__personal_information_common_data\n),\n\nworker_personal_country_data as (\n\n select\n fivetran_id as personal_country_id,\n personal_info_common_id,\n source_relation,\n gender,\n is_hispanic_or_latino\n from __dbt__cte__stg_workday__country_personal_information\n),\n\nworker_personal_info_data as (\n\n select\n worker_personal_common_data.fivetran_id,\n worker_personal_country_data.personal_country_id,\n worker_personal_common_data.worker_id,\n worker_personal_common_data.source_relation,\n worker_personal_common_data.date_of_birth,\n worker_personal_country_data.gender,\n worker_personal_country_data.is_hispanic_or_latino\n from worker_personal_common_data\n left join worker_personal_country_data\n on worker_personal_common_data.fivetran_id = worker_personal_country_data.personal_info_common_id\n and worker_personal_common_data.source_relation = worker_personal_country_data.source_relation\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.fivetran_id,\n worker_personal_info_data.worker_id,\n worker_personal_info_data.source_relation,\n worker_personal_info_data.date_of_birth,\n worker_personal_info_data.gender,\n worker_personal_info_data.is_hispanic_or_latino,\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.personal_country_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.fivetran_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\".\"public_workday_dev\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n academic_pay_setup_data_annual_work_period_end_date as academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date as academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year as academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date as academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date as academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language as business_site_summary_display_language,\n business_site_summary_local as business_site_summary_local,\n business_site_summary_location as business_site_summary_location,\n business_site_summary_location_type as business_site_summary_location_type,\n business_site_summary_name as business_site_summary_name,\n business_site_summary_scheduled_weekly_hours as business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile as business_site_summary_time_profile,\n business_title as business_title,\n critical_job as critical_job,\n default_weekly_hours as default_weekly_hours,\n difficulty_to_fill as difficulty_to_fill,\n effective_date as effective_date,\n employee_type as employee_type,\n end_date as end_date,\n end_employment_date as end_employment_date,\n exclude_from_head_count as exclude_from_head_count,\n expected_assignment_end_date as expected_assignment_end_date,\n external_employee as external_employee,\n federal_withholding_fein as federal_withholding_fein,\n frequency as frequency,\n full_time_equivalent_percentage as full_time_equivalent_percentage,\n headcount_restriction_code as headcount_restriction_code,\n home_country as home_country,\n host_country as host_country,\n international_assignment_type as international_assignment_type,\n is_primary_job as is_primary_job,\n job_exempt as job_exempt,\n job_profile_id as job_profile_id,\n management_level_code as management_level_code,\n paid_fte as paid_fte,\n pay_group as pay_group,\n pay_rate as pay_rate,\n pay_rate_type as pay_rate_type,\n pay_through_date as pay_through_date,\n payroll_entity as payroll_entity,\n payroll_file_number as payroll_file_number,\n position_id as position_id,\n regular_paid_equivalent_hours as regular_paid_equivalent_hours,\n scheduled_weekly_hours as scheduled_weekly_hours,\n specify_paid_fte as specify_paid_fte,\n specify_working_fte as specify_working_fte,\n start_date as start_date,\n start_international_assignment_reason as start_international_assignment_reason,\n work_hours_profile as work_hours_profile,\n work_shift as work_shift,\n work_shift_required as work_shift_required,\n work_space as work_space,\n worker_hours_profile_classification as worker_hours_profile_classification,\n worker_id as worker_id,\n working_fte as working_fte,\n working_time_frequency as working_time_frequency,\n working_time_unit as working_time_unit,\n working_time_value as working_time_value\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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 int_worker_personal_details.fivetran_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 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, "primary_key": ["employee_id"], "time_spine": null}, "model.workday.workday__organization_overview": {"database": "postgres", "schema": "public_workday_dev", "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_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.organization_id"]}, "organization_role_id": {"name": "organization_role_id", "description": "The role id associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.organization_role_id"]}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.position_id"]}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.worker_id"]}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.source_relation"]}, "organization_code": {"name": "organization_code", "description": "Code associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.organization_code"]}, "organization_name": {"name": "organization_name", "description": "Name of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.organization_name"]}, "organization_type": {"name": "organization_type", "description": "Type or category of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.organization_type"]}, "organization_sub_type": {"name": "organization_sub_type", "description": "Subtype or classification of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.organization_sub_type"]}, "superior_organization_id": {"name": "superior_organization_id", "description": "Identifier for the superior organization, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.superior_organization_id"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.top_level_organization_id"]}, "manager_id": {"name": "manager_id", "description": "Identifier for the manager associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.manager_id"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.organization_role_code"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday.yml", "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "table", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1781284401.3781796, "relation_name": "\"postgres\".\"public_workday_dev\".\"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", "doc_blocks": ["doc.workday.workday__organization_overview"], "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": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__organization_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n availability_date as availability_date,\n available_for_hire as available_for_hire,\n code as code,\n description as description,\n external_url as external_url,\n hiring_freeze as hiring_freeze,\n id as id,\n inactive as inactive,\n inactive_date as inactive_date,\n include_manager_in_name as include_manager_in_name,\n include_organization_code_in_name as include_organization_code_in_name,\n last_updated_date_time as last_updated_date_time,\n location as location,\n manager_id as manager_id,\n name as name,\n organization_code as organization_code,\n organization_owner_id as organization_owner_id,\n staffing_model as staffing_model,\n sub_type as sub_type,\n superior_organization_id as superior_organization_id,\n supervisory_position_availability_date as supervisory_position_availability_date,\n supervisory_position_earliest_hire_date as supervisory_position_earliest_hire_date,\n supervisory_position_time_type as supervisory_position_time_type,\n supervisory_position_worker_type as supervisory_position_worker_type,\n top_level_organization_id as top_level_organization_id,\n type as type,\n visibility as visibility\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n organization_id as organization_id,\n organization_role_code as organization_role_code,\n role_id as role_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n index as index,\n position_id as position_id,\n worker_id as worker_id,\n date_of_pay_group_assignment as date_of_pay_group_assignment,\n organization_id as organization_id,\n primary_business_site as primary_business_site,\n used_in_change_organization_assignments as used_in_change_organization_assignments\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__organization_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n availability_date as availability_date,\n available_for_hire as available_for_hire,\n code as code,\n description as description,\n external_url as external_url,\n hiring_freeze as hiring_freeze,\n id as id,\n inactive as inactive,\n inactive_date as inactive_date,\n include_manager_in_name as include_manager_in_name,\n include_organization_code_in_name as include_organization_code_in_name,\n last_updated_date_time as last_updated_date_time,\n location as location,\n manager_id as manager_id,\n name as name,\n organization_code as organization_code,\n organization_owner_id as organization_owner_id,\n staffing_model as staffing_model,\n sub_type as sub_type,\n superior_organization_id as superior_organization_id,\n supervisory_position_availability_date as supervisory_position_availability_date,\n supervisory_position_earliest_hire_date as supervisory_position_earliest_hire_date,\n supervisory_position_time_type as supervisory_position_time_type,\n supervisory_position_worker_type as supervisory_position_worker_type,\n top_level_organization_id as top_level_organization_id,\n type as type,\n visibility as visibility\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n organization_id as organization_id,\n organization_role_code as organization_role_code,\n role_id as role_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n index as index,\n position_id as position_id,\n worker_id as worker_id,\n date_of_pay_group_assignment as date_of_pay_group_assignment,\n organization_id as organization_id,\n primary_business_site as primary_business_site,\n used_in_change_organization_assignments as used_in_change_organization_assignments\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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, "primary_key": [], "time_spine": null}, "model.workday.workday__job_overview": {"database": "postgres", "schema": "public_workday_dev", "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_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_profile_id"]}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.source_relation"]}, "job_profile_code": {"name": "job_profile_code", "description": "Code assigned to the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_profile_code"]}, "job_title": {"name": "job_title", "description": "The title of the job for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_title"]}, "private_title": {"name": "private_title", "description": "The private title associated with the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_private_title"]}, "job_summary": {"name": "job_summary", "description": "The summary of the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_summary"]}, "job_description": {"name": "job_description", "description": "Brief description of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_profile_description"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_family_codes"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_family_summaries"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_family_group_codes"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_family_group_summaries"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday.yml", "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "table", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1781284401.364116, "relation_name": "\"postgres\".\"public_workday_dev\".\"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", "doc_blocks": ["doc.workday.workday__job_overview"], "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": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__job_profile_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n additional_job_description as additional_job_description,\n compensation_grade_id as compensation_grade_id,\n critical_job as critical_job,\n description as description,\n difficulty_to_fill as difficulty_to_fill,\n effective_date as effective_date,\n id as id,\n inactive as inactive,\n include_job_code_in_name as include_job_code_in_name,\n job_category_id as job_category_id,\n job_profile_code as job_profile_code,\n level as level,\n management_level as management_level,\n private_title as private_title,\n public_job as public_job,\n referral_payment_plan as referral_payment_plan,\n summary as summary,\n title as title,\n union_code as union_code,\n union_membership_requirement as union_membership_requirement,\n work_shift_required as work_shift_required,\n work_study_award_source_code as work_study_award_source_code,\n work_study_requirement_option_code as work_study_requirement_option_code\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n job_family_id as job_family_id,\n job_profile_id as job_profile_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__job_family_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n effective_date as effective_date,\n id as id,\n inactive as inactive,\n job_family_code as job_family_code,\n summary as summary\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n job_family_id as job_family_id,\n job_family_group_id as job_family_group_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__job_family_group_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n effective_date as effective_date,\n id as id,\n inactive as inactive,\n job_family_group_code as job_family_group_code,\n summary as summary\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__job_profile_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n additional_job_description as additional_job_description,\n compensation_grade_id as compensation_grade_id,\n critical_job as critical_job,\n description as description,\n difficulty_to_fill as difficulty_to_fill,\n effective_date as effective_date,\n id as id,\n inactive as inactive,\n include_job_code_in_name as include_job_code_in_name,\n job_category_id as job_category_id,\n job_profile_code as job_profile_code,\n level as level,\n management_level as management_level,\n private_title as private_title,\n public_job as public_job,\n referral_payment_plan as referral_payment_plan,\n summary as summary,\n title as title,\n union_code as union_code,\n union_membership_requirement as union_membership_requirement,\n work_shift_required as work_shift_required,\n work_study_award_source_code as work_study_award_source_code,\n work_study_requirement_option_code as work_study_requirement_option_code\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n job_family_id as job_family_id,\n job_profile_id as job_profile_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__job_family_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n effective_date as effective_date,\n id as id,\n inactive as inactive,\n job_family_code as job_family_code,\n summary as summary\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n job_family_id as job_family_id,\n job_family_group_id as job_family_group_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__job_family_group_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n effective_date as effective_date,\n id as id,\n inactive as inactive,\n job_family_group_code as job_family_group_code,\n summary as summary\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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, "primary_key": [], "time_spine": null}, "model.workday.workday__worker_position_org_daily_history": {"database": "postgres", "schema": "public_workday_dev", "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": "ccc39a81df5790ca944d4273d2f483860a93922e69aec58e7c8b867ad2ae07f4"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "date_day": {"name": "date_day", "description": "Date on which the account had these field values.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.worker_id"]}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.position_id"]}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.organization_id"]}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.source_relation"]}, "_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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_start"]}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_end"]}, "_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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_active"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}, "index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.index"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.date_of_pay_group_assignment"]}, "primary_business_site": {"name": "primary_business_site", "description": "Primary location a worker's business is situated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.primary_business_site"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.used_in_change_organization_assignments"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday_history/workday_history.yml", "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true, "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1781284401.5244927, "relation_name": "\"postgres\".\"public_workday_dev\".\"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 and flags.WHICH in ('run', 'build') %}\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 results = run_query(first_last_date_query) %}\n {% set start_date_raw = results.columns[0][0] %}\n {% set last_date_raw = results.columns[1][0] %}\n {% set start_date = start_date_raw|string if start_date_raw is not none else var('employee_history_start_date','2025-03-01') %}\n {% set last_date = last_date_raw|string if last_date_raw is not none else modules.datetime.datetime.today().strftime('%Y-%m-%d') %}\n {% set spine_start = \"greatest(cast('\" ~ start_date[0:10] ~ \"' as date), cast('\" ~ var('employee_history_start_date','2025-03-01') ~ \"' as date))\" %}\n {% set spine_end = \"cast('\" ~ last_date[0:10] ~ \"' as date)\" %}\n\n{# During compile/test, creates range going back 1 year #}\n{% else %}\n {% set spine_start = dbt.dateadd(\"year\", \"-1\", \"current_date\") %}\n {% set spine_end = dbt.dateadd(\"day\", \"-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 = spine_start,\n end_date = spine_end\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", "doc_blocks": [], "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": [], "functions": [], "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt_utils.date_spine", "macro.dbt_utils.generate_surrogate_key", "macro.dbt.type_timestamp"], "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\".\"public_workday_dev\".\"stg_workday__worker_position_organization_base\"\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\".\"public_workday_dev\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n index as index,\n position_id as position_id,\n worker_id as worker_id,\n date_of_pay_group_assignment as date_of_pay_group_assignment,\n organization_id as organization_id,\n primary_business_site as primary_business_site,\n used_in_change_organization_assignments as used_in_change_organization_assignments\n\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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 + 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 \n \n\n )\n\n select *\n from unioned\n where generated_number <= 364\n order by generated_number\n\n\n\n),\n\nall_periods as (\n\n select (\n \n\n \n\n current_date + ((interval '1 year') * (-1))\n\n + ((interval '1 day') * (row_number() over (order by generated_number) - 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 <= \n\n current_date + ((interval '1 day') * (-1))\n\n\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\".\"public_workday_dev\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n index as index,\n position_id as position_id,\n worker_id as worker_id,\n date_of_pay_group_assignment as date_of_pay_group_assignment,\n organization_id as organization_id,\n primary_business_site as primary_business_site,\n used_in_change_organization_assignments as used_in_change_organization_assignments\n\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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, "primary_key": ["wpo_day_id"], "time_spine": null}, "model.workday.workday__monthly_summary": {"database": "postgres", "schema": "public_workday_dev", "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": "288d229ea4db7480335f49e07d354b34ea5e6e94def85cf391bcd34b6a939989"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.source_relation"]}, "new_employees": {"name": "new_employees", "description": "New employees that came in this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "churned_employees": {"name": "churned_employees", "description": "Churned employees that came in this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "churned_voluntary_employees": {"name": "churned_voluntary_employees", "description": "Voluntary churned employees that came in this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "churned_involuntary_employees": {"name": "churned_involuntary_employees", "description": "Involuntary churned employees that came in this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "churned_workers": {"name": "churned_workers", "description": "Churned workers that came in this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "active_employees": {"name": "active_employees", "description": "Employees considered active this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "active_male_employees": {"name": "active_male_employees", "description": "Male employees considered active this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "active_female_employees": {"name": "active_female_employees", "description": "Female employees considered active this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "active_workers": {"name": "active_workers", "description": "Workers considered active this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "active_known_gender_employees": {"name": "active_known_gender_employees", "description": "Known gender employees considered active this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_days_as_employee": {"name": "avg_days_as_employee", "description": "Average days employee has been active month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_days_as_worker": {"name": "avg_days_as_worker", "description": "Average days as a worker this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday_history/workday_history.yml", "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true, "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1781284401.5210104, "relation_name": "\"postgres\".\"public_workday_dev\".\"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 {{ fivetran_utils.partition_by_source_relation(package_name='workday') }}, extract(year from date_day), extract(month from date_day) order by date_day desc) as recent_dom_row,\n sum(case when is_active = true then 1 else 0 end) over (partition by employee_id {{ fivetran_utils.partition_by_source_relation(package_name='workday') }} order by date_day asc rows unbounded preceding) as days_employee_active,\n sum(case when is_active = true then 1 else 0 end) over (partition by worker_id {{ fivetran_utils.partition_by_source_relation(package_name='workday') }} order by date_day asc rows unbounded preceding) as days_worker_active\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\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 end_of_month_history\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_employee_active) as avg_days_as_employee\n from end_of_month_history\n where is_active = true\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_worker_active) as avg_days_as_worker\n from end_of_month_history\n where is_active = true\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", "doc_blocks": [], "language": "sql", "refs": [{"name": "workday__employee_daily_history", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.dbt.date_trunc", "macro.fivetran_utils.partition_by_source_relation", "macro.dbt.current_timestamp"], "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 , extract(year from date_day), extract(month from date_day) order by date_day desc) as recent_dom_row,\n sum(case when is_active = true then 1 else 0 end) over (partition by employee_id order by date_day asc rows unbounded preceding) as days_employee_active,\n sum(case when is_active = true then 1 else 0 end) over (partition by worker_id order by date_day asc rows unbounded preceding) as days_worker_active\n from \"postgres\".\"public_workday_dev\".\"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\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 end_of_month_history\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_employee_active) as avg_days_as_employee\n from end_of_month_history\n where is_active = true\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_worker_active) as avg_days_as_worker\n from end_of_month_history\n where is_active = true\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, "primary_key": ["metrics_month"], "time_spine": null}, "model.workday.workday__employee_daily_history": {"database": "postgres", "schema": "public_workday_dev", "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": "ac90b38d487bc54df5ea5f1e6c71a3fa20e72cd30f9389b54bba9ddd5cbdea91"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "date_day": {"name": "date_day", "description": "Date on which the account had these field values.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.source_relation"]}, "history_unique_key": {"name": "history_unique_key", "description": "Surrogate key hashed on 'employee_id' and '_fivetran_date'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.employee_id"]}, "_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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_date"]}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.worker_id"]}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.position_id"]}, "_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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_start"]}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_end"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.end_employment_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.end_employment_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.pay_through_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.pay_through_date"]}, "academic_tenure_date": {"name": "academic_tenure_date", "description": "Date when academic tenure is achieved.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.academic_tenure_date"]}, "active": {"name": "active", "description": "Flag indicating the current active status of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.active"]}, "active_status_date": {"name": "active_status_date", "description": "Date when the active status was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.active_status_date"]}, "annual_currency_summary_currency": {"name": "annual_currency_summary_currency", "description": "Currency used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.annual_currency_summary_currency"]}, "annual_currency_summary_frequency": {"name": "annual_currency_summary_frequency", "description": "Frequency of currency for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.annual_currency_summary_frequency"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.annual_currency_summary_primary_compensation_basis"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.annual_currency_summary_total_base_pay"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.annual_currency_summary_total_salary_and_allowances"]}, "annual_summary_currency": {"name": "annual_summary_currency", "description": "Currency used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.annual_summary_currency"]}, "annual_summary_frequency": {"name": "annual_summary_frequency", "description": "Frequency of currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.annual_summary_frequency"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.annual_summary_primary_compensation_basis"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.annual_summary_total_base_pay"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.annual_summary_total_salary_and_allowances"]}, "benefits_service_date": {"name": "benefits_service_date", "description": "Date when the worker's benefits service starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.benefits_service_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.company_service_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.compensation_effective_date"]}, "compensation_grade_id": {"name": "compensation_grade_id", "description": "Identifier for the compensation grade.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.compensation_grade_id"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.compensation_grade_profile_id"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.continuous_service_date"]}, "contract_assignment_details": {"name": "contract_assignment_details", "description": "Details of the worker's contract assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.contract_assignment_details"]}, "contract_currency_code": {"name": "contract_currency_code", "description": "Currency code used for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.contract_currency_code"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.contract_end_date"]}, "contract_frequency_name": {"name": "contract_frequency_name", "description": "Frequency of payment for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.contract_frequency_name"]}, "contract_pay_rate": {"name": "contract_pay_rate", "description": "Pay rate associated with the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.contract_pay_rate"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.contract_vendor_name"]}, "date_entered_workforce": {"name": "date_entered_workforce", "description": "Date when the worker entered the workforce.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.date_entered_workforce"]}, "days_unemployed": {"name": "days_unemployed", "description": "Number of days the worker has been unemployed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.days_unemployed"]}, "eligible_for_hire": {"name": "eligible_for_hire", "description": "Flag indicating whether the worker is eligible for hire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.eligible_for_hire"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.eligible_for_rehire_on_latest_termination"]}, "employee_compensation_currency": {"name": "employee_compensation_currency", "description": "Currency code used for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.employee_compensation_currency"]}, "employee_compensation_frequency": {"name": "employee_compensation_frequency", "description": "Frequency of payment for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.employee_compensation_frequency"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.employee_compensation_primary_compensation_basis"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.employee_compensation_total_base_pay"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.employee_compensation_total_salary_and_allowances"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.end_employment_date"]}, "expected_date_of_return": {"name": "expected_date_of_return", "description": "Expected date of the worker's return.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.expected_date_of_return"]}, "expected_retirement_date": {"name": "expected_retirement_date", "description": "Expected date of the worker's retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.expected_retirement_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.first_day_of_work"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.has_international_assignment"]}, "hire_date": {"name": "hire_date", "description": "The date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hire_date"]}, "hire_reason": {"name": "hire_reason", "description": "The reason for hiring the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hire_reason"]}, "is_hire_rescinded": {"name": "is_hire_rescinded", "description": "Flag indicating whether the worker's hire was rescinded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hire_rescinded"]}, "home_country": {"name": "home_country", "description": "The home country of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.home_country"]}, "hourly_frequency_currency": {"name": "hourly_frequency_currency", "description": "Currency code used for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hourly_frequency_currency"]}, "hourly_frequency_frequency": {"name": "hourly_frequency_frequency", "description": "Frequency of payment for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hourly_frequency_frequency"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hourly_frequency_primary_compensation_basis"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hourly_frequency_total_base_pay"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hourly_frequency_total_salary_and_allowances"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.last_datefor_which_paid"]}, "local_termination_reason": {"name": "local_termination_reason", "description": "The reason for local termination of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.local_termination_reason"]}, "months_continuous_prior_employment": {"name": "months_continuous_prior_employment", "description": "Number of months of continuous prior employment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.months_continuous_prior_employment"]}, "is_not_returning": {"name": "is_not_returning", "description": "Flag indicating whether the worker is not returning.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.not_returning"]}, "original_hire_date": {"name": "original_hire_date", "description": "The original date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.original_hire_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.pay_group_frequency_currency"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.pay_group_frequency_frequency"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.pay_group_frequency_primary_compensation_basis"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.pay_group_frequency_total_base_pay"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.pay_group_frequency_total_salary_and_allowances"]}, "pay_through_date": {"name": "pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.pay_through_date"]}, "primary_termination_category": {"name": "primary_termination_category", "description": "The primary termination category for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.primary_termination_category"]}, "primary_termination_reason": {"name": "primary_termination_reason", "description": "The primary termination reason for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.primary_termination_reason"]}, "probation_end_date": {"name": "probation_end_date", "description": "The date when the worker's probation ends.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.probation_end_date"]}, "probation_start_date": {"name": "probation_start_date", "description": "The date when the worker's probation starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.probation_start_date"]}, "reason_reference_id": {"name": "reason_reference_id", "description": "The reference ID for the termination reason.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.reason_reference_id"]}, "is_regrettable_termination": {"name": "is_regrettable_termination", "description": "Flag indicating whether the worker's termination is regrettable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.regrettable_termination"]}, "is_rehire": {"name": "is_rehire", "description": "Flag indicating whether the worker is eligible for rehire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.rehire"]}, "resignation_date": {"name": "resignation_date", "description": "The date when the worker resigned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.resignation_date"]}, "is_retired": {"name": "is_retired", "description": "Flag indicating whether the worker is retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.retired"]}, "retirement_date": {"name": "retirement_date", "description": "The date when the worker retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.retirement_date"]}, "retirement_eligibility_date": {"name": "retirement_eligibility_date", "description": "The date when the worker becomes eligible for retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.retirement_eligibility_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.return_unknown"]}, "seniority_date": {"name": "seniority_date", "description": "The date when the worker's seniority is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.seniority_date"]}, "severance_date": {"name": "severance_date", "description": "The date when the worker's severance is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.severance_date"]}, "is_terminated": {"name": "is_terminated", "description": "Has the worker been terminated?", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.is_terminated"]}, "termination_date": {"name": "termination_date", "description": "The date when the worker is terminated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.termination_date"]}, "is_termination_involuntary": {"name": "is_termination_involuntary", "description": "Flag indicating whether the termination is involuntary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.termination_involuntary"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.termination_last_day_of_work"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.time_off_service_date"]}, "universal_id": {"name": "universal_id", "description": "The universal ID associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.universal_id"]}, "user_id": {"name": "user_id", "description": "The identifier for the user associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.user_id"]}, "vesting_date": {"name": "vesting_date", "description": "The date when the worker's vesting starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.vesting_date"]}, "worker_code": {"name": "worker_code", "description": "The code associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.worker_code"]}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.effective_date"]}, "position_start_date": {"name": "position_start_date", "description": "The start date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.start_date"]}, "position_end_date": {"name": "position_end_date", "description": "The end date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.end_date"]}, "position_location": {"name": "position_location", "description": "The position location of the employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.position_location"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.exclude_from_head_count"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.fte_percent"]}, "is_job_exempt": {"name": "is_job_exempt", "description": "Indicates whether the job is exempt from certain regulations.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_exempt"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.specify_paid_fte"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.specify_working_fte"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.work_shift_required"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.academic_pay_setup_data_annual_work_period_end_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.academic_pay_setup_data_annual_work_period_start_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.academic_pay_setup_data_annual_work_period_work_percent_of_year"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.academic_pay_setup_data_disbursement_plan_period_end_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.academic_pay_setup_data_disbursement_plan_period_start_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.business_site_summary_display_language"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.business_site_summary_local"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.business_site_summary_location_type"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.business_site_summary_name"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.business_site_summary_scheduled_weekly_hours"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.business_site_summary_time_profile"]}, "business_title": {"name": "business_title", "description": "The business title associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.business_title"]}, "is_critical_job": {"name": "is_critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.critical_job"]}, "default_weekly_hours": {"name": "default_weekly_hours", "description": "The default weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.default_weekly_hours"]}, "difficulty_to_fill": {"name": "difficulty_to_fill", "description": "Indication of the difficulty level in filling the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.difficulty_to_fill"]}, "position_effective_date": {"name": "position_effective_date", "description": "The position effective date for the employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.position_effective_date"]}, "employee_type": {"name": "employee_type", "description": "The type of employee associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.employee_type"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.expected_assignment_end_date"]}, "external_employee": {"name": "external_employee", "description": "Flag indicating whether the worker is an external employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.external_employee"]}, "federal_withholding_fein": {"name": "federal_withholding_fein", "description": "The Federal Employer Identification Number (FEIN) for federal withholding.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.federal_withholding_fein"]}, "frequency": {"name": "frequency", "description": "The frequency associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.frequency"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.headcount_restriction_code"]}, "host_country": {"name": "host_country", "description": "The host country associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.host_country"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.international_assignment_type"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.is_primary_job"]}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_profile_id"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.management_level_code"]}, "paid_fte": {"name": "paid_fte", "description": "The paid full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.paid_fte"]}, "pay_group": {"name": "pay_group", "description": "The pay group associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.pay_group"]}, "pay_rate": {"name": "pay_rate", "description": "The pay rate associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.pay_rate"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.pay_rate_type"]}, "payroll_entity": {"name": "payroll_entity", "description": "The payroll entity associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.payroll_entity"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.payroll_file_number"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.regular_paid_equivalent_hours"]}, "scheduled_weekly_hours": {"name": "scheduled_weekly_hours", "description": "The scheduled weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.scheduled_weekly_hours"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.start_international_assignment_reason"]}, "work_hours_profile": {"name": "work_hours_profile", "description": "The work hours profile associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.work_hours_profile"]}, "work_shift": {"name": "work_shift", "description": "The work shift associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.work_shift"]}, "work_space": {"name": "work_space", "description": "The work space associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.work_space"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.worker_hours_profile_classification"]}, "working_fte": {"name": "working_fte", "description": "The working full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.working_fte"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.working_time_frequency"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.working_time_unit"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.working_time_value"]}, "additional_nationality": {"name": "additional_nationality", "description": "Additional nationality associated with the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.additional_nationality"]}, "blood_type": {"name": "blood_type", "description": "The blood type of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.blood_type"]}, "citizenship_status": {"name": "citizenship_status", "description": "The citizenship status of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.citizenship_status"]}, "city_of_birth": {"name": "city_of_birth", "description": "The city of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.city_of_birth"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.city_of_birth_code"]}, "country_of_birth": {"name": "country_of_birth", "description": "The country of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.country_of_birth"]}, "date_of_birth": {"name": "date_of_birth", "description": "The date of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.date_of_birth"]}, "date_of_death": {"name": "date_of_death", "description": "The date of death of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.date_of_death"]}, "gender": {"name": "gender", "description": "The gender of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.gender"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hispanic_or_latino"]}, "hukou_locality": {"name": "hukou_locality", "description": "The locality associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hukou_locality"]}, "hukou_postal_code": {"name": "hukou_postal_code", "description": "The postal code associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hukou_postal_code"]}, "hukou_region": {"name": "hukou_region", "description": "The region associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hukou_region"]}, "hukou_subregion": {"name": "hukou_subregion", "description": "The subregion associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hukou_subregion"]}, "hukou_type": {"name": "hukou_type", "description": "The type of Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hukou_type"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday_history/workday_history.yml", "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true, "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1781284401.513889, "relation_name": "\"postgres\".\"public_workday_dev\".\"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 and flags.WHICH in ('run', 'build') %}\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 results = run_query(first_last_date_query) %}\n {% set start_date_raw = results.columns[0][0] %}\n {% set last_date_raw = results.columns[1][0] %}\n {% set start_date = start_date_raw|string if start_date_raw is not none else var('employee_history_start_date','2025-03-01') %}\n {% set last_date = last_date_raw|string if last_date_raw is not none else modules.datetime.datetime.today().strftime('%Y-%m-%d') %}\n {% set spine_start = \"greatest(cast('\" ~ start_date[0:10] ~ \"' as date), cast('\" ~ var('employee_history_start_date','2025-03-01') ~ \"' as date))\" %}\n {% set spine_end = \"cast('\" ~ last_date[0:10] ~ \"' as date)\" %}\n\n{# During compile/test, creates range going back 1 year #}\n{% else %}\n {% set spine_start = dbt.dateadd(\"year\", \"-1\", \"current_date\") %}\n {% set spine_end = dbt.dateadd(\"day\", \"-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 = spine_start,\n end_date = spine_end\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", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_workday__employee_history", "package": null, "version": null}, {"name": "int_workday__employee_history", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt_utils.date_spine", "macro.dbt_utils.generate_surrogate_key", "macro.dbt.type_timestamp"], "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\".\"public_workday_dev\".\"int_workday__employee_history\"\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 + 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 \n \n\n )\n\n select *\n from unioned\n where generated_number <= 364\n order by generated_number\n\n\n\n),\n\nall_periods as (\n\n select (\n \n\n \n\n current_date + ((interval '1 year') * (-1))\n\n + ((interval '1 day') * (row_number() over (order by generated_number) - 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 <= \n\n current_date + ((interval '1 day') * (-1))\n\n\n\n)\n\nselect * from filtered\n\n\n),\n\nemployee_history as (\n\n select * \n from \"postgres\".\"public_workday_dev\".\"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, "primary_key": ["employee_day_id"], "time_spine": null}, "model.workday.stg_workday__worker_position_history": {"database": "postgres", "schema": "public_workday_dev", "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": "a1a5040ed300df857b1c2fd007454926a4a6fcb14e3f9384ab3aed1a8ce83c75"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.worker_id"]}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.position_id"]}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.source_relation"]}, "_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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_start"]}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_end"]}, "_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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_date"]}, "_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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_active"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.academic_pay_setup_data_annual_work_period_end_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.academic_pay_setup_data_annual_work_period_start_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.academic_pay_setup_data_annual_work_period_work_percent_of_year"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.academic_pay_setup_data_disbursement_plan_period_end_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.academic_pay_setup_data_disbursement_plan_period_start_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.business_site_summary_display_language"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.business_site_summary_local"]}, "position_location": {"name": "position_location", "description": "The location of the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.business_site_summary_location"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.business_site_summary_location_type"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.business_site_summary_name"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.business_site_summary_scheduled_weekly_hours"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.business_site_summary_time_profile"]}, "business_title": {"name": "business_title", "description": "The business title associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.business_title"]}, "is_critical_job": {"name": "is_critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.critical_job"]}, "default_weekly_hours": {"name": "default_weekly_hours", "description": "The default weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.default_weekly_hours"]}, "difficulty_to_fill": {"name": "difficulty_to_fill", "description": "Indication of the difficulty level in filling the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.difficulty_to_fill"]}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.effective_date"]}, "employee_type": {"name": "employee_type", "description": "The type of employee associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.employee_type"]}, "position_end_date": {"name": "position_end_date", "description": "The end date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.end_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.end_employment_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.exclude_from_head_count"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.expected_assignment_end_date"]}, "external_employee": {"name": "external_employee", "description": "Flag indicating whether the worker is an external employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.external_employee"]}, "federal_withholding_fein": {"name": "federal_withholding_fein", "description": "The Federal Employer Identification Number (FEIN) for federal withholding.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.federal_withholding_fein"]}, "frequency": {"name": "frequency", "description": "The frequency associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.frequency"]}, "fte_percent": {"name": "fte_percent", "description": "The full-time equivalent (FTE) percentage associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.full_time_equivalent_percentage"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.headcount_restriction_code"]}, "home_country": {"name": "home_country", "description": "The home country of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.home_country"]}, "host_country": {"name": "host_country", "description": "The host country associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.host_country"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.international_assignment_type"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.is_primary_job"]}, "is_job_exempt": {"name": "is_job_exempt", "description": "Indicates whether the job is exempt from certain regulations.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_exempt"]}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_profile_id"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.management_level_code"]}, "paid_fte": {"name": "paid_fte", "description": "The paid full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.paid_fte"]}, "pay_group": {"name": "pay_group", "description": "The pay group associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.pay_group"]}, "pay_rate": {"name": "pay_rate", "description": "The pay rate associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.pay_rate"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.pay_rate_type"]}, "pay_through_date": {"name": "pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.pay_through_date"]}, "payroll_entity": {"name": "payroll_entity", "description": "The payroll entity associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.payroll_entity"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.payroll_file_number"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.regular_paid_equivalent_hours"]}, "scheduled_weekly_hours": {"name": "scheduled_weekly_hours", "description": "The scheduled weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.scheduled_weekly_hours"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.specify_paid_fte"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.specify_working_fte"]}, "position_start_date": {"name": "position_start_date", "description": "The start date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.start_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.start_international_assignment_reason"]}, "work_hours_profile": {"name": "work_hours_profile", "description": "The work hours profile associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.work_hours_profile"]}, "work_shift": {"name": "work_shift", "description": "The work shift associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.work_shift"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.work_shift_required"]}, "work_space": {"name": "work_space", "description": "The work space associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.work_space"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.worker_hours_profile_classification"]}, "working_fte": {"name": "working_fte", "description": "The working full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.working_fte"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.working_time_frequency"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.working_time_unit"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.working_time_value"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday_history/staging/stg_workday_history.yml", "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "ephemeral", "enabled": true, "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1781284401.5654016, "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 {{ fivetran_utils.apply_source_relation(package_name='workday') }}\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", "doc_blocks": [], "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": [], "functions": [], "depends_on": {"macros": ["macro.workday.get_worker_position_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.apply_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\".\"public_workday_dev\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n academic_pay_setup_data_annual_work_period_end_date as academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date as academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year as academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date as academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date as academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language as business_site_summary_display_language,\n business_site_summary_local as business_site_summary_local,\n business_site_summary_location as business_site_summary_location,\n business_site_summary_location_type as business_site_summary_location_type,\n business_site_summary_name as business_site_summary_name,\n business_site_summary_scheduled_weekly_hours as business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile as business_site_summary_time_profile,\n business_title as business_title,\n critical_job as critical_job,\n default_weekly_hours as default_weekly_hours,\n difficulty_to_fill as difficulty_to_fill,\n effective_date as effective_date,\n employee_type as employee_type,\n end_date as end_date,\n end_employment_date as end_employment_date,\n exclude_from_head_count as exclude_from_head_count,\n expected_assignment_end_date as expected_assignment_end_date,\n external_employee as external_employee,\n federal_withholding_fein as federal_withholding_fein,\n frequency as frequency,\n full_time_equivalent_percentage as full_time_equivalent_percentage,\n headcount_restriction_code as headcount_restriction_code,\n home_country as home_country,\n host_country as host_country,\n international_assignment_type as international_assignment_type,\n is_primary_job as is_primary_job,\n job_exempt as job_exempt,\n job_profile_id as job_profile_id,\n management_level_code as management_level_code,\n paid_fte as paid_fte,\n pay_group as pay_group,\n pay_rate as pay_rate,\n pay_rate_type as pay_rate_type,\n pay_through_date as pay_through_date,\n payroll_entity as payroll_entity,\n payroll_file_number as payroll_file_number,\n position_id as position_id,\n regular_paid_equivalent_hours as regular_paid_equivalent_hours,\n scheduled_weekly_hours as scheduled_weekly_hours,\n specify_paid_fte as specify_paid_fte,\n specify_working_fte as specify_working_fte,\n start_date as start_date,\n start_international_assignment_reason as start_international_assignment_reason,\n work_hours_profile as work_hours_profile,\n work_shift as work_shift,\n work_shift_required as work_shift_required,\n work_space as work_space,\n worker_hours_profile_classification as worker_hours_profile_classification,\n worker_id as worker_id,\n working_fte as working_fte,\n working_time_frequency as working_time_frequency,\n working_time_unit as working_time_unit,\n working_time_value as working_time_value\n\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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, "primary_key": ["history_unique_key"], "time_spine": null}, "model.workday.stg_workday__worker_position_organization_history": {"database": "postgres", "schema": "public_workday_dev", "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": "74eb364dae67f37c2e28f763f3d81e3398805f07e60647491b77e8d42e8ea603"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.worker_id"]}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.position_id"]}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.organization_id"]}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.source_relation"]}, "_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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_start"]}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_end"]}, "_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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_date"]}, "_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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_active"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}, "index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.index"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.date_of_pay_group_assignment"]}, "primary_business_site": {"name": "primary_business_site", "description": "Primary location a worker's business is situated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.primary_business_site"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.used_in_change_organization_assignments"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday_history/staging/stg_workday_history.yml", "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "ephemeral", "enabled": true, "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1781284401.5667548, "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 {{ fivetran_utils.apply_source_relation(package_name='workday') }}\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", "doc_blocks": [], "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": [], "functions": [], "depends_on": {"macros": ["macro.workday.get_worker_position_organization_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.apply_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\".\"public_workday_dev\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n index as index,\n position_id as position_id,\n worker_id as worker_id,\n date_of_pay_group_assignment as date_of_pay_group_assignment,\n organization_id as organization_id,\n primary_business_site as primary_business_site,\n used_in_change_organization_assignments as used_in_change_organization_assignments\n\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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, "primary_key": ["history_unique_key"], "time_spine": null}, "model.workday.stg_workday__personal_information_history": {"database": "postgres", "schema": "public_workday_dev", "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": "24651b4fb598400a57ce5a59e3d08888f183cd89ea2fcca9a758e499ed2ad512"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.worker_id"]}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.source_relation"]}, "_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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_start"]}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_end"]}, "_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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_date"]}, "_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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_active"]}, "type": {"name": "type", "description": "The type of personal information record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.personal_information_type"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}, "additional_nationality": {"name": "additional_nationality", "description": "Additional nationality associated with the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.additional_nationality"]}, "blood_type": {"name": "blood_type", "description": "The blood type of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.blood_type"]}, "citizenship_status": {"name": "citizenship_status", "description": "The citizenship status of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.citizenship_status"]}, "city_of_birth": {"name": "city_of_birth", "description": "The city of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.city_of_birth"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.city_of_birth_code"]}, "country_of_birth": {"name": "country_of_birth", "description": "The country of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.country_of_birth"]}, "date_of_birth": {"name": "date_of_birth", "description": "The date of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.date_of_birth"]}, "date_of_death": {"name": "date_of_death", "description": "The date of death of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.date_of_death"]}, "gender": {"name": "gender", "description": "The gender of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.gender"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hispanic_or_latino"]}, "hukou_locality": {"name": "hukou_locality", "description": "The locality associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hukou_locality"]}, "hukou_postal_code": {"name": "hukou_postal_code", "description": "The postal code associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hukou_postal_code"]}, "hukou_region": {"name": "hukou_region", "description": "The region associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hukou_region"]}, "hukou_subregion": {"name": "hukou_subregion", "description": "The subregion associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hukou_subregion"]}, "hukou_type": {"name": "hukou_type", "description": "The type of Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hukou_type"]}, "last_medical_exam_date": {"name": "last_medical_exam_date", "description": "The date of the last medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.last_medical_exam_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.last_medical_exam_valid_to"]}, "is_local_hukou": {"name": "is_local_hukou", "description": "Flag indicating whether the Hukou is local.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.local_hukou"]}, "marital_status": {"name": "marital_status", "description": "The marital status of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.marital_status"]}, "marital_status_date": {"name": "marital_status_date", "description": "The date of the marital status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.marital_status_date"]}, "medical_exam_notes": {"name": "medical_exam_notes", "description": "Notes from the medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.medical_exam_notes"]}, "native_region": {"name": "native_region", "description": "The native region of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.native_region"]}, "native_region_code": {"name": "native_region_code", "description": "The code of the native region.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.native_region_code"]}, "personnel_file_agency": {"name": "personnel_file_agency", "description": "The agency associated with the personnel file.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.personnel_file_agency"]}, "political_affiliation": {"name": "political_affiliation", "description": "The political affiliation of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.political_affiliation"]}, "primary_nationality": {"name": "primary_nationality", "description": "The primary nationality of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.primary_nationality"]}, "region_of_birth": {"name": "region_of_birth", "description": "The region of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.region_of_birth"]}, "region_of_birth_code": {"name": "region_of_birth_code", "description": "The code of the region of birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.region_of_birth_code"]}, "religion": {"name": "religion", "description": "The religion of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.religion"]}, "social_benefit": {"name": "social_benefit", "description": "The social benefit associated with the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.social_benefit"]}, "is_tobacco_use": {"name": "is_tobacco_use", "description": "Flag indicating whether the individual uses tobacco.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.tobacco_use"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday_history/staging/stg_workday_history.yml", "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "ephemeral", "enabled": true, "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1781284401.5548089, "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 {{ fivetran_utils.apply_source_relation(package_name='workday') }}\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", "doc_blocks": [], "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": [], "functions": [], "depends_on": {"macros": ["macro.workday.get_personal_information_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.apply_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\".\"public_workday_dev\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n additional_nationality as additional_nationality,\n blood_type as blood_type,\n citizenship_status as citizenship_status,\n city_of_birth as city_of_birth,\n city_of_birth_code as city_of_birth_code,\n country_of_birth as country_of_birth,\n date_of_birth as date_of_birth,\n date_of_death as date_of_death,\n gender as gender,\n hispanic_or_latino as hispanic_or_latino,\n hukou_locality as hukou_locality,\n hukou_postal_code as hukou_postal_code,\n hukou_region as hukou_region,\n hukou_subregion as hukou_subregion,\n hukou_type as hukou_type,\n id as id,\n last_medical_exam_date as last_medical_exam_date,\n last_medical_exam_valid_to as last_medical_exam_valid_to,\n local_hukou as local_hukou,\n marital_status as marital_status,\n marital_status_date as marital_status_date,\n medical_exam_notes as medical_exam_notes,\n native_region as native_region,\n native_region_code as native_region_code,\n personnel_file_agency as personnel_file_agency,\n political_affiliation as political_affiliation,\n primary_nationality as primary_nationality,\n region_of_birth as region_of_birth,\n region_of_birth_code as region_of_birth_code,\n religion as religion,\n social_benefit as social_benefit,\n tobacco_use as tobacco_use,\n type as type\n\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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, "primary_key": ["history_unique_key"], "time_spine": null}, "model.workday.stg_workday__worker_history": {"database": "postgres", "schema": "public_workday_dev", "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": "a3a7460e0dd48678f04dc2038ca0cc55f54c910ef38d2d52e3d7f929d25ed795"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.worker_id"]}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.source_relation"]}, "_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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_start"]}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_end"]}, "_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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_date"]}, "_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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_active"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}, "academic_tenure_date": {"name": "academic_tenure_date", "description": "Date when academic tenure is achieved.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.academic_tenure_date"]}, "is_active": {"name": "is_active", "description": "Flag indicating the current active status of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.active"]}, "active_status_date": {"name": "active_status_date", "description": "Date when the active status was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.active_status_date"]}, "annual_currency_summary_currency": {"name": "annual_currency_summary_currency", "description": "Currency used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.annual_currency_summary_currency"]}, "annual_currency_summary_frequency": {"name": "annual_currency_summary_frequency", "description": "Frequency of currency for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.annual_currency_summary_frequency"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.annual_currency_summary_primary_compensation_basis"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.annual_currency_summary_total_base_pay"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.annual_currency_summary_total_salary_and_allowances"]}, "annual_summary_currency": {"name": "annual_summary_currency", "description": "Currency used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.annual_summary_currency"]}, "annual_summary_frequency": {"name": "annual_summary_frequency", "description": "Frequency of currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.annual_summary_frequency"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.annual_summary_primary_compensation_basis"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.annual_summary_total_base_pay"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.annual_summary_total_salary_and_allowances"]}, "benefits_service_date": {"name": "benefits_service_date", "description": "Date when the worker's benefits service starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.benefits_service_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.company_service_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.compensation_effective_date"]}, "compensation_grade_id": {"name": "compensation_grade_id", "description": "Identifier for the compensation grade.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.compensation_grade_id"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.compensation_grade_profile_id"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.continuous_service_date"]}, "contract_assignment_details": {"name": "contract_assignment_details", "description": "Details of the worker's contract assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.contract_assignment_details"]}, "contract_currency_code": {"name": "contract_currency_code", "description": "Currency code used for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.contract_currency_code"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.contract_end_date"]}, "contract_frequency_name": {"name": "contract_frequency_name", "description": "Frequency of payment for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.contract_frequency_name"]}, "contract_pay_rate": {"name": "contract_pay_rate", "description": "Pay rate associated with the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.contract_pay_rate"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.contract_vendor_name"]}, "date_entered_workforce": {"name": "date_entered_workforce", "description": "Date when the worker entered the workforce.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.date_entered_workforce"]}, "days_unemployed": {"name": "days_unemployed", "description": "Number of days the worker has been unemployed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.days_unemployed"]}, "eligible_for_hire": {"name": "eligible_for_hire", "description": "Flag indicating whether the worker is eligible for hire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.eligible_for_hire"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.eligible_for_rehire_on_latest_termination"]}, "employee_compensation_currency": {"name": "employee_compensation_currency", "description": "Currency code used for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.employee_compensation_currency"]}, "employee_compensation_frequency": {"name": "employee_compensation_frequency", "description": "Frequency of payment for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.employee_compensation_frequency"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.employee_compensation_primary_compensation_basis"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.employee_compensation_total_base_pay"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.employee_compensation_total_salary_and_allowances"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.end_employment_date"]}, "expected_date_of_return": {"name": "expected_date_of_return", "description": "Expected date of the worker's return.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.expected_date_of_return"]}, "expected_retirement_date": {"name": "expected_retirement_date", "description": "Expected date of the worker's retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.expected_retirement_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.first_day_of_work"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.has_international_assignment"]}, "hire_date": {"name": "hire_date", "description": "The date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hire_date"]}, "hire_reason": {"name": "hire_reason", "description": "The reason for hiring the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hire_reason"]}, "is_hire_rescinded": {"name": "is_hire_rescinded", "description": "Flag indicating whether the worker's hire was rescinded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hire_rescinded"]}, "home_country": {"name": "home_country", "description": "The home country of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.home_country"]}, "hourly_frequency_currency": {"name": "hourly_frequency_currency", "description": "Currency code used for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hourly_frequency_currency"]}, "hourly_frequency_frequency": {"name": "hourly_frequency_frequency", "description": "Frequency of payment for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hourly_frequency_frequency"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hourly_frequency_primary_compensation_basis"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hourly_frequency_total_base_pay"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hourly_frequency_total_salary_and_allowances"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.last_datefor_which_paid"]}, "local_termination_reason": {"name": "local_termination_reason", "description": "The reason for local termination of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.local_termination_reason"]}, "months_continuous_prior_employment": {"name": "months_continuous_prior_employment", "description": "Number of months of continuous prior employment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.months_continuous_prior_employment"]}, "is_not_returning": {"name": "is_not_returning", "description": "Flag indicating whether the worker is not returning.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.not_returning"]}, "original_hire_date": {"name": "original_hire_date", "description": "The original date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.original_hire_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.pay_group_frequency_currency"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.pay_group_frequency_frequency"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.pay_group_frequency_primary_compensation_basis"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.pay_group_frequency_total_base_pay"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.pay_group_frequency_total_salary_and_allowances"]}, "pay_through_date": {"name": "pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.pay_through_date"]}, "primary_termination_category": {"name": "primary_termination_category", "description": "The primary termination category for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.primary_termination_category"]}, "primary_termination_reason": {"name": "primary_termination_reason", "description": "The primary termination reason for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.primary_termination_reason"]}, "probation_end_date": {"name": "probation_end_date", "description": "The date when the worker's probation ends.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.probation_end_date"]}, "probation_start_date": {"name": "probation_start_date", "description": "The date when the worker's probation starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.probation_start_date"]}, "reason_reference_id": {"name": "reason_reference_id", "description": "The reference ID for the termination reason.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.reason_reference_id"]}, "is_regrettable_termination": {"name": "is_regrettable_termination", "description": "Flag indicating whether the worker's termination is regrettable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.regrettable_termination"]}, "is_rehire": {"name": "is_rehire", "description": "Flag indicating whether the worker is eligible for rehire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.rehire"]}, "resignation_date": {"name": "resignation_date", "description": "The date when the worker resigned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.resignation_date"]}, "is_retired": {"name": "is_retired", "description": "Flag indicating whether the worker is retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.retired"]}, "retirement_date": {"name": "retirement_date", "description": "The date when the worker retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.retirement_date"]}, "retirement_eligibility_date": {"name": "retirement_eligibility_date", "description": "The date when the worker becomes eligible for retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.retirement_eligibility_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.return_unknown"]}, "seniority_date": {"name": "seniority_date", "description": "The date when the worker's seniority is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.seniority_date"]}, "severance_date": {"name": "severance_date", "description": "The date when the worker's severance is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.severance_date"]}, "is_terminated": {"name": "is_terminated", "description": "Has the worker been terminated?", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.is_terminated"]}, "termination_date": {"name": "termination_date", "description": "The date when the worker is terminated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.termination_date"]}, "is_termination_involuntary": {"name": "is_termination_involuntary", "description": "Flag indicating whether the termination is involuntary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.termination_involuntary"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.termination_last_day_of_work"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.time_off_service_date"]}, "universal_id": {"name": "universal_id", "description": "The universal ID associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.universal_id"]}, "user_id": {"name": "user_id", "description": "The identifier for the user associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.user_id"]}, "vesting_date": {"name": "vesting_date", "description": "The date when the worker's vesting starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.vesting_date"]}, "worker_code": {"name": "worker_code", "description": "The code associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.worker_code"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday_history/staging/stg_workday_history.yml", "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "ephemeral", "enabled": true, "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1781284401.5618243, "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 {{ fivetran_utils.apply_source_relation(package_name='workday') }}\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 {% set string_dtypes = ['char', 'string'] %}\n {% for col in adapter.get_columns_in_relation(ref('stg_workday__worker_base')) %}\n {% if col.name.lower() in ['annual_currency_summary_primary_compensation_basis', 'annual_currency_summary_total_base_pay', 'annual_currency_summary_total_salary_and_allowances'] %}\n {% if target.type == 'databricks' %}\n {% set ns = namespace(is_str=false) %}\n {% for stype in string_dtypes %}\n {% if stype in col.dtype.lower() %}{% set ns.is_str = true %}{% endif %}\n {% endfor %}\n {% set is_str = ns.is_str %}\n {% else %}\n {% set is_str = col.is_string() %}\n {% endif %}\n {% if is_str %}\n cast({{ col.name }} as {{ dbt.type_float() }}) as {{ col.name }},\n {% else %}\n {{ col.name }},\n {% endif %}\n {% endif %}\n {% endfor %}\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", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__worker_base", "package": null, "version": null}, {"name": "stg_workday__worker_base", "package": null, "version": null}, {"name": "stg_workday__worker_base", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.workday.get_worker_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.apply_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\".\"public_workday_dev\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n academic_tenure_date as academic_tenure_date,\n active as active,\n active_status_date as active_status_date,\n annual_currency_summary_currency as annual_currency_summary_currency,\n annual_currency_summary_frequency as annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis as annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay as annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances as annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency as annual_summary_currency,\n annual_summary_frequency as annual_summary_frequency,\n annual_summary_primary_compensation_basis as annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay as annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances as annual_summary_total_salary_and_allowances,\n benefits_service_date as benefits_service_date,\n company_service_date as company_service_date,\n compensation_effective_date as compensation_effective_date,\n compensation_grade_id as compensation_grade_id,\n compensation_grade_profile_id as compensation_grade_profile_id,\n continuous_service_date as continuous_service_date,\n contract_assignment_details as contract_assignment_details,\n contract_currency_code as contract_currency_code,\n contract_end_date as contract_end_date,\n contract_frequency_name as contract_frequency_name,\n contract_pay_rate as contract_pay_rate,\n contract_vendor_name as contract_vendor_name,\n date_entered_workforce as date_entered_workforce,\n days_unemployed as days_unemployed,\n eligible_for_hire as eligible_for_hire,\n eligible_for_rehire_on_latest_termination as eligible_for_rehire_on_latest_termination,\n employee_compensation_currency as employee_compensation_currency,\n employee_compensation_frequency as employee_compensation_frequency,\n employee_compensation_primary_compensation_basis as employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay as employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances as employee_compensation_total_salary_and_allowances,\n end_employment_date as end_employment_date,\n expected_date_of_return as expected_date_of_return,\n expected_retirement_date as expected_retirement_date,\n first_day_of_work as first_day_of_work,\n has_international_assignment as has_international_assignment,\n hire_date as hire_date,\n hire_reason as hire_reason,\n hire_rescinded as hire_rescinded,\n home_country as home_country,\n hourly_frequency_currency as hourly_frequency_currency,\n hourly_frequency_frequency as hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis as hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay as hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances as hourly_frequency_total_salary_and_allowances,\n id as id,\n last_datefor_which_paid as last_datefor_which_paid,\n local_termination_reason as local_termination_reason,\n months_continuous_prior_employment as months_continuous_prior_employment,\n not_returning as not_returning,\n original_hire_date as original_hire_date,\n pay_group_frequency_currency as pay_group_frequency_currency,\n pay_group_frequency_frequency as pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis as pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay as pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances as pay_group_frequency_total_salary_and_allowances,\n pay_through_date as pay_through_date,\n primary_termination_category as primary_termination_category,\n primary_termination_reason as primary_termination_reason,\n probation_end_date as probation_end_date,\n probation_start_date as probation_start_date,\n reason_reference_id as reason_reference_id,\n regrettable_termination as regrettable_termination,\n rehire as rehire,\n resignation_date as resignation_date,\n retired as retired,\n retirement_date as retirement_date,\n retirement_eligibility_date as retirement_eligibility_date,\n return_unknown as return_unknown,\n seniority_date as seniority_date,\n severance_date as severance_date,\n terminated as terminated,\n termination_date as termination_date,\n termination_involuntary as termination_involuntary,\n termination_last_day_of_work as termination_last_day_of_work,\n time_off_service_date as time_off_service_date,\n universal_id as universal_id,\n user_id as user_id,\n vesting_date as vesting_date,\n worker_code as worker_code\n\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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 \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 annual_currency_summary_primary_compensation_basis,\n \n \n \n \n \n \n \n \n annual_currency_summary_total_base_pay,\n \n \n \n \n \n \n \n \n annual_currency_summary_total_salary_and_allowances,\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 \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 \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 \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 \n \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, "primary_key": ["history_unique_key"], "time_spine": null}, "model.workday.int_workday__employee_history": {"database": "postgres", "schema": "public_workday_dev", "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": "b3c48cd403b0880b5d755bf023bce253011d2a84b18a5208e5be5041c4eca4f6"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true, "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1781284400.3529568, "relation_name": "\"postgres\".\"public_workday_dev\".\"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 {{ fivetran_utils.partition_by_source_relation(package_name='workday') }} 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", "doc_blocks": [], "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": [], "functions": [], "depends_on": {"macros": ["macro.dbt.dateadd", "macro.fivetran_utils.partition_by_source_relation", "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\".\"public_workday_dev\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n academic_tenure_date as academic_tenure_date,\n active as active,\n active_status_date as active_status_date,\n annual_currency_summary_currency as annual_currency_summary_currency,\n annual_currency_summary_frequency as annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis as annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay as annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances as annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency as annual_summary_currency,\n annual_summary_frequency as annual_summary_frequency,\n annual_summary_primary_compensation_basis as annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay as annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances as annual_summary_total_salary_and_allowances,\n benefits_service_date as benefits_service_date,\n company_service_date as company_service_date,\n compensation_effective_date as compensation_effective_date,\n compensation_grade_id as compensation_grade_id,\n compensation_grade_profile_id as compensation_grade_profile_id,\n continuous_service_date as continuous_service_date,\n contract_assignment_details as contract_assignment_details,\n contract_currency_code as contract_currency_code,\n contract_end_date as contract_end_date,\n contract_frequency_name as contract_frequency_name,\n contract_pay_rate as contract_pay_rate,\n contract_vendor_name as contract_vendor_name,\n date_entered_workforce as date_entered_workforce,\n days_unemployed as days_unemployed,\n eligible_for_hire as eligible_for_hire,\n eligible_for_rehire_on_latest_termination as eligible_for_rehire_on_latest_termination,\n employee_compensation_currency as employee_compensation_currency,\n employee_compensation_frequency as employee_compensation_frequency,\n employee_compensation_primary_compensation_basis as employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay as employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances as employee_compensation_total_salary_and_allowances,\n end_employment_date as end_employment_date,\n expected_date_of_return as expected_date_of_return,\n expected_retirement_date as expected_retirement_date,\n first_day_of_work as first_day_of_work,\n has_international_assignment as has_international_assignment,\n hire_date as hire_date,\n hire_reason as hire_reason,\n hire_rescinded as hire_rescinded,\n home_country as home_country,\n hourly_frequency_currency as hourly_frequency_currency,\n hourly_frequency_frequency as hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis as hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay as hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances as hourly_frequency_total_salary_and_allowances,\n id as id,\n last_datefor_which_paid as last_datefor_which_paid,\n local_termination_reason as local_termination_reason,\n months_continuous_prior_employment as months_continuous_prior_employment,\n not_returning as not_returning,\n original_hire_date as original_hire_date,\n pay_group_frequency_currency as pay_group_frequency_currency,\n pay_group_frequency_frequency as pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis as pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay as pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances as pay_group_frequency_total_salary_and_allowances,\n pay_through_date as pay_through_date,\n primary_termination_category as primary_termination_category,\n primary_termination_reason as primary_termination_reason,\n probation_end_date as probation_end_date,\n probation_start_date as probation_start_date,\n reason_reference_id as reason_reference_id,\n regrettable_termination as regrettable_termination,\n rehire as rehire,\n resignation_date as resignation_date,\n retired as retired,\n retirement_date as retirement_date,\n retirement_eligibility_date as retirement_eligibility_date,\n return_unknown as return_unknown,\n seniority_date as seniority_date,\n severance_date as severance_date,\n terminated as terminated,\n termination_date as termination_date,\n termination_involuntary as termination_involuntary,\n termination_last_day_of_work as termination_last_day_of_work,\n time_off_service_date as time_off_service_date,\n universal_id as universal_id,\n user_id as user_id,\n vesting_date as vesting_date,\n worker_code as worker_code\n\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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 \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 annual_currency_summary_primary_compensation_basis,\n \n \n \n \n \n \n \n \n annual_currency_summary_total_base_pay,\n \n \n \n \n \n \n \n \n annual_currency_summary_total_salary_and_allowances,\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 \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 \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 \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 \n \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\".\"public_workday_dev\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n academic_pay_setup_data_annual_work_period_end_date as academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date as academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year as academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date as academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date as academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language as business_site_summary_display_language,\n business_site_summary_local as business_site_summary_local,\n business_site_summary_location as business_site_summary_location,\n business_site_summary_location_type as business_site_summary_location_type,\n business_site_summary_name as business_site_summary_name,\n business_site_summary_scheduled_weekly_hours as business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile as business_site_summary_time_profile,\n business_title as business_title,\n critical_job as critical_job,\n default_weekly_hours as default_weekly_hours,\n difficulty_to_fill as difficulty_to_fill,\n effective_date as effective_date,\n employee_type as employee_type,\n end_date as end_date,\n end_employment_date as end_employment_date,\n exclude_from_head_count as exclude_from_head_count,\n expected_assignment_end_date as expected_assignment_end_date,\n external_employee as external_employee,\n federal_withholding_fein as federal_withholding_fein,\n frequency as frequency,\n full_time_equivalent_percentage as full_time_equivalent_percentage,\n headcount_restriction_code as headcount_restriction_code,\n home_country as home_country,\n host_country as host_country,\n international_assignment_type as international_assignment_type,\n is_primary_job as is_primary_job,\n job_exempt as job_exempt,\n job_profile_id as job_profile_id,\n management_level_code as management_level_code,\n paid_fte as paid_fte,\n pay_group as pay_group,\n pay_rate as pay_rate,\n pay_rate_type as pay_rate_type,\n pay_through_date as pay_through_date,\n payroll_entity as payroll_entity,\n payroll_file_number as payroll_file_number,\n position_id as position_id,\n regular_paid_equivalent_hours as regular_paid_equivalent_hours,\n scheduled_weekly_hours as scheduled_weekly_hours,\n specify_paid_fte as specify_paid_fte,\n specify_working_fte as specify_working_fte,\n start_date as start_date,\n start_international_assignment_reason as start_international_assignment_reason,\n work_hours_profile as work_hours_profile,\n work_shift as work_shift,\n work_shift_required as work_shift_required,\n work_space as work_space,\n worker_hours_profile_classification as worker_hours_profile_classification,\n worker_id as worker_id,\n working_fte as working_fte,\n working_time_frequency as working_time_frequency,\n working_time_unit as working_time_unit,\n working_time_value as working_time_value\n\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n additional_nationality as additional_nationality,\n blood_type as blood_type,\n citizenship_status as citizenship_status,\n city_of_birth as city_of_birth,\n city_of_birth_code as city_of_birth_code,\n country_of_birth as country_of_birth,\n date_of_birth as date_of_birth,\n date_of_death as date_of_death,\n gender as gender,\n hispanic_or_latino as hispanic_or_latino,\n hukou_locality as hukou_locality,\n hukou_postal_code as hukou_postal_code,\n hukou_region as hukou_region,\n hukou_subregion as hukou_subregion,\n hukou_type as hukou_type,\n id as id,\n last_medical_exam_date as last_medical_exam_date,\n last_medical_exam_valid_to as last_medical_exam_valid_to,\n local_hukou as local_hukou,\n marital_status as marital_status,\n marital_status_date as marital_status_date,\n medical_exam_notes as medical_exam_notes,\n native_region as native_region,\n native_region_code as native_region_code,\n personnel_file_agency as personnel_file_agency,\n political_affiliation as political_affiliation,\n primary_nationality as primary_nationality,\n region_of_birth as region_of_birth,\n region_of_birth_code as region_of_birth_code,\n religion as religion,\n social_benefit as social_benefit,\n tobacco_use as tobacco_use,\n type as type\n\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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 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\".\"public_workday_dev\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n academic_tenure_date as academic_tenure_date,\n active as active,\n active_status_date as active_status_date,\n annual_currency_summary_currency as annual_currency_summary_currency,\n annual_currency_summary_frequency as annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis as annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay as annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances as annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency as annual_summary_currency,\n annual_summary_frequency as annual_summary_frequency,\n annual_summary_primary_compensation_basis as annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay as annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances as annual_summary_total_salary_and_allowances,\n benefits_service_date as benefits_service_date,\n company_service_date as company_service_date,\n compensation_effective_date as compensation_effective_date,\n compensation_grade_id as compensation_grade_id,\n compensation_grade_profile_id as compensation_grade_profile_id,\n continuous_service_date as continuous_service_date,\n contract_assignment_details as contract_assignment_details,\n contract_currency_code as contract_currency_code,\n contract_end_date as contract_end_date,\n contract_frequency_name as contract_frequency_name,\n contract_pay_rate as contract_pay_rate,\n contract_vendor_name as contract_vendor_name,\n date_entered_workforce as date_entered_workforce,\n days_unemployed as days_unemployed,\n eligible_for_hire as eligible_for_hire,\n eligible_for_rehire_on_latest_termination as eligible_for_rehire_on_latest_termination,\n employee_compensation_currency as employee_compensation_currency,\n employee_compensation_frequency as employee_compensation_frequency,\n employee_compensation_primary_compensation_basis as employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay as employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances as employee_compensation_total_salary_and_allowances,\n end_employment_date as end_employment_date,\n expected_date_of_return as expected_date_of_return,\n expected_retirement_date as expected_retirement_date,\n first_day_of_work as first_day_of_work,\n has_international_assignment as has_international_assignment,\n hire_date as hire_date,\n hire_reason as hire_reason,\n hire_rescinded as hire_rescinded,\n home_country as home_country,\n hourly_frequency_currency as hourly_frequency_currency,\n hourly_frequency_frequency as hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis as hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay as hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances as hourly_frequency_total_salary_and_allowances,\n id as id,\n last_datefor_which_paid as last_datefor_which_paid,\n local_termination_reason as local_termination_reason,\n months_continuous_prior_employment as months_continuous_prior_employment,\n not_returning as not_returning,\n original_hire_date as original_hire_date,\n pay_group_frequency_currency as pay_group_frequency_currency,\n pay_group_frequency_frequency as pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis as pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay as pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances as pay_group_frequency_total_salary_and_allowances,\n pay_through_date as pay_through_date,\n primary_termination_category as primary_termination_category,\n primary_termination_reason as primary_termination_reason,\n probation_end_date as probation_end_date,\n probation_start_date as probation_start_date,\n reason_reference_id as reason_reference_id,\n regrettable_termination as regrettable_termination,\n rehire as rehire,\n resignation_date as resignation_date,\n retired as retired,\n retirement_date as retirement_date,\n retirement_eligibility_date as retirement_eligibility_date,\n return_unknown as return_unknown,\n seniority_date as seniority_date,\n severance_date as severance_date,\n terminated as terminated,\n termination_date as termination_date,\n termination_involuntary as termination_involuntary,\n termination_last_day_of_work as termination_last_day_of_work,\n time_off_service_date as time_off_service_date,\n universal_id as universal_id,\n user_id as user_id,\n vesting_date as vesting_date,\n worker_code as worker_code\n\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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 \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 annual_currency_summary_primary_compensation_basis,\n \n \n \n \n \n \n \n \n annual_currency_summary_total_base_pay,\n \n \n \n \n \n \n \n \n annual_currency_summary_total_salary_and_allowances,\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 \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 \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 \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 \n \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\".\"public_workday_dev\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n academic_pay_setup_data_annual_work_period_end_date as academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date as academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year as academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date as academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date as academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language as business_site_summary_display_language,\n business_site_summary_local as business_site_summary_local,\n business_site_summary_location as business_site_summary_location,\n business_site_summary_location_type as business_site_summary_location_type,\n business_site_summary_name as business_site_summary_name,\n business_site_summary_scheduled_weekly_hours as business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile as business_site_summary_time_profile,\n business_title as business_title,\n critical_job as critical_job,\n default_weekly_hours as default_weekly_hours,\n difficulty_to_fill as difficulty_to_fill,\n effective_date as effective_date,\n employee_type as employee_type,\n end_date as end_date,\n end_employment_date as end_employment_date,\n exclude_from_head_count as exclude_from_head_count,\n expected_assignment_end_date as expected_assignment_end_date,\n external_employee as external_employee,\n federal_withholding_fein as federal_withholding_fein,\n frequency as frequency,\n full_time_equivalent_percentage as full_time_equivalent_percentage,\n headcount_restriction_code as headcount_restriction_code,\n home_country as home_country,\n host_country as host_country,\n international_assignment_type as international_assignment_type,\n is_primary_job as is_primary_job,\n job_exempt as job_exempt,\n job_profile_id as job_profile_id,\n management_level_code as management_level_code,\n paid_fte as paid_fte,\n pay_group as pay_group,\n pay_rate as pay_rate,\n pay_rate_type as pay_rate_type,\n pay_through_date as pay_through_date,\n payroll_entity as payroll_entity,\n payroll_file_number as payroll_file_number,\n position_id as position_id,\n regular_paid_equivalent_hours as regular_paid_equivalent_hours,\n scheduled_weekly_hours as scheduled_weekly_hours,\n specify_paid_fte as specify_paid_fte,\n specify_working_fte as specify_working_fte,\n start_date as start_date,\n start_international_assignment_reason as start_international_assignment_reason,\n work_hours_profile as work_hours_profile,\n work_shift as work_shift,\n work_shift_required as work_shift_required,\n work_space as work_space,\n worker_hours_profile_classification as worker_hours_profile_classification,\n worker_id as worker_id,\n working_fte as working_fte,\n working_time_frequency as working_time_frequency,\n working_time_unit as working_time_unit,\n working_time_value as working_time_value\n\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n additional_nationality as additional_nationality,\n blood_type as blood_type,\n citizenship_status as citizenship_status,\n city_of_birth as city_of_birth,\n city_of_birth_code as city_of_birth_code,\n country_of_birth as country_of_birth,\n date_of_birth as date_of_birth,\n date_of_death as date_of_death,\n gender as gender,\n hispanic_or_latino as hispanic_or_latino,\n hukou_locality as hukou_locality,\n hukou_postal_code as hukou_postal_code,\n hukou_region as hukou_region,\n hukou_subregion as hukou_subregion,\n hukou_type as hukou_type,\n id as id,\n last_medical_exam_date as last_medical_exam_date,\n last_medical_exam_valid_to as last_medical_exam_valid_to,\n local_hukou as local_hukou,\n marital_status as marital_status,\n marital_status_date as marital_status_date,\n medical_exam_notes as medical_exam_notes,\n native_region as native_region,\n native_region_code as native_region_code,\n personnel_file_agency as personnel_file_agency,\n political_affiliation as political_affiliation,\n primary_nationality as primary_nationality,\n region_of_birth as region_of_birth,\n region_of_birth_code as region_of_birth_code,\n religion as religion,\n social_benefit as social_benefit,\n tobacco_use as tobacco_use,\n type as type\n\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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, "primary_key": [], "time_spine": null}, "model.workday.stg_workday__position": {"database": "postgres", "schema": "public_workday_dev", "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": "09a0fdeb16acf5108668804faf6afb574117004b57e8fc4bb9da4bc78b29dd5b"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.source_relation"]}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.position_id"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.academic_tenure_eligible"]}, "availability_date": {"name": "availability_date", "description": "Date when the organization becomes available.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.availability_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.available_for_hire"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.available_for_overlap"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.available_for_recruiting"]}, "is_closed": {"name": "is_closed", "description": "Flag indicating whether the position is closed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.closed"]}, "compensation_grade_code": {"name": "compensation_grade_code", "description": "Code associated with the compensation grade of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.compensation_grade_code"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.compensation_grade_profile_code"]}, "compensation_package_code": {"name": "compensation_package_code", "description": "Code associated with the compensation package of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.compensation_package_code"]}, "compensation_step_code": {"name": "compensation_step_code", "description": "Code associated with the compensation step of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.compensation_step_code"]}, "is_critical_job": {"name": "is_critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.critical_job"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.difficulty_to_fill_code"]}, "earliest_hire_date": {"name": "earliest_hire_date", "description": "Earliest date when the position can be filled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.earliest_hire_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.earliest_overlap_date"]}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.effective_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hiring_freeze"]}, "job_description": {"name": "job_description", "description": "Detailed description of the job associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_description"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_description_summary"]}, "job_posting_title": {"name": "job_posting_title", "description": "Title used for job postings associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_posting_title"]}, "position_code": {"name": "position_code", "description": "Code associated with the position for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.position_code"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.position_time_type_code"]}, "primary_compensation_basis": {"name": "primary_compensation_basis", "description": "Primary basis of compensation for the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.primary_compensation_basis"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.primary_compensation_basis_amount_change"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.primary_compensation_basis_percent_change"]}, "supervisory_organization_id": {"name": "supervisory_organization_id", "description": "Identifier for the supervisory organization associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.supervisory_organization_id"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.work_shift_required"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.worker_for_filled_position_id"]}, "worker_position_id": {"name": "worker_position_id", "description": "Identifier for the worker associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.worker_position_id"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.worker_type_code"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "ephemeral", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1781284401.649103, "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.apply_source_relation(package_name='workday') }}\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", "doc_blocks": ["doc.workday.position"], "language": "sql", "refs": [{"name": "stg_workday__position_base", "package": null, "version": null}, {"name": "stg_workday__position_base", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.workday.get_position_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.apply_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\".\"public_workday_dev\".\"stg_workday__position_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n academic_tenure_eligible as academic_tenure_eligible,\n availability_date as availability_date,\n available_for_hire as available_for_hire,\n available_for_overlap as available_for_overlap,\n available_for_recruiting as available_for_recruiting,\n closed as closed,\n compensation_grade_code as compensation_grade_code,\n compensation_grade_profile_code as compensation_grade_profile_code,\n compensation_package_code as compensation_package_code,\n compensation_step_code as compensation_step_code,\n critical_job as critical_job,\n difficulty_to_fill_code as difficulty_to_fill_code,\n earliest_hire_date as earliest_hire_date,\n earliest_overlap_date as earliest_overlap_date,\n effective_date as effective_date,\n hiring_freeze as hiring_freeze,\n id as id,\n job_description as job_description,\n job_description_summary as job_description_summary,\n job_posting_title as job_posting_title,\n position_code as position_code,\n position_time_type_code as position_time_type_code,\n primary_compensation_basis as primary_compensation_basis,\n primary_compensation_basis_amount_change as primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change as primary_compensation_basis_percent_change,\n supervisory_organization_id as supervisory_organization_id,\n work_shift_required as work_shift_required,\n worker_for_filled_position_id as worker_for_filled_position_id,\n worker_position_id as worker_position_id,\n worker_type_code as worker_type_code\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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, "primary_key": [], "time_spine": null}, "model.workday.stg_workday__person_name": {"database": "postgres", "schema": "public_workday_dev", "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": "ab41173e73add64790e76513ea3b0a910bfe00f6d3a6cc93576ec64bfcd5fb89"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.source_relation"]}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.worker_id"]}, "index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.index"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.person_name_type"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}, "academic_suffix": {"name": "academic_suffix", "description": "The academic suffix, if applicable (e.g., PhD, MD).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.academic_suffix"]}, "additional_name_type": {"name": "additional_name_type", "description": "Additional type or category for the person name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.additional_name_type"]}, "country": {"name": "country", "description": "The country associated with the person name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.country"]}, "first_name": {"name": "first_name", "description": "The first name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.first_name"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.full_name_singapore_malaysia"]}, "hereditary_suffix": {"name": "hereditary_suffix", "description": "The hereditary suffix, if applicable (e.g., Jr, Sr).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hereditary_suffix"]}, "honorary_suffix": {"name": "honorary_suffix", "description": "The honorary suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.honorary_suffix"]}, "last_name": {"name": "last_name", "description": "The last name or surname of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.last_name"]}, "local_first_name": {"name": "local_first_name", "description": "The local or native first name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.local_first_name"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.local_first_name_2"]}, "local_last_name": {"name": "local_last_name", "description": "The local or native last name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.local_last_name"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.local_last_name_2"]}, "local_middle_name": {"name": "local_middle_name", "description": "The local or native middle name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.local_middle_name"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.local_middle_name_2"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.local_secondary_last_name"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.local_secondary_last_name_2"]}, "middle_name": {"name": "middle_name", "description": "The middle name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.middle_name"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.prefix_salutation"]}, "prefix_title": {"name": "prefix_title", "description": "The prefix or title associated with the name (e.g., Professor).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.prefix_title"]}, "prefix_title_code": {"name": "prefix_title_code", "description": "The code associated with the prefix or title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.prefix_title_code"]}, "professional_suffix": {"name": "professional_suffix", "description": "The professional suffix, if applicable (e.g., Esq., CPA).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.professional_suffix"]}, "religious_suffix": {"name": "religious_suffix", "description": "The religious suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.religious_suffix"]}, "royal_suffix": {"name": "royal_suffix", "description": "The royal suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.royal_suffix"]}, "secondary_last_name": {"name": "secondary_last_name", "description": "Secondary last name or surname, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.secondary_last_name"]}, "social_suffix": {"name": "social_suffix", "description": "The social suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.social_suffix"]}, "social_suffix_id": {"name": "social_suffix_id", "description": "The identifier for the social suffix.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.social_suffix_id"]}, "tertiary_last_name": {"name": "tertiary_last_name", "description": "Tertiary last name or surname, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.tertiary_last_name"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "ephemeral", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1781284401.6642234, "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.apply_source_relation(package_name='workday') }}\n 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", "doc_blocks": ["doc.workday.person_name"], "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": [], "functions": [], "depends_on": {"macros": ["macro.workday.get_person_name_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.apply_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\".\"public_workday_dev\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n academic_suffix as academic_suffix,\n additional_name_type as additional_name_type,\n country as country,\n first_name as first_name,\n full_name_singapore_malaysia as full_name_singapore_malaysia,\n hereditary_suffix as hereditary_suffix,\n honorary_suffix as honorary_suffix,\n index as index,\n last_name as last_name,\n local_first_name as local_first_name,\n local_first_name_2 as local_first_name_2,\n local_last_name as local_last_name,\n local_last_name_2 as local_last_name_2,\n local_middle_name as local_middle_name,\n local_middle_name_2 as local_middle_name_2,\n local_secondary_last_name as local_secondary_last_name,\n local_secondary_last_name_2 as local_secondary_last_name_2,\n middle_name as middle_name,\n personal_info_system_id as personal_info_system_id,\n prefix_salutation as prefix_salutation,\n prefix_title as prefix_title,\n prefix_title_code as prefix_title_code,\n professional_suffix as professional_suffix,\n religious_suffix as religious_suffix,\n royal_suffix as royal_suffix,\n secondary_last_name as secondary_last_name,\n social_suffix as social_suffix,\n social_suffix_id as social_suffix_id,\n tertiary_last_name as tertiary_last_name,\n type as type\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n 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, "primary_key": [], "time_spine": null}, "model.workday.stg_workday__organization_job_family": {"database": "postgres", "schema": "public_workday_dev", "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": "a014939318785f0913f6bb089f6d34dc2ae0a1cc53cf4d507cb2d28084e9bcdd"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.source_relation"]}, "job_family_id": {"name": "job_family_id", "description": "Identifier for the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_family_id"]}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.organization_id"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}, "job_family_group_id": {"name": "job_family_group_id", "description": "Identifier for the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_family_group_id"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "ephemeral", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1781284401.6319106, "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.apply_source_relation(package_name='workday') }}\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", "doc_blocks": ["doc.workday.organization_job_family"], "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": [], "functions": [], "depends_on": {"macros": ["macro.workday.get_organization_job_family_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.apply_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\".\"public_workday_dev\".\"stg_workday__organization_job_family_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n job_family_group_id as job_family_group_id,\n job_family_id as job_family_id,\n organization_id as organization_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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, "primary_key": [], "time_spine": null}, "model.workday.stg_workday__military_service": {"database": "postgres", "schema": "public_workday_dev", "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": "607e8311c00be967aba81f7025387b43ad326fa95b194592e60034decc2d60eb"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.source_relation"]}, "index": {"name": "index", "description": "An index for a particular identifier. This field is now always null after recent schema updates, and is maintained for backwards compatibility only.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.index_backward_compatibility"]}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.worker_id"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}, "discharge_date": {"name": "discharge_date", "description": "The date on which the individual was discharged from military service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.discharge_date"]}, "discharge_type": {"name": "discharge_type", "description": "Type of military discharge.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.discharge_type"]}, "notes": {"name": "notes", "description": "Additional notes or comments related to the military service record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.notes"]}, "rank": {"name": "rank", "description": "The rank achieved by the individual during military service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.rank"]}, "service": {"name": "service", "description": "The specific military service branch in which the individual served.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.service"]}, "service_type": {"name": "service_type", "description": "The type or category of military service (e.g., active duty, reserve, etc.). Now always null and maintained for backwards compatibility only.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.service_type"]}, "military_status": {"name": "military_status", "description": "The military status of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.military_status"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.status_begin_date"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "ephemeral", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1781284401.6739454, "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.apply_source_relation(package_name='workday') }}\n from base\n),\n\nfinal as (\n select\n personal_info_common_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n notes,\n rank,\n service,\n discharge_type,\n status_id as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "doc_blocks": ["doc.workday.military_service"], "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": [], "functions": [], "depends_on": {"macros": ["macro.workday.get_military_service_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.apply_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\".\"public_workday_dev\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n personal_info_common_id as personal_info_common_id,\n discharge_date as discharge_date,\n discharge_type as discharge_type,\n notes as notes,\n rank as rank,\n service as service,\n status_id as status_id,\n status_begin_date as status_begin_date\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n from base\n),\n\nfinal as (\n select\n personal_info_common_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n notes,\n rank,\n service,\n discharge_type,\n status_id 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, "primary_key": [], "time_spine": null}, "model.workday.stg_workday__job_family_job_profile": {"database": "postgres", "schema": "public_workday_dev", "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": "c1e6e05d803bc96d00ac61a4630c255abc437ee734eabe37e96e87481e4f368a"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.source_relation"]}, "job_family_id": {"name": "job_family_id", "description": "Identifier for the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_family_id"]}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_profile_id"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "ephemeral", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1781284401.6187935, "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.apply_source_relation(package_name='workday') }}\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", "doc_blocks": ["doc.workday.job_family_job_profile"], "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": [], "functions": [], "depends_on": {"macros": ["macro.workday.get_job_family_job_profile_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.apply_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\".\"public_workday_dev\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n job_family_id as job_family_id,\n job_profile_id as job_profile_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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, "primary_key": [], "time_spine": null}, "model.workday.stg_workday__job_profile": {"database": "postgres", "schema": "public_workday_dev", "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": "cad16109d51ba8fe726ab6322dcf33795338bb0f87d2f852bd27e9b9fa519ae3"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.source_relation"]}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_profile_id"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}, "additional_job_description": {"name": "additional_job_description", "description": "Additional details or information about the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.additional_job_description"]}, "compensation_grade_id": {"name": "compensation_grade_id", "description": "Identifier for the compensation grade.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.compensation_grade_id"]}, "is_critical_job": {"name": "is_critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.critical_job"]}, "job_description": {"name": "job_description", "description": "Brief description of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_profile_description"]}, "difficulty_to_fill": {"name": "difficulty_to_fill", "description": "Indication of the difficulty level in filling the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.difficulty_to_fill"]}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.effective_date"]}, "is_inactive": {"name": "is_inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.inactive"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.include_job_code_in_name"]}, "job_category_id": {"name": "job_category_id", "description": "Identifier for the job category.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_category_id"]}, "job_profile_code": {"name": "job_profile_code", "description": "Code assigned to the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_profile_code"]}, "level": {"name": "level", "description": "Level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.level"]}, "management_level": {"name": "management_level", "description": "Management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.management_level"]}, "private_title": {"name": "private_title", "description": "Private title associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.private_title"]}, "is_public_job": {"name": "is_public_job", "description": "Flag indicating whether the job is public.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.public_job"]}, "referral_payment_plan": {"name": "referral_payment_plan", "description": "Referral payment plan associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.referral_payment_plan"]}, "job_summary": {"name": "job_summary", "description": "Summary or overview of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.summary"]}, "job_title": {"name": "job_title", "description": "The title of the job for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_title"]}, "union_code": {"name": "union_code", "description": "Code associated with the union related to the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.union_code"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.union_membership_requirement"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.work_shift_required"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.work_study_award_source_code"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.work_study_requirement_option_code"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "ephemeral", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1781284401.6165063, "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.apply_source_relation(package_name='workday') }}\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", "doc_blocks": ["doc.workday.job_profile"], "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": [], "functions": [], "depends_on": {"macros": ["macro.workday.get_job_profile_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.apply_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\".\"public_workday_dev\".\"stg_workday__job_profile_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n additional_job_description as additional_job_description,\n compensation_grade_id as compensation_grade_id,\n critical_job as critical_job,\n description as description,\n difficulty_to_fill as difficulty_to_fill,\n effective_date as effective_date,\n id as id,\n inactive as inactive,\n include_job_code_in_name as include_job_code_in_name,\n job_category_id as job_category_id,\n job_profile_code as job_profile_code,\n level as level,\n management_level as management_level,\n private_title as private_title,\n public_job as public_job,\n referral_payment_plan as referral_payment_plan,\n summary as summary,\n title as title,\n union_code as union_code,\n union_membership_requirement as union_membership_requirement,\n work_shift_required as work_shift_required,\n work_study_award_source_code as work_study_award_source_code,\n work_study_requirement_option_code as work_study_requirement_option_code\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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, "primary_key": [], "time_spine": null}, "model.workday.stg_workday__organization_role": {"database": "postgres", "schema": "public_workday_dev", "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": "9e2511e1459fac24865d9dee9a87d9364622d6f7a01ce235ace6ef40f0a01ad7"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.source_relation"]}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.organization_id"]}, "organization_role_id": {"name": "organization_role_id", "description": "The role id associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.organization_role_id"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.organization_role_code"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "ephemeral", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1781284401.6274865, "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.apply_source_relation(package_name='workday') }}\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", "doc_blocks": ["doc.workday.organization_role"], "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": [], "functions": [], "depends_on": {"macros": ["macro.workday.get_organization_role_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.apply_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\".\"public_workday_dev\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n organization_id as organization_id,\n organization_role_code as organization_role_code,\n role_id as role_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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, "primary_key": [], "time_spine": null}, "model.workday.stg_workday__country_personal_information": {"database": "postgres", "schema": "public_workday_dev", "name": "stg_workday__country_personal_information", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__country_personal_information.sql", "original_file_path": "models/staging/stg_workday__country_personal_information.sql", "unique_id": "model.workday.stg_workday__country_personal_information", "fqn": ["workday", "staging", "stg_workday__country_personal_information"], "alias": "stg_workday__country_personal_information", "checksum": {"name": "sha256", "checksum": "64da126c43767a55e2599ee54d3311c51dabe36ca56f071c810aaf266eb41c1b"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table containing country-specific personal information attributes including gender, marital status, and region-specific data.", "columns": {"fivetran_id": {"name": "fivetran_id", "description": "Fivetran composite key identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.fivetran_id"]}, "personal_info_common_id": {"name": "personal_info_common_id", "description": "Personal information common data ID linking to worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.personal_info_common_id"]}, "country_code": {"name": "country_code", "description": "Country code for country-specific information.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.country_code"]}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.source_relation"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}, "gender": {"name": "gender", "description": "The gender of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.gender"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hispanic_or_latino"]}, "hukou_locality": {"name": "hukou_locality", "description": "The locality associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hukou_locality"]}, "hukou_postal_code": {"name": "hukou_postal_code", "description": "The postal code associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hukou_postal_code"]}, "hukou_region_code": {"name": "hukou_region_code", "description": "Hukou region code (China-specific, renamed from legacy `hukou_region` in v42.2 API).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hukou_region_code"]}, "hukou_subregion_code": {"name": "hukou_subregion_code", "description": "Hukou subregion code (China-specific, renamed from legacy `hukou_subregion` in v42.2 API).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hukou_subregion_code"]}, "hukou_type_code": {"name": "hukou_type_code", "description": "Hukou type code (China-specific, renamed from legacy `hukou_type` in v42.2 API).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hukou_type_code"]}, "is_local_hukou": {"name": "is_local_hukou", "description": "Flag indicating whether the Hukou is local.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.local_hukou"]}, "marital_status": {"name": "marital_status", "description": "The marital status of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.marital_status"]}, "marital_status_date": {"name": "marital_status_date", "description": "The date of the marital status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.marital_status_date"]}, "native_region_code": {"name": "native_region_code", "description": "The code of the native region.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.native_region_code"]}, "native_region": {"name": "native_region", "description": "The native region of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.native_region"]}, "personnel_file_agency_for_person": {"name": "personnel_file_agency_for_person", "description": "Personnel file agency for person (renamed from legacy `personnel_file_agency` in v42.2 API).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.personnel_file_agency_for_person"]}, "political_affiliation": {"name": "political_affiliation", "description": "The political affiliation of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.political_affiliation"]}, "religion": {"name": "religion", "description": "The religion of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.religion"]}, "social_benefit": {"name": "social_benefit", "description": "Social benefit information.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.social_benefit_information"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "ephemeral", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1781284401.6708553, "relation_name": null, "raw_code": "with base as (\n\n select *\n from {{ ref('stg_workday__country_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__country_personal_information_base')),\n staging_columns=get_country_personal_information_columns()\n )\n }}\n {{ fivetran_utils.apply_source_relation(package_name='workday') }}\n from base\n),\n\nfinal as (\n\n select\n fivetran_id,\n personal_info_common_id,\n country_code,\n source_relation,\n _fivetran_synced,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region_code,\n hukou_subregion_code,\n hukou_type_code,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n native_region_code,\n native_region,\n personnel_file_agency_for_person,\n political_affiliation,\n religion,\n social_benefits_locality\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "doc_blocks": ["doc.workday.country_personal_information"], "language": "sql", "refs": [{"name": "stg_workday__country_personal_information_base", "package": null, "version": null}, {"name": "stg_workday__country_personal_information_base", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.workday.get_country_personal_information_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.apply_source_relation"], "nodes": ["model.workday.stg_workday__country_personal_information_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__country_personal_information.sql", "compiled": true, "compiled_code": "with base as (\n\n select *\n from \"postgres\".\"public_workday_dev\".\"stg_workday__country_personal_information_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_synced as _fivetran_synced,\n _fivetran_deleted as _fivetran_deleted,\n fivetran_id as fivetran_id,\n personal_info_common_id as personal_info_common_id,\n country_code as country_code,\n gender as gender,\n hispanic_or_latino as hispanic_or_latino,\n hukou_locality as hukou_locality,\n hukou_postal_code as hukou_postal_code,\n hukou_region_code as hukou_region_code,\n hukou_subregion_code as hukou_subregion_code,\n hukou_type_code as hukou_type_code,\n local_hukou as local_hukou,\n marital_status as marital_status,\n marital_status_date as marital_status_date,\n native_region_code as native_region_code,\n native_region as native_region,\n personnel_file_agency_for_person as personnel_file_agency_for_person,\n political_affiliation as political_affiliation,\n religion as religion,\n social_benefits_locality as social_benefits_locality\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n from base\n),\n\nfinal as (\n\n select\n fivetran_id,\n personal_info_common_id,\n country_code,\n source_relation,\n _fivetran_synced,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region_code,\n hukou_subregion_code,\n hukou_type_code,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n native_region_code,\n native_region,\n personnel_file_agency_for_person,\n political_affiliation,\n religion,\n social_benefits_locality\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, "primary_key": [], "time_spine": null}, "model.workday.stg_workday__organization_role_worker": {"database": "postgres", "schema": "public_workday_dev", "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": "26787213af73dd4629d6d316ff4e22adcceb35fdd0a90891aa5726fe3e5d6238"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.source_relation"]}, "organization_worker_code": {"name": "organization_worker_code", "description": "The worker code associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.organization_worker_code"]}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.organization_id"]}, "role_id": {"name": "role_id", "description": "Identifier for the specific role.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.role_id"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "ephemeral", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1781284401.6304073, "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.apply_source_relation(package_name='workday') }}\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", "doc_blocks": ["doc.workday.organization_role_worker"], "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": [], "functions": [], "depends_on": {"macros": ["macro.workday.get_organization_role_worker_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.apply_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\".\"public_workday_dev\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n associated_worker_id as associated_worker_id,\n organization_id as organization_id,\n role_id as role_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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, "primary_key": [], "time_spine": null}, "model.workday.stg_workday__worker_position_organization": {"database": "postgres", "schema": "public_workday_dev", "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": "16f090f3ded40074084ef855d9eddb4ed5bf5141c0c9dd2d682f52755f6ec70a"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.source_relation"]}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.position_id"]}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.worker_id"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}, "index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.index"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.date_of_pay_group_assignment"]}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.organization_id"]}, "primary_business_site": {"name": "primary_business_site", "description": "Primary location a worker's business is situated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.primary_business_site"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.used_in_change_organization_assignments"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "ephemeral", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1781284401.694415, "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.apply_source_relation(package_name='workday') }}\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", "doc_blocks": ["doc.workday.worker_position_organization"], "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": [], "functions": [], "depends_on": {"macros": ["macro.workday.get_worker_position_organization_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.apply_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\".\"public_workday_dev\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n index as index,\n position_id as position_id,\n worker_id as worker_id,\n date_of_pay_group_assignment as date_of_pay_group_assignment,\n organization_id as organization_id,\n primary_business_site as primary_business_site,\n used_in_change_organization_assignments as used_in_change_organization_assignments\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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, "primary_key": [], "time_spine": null}, "model.workday.stg_workday__worker_leave_status": {"database": "postgres", "schema": "public_workday_dev", "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": "71a92cd37cb4016a86698a3dabfa82f1c8cdd13b0435b6239cd52ce969ff6e95"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.source_relation"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.leave_request_event_id"]}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.worker_id"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}, "adoption_notification_date": {"name": "adoption_notification_date", "description": "The date of adoption notification.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.adoption_notification_date"]}, "adoption_placement_date": {"name": "adoption_placement_date", "description": "The date of adoption placement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.adoption_placement_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.age_of_dependent"]}, "is_benefits_effect": {"name": "is_benefits_effect", "description": "The effect of leave on benefits.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.benefits_effect"]}, "is_caesarean_section_birth": {"name": "is_caesarean_section_birth", "description": "Indicator for Caesarean section birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.caesarean_section_birth"]}, "child_birth_date": {"name": "child_birth_date", "description": "The date of child birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.child_birth_date"]}, "child_sdate_of_death": {"name": "child_sdate_of_death", "description": "The start date of child death.>", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.child_sdate_of_death"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.continuous_service_accrual_effect"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.date_baby_arrived_home_from_hospital"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.date_child_entered_country"]}, "date_of_recall": {"name": "date_of_recall", "description": "The date of recall.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.date_of_recall"]}, "description": {"name": "description", "description": "Description of the type of leave", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.leave_description"]}, "estimated_leave_end_date": {"name": "estimated_leave_end_date", "description": "The estimated end date of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.estimated_leave_end_date"]}, "expected_due_date": {"name": "expected_due_date", "description": "The expected due date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.expected_due_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.first_day_of_work"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.last_date_for_which_paid"]}, "leave_end_date": {"name": "leave_end_date", "description": "The end date of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.leave_end_date"]}, "leave_entitlement_override": {"name": "leave_entitlement_override", "description": "Override for leave entitlement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.leave_entitlement_override"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.leave_last_day_of_work"]}, "leave_of_absence_type": {"name": "leave_of_absence_type", "description": "The type of leave of absence.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.leave_of_absence_type"]}, "leave_percentage": {"name": "leave_percentage", "description": "The percentage of leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.leave_percentage"]}, "leave_return_event": {"name": "leave_return_event", "description": "The event associated with the return from leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.leave_return_event"]}, "leave_start_date": {"name": "leave_start_date", "description": "The start date of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.leave_start_date"]}, "leave_status_code": {"name": "leave_status_code", "description": "The code indicating the status of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.leave_status_code"]}, "leave_type_reason": {"name": "leave_type_reason", "description": "The reason for the leave type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.leave_type_reason"]}, "location_during_leave": {"name": "location_during_leave", "description": "The location during the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.location_during_leave"]}, "is_multiple_child_indicator": {"name": "is_multiple_child_indicator", "description": "Indicator for multiple children.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.multiple_child_indicator"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.number_of_babies_adopted_children"]}, "number_of_child_dependents": {"name": "number_of_child_dependents", "description": "The number of child dependents.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.number_of_child_dependents"]}, "number_of_previous_births": {"name": "number_of_previous_births", "description": "The number of previous births.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.number_of_previous_births"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.number_of_previous_maternity_leaves"]}, "is_on_leave": {"name": "is_on_leave", "description": "Indicator for whether the worker is on leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.on_leave"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.paid_time_off_accrual_effect"]}, "is_payroll_effect": {"name": "is_payroll_effect", "description": "The effect of leave on payroll.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.payroll_effect"]}, "is_single_parent_indicator": {"name": "is_single_parent_indicator", "description": "Indicator for a single parent.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.single_parent_indicator"]}, "social_security_disability_code": {"name": "social_security_disability_code", "description": "The code indicating social security disability.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.social_security_disability_code"]}, "is_stock_vesting_effect": {"name": "is_stock_vesting_effect", "description": "The effect of leave on stock vesting.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.stock_vesting_effect"]}, "stop_payment_date": {"name": "stop_payment_date", "description": "The date when stop payment occurs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.stop_payment_date"]}, "week_of_confinement": {"name": "week_of_confinement", "description": "Indicator for whether the leave is work-related.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.week_of_confinement"]}, "is_work_related": {"name": "is_work_related", "description": "Indicator for whether the leave is work-related.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.work_related"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "ephemeral", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1781284401.6933353, "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.apply_source_relation(package_name='workday') }}\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", "doc_blocks": ["doc.workday.worker_leave_status"], "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": [], "functions": [], "depends_on": {"macros": ["macro.workday.get_worker_leave_status_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.apply_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\".\"public_workday_dev\".\"stg_workday__worker_leave_status_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n adoption_notification_date as adoption_notification_date,\n adoption_placement_date as adoption_placement_date,\n age_of_dependent as age_of_dependent,\n benefits_effect as benefits_effect,\n caesarean_section_birth as caesarean_section_birth,\n child_birth_date as child_birth_date,\n child_sdate_of_death as child_sdate_of_death,\n continuous_service_accrual_effect as continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital as date_baby_arrived_home_from_hospital,\n date_child_entered_country as date_child_entered_country,\n date_of_recall as date_of_recall,\n description as description,\n estimated_leave_end_date as estimated_leave_end_date,\n expected_due_date as expected_due_date,\n first_day_of_work as first_day_of_work,\n last_date_for_which_paid as last_date_for_which_paid,\n leave_end_date as leave_end_date,\n leave_entitlement_override as leave_entitlement_override,\n leave_last_day_of_work as leave_last_day_of_work,\n leave_of_absence_type as leave_of_absence_type,\n leave_percentage as leave_percentage,\n leave_request_event_id as leave_request_event_id,\n leave_return_event as leave_return_event,\n leave_start_date as leave_start_date,\n leave_status_code as leave_status_code,\n leave_type_reason as leave_type_reason,\n location_during_leave as location_during_leave,\n multiple_child_indicator as multiple_child_indicator,\n number_of_babies_adopted_children as number_of_babies_adopted_children,\n number_of_child_dependents as number_of_child_dependents,\n number_of_previous_births as number_of_previous_births,\n number_of_previous_maternity_leaves as number_of_previous_maternity_leaves,\n on_leave as on_leave,\n paid_time_off_accrual_effect as paid_time_off_accrual_effect,\n payroll_effect as payroll_effect,\n single_parent_indicator as single_parent_indicator,\n social_security_disability_code as social_security_disability_code,\n stock_vesting_effect as stock_vesting_effect,\n stop_payment_date as stop_payment_date,\n week_of_confinement as week_of_confinement,\n work_related as work_related,\n worker_id as worker_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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, "primary_key": [], "time_spine": null}, "model.workday.stg_workday__job_family_job_family_group": {"database": "postgres", "schema": "public_workday_dev", "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": "5ec48348e9392986431f6593f7f1c685c6400ac5aedc4d00d61739e4db76f978"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.source_relation"]}, "job_family_id": {"name": "job_family_id", "description": "Identifier for the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_family_id"]}, "job_family_group_id": {"name": "job_family_group_id", "description": "Identifier for the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_family_group_id"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "ephemeral", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1781284401.6237721, "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.apply_source_relation(package_name='workday') }}\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", "doc_blocks": ["doc.workday.job_family_job_family_group"], "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": [], "functions": [], "depends_on": {"macros": ["macro.workday.get_job_family_job_family_group_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.apply_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\".\"public_workday_dev\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n job_family_id as job_family_id,\n job_family_group_id as job_family_group_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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, "primary_key": [], "time_spine": null}, "model.workday.stg_workday__worker": {"database": "postgres", "schema": "public_workday_dev", "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": "c5ba813666e9e5b93a3285062fc8d349719fba0d952dd9637e03eccc25e28b62"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.source_relation"]}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.worker_id"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}, "academic_tenure_date": {"name": "academic_tenure_date", "description": "Date when academic tenure is achieved.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.academic_tenure_date"]}, "is_active": {"name": "is_active", "description": "Flag indicating the current active status of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.active"]}, "active_status_date": {"name": "active_status_date", "description": "Date when the active status was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.active_status_date"]}, "annual_currency_summary_currency": {"name": "annual_currency_summary_currency", "description": "Currency used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.annual_currency_summary_currency"]}, "annual_currency_summary_frequency": {"name": "annual_currency_summary_frequency", "description": "Frequency of currency for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.annual_currency_summary_frequency"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.annual_currency_summary_primary_compensation_basis"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.annual_currency_summary_total_base_pay"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.annual_currency_summary_total_salary_and_allowances"]}, "annual_summary_currency": {"name": "annual_summary_currency", "description": "Currency used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.annual_summary_currency"]}, "annual_summary_frequency": {"name": "annual_summary_frequency", "description": "Frequency of currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.annual_summary_frequency"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.annual_summary_primary_compensation_basis"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.annual_summary_total_base_pay"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.annual_summary_total_salary_and_allowances"]}, "benefits_service_date": {"name": "benefits_service_date", "description": "Date when the worker's benefits service starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.benefits_service_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.company_service_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.compensation_effective_date"]}, "compensation_grade_id": {"name": "compensation_grade_id", "description": "Identifier for the compensation grade.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.compensation_grade_id"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.compensation_grade_profile_id"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.continuous_service_date"]}, "contract_assignment_details": {"name": "contract_assignment_details", "description": "Details of the worker's contract assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.contract_assignment_details"]}, "contract_currency_code": {"name": "contract_currency_code", "description": "Currency code used for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.contract_currency_code"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.contract_end_date"]}, "contract_frequency_name": {"name": "contract_frequency_name", "description": "Frequency of payment for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.contract_frequency_name"]}, "contract_pay_rate": {"name": "contract_pay_rate", "description": "Pay rate associated with the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.contract_pay_rate"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.contract_vendor_name"]}, "date_entered_workforce": {"name": "date_entered_workforce", "description": "Date when the worker entered the workforce.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.date_entered_workforce"]}, "days_unemployed": {"name": "days_unemployed", "description": "Number of days the worker has been unemployed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.days_unemployed"]}, "eligible_for_hire": {"name": "eligible_for_hire", "description": "Flag indicating whether the worker is eligible for hire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.eligible_for_hire"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.eligible_for_rehire_on_latest_termination"]}, "employee_compensation_currency": {"name": "employee_compensation_currency", "description": "Currency code used for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.employee_compensation_currency"]}, "employee_compensation_frequency": {"name": "employee_compensation_frequency", "description": "Frequency of payment for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.employee_compensation_frequency"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.employee_compensation_primary_compensation_basis"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.employee_compensation_total_base_pay"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.employee_compensation_total_salary_and_allowances"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.end_employment_date"]}, "expected_date_of_return": {"name": "expected_date_of_return", "description": "Expected date of the worker's return.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.expected_date_of_return"]}, "expected_retirement_date": {"name": "expected_retirement_date", "description": "Expected date of the worker's retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.expected_retirement_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.first_day_of_work"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.has_international_assignment"]}, "hire_date": {"name": "hire_date", "description": "The date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hire_date"]}, "hire_reason": {"name": "hire_reason", "description": "The reason for hiring the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hire_reason"]}, "is_hire_rescinded": {"name": "is_hire_rescinded", "description": "Flag indicating whether the worker's hire was rescinded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hire_rescinded"]}, "home_country": {"name": "home_country", "description": "The home country of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.home_country"]}, "hourly_frequency_currency": {"name": "hourly_frequency_currency", "description": "Currency code used for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hourly_frequency_currency"]}, "hourly_frequency_frequency": {"name": "hourly_frequency_frequency", "description": "Frequency of payment for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hourly_frequency_frequency"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hourly_frequency_primary_compensation_basis"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hourly_frequency_total_base_pay"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hourly_frequency_total_salary_and_allowances"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.last_datefor_which_paid"]}, "local_termination_reason": {"name": "local_termination_reason", "description": "The reason for local termination of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.local_termination_reason"]}, "months_continuous_prior_employment": {"name": "months_continuous_prior_employment", "description": "Number of months of continuous prior employment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.months_continuous_prior_employment"]}, "is_not_returning": {"name": "is_not_returning", "description": "Flag indicating whether the worker is not returning.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.not_returning"]}, "original_hire_date": {"name": "original_hire_date", "description": "The original date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.original_hire_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.pay_group_frequency_currency"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.pay_group_frequency_frequency"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.pay_group_frequency_primary_compensation_basis"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.pay_group_frequency_total_base_pay"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.pay_group_frequency_total_salary_and_allowances"]}, "pay_through_date": {"name": "pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.pay_through_date"]}, "primary_termination_category": {"name": "primary_termination_category", "description": "The primary termination category for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.primary_termination_category"]}, "primary_termination_reason": {"name": "primary_termination_reason", "description": "The primary termination reason for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.primary_termination_reason"]}, "probation_end_date": {"name": "probation_end_date", "description": "The date when the worker's probation ends.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.probation_end_date"]}, "probation_start_date": {"name": "probation_start_date", "description": "The date when the worker's probation starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.probation_start_date"]}, "reason_reference_id": {"name": "reason_reference_id", "description": "The reference ID for the termination reason.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.reason_reference_id"]}, "is_regrettable_termination": {"name": "is_regrettable_termination", "description": "Flag indicating whether the worker's termination is regrettable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.regrettable_termination"]}, "is_rehire": {"name": "is_rehire", "description": "Flag indicating whether the worker is eligible for rehire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.rehire"]}, "resignation_date": {"name": "resignation_date", "description": "The date when the worker resigned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.resignation_date"]}, "is_retired": {"name": "is_retired", "description": "Flag indicating whether the worker is retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.retired"]}, "retirement_date": {"name": "retirement_date", "description": "The date when the worker retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.retirement_date"]}, "retirement_eligibility_date": {"name": "retirement_eligibility_date", "description": "The date when the worker becomes eligible for retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.retirement_eligibility_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.return_unknown"]}, "seniority_date": {"name": "seniority_date", "description": "The date when the worker's seniority is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.seniority_date"]}, "severance_date": {"name": "severance_date", "description": "The date when the worker's severance is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.severance_date"]}, "is_terminated": {"name": "is_terminated", "description": "Has the worker been terminated?", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.is_terminated"]}, "termination_date": {"name": "termination_date", "description": "The date when the worker is terminated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.termination_date"]}, "is_termination_involuntary": {"name": "is_termination_involuntary", "description": "Flag indicating whether the termination is involuntary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.termination_involuntary"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.termination_last_day_of_work"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.time_off_service_date"]}, "universal_id": {"name": "universal_id", "description": "The universal ID associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.universal_id"]}, "user_id": {"name": "user_id", "description": "The identifier for the user associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.user_id"]}, "vesting_date": {"name": "vesting_date", "description": "The date when the worker's vesting starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.vesting_date"]}, "worker_code": {"name": "worker_code", "description": "The code associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.worker_code"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "ephemeral", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1781284401.6549642, "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.apply_source_relation(package_name='workday') }}\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", "doc_blocks": ["doc.workday.worker"], "language": "sql", "refs": [{"name": "stg_workday__worker_base", "package": null, "version": null}, {"name": "stg_workday__worker_base", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.workday.get_worker_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.apply_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\".\"public_workday_dev\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n academic_tenure_date as academic_tenure_date,\n active as active,\n active_status_date as active_status_date,\n annual_currency_summary_currency as annual_currency_summary_currency,\n annual_currency_summary_frequency as annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis as annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay as annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances as annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency as annual_summary_currency,\n annual_summary_frequency as annual_summary_frequency,\n annual_summary_primary_compensation_basis as annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay as annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances as annual_summary_total_salary_and_allowances,\n benefits_service_date as benefits_service_date,\n company_service_date as company_service_date,\n compensation_effective_date as compensation_effective_date,\n compensation_grade_id as compensation_grade_id,\n compensation_grade_profile_id as compensation_grade_profile_id,\n continuous_service_date as continuous_service_date,\n contract_assignment_details as contract_assignment_details,\n contract_currency_code as contract_currency_code,\n contract_end_date as contract_end_date,\n contract_frequency_name as contract_frequency_name,\n contract_pay_rate as contract_pay_rate,\n contract_vendor_name as contract_vendor_name,\n date_entered_workforce as date_entered_workforce,\n days_unemployed as days_unemployed,\n eligible_for_hire as eligible_for_hire,\n eligible_for_rehire_on_latest_termination as eligible_for_rehire_on_latest_termination,\n employee_compensation_currency as employee_compensation_currency,\n employee_compensation_frequency as employee_compensation_frequency,\n employee_compensation_primary_compensation_basis as employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay as employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances as employee_compensation_total_salary_and_allowances,\n end_employment_date as end_employment_date,\n expected_date_of_return as expected_date_of_return,\n expected_retirement_date as expected_retirement_date,\n first_day_of_work as first_day_of_work,\n has_international_assignment as has_international_assignment,\n hire_date as hire_date,\n hire_reason as hire_reason,\n hire_rescinded as hire_rescinded,\n home_country as home_country,\n hourly_frequency_currency as hourly_frequency_currency,\n hourly_frequency_frequency as hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis as hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay as hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances as hourly_frequency_total_salary_and_allowances,\n id as id,\n last_datefor_which_paid as last_datefor_which_paid,\n local_termination_reason as local_termination_reason,\n months_continuous_prior_employment as months_continuous_prior_employment,\n not_returning as not_returning,\n original_hire_date as original_hire_date,\n pay_group_frequency_currency as pay_group_frequency_currency,\n pay_group_frequency_frequency as pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis as pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay as pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances as pay_group_frequency_total_salary_and_allowances,\n pay_through_date as pay_through_date,\n primary_termination_category as primary_termination_category,\n primary_termination_reason as primary_termination_reason,\n probation_end_date as probation_end_date,\n probation_start_date as probation_start_date,\n reason_reference_id as reason_reference_id,\n regrettable_termination as regrettable_termination,\n rehire as rehire,\n resignation_date as resignation_date,\n retired as retired,\n retirement_date as retirement_date,\n retirement_eligibility_date as retirement_eligibility_date,\n return_unknown as return_unknown,\n seniority_date as seniority_date,\n severance_date as severance_date,\n terminated as terminated,\n termination_date as termination_date,\n termination_involuntary as termination_involuntary,\n termination_last_day_of_work as termination_last_day_of_work,\n time_off_service_date as time_off_service_date,\n universal_id as universal_id,\n user_id as user_id,\n vesting_date as vesting_date,\n worker_code as worker_code\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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, "primary_key": [], "time_spine": null}, "model.workday.stg_workday__job_family_group": {"database": "postgres", "schema": "public_workday_dev", "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": "3837d788fc82c41584fc8e1c6df4d5fd6b2cbde65c1437997cf11da9c86b9433"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.source_relation"]}, "job_family_group_id": {"name": "job_family_group_id", "description": "Identifier for the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_family_group_id"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.effective_date"]}, "is_inactive": {"name": "is_inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.inactive"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_family_group_code"]}, "job_family_group_summary": {"name": "job_family_group_summary", "description": "The summary of the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_family_group_summary"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "ephemeral", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1781284401.6260746, "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.apply_source_relation(package_name='workday') }}\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", "doc_blocks": ["doc.workday.job_family_group"], "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": [], "functions": [], "depends_on": {"macros": ["macro.workday.get_job_family_group_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.apply_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\".\"public_workday_dev\".\"stg_workday__job_family_group_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n effective_date as effective_date,\n id as id,\n inactive as inactive,\n job_family_group_code as job_family_group_code,\n summary as summary\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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, "primary_key": [], "time_spine": null}, "model.workday.stg_workday__position_job_profile": {"database": "postgres", "schema": "public_workday_dev", "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": "ac6acb486f9d795dcacece7b52dfc57ce4087bbfcd8d793ca50c25d049737891"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.source_relation"]}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_profile_id"]}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.position_id"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.difficulty_to_fill_code"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.is_critical_job"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_category_code"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.management_level_code"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.position_job_profile_name"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.work_shift_required"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "ephemeral", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1781284401.6507862, "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.apply_source_relation(package_name='workday') }}\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", "doc_blocks": ["doc.workday.position_job_profile"], "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": [], "functions": [], "depends_on": {"macros": ["macro.workday.get_position_job_profile_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.apply_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\".\"public_workday_dev\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n difficulty_to_fill_code as difficulty_to_fill_code,\n is_critical_job as is_critical_job,\n job_category_code as job_category_code,\n job_profile_id as job_profile_id,\n management_level_code as management_level_code,\n name as name,\n position_id as position_id,\n work_shift_required as work_shift_required\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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, "primary_key": [], "time_spine": null}, "model.workday.stg_workday__worker_position": {"database": "postgres", "schema": "public_workday_dev", "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": "0167815f7d0fa065ac0d4cf86fae9907956860dd5d4e48c37e96640f471e994b"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.source_relation"]}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.position_id"]}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.worker_id"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.academic_pay_setup_data_annual_work_period_end_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.academic_pay_setup_data_annual_work_period_start_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.academic_pay_setup_data_annual_work_period_work_percent_of_year"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.academic_pay_setup_data_disbursement_plan_period_end_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.academic_pay_setup_data_disbursement_plan_period_start_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.business_site_summary_display_language"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.business_site_summary_local"]}, "position_location": {"name": "position_location", "description": "The location of the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.business_site_summary_location"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.business_site_summary_location_type"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.business_site_summary_name"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.business_site_summary_scheduled_weekly_hours"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.business_site_summary_time_profile"]}, "business_title": {"name": "business_title", "description": "The business title associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.business_title"]}, "is_critical_job": {"name": "is_critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.critical_job"]}, "default_weekly_hours": {"name": "default_weekly_hours", "description": "The default weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.default_weekly_hours"]}, "difficulty_to_fill": {"name": "difficulty_to_fill", "description": "Indication of the difficulty level in filling the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.difficulty_to_fill"]}, "position_effective_date": {"name": "position_effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.effective_date"]}, "employee_type": {"name": "employee_type", "description": "The type of employee associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.employee_type"]}, "position_end_date": {"name": "position_end_date", "description": "The end date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.end_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.end_employment_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.exclude_from_head_count"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.expected_assignment_end_date"]}, "external_employee": {"name": "external_employee", "description": "Flag indicating whether the worker is an external employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.external_employee"]}, "federal_withholding_fein": {"name": "federal_withholding_fein", "description": "The Federal Employer Identification Number (FEIN) for federal withholding.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.federal_withholding_fein"]}, "frequency": {"name": "frequency", "description": "The frequency associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.frequency"]}, "fte_percent": {"name": "fte_percent", "description": "The full-time equivalent (FTE) percentage associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.full_time_equivalent_percentage"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.headcount_restriction_code"]}, "home_country": {"name": "home_country", "description": "The home country of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.home_country"]}, "host_country": {"name": "host_country", "description": "The host country associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.host_country"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.international_assignment_type"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.is_primary_job"]}, "is_job_exempt": {"name": "is_job_exempt", "description": "Indicates whether the job is exempt from certain regulations.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_exempt"]}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_profile_id"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.management_level_code"]}, "paid_fte": {"name": "paid_fte", "description": "The paid full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.paid_fte"]}, "pay_group": {"name": "pay_group", "description": "The pay group associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.pay_group"]}, "pay_rate": {"name": "pay_rate", "description": "The pay rate associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.pay_rate"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.pay_rate_type"]}, "pay_through_date": {"name": "pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.pay_through_date"]}, "payroll_entity": {"name": "payroll_entity", "description": "The payroll entity associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.payroll_entity"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.payroll_file_number"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.regular_paid_equivalent_hours"]}, "scheduled_weekly_hours": {"name": "scheduled_weekly_hours", "description": "The scheduled weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.scheduled_weekly_hours"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.specify_paid_fte"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.specify_working_fte"]}, "position_start_date": {"name": "position_start_date", "description": "The start date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.start_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.start_international_assignment_reason"]}, "work_hours_profile": {"name": "work_hours_profile", "description": "The work hours profile associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.work_hours_profile"]}, "work_shift": {"name": "work_shift", "description": "The work shift associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.work_shift"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.work_shift_required"]}, "work_space": {"name": "work_space", "description": "The work space associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.work_space"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.worker_hours_profile_classification"]}, "working_fte": {"name": "working_fte", "description": "The working full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.working_fte"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.working_time_frequency"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.working_time_unit"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.working_time_value"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "ephemeral", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1781284401.679019, "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.apply_source_relation(package_name='workday') }}\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", "doc_blocks": ["doc.workday.worker_position"], "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": [], "functions": [], "depends_on": {"macros": ["macro.workday.get_worker_position_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.apply_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\".\"public_workday_dev\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n academic_pay_setup_data_annual_work_period_end_date as academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date as academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year as academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date as academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date as academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language as business_site_summary_display_language,\n business_site_summary_local as business_site_summary_local,\n business_site_summary_location as business_site_summary_location,\n business_site_summary_location_type as business_site_summary_location_type,\n business_site_summary_name as business_site_summary_name,\n business_site_summary_scheduled_weekly_hours as business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile as business_site_summary_time_profile,\n business_title as business_title,\n critical_job as critical_job,\n default_weekly_hours as default_weekly_hours,\n difficulty_to_fill as difficulty_to_fill,\n effective_date as effective_date,\n employee_type as employee_type,\n end_date as end_date,\n end_employment_date as end_employment_date,\n exclude_from_head_count as exclude_from_head_count,\n expected_assignment_end_date as expected_assignment_end_date,\n external_employee as external_employee,\n federal_withholding_fein as federal_withholding_fein,\n frequency as frequency,\n full_time_equivalent_percentage as full_time_equivalent_percentage,\n headcount_restriction_code as headcount_restriction_code,\n home_country as home_country,\n host_country as host_country,\n international_assignment_type as international_assignment_type,\n is_primary_job as is_primary_job,\n job_exempt as job_exempt,\n job_profile_id as job_profile_id,\n management_level_code as management_level_code,\n paid_fte as paid_fte,\n pay_group as pay_group,\n pay_rate as pay_rate,\n pay_rate_type as pay_rate_type,\n pay_through_date as pay_through_date,\n payroll_entity as payroll_entity,\n payroll_file_number as payroll_file_number,\n position_id as position_id,\n regular_paid_equivalent_hours as regular_paid_equivalent_hours,\n scheduled_weekly_hours as scheduled_weekly_hours,\n specify_paid_fte as specify_paid_fte,\n specify_working_fte as specify_working_fte,\n start_date as start_date,\n start_international_assignment_reason as start_international_assignment_reason,\n work_hours_profile as work_hours_profile,\n work_shift as work_shift,\n work_shift_required as work_shift_required,\n work_space as work_space,\n worker_hours_profile_classification as worker_hours_profile_classification,\n worker_id as worker_id,\n working_fte as working_fte,\n working_time_frequency as working_time_frequency,\n working_time_unit as working_time_unit,\n working_time_value as working_time_value\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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, "primary_key": [], "time_spine": null}, "model.workday.stg_workday__personal_information_ethnicity": {"database": "postgres", "schema": "public_workday_dev", "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": "8ab64324653ed6b4b98083eb2212a3b14067265c93f061bae400f4cb96cb8bbb"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.source_relation"]}, "index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.index"]}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.worker_id"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}, "ethnicity_code": {"name": "ethnicity_code", "description": "The code representing the ethnicity of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.ethnicity_code"]}, "ethnicity_id": {"name": "ethnicity_id", "description": "The identifier associated with the ethnicity.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.ethnicity_id"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "ephemeral", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1781284401.6657932, "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.apply_source_relation(package_name='workday') }}\n from base\n),\n\nfinal as (\n\n select\n source_relation,\n _fivetran_synced, \n country_personal_information_id as worker_id,\n ethnicity_code,\n id as ethnicity_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "doc_blocks": ["doc.workday.personal_information_ethnicity"], "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": [], "functions": [], "depends_on": {"macros": ["macro.workday.get_personal_information_ethnicity_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.apply_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\".\"public_workday_dev\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n id as id,\n country_personal_information_id as country_personal_information_id,\n ethnicity_code as ethnicity_code\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n from base\n),\n\nfinal as (\n\n select\n source_relation,\n _fivetran_synced, \n country_personal_information_id as worker_id,\n ethnicity_code,\n id as ethnicity_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, "primary_key": [], "time_spine": null}, "model.workday.stg_workday__personal_information_common_data": {"database": "postgres", "schema": "public_workday_dev", "name": "stg_workday__personal_information_common_data", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__personal_information_common_data.sql", "original_file_path": "models/staging/stg_workday__personal_information_common_data.sql", "unique_id": "model.workday.stg_workday__personal_information_common_data", "fqn": ["workday", "staging", "stg_workday__personal_information_common_data"], "alias": "stg_workday__personal_information_common_data", "checksum": {"name": "sha256", "checksum": "ff1f194943bcb681666ddffaa50f074d074e8269a01af03c6bdb741a63beeb0e"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table containing universal personal information attributes including date of birth, death records, nationality, citizenship status, birth location, and medical exam data.", "columns": {"fivetran_id": {"name": "fivetran_id", "description": "Fivetran composite key identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.fivetran_id"]}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.worker_id"]}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.source_relation"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}, "additional_nationality": {"name": "additional_nationality", "description": "Additional nationality associated with the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.additional_nationality"]}, "blood_type": {"name": "blood_type", "description": "The blood type of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.blood_type"]}, "citizenship_status": {"name": "citizenship_status", "description": "The citizenship status of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.citizenship_status"]}, "city_of_birth": {"name": "city_of_birth", "description": "The city of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.city_of_birth"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.city_of_birth_code"]}, "country_of_birth": {"name": "country_of_birth", "description": "The country of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.country_of_birth"]}, "country_region_of_birth": {"name": "country_region_of_birth", "description": "Country region of birth code (renamed from legacy `region_of_birth_code` in v42.2 API).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.country_region_of_birth"]}, "date_of_birth": {"name": "date_of_birth", "description": "The date of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.date_of_birth"]}, "date_of_death": {"name": "date_of_death", "description": "The date of death of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.date_of_death"]}, "last_medical_exam_date": {"name": "last_medical_exam_date", "description": "The date of the last medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.last_medical_exam_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.last_medical_exam_valid_to"]}, "medical_exam_notes": {"name": "medical_exam_notes", "description": "Notes from the medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.medical_exam_notes"]}, "primary_nationality": {"name": "primary_nationality", "description": "The primary nationality of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.primary_nationality"]}, "region_of_birth": {"name": "region_of_birth", "description": "The region of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.region_of_birth"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "ephemeral", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1781284401.6675262, "relation_name": null, "raw_code": "with base as (\n\n select *\n from {{ ref('stg_workday__personal_information_common_data_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_common_data_base')),\n staging_columns=get_personal_information_common_data_columns()\n )\n }}\n {{ fivetran_utils.apply_source_relation(package_name='workday') }}\n from base\n),\n\nfinal as (\n\n select\n fivetran_id,\n 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 country_region_of_birth,\n date_of_birth,\n date_of_death,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n medical_exam_notes,\n primary_nationality,\n region_of_birth\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "doc_blocks": ["doc.workday.personal_information_common_data"], "language": "sql", "refs": [{"name": "stg_workday__personal_information_common_data_base", "package": null, "version": null}, {"name": "stg_workday__personal_information_common_data_base", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.workday.get_personal_information_common_data_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.apply_source_relation"], "nodes": ["model.workday.stg_workday__personal_information_common_data_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__personal_information_common_data.sql", "compiled": true, "compiled_code": "with base as (\n\n select *\n from \"postgres\".\"public_workday_dev\".\"stg_workday__personal_information_common_data_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_synced as _fivetran_synced,\n _fivetran_deleted as _fivetran_deleted,\n fivetran_id as fivetran_id,\n worker_id as worker_id,\n additional_nationality as additional_nationality,\n blood_type as blood_type,\n citizenship_status as citizenship_status,\n city_of_birth as city_of_birth,\n city_of_birth_code as city_of_birth_code,\n country_of_birth as country_of_birth,\n country_region_of_birth as country_region_of_birth,\n date_of_birth as date_of_birth,\n date_of_death as date_of_death,\n last_medical_exam_date as last_medical_exam_date,\n last_medical_exam_valid_to as last_medical_exam_valid_to,\n medical_exam_notes as medical_exam_notes,\n primary_nationality as primary_nationality,\n region_of_birth as region_of_birth\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n from base\n),\n\nfinal as (\n\n select\n fivetran_id,\n 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 country_region_of_birth,\n date_of_birth,\n date_of_death,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n medical_exam_notes,\n primary_nationality,\n region_of_birth\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, "primary_key": [], "time_spine": null}, "model.workday.stg_workday__person_contact_email_address": {"database": "postgres", "schema": "public_workday_dev", "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": "455a122a54e41f72e31d1af366c9d6e242e2e8c27b5e3669471961809d25ed02"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.source_relation"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.person_contact_email_address_id"]}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.worker_id"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}, "email_address": {"name": "email_address", "description": "The actual email address of the person.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.email_address"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.email_code"]}, "email_comment": {"name": "email_comment", "description": "Any additional comments or notes related to the email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.email_comment"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "ephemeral", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1781284401.675861, "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.apply_source_relation(package_name='workday') }}\n 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", "doc_blocks": ["doc.workday.person_contact_email_address"], "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": [], "functions": [], "depends_on": {"macros": ["macro.workday.get_person_contact_email_address_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.apply_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\".\"public_workday_dev\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n email_address as email_address,\n email_code as email_code,\n email_comment as email_comment,\n id as id,\n personal_info_system_id as personal_info_system_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n 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, "primary_key": [], "time_spine": null}, "model.workday.stg_workday__job_family": {"database": "postgres", "schema": "public_workday_dev", "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": "905255e3c40eba1e143a445a53187f9f831b2f9744f3178b67a7e5b9d6ae90cb"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.source_relation"]}, "job_family_id": {"name": "job_family_id", "description": "Identifier for the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_family_id"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.effective_date"]}, "is_inactive": {"name": "is_inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.inactive"]}, "job_family_code": {"name": "job_family_code", "description": "Code assigned to the job family", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_family_code"]}, "job_family_summary": {"name": "job_family_summary", "description": "The summary of the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_family_summary"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "ephemeral", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1781284401.621393, "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.apply_source_relation(package_name='workday') }}\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", "doc_blocks": ["doc.workday.job_family"], "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": [], "functions": [], "depends_on": {"macros": ["macro.workday.get_job_family_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.apply_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\".\"public_workday_dev\".\"stg_workday__job_family_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n effective_date as effective_date,\n id as id,\n inactive as inactive,\n job_family_code as job_family_code,\n summary as summary\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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, "primary_key": [], "time_spine": null}, "model.workday.stg_workday__position_organization": {"database": "postgres", "schema": "public_workday_dev", "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": "5db69d1b44f45b15968d113ac89a48ca91629f8843a7161163e45c39f7feba50"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.source_relation"]}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.organization_id"]}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.position_id"]}, "type": {"name": "type", "description": "Type or category of the position within the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.position_organization_type"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "ephemeral", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1781284401.6443639, "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.apply_source_relation(package_name='workday') }}\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", "doc_blocks": ["doc.workday.position_organization"], "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": [], "functions": [], "depends_on": {"macros": ["macro.workday.get_position_organization_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.apply_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\".\"public_workday_dev\".\"stg_workday__position_organization_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n organization_id as organization_id,\n position_id as position_id,\n type as type\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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, "primary_key": [], "time_spine": null}, "model.workday.stg_workday__organization": {"database": "postgres", "schema": "public_workday_dev", "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": "08f48c9820c563e483d8cfd5b9f6d6bcbff37f9ca20a0f30c2df04f97e9c964b"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.source_relation"]}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.organization_id"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}, "availability_date": {"name": "availability_date", "description": "Date when the organization becomes available.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.availability_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.available_for_hire"]}, "code": {"name": "code", "description": "Code assigned to the organization for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.code"]}, "organization_description": {"name": "organization_description", "description": "The description of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.organization_description"]}, "external_url": {"name": "external_url", "description": "External URL associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.external_url"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hiring_freeze"]}, "is_inactive": {"name": "is_inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.inactive"]}, "inactive_date": {"name": "inactive_date", "description": "Date when the organization becomes inactive", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.inactive_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.include_manager_in_name"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.include_organization_code_in_name"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.last_updated_date_time"]}, "organization_location": {"name": "organization_location", "description": "The location of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.organization_location"]}, "manager_id": {"name": "manager_id", "description": "Identifier for the manager associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.manager_id"]}, "organization_name": {"name": "organization_name", "description": "Name of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.organization_name"]}, "organization_code": {"name": "organization_code", "description": "Code associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.organization_code"]}, "organization_owner_id": {"name": "organization_owner_id", "description": "Identifier for the owner of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.organization_owner_id"]}, "staffing_model": {"name": "staffing_model", "description": "Staffing model associated with the organization", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.staffing_model"]}, "organization_sub_type": {"name": "organization_sub_type", "description": "Subtype or classification of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.organization_sub_type"]}, "superior_organization_id": {"name": "superior_organization_id", "description": "Identifier for the superior organization, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.superior_organization_id"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.supervisory_position_availability_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.supervisory_position_earliest_hire_date"]}, "supervisory_position_time_type": {"name": "supervisory_position_time_type", "description": "Time type associated with supervisory positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.supervisory_position_time_type"]}, "supervisory_position_worker_type": {"name": "supervisory_position_worker_type", "description": "Worker type associated with supervisory positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.supervisory_position_worker_type"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.top_level_organization_id"]}, "organization_type": {"name": "organization_type", "description": "Type or category of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.organization_type"]}, "visibility": {"name": "visibility", "description": "Visibility level of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.visibility"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "ephemeral", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1781284401.6434484, "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.apply_source_relation(package_name='workday') }}\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", "doc_blocks": ["doc.workday.organization"], "language": "sql", "refs": [{"name": "stg_workday__organization_base", "package": null, "version": null}, {"name": "stg_workday__organization_base", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.workday.get_organization_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.apply_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\".\"public_workday_dev\".\"stg_workday__organization_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n availability_date as availability_date,\n available_for_hire as available_for_hire,\n code as code,\n description as description,\n external_url as external_url,\n hiring_freeze as hiring_freeze,\n id as id,\n inactive as inactive,\n inactive_date as inactive_date,\n include_manager_in_name as include_manager_in_name,\n include_organization_code_in_name as include_organization_code_in_name,\n last_updated_date_time as last_updated_date_time,\n location as location,\n manager_id as manager_id,\n name as name,\n organization_code as organization_code,\n organization_owner_id as organization_owner_id,\n staffing_model as staffing_model,\n sub_type as sub_type,\n superior_organization_id as superior_organization_id,\n supervisory_position_availability_date as supervisory_position_availability_date,\n supervisory_position_earliest_hire_date as supervisory_position_earliest_hire_date,\n supervisory_position_time_type as supervisory_position_time_type,\n supervisory_position_worker_type as supervisory_position_worker_type,\n top_level_organization_id as top_level_organization_id,\n type as type,\n visibility as visibility\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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, "primary_key": [], "time_spine": null}, "model.workday.stg_workday__worker_position_organization_base": {"database": "postgres", "schema": "public_workday_dev", "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": "8fb4675078f05d5e0380671b81872e5e621273f17d1a5dd43e51771a56bb8dcd"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "view", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1781284400.8126822, "relation_name": "\"postgres\".\"public_workday_dev\".\"stg_workday__worker_position_organization_base\"", "raw_code": "{% if var('workday_union_schemas', []) | length > 0 or var('workday_union_databases', []) | length > 0 %}\n\n{{\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}}\n\n{% else %}\n\n{{\n fivetran_utils.union_connections(\n connection_dictionary='workday_sources',\n single_source_name='workday',\n single_table_name='worker_position_organization_history'\n )\n}}\n\n{% endif %}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["workday", "worker_position_organization_history"], ["workday", "worker_position_organization_history"]], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.fivetran_utils.union_connections"], "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-- ** Values passed to adapter.get_relation:\n -- full-identifier_var: workday_worker_position_organization_history_identifier\n -- database: postgres \n -- schema: public\n -- identifier: workday_worker_position_organization_history_data\n\n\n select\n \"_fivetran_start\",\n \"index\",\n \"position_id\",\n \"worker_id\",\n \"_fivetran_active\",\n \"_fivetran_end\",\n \"_fivetran_synced\",\n \"date_of_pay_group_assignment\",\n \"organization_id\",\n \"primary_business_site\",\n \"used_in_change_organization_assignments\"\n , 'postgres.public' as _dbt_source_relation\n from \"postgres\".\"public\".\"workday_worker_position_organization_history_data\" as source_table\n\n \n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.workday.stg_workday__country_personal_information_base": {"database": "postgres", "schema": "public_workday_dev", "name": "stg_workday__country_personal_information_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__country_personal_information_base.sql", "original_file_path": "models/staging/base/stg_workday__country_personal_information_base.sql", "unique_id": "model.workday.stg_workday__country_personal_information_base", "fqn": ["workday", "staging", "base", "stg_workday__country_personal_information_base"], "alias": "stg_workday__country_personal_information_base", "checksum": {"name": "sha256", "checksum": "b727ab58305d1f732a51feb1182b1df1b24aabfd62f71a68cdbe2445b16008ef"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "view", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1781284400.8403225, "relation_name": "\"postgres\".\"public_workday_dev\".\"stg_workday__country_personal_information_base\"", "raw_code": "{% if var('workday_union_schemas', []) | length > 0 or var('workday_union_databases', []) | length > 0 %}\n\n{{\n fivetran_utils.union_data(\n table_identifier='country_personal_information',\n database_variable='workday_database',\n schema_variable='workday_schema',\n default_database=target.database,\n default_schema='workday',\n default_variable='country_personal_information',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}\n\n{% else %}\n\n{{\n fivetran_utils.union_connections(\n connection_dictionary='workday_sources',\n single_source_name='workday',\n single_table_name='country_personal_information'\n )\n}}\n\n{% endif %}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["workday", "country_personal_information"], ["workday", "country_personal_information"]], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.fivetran_utils.union_connections"], "nodes": ["source.workday.workday.country_personal_information"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__country_personal_information_base.sql", "compiled": true, "compiled_code": "\n\n\n\n\n-- ** Values passed to adapter.get_relation:\n -- full-identifier_var: workday_country_personal_information_identifier\n -- database: postgres \n -- schema: public\n -- identifier: workday_country_personal_information_data\n\n\n select\n \"fivetran_id\",\n \"personal_info_common_id\",\n \"country_code\",\n \"_fivetran_synced\",\n \"_fivetran_deleted\",\n \"gender\",\n \"hispanic_or_latino\",\n \"hukou_locality\",\n \"hukou_postal_code\",\n \"hukou_region_code\",\n \"hukou_subregion_code\",\n \"hukou_type_code\",\n \"local_hukou\",\n \"marital_status\",\n \"marital_status_date\",\n \"native_region_code\",\n \"native_region\",\n \"personnel_file_agency_for_person\",\n \"political_affiliation\",\n \"religion\",\n \"social_benefits_locality\"\n , 'postgres.public' as _dbt_source_relation\n from \"postgres\".\"public\".\"workday_country_personal_information_data\" as source_table\n\n \n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.workday.stg_workday__position_organization_base": {"database": "postgres", "schema": "public_workday_dev", "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": "6255bc9e4181741a97a59337041166cc95ee6131b3d562bf2b2d4d5d7bf531c8"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "view", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1781284400.8506045, "relation_name": "\"postgres\".\"public_workday_dev\".\"stg_workday__position_organization_base\"", "raw_code": "{% if var('workday_union_schemas', []) | length > 0 or var('workday_union_databases', []) | length > 0 %}\n\n{{\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}}\n\n{% else %}\n\n{{\n fivetran_utils.union_connections(\n connection_dictionary='workday_sources',\n single_source_name='workday',\n single_table_name='position_organization'\n )\n}}\n\n{% endif %}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["workday", "position_organization"], ["workday", "position_organization"]], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.fivetran_utils.union_connections"], "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-- ** Values passed to adapter.get_relation:\n -- full-identifier_var: workday_position_organization_identifier\n -- database: postgres \n -- schema: public\n -- identifier: workday_position_organization_data\n\n\n select\n \"organization_id\",\n \"position_id\",\n \"type\",\n \"_fivetran_deleted\",\n \"_fivetran_synced\",\n \"_fivetran_active\",\n \"_fivetran_start\",\n \"_fivetran_end\"\n , 'postgres.public' as _dbt_source_relation\n from \"postgres\".\"public\".\"workday_position_organization_data\" as source_table\n\n \n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.workday.stg_workday__job_family_job_profile_base": {"database": "postgres", "schema": "public_workday_dev", "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": "152c3630d55fea360ea898507ef4c17077217572a76af557486dec979e2a9e29"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "view", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1781284400.860641, "relation_name": "\"postgres\".\"public_workday_dev\".\"stg_workday__job_family_job_profile_base\"", "raw_code": "{% if var('workday_union_schemas', []) | length > 0 or var('workday_union_databases', []) | length > 0 %}\n\n{{\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}}\n\n{% else %}\n\n{{\n fivetran_utils.union_connections(\n connection_dictionary='workday_sources',\n single_source_name='workday',\n single_table_name='job_family_job_profile'\n )\n}}\n\n{% endif %}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["workday", "job_family_job_profile"], ["workday", "job_family_job_profile"]], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.fivetran_utils.union_connections"], "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-- ** Values passed to adapter.get_relation:\n -- full-identifier_var: workday_job_family_job_profile_identifier\n -- database: postgres \n -- schema: public\n -- identifier: workday_job_family_job_profile_data\n\n\n select\n \"job_family_id\",\n \"job_profile_id\",\n \"_fivetran_deleted\",\n \"_fivetran_synced\"\n , 'postgres.public' as _dbt_source_relation\n from \"postgres\".\"public\".\"workday_job_family_job_profile_data\" as source_table\n\n \n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.workday.stg_workday__organization_role_worker_base": {"database": "postgres", "schema": "public_workday_dev", "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": "adc863a149df96e9d0a08ef87705639547ef625f3442563bf01ea138ba95b00a"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "view", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1781284400.8706107, "relation_name": "\"postgres\".\"public_workday_dev\".\"stg_workday__organization_role_worker_base\"", "raw_code": "{% if var('workday_union_schemas', []) | length > 0 or var('workday_union_databases', []) | length > 0 %}\n\n{{\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}}\n\n{% else %}\n\n{{\n fivetran_utils.union_connections(\n connection_dictionary='workday_sources',\n single_source_name='workday',\n single_table_name='organization_role_worker'\n )\n}}\n\n{% endif %}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["workday", "organization_role_worker"], ["workday", "organization_role_worker"]], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.fivetran_utils.union_connections"], "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-- ** Values passed to adapter.get_relation:\n -- full-identifier_var: workday_organization_role_worker_identifier\n -- database: postgres \n -- schema: public\n -- identifier: workday_organization_role_worker_data\n\n\n select\n \"associated_worker_id\",\n \"organization_id\",\n \"role_id\",\n \"_fivetran_deleted\",\n \"_fivetran_synced\"\n , 'postgres.public' as _dbt_source_relation\n from \"postgres\".\"public\".\"workday_organization_role_worker_data\" as source_table\n\n \n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.workday.stg_workday__organization_base": {"database": "postgres", "schema": "public_workday_dev", "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": "ea8672f9519f4eeab1036b11e1a9b551cc45ce7c8cd1ed62f6090ff799ae5a3b"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "view", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1781284400.8807666, "relation_name": "\"postgres\".\"public_workday_dev\".\"stg_workday__organization_base\"", "raw_code": "{% if var('workday_union_schemas', []) | length > 0 or var('workday_union_databases', []) | length > 0 %}\n\n{{\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}}\n\n{% else %}\n\n{{\n fivetran_utils.union_connections(\n connection_dictionary='workday_sources',\n single_source_name='workday',\n single_table_name='organization'\n )\n}}\n\n{% endif %}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["workday", "organization"], ["workday", "organization"]], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.fivetran_utils.union_connections"], "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-- ** Values passed to adapter.get_relation:\n -- full-identifier_var: workday_organization_identifier\n -- database: postgres \n -- schema: public\n -- identifier: workday_organization_data\n\n\n select\n \"id\",\n \"_fivetran_deleted\",\n \"_fivetran_synced\",\n \"availability_date\",\n \"available_for_hire\",\n \"code\",\n \"description\",\n \"external_url\",\n \"hiring_freeze\",\n \"inactive\",\n \"inactive_date\",\n \"include_manager_in_name\",\n \"include_organization_code_in_name\",\n \"last_updated_date_time\",\n \"location\",\n \"manager_id\",\n \"name\",\n \"organization_code\",\n \"organization_owner_id\",\n \"staffing_model\",\n \"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\",\n \"visibility\"\n , 'postgres.public' as _dbt_source_relation\n from \"postgres\".\"public\".\"workday_organization_data\" as source_table\n\n \n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.workday.stg_workday__worker_position_base": {"database": "postgres", "schema": "public_workday_dev", "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": "ff511a863283db5a77889839759c0875a54fd99843abe97a00a14b165026e935"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "view", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1781284400.892252, "relation_name": "\"postgres\".\"public_workday_dev\".\"stg_workday__worker_position_base\"", "raw_code": "{% if var('workday_union_schemas', []) | length > 0 or var('workday_union_databases', []) | length > 0 %}\n\n{{\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}}\n\n{% else %}\n\n{{\n fivetran_utils.union_connections(\n connection_dictionary='workday_sources',\n single_source_name='workday',\n single_table_name='worker_position_history'\n )\n}}\n\n{% endif %}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["workday", "worker_position_history"], ["workday", "worker_position_history"]], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.fivetran_utils.union_connections"], "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-- ** Values passed to adapter.get_relation:\n -- full-identifier_var: workday_worker_position_history_identifier\n -- database: postgres \n -- schema: public\n -- identifier: workday_worker_position_history_data\n\n\n select\n \"position_id\",\n \"worker_id\",\n \"_fivetran_active\",\n \"_fivetran_start\",\n \"_fivetran_end\",\n \"_fivetran_deleted\",\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 \"effective_date\",\n \"employee_type\",\n \"end_date\",\n \"end_employment_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 \"home_country\",\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 , 'postgres.public' as _dbt_source_relation\n from \"postgres\".\"public\".\"workday_worker_position_history_data\" as source_table\n\n \n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.workday.stg_workday__position_base": {"database": "postgres", "schema": "public_workday_dev", "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": "679ee677d1044dbd90f23f814884da57d73b63af6efdc4b7d5d249f7b1dd6d38"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "view", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1781284400.9024062, "relation_name": "\"postgres\".\"public_workday_dev\".\"stg_workday__position_base\"", "raw_code": "{% if var('workday_union_schemas', []) | length > 0 or var('workday_union_databases', []) | length > 0 %}\n\n{{\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}}\n\n{% else %}\n\n{{\n fivetran_utils.union_connections(\n connection_dictionary='workday_sources',\n single_source_name='workday',\n single_table_name='position'\n )\n}}\n\n{% endif %}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["workday", "position"], ["workday", "position"]], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.fivetran_utils.union_connections"], "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-- ** Values passed to adapter.get_relation:\n -- full-identifier_var: workday_position_identifier\n -- database: postgres \n -- schema: public\n -- identifier: workday_position_data\n\n\n select\n \"id\",\n \"_fivetran_deleted\",\n \"_fivetran_synced\",\n \"academic_tenure_eligible\",\n \"availability_date\",\n \"available_for_hire\",\n \"available_for_overlap\",\n \"available_for_recruiting\",\n \"closed\",\n \"compensation_grade_code\",\n \"compensation_grade_profile_code\",\n \"compensation_package_code\",\n \"compensation_step_code\",\n \"critical_job\",\n \"difficulty_to_fill_code\",\n \"earliest_hire_date\",\n \"earliest_overlap_date\",\n \"effective_date\",\n \"hiring_freeze\",\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\",\n \"worker_for_filled_position_id\",\n \"worker_position_id\",\n \"worker_type_code\"\n , 'postgres.public' as _dbt_source_relation\n from \"postgres\".\"public\".\"workday_position_data\" as source_table\n\n \n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.workday.stg_workday__job_family_job_family_group_base": {"database": "postgres", "schema": "public_workday_dev", "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": "36b48a4176b09a6dcc94ceb4c11b934a76b74e4fe3ace0da51ad35bd4dc65dbf"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "view", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1781284400.9125404, "relation_name": "\"postgres\".\"public_workday_dev\".\"stg_workday__job_family_job_family_group_base\"", "raw_code": "{% if var('workday_union_schemas', []) | length > 0 or var('workday_union_databases', []) | length > 0 %}\n\n{{\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}}\n\n{% else %}\n\n{{\n fivetran_utils.union_connections(\n connection_dictionary='workday_sources',\n single_source_name='workday',\n single_table_name='job_family_job_family_group'\n )\n}}\n\n{% endif %}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["workday", "job_family_job_family_group"], ["workday", "job_family_job_family_group"]], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.fivetran_utils.union_connections"], "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-- ** Values passed to adapter.get_relation:\n -- full-identifier_var: workday_job_family_job_family_group_identifier\n -- database: postgres \n -- schema: public\n -- identifier: workday_job_family_job_family_group_data\n\n\n select\n \"job_family_group_id\",\n \"job_family_id\",\n \"_fivetran_deleted\",\n \"_fivetran_synced\"\n , 'postgres.public' as _dbt_source_relation\n from \"postgres\".\"public\".\"workday_job_family_job_family_group_data\" as source_table\n\n \n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.workday.stg_workday__personal_information_ethnicity_base": {"database": "postgres", "schema": "public_workday_dev", "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": "fc3dc3800dba472b583b6dbb542fd0ed19a2ca70f9c571364be055b981990522"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "view", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1781284400.922718, "relation_name": "\"postgres\".\"public_workday_dev\".\"stg_workday__personal_information_ethnicity_base\"", "raw_code": "{% if var('workday_union_schemas', []) | length > 0 or var('workday_union_databases', []) | length > 0 %}\n\n{{\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}}\n\n{% else %}\n\n{{\n fivetran_utils.union_connections(\n connection_dictionary='workday_sources',\n single_source_name='workday',\n single_table_name='personal_information_ethnicity'\n )\n}}\n\n{% endif %}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["workday", "personal_information_ethnicity"], ["workday", "personal_information_ethnicity"]], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.fivetran_utils.union_connections"], "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-- ** Values passed to adapter.get_relation:\n -- full-identifier_var: workday_personal_information_ethnicity_identifier\n -- database: postgres \n -- schema: public\n -- identifier: workday_personal_information_ethnicity_data\n\n\n select\n \"_fivetran_deleted\",\n \"_fivetran_synced\",\n \"id\",\n \"country_personal_information_id\",\n \"ethnicity_code\"\n , 'postgres.public' as _dbt_source_relation\n from \"postgres\".\"public\".\"workday_personal_information_ethnicity_data\" as source_table\n\n \n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.workday.stg_workday__organization_role_base": {"database": "postgres", "schema": "public_workday_dev", "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": "13731bc5d96ecbfd9b9b2dfbd7cf2232bc8558bbfd6f2668ae9bf4d6437dccca"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "view", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1781284401.0387595, "relation_name": "\"postgres\".\"public_workday_dev\".\"stg_workday__organization_role_base\"", "raw_code": "{% if var('workday_union_schemas', []) | length > 0 or var('workday_union_databases', []) | length > 0 %}\n\n{{\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}}\n\n{% else %}\n\n{{\n fivetran_utils.union_connections(\n connection_dictionary='workday_sources',\n single_source_name='workday',\n single_table_name='organization_role'\n )\n}}\n\n{% endif %}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["workday", "organization_role"], ["workday", "organization_role"]], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.fivetran_utils.union_connections"], "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-- ** Values passed to adapter.get_relation:\n -- full-identifier_var: workday_organization_role_identifier\n -- database: postgres \n -- schema: public\n -- identifier: workday_organization_role_data\n\n\n select\n \"organization_id\",\n \"role_id\",\n \"_fivetran_deleted\",\n \"_fivetran_synced\",\n \"organization_role_code\"\n , 'postgres.public' as _dbt_source_relation\n from \"postgres\".\"public\".\"workday_organization_role_data\" as source_table\n\n \n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.workday.stg_workday__worker_base": {"database": "postgres", "schema": "public_workday_dev", "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": "4d51c6e6d9a4b6262396ef97bc56c5a86efd124a9a736da1bf59a12c62439145"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "view", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1781284401.049488, "relation_name": "\"postgres\".\"public_workday_dev\".\"stg_workday__worker_base\"", "raw_code": "{% if var('workday_union_schemas', []) | length > 0 or var('workday_union_databases', []) | length > 0 %}\n\n{{\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}}\n\n{% else %}\n\n{{\n fivetran_utils.union_connections(\n connection_dictionary='workday_sources',\n single_source_name='workday',\n single_table_name='worker_history'\n )\n}}\n\n{% endif %}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["workday", "worker_history"], ["workday", "worker_history"]], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.fivetran_utils.union_connections"], "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-- ** Values passed to adapter.get_relation:\n -- full-identifier_var: workday_worker_history_identifier\n -- database: postgres \n -- schema: public\n -- identifier: workday_worker_history_data\n\n\n select\n \"id\",\n \"_fivetran_active\",\n \"_fivetran_start\",\n \"_fivetran_end\",\n \"_fivetran_deleted\",\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 \"end_employment_date\",\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 \"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\",\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_date\",\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 , 'postgres.public' as _dbt_source_relation\n from \"postgres\".\"public\".\"workday_worker_history_data\" as source_table\n\n \n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.workday.stg_workday__job_family_base": {"database": "postgres", "schema": "public_workday_dev", "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": "cb84ca2a5e3f1f77713a9f5050fcc5b797e3ddde03421393569e6406ff80496c"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "view", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1781284401.0598404, "relation_name": "\"postgres\".\"public_workday_dev\".\"stg_workday__job_family_base\"", "raw_code": "{% if var('workday_union_schemas', []) | length > 0 or var('workday_union_databases', []) | length > 0 %}\n\n{{\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}}\n\n{% else %}\n\n{{\n fivetran_utils.union_connections(\n connection_dictionary='workday_sources',\n single_source_name='workday',\n single_table_name='job_family'\n )\n}}\n\n{% endif %}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["workday", "job_family"], ["workday", "job_family"]], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.fivetran_utils.union_connections"], "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-- ** Values passed to adapter.get_relation:\n -- full-identifier_var: workday_job_family_identifier\n -- database: postgres \n -- schema: public\n -- identifier: workday_job_family_data\n\n\n select\n \"id\",\n \"_fivetran_deleted\",\n \"_fivetran_synced\",\n \"effective_date\",\n \"inactive\",\n \"job_family_code\",\n \"summary\"\n , 'postgres.public' as _dbt_source_relation\n from \"postgres\".\"public\".\"workday_job_family_data\" as source_table\n\n \n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.workday.stg_workday__job_profile_base": {"database": "postgres", "schema": "public_workday_dev", "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": "f656188f696d9cee40d74a21c4232e47e8ede07b1bc86cadef233a13597ca6b6"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "view", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1781284401.069653, "relation_name": "\"postgres\".\"public_workday_dev\".\"stg_workday__job_profile_base\"", "raw_code": "{% if var('workday_union_schemas', []) | length > 0 or var('workday_union_databases', []) | length > 0 %}\n\n{{\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}}\n\n{% else %}\n\n{{\n fivetran_utils.union_connections(\n connection_dictionary='workday_sources',\n single_source_name='workday',\n single_table_name='job_profile'\n )\n}}\n\n{% endif %}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["workday", "job_profile"], ["workday", "job_profile"]], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.fivetran_utils.union_connections"], "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-- ** Values passed to adapter.get_relation:\n -- full-identifier_var: workday_job_profile_identifier\n -- database: postgres \n -- schema: public\n -- identifier: workday_job_profile_data\n\n\n select\n \"id\",\n \"_fivetran_deleted\",\n \"_fivetran_synced\",\n \"additional_job_description\",\n \"compensation_grade_id\",\n \"critical_job\",\n \"description\",\n \"difficulty_to_fill\",\n \"effective_date\",\n \"inactive\",\n \"include_job_code_in_name\",\n \"job_category_id\",\n \"job_profile_code\",\n \"level\",\n \"management_level\",\n \"private_title\",\n \"public_job\",\n \"referral_payment_plan\",\n \"summary\",\n \"title\",\n \"union_code\",\n \"union_membership_requirement\",\n \"work_shift_required\",\n \"work_study_award_source_code\",\n \"work_study_requirement_option_code\"\n , 'postgres.public' as _dbt_source_relation\n from \"postgres\".\"public\".\"workday_job_profile_data\" as source_table\n\n \n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.workday.stg_workday__organization_job_family_base": {"database": "postgres", "schema": "public_workday_dev", "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": "a556a2aa788ac4eb7c1d7a497ad0b0a48a4c0d67a15a11f9b1d624250d3a6c7e"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "view", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1781284401.0795689, "relation_name": "\"postgres\".\"public_workday_dev\".\"stg_workday__organization_job_family_base\"", "raw_code": "{% if var('workday_union_schemas', []) | length > 0 or var('workday_union_databases', []) | length > 0 %}\n\n{{\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}}\n\n{% else %}\n\n{{\n fivetran_utils.union_connections(\n connection_dictionary='workday_sources',\n single_source_name='workday',\n single_table_name='organization_job_family'\n )\n}}\n\n{% endif %}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["workday", "organization_job_family"], ["workday", "organization_job_family"]], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.fivetran_utils.union_connections"], "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-- ** Values passed to adapter.get_relation:\n -- full-identifier_var: workday_organization_job_family_identifier\n -- database: postgres \n -- schema: public\n -- identifier: workday_organization_job_family_data\n\n\n select\n \"job_family_id\",\n \"organization_id\",\n \"_fivetran_deleted\",\n \"_fivetran_synced\",\n \"job_family_group_id\"\n , 'postgres.public' as _dbt_source_relation\n from \"postgres\".\"public\".\"workday_organization_job_family_data\" as source_table\n\n \n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.workday.stg_workday__position_job_profile_base": {"database": "postgres", "schema": "public_workday_dev", "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": "544df3e1a931f119868d0b3bd9362f07c90b29d7d190472e4e9ffc9cc26a38ed"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "view", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1781284401.0912552, "relation_name": "\"postgres\".\"public_workday_dev\".\"stg_workday__position_job_profile_base\"", "raw_code": "{% if var('workday_union_schemas', []) | length > 0 or var('workday_union_databases', []) | length > 0 %}\n\n{{\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}}\n\n{% else %}\n\n{{\n fivetran_utils.union_connections(\n connection_dictionary='workday_sources',\n single_source_name='workday',\n single_table_name='position_job_profile'\n )\n}}\n\n{% endif %}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["workday", "position_job_profile"], ["workday", "position_job_profile"]], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.fivetran_utils.union_connections"], "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-- ** Values passed to adapter.get_relation:\n -- full-identifier_var: workday_position_job_profile_identifier\n -- database: postgres \n -- schema: public\n -- identifier: workday_position_job_profile_data\n\n\n select\n \"job_profile_id\",\n \"position_id\",\n \"_fivetran_deleted\",\n \"_fivetran_synced\",\n \"difficulty_to_fill_code\",\n \"is_critical_job\",\n \"job_category_code\",\n \"management_level_code\",\n \"name\",\n \"work_shift_required\"\n , 'postgres.public' as _dbt_source_relation\n from \"postgres\".\"public\".\"workday_position_job_profile_data\" as source_table\n\n \n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.workday.stg_workday__worker_leave_status_base": {"database": "postgres", "schema": "public_workday_dev", "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": "bdf032e8ad46151ffe75d51e7f1b5f8f8dcb9565faa0c7ab57371fa24d42aaa9"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "view", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1781284401.1015444, "relation_name": "\"postgres\".\"public_workday_dev\".\"stg_workday__worker_leave_status_base\"", "raw_code": "{% if var('workday_union_schemas', []) | length > 0 or var('workday_union_databases', []) | length > 0 %}\n\n{{\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}}\n\n{% else %}\n\n{{\n fivetran_utils.union_connections(\n connection_dictionary='workday_sources',\n single_source_name='workday',\n single_table_name='worker_leave_status'\n )\n}}\n\n{% endif %}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["workday", "worker_leave_status"], ["workday", "worker_leave_status"]], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.fivetran_utils.union_connections"], "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-- ** Values passed to adapter.get_relation:\n -- full-identifier_var: workday_worker_leave_status_identifier\n -- database: postgres \n -- schema: public\n -- identifier: workday_worker_leave_status_data\n\n\n select\n \"leave_request_event_id\",\n \"worker_id\",\n \"_fivetran_deleted\",\n \"_fivetran_synced\",\n \"adoption_notification_date\",\n \"adoption_placement_date\",\n \"age_of_dependent\",\n \"benefits_effect\",\n \"caesarean_section_birth\",\n \"child_birth_date\",\n \"child_sdate_of_death\",\n \"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_return_event\",\n \"leave_start_date\",\n \"leave_status_code\",\n \"leave_type_reason\",\n \"location_during_leave\",\n \"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\",\n \"paid_time_off_accrual_effect\",\n \"payroll_effect\",\n \"single_parent_indicator\",\n \"social_security_disability_code\",\n \"stillbirth_baby_deceased\",\n \"stock_vesting_effect\",\n \"stop_payment_date\",\n \"week_of_confinement\",\n \"work_related\"\n , 'postgres.public' as _dbt_source_relation\n from \"postgres\".\"public\".\"workday_worker_leave_status_data\" as source_table\n\n \n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.workday.stg_workday__military_service_base": {"database": "postgres", "schema": "public_workday_dev", "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": "0002104a3226b80242fa760d60fcd83988a97f9b768f1a099413a48c336fa6fe"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "view", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1781284401.111567, "relation_name": "\"postgres\".\"public_workday_dev\".\"stg_workday__military_service_base\"", "raw_code": "{% if var('workday_union_schemas', []) | length > 0 or var('workday_union_databases', []) | length > 0 %}\n\n{{\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}}\n\n{% else %}\n\n{{\n fivetran_utils.union_connections(\n connection_dictionary='workday_sources',\n single_source_name='workday',\n single_table_name='military_service'\n )\n}}\n\n{% endif %}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["workday", "military_service"], ["workday", "military_service"]], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.fivetran_utils.union_connections"], "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-- ** Values passed to adapter.get_relation:\n -- full-identifier_var: workday_military_service_identifier\n -- database: postgres \n -- schema: public\n -- identifier: workday_military_service_data\n\n\n select\n \"_fivetran_deleted\",\n \"_fivetran_synced\",\n \"personal_info_common_id\",\n \"discharge_date\",\n \"discharge_type\",\n \"notes\",\n \"rank\",\n \"service\",\n \"status_id\",\n \"status_begin_date\"\n , 'postgres.public' as _dbt_source_relation\n from \"postgres\".\"public\".\"workday_military_service_data\" as source_table\n\n \n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.workday.stg_workday__job_family_group_base": {"database": "postgres", "schema": "public_workday_dev", "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": "1ea1a8a3c0232805dda078ee00fc1c01c35571d1d6cd5bd484f00a4f09f7aa81"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "view", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1781284401.1219056, "relation_name": "\"postgres\".\"public_workday_dev\".\"stg_workday__job_family_group_base\"", "raw_code": "{% if var('workday_union_schemas', []) | length > 0 or var('workday_union_databases', []) | length > 0 %}\n\n{{\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}}\n\n{% else %}\n\n{{\n fivetran_utils.union_connections(\n connection_dictionary='workday_sources',\n single_source_name='workday',\n single_table_name='job_family_group'\n )\n}}\n\n{% endif %}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["workday", "job_family_group"], ["workday", "job_family_group"]], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.fivetran_utils.union_connections"], "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-- ** Values passed to adapter.get_relation:\n -- full-identifier_var: workday_job_family_group_identifier\n -- database: postgres \n -- schema: public\n -- identifier: workday_job_family_group_data\n\n\n select\n \"id\",\n \"_fivetran_deleted\",\n \"_fivetran_synced\",\n \"effective_date\",\n \"inactive\",\n \"job_family_group_code\",\n \"summary\"\n , 'postgres.public' as _dbt_source_relation\n from \"postgres\".\"public\".\"workday_job_family_group_data\" as source_table\n\n \n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.workday.stg_workday__personal_information_base": {"database": "postgres", "schema": "public_workday_dev", "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": "91692a48e5d1363b008fd67ecbad8bc34018f58f184834b2e0a139f3d09006aa"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "view", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1781284401.133477, "relation_name": "\"postgres\".\"public_workday_dev\".\"stg_workday__personal_information_base\"", "raw_code": "{% if var('workday_union_schemas', []) | length > 0 or var('workday_union_databases', []) | length > 0 %}\n\n{{\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}}\n\n{% else %}\n\n{{\n fivetran_utils.union_connections(\n connection_dictionary='workday_sources',\n single_source_name='workday',\n single_table_name='personal_information_history'\n )\n}}\n\n{% endif %}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["workday", "personal_information_history"], ["workday", "personal_information_history"]], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.fivetran_utils.union_connections"], "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-- ** Values passed to adapter.get_relation:\n -- full-identifier_var: workday_personal_information_history_identifier\n -- database: postgres \n -- schema: public\n -- identifier: workday_personal_information_history_data\n\n\n select\n \"id\",\n \"type\",\n \"_fivetran_active\",\n \"_fivetran_start\",\n \"_fivetran_end\",\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 , 'postgres.public' as _dbt_source_relation\n from \"postgres\".\"public\".\"workday_personal_information_history_data\" as source_table\n\n \n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.workday.stg_workday__personal_information_common_data_base": {"database": "postgres", "schema": "public_workday_dev", "name": "stg_workday__personal_information_common_data_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__personal_information_common_data_base.sql", "original_file_path": "models/staging/base/stg_workday__personal_information_common_data_base.sql", "unique_id": "model.workday.stg_workday__personal_information_common_data_base", "fqn": ["workday", "staging", "base", "stg_workday__personal_information_common_data_base"], "alias": "stg_workday__personal_information_common_data_base", "checksum": {"name": "sha256", "checksum": "17e28e50b676452ba33e56513e31b86e6ee7ca1ea711a2422f4ccdd856cd92de"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "view", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1781284401.1438901, "relation_name": "\"postgres\".\"public_workday_dev\".\"stg_workday__personal_information_common_data_base\"", "raw_code": "{% if var('workday_union_schemas', []) | length > 0 or var('workday_union_databases', []) | length > 0 %}\n\n{{\n fivetran_utils.union_data(\n table_identifier='personal_information_common_data',\n database_variable='workday_database',\n schema_variable='workday_schema',\n default_database=target.database,\n default_schema='workday',\n default_variable='personal_information_common_data',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}\n\n{% else %}\n\n{{\n fivetran_utils.union_connections(\n connection_dictionary='workday_sources',\n single_source_name='workday',\n single_table_name='personal_information_common_data'\n )\n}}\n\n{% endif %}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["workday", "personal_information_common_data"], ["workday", "personal_information_common_data"]], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.fivetran_utils.union_connections"], "nodes": ["source.workday.workday.personal_information_common_data"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__personal_information_common_data_base.sql", "compiled": true, "compiled_code": "\n\n\n\n\n-- ** Values passed to adapter.get_relation:\n -- full-identifier_var: workday_personal_information_common_data_identifier\n -- database: postgres \n -- schema: public\n -- identifier: workday_personal_information_common_data_data\n\n\n select\n \"fivetran_id\",\n \"worker_id\",\n \"_fivetran_synced\",\n \"_fivetran_deleted\",\n \"additional_nationality\",\n \"blood_type\",\n \"citizenship_status\",\n \"city_of_birth\",\n \"city_of_birth_code\",\n \"country_of_birth\",\n \"country_region_of_birth\",\n \"date_of_birth\",\n \"date_of_death\",\n \"last_medical_exam_date\",\n \"last_medical_exam_valid_to\",\n \"medical_exam_notes\",\n \"primary_nationality\",\n \"region_of_birth\"\n , 'postgres.public' as _dbt_source_relation\n from \"postgres\".\"public\".\"workday_personal_information_common_data_data\" as source_table\n\n \n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.workday.stg_workday__person_name_base": {"database": "postgres", "schema": "public_workday_dev", "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": "e8222db7d9bd75b00b69b2ca6e6fce6a6418994cf7dfd3f0d81302f266a3f005"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "view", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1781284401.1542964, "relation_name": "\"postgres\".\"public_workday_dev\".\"stg_workday__person_name_base\"", "raw_code": "{% if var('workday_union_schemas', []) | length > 0 or var('workday_union_databases', []) | length > 0 %}\n\n{{\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}}\n\n{% else %}\n\n{{\n fivetran_utils.union_connections(\n connection_dictionary='workday_sources',\n single_source_name='workday',\n single_table_name='person_name'\n )\n}}\n\n{% endif %}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["workday", "person_name"], ["workday", "person_name"]], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.fivetran_utils.union_connections"], "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-- ** Values passed to adapter.get_relation:\n -- full-identifier_var: workday_person_name_identifier\n -- database: postgres \n -- schema: public\n -- identifier: workday_person_name_data\n\n\n select\n \"index\",\n \"personal_info_system_id\",\n \"type\",\n \"_fivetran_deleted\",\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 \"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 , 'postgres.public' as _dbt_source_relation\n from \"postgres\".\"public\".\"workday_person_name_data\" as source_table\n\n \n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.workday.stg_workday__person_contact_email_address_base": {"database": "postgres", "schema": "public_workday_dev", "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": "9e210cc791ae13d554d6c3bff0cc9757de7357a62215c131c0ed531db1c68600"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "view", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1781284401.1649044, "relation_name": "\"postgres\".\"public_workday_dev\".\"stg_workday__person_contact_email_address_base\"", "raw_code": "{% if var('workday_union_schemas', []) | length > 0 or var('workday_union_databases', []) | length > 0 %}\n\n{{\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}}\n\n{% else %}\n\n{{\n fivetran_utils.union_connections(\n connection_dictionary='workday_sources',\n single_source_name='workday',\n single_table_name='person_contact_email_address'\n )\n}}\n\n{% endif %}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["workday", "person_contact_email_address"], ["workday", "person_contact_email_address"]], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.fivetran_utils.union_connections"], "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-- ** Values passed to adapter.get_relation:\n -- full-identifier_var: workday_person_contact_email_address_identifier\n -- database: postgres \n -- schema: public\n -- identifier: workday_person_contact_email_address_data\n\n\n select\n \"id\",\n \"personal_info_system_id\",\n \"_fivetran_deleted\",\n \"_fivetran_synced\",\n \"email_address\",\n \"email_code\",\n \"email_comment\"\n , 'postgres.public' as _dbt_source_relation\n from \"postgres\".\"public\".\"workday_person_contact_email_address_data\" as source_table\n\n \n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.workday.int_workday__worker_details": {"database": "postgres", "schema": "public_workday_dev", "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_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "ephemeral", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1781284401.1772475, "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", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__worker", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n academic_tenure_date as academic_tenure_date,\n active as active,\n active_status_date as active_status_date,\n annual_currency_summary_currency as annual_currency_summary_currency,\n annual_currency_summary_frequency as annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis as annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay as annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances as annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency as annual_summary_currency,\n annual_summary_frequency as annual_summary_frequency,\n annual_summary_primary_compensation_basis as annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay as annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances as annual_summary_total_salary_and_allowances,\n benefits_service_date as benefits_service_date,\n company_service_date as company_service_date,\n compensation_effective_date as compensation_effective_date,\n compensation_grade_id as compensation_grade_id,\n compensation_grade_profile_id as compensation_grade_profile_id,\n continuous_service_date as continuous_service_date,\n contract_assignment_details as contract_assignment_details,\n contract_currency_code as contract_currency_code,\n contract_end_date as contract_end_date,\n contract_frequency_name as contract_frequency_name,\n contract_pay_rate as contract_pay_rate,\n contract_vendor_name as contract_vendor_name,\n date_entered_workforce as date_entered_workforce,\n days_unemployed as days_unemployed,\n eligible_for_hire as eligible_for_hire,\n eligible_for_rehire_on_latest_termination as eligible_for_rehire_on_latest_termination,\n employee_compensation_currency as employee_compensation_currency,\n employee_compensation_frequency as employee_compensation_frequency,\n employee_compensation_primary_compensation_basis as employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay as employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances as employee_compensation_total_salary_and_allowances,\n end_employment_date as end_employment_date,\n expected_date_of_return as expected_date_of_return,\n expected_retirement_date as expected_retirement_date,\n first_day_of_work as first_day_of_work,\n has_international_assignment as has_international_assignment,\n hire_date as hire_date,\n hire_reason as hire_reason,\n hire_rescinded as hire_rescinded,\n home_country as home_country,\n hourly_frequency_currency as hourly_frequency_currency,\n hourly_frequency_frequency as hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis as hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay as hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances as hourly_frequency_total_salary_and_allowances,\n id as id,\n last_datefor_which_paid as last_datefor_which_paid,\n local_termination_reason as local_termination_reason,\n months_continuous_prior_employment as months_continuous_prior_employment,\n not_returning as not_returning,\n original_hire_date as original_hire_date,\n pay_group_frequency_currency as pay_group_frequency_currency,\n pay_group_frequency_frequency as pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis as pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay as pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances as pay_group_frequency_total_salary_and_allowances,\n pay_through_date as pay_through_date,\n primary_termination_category as primary_termination_category,\n primary_termination_reason as primary_termination_reason,\n probation_end_date as probation_end_date,\n probation_start_date as probation_start_date,\n reason_reference_id as reason_reference_id,\n regrettable_termination as regrettable_termination,\n rehire as rehire,\n resignation_date as resignation_date,\n retired as retired,\n retirement_date as retirement_date,\n retirement_eligibility_date as retirement_eligibility_date,\n return_unknown as return_unknown,\n seniority_date as seniority_date,\n severance_date as severance_date,\n terminated as terminated,\n termination_date as termination_date,\n termination_involuntary as termination_involuntary,\n termination_last_day_of_work as termination_last_day_of_work,\n time_off_service_date as time_off_service_date,\n universal_id as universal_id,\n user_id as user_id,\n vesting_date as vesting_date,\n worker_code as worker_code\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n academic_tenure_date as academic_tenure_date,\n active as active,\n active_status_date as active_status_date,\n annual_currency_summary_currency as annual_currency_summary_currency,\n annual_currency_summary_frequency as annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis as annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay as annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances as annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency as annual_summary_currency,\n annual_summary_frequency as annual_summary_frequency,\n annual_summary_primary_compensation_basis as annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay as annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances as annual_summary_total_salary_and_allowances,\n benefits_service_date as benefits_service_date,\n company_service_date as company_service_date,\n compensation_effective_date as compensation_effective_date,\n compensation_grade_id as compensation_grade_id,\n compensation_grade_profile_id as compensation_grade_profile_id,\n continuous_service_date as continuous_service_date,\n contract_assignment_details as contract_assignment_details,\n contract_currency_code as contract_currency_code,\n contract_end_date as contract_end_date,\n contract_frequency_name as contract_frequency_name,\n contract_pay_rate as contract_pay_rate,\n contract_vendor_name as contract_vendor_name,\n date_entered_workforce as date_entered_workforce,\n days_unemployed as days_unemployed,\n eligible_for_hire as eligible_for_hire,\n eligible_for_rehire_on_latest_termination as eligible_for_rehire_on_latest_termination,\n employee_compensation_currency as employee_compensation_currency,\n employee_compensation_frequency as employee_compensation_frequency,\n employee_compensation_primary_compensation_basis as employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay as employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances as employee_compensation_total_salary_and_allowances,\n end_employment_date as end_employment_date,\n expected_date_of_return as expected_date_of_return,\n expected_retirement_date as expected_retirement_date,\n first_day_of_work as first_day_of_work,\n has_international_assignment as has_international_assignment,\n hire_date as hire_date,\n hire_reason as hire_reason,\n hire_rescinded as hire_rescinded,\n home_country as home_country,\n hourly_frequency_currency as hourly_frequency_currency,\n hourly_frequency_frequency as hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis as hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay as hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances as hourly_frequency_total_salary_and_allowances,\n id as id,\n last_datefor_which_paid as last_datefor_which_paid,\n local_termination_reason as local_termination_reason,\n months_continuous_prior_employment as months_continuous_prior_employment,\n not_returning as not_returning,\n original_hire_date as original_hire_date,\n pay_group_frequency_currency as pay_group_frequency_currency,\n pay_group_frequency_frequency as pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis as pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay as pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances as pay_group_frequency_total_salary_and_allowances,\n pay_through_date as pay_through_date,\n primary_termination_category as primary_termination_category,\n primary_termination_reason as primary_termination_reason,\n probation_end_date as probation_end_date,\n probation_start_date as probation_start_date,\n reason_reference_id as reason_reference_id,\n regrettable_termination as regrettable_termination,\n rehire as rehire,\n resignation_date as resignation_date,\n retired as retired,\n retirement_date as retirement_date,\n retirement_eligibility_date as retirement_eligibility_date,\n return_unknown as return_unknown,\n seniority_date as seniority_date,\n severance_date as severance_date,\n terminated as terminated,\n termination_date as termination_date,\n termination_involuntary as termination_involuntary,\n termination_last_day_of_work as termination_last_day_of_work,\n time_off_service_date as time_off_service_date,\n universal_id as universal_id,\n user_id as user_id,\n vesting_date as vesting_date,\n worker_code as worker_code\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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, "primary_key": [], "time_spine": null}, "model.workday.int_workday__worker_employee_enhanced": {"database": "postgres", "schema": "public_workday_dev", "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": "0ffa12041ff3da9433b9f8b89b46a959fd8b11b14b6bb2a3a0404e7ee166fec1"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "ephemeral", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1781284401.1958766, "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 int_worker_personal_details.fivetran_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 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", "doc_blocks": [], "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": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n academic_tenure_date as academic_tenure_date,\n active as active,\n active_status_date as active_status_date,\n annual_currency_summary_currency as annual_currency_summary_currency,\n annual_currency_summary_frequency as annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis as annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay as annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances as annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency as annual_summary_currency,\n annual_summary_frequency as annual_summary_frequency,\n annual_summary_primary_compensation_basis as annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay as annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances as annual_summary_total_salary_and_allowances,\n benefits_service_date as benefits_service_date,\n company_service_date as company_service_date,\n compensation_effective_date as compensation_effective_date,\n compensation_grade_id as compensation_grade_id,\n compensation_grade_profile_id as compensation_grade_profile_id,\n continuous_service_date as continuous_service_date,\n contract_assignment_details as contract_assignment_details,\n contract_currency_code as contract_currency_code,\n contract_end_date as contract_end_date,\n contract_frequency_name as contract_frequency_name,\n contract_pay_rate as contract_pay_rate,\n contract_vendor_name as contract_vendor_name,\n date_entered_workforce as date_entered_workforce,\n days_unemployed as days_unemployed,\n eligible_for_hire as eligible_for_hire,\n eligible_for_rehire_on_latest_termination as eligible_for_rehire_on_latest_termination,\n employee_compensation_currency as employee_compensation_currency,\n employee_compensation_frequency as employee_compensation_frequency,\n employee_compensation_primary_compensation_basis as employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay as employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances as employee_compensation_total_salary_and_allowances,\n end_employment_date as end_employment_date,\n expected_date_of_return as expected_date_of_return,\n expected_retirement_date as expected_retirement_date,\n first_day_of_work as first_day_of_work,\n has_international_assignment as has_international_assignment,\n hire_date as hire_date,\n hire_reason as hire_reason,\n hire_rescinded as hire_rescinded,\n home_country as home_country,\n hourly_frequency_currency as hourly_frequency_currency,\n hourly_frequency_frequency as hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis as hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay as hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances as hourly_frequency_total_salary_and_allowances,\n id as id,\n last_datefor_which_paid as last_datefor_which_paid,\n local_termination_reason as local_termination_reason,\n months_continuous_prior_employment as months_continuous_prior_employment,\n not_returning as not_returning,\n original_hire_date as original_hire_date,\n pay_group_frequency_currency as pay_group_frequency_currency,\n pay_group_frequency_frequency as pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis as pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay as pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances as pay_group_frequency_total_salary_and_allowances,\n pay_through_date as pay_through_date,\n primary_termination_category as primary_termination_category,\n primary_termination_reason as primary_termination_reason,\n probation_end_date as probation_end_date,\n probation_start_date as probation_start_date,\n reason_reference_id as reason_reference_id,\n regrettable_termination as regrettable_termination,\n rehire as rehire,\n resignation_date as resignation_date,\n retired as retired,\n retirement_date as retirement_date,\n retirement_eligibility_date as retirement_eligibility_date,\n return_unknown as return_unknown,\n seniority_date as seniority_date,\n severance_date as severance_date,\n terminated as terminated,\n termination_date as termination_date,\n termination_involuntary as termination_involuntary,\n termination_last_day_of_work as termination_last_day_of_work,\n time_off_service_date as time_off_service_date,\n universal_id as universal_id,\n user_id as user_id,\n vesting_date as vesting_date,\n worker_code as worker_code\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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_common_data as (\nwith base as (\n\n select *\n from \"postgres\".\"public_workday_dev\".\"stg_workday__personal_information_common_data_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_synced as _fivetran_synced,\n _fivetran_deleted as _fivetran_deleted,\n fivetran_id as fivetran_id,\n worker_id as worker_id,\n additional_nationality as additional_nationality,\n blood_type as blood_type,\n citizenship_status as citizenship_status,\n city_of_birth as city_of_birth,\n city_of_birth_code as city_of_birth_code,\n country_of_birth as country_of_birth,\n country_region_of_birth as country_region_of_birth,\n date_of_birth as date_of_birth,\n date_of_death as date_of_death,\n last_medical_exam_date as last_medical_exam_date,\n last_medical_exam_valid_to as last_medical_exam_valid_to,\n medical_exam_notes as medical_exam_notes,\n primary_nationality as primary_nationality,\n region_of_birth as region_of_birth\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n from base\n),\n\nfinal as (\n\n select\n fivetran_id,\n 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 country_region_of_birth,\n date_of_birth,\n date_of_death,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n medical_exam_notes,\n primary_nationality,\n region_of_birth\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__country_personal_information as (\nwith base as (\n\n select *\n from \"postgres\".\"public_workday_dev\".\"stg_workday__country_personal_information_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_synced as _fivetran_synced,\n _fivetran_deleted as _fivetran_deleted,\n fivetran_id as fivetran_id,\n personal_info_common_id as personal_info_common_id,\n country_code as country_code,\n gender as gender,\n hispanic_or_latino as hispanic_or_latino,\n hukou_locality as hukou_locality,\n hukou_postal_code as hukou_postal_code,\n hukou_region_code as hukou_region_code,\n hukou_subregion_code as hukou_subregion_code,\n hukou_type_code as hukou_type_code,\n local_hukou as local_hukou,\n marital_status as marital_status,\n marital_status_date as marital_status_date,\n native_region_code as native_region_code,\n native_region as native_region,\n personnel_file_agency_for_person as personnel_file_agency_for_person,\n political_affiliation as political_affiliation,\n religion as religion,\n social_benefits_locality as social_benefits_locality\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n from base\n),\n\nfinal as (\n\n select\n fivetran_id,\n personal_info_common_id,\n country_code,\n source_relation,\n _fivetran_synced,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region_code,\n hukou_subregion_code,\n hukou_type_code,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n native_region_code,\n native_region,\n personnel_file_agency_for_person,\n political_affiliation,\n religion,\n social_benefits_locality\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"public_workday_dev\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n academic_suffix as academic_suffix,\n additional_name_type as additional_name_type,\n country as country,\n first_name as first_name,\n full_name_singapore_malaysia as full_name_singapore_malaysia,\n hereditary_suffix as hereditary_suffix,\n honorary_suffix as honorary_suffix,\n index as index,\n last_name as last_name,\n local_first_name as local_first_name,\n local_first_name_2 as local_first_name_2,\n local_last_name as local_last_name,\n local_last_name_2 as local_last_name_2,\n local_middle_name as local_middle_name,\n local_middle_name_2 as local_middle_name_2,\n local_secondary_last_name as local_secondary_last_name,\n local_secondary_last_name_2 as local_secondary_last_name_2,\n middle_name as middle_name,\n personal_info_system_id as personal_info_system_id,\n prefix_salutation as prefix_salutation,\n prefix_title as prefix_title,\n prefix_title_code as prefix_title_code,\n professional_suffix as professional_suffix,\n religious_suffix as religious_suffix,\n royal_suffix as royal_suffix,\n secondary_last_name as secondary_last_name,\n social_suffix as social_suffix,\n social_suffix_id as social_suffix_id,\n tertiary_last_name as tertiary_last_name,\n type as type\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n 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\".\"public_workday_dev\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n email_address as email_address,\n email_code as email_code,\n email_comment as email_comment,\n id as id,\n personal_info_system_id as personal_info_system_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n 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\".\"public_workday_dev\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n id as id,\n country_personal_information_id as country_personal_information_id,\n ethnicity_code as ethnicity_code\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n from base\n),\n\nfinal as (\n\n select\n source_relation,\n _fivetran_synced, \n country_personal_information_id as worker_id,\n ethnicity_code,\n id as ethnicity_id\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\".\"public_workday_dev\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n personal_info_common_id as personal_info_common_id,\n discharge_date as discharge_date,\n discharge_type as discharge_type,\n notes as notes,\n rank as rank,\n service as service,\n status_id as status_id,\n status_begin_date as status_begin_date\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n from base\n),\n\nfinal as (\n select\n personal_info_common_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n notes,\n rank,\n service,\n discharge_type,\n status_id 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_common_data as (\n\n select\n fivetran_id,\n worker_id,\n source_relation,\n date_of_birth\n from __dbt__cte__stg_workday__personal_information_common_data\n),\n\nworker_personal_country_data as (\n\n select\n fivetran_id as personal_country_id,\n personal_info_common_id,\n source_relation,\n gender,\n is_hispanic_or_latino\n from __dbt__cte__stg_workday__country_personal_information\n),\n\nworker_personal_info_data as (\n\n select\n worker_personal_common_data.fivetran_id,\n worker_personal_country_data.personal_country_id,\n worker_personal_common_data.worker_id,\n worker_personal_common_data.source_relation,\n worker_personal_common_data.date_of_birth,\n worker_personal_country_data.gender,\n worker_personal_country_data.is_hispanic_or_latino\n from worker_personal_common_data\n left join worker_personal_country_data\n on worker_personal_common_data.fivetran_id = worker_personal_country_data.personal_info_common_id\n and worker_personal_common_data.source_relation = worker_personal_country_data.source_relation\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.fivetran_id,\n worker_personal_info_data.worker_id,\n worker_personal_info_data.source_relation,\n worker_personal_info_data.date_of_birth,\n worker_personal_info_data.gender,\n worker_personal_info_data.is_hispanic_or_latino,\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.personal_country_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.fivetran_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\".\"public_workday_dev\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n academic_pay_setup_data_annual_work_period_end_date as academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date as academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year as academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date as academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date as academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language as business_site_summary_display_language,\n business_site_summary_local as business_site_summary_local,\n business_site_summary_location as business_site_summary_location,\n business_site_summary_location_type as business_site_summary_location_type,\n business_site_summary_name as business_site_summary_name,\n business_site_summary_scheduled_weekly_hours as business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile as business_site_summary_time_profile,\n business_title as business_title,\n critical_job as critical_job,\n default_weekly_hours as default_weekly_hours,\n difficulty_to_fill as difficulty_to_fill,\n effective_date as effective_date,\n employee_type as employee_type,\n end_date as end_date,\n end_employment_date as end_employment_date,\n exclude_from_head_count as exclude_from_head_count,\n expected_assignment_end_date as expected_assignment_end_date,\n external_employee as external_employee,\n federal_withholding_fein as federal_withholding_fein,\n frequency as frequency,\n full_time_equivalent_percentage as full_time_equivalent_percentage,\n headcount_restriction_code as headcount_restriction_code,\n home_country as home_country,\n host_country as host_country,\n international_assignment_type as international_assignment_type,\n is_primary_job as is_primary_job,\n job_exempt as job_exempt,\n job_profile_id as job_profile_id,\n management_level_code as management_level_code,\n paid_fte as paid_fte,\n pay_group as pay_group,\n pay_rate as pay_rate,\n pay_rate_type as pay_rate_type,\n pay_through_date as pay_through_date,\n payroll_entity as payroll_entity,\n payroll_file_number as payroll_file_number,\n position_id as position_id,\n regular_paid_equivalent_hours as regular_paid_equivalent_hours,\n scheduled_weekly_hours as scheduled_weekly_hours,\n specify_paid_fte as specify_paid_fte,\n specify_working_fte as specify_working_fte,\n start_date as start_date,\n start_international_assignment_reason as start_international_assignment_reason,\n work_hours_profile as work_hours_profile,\n work_shift as work_shift,\n work_shift_required as work_shift_required,\n work_space as work_space,\n worker_hours_profile_classification as worker_hours_profile_classification,\n worker_id as worker_id,\n working_fte as working_fte,\n working_time_frequency as working_time_frequency,\n working_time_unit as working_time_unit,\n working_time_value as working_time_value\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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 int_worker_personal_details.fivetran_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 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\".\"public_workday_dev\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n academic_tenure_date as academic_tenure_date,\n active as active,\n active_status_date as active_status_date,\n annual_currency_summary_currency as annual_currency_summary_currency,\n annual_currency_summary_frequency as annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis as annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay as annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances as annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency as annual_summary_currency,\n annual_summary_frequency as annual_summary_frequency,\n annual_summary_primary_compensation_basis as annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay as annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances as annual_summary_total_salary_and_allowances,\n benefits_service_date as benefits_service_date,\n company_service_date as company_service_date,\n compensation_effective_date as compensation_effective_date,\n compensation_grade_id as compensation_grade_id,\n compensation_grade_profile_id as compensation_grade_profile_id,\n continuous_service_date as continuous_service_date,\n contract_assignment_details as contract_assignment_details,\n contract_currency_code as contract_currency_code,\n contract_end_date as contract_end_date,\n contract_frequency_name as contract_frequency_name,\n contract_pay_rate as contract_pay_rate,\n contract_vendor_name as contract_vendor_name,\n date_entered_workforce as date_entered_workforce,\n days_unemployed as days_unemployed,\n eligible_for_hire as eligible_for_hire,\n eligible_for_rehire_on_latest_termination as eligible_for_rehire_on_latest_termination,\n employee_compensation_currency as employee_compensation_currency,\n employee_compensation_frequency as employee_compensation_frequency,\n employee_compensation_primary_compensation_basis as employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay as employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances as employee_compensation_total_salary_and_allowances,\n end_employment_date as end_employment_date,\n expected_date_of_return as expected_date_of_return,\n expected_retirement_date as expected_retirement_date,\n first_day_of_work as first_day_of_work,\n has_international_assignment as has_international_assignment,\n hire_date as hire_date,\n hire_reason as hire_reason,\n hire_rescinded as hire_rescinded,\n home_country as home_country,\n hourly_frequency_currency as hourly_frequency_currency,\n hourly_frequency_frequency as hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis as hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay as hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances as hourly_frequency_total_salary_and_allowances,\n id as id,\n last_datefor_which_paid as last_datefor_which_paid,\n local_termination_reason as local_termination_reason,\n months_continuous_prior_employment as months_continuous_prior_employment,\n not_returning as not_returning,\n original_hire_date as original_hire_date,\n pay_group_frequency_currency as pay_group_frequency_currency,\n pay_group_frequency_frequency as pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis as pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay as pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances as pay_group_frequency_total_salary_and_allowances,\n pay_through_date as pay_through_date,\n primary_termination_category as primary_termination_category,\n primary_termination_reason as primary_termination_reason,\n probation_end_date as probation_end_date,\n probation_start_date as probation_start_date,\n reason_reference_id as reason_reference_id,\n regrettable_termination as regrettable_termination,\n rehire as rehire,\n resignation_date as resignation_date,\n retired as retired,\n retirement_date as retirement_date,\n retirement_eligibility_date as retirement_eligibility_date,\n return_unknown as return_unknown,\n seniority_date as seniority_date,\n severance_date as severance_date,\n terminated as terminated,\n termination_date as termination_date,\n termination_involuntary as termination_involuntary,\n termination_last_day_of_work as termination_last_day_of_work,\n time_off_service_date as time_off_service_date,\n universal_id as universal_id,\n user_id as user_id,\n vesting_date as vesting_date,\n worker_code as worker_code\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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_common_data", "sql": " __dbt__cte__stg_workday__personal_information_common_data as (\nwith base as (\n\n select *\n from \"postgres\".\"public_workday_dev\".\"stg_workday__personal_information_common_data_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_synced as _fivetran_synced,\n _fivetran_deleted as _fivetran_deleted,\n fivetran_id as fivetran_id,\n worker_id as worker_id,\n additional_nationality as additional_nationality,\n blood_type as blood_type,\n citizenship_status as citizenship_status,\n city_of_birth as city_of_birth,\n city_of_birth_code as city_of_birth_code,\n country_of_birth as country_of_birth,\n country_region_of_birth as country_region_of_birth,\n date_of_birth as date_of_birth,\n date_of_death as date_of_death,\n last_medical_exam_date as last_medical_exam_date,\n last_medical_exam_valid_to as last_medical_exam_valid_to,\n medical_exam_notes as medical_exam_notes,\n primary_nationality as primary_nationality,\n region_of_birth as region_of_birth\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n from base\n),\n\nfinal as (\n\n select\n fivetran_id,\n 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 country_region_of_birth,\n date_of_birth,\n date_of_death,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n medical_exam_notes,\n primary_nationality,\n region_of_birth\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__country_personal_information", "sql": " __dbt__cte__stg_workday__country_personal_information as (\nwith base as (\n\n select *\n from \"postgres\".\"public_workday_dev\".\"stg_workday__country_personal_information_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_synced as _fivetran_synced,\n _fivetran_deleted as _fivetran_deleted,\n fivetran_id as fivetran_id,\n personal_info_common_id as personal_info_common_id,\n country_code as country_code,\n gender as gender,\n hispanic_or_latino as hispanic_or_latino,\n hukou_locality as hukou_locality,\n hukou_postal_code as hukou_postal_code,\n hukou_region_code as hukou_region_code,\n hukou_subregion_code as hukou_subregion_code,\n hukou_type_code as hukou_type_code,\n local_hukou as local_hukou,\n marital_status as marital_status,\n marital_status_date as marital_status_date,\n native_region_code as native_region_code,\n native_region as native_region,\n personnel_file_agency_for_person as personnel_file_agency_for_person,\n political_affiliation as political_affiliation,\n religion as religion,\n social_benefits_locality as social_benefits_locality\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n from base\n),\n\nfinal as (\n\n select\n fivetran_id,\n personal_info_common_id,\n country_code,\n source_relation,\n _fivetran_synced,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region_code,\n hukou_subregion_code,\n hukou_type_code,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n native_region_code,\n native_region,\n personnel_file_agency_for_person,\n political_affiliation,\n religion,\n social_benefits_locality\n from fields\n where not coalesce(_fivetran_deleted, false)\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\".\"public_workday_dev\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n academic_suffix as academic_suffix,\n additional_name_type as additional_name_type,\n country as country,\n first_name as first_name,\n full_name_singapore_malaysia as full_name_singapore_malaysia,\n hereditary_suffix as hereditary_suffix,\n honorary_suffix as honorary_suffix,\n index as index,\n last_name as last_name,\n local_first_name as local_first_name,\n local_first_name_2 as local_first_name_2,\n local_last_name as local_last_name,\n local_last_name_2 as local_last_name_2,\n local_middle_name as local_middle_name,\n local_middle_name_2 as local_middle_name_2,\n local_secondary_last_name as local_secondary_last_name,\n local_secondary_last_name_2 as local_secondary_last_name_2,\n middle_name as middle_name,\n personal_info_system_id as personal_info_system_id,\n prefix_salutation as prefix_salutation,\n prefix_title as prefix_title,\n prefix_title_code as prefix_title_code,\n professional_suffix as professional_suffix,\n religious_suffix as religious_suffix,\n royal_suffix as royal_suffix,\n secondary_last_name as secondary_last_name,\n social_suffix as social_suffix,\n social_suffix_id as social_suffix_id,\n tertiary_last_name as tertiary_last_name,\n type as type\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n 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\".\"public_workday_dev\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n email_address as email_address,\n email_code as email_code,\n email_comment as email_comment,\n id as id,\n personal_info_system_id as personal_info_system_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n 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\".\"public_workday_dev\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n id as id,\n country_personal_information_id as country_personal_information_id,\n ethnicity_code as ethnicity_code\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n from base\n),\n\nfinal as (\n\n select\n source_relation,\n _fivetran_synced, \n country_personal_information_id as worker_id,\n ethnicity_code,\n id as ethnicity_id\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\".\"public_workday_dev\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n personal_info_common_id as personal_info_common_id,\n discharge_date as discharge_date,\n discharge_type as discharge_type,\n notes as notes,\n rank as rank,\n service as service,\n status_id as status_id,\n status_begin_date as status_begin_date\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n from base\n),\n\nfinal as (\n select\n personal_info_common_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n notes,\n rank,\n service,\n discharge_type,\n status_id 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_common_data as (\n\n select\n fivetran_id,\n worker_id,\n source_relation,\n date_of_birth\n from __dbt__cte__stg_workday__personal_information_common_data\n),\n\nworker_personal_country_data as (\n\n select\n fivetran_id as personal_country_id,\n personal_info_common_id,\n source_relation,\n gender,\n is_hispanic_or_latino\n from __dbt__cte__stg_workday__country_personal_information\n),\n\nworker_personal_info_data as (\n\n select\n worker_personal_common_data.fivetran_id,\n worker_personal_country_data.personal_country_id,\n worker_personal_common_data.worker_id,\n worker_personal_common_data.source_relation,\n worker_personal_common_data.date_of_birth,\n worker_personal_country_data.gender,\n worker_personal_country_data.is_hispanic_or_latino\n from worker_personal_common_data\n left join worker_personal_country_data\n on worker_personal_common_data.fivetran_id = worker_personal_country_data.personal_info_common_id\n and worker_personal_common_data.source_relation = worker_personal_country_data.source_relation\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.fivetran_id,\n worker_personal_info_data.worker_id,\n worker_personal_info_data.source_relation,\n worker_personal_info_data.date_of_birth,\n worker_personal_info_data.gender,\n worker_personal_info_data.is_hispanic_or_latino,\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.personal_country_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.fivetran_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\".\"public_workday_dev\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n academic_pay_setup_data_annual_work_period_end_date as academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date as academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year as academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date as academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date as academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language as business_site_summary_display_language,\n business_site_summary_local as business_site_summary_local,\n business_site_summary_location as business_site_summary_location,\n business_site_summary_location_type as business_site_summary_location_type,\n business_site_summary_name as business_site_summary_name,\n business_site_summary_scheduled_weekly_hours as business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile as business_site_summary_time_profile,\n business_title as business_title,\n critical_job as critical_job,\n default_weekly_hours as default_weekly_hours,\n difficulty_to_fill as difficulty_to_fill,\n effective_date as effective_date,\n employee_type as employee_type,\n end_date as end_date,\n end_employment_date as end_employment_date,\n exclude_from_head_count as exclude_from_head_count,\n expected_assignment_end_date as expected_assignment_end_date,\n external_employee as external_employee,\n federal_withholding_fein as federal_withholding_fein,\n frequency as frequency,\n full_time_equivalent_percentage as full_time_equivalent_percentage,\n headcount_restriction_code as headcount_restriction_code,\n home_country as home_country,\n host_country as host_country,\n international_assignment_type as international_assignment_type,\n is_primary_job as is_primary_job,\n job_exempt as job_exempt,\n job_profile_id as job_profile_id,\n management_level_code as management_level_code,\n paid_fte as paid_fte,\n pay_group as pay_group,\n pay_rate as pay_rate,\n pay_rate_type as pay_rate_type,\n pay_through_date as pay_through_date,\n payroll_entity as payroll_entity,\n payroll_file_number as payroll_file_number,\n position_id as position_id,\n regular_paid_equivalent_hours as regular_paid_equivalent_hours,\n scheduled_weekly_hours as scheduled_weekly_hours,\n specify_paid_fte as specify_paid_fte,\n specify_working_fte as specify_working_fte,\n start_date as start_date,\n start_international_assignment_reason as start_international_assignment_reason,\n work_hours_profile as work_hours_profile,\n work_shift as work_shift,\n work_shift_required as work_shift_required,\n work_space as work_space,\n worker_hours_profile_classification as worker_hours_profile_classification,\n worker_id as worker_id,\n working_fte as working_fte,\n working_time_frequency as working_time_frequency,\n working_time_unit as working_time_unit,\n working_time_value as working_time_value\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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, "primary_key": [], "time_spine": null}, "model.workday.int_workday__worker_position_enriched": {"database": "postgres", "schema": "public_workday_dev", "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_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "ephemeral", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1781284401.199688, "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", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__worker_position", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n academic_pay_setup_data_annual_work_period_end_date as academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date as academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year as academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date as academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date as academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language as business_site_summary_display_language,\n business_site_summary_local as business_site_summary_local,\n business_site_summary_location as business_site_summary_location,\n business_site_summary_location_type as business_site_summary_location_type,\n business_site_summary_name as business_site_summary_name,\n business_site_summary_scheduled_weekly_hours as business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile as business_site_summary_time_profile,\n business_title as business_title,\n critical_job as critical_job,\n default_weekly_hours as default_weekly_hours,\n difficulty_to_fill as difficulty_to_fill,\n effective_date as effective_date,\n employee_type as employee_type,\n end_date as end_date,\n end_employment_date as end_employment_date,\n exclude_from_head_count as exclude_from_head_count,\n expected_assignment_end_date as expected_assignment_end_date,\n external_employee as external_employee,\n federal_withholding_fein as federal_withholding_fein,\n frequency as frequency,\n full_time_equivalent_percentage as full_time_equivalent_percentage,\n headcount_restriction_code as headcount_restriction_code,\n home_country as home_country,\n host_country as host_country,\n international_assignment_type as international_assignment_type,\n is_primary_job as is_primary_job,\n job_exempt as job_exempt,\n job_profile_id as job_profile_id,\n management_level_code as management_level_code,\n paid_fte as paid_fte,\n pay_group as pay_group,\n pay_rate as pay_rate,\n pay_rate_type as pay_rate_type,\n pay_through_date as pay_through_date,\n payroll_entity as payroll_entity,\n payroll_file_number as payroll_file_number,\n position_id as position_id,\n regular_paid_equivalent_hours as regular_paid_equivalent_hours,\n scheduled_weekly_hours as scheduled_weekly_hours,\n specify_paid_fte as specify_paid_fte,\n specify_working_fte as specify_working_fte,\n start_date as start_date,\n start_international_assignment_reason as start_international_assignment_reason,\n work_hours_profile as work_hours_profile,\n work_shift as work_shift,\n work_shift_required as work_shift_required,\n work_space as work_space,\n worker_hours_profile_classification as worker_hours_profile_classification,\n worker_id as worker_id,\n working_fte as working_fte,\n working_time_frequency as working_time_frequency,\n working_time_unit as working_time_unit,\n working_time_value as working_time_value\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n academic_pay_setup_data_annual_work_period_end_date as academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date as academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year as academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date as academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date as academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language as business_site_summary_display_language,\n business_site_summary_local as business_site_summary_local,\n business_site_summary_location as business_site_summary_location,\n business_site_summary_location_type as business_site_summary_location_type,\n business_site_summary_name as business_site_summary_name,\n business_site_summary_scheduled_weekly_hours as business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile as business_site_summary_time_profile,\n business_title as business_title,\n critical_job as critical_job,\n default_weekly_hours as default_weekly_hours,\n difficulty_to_fill as difficulty_to_fill,\n effective_date as effective_date,\n employee_type as employee_type,\n end_date as end_date,\n end_employment_date as end_employment_date,\n exclude_from_head_count as exclude_from_head_count,\n expected_assignment_end_date as expected_assignment_end_date,\n external_employee as external_employee,\n federal_withholding_fein as federal_withholding_fein,\n frequency as frequency,\n full_time_equivalent_percentage as full_time_equivalent_percentage,\n headcount_restriction_code as headcount_restriction_code,\n home_country as home_country,\n host_country as host_country,\n international_assignment_type as international_assignment_type,\n is_primary_job as is_primary_job,\n job_exempt as job_exempt,\n job_profile_id as job_profile_id,\n management_level_code as management_level_code,\n paid_fte as paid_fte,\n pay_group as pay_group,\n pay_rate as pay_rate,\n pay_rate_type as pay_rate_type,\n pay_through_date as pay_through_date,\n payroll_entity as payroll_entity,\n payroll_file_number as payroll_file_number,\n position_id as position_id,\n regular_paid_equivalent_hours as regular_paid_equivalent_hours,\n scheduled_weekly_hours as scheduled_weekly_hours,\n specify_paid_fte as specify_paid_fte,\n specify_working_fte as specify_working_fte,\n start_date as start_date,\n start_international_assignment_reason as start_international_assignment_reason,\n work_hours_profile as work_hours_profile,\n work_shift as work_shift,\n work_shift_required as work_shift_required,\n work_space as work_space,\n worker_hours_profile_classification as worker_hours_profile_classification,\n worker_id as worker_id,\n working_fte as working_fte,\n working_time_frequency as working_time_frequency,\n working_time_unit as working_time_unit,\n working_time_value as working_time_value\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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, "primary_key": [], "time_spine": null}, "model.workday.int_workday__personal_details": {"database": "postgres", "schema": "public_workday_dev", "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": "d02a9b9caa0e6a9ddda9d7060928fbf5d8666ee8badcc07965f548d513dfdfbc"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "ephemeral", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1781284401.2091765, "relation_name": null, "raw_code": "with worker_personal_common_data as (\n\n select\n fivetran_id,\n worker_id,\n source_relation,\n date_of_birth\n from {{ ref('stg_workday__personal_information_common_data') }}\n),\n\nworker_personal_country_data as (\n\n select\n fivetran_id as personal_country_id,\n personal_info_common_id,\n source_relation,\n gender,\n is_hispanic_or_latino\n from {{ ref('stg_workday__country_personal_information') }}\n),\n\nworker_personal_info_data as (\n\n select\n worker_personal_common_data.fivetran_id,\n worker_personal_country_data.personal_country_id,\n worker_personal_common_data.worker_id,\n worker_personal_common_data.source_relation,\n worker_personal_common_data.date_of_birth,\n worker_personal_country_data.gender,\n worker_personal_country_data.is_hispanic_or_latino\n from worker_personal_common_data\n left join worker_personal_country_data\n on worker_personal_common_data.fivetran_id = worker_personal_country_data.personal_info_common_id\n and worker_personal_common_data.source_relation = worker_personal_country_data.source_relation\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.fivetran_id,\n worker_personal_info_data.worker_id,\n worker_personal_info_data.source_relation,\n worker_personal_info_data.date_of_birth,\n worker_personal_info_data.gender,\n worker_personal_info_data.is_hispanic_or_latino,\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.personal_country_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.fivetran_id = worker_military.worker_id\n and worker_personal_info_data.source_relation = worker_military.source_relation\n)\n\nselect * \nfrom worker_personal_details", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__personal_information_common_data", "package": null, "version": null}, {"name": "stg_workday__country_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": [], "functions": [], "depends_on": {"macros": ["macro.fivetran_utils.string_agg"], "nodes": ["model.workday.stg_workday__personal_information_common_data", "model.workday.stg_workday__country_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_common_data as (\nwith base as (\n\n select *\n from \"postgres\".\"public_workday_dev\".\"stg_workday__personal_information_common_data_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_synced as _fivetran_synced,\n _fivetran_deleted as _fivetran_deleted,\n fivetran_id as fivetran_id,\n worker_id as worker_id,\n additional_nationality as additional_nationality,\n blood_type as blood_type,\n citizenship_status as citizenship_status,\n city_of_birth as city_of_birth,\n city_of_birth_code as city_of_birth_code,\n country_of_birth as country_of_birth,\n country_region_of_birth as country_region_of_birth,\n date_of_birth as date_of_birth,\n date_of_death as date_of_death,\n last_medical_exam_date as last_medical_exam_date,\n last_medical_exam_valid_to as last_medical_exam_valid_to,\n medical_exam_notes as medical_exam_notes,\n primary_nationality as primary_nationality,\n region_of_birth as region_of_birth\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n from base\n),\n\nfinal as (\n\n select\n fivetran_id,\n 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 country_region_of_birth,\n date_of_birth,\n date_of_death,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n medical_exam_notes,\n primary_nationality,\n region_of_birth\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__country_personal_information as (\nwith base as (\n\n select *\n from \"postgres\".\"public_workday_dev\".\"stg_workday__country_personal_information_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_synced as _fivetran_synced,\n _fivetran_deleted as _fivetran_deleted,\n fivetran_id as fivetran_id,\n personal_info_common_id as personal_info_common_id,\n country_code as country_code,\n gender as gender,\n hispanic_or_latino as hispanic_or_latino,\n hukou_locality as hukou_locality,\n hukou_postal_code as hukou_postal_code,\n hukou_region_code as hukou_region_code,\n hukou_subregion_code as hukou_subregion_code,\n hukou_type_code as hukou_type_code,\n local_hukou as local_hukou,\n marital_status as marital_status,\n marital_status_date as marital_status_date,\n native_region_code as native_region_code,\n native_region as native_region,\n personnel_file_agency_for_person as personnel_file_agency_for_person,\n political_affiliation as political_affiliation,\n religion as religion,\n social_benefits_locality as social_benefits_locality\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n from base\n),\n\nfinal as (\n\n select\n fivetran_id,\n personal_info_common_id,\n country_code,\n source_relation,\n _fivetran_synced,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region_code,\n hukou_subregion_code,\n hukou_type_code,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n native_region_code,\n native_region,\n personnel_file_agency_for_person,\n political_affiliation,\n religion,\n social_benefits_locality\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"public_workday_dev\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n academic_suffix as academic_suffix,\n additional_name_type as additional_name_type,\n country as country,\n first_name as first_name,\n full_name_singapore_malaysia as full_name_singapore_malaysia,\n hereditary_suffix as hereditary_suffix,\n honorary_suffix as honorary_suffix,\n index as index,\n last_name as last_name,\n local_first_name as local_first_name,\n local_first_name_2 as local_first_name_2,\n local_last_name as local_last_name,\n local_last_name_2 as local_last_name_2,\n local_middle_name as local_middle_name,\n local_middle_name_2 as local_middle_name_2,\n local_secondary_last_name as local_secondary_last_name,\n local_secondary_last_name_2 as local_secondary_last_name_2,\n middle_name as middle_name,\n personal_info_system_id as personal_info_system_id,\n prefix_salutation as prefix_salutation,\n prefix_title as prefix_title,\n prefix_title_code as prefix_title_code,\n professional_suffix as professional_suffix,\n religious_suffix as religious_suffix,\n royal_suffix as royal_suffix,\n secondary_last_name as secondary_last_name,\n social_suffix as social_suffix,\n social_suffix_id as social_suffix_id,\n tertiary_last_name as tertiary_last_name,\n type as type\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n 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\".\"public_workday_dev\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n email_address as email_address,\n email_code as email_code,\n email_comment as email_comment,\n id as id,\n personal_info_system_id as personal_info_system_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n 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\".\"public_workday_dev\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n id as id,\n country_personal_information_id as country_personal_information_id,\n ethnicity_code as ethnicity_code\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n from base\n),\n\nfinal as (\n\n select\n source_relation,\n _fivetran_synced, \n country_personal_information_id as worker_id,\n ethnicity_code,\n id as ethnicity_id\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\".\"public_workday_dev\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n personal_info_common_id as personal_info_common_id,\n discharge_date as discharge_date,\n discharge_type as discharge_type,\n notes as notes,\n rank as rank,\n service as service,\n status_id as status_id,\n status_begin_date as status_begin_date\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n from base\n),\n\nfinal as (\n select\n personal_info_common_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n notes,\n rank,\n service,\n discharge_type,\n status_id 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_common_data as (\n\n select\n fivetran_id,\n worker_id,\n source_relation,\n date_of_birth\n from __dbt__cte__stg_workday__personal_information_common_data\n),\n\nworker_personal_country_data as (\n\n select\n fivetran_id as personal_country_id,\n personal_info_common_id,\n source_relation,\n gender,\n is_hispanic_or_latino\n from __dbt__cte__stg_workday__country_personal_information\n),\n\nworker_personal_info_data as (\n\n select\n worker_personal_common_data.fivetran_id,\n worker_personal_country_data.personal_country_id,\n worker_personal_common_data.worker_id,\n worker_personal_common_data.source_relation,\n worker_personal_common_data.date_of_birth,\n worker_personal_country_data.gender,\n worker_personal_country_data.is_hispanic_or_latino\n from worker_personal_common_data\n left join worker_personal_country_data\n on worker_personal_common_data.fivetran_id = worker_personal_country_data.personal_info_common_id\n and worker_personal_common_data.source_relation = worker_personal_country_data.source_relation\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.fivetran_id,\n worker_personal_info_data.worker_id,\n worker_personal_info_data.source_relation,\n worker_personal_info_data.date_of_birth,\n worker_personal_info_data.gender,\n worker_personal_info_data.is_hispanic_or_latino,\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.personal_country_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.fivetran_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_common_data", "sql": " __dbt__cte__stg_workday__personal_information_common_data as (\nwith base as (\n\n select *\n from \"postgres\".\"public_workday_dev\".\"stg_workday__personal_information_common_data_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_synced as _fivetran_synced,\n _fivetran_deleted as _fivetran_deleted,\n fivetran_id as fivetran_id,\n worker_id as worker_id,\n additional_nationality as additional_nationality,\n blood_type as blood_type,\n citizenship_status as citizenship_status,\n city_of_birth as city_of_birth,\n city_of_birth_code as city_of_birth_code,\n country_of_birth as country_of_birth,\n country_region_of_birth as country_region_of_birth,\n date_of_birth as date_of_birth,\n date_of_death as date_of_death,\n last_medical_exam_date as last_medical_exam_date,\n last_medical_exam_valid_to as last_medical_exam_valid_to,\n medical_exam_notes as medical_exam_notes,\n primary_nationality as primary_nationality,\n region_of_birth as region_of_birth\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n from base\n),\n\nfinal as (\n\n select\n fivetran_id,\n 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 country_region_of_birth,\n date_of_birth,\n date_of_death,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n medical_exam_notes,\n primary_nationality,\n region_of_birth\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__country_personal_information", "sql": " __dbt__cte__stg_workday__country_personal_information as (\nwith base as (\n\n select *\n from \"postgres\".\"public_workday_dev\".\"stg_workday__country_personal_information_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_synced as _fivetran_synced,\n _fivetran_deleted as _fivetran_deleted,\n fivetran_id as fivetran_id,\n personal_info_common_id as personal_info_common_id,\n country_code as country_code,\n gender as gender,\n hispanic_or_latino as hispanic_or_latino,\n hukou_locality as hukou_locality,\n hukou_postal_code as hukou_postal_code,\n hukou_region_code as hukou_region_code,\n hukou_subregion_code as hukou_subregion_code,\n hukou_type_code as hukou_type_code,\n local_hukou as local_hukou,\n marital_status as marital_status,\n marital_status_date as marital_status_date,\n native_region_code as native_region_code,\n native_region as native_region,\n personnel_file_agency_for_person as personnel_file_agency_for_person,\n political_affiliation as political_affiliation,\n religion as religion,\n social_benefits_locality as social_benefits_locality\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n from base\n),\n\nfinal as (\n\n select\n fivetran_id,\n personal_info_common_id,\n country_code,\n source_relation,\n _fivetran_synced,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region_code,\n hukou_subregion_code,\n hukou_type_code,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n native_region_code,\n native_region,\n personnel_file_agency_for_person,\n political_affiliation,\n religion,\n social_benefits_locality\n from fields\n where not coalesce(_fivetran_deleted, false)\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\".\"public_workday_dev\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n academic_suffix as academic_suffix,\n additional_name_type as additional_name_type,\n country as country,\n first_name as first_name,\n full_name_singapore_malaysia as full_name_singapore_malaysia,\n hereditary_suffix as hereditary_suffix,\n honorary_suffix as honorary_suffix,\n index as index,\n last_name as last_name,\n local_first_name as local_first_name,\n local_first_name_2 as local_first_name_2,\n local_last_name as local_last_name,\n local_last_name_2 as local_last_name_2,\n local_middle_name as local_middle_name,\n local_middle_name_2 as local_middle_name_2,\n local_secondary_last_name as local_secondary_last_name,\n local_secondary_last_name_2 as local_secondary_last_name_2,\n middle_name as middle_name,\n personal_info_system_id as personal_info_system_id,\n prefix_salutation as prefix_salutation,\n prefix_title as prefix_title,\n prefix_title_code as prefix_title_code,\n professional_suffix as professional_suffix,\n religious_suffix as religious_suffix,\n royal_suffix as royal_suffix,\n secondary_last_name as secondary_last_name,\n social_suffix as social_suffix,\n social_suffix_id as social_suffix_id,\n tertiary_last_name as tertiary_last_name,\n type as type\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n 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\".\"public_workday_dev\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n email_address as email_address,\n email_code as email_code,\n email_comment as email_comment,\n id as id,\n personal_info_system_id as personal_info_system_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n 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\".\"public_workday_dev\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n id as id,\n country_personal_information_id as country_personal_information_id,\n ethnicity_code as ethnicity_code\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n from base\n),\n\nfinal as (\n\n select\n source_relation,\n _fivetran_synced, \n country_personal_information_id as worker_id,\n ethnicity_code,\n id as ethnicity_id\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\".\"public_workday_dev\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n personal_info_common_id as personal_info_common_id,\n discharge_date as discharge_date,\n discharge_type as discharge_type,\n notes as notes,\n rank as rank,\n service as service,\n status_id as status_id,\n status_begin_date as status_begin_date\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n from base\n),\n\nfinal as (\n select\n personal_info_common_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n notes,\n rank,\n service,\n discharge_type,\n status_id 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, "primary_key": [], "time_spine": null}, "test.workday.unique_workday__employee_overview_employee_id.b01e19996c": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1781284401.4509768, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "workday__employee_overview", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"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_metadata": {"name": "unique", "kwargs": {"column_name": "employee_id", "model": "{{ get_where_subquery(ref('workday__employee_overview')) }}"}, "namespace": null}}, "test.workday.not_null_workday__employee_overview_employee_id.bc9ace9e78": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1781284401.4538102, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "workday__employee_overview", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"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_metadata": {"name": "not_null", "kwargs": {"column_name": "employee_id", "model": "{{ get_where_subquery(ref('workday__employee_overview')) }}"}, "namespace": null}}, "test.workday.not_null_workday__employee_overview_worker_id.a9f1737e97": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1781284401.456157, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "workday__employee_overview", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"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_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('workday__employee_overview')) }}"}, "namespace": null}}, "test.workday.not_null_workday__job_overview_job_profile_id.dc998c6857": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1781284401.4584787, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "workday__job_overview", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"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_metadata": {"name": "not_null", "kwargs": {"column_name": "job_profile_id", "model": "{{ get_where_subquery(ref('workday__job_overview')) }}"}, "namespace": null}}, "test.workday.not_null_workday__position_overview_position_id.603beb3f22": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1781284401.4609678, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "workday__position_overview", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"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_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('workday__position_overview')) }}"}, "namespace": null}}, "test.workday.not_null_workday__organization_overview_organization_id.5b1070ba31": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1781284401.4634707, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "workday__organization_overview", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"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_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('workday__organization_overview')) }}"}, "namespace": null}}, "test.workday.not_null_workday__organization_overview_organization_role_id.a909dac412": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1781284401.4657688, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "workday__organization_overview", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"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_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_role_id", "model": "{{ get_where_subquery(ref('workday__organization_overview')) }}"}, "namespace": null}}, "test.workday.unique_workday__employee_daily_history_employee_day_id.99f5eea269": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1781284401.525666, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "workday__employee_daily_history", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"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_metadata": {"name": "unique", "kwargs": {"column_name": "employee_day_id", "model": "{{ get_where_subquery(ref('workday__employee_daily_history')) }}"}, "namespace": null}}, "test.workday.not_null_workday__employee_daily_history_employee_day_id.9e97637f6d": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1781284401.528137, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "workday__employee_daily_history", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"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_metadata": {"name": "not_null", "kwargs": {"column_name": "employee_day_id", "model": "{{ get_where_subquery(ref('workday__employee_daily_history')) }}"}, "namespace": null}}, "test.workday.unique_workday__monthly_summary_metrics_month.955a3b67ab": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1781284401.5305016, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "workday__monthly_summary", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"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_metadata": {"name": "unique", "kwargs": {"column_name": "metrics_month", "model": "{{ get_where_subquery(ref('workday__monthly_summary')) }}"}, "namespace": null}}, "test.workday.not_null_workday__monthly_summary_metrics_month.3be01a1e58": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1781284401.5328481, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "workday__monthly_summary", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"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_metadata": {"name": "not_null", "kwargs": {"column_name": "metrics_month", "model": "{{ get_where_subquery(ref('workday__monthly_summary')) }}"}, "namespace": null}}, "test.workday.unique_workday__worker_position_org_daily_history_wpo_day_id.f7bfe51a21": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1781284401.5351045, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "workday__worker_position_org_daily_history", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"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_metadata": {"name": "unique", "kwargs": {"column_name": "wpo_day_id", "model": "{{ get_where_subquery(ref('workday__worker_position_org_daily_history')) }}"}, "namespace": null}}, "test.workday.not_null_workday__worker_position_org_daily_history_wpo_day_id.8948c132f4": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1781284401.5373569, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "workday__worker_position_org_daily_history", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"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_metadata": {"name": "not_null", "kwargs": {"column_name": "wpo_day_id", "model": "{{ get_where_subquery(ref('workday__worker_position_org_daily_history')) }}"}, "namespace": null}}, "test.workday.not_null_workday__worker_position_org_daily_history_worker_id.914545c0fb": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1781284401.539586, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "workday__worker_position_org_daily_history", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"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_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('workday__worker_position_org_daily_history')) }}"}, "namespace": null}}, "test.workday.not_null_workday__worker_position_org_daily_history_position_id.07f47bf163": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1781284401.5420444, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "workday__worker_position_org_daily_history", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"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_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('workday__worker_position_org_daily_history')) }}"}, "namespace": null}}, "test.workday.not_null_workday__worker_position_org_daily_history_organization_id.27a8cf4e9c": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_workday__worker_posit_f00304a8628e430ed7c21d43d8c23632"}, "created_at": 1781284401.5443056, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_workday__worker_posit_f00304a8628e430ed7c21d43d8c23632\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "workday__worker_position_org_daily_history", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"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_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('workday__worker_position_org_daily_history')) }}"}, "namespace": null}}, "test.workday.unique_stg_workday__personal_information_history_history_unique_key.3dba27dafc": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "unique_stg_workday__personal_i_acccbe4c15b5fb4d1446e98ff69015e2"}, "created_at": 1781284401.5679617, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}{{ config(alias=\"unique_stg_workday__personal_i_acccbe4c15b5fb4d1446e98ff69015e2\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__personal_information_history", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n additional_nationality as additional_nationality,\n blood_type as blood_type,\n citizenship_status as citizenship_status,\n city_of_birth as city_of_birth,\n city_of_birth_code as city_of_birth_code,\n country_of_birth as country_of_birth,\n date_of_birth as date_of_birth,\n date_of_death as date_of_death,\n gender as gender,\n hispanic_or_latino as hispanic_or_latino,\n hukou_locality as hukou_locality,\n hukou_postal_code as hukou_postal_code,\n hukou_region as hukou_region,\n hukou_subregion as hukou_subregion,\n hukou_type as hukou_type,\n id as id,\n last_medical_exam_date as last_medical_exam_date,\n last_medical_exam_valid_to as last_medical_exam_valid_to,\n local_hukou as local_hukou,\n marital_status as marital_status,\n marital_status_date as marital_status_date,\n medical_exam_notes as medical_exam_notes,\n native_region as native_region,\n native_region_code as native_region_code,\n personnel_file_agency as personnel_file_agency,\n political_affiliation as political_affiliation,\n primary_nationality as primary_nationality,\n region_of_birth as region_of_birth,\n region_of_birth_code as region_of_birth_code,\n religion as religion,\n social_benefit as social_benefit,\n tobacco_use as tobacco_use,\n type as type\n\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n additional_nationality as additional_nationality,\n blood_type as blood_type,\n citizenship_status as citizenship_status,\n city_of_birth as city_of_birth,\n city_of_birth_code as city_of_birth_code,\n country_of_birth as country_of_birth,\n date_of_birth as date_of_birth,\n date_of_death as date_of_death,\n gender as gender,\n hispanic_or_latino as hispanic_or_latino,\n hukou_locality as hukou_locality,\n hukou_postal_code as hukou_postal_code,\n hukou_region as hukou_region,\n hukou_subregion as hukou_subregion,\n hukou_type as hukou_type,\n id as id,\n last_medical_exam_date as last_medical_exam_date,\n last_medical_exam_valid_to as last_medical_exam_valid_to,\n local_hukou as local_hukou,\n marital_status as marital_status,\n marital_status_date as marital_status_date,\n medical_exam_notes as medical_exam_notes,\n native_region as native_region,\n native_region_code as native_region_code,\n personnel_file_agency as personnel_file_agency,\n political_affiliation as political_affiliation,\n primary_nationality as primary_nationality,\n region_of_birth as region_of_birth,\n region_of_birth_code as region_of_birth_code,\n religion as religion,\n social_benefit as social_benefit,\n tobacco_use as tobacco_use,\n type as type\n\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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_metadata": {"name": "unique", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__personal_information_history')) }}"}, "namespace": null}}, "test.workday.not_null_stg_workday__personal_information_history_history_unique_key.64bf86390e": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_workday__personal_43beec0d9761e57841678ed565c671d3"}, "created_at": 1781284401.5740204, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__personal_43beec0d9761e57841678ed565c671d3\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__personal_information_history", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n additional_nationality as additional_nationality,\n blood_type as blood_type,\n citizenship_status as citizenship_status,\n city_of_birth as city_of_birth,\n city_of_birth_code as city_of_birth_code,\n country_of_birth as country_of_birth,\n date_of_birth as date_of_birth,\n date_of_death as date_of_death,\n gender as gender,\n hispanic_or_latino as hispanic_or_latino,\n hukou_locality as hukou_locality,\n hukou_postal_code as hukou_postal_code,\n hukou_region as hukou_region,\n hukou_subregion as hukou_subregion,\n hukou_type as hukou_type,\n id as id,\n last_medical_exam_date as last_medical_exam_date,\n last_medical_exam_valid_to as last_medical_exam_valid_to,\n local_hukou as local_hukou,\n marital_status as marital_status,\n marital_status_date as marital_status_date,\n medical_exam_notes as medical_exam_notes,\n native_region as native_region,\n native_region_code as native_region_code,\n personnel_file_agency as personnel_file_agency,\n political_affiliation as political_affiliation,\n primary_nationality as primary_nationality,\n region_of_birth as region_of_birth,\n region_of_birth_code as region_of_birth_code,\n religion as religion,\n social_benefit as social_benefit,\n tobacco_use as tobacco_use,\n type as type\n\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n additional_nationality as additional_nationality,\n blood_type as blood_type,\n citizenship_status as citizenship_status,\n city_of_birth as city_of_birth,\n city_of_birth_code as city_of_birth_code,\n country_of_birth as country_of_birth,\n date_of_birth as date_of_birth,\n date_of_death as date_of_death,\n gender as gender,\n hispanic_or_latino as hispanic_or_latino,\n hukou_locality as hukou_locality,\n hukou_postal_code as hukou_postal_code,\n hukou_region as hukou_region,\n hukou_subregion as hukou_subregion,\n hukou_type as hukou_type,\n id as id,\n last_medical_exam_date as last_medical_exam_date,\n last_medical_exam_valid_to as last_medical_exam_valid_to,\n local_hukou as local_hukou,\n marital_status as marital_status,\n marital_status_date as marital_status_date,\n medical_exam_notes as medical_exam_notes,\n native_region as native_region,\n native_region_code as native_region_code,\n personnel_file_agency as personnel_file_agency,\n political_affiliation as political_affiliation,\n primary_nationality as primary_nationality,\n region_of_birth as region_of_birth,\n region_of_birth_code as region_of_birth_code,\n religion as religion,\n social_benefit as social_benefit,\n tobacco_use as tobacco_use,\n type as type\n\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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_metadata": {"name": "not_null", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__personal_information_history')) }}"}, "namespace": null}}, "test.workday.not_null_stg_workday__personal_information_history_worker_id.b9fdbd8e58": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1781284401.5791142, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__personal_information_history", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n additional_nationality as additional_nationality,\n blood_type as blood_type,\n citizenship_status as citizenship_status,\n city_of_birth as city_of_birth,\n city_of_birth_code as city_of_birth_code,\n country_of_birth as country_of_birth,\n date_of_birth as date_of_birth,\n date_of_death as date_of_death,\n gender as gender,\n hispanic_or_latino as hispanic_or_latino,\n hukou_locality as hukou_locality,\n hukou_postal_code as hukou_postal_code,\n hukou_region as hukou_region,\n hukou_subregion as hukou_subregion,\n hukou_type as hukou_type,\n id as id,\n last_medical_exam_date as last_medical_exam_date,\n last_medical_exam_valid_to as last_medical_exam_valid_to,\n local_hukou as local_hukou,\n marital_status as marital_status,\n marital_status_date as marital_status_date,\n medical_exam_notes as medical_exam_notes,\n native_region as native_region,\n native_region_code as native_region_code,\n personnel_file_agency as personnel_file_agency,\n political_affiliation as political_affiliation,\n primary_nationality as primary_nationality,\n region_of_birth as region_of_birth,\n region_of_birth_code as region_of_birth_code,\n religion as religion,\n social_benefit as social_benefit,\n tobacco_use as tobacco_use,\n type as type\n\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n additional_nationality as additional_nationality,\n blood_type as blood_type,\n citizenship_status as citizenship_status,\n city_of_birth as city_of_birth,\n city_of_birth_code as city_of_birth_code,\n country_of_birth as country_of_birth,\n date_of_birth as date_of_birth,\n date_of_death as date_of_death,\n gender as gender,\n hispanic_or_latino as hispanic_or_latino,\n hukou_locality as hukou_locality,\n hukou_postal_code as hukou_postal_code,\n hukou_region as hukou_region,\n hukou_subregion as hukou_subregion,\n hukou_type as hukou_type,\n id as id,\n last_medical_exam_date as last_medical_exam_date,\n last_medical_exam_valid_to as last_medical_exam_valid_to,\n local_hukou as local_hukou,\n marital_status as marital_status,\n marital_status_date as marital_status_date,\n medical_exam_notes as medical_exam_notes,\n native_region as native_region,\n native_region_code as native_region_code,\n personnel_file_agency as personnel_file_agency,\n political_affiliation as political_affiliation,\n primary_nationality as primary_nationality,\n region_of_birth as region_of_birth,\n region_of_birth_code as region_of_birth_code,\n religion as religion,\n social_benefit as social_benefit,\n tobacco_use as tobacco_use,\n type as type\n\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__personal_information_history')) }}"}, "namespace": null}}, "test.workday.unique_stg_workday__worker_history_history_unique_key.48173a6d72": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1781284401.582397, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__worker_history", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n academic_tenure_date as academic_tenure_date,\n active as active,\n active_status_date as active_status_date,\n annual_currency_summary_currency as annual_currency_summary_currency,\n annual_currency_summary_frequency as annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis as annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay as annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances as annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency as annual_summary_currency,\n annual_summary_frequency as annual_summary_frequency,\n annual_summary_primary_compensation_basis as annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay as annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances as annual_summary_total_salary_and_allowances,\n benefits_service_date as benefits_service_date,\n company_service_date as company_service_date,\n compensation_effective_date as compensation_effective_date,\n compensation_grade_id as compensation_grade_id,\n compensation_grade_profile_id as compensation_grade_profile_id,\n continuous_service_date as continuous_service_date,\n contract_assignment_details as contract_assignment_details,\n contract_currency_code as contract_currency_code,\n contract_end_date as contract_end_date,\n contract_frequency_name as contract_frequency_name,\n contract_pay_rate as contract_pay_rate,\n contract_vendor_name as contract_vendor_name,\n date_entered_workforce as date_entered_workforce,\n days_unemployed as days_unemployed,\n eligible_for_hire as eligible_for_hire,\n eligible_for_rehire_on_latest_termination as eligible_for_rehire_on_latest_termination,\n employee_compensation_currency as employee_compensation_currency,\n employee_compensation_frequency as employee_compensation_frequency,\n employee_compensation_primary_compensation_basis as employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay as employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances as employee_compensation_total_salary_and_allowances,\n end_employment_date as end_employment_date,\n expected_date_of_return as expected_date_of_return,\n expected_retirement_date as expected_retirement_date,\n first_day_of_work as first_day_of_work,\n has_international_assignment as has_international_assignment,\n hire_date as hire_date,\n hire_reason as hire_reason,\n hire_rescinded as hire_rescinded,\n home_country as home_country,\n hourly_frequency_currency as hourly_frequency_currency,\n hourly_frequency_frequency as hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis as hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay as hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances as hourly_frequency_total_salary_and_allowances,\n id as id,\n last_datefor_which_paid as last_datefor_which_paid,\n local_termination_reason as local_termination_reason,\n months_continuous_prior_employment as months_continuous_prior_employment,\n not_returning as not_returning,\n original_hire_date as original_hire_date,\n pay_group_frequency_currency as pay_group_frequency_currency,\n pay_group_frequency_frequency as pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis as pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay as pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances as pay_group_frequency_total_salary_and_allowances,\n pay_through_date as pay_through_date,\n primary_termination_category as primary_termination_category,\n primary_termination_reason as primary_termination_reason,\n probation_end_date as probation_end_date,\n probation_start_date as probation_start_date,\n reason_reference_id as reason_reference_id,\n regrettable_termination as regrettable_termination,\n rehire as rehire,\n resignation_date as resignation_date,\n retired as retired,\n retirement_date as retirement_date,\n retirement_eligibility_date as retirement_eligibility_date,\n return_unknown as return_unknown,\n seniority_date as seniority_date,\n severance_date as severance_date,\n terminated as terminated,\n termination_date as termination_date,\n termination_involuntary as termination_involuntary,\n termination_last_day_of_work as termination_last_day_of_work,\n time_off_service_date as time_off_service_date,\n universal_id as universal_id,\n user_id as user_id,\n vesting_date as vesting_date,\n worker_code as worker_code\n\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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 \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 annual_currency_summary_primary_compensation_basis,\n \n \n \n \n \n \n \n \n annual_currency_summary_total_base_pay,\n \n \n \n \n \n \n \n \n annual_currency_summary_total_salary_and_allowances,\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 \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 \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 \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 \n \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\".\"public_workday_dev\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n academic_tenure_date as academic_tenure_date,\n active as active,\n active_status_date as active_status_date,\n annual_currency_summary_currency as annual_currency_summary_currency,\n annual_currency_summary_frequency as annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis as annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay as annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances as annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency as annual_summary_currency,\n annual_summary_frequency as annual_summary_frequency,\n annual_summary_primary_compensation_basis as annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay as annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances as annual_summary_total_salary_and_allowances,\n benefits_service_date as benefits_service_date,\n company_service_date as company_service_date,\n compensation_effective_date as compensation_effective_date,\n compensation_grade_id as compensation_grade_id,\n compensation_grade_profile_id as compensation_grade_profile_id,\n continuous_service_date as continuous_service_date,\n contract_assignment_details as contract_assignment_details,\n contract_currency_code as contract_currency_code,\n contract_end_date as contract_end_date,\n contract_frequency_name as contract_frequency_name,\n contract_pay_rate as contract_pay_rate,\n contract_vendor_name as contract_vendor_name,\n date_entered_workforce as date_entered_workforce,\n days_unemployed as days_unemployed,\n eligible_for_hire as eligible_for_hire,\n eligible_for_rehire_on_latest_termination as eligible_for_rehire_on_latest_termination,\n employee_compensation_currency as employee_compensation_currency,\n employee_compensation_frequency as employee_compensation_frequency,\n employee_compensation_primary_compensation_basis as employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay as employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances as employee_compensation_total_salary_and_allowances,\n end_employment_date as end_employment_date,\n expected_date_of_return as expected_date_of_return,\n expected_retirement_date as expected_retirement_date,\n first_day_of_work as first_day_of_work,\n has_international_assignment as has_international_assignment,\n hire_date as hire_date,\n hire_reason as hire_reason,\n hire_rescinded as hire_rescinded,\n home_country as home_country,\n hourly_frequency_currency as hourly_frequency_currency,\n hourly_frequency_frequency as hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis as hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay as hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances as hourly_frequency_total_salary_and_allowances,\n id as id,\n last_datefor_which_paid as last_datefor_which_paid,\n local_termination_reason as local_termination_reason,\n months_continuous_prior_employment as months_continuous_prior_employment,\n not_returning as not_returning,\n original_hire_date as original_hire_date,\n pay_group_frequency_currency as pay_group_frequency_currency,\n pay_group_frequency_frequency as pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis as pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay as pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances as pay_group_frequency_total_salary_and_allowances,\n pay_through_date as pay_through_date,\n primary_termination_category as primary_termination_category,\n primary_termination_reason as primary_termination_reason,\n probation_end_date as probation_end_date,\n probation_start_date as probation_start_date,\n reason_reference_id as reason_reference_id,\n regrettable_termination as regrettable_termination,\n rehire as rehire,\n resignation_date as resignation_date,\n retired as retired,\n retirement_date as retirement_date,\n retirement_eligibility_date as retirement_eligibility_date,\n return_unknown as return_unknown,\n seniority_date as seniority_date,\n severance_date as severance_date,\n terminated as terminated,\n termination_date as termination_date,\n termination_involuntary as termination_involuntary,\n termination_last_day_of_work as termination_last_day_of_work,\n time_off_service_date as time_off_service_date,\n universal_id as universal_id,\n user_id as user_id,\n vesting_date as vesting_date,\n worker_code as worker_code\n\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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 \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 annual_currency_summary_primary_compensation_basis,\n \n \n \n \n \n \n \n \n annual_currency_summary_total_base_pay,\n \n \n \n \n \n \n \n \n annual_currency_summary_total_salary_and_allowances,\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 \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 \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 \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 \n \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_metadata": {"name": "unique", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__worker_history')) }}"}, "namespace": null}}, "test.workday.not_null_stg_workday__worker_history_history_unique_key.20bf1dd638": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1781284401.585078, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__worker_history", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n academic_tenure_date as academic_tenure_date,\n active as active,\n active_status_date as active_status_date,\n annual_currency_summary_currency as annual_currency_summary_currency,\n annual_currency_summary_frequency as annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis as annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay as annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances as annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency as annual_summary_currency,\n annual_summary_frequency as annual_summary_frequency,\n annual_summary_primary_compensation_basis as annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay as annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances as annual_summary_total_salary_and_allowances,\n benefits_service_date as benefits_service_date,\n company_service_date as company_service_date,\n compensation_effective_date as compensation_effective_date,\n compensation_grade_id as compensation_grade_id,\n compensation_grade_profile_id as compensation_grade_profile_id,\n continuous_service_date as continuous_service_date,\n contract_assignment_details as contract_assignment_details,\n contract_currency_code as contract_currency_code,\n contract_end_date as contract_end_date,\n contract_frequency_name as contract_frequency_name,\n contract_pay_rate as contract_pay_rate,\n contract_vendor_name as contract_vendor_name,\n date_entered_workforce as date_entered_workforce,\n days_unemployed as days_unemployed,\n eligible_for_hire as eligible_for_hire,\n eligible_for_rehire_on_latest_termination as eligible_for_rehire_on_latest_termination,\n employee_compensation_currency as employee_compensation_currency,\n employee_compensation_frequency as employee_compensation_frequency,\n employee_compensation_primary_compensation_basis as employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay as employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances as employee_compensation_total_salary_and_allowances,\n end_employment_date as end_employment_date,\n expected_date_of_return as expected_date_of_return,\n expected_retirement_date as expected_retirement_date,\n first_day_of_work as first_day_of_work,\n has_international_assignment as has_international_assignment,\n hire_date as hire_date,\n hire_reason as hire_reason,\n hire_rescinded as hire_rescinded,\n home_country as home_country,\n hourly_frequency_currency as hourly_frequency_currency,\n hourly_frequency_frequency as hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis as hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay as hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances as hourly_frequency_total_salary_and_allowances,\n id as id,\n last_datefor_which_paid as last_datefor_which_paid,\n local_termination_reason as local_termination_reason,\n months_continuous_prior_employment as months_continuous_prior_employment,\n not_returning as not_returning,\n original_hire_date as original_hire_date,\n pay_group_frequency_currency as pay_group_frequency_currency,\n pay_group_frequency_frequency as pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis as pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay as pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances as pay_group_frequency_total_salary_and_allowances,\n pay_through_date as pay_through_date,\n primary_termination_category as primary_termination_category,\n primary_termination_reason as primary_termination_reason,\n probation_end_date as probation_end_date,\n probation_start_date as probation_start_date,\n reason_reference_id as reason_reference_id,\n regrettable_termination as regrettable_termination,\n rehire as rehire,\n resignation_date as resignation_date,\n retired as retired,\n retirement_date as retirement_date,\n retirement_eligibility_date as retirement_eligibility_date,\n return_unknown as return_unknown,\n seniority_date as seniority_date,\n severance_date as severance_date,\n terminated as terminated,\n termination_date as termination_date,\n termination_involuntary as termination_involuntary,\n termination_last_day_of_work as termination_last_day_of_work,\n time_off_service_date as time_off_service_date,\n universal_id as universal_id,\n user_id as user_id,\n vesting_date as vesting_date,\n worker_code as worker_code\n\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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 \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 annual_currency_summary_primary_compensation_basis,\n \n \n \n \n \n \n \n \n annual_currency_summary_total_base_pay,\n \n \n \n \n \n \n \n \n annual_currency_summary_total_salary_and_allowances,\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 \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 \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 \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 \n \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\".\"public_workday_dev\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n academic_tenure_date as academic_tenure_date,\n active as active,\n active_status_date as active_status_date,\n annual_currency_summary_currency as annual_currency_summary_currency,\n annual_currency_summary_frequency as annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis as annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay as annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances as annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency as annual_summary_currency,\n annual_summary_frequency as annual_summary_frequency,\n annual_summary_primary_compensation_basis as annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay as annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances as annual_summary_total_salary_and_allowances,\n benefits_service_date as benefits_service_date,\n company_service_date as company_service_date,\n compensation_effective_date as compensation_effective_date,\n compensation_grade_id as compensation_grade_id,\n compensation_grade_profile_id as compensation_grade_profile_id,\n continuous_service_date as continuous_service_date,\n contract_assignment_details as contract_assignment_details,\n contract_currency_code as contract_currency_code,\n contract_end_date as contract_end_date,\n contract_frequency_name as contract_frequency_name,\n contract_pay_rate as contract_pay_rate,\n contract_vendor_name as contract_vendor_name,\n date_entered_workforce as date_entered_workforce,\n days_unemployed as days_unemployed,\n eligible_for_hire as eligible_for_hire,\n eligible_for_rehire_on_latest_termination as eligible_for_rehire_on_latest_termination,\n employee_compensation_currency as employee_compensation_currency,\n employee_compensation_frequency as employee_compensation_frequency,\n employee_compensation_primary_compensation_basis as employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay as employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances as employee_compensation_total_salary_and_allowances,\n end_employment_date as end_employment_date,\n expected_date_of_return as expected_date_of_return,\n expected_retirement_date as expected_retirement_date,\n first_day_of_work as first_day_of_work,\n has_international_assignment as has_international_assignment,\n hire_date as hire_date,\n hire_reason as hire_reason,\n hire_rescinded as hire_rescinded,\n home_country as home_country,\n hourly_frequency_currency as hourly_frequency_currency,\n hourly_frequency_frequency as hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis as hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay as hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances as hourly_frequency_total_salary_and_allowances,\n id as id,\n last_datefor_which_paid as last_datefor_which_paid,\n local_termination_reason as local_termination_reason,\n months_continuous_prior_employment as months_continuous_prior_employment,\n not_returning as not_returning,\n original_hire_date as original_hire_date,\n pay_group_frequency_currency as pay_group_frequency_currency,\n pay_group_frequency_frequency as pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis as pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay as pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances as pay_group_frequency_total_salary_and_allowances,\n pay_through_date as pay_through_date,\n primary_termination_category as primary_termination_category,\n primary_termination_reason as primary_termination_reason,\n probation_end_date as probation_end_date,\n probation_start_date as probation_start_date,\n reason_reference_id as reason_reference_id,\n regrettable_termination as regrettable_termination,\n rehire as rehire,\n resignation_date as resignation_date,\n retired as retired,\n retirement_date as retirement_date,\n retirement_eligibility_date as retirement_eligibility_date,\n return_unknown as return_unknown,\n seniority_date as seniority_date,\n severance_date as severance_date,\n terminated as terminated,\n termination_date as termination_date,\n termination_involuntary as termination_involuntary,\n termination_last_day_of_work as termination_last_day_of_work,\n time_off_service_date as time_off_service_date,\n universal_id as universal_id,\n user_id as user_id,\n vesting_date as vesting_date,\n worker_code as worker_code\n\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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 \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 annual_currency_summary_primary_compensation_basis,\n \n \n \n \n \n \n \n \n annual_currency_summary_total_base_pay,\n \n \n \n \n \n \n \n \n annual_currency_summary_total_salary_and_allowances,\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 \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 \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 \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 \n \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_metadata": {"name": "not_null", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__worker_history')) }}"}, "namespace": null}}, "test.workday.not_null_stg_workday__worker_history_worker_id.2cb7a23eb5": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1781284401.5874538, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__worker_history", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n academic_tenure_date as academic_tenure_date,\n active as active,\n active_status_date as active_status_date,\n annual_currency_summary_currency as annual_currency_summary_currency,\n annual_currency_summary_frequency as annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis as annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay as annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances as annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency as annual_summary_currency,\n annual_summary_frequency as annual_summary_frequency,\n annual_summary_primary_compensation_basis as annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay as annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances as annual_summary_total_salary_and_allowances,\n benefits_service_date as benefits_service_date,\n company_service_date as company_service_date,\n compensation_effective_date as compensation_effective_date,\n compensation_grade_id as compensation_grade_id,\n compensation_grade_profile_id as compensation_grade_profile_id,\n continuous_service_date as continuous_service_date,\n contract_assignment_details as contract_assignment_details,\n contract_currency_code as contract_currency_code,\n contract_end_date as contract_end_date,\n contract_frequency_name as contract_frequency_name,\n contract_pay_rate as contract_pay_rate,\n contract_vendor_name as contract_vendor_name,\n date_entered_workforce as date_entered_workforce,\n days_unemployed as days_unemployed,\n eligible_for_hire as eligible_for_hire,\n eligible_for_rehire_on_latest_termination as eligible_for_rehire_on_latest_termination,\n employee_compensation_currency as employee_compensation_currency,\n employee_compensation_frequency as employee_compensation_frequency,\n employee_compensation_primary_compensation_basis as employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay as employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances as employee_compensation_total_salary_and_allowances,\n end_employment_date as end_employment_date,\n expected_date_of_return as expected_date_of_return,\n expected_retirement_date as expected_retirement_date,\n first_day_of_work as first_day_of_work,\n has_international_assignment as has_international_assignment,\n hire_date as hire_date,\n hire_reason as hire_reason,\n hire_rescinded as hire_rescinded,\n home_country as home_country,\n hourly_frequency_currency as hourly_frequency_currency,\n hourly_frequency_frequency as hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis as hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay as hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances as hourly_frequency_total_salary_and_allowances,\n id as id,\n last_datefor_which_paid as last_datefor_which_paid,\n local_termination_reason as local_termination_reason,\n months_continuous_prior_employment as months_continuous_prior_employment,\n not_returning as not_returning,\n original_hire_date as original_hire_date,\n pay_group_frequency_currency as pay_group_frequency_currency,\n pay_group_frequency_frequency as pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis as pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay as pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances as pay_group_frequency_total_salary_and_allowances,\n pay_through_date as pay_through_date,\n primary_termination_category as primary_termination_category,\n primary_termination_reason as primary_termination_reason,\n probation_end_date as probation_end_date,\n probation_start_date as probation_start_date,\n reason_reference_id as reason_reference_id,\n regrettable_termination as regrettable_termination,\n rehire as rehire,\n resignation_date as resignation_date,\n retired as retired,\n retirement_date as retirement_date,\n retirement_eligibility_date as retirement_eligibility_date,\n return_unknown as return_unknown,\n seniority_date as seniority_date,\n severance_date as severance_date,\n terminated as terminated,\n termination_date as termination_date,\n termination_involuntary as termination_involuntary,\n termination_last_day_of_work as termination_last_day_of_work,\n time_off_service_date as time_off_service_date,\n universal_id as universal_id,\n user_id as user_id,\n vesting_date as vesting_date,\n worker_code as worker_code\n\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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 \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 annual_currency_summary_primary_compensation_basis,\n \n \n \n \n \n \n \n \n annual_currency_summary_total_base_pay,\n \n \n \n \n \n \n \n \n annual_currency_summary_total_salary_and_allowances,\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 \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 \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 \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 \n \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\".\"public_workday_dev\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n academic_tenure_date as academic_tenure_date,\n active as active,\n active_status_date as active_status_date,\n annual_currency_summary_currency as annual_currency_summary_currency,\n annual_currency_summary_frequency as annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis as annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay as annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances as annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency as annual_summary_currency,\n annual_summary_frequency as annual_summary_frequency,\n annual_summary_primary_compensation_basis as annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay as annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances as annual_summary_total_salary_and_allowances,\n benefits_service_date as benefits_service_date,\n company_service_date as company_service_date,\n compensation_effective_date as compensation_effective_date,\n compensation_grade_id as compensation_grade_id,\n compensation_grade_profile_id as compensation_grade_profile_id,\n continuous_service_date as continuous_service_date,\n contract_assignment_details as contract_assignment_details,\n contract_currency_code as contract_currency_code,\n contract_end_date as contract_end_date,\n contract_frequency_name as contract_frequency_name,\n contract_pay_rate as contract_pay_rate,\n contract_vendor_name as contract_vendor_name,\n date_entered_workforce as date_entered_workforce,\n days_unemployed as days_unemployed,\n eligible_for_hire as eligible_for_hire,\n eligible_for_rehire_on_latest_termination as eligible_for_rehire_on_latest_termination,\n employee_compensation_currency as employee_compensation_currency,\n employee_compensation_frequency as employee_compensation_frequency,\n employee_compensation_primary_compensation_basis as employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay as employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances as employee_compensation_total_salary_and_allowances,\n end_employment_date as end_employment_date,\n expected_date_of_return as expected_date_of_return,\n expected_retirement_date as expected_retirement_date,\n first_day_of_work as first_day_of_work,\n has_international_assignment as has_international_assignment,\n hire_date as hire_date,\n hire_reason as hire_reason,\n hire_rescinded as hire_rescinded,\n home_country as home_country,\n hourly_frequency_currency as hourly_frequency_currency,\n hourly_frequency_frequency as hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis as hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay as hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances as hourly_frequency_total_salary_and_allowances,\n id as id,\n last_datefor_which_paid as last_datefor_which_paid,\n local_termination_reason as local_termination_reason,\n months_continuous_prior_employment as months_continuous_prior_employment,\n not_returning as not_returning,\n original_hire_date as original_hire_date,\n pay_group_frequency_currency as pay_group_frequency_currency,\n pay_group_frequency_frequency as pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis as pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay as pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances as pay_group_frequency_total_salary_and_allowances,\n pay_through_date as pay_through_date,\n primary_termination_category as primary_termination_category,\n primary_termination_reason as primary_termination_reason,\n probation_end_date as probation_end_date,\n probation_start_date as probation_start_date,\n reason_reference_id as reason_reference_id,\n regrettable_termination as regrettable_termination,\n rehire as rehire,\n resignation_date as resignation_date,\n retired as retired,\n retirement_date as retirement_date,\n retirement_eligibility_date as retirement_eligibility_date,\n return_unknown as return_unknown,\n seniority_date as seniority_date,\n severance_date as severance_date,\n terminated as terminated,\n termination_date as termination_date,\n termination_involuntary as termination_involuntary,\n termination_last_day_of_work as termination_last_day_of_work,\n time_off_service_date as time_off_service_date,\n universal_id as universal_id,\n user_id as user_id,\n vesting_date as vesting_date,\n worker_code as worker_code\n\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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 \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 annual_currency_summary_primary_compensation_basis,\n \n \n \n \n \n \n \n \n annual_currency_summary_total_base_pay,\n \n \n \n \n \n \n \n \n annual_currency_summary_total_salary_and_allowances,\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 \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 \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 \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 \n \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_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_history')) }}"}, "namespace": null}}, "test.workday.unique_stg_workday__worker_position_history_history_unique_key.ff18ecb879": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1781284401.5897546, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__worker_position_history", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n academic_pay_setup_data_annual_work_period_end_date as academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date as academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year as academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date as academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date as academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language as business_site_summary_display_language,\n business_site_summary_local as business_site_summary_local,\n business_site_summary_location as business_site_summary_location,\n business_site_summary_location_type as business_site_summary_location_type,\n business_site_summary_name as business_site_summary_name,\n business_site_summary_scheduled_weekly_hours as business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile as business_site_summary_time_profile,\n business_title as business_title,\n critical_job as critical_job,\n default_weekly_hours as default_weekly_hours,\n difficulty_to_fill as difficulty_to_fill,\n effective_date as effective_date,\n employee_type as employee_type,\n end_date as end_date,\n end_employment_date as end_employment_date,\n exclude_from_head_count as exclude_from_head_count,\n expected_assignment_end_date as expected_assignment_end_date,\n external_employee as external_employee,\n federal_withholding_fein as federal_withholding_fein,\n frequency as frequency,\n full_time_equivalent_percentage as full_time_equivalent_percentage,\n headcount_restriction_code as headcount_restriction_code,\n home_country as home_country,\n host_country as host_country,\n international_assignment_type as international_assignment_type,\n is_primary_job as is_primary_job,\n job_exempt as job_exempt,\n job_profile_id as job_profile_id,\n management_level_code as management_level_code,\n paid_fte as paid_fte,\n pay_group as pay_group,\n pay_rate as pay_rate,\n pay_rate_type as pay_rate_type,\n pay_through_date as pay_through_date,\n payroll_entity as payroll_entity,\n payroll_file_number as payroll_file_number,\n position_id as position_id,\n regular_paid_equivalent_hours as regular_paid_equivalent_hours,\n scheduled_weekly_hours as scheduled_weekly_hours,\n specify_paid_fte as specify_paid_fte,\n specify_working_fte as specify_working_fte,\n start_date as start_date,\n start_international_assignment_reason as start_international_assignment_reason,\n work_hours_profile as work_hours_profile,\n work_shift as work_shift,\n work_shift_required as work_shift_required,\n work_space as work_space,\n worker_hours_profile_classification as worker_hours_profile_classification,\n worker_id as worker_id,\n working_fte as working_fte,\n working_time_frequency as working_time_frequency,\n working_time_unit as working_time_unit,\n working_time_value as working_time_value\n\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n academic_pay_setup_data_annual_work_period_end_date as academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date as academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year as academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date as academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date as academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language as business_site_summary_display_language,\n business_site_summary_local as business_site_summary_local,\n business_site_summary_location as business_site_summary_location,\n business_site_summary_location_type as business_site_summary_location_type,\n business_site_summary_name as business_site_summary_name,\n business_site_summary_scheduled_weekly_hours as business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile as business_site_summary_time_profile,\n business_title as business_title,\n critical_job as critical_job,\n default_weekly_hours as default_weekly_hours,\n difficulty_to_fill as difficulty_to_fill,\n effective_date as effective_date,\n employee_type as employee_type,\n end_date as end_date,\n end_employment_date as end_employment_date,\n exclude_from_head_count as exclude_from_head_count,\n expected_assignment_end_date as expected_assignment_end_date,\n external_employee as external_employee,\n federal_withholding_fein as federal_withholding_fein,\n frequency as frequency,\n full_time_equivalent_percentage as full_time_equivalent_percentage,\n headcount_restriction_code as headcount_restriction_code,\n home_country as home_country,\n host_country as host_country,\n international_assignment_type as international_assignment_type,\n is_primary_job as is_primary_job,\n job_exempt as job_exempt,\n job_profile_id as job_profile_id,\n management_level_code as management_level_code,\n paid_fte as paid_fte,\n pay_group as pay_group,\n pay_rate as pay_rate,\n pay_rate_type as pay_rate_type,\n pay_through_date as pay_through_date,\n payroll_entity as payroll_entity,\n payroll_file_number as payroll_file_number,\n position_id as position_id,\n regular_paid_equivalent_hours as regular_paid_equivalent_hours,\n scheduled_weekly_hours as scheduled_weekly_hours,\n specify_paid_fte as specify_paid_fte,\n specify_working_fte as specify_working_fte,\n start_date as start_date,\n start_international_assignment_reason as start_international_assignment_reason,\n work_hours_profile as work_hours_profile,\n work_shift as work_shift,\n work_shift_required as work_shift_required,\n work_space as work_space,\n worker_hours_profile_classification as worker_hours_profile_classification,\n worker_id as worker_id,\n working_fte as working_fte,\n working_time_frequency as working_time_frequency,\n working_time_unit as working_time_unit,\n working_time_value as working_time_value\n\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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_metadata": {"name": "unique", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_history')) }}"}, "namespace": null}}, "test.workday.not_null_stg_workday__worker_position_history_history_unique_key.a8e6e3f55e": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_workday__worker_p_c944587cb69904dc149ec54bf0f489e9"}, "created_at": 1781284401.5920246, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__worker_p_c944587cb69904dc149ec54bf0f489e9\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__worker_position_history", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n academic_pay_setup_data_annual_work_period_end_date as academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date as academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year as academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date as academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date as academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language as business_site_summary_display_language,\n business_site_summary_local as business_site_summary_local,\n business_site_summary_location as business_site_summary_location,\n business_site_summary_location_type as business_site_summary_location_type,\n business_site_summary_name as business_site_summary_name,\n business_site_summary_scheduled_weekly_hours as business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile as business_site_summary_time_profile,\n business_title as business_title,\n critical_job as critical_job,\n default_weekly_hours as default_weekly_hours,\n difficulty_to_fill as difficulty_to_fill,\n effective_date as effective_date,\n employee_type as employee_type,\n end_date as end_date,\n end_employment_date as end_employment_date,\n exclude_from_head_count as exclude_from_head_count,\n expected_assignment_end_date as expected_assignment_end_date,\n external_employee as external_employee,\n federal_withholding_fein as federal_withholding_fein,\n frequency as frequency,\n full_time_equivalent_percentage as full_time_equivalent_percentage,\n headcount_restriction_code as headcount_restriction_code,\n home_country as home_country,\n host_country as host_country,\n international_assignment_type as international_assignment_type,\n is_primary_job as is_primary_job,\n job_exempt as job_exempt,\n job_profile_id as job_profile_id,\n management_level_code as management_level_code,\n paid_fte as paid_fte,\n pay_group as pay_group,\n pay_rate as pay_rate,\n pay_rate_type as pay_rate_type,\n pay_through_date as pay_through_date,\n payroll_entity as payroll_entity,\n payroll_file_number as payroll_file_number,\n position_id as position_id,\n regular_paid_equivalent_hours as regular_paid_equivalent_hours,\n scheduled_weekly_hours as scheduled_weekly_hours,\n specify_paid_fte as specify_paid_fte,\n specify_working_fte as specify_working_fte,\n start_date as start_date,\n start_international_assignment_reason as start_international_assignment_reason,\n work_hours_profile as work_hours_profile,\n work_shift as work_shift,\n work_shift_required as work_shift_required,\n work_space as work_space,\n worker_hours_profile_classification as worker_hours_profile_classification,\n worker_id as worker_id,\n working_fte as working_fte,\n working_time_frequency as working_time_frequency,\n working_time_unit as working_time_unit,\n working_time_value as working_time_value\n\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n academic_pay_setup_data_annual_work_period_end_date as academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date as academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year as academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date as academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date as academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language as business_site_summary_display_language,\n business_site_summary_local as business_site_summary_local,\n business_site_summary_location as business_site_summary_location,\n business_site_summary_location_type as business_site_summary_location_type,\n business_site_summary_name as business_site_summary_name,\n business_site_summary_scheduled_weekly_hours as business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile as business_site_summary_time_profile,\n business_title as business_title,\n critical_job as critical_job,\n default_weekly_hours as default_weekly_hours,\n difficulty_to_fill as difficulty_to_fill,\n effective_date as effective_date,\n employee_type as employee_type,\n end_date as end_date,\n end_employment_date as end_employment_date,\n exclude_from_head_count as exclude_from_head_count,\n expected_assignment_end_date as expected_assignment_end_date,\n external_employee as external_employee,\n federal_withholding_fein as federal_withholding_fein,\n frequency as frequency,\n full_time_equivalent_percentage as full_time_equivalent_percentage,\n headcount_restriction_code as headcount_restriction_code,\n home_country as home_country,\n host_country as host_country,\n international_assignment_type as international_assignment_type,\n is_primary_job as is_primary_job,\n job_exempt as job_exempt,\n job_profile_id as job_profile_id,\n management_level_code as management_level_code,\n paid_fte as paid_fte,\n pay_group as pay_group,\n pay_rate as pay_rate,\n pay_rate_type as pay_rate_type,\n pay_through_date as pay_through_date,\n payroll_entity as payroll_entity,\n payroll_file_number as payroll_file_number,\n position_id as position_id,\n regular_paid_equivalent_hours as regular_paid_equivalent_hours,\n scheduled_weekly_hours as scheduled_weekly_hours,\n specify_paid_fte as specify_paid_fte,\n specify_working_fte as specify_working_fte,\n start_date as start_date,\n start_international_assignment_reason as start_international_assignment_reason,\n work_hours_profile as work_hours_profile,\n work_shift as work_shift,\n work_shift_required as work_shift_required,\n work_space as work_space,\n worker_hours_profile_classification as worker_hours_profile_classification,\n worker_id as worker_id,\n working_fte as working_fte,\n working_time_frequency as working_time_frequency,\n working_time_unit as working_time_unit,\n working_time_value as working_time_value\n\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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_metadata": {"name": "not_null", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_history')) }}"}, "namespace": null}}, "test.workday.not_null_stg_workday__worker_position_history_worker_id.b7059c600d": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1781284401.5942554, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__worker_position_history", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n academic_pay_setup_data_annual_work_period_end_date as academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date as academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year as academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date as academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date as academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language as business_site_summary_display_language,\n business_site_summary_local as business_site_summary_local,\n business_site_summary_location as business_site_summary_location,\n business_site_summary_location_type as business_site_summary_location_type,\n business_site_summary_name as business_site_summary_name,\n business_site_summary_scheduled_weekly_hours as business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile as business_site_summary_time_profile,\n business_title as business_title,\n critical_job as critical_job,\n default_weekly_hours as default_weekly_hours,\n difficulty_to_fill as difficulty_to_fill,\n effective_date as effective_date,\n employee_type as employee_type,\n end_date as end_date,\n end_employment_date as end_employment_date,\n exclude_from_head_count as exclude_from_head_count,\n expected_assignment_end_date as expected_assignment_end_date,\n external_employee as external_employee,\n federal_withholding_fein as federal_withholding_fein,\n frequency as frequency,\n full_time_equivalent_percentage as full_time_equivalent_percentage,\n headcount_restriction_code as headcount_restriction_code,\n home_country as home_country,\n host_country as host_country,\n international_assignment_type as international_assignment_type,\n is_primary_job as is_primary_job,\n job_exempt as job_exempt,\n job_profile_id as job_profile_id,\n management_level_code as management_level_code,\n paid_fte as paid_fte,\n pay_group as pay_group,\n pay_rate as pay_rate,\n pay_rate_type as pay_rate_type,\n pay_through_date as pay_through_date,\n payroll_entity as payroll_entity,\n payroll_file_number as payroll_file_number,\n position_id as position_id,\n regular_paid_equivalent_hours as regular_paid_equivalent_hours,\n scheduled_weekly_hours as scheduled_weekly_hours,\n specify_paid_fte as specify_paid_fte,\n specify_working_fte as specify_working_fte,\n start_date as start_date,\n start_international_assignment_reason as start_international_assignment_reason,\n work_hours_profile as work_hours_profile,\n work_shift as work_shift,\n work_shift_required as work_shift_required,\n work_space as work_space,\n worker_hours_profile_classification as worker_hours_profile_classification,\n worker_id as worker_id,\n working_fte as working_fte,\n working_time_frequency as working_time_frequency,\n working_time_unit as working_time_unit,\n working_time_value as working_time_value\n\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n academic_pay_setup_data_annual_work_period_end_date as academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date as academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year as academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date as academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date as academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language as business_site_summary_display_language,\n business_site_summary_local as business_site_summary_local,\n business_site_summary_location as business_site_summary_location,\n business_site_summary_location_type as business_site_summary_location_type,\n business_site_summary_name as business_site_summary_name,\n business_site_summary_scheduled_weekly_hours as business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile as business_site_summary_time_profile,\n business_title as business_title,\n critical_job as critical_job,\n default_weekly_hours as default_weekly_hours,\n difficulty_to_fill as difficulty_to_fill,\n effective_date as effective_date,\n employee_type as employee_type,\n end_date as end_date,\n end_employment_date as end_employment_date,\n exclude_from_head_count as exclude_from_head_count,\n expected_assignment_end_date as expected_assignment_end_date,\n external_employee as external_employee,\n federal_withholding_fein as federal_withholding_fein,\n frequency as frequency,\n full_time_equivalent_percentage as full_time_equivalent_percentage,\n headcount_restriction_code as headcount_restriction_code,\n home_country as home_country,\n host_country as host_country,\n international_assignment_type as international_assignment_type,\n is_primary_job as is_primary_job,\n job_exempt as job_exempt,\n job_profile_id as job_profile_id,\n management_level_code as management_level_code,\n paid_fte as paid_fte,\n pay_group as pay_group,\n pay_rate as pay_rate,\n pay_rate_type as pay_rate_type,\n pay_through_date as pay_through_date,\n payroll_entity as payroll_entity,\n payroll_file_number as payroll_file_number,\n position_id as position_id,\n regular_paid_equivalent_hours as regular_paid_equivalent_hours,\n scheduled_weekly_hours as scheduled_weekly_hours,\n specify_paid_fte as specify_paid_fte,\n specify_working_fte as specify_working_fte,\n start_date as start_date,\n start_international_assignment_reason as start_international_assignment_reason,\n work_hours_profile as work_hours_profile,\n work_shift as work_shift,\n work_shift_required as work_shift_required,\n work_space as work_space,\n worker_hours_profile_classification as worker_hours_profile_classification,\n worker_id as worker_id,\n working_fte as working_fte,\n working_time_frequency as working_time_frequency,\n working_time_unit as working_time_unit,\n working_time_value as working_time_value\n\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_history')) }}"}, "namespace": null}}, "test.workday.not_null_stg_workday__worker_position_history_position_id.02ef0674c9": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1781284401.596628, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__worker_position_history", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n academic_pay_setup_data_annual_work_period_end_date as academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date as academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year as academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date as academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date as academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language as business_site_summary_display_language,\n business_site_summary_local as business_site_summary_local,\n business_site_summary_location as business_site_summary_location,\n business_site_summary_location_type as business_site_summary_location_type,\n business_site_summary_name as business_site_summary_name,\n business_site_summary_scheduled_weekly_hours as business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile as business_site_summary_time_profile,\n business_title as business_title,\n critical_job as critical_job,\n default_weekly_hours as default_weekly_hours,\n difficulty_to_fill as difficulty_to_fill,\n effective_date as effective_date,\n employee_type as employee_type,\n end_date as end_date,\n end_employment_date as end_employment_date,\n exclude_from_head_count as exclude_from_head_count,\n expected_assignment_end_date as expected_assignment_end_date,\n external_employee as external_employee,\n federal_withholding_fein as federal_withholding_fein,\n frequency as frequency,\n full_time_equivalent_percentage as full_time_equivalent_percentage,\n headcount_restriction_code as headcount_restriction_code,\n home_country as home_country,\n host_country as host_country,\n international_assignment_type as international_assignment_type,\n is_primary_job as is_primary_job,\n job_exempt as job_exempt,\n job_profile_id as job_profile_id,\n management_level_code as management_level_code,\n paid_fte as paid_fte,\n pay_group as pay_group,\n pay_rate as pay_rate,\n pay_rate_type as pay_rate_type,\n pay_through_date as pay_through_date,\n payroll_entity as payroll_entity,\n payroll_file_number as payroll_file_number,\n position_id as position_id,\n regular_paid_equivalent_hours as regular_paid_equivalent_hours,\n scheduled_weekly_hours as scheduled_weekly_hours,\n specify_paid_fte as specify_paid_fte,\n specify_working_fte as specify_working_fte,\n start_date as start_date,\n start_international_assignment_reason as start_international_assignment_reason,\n work_hours_profile as work_hours_profile,\n work_shift as work_shift,\n work_shift_required as work_shift_required,\n work_space as work_space,\n worker_hours_profile_classification as worker_hours_profile_classification,\n worker_id as worker_id,\n working_fte as working_fte,\n working_time_frequency as working_time_frequency,\n working_time_unit as working_time_unit,\n working_time_value as working_time_value\n\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n academic_pay_setup_data_annual_work_period_end_date as academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date as academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year as academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date as academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date as academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language as business_site_summary_display_language,\n business_site_summary_local as business_site_summary_local,\n business_site_summary_location as business_site_summary_location,\n business_site_summary_location_type as business_site_summary_location_type,\n business_site_summary_name as business_site_summary_name,\n business_site_summary_scheduled_weekly_hours as business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile as business_site_summary_time_profile,\n business_title as business_title,\n critical_job as critical_job,\n default_weekly_hours as default_weekly_hours,\n difficulty_to_fill as difficulty_to_fill,\n effective_date as effective_date,\n employee_type as employee_type,\n end_date as end_date,\n end_employment_date as end_employment_date,\n exclude_from_head_count as exclude_from_head_count,\n expected_assignment_end_date as expected_assignment_end_date,\n external_employee as external_employee,\n federal_withholding_fein as federal_withholding_fein,\n frequency as frequency,\n full_time_equivalent_percentage as full_time_equivalent_percentage,\n headcount_restriction_code as headcount_restriction_code,\n home_country as home_country,\n host_country as host_country,\n international_assignment_type as international_assignment_type,\n is_primary_job as is_primary_job,\n job_exempt as job_exempt,\n job_profile_id as job_profile_id,\n management_level_code as management_level_code,\n paid_fte as paid_fte,\n pay_group as pay_group,\n pay_rate as pay_rate,\n pay_rate_type as pay_rate_type,\n pay_through_date as pay_through_date,\n payroll_entity as payroll_entity,\n payroll_file_number as payroll_file_number,\n position_id as position_id,\n regular_paid_equivalent_hours as regular_paid_equivalent_hours,\n scheduled_weekly_hours as scheduled_weekly_hours,\n specify_paid_fte as specify_paid_fte,\n specify_working_fte as specify_working_fte,\n start_date as start_date,\n start_international_assignment_reason as start_international_assignment_reason,\n work_hours_profile as work_hours_profile,\n work_shift as work_shift,\n work_shift_required as work_shift_required,\n work_space as work_space,\n worker_hours_profile_classification as worker_hours_profile_classification,\n worker_id as worker_id,\n working_fte as working_fte,\n working_time_frequency as working_time_frequency,\n working_time_unit as working_time_unit,\n working_time_value as working_time_value\n\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_history')) }}"}, "namespace": null}}, "test.workday.unique_stg_workday__worker_position_organization_history_history_unique_key.f54a0e0398": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "unique_stg_workday__worker_pos_1a68f337fa0582521a7db4f909dbfc22"}, "created_at": 1781284401.5989459, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}{{ config(alias=\"unique_stg_workday__worker_pos_1a68f337fa0582521a7db4f909dbfc22\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_history", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n index as index,\n position_id as position_id,\n worker_id as worker_id,\n date_of_pay_group_assignment as date_of_pay_group_assignment,\n organization_id as organization_id,\n primary_business_site as primary_business_site,\n used_in_change_organization_assignments as used_in_change_organization_assignments\n\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n index as index,\n position_id as position_id,\n worker_id as worker_id,\n date_of_pay_group_assignment as date_of_pay_group_assignment,\n organization_id as organization_id,\n primary_business_site as primary_business_site,\n used_in_change_organization_assignments as used_in_change_organization_assignments\n\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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_metadata": {"name": "unique", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization_history')) }}"}, "namespace": null}}, "test.workday.not_null_stg_workday__worker_position_organization_history_history_unique_key.ae1422e8bf": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_workday__worker_p_518901ce1a15646095927d6a041af3d6"}, "created_at": 1781284401.6011846, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__worker_p_518901ce1a15646095927d6a041af3d6\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_history", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n index as index,\n position_id as position_id,\n worker_id as worker_id,\n date_of_pay_group_assignment as date_of_pay_group_assignment,\n organization_id as organization_id,\n primary_business_site as primary_business_site,\n used_in_change_organization_assignments as used_in_change_organization_assignments\n\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n index as index,\n position_id as position_id,\n worker_id as worker_id,\n date_of_pay_group_assignment as date_of_pay_group_assignment,\n organization_id as organization_id,\n primary_business_site as primary_business_site,\n used_in_change_organization_assignments as used_in_change_organization_assignments\n\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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_metadata": {"name": "not_null", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization_history')) }}"}, "namespace": null}}, "test.workday.not_null_stg_workday__worker_position_organization_history_worker_id.d364de4bf3": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_workday__worker_p_e71f2575b8bdd1b669d2663f9b8d436a"}, "created_at": 1781284401.6034312, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__worker_p_e71f2575b8bdd1b669d2663f9b8d436a\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_history", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n index as index,\n position_id as position_id,\n worker_id as worker_id,\n date_of_pay_group_assignment as date_of_pay_group_assignment,\n organization_id as organization_id,\n primary_business_site as primary_business_site,\n used_in_change_organization_assignments as used_in_change_organization_assignments\n\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n index as index,\n position_id as position_id,\n worker_id as worker_id,\n date_of_pay_group_assignment as date_of_pay_group_assignment,\n organization_id as organization_id,\n primary_business_site as primary_business_site,\n used_in_change_organization_assignments as used_in_change_organization_assignments\n\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization_history')) }}"}, "namespace": null}}, "test.workday.not_null_stg_workday__worker_position_organization_history_position_id.9676945ef5": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_workday__worker_p_0ecc03f267616c4f7fc29bef1bd47441"}, "created_at": 1781284401.6056678, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__worker_p_0ecc03f267616c4f7fc29bef1bd47441\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_history", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n index as index,\n position_id as position_id,\n worker_id as worker_id,\n date_of_pay_group_assignment as date_of_pay_group_assignment,\n organization_id as organization_id,\n primary_business_site as primary_business_site,\n used_in_change_organization_assignments as used_in_change_organization_assignments\n\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n index as index,\n position_id as position_id,\n worker_id as worker_id,\n date_of_pay_group_assignment as date_of_pay_group_assignment,\n organization_id as organization_id,\n primary_business_site as primary_business_site,\n used_in_change_organization_assignments as used_in_change_organization_assignments\n\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization_history')) }}"}, "namespace": null}}, "test.workday.not_null_stg_workday__worker_position_organization_history_organization_id.97cda6043d": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_workday__worker_p_99bb646f526b3826c22dee3fd24856d0"}, "created_at": 1781284401.6080377, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__worker_p_99bb646f526b3826c22dee3fd24856d0\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_history", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n index as index,\n position_id as position_id,\n worker_id as worker_id,\n date_of_pay_group_assignment as date_of_pay_group_assignment,\n organization_id as organization_id,\n primary_business_site as primary_business_site,\n used_in_change_organization_assignments as used_in_change_organization_assignments\n\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n index as index,\n position_id as position_id,\n worker_id as worker_id,\n date_of_pay_group_assignment as date_of_pay_group_assignment,\n organization_id as organization_id,\n primary_business_site as primary_business_site,\n used_in_change_organization_assignments as used_in_change_organization_assignments\n\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization_history')) }}"}, "namespace": null}}, "test.workday.not_null_stg_workday__job_profile_job_profile_id.1166250eaa": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1781284401.695657, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__job_profile_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n additional_job_description as additional_job_description,\n compensation_grade_id as compensation_grade_id,\n critical_job as critical_job,\n description as description,\n difficulty_to_fill as difficulty_to_fill,\n effective_date as effective_date,\n id as id,\n inactive as inactive,\n include_job_code_in_name as include_job_code_in_name,\n job_category_id as job_category_id,\n job_profile_code as job_profile_code,\n level as level,\n management_level as management_level,\n private_title as private_title,\n public_job as public_job,\n referral_payment_plan as referral_payment_plan,\n summary as summary,\n title as title,\n union_code as union_code,\n union_membership_requirement as union_membership_requirement,\n work_shift_required as work_shift_required,\n work_study_award_source_code as work_study_award_source_code,\n work_study_requirement_option_code as work_study_requirement_option_code\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__job_profile_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n additional_job_description as additional_job_description,\n compensation_grade_id as compensation_grade_id,\n critical_job as critical_job,\n description as description,\n difficulty_to_fill as difficulty_to_fill,\n effective_date as effective_date,\n id as id,\n inactive as inactive,\n include_job_code_in_name as include_job_code_in_name,\n job_category_id as job_category_id,\n job_profile_code as job_profile_code,\n level as level,\n management_level as management_level,\n private_title as private_title,\n public_job as public_job,\n referral_payment_plan as referral_payment_plan,\n summary as summary,\n title as title,\n union_code as union_code,\n union_membership_requirement as union_membership_requirement,\n work_shift_required as work_shift_required,\n work_study_award_source_code as work_study_award_source_code,\n work_study_requirement_option_code as work_study_requirement_option_code\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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_metadata": {"name": "not_null", "kwargs": {"column_name": "job_profile_id", "model": "{{ get_where_subquery(ref('stg_workday__job_profile')) }}"}, "namespace": null}}, "test.workday.not_null_stg_workday__job_family_job_profile_job_family_id.f5bbfef4e8": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1781284401.698276, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__job_family_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n job_family_id as job_family_id,\n job_profile_id as job_profile_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n job_family_id as job_family_id,\n job_profile_id as job_profile_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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_metadata": {"name": "not_null", "kwargs": {"column_name": "job_family_id", "model": "{{ get_where_subquery(ref('stg_workday__job_family_job_profile')) }}"}, "namespace": null}}, "test.workday.not_null_stg_workday__job_family_job_profile_job_profile_id.c7a636316c": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1781284401.7007089, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__job_family_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n job_family_id as job_family_id,\n job_profile_id as job_profile_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n job_family_id as job_family_id,\n job_profile_id as job_profile_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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_metadata": {"name": "not_null", "kwargs": {"column_name": "job_profile_id", "model": "{{ get_where_subquery(ref('stg_workday__job_family_job_profile')) }}"}, "namespace": null}}, "test.workday.not_null_stg_workday__job_family_job_family_id.0dbfcdcd3f": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1781284401.703028, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__job_family", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__job_family_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n effective_date as effective_date,\n id as id,\n inactive as inactive,\n job_family_code as job_family_code,\n summary as summary\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__job_family_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n effective_date as effective_date,\n id as id,\n inactive as inactive,\n job_family_code as job_family_code,\n summary as summary\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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_metadata": {"name": "not_null", "kwargs": {"column_name": "job_family_id", "model": "{{ get_where_subquery(ref('stg_workday__job_family')) }}"}, "namespace": null}}, "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_id.589a75cf0b": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1781284401.7052817, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__job_family_job_family_group", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n job_family_id as job_family_id,\n job_family_group_id as job_family_group_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n job_family_id as job_family_id,\n job_family_group_id as job_family_group_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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_metadata": {"name": "not_null", "kwargs": {"column_name": "job_family_id", "model": "{{ get_where_subquery(ref('stg_workday__job_family_job_family_group')) }}"}, "namespace": null}}, "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_group_id.f105a73bde": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_workday__job_fami_c0a4daa8ee8fbab4cd5d40cfe44484af"}, "created_at": 1781284401.707674, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__job_fami_c0a4daa8ee8fbab4cd5d40cfe44484af\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__job_family_job_family_group", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n job_family_id as job_family_id,\n job_family_group_id as job_family_group_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n job_family_id as job_family_id,\n job_family_group_id as job_family_group_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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_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}}, "test.workday.not_null_stg_workday__job_family_group_job_family_group_id.e25ebb9009": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1781284401.7099571, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__job_family_group", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__job_family_group_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n effective_date as effective_date,\n id as id,\n inactive as inactive,\n job_family_group_code as job_family_group_code,\n summary as summary\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__job_family_group_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n effective_date as effective_date,\n id as id,\n inactive as inactive,\n job_family_group_code as job_family_group_code,\n summary as summary\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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_metadata": {"name": "not_null", "kwargs": {"column_name": "job_family_group_id", "model": "{{ get_where_subquery(ref('stg_workday__job_family_group')) }}"}, "namespace": null}}, "test.workday.not_null_stg_workday__organization_role_organization_id.917651c7a7": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1781284401.7123353, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__organization_role", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n organization_id as organization_id,\n organization_role_code as organization_role_code,\n role_id as role_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n organization_id as organization_id,\n organization_role_code as organization_role_code,\n role_id as role_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__organization_role')) }}"}, "namespace": null}}, "test.workday.not_null_stg_workday__organization_role_organization_role_id.2ea32fe93f": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1781284401.7145967, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__organization_role", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n organization_id as organization_id,\n organization_role_code as organization_role_code,\n role_id as role_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n organization_id as organization_id,\n organization_role_code as organization_role_code,\n role_id as role_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_role_id", "model": "{{ get_where_subquery(ref('stg_workday__organization_role')) }}"}, "namespace": null}}, "test.workday.not_null_stg_workday__organization_role_worker_organization_worker_code.ddc8d566ca": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_workday__organiza_0783852f549eb5adccc96839860dacda"}, "created_at": 1781284401.7168765, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__organiza_0783852f549eb5adccc96839860dacda\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__organization_role_worker", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n associated_worker_id as associated_worker_id,\n organization_id as organization_id,\n role_id as role_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n associated_worker_id as associated_worker_id,\n organization_id as organization_id,\n role_id as role_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_worker_code", "model": "{{ get_where_subquery(ref('stg_workday__organization_role_worker')) }}"}, "namespace": null}}, "test.workday.not_null_stg_workday__organization_role_worker_organization_id.b98960b9f5": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1781284401.7191362, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__organization_role_worker", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n associated_worker_id as associated_worker_id,\n organization_id as organization_id,\n role_id as role_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n associated_worker_id as associated_worker_id,\n organization_id as organization_id,\n role_id as role_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__organization_role_worker')) }}"}, "namespace": null}}, "test.workday.not_null_stg_workday__organization_role_worker_role_id.1703a44b72": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1781284401.7215312, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__organization_role_worker", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n associated_worker_id as associated_worker_id,\n organization_id as organization_id,\n role_id as role_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n associated_worker_id as associated_worker_id,\n organization_id as organization_id,\n role_id as role_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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_metadata": {"name": "not_null", "kwargs": {"column_name": "role_id", "model": "{{ get_where_subquery(ref('stg_workday__organization_role_worker')) }}"}, "namespace": null}}, "test.workday.not_null_stg_workday__organization_job_family_job_family_id.a2ab2ad617": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1781284401.7237852, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__organization_job_family", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__organization_job_family_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n job_family_group_id as job_family_group_id,\n job_family_id as job_family_id,\n organization_id as organization_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__organization_job_family_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n job_family_group_id as job_family_group_id,\n job_family_id as job_family_id,\n organization_id as organization_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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_metadata": {"name": "not_null", "kwargs": {"column_name": "job_family_id", "model": "{{ get_where_subquery(ref('stg_workday__organization_job_family')) }}"}, "namespace": null}}, "test.workday.not_null_stg_workday__organization_job_family_organization_id.3fc5ce5e7e": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1781284401.7261813, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__organization_job_family", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__organization_job_family_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n job_family_group_id as job_family_group_id,\n job_family_id as job_family_id,\n organization_id as organization_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__organization_job_family_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n job_family_group_id as job_family_group_id,\n job_family_id as job_family_id,\n organization_id as organization_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__organization_job_family')) }}"}, "namespace": null}}, "test.workday.not_null_stg_workday__organization_organization_id.f11f86e5c7": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1781284401.7285302, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__organization", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__organization_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n availability_date as availability_date,\n available_for_hire as available_for_hire,\n code as code,\n description as description,\n external_url as external_url,\n hiring_freeze as hiring_freeze,\n id as id,\n inactive as inactive,\n inactive_date as inactive_date,\n include_manager_in_name as include_manager_in_name,\n include_organization_code_in_name as include_organization_code_in_name,\n last_updated_date_time as last_updated_date_time,\n location as location,\n manager_id as manager_id,\n name as name,\n organization_code as organization_code,\n organization_owner_id as organization_owner_id,\n staffing_model as staffing_model,\n sub_type as sub_type,\n superior_organization_id as superior_organization_id,\n supervisory_position_availability_date as supervisory_position_availability_date,\n supervisory_position_earliest_hire_date as supervisory_position_earliest_hire_date,\n supervisory_position_time_type as supervisory_position_time_type,\n supervisory_position_worker_type as supervisory_position_worker_type,\n top_level_organization_id as top_level_organization_id,\n type as type,\n visibility as visibility\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__organization_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n availability_date as availability_date,\n available_for_hire as available_for_hire,\n code as code,\n description as description,\n external_url as external_url,\n hiring_freeze as hiring_freeze,\n id as id,\n inactive as inactive,\n inactive_date as inactive_date,\n include_manager_in_name as include_manager_in_name,\n include_organization_code_in_name as include_organization_code_in_name,\n last_updated_date_time as last_updated_date_time,\n location as location,\n manager_id as manager_id,\n name as name,\n organization_code as organization_code,\n organization_owner_id as organization_owner_id,\n staffing_model as staffing_model,\n sub_type as sub_type,\n superior_organization_id as superior_organization_id,\n supervisory_position_availability_date as supervisory_position_availability_date,\n supervisory_position_earliest_hire_date as supervisory_position_earliest_hire_date,\n supervisory_position_time_type as supervisory_position_time_type,\n supervisory_position_worker_type as supervisory_position_worker_type,\n top_level_organization_id as top_level_organization_id,\n type as type,\n visibility as visibility\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__organization')) }}"}, "namespace": null}}, "test.workday.not_null_stg_workday__position_organization_organization_id.567af692ad": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1781284401.7308915, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__position_organization_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n organization_id as organization_id,\n position_id as position_id,\n type as type\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__position_organization_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n organization_id as organization_id,\n position_id as position_id,\n type as type\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__position_organization')) }}"}, "namespace": null}}, "test.workday.not_null_stg_workday__position_organization_position_id.f62eb486b7": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1781284401.7333326, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__position_organization_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n organization_id as organization_id,\n position_id as position_id,\n type as type\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__position_organization_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n organization_id as organization_id,\n position_id as position_id,\n type as type\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__position_organization')) }}"}, "namespace": null}}, "test.workday.not_null_stg_workday__position_position_id.8a8bc89d4e": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1781284401.7356281, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__position", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__position_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n academic_tenure_eligible as academic_tenure_eligible,\n availability_date as availability_date,\n available_for_hire as available_for_hire,\n available_for_overlap as available_for_overlap,\n available_for_recruiting as available_for_recruiting,\n closed as closed,\n compensation_grade_code as compensation_grade_code,\n compensation_grade_profile_code as compensation_grade_profile_code,\n compensation_package_code as compensation_package_code,\n compensation_step_code as compensation_step_code,\n critical_job as critical_job,\n difficulty_to_fill_code as difficulty_to_fill_code,\n earliest_hire_date as earliest_hire_date,\n earliest_overlap_date as earliest_overlap_date,\n effective_date as effective_date,\n hiring_freeze as hiring_freeze,\n id as id,\n job_description as job_description,\n job_description_summary as job_description_summary,\n job_posting_title as job_posting_title,\n position_code as position_code,\n position_time_type_code as position_time_type_code,\n primary_compensation_basis as primary_compensation_basis,\n primary_compensation_basis_amount_change as primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change as primary_compensation_basis_percent_change,\n supervisory_organization_id as supervisory_organization_id,\n work_shift_required as work_shift_required,\n worker_for_filled_position_id as worker_for_filled_position_id,\n worker_position_id as worker_position_id,\n worker_type_code as worker_type_code\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__position_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n academic_tenure_eligible as academic_tenure_eligible,\n availability_date as availability_date,\n available_for_hire as available_for_hire,\n available_for_overlap as available_for_overlap,\n available_for_recruiting as available_for_recruiting,\n closed as closed,\n compensation_grade_code as compensation_grade_code,\n compensation_grade_profile_code as compensation_grade_profile_code,\n compensation_package_code as compensation_package_code,\n compensation_step_code as compensation_step_code,\n critical_job as critical_job,\n difficulty_to_fill_code as difficulty_to_fill_code,\n earliest_hire_date as earliest_hire_date,\n earliest_overlap_date as earliest_overlap_date,\n effective_date as effective_date,\n hiring_freeze as hiring_freeze,\n id as id,\n job_description as job_description,\n job_description_summary as job_description_summary,\n job_posting_title as job_posting_title,\n position_code as position_code,\n position_time_type_code as position_time_type_code,\n primary_compensation_basis as primary_compensation_basis,\n primary_compensation_basis_amount_change as primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change as primary_compensation_basis_percent_change,\n supervisory_organization_id as supervisory_organization_id,\n work_shift_required as work_shift_required,\n worker_for_filled_position_id as worker_for_filled_position_id,\n worker_position_id as worker_position_id,\n worker_type_code as worker_type_code\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__position')) }}"}, "namespace": null}}, "test.workday.not_null_stg_workday__position_job_profile_job_profile_id.214e63eb51": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1781284401.737961, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__position_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n difficulty_to_fill_code as difficulty_to_fill_code,\n is_critical_job as is_critical_job,\n job_category_code as job_category_code,\n job_profile_id as job_profile_id,\n management_level_code as management_level_code,\n name as name,\n position_id as position_id,\n work_shift_required as work_shift_required\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n difficulty_to_fill_code as difficulty_to_fill_code,\n is_critical_job as is_critical_job,\n job_category_code as job_category_code,\n job_profile_id as job_profile_id,\n management_level_code as management_level_code,\n name as name,\n position_id as position_id,\n work_shift_required as work_shift_required\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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_metadata": {"name": "not_null", "kwargs": {"column_name": "job_profile_id", "model": "{{ get_where_subquery(ref('stg_workday__position_job_profile')) }}"}, "namespace": null}}, "test.workday.not_null_stg_workday__position_job_profile_position_id.edebffbee7": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1781284401.7402787, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__position_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n difficulty_to_fill_code as difficulty_to_fill_code,\n is_critical_job as is_critical_job,\n job_category_code as job_category_code,\n job_profile_id as job_profile_id,\n management_level_code as management_level_code,\n name as name,\n position_id as position_id,\n work_shift_required as work_shift_required\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n difficulty_to_fill_code as difficulty_to_fill_code,\n is_critical_job as is_critical_job,\n job_category_code as job_category_code,\n job_profile_id as job_profile_id,\n management_level_code as management_level_code,\n name as name,\n position_id as position_id,\n work_shift_required as work_shift_required\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__position_job_profile')) }}"}, "namespace": null}}, "test.workday.not_null_stg_workday__worker_worker_id.8dae310560": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1781284401.7427232, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__worker", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n academic_tenure_date as academic_tenure_date,\n active as active,\n active_status_date as active_status_date,\n annual_currency_summary_currency as annual_currency_summary_currency,\n annual_currency_summary_frequency as annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis as annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay as annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances as annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency as annual_summary_currency,\n annual_summary_frequency as annual_summary_frequency,\n annual_summary_primary_compensation_basis as annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay as annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances as annual_summary_total_salary_and_allowances,\n benefits_service_date as benefits_service_date,\n company_service_date as company_service_date,\n compensation_effective_date as compensation_effective_date,\n compensation_grade_id as compensation_grade_id,\n compensation_grade_profile_id as compensation_grade_profile_id,\n continuous_service_date as continuous_service_date,\n contract_assignment_details as contract_assignment_details,\n contract_currency_code as contract_currency_code,\n contract_end_date as contract_end_date,\n contract_frequency_name as contract_frequency_name,\n contract_pay_rate as contract_pay_rate,\n contract_vendor_name as contract_vendor_name,\n date_entered_workforce as date_entered_workforce,\n days_unemployed as days_unemployed,\n eligible_for_hire as eligible_for_hire,\n eligible_for_rehire_on_latest_termination as eligible_for_rehire_on_latest_termination,\n employee_compensation_currency as employee_compensation_currency,\n employee_compensation_frequency as employee_compensation_frequency,\n employee_compensation_primary_compensation_basis as employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay as employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances as employee_compensation_total_salary_and_allowances,\n end_employment_date as end_employment_date,\n expected_date_of_return as expected_date_of_return,\n expected_retirement_date as expected_retirement_date,\n first_day_of_work as first_day_of_work,\n has_international_assignment as has_international_assignment,\n hire_date as hire_date,\n hire_reason as hire_reason,\n hire_rescinded as hire_rescinded,\n home_country as home_country,\n hourly_frequency_currency as hourly_frequency_currency,\n hourly_frequency_frequency as hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis as hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay as hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances as hourly_frequency_total_salary_and_allowances,\n id as id,\n last_datefor_which_paid as last_datefor_which_paid,\n local_termination_reason as local_termination_reason,\n months_continuous_prior_employment as months_continuous_prior_employment,\n not_returning as not_returning,\n original_hire_date as original_hire_date,\n pay_group_frequency_currency as pay_group_frequency_currency,\n pay_group_frequency_frequency as pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis as pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay as pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances as pay_group_frequency_total_salary_and_allowances,\n pay_through_date as pay_through_date,\n primary_termination_category as primary_termination_category,\n primary_termination_reason as primary_termination_reason,\n probation_end_date as probation_end_date,\n probation_start_date as probation_start_date,\n reason_reference_id as reason_reference_id,\n regrettable_termination as regrettable_termination,\n rehire as rehire,\n resignation_date as resignation_date,\n retired as retired,\n retirement_date as retirement_date,\n retirement_eligibility_date as retirement_eligibility_date,\n return_unknown as return_unknown,\n seniority_date as seniority_date,\n severance_date as severance_date,\n terminated as terminated,\n termination_date as termination_date,\n termination_involuntary as termination_involuntary,\n termination_last_day_of_work as termination_last_day_of_work,\n time_off_service_date as time_off_service_date,\n universal_id as universal_id,\n user_id as user_id,\n vesting_date as vesting_date,\n worker_code as worker_code\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n academic_tenure_date as academic_tenure_date,\n active as active,\n active_status_date as active_status_date,\n annual_currency_summary_currency as annual_currency_summary_currency,\n annual_currency_summary_frequency as annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis as annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay as annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances as annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency as annual_summary_currency,\n annual_summary_frequency as annual_summary_frequency,\n annual_summary_primary_compensation_basis as annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay as annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances as annual_summary_total_salary_and_allowances,\n benefits_service_date as benefits_service_date,\n company_service_date as company_service_date,\n compensation_effective_date as compensation_effective_date,\n compensation_grade_id as compensation_grade_id,\n compensation_grade_profile_id as compensation_grade_profile_id,\n continuous_service_date as continuous_service_date,\n contract_assignment_details as contract_assignment_details,\n contract_currency_code as contract_currency_code,\n contract_end_date as contract_end_date,\n contract_frequency_name as contract_frequency_name,\n contract_pay_rate as contract_pay_rate,\n contract_vendor_name as contract_vendor_name,\n date_entered_workforce as date_entered_workforce,\n days_unemployed as days_unemployed,\n eligible_for_hire as eligible_for_hire,\n eligible_for_rehire_on_latest_termination as eligible_for_rehire_on_latest_termination,\n employee_compensation_currency as employee_compensation_currency,\n employee_compensation_frequency as employee_compensation_frequency,\n employee_compensation_primary_compensation_basis as employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay as employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances as employee_compensation_total_salary_and_allowances,\n end_employment_date as end_employment_date,\n expected_date_of_return as expected_date_of_return,\n expected_retirement_date as expected_retirement_date,\n first_day_of_work as first_day_of_work,\n has_international_assignment as has_international_assignment,\n hire_date as hire_date,\n hire_reason as hire_reason,\n hire_rescinded as hire_rescinded,\n home_country as home_country,\n hourly_frequency_currency as hourly_frequency_currency,\n hourly_frequency_frequency as hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis as hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay as hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances as hourly_frequency_total_salary_and_allowances,\n id as id,\n last_datefor_which_paid as last_datefor_which_paid,\n local_termination_reason as local_termination_reason,\n months_continuous_prior_employment as months_continuous_prior_employment,\n not_returning as not_returning,\n original_hire_date as original_hire_date,\n pay_group_frequency_currency as pay_group_frequency_currency,\n pay_group_frequency_frequency as pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis as pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay as pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances as pay_group_frequency_total_salary_and_allowances,\n pay_through_date as pay_through_date,\n primary_termination_category as primary_termination_category,\n primary_termination_reason as primary_termination_reason,\n probation_end_date as probation_end_date,\n probation_start_date as probation_start_date,\n reason_reference_id as reason_reference_id,\n regrettable_termination as regrettable_termination,\n rehire as rehire,\n resignation_date as resignation_date,\n retired as retired,\n retirement_date as retirement_date,\n retirement_eligibility_date as retirement_eligibility_date,\n return_unknown as return_unknown,\n seniority_date as seniority_date,\n severance_date as severance_date,\n terminated as terminated,\n termination_date as termination_date,\n termination_involuntary as termination_involuntary,\n termination_last_day_of_work as termination_last_day_of_work,\n time_off_service_date as time_off_service_date,\n universal_id as universal_id,\n user_id as user_id,\n vesting_date as vesting_date,\n worker_code as worker_code\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker')) }}"}, "namespace": null}}, "test.workday.not_null_stg_workday__person_name_worker_id.666b7b3a90": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1781284401.745047, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__person_name", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n academic_suffix as academic_suffix,\n additional_name_type as additional_name_type,\n country as country,\n first_name as first_name,\n full_name_singapore_malaysia as full_name_singapore_malaysia,\n hereditary_suffix as hereditary_suffix,\n honorary_suffix as honorary_suffix,\n index as index,\n last_name as last_name,\n local_first_name as local_first_name,\n local_first_name_2 as local_first_name_2,\n local_last_name as local_last_name,\n local_last_name_2 as local_last_name_2,\n local_middle_name as local_middle_name,\n local_middle_name_2 as local_middle_name_2,\n local_secondary_last_name as local_secondary_last_name,\n local_secondary_last_name_2 as local_secondary_last_name_2,\n middle_name as middle_name,\n personal_info_system_id as personal_info_system_id,\n prefix_salutation as prefix_salutation,\n prefix_title as prefix_title,\n prefix_title_code as prefix_title_code,\n professional_suffix as professional_suffix,\n religious_suffix as religious_suffix,\n royal_suffix as royal_suffix,\n secondary_last_name as secondary_last_name,\n social_suffix as social_suffix,\n social_suffix_id as social_suffix_id,\n tertiary_last_name as tertiary_last_name,\n type as type\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n 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\".\"public_workday_dev\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n academic_suffix as academic_suffix,\n additional_name_type as additional_name_type,\n country as country,\n first_name as first_name,\n full_name_singapore_malaysia as full_name_singapore_malaysia,\n hereditary_suffix as hereditary_suffix,\n honorary_suffix as honorary_suffix,\n index as index,\n last_name as last_name,\n local_first_name as local_first_name,\n local_first_name_2 as local_first_name_2,\n local_last_name as local_last_name,\n local_last_name_2 as local_last_name_2,\n local_middle_name as local_middle_name,\n local_middle_name_2 as local_middle_name_2,\n local_secondary_last_name as local_secondary_last_name,\n local_secondary_last_name_2 as local_secondary_last_name_2,\n middle_name as middle_name,\n personal_info_system_id as personal_info_system_id,\n prefix_salutation as prefix_salutation,\n prefix_title as prefix_title,\n prefix_title_code as prefix_title_code,\n professional_suffix as professional_suffix,\n religious_suffix as religious_suffix,\n royal_suffix as royal_suffix,\n secondary_last_name as secondary_last_name,\n social_suffix as social_suffix,\n social_suffix_id as social_suffix_id,\n tertiary_last_name as tertiary_last_name,\n type as type\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n 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_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__person_name')) }}"}, "namespace": null}}, "test.workday.not_null_stg_workday__person_name_person_name_type.59eb1d6f63": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1781284401.747305, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__person_name", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n academic_suffix as academic_suffix,\n additional_name_type as additional_name_type,\n country as country,\n first_name as first_name,\n full_name_singapore_malaysia as full_name_singapore_malaysia,\n hereditary_suffix as hereditary_suffix,\n honorary_suffix as honorary_suffix,\n index as index,\n last_name as last_name,\n local_first_name as local_first_name,\n local_first_name_2 as local_first_name_2,\n local_last_name as local_last_name,\n local_last_name_2 as local_last_name_2,\n local_middle_name as local_middle_name,\n local_middle_name_2 as local_middle_name_2,\n local_secondary_last_name as local_secondary_last_name,\n local_secondary_last_name_2 as local_secondary_last_name_2,\n middle_name as middle_name,\n personal_info_system_id as personal_info_system_id,\n prefix_salutation as prefix_salutation,\n prefix_title as prefix_title,\n prefix_title_code as prefix_title_code,\n professional_suffix as professional_suffix,\n religious_suffix as religious_suffix,\n royal_suffix as royal_suffix,\n secondary_last_name as secondary_last_name,\n social_suffix as social_suffix,\n social_suffix_id as social_suffix_id,\n tertiary_last_name as tertiary_last_name,\n type as type\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n 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\".\"public_workday_dev\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n academic_suffix as academic_suffix,\n additional_name_type as additional_name_type,\n country as country,\n first_name as first_name,\n full_name_singapore_malaysia as full_name_singapore_malaysia,\n hereditary_suffix as hereditary_suffix,\n honorary_suffix as honorary_suffix,\n index as index,\n last_name as last_name,\n local_first_name as local_first_name,\n local_first_name_2 as local_first_name_2,\n local_last_name as local_last_name,\n local_last_name_2 as local_last_name_2,\n local_middle_name as local_middle_name,\n local_middle_name_2 as local_middle_name_2,\n local_secondary_last_name as local_secondary_last_name,\n local_secondary_last_name_2 as local_secondary_last_name_2,\n middle_name as middle_name,\n personal_info_system_id as personal_info_system_id,\n prefix_salutation as prefix_salutation,\n prefix_title as prefix_title,\n prefix_title_code as prefix_title_code,\n professional_suffix as professional_suffix,\n religious_suffix as religious_suffix,\n royal_suffix as royal_suffix,\n secondary_last_name as secondary_last_name,\n social_suffix as social_suffix,\n social_suffix_id as social_suffix_id,\n tertiary_last_name as tertiary_last_name,\n type as type\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n 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_metadata": {"name": "not_null", "kwargs": {"column_name": "person_name_type", "model": "{{ get_where_subquery(ref('stg_workday__person_name')) }}"}, "namespace": null}}, "test.workday.not_null_stg_workday__personal_information_ethnicity_worker_id.08e20915fd": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1781284401.7496157, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__personal_information_ethnicity", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n id as id,\n country_personal_information_id as country_personal_information_id,\n ethnicity_code as ethnicity_code\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n from base\n),\n\nfinal as (\n\n select\n source_relation,\n _fivetran_synced, \n country_personal_information_id as worker_id,\n ethnicity_code,\n id as ethnicity_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__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\".\"public_workday_dev\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n id as id,\n country_personal_information_id as country_personal_information_id,\n ethnicity_code as ethnicity_code\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n from base\n),\n\nfinal as (\n\n select\n source_relation,\n _fivetran_synced, \n country_personal_information_id as worker_id,\n ethnicity_code,\n id as ethnicity_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__personal_information_ethnicity", "attached_node": "model.workday.stg_workday__personal_information_ethnicity", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__personal_information_ethnicity')) }}"}, "namespace": null}}, "test.workday.not_null_stg_workday__personal_information_ethnicity_ethnicity_id.89c11054f2": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_workday__personal_e65829867ddf84c220ea148ba5494da5"}, "created_at": 1781284401.752003, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__personal_e65829867ddf84c220ea148ba5494da5\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__personal_information_ethnicity", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n id as id,\n country_personal_information_id as country_personal_information_id,\n ethnicity_code as ethnicity_code\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n from base\n),\n\nfinal as (\n\n select\n source_relation,\n _fivetran_synced, \n country_personal_information_id as worker_id,\n ethnicity_code,\n id as ethnicity_id\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\".\"public_workday_dev\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n id as id,\n country_personal_information_id as country_personal_information_id,\n ethnicity_code as ethnicity_code\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n from base\n),\n\nfinal as (\n\n select\n source_relation,\n _fivetran_synced, \n country_personal_information_id as worker_id,\n ethnicity_code,\n id as ethnicity_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": "ethnicity_id", "file_key_name": "models.stg_workday__personal_information_ethnicity", "attached_node": "model.workday.stg_workday__personal_information_ethnicity", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ethnicity_id", "model": "{{ get_where_subquery(ref('stg_workday__personal_information_ethnicity')) }}"}, "namespace": null}}, "test.workday.not_null_stg_workday__personal_information_common_data_worker_id.deb68b6c56": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_workday__personal_information_common_data_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__personal_ae57e14ea808b0ff151df26672b307d0.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__personal_information_common_data_worker_id.deb68b6c56", "fqn": ["workday", "staging", "not_null_stg_workday__personal_information_common_data_worker_id"], "alias": "not_null_stg_workday__personal_ae57e14ea808b0ff151df26672b307d0", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__personal_ae57e14ea808b0ff151df26672b307d0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_workday__personal_ae57e14ea808b0ff151df26672b307d0"}, "created_at": 1781284401.7542853, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__personal_ae57e14ea808b0ff151df26672b307d0\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__personal_information_common_data", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information_common_data"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__personal_ae57e14ea808b0ff151df26672b307d0.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__personal_information_common_data as (\nwith base as (\n\n select *\n from \"postgres\".\"public_workday_dev\".\"stg_workday__personal_information_common_data_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_synced as _fivetran_synced,\n _fivetran_deleted as _fivetran_deleted,\n fivetran_id as fivetran_id,\n worker_id as worker_id,\n additional_nationality as additional_nationality,\n blood_type as blood_type,\n citizenship_status as citizenship_status,\n city_of_birth as city_of_birth,\n city_of_birth_code as city_of_birth_code,\n country_of_birth as country_of_birth,\n country_region_of_birth as country_region_of_birth,\n date_of_birth as date_of_birth,\n date_of_death as date_of_death,\n last_medical_exam_date as last_medical_exam_date,\n last_medical_exam_valid_to as last_medical_exam_valid_to,\n medical_exam_notes as medical_exam_notes,\n primary_nationality as primary_nationality,\n region_of_birth as region_of_birth\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n from base\n),\n\nfinal as (\n\n select\n fivetran_id,\n 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 country_region_of_birth,\n date_of_birth,\n date_of_death,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n medical_exam_notes,\n primary_nationality,\n region_of_birth\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_common_data\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__personal_information_common_data", "sql": " __dbt__cte__stg_workday__personal_information_common_data as (\nwith base as (\n\n select *\n from \"postgres\".\"public_workday_dev\".\"stg_workday__personal_information_common_data_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_synced as _fivetran_synced,\n _fivetran_deleted as _fivetran_deleted,\n fivetran_id as fivetran_id,\n worker_id as worker_id,\n additional_nationality as additional_nationality,\n blood_type as blood_type,\n citizenship_status as citizenship_status,\n city_of_birth as city_of_birth,\n city_of_birth_code as city_of_birth_code,\n country_of_birth as country_of_birth,\n country_region_of_birth as country_region_of_birth,\n date_of_birth as date_of_birth,\n date_of_death as date_of_death,\n last_medical_exam_date as last_medical_exam_date,\n last_medical_exam_valid_to as last_medical_exam_valid_to,\n medical_exam_notes as medical_exam_notes,\n primary_nationality as primary_nationality,\n region_of_birth as region_of_birth\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n from base\n),\n\nfinal as (\n\n select\n fivetran_id,\n 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 country_region_of_birth,\n date_of_birth,\n date_of_death,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n medical_exam_notes,\n primary_nationality,\n region_of_birth\n from 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_common_data", "attached_node": "model.workday.stg_workday__personal_information_common_data", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__personal_information_common_data')) }}"}, "namespace": null}}, "test.workday.not_null_stg_workday__military_service_worker_id.a196487e38": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1781284401.7565906, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__military_service", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n personal_info_common_id as personal_info_common_id,\n discharge_date as discharge_date,\n discharge_type as discharge_type,\n notes as notes,\n rank as rank,\n service as service,\n status_id as status_id,\n status_begin_date as status_begin_date\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n from base\n),\n\nfinal as (\n select\n personal_info_common_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n notes,\n rank,\n service,\n discharge_type,\n status_id 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\".\"public_workday_dev\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n personal_info_common_id as personal_info_common_id,\n discharge_date as discharge_date,\n discharge_type as discharge_type,\n notes as notes,\n rank as rank,\n service as service,\n status_id as status_id,\n status_begin_date as status_begin_date\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n from base\n),\n\nfinal as (\n select\n personal_info_common_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n notes,\n rank,\n service,\n discharge_type,\n status_id 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_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__military_service')) }}"}, "namespace": null}}, "test.workday.not_null_stg_workday__person_contact_email_address_person_contact_email_address_id.b8e6adf279": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_workday__person_c_74359aa56eef2ed577a1adb5458ccb08"}, "created_at": 1781284401.758874, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__person_c_74359aa56eef2ed577a1adb5458ccb08\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__person_contact_email_address", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n email_address as email_address,\n email_code as email_code,\n email_comment as email_comment,\n id as id,\n personal_info_system_id as personal_info_system_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n 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\".\"public_workday_dev\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n email_address as email_address,\n email_code as email_code,\n email_comment as email_comment,\n id as id,\n personal_info_system_id as personal_info_system_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n 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_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}}, "test.workday.not_null_stg_workday__person_contact_email_address_worker_id.9237f19755": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1781284401.761129, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__person_contact_email_address", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n email_address as email_address,\n email_code as email_code,\n email_comment as email_comment,\n id as id,\n personal_info_system_id as personal_info_system_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n 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\".\"public_workday_dev\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n email_address as email_address,\n email_code as email_code,\n email_comment as email_comment,\n id as id,\n personal_info_system_id as personal_info_system_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n 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_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__person_contact_email_address')) }}"}, "namespace": null}}, "test.workday.not_null_stg_workday__worker_position_position_id.4dfd73b611": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1781284401.7635822, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__worker_position", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n academic_pay_setup_data_annual_work_period_end_date as academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date as academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year as academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date as academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date as academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language as business_site_summary_display_language,\n business_site_summary_local as business_site_summary_local,\n business_site_summary_location as business_site_summary_location,\n business_site_summary_location_type as business_site_summary_location_type,\n business_site_summary_name as business_site_summary_name,\n business_site_summary_scheduled_weekly_hours as business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile as business_site_summary_time_profile,\n business_title as business_title,\n critical_job as critical_job,\n default_weekly_hours as default_weekly_hours,\n difficulty_to_fill as difficulty_to_fill,\n effective_date as effective_date,\n employee_type as employee_type,\n end_date as end_date,\n end_employment_date as end_employment_date,\n exclude_from_head_count as exclude_from_head_count,\n expected_assignment_end_date as expected_assignment_end_date,\n external_employee as external_employee,\n federal_withholding_fein as federal_withholding_fein,\n frequency as frequency,\n full_time_equivalent_percentage as full_time_equivalent_percentage,\n headcount_restriction_code as headcount_restriction_code,\n home_country as home_country,\n host_country as host_country,\n international_assignment_type as international_assignment_type,\n is_primary_job as is_primary_job,\n job_exempt as job_exempt,\n job_profile_id as job_profile_id,\n management_level_code as management_level_code,\n paid_fte as paid_fte,\n pay_group as pay_group,\n pay_rate as pay_rate,\n pay_rate_type as pay_rate_type,\n pay_through_date as pay_through_date,\n payroll_entity as payroll_entity,\n payroll_file_number as payroll_file_number,\n position_id as position_id,\n regular_paid_equivalent_hours as regular_paid_equivalent_hours,\n scheduled_weekly_hours as scheduled_weekly_hours,\n specify_paid_fte as specify_paid_fte,\n specify_working_fte as specify_working_fte,\n start_date as start_date,\n start_international_assignment_reason as start_international_assignment_reason,\n work_hours_profile as work_hours_profile,\n work_shift as work_shift,\n work_shift_required as work_shift_required,\n work_space as work_space,\n worker_hours_profile_classification as worker_hours_profile_classification,\n worker_id as worker_id,\n working_fte as working_fte,\n working_time_frequency as working_time_frequency,\n working_time_unit as working_time_unit,\n working_time_value as working_time_value\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n academic_pay_setup_data_annual_work_period_end_date as academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date as academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year as academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date as academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date as academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language as business_site_summary_display_language,\n business_site_summary_local as business_site_summary_local,\n business_site_summary_location as business_site_summary_location,\n business_site_summary_location_type as business_site_summary_location_type,\n business_site_summary_name as business_site_summary_name,\n business_site_summary_scheduled_weekly_hours as business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile as business_site_summary_time_profile,\n business_title as business_title,\n critical_job as critical_job,\n default_weekly_hours as default_weekly_hours,\n difficulty_to_fill as difficulty_to_fill,\n effective_date as effective_date,\n employee_type as employee_type,\n end_date as end_date,\n end_employment_date as end_employment_date,\n exclude_from_head_count as exclude_from_head_count,\n expected_assignment_end_date as expected_assignment_end_date,\n external_employee as external_employee,\n federal_withholding_fein as federal_withholding_fein,\n frequency as frequency,\n full_time_equivalent_percentage as full_time_equivalent_percentage,\n headcount_restriction_code as headcount_restriction_code,\n home_country as home_country,\n host_country as host_country,\n international_assignment_type as international_assignment_type,\n is_primary_job as is_primary_job,\n job_exempt as job_exempt,\n job_profile_id as job_profile_id,\n management_level_code as management_level_code,\n paid_fte as paid_fte,\n pay_group as pay_group,\n pay_rate as pay_rate,\n pay_rate_type as pay_rate_type,\n pay_through_date as pay_through_date,\n payroll_entity as payroll_entity,\n payroll_file_number as payroll_file_number,\n position_id as position_id,\n regular_paid_equivalent_hours as regular_paid_equivalent_hours,\n scheduled_weekly_hours as scheduled_weekly_hours,\n specify_paid_fte as specify_paid_fte,\n specify_working_fte as specify_working_fte,\n start_date as start_date,\n start_international_assignment_reason as start_international_assignment_reason,\n work_hours_profile as work_hours_profile,\n work_shift as work_shift,\n work_shift_required as work_shift_required,\n work_space as work_space,\n worker_hours_profile_classification as worker_hours_profile_classification,\n worker_id as worker_id,\n working_fte as working_fte,\n working_time_frequency as working_time_frequency,\n working_time_unit as working_time_unit,\n working_time_value as working_time_value\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position')) }}"}, "namespace": null}}, "test.workday.not_null_stg_workday__worker_position_worker_id.98db71611d": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1781284401.765877, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__worker_position", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n academic_pay_setup_data_annual_work_period_end_date as academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date as academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year as academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date as academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date as academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language as business_site_summary_display_language,\n business_site_summary_local as business_site_summary_local,\n business_site_summary_location as business_site_summary_location,\n business_site_summary_location_type as business_site_summary_location_type,\n business_site_summary_name as business_site_summary_name,\n business_site_summary_scheduled_weekly_hours as business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile as business_site_summary_time_profile,\n business_title as business_title,\n critical_job as critical_job,\n default_weekly_hours as default_weekly_hours,\n difficulty_to_fill as difficulty_to_fill,\n effective_date as effective_date,\n employee_type as employee_type,\n end_date as end_date,\n end_employment_date as end_employment_date,\n exclude_from_head_count as exclude_from_head_count,\n expected_assignment_end_date as expected_assignment_end_date,\n external_employee as external_employee,\n federal_withholding_fein as federal_withholding_fein,\n frequency as frequency,\n full_time_equivalent_percentage as full_time_equivalent_percentage,\n headcount_restriction_code as headcount_restriction_code,\n home_country as home_country,\n host_country as host_country,\n international_assignment_type as international_assignment_type,\n is_primary_job as is_primary_job,\n job_exempt as job_exempt,\n job_profile_id as job_profile_id,\n management_level_code as management_level_code,\n paid_fte as paid_fte,\n pay_group as pay_group,\n pay_rate as pay_rate,\n pay_rate_type as pay_rate_type,\n pay_through_date as pay_through_date,\n payroll_entity as payroll_entity,\n payroll_file_number as payroll_file_number,\n position_id as position_id,\n regular_paid_equivalent_hours as regular_paid_equivalent_hours,\n scheduled_weekly_hours as scheduled_weekly_hours,\n specify_paid_fte as specify_paid_fte,\n specify_working_fte as specify_working_fte,\n start_date as start_date,\n start_international_assignment_reason as start_international_assignment_reason,\n work_hours_profile as work_hours_profile,\n work_shift as work_shift,\n work_shift_required as work_shift_required,\n work_space as work_space,\n worker_hours_profile_classification as worker_hours_profile_classification,\n worker_id as worker_id,\n working_fte as working_fte,\n working_time_frequency as working_time_frequency,\n working_time_unit as working_time_unit,\n working_time_value as working_time_value\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n academic_pay_setup_data_annual_work_period_end_date as academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date as academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year as academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date as academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date as academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language as business_site_summary_display_language,\n business_site_summary_local as business_site_summary_local,\n business_site_summary_location as business_site_summary_location,\n business_site_summary_location_type as business_site_summary_location_type,\n business_site_summary_name as business_site_summary_name,\n business_site_summary_scheduled_weekly_hours as business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile as business_site_summary_time_profile,\n business_title as business_title,\n critical_job as critical_job,\n default_weekly_hours as default_weekly_hours,\n difficulty_to_fill as difficulty_to_fill,\n effective_date as effective_date,\n employee_type as employee_type,\n end_date as end_date,\n end_employment_date as end_employment_date,\n exclude_from_head_count as exclude_from_head_count,\n expected_assignment_end_date as expected_assignment_end_date,\n external_employee as external_employee,\n federal_withholding_fein as federal_withholding_fein,\n frequency as frequency,\n full_time_equivalent_percentage as full_time_equivalent_percentage,\n headcount_restriction_code as headcount_restriction_code,\n home_country as home_country,\n host_country as host_country,\n international_assignment_type as international_assignment_type,\n is_primary_job as is_primary_job,\n job_exempt as job_exempt,\n job_profile_id as job_profile_id,\n management_level_code as management_level_code,\n paid_fte as paid_fte,\n pay_group as pay_group,\n pay_rate as pay_rate,\n pay_rate_type as pay_rate_type,\n pay_through_date as pay_through_date,\n payroll_entity as payroll_entity,\n payroll_file_number as payroll_file_number,\n position_id as position_id,\n regular_paid_equivalent_hours as regular_paid_equivalent_hours,\n scheduled_weekly_hours as scheduled_weekly_hours,\n specify_paid_fte as specify_paid_fte,\n specify_working_fte as specify_working_fte,\n start_date as start_date,\n start_international_assignment_reason as start_international_assignment_reason,\n work_hours_profile as work_hours_profile,\n work_shift as work_shift,\n work_shift_required as work_shift_required,\n work_space as work_space,\n worker_hours_profile_classification as worker_hours_profile_classification,\n worker_id as worker_id,\n working_fte as working_fte,\n working_time_frequency as working_time_frequency,\n working_time_unit as working_time_unit,\n working_time_value as working_time_value\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position')) }}"}, "namespace": null}}, "test.workday.not_null_stg_workday__worker_leave_status_leave_request_event_id.a172377761": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_workday__worker_l_c2bd4624d54474d8cc43b5b9a29cf308"}, "created_at": 1781284401.7681556, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__worker_l_c2bd4624d54474d8cc43b5b9a29cf308\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__worker_leave_status", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__worker_leave_status_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n adoption_notification_date as adoption_notification_date,\n adoption_placement_date as adoption_placement_date,\n age_of_dependent as age_of_dependent,\n benefits_effect as benefits_effect,\n caesarean_section_birth as caesarean_section_birth,\n child_birth_date as child_birth_date,\n child_sdate_of_death as child_sdate_of_death,\n continuous_service_accrual_effect as continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital as date_baby_arrived_home_from_hospital,\n date_child_entered_country as date_child_entered_country,\n date_of_recall as date_of_recall,\n description as description,\n estimated_leave_end_date as estimated_leave_end_date,\n expected_due_date as expected_due_date,\n first_day_of_work as first_day_of_work,\n last_date_for_which_paid as last_date_for_which_paid,\n leave_end_date as leave_end_date,\n leave_entitlement_override as leave_entitlement_override,\n leave_last_day_of_work as leave_last_day_of_work,\n leave_of_absence_type as leave_of_absence_type,\n leave_percentage as leave_percentage,\n leave_request_event_id as leave_request_event_id,\n leave_return_event as leave_return_event,\n leave_start_date as leave_start_date,\n leave_status_code as leave_status_code,\n leave_type_reason as leave_type_reason,\n location_during_leave as location_during_leave,\n multiple_child_indicator as multiple_child_indicator,\n number_of_babies_adopted_children as number_of_babies_adopted_children,\n number_of_child_dependents as number_of_child_dependents,\n number_of_previous_births as number_of_previous_births,\n number_of_previous_maternity_leaves as number_of_previous_maternity_leaves,\n on_leave as on_leave,\n paid_time_off_accrual_effect as paid_time_off_accrual_effect,\n payroll_effect as payroll_effect,\n single_parent_indicator as single_parent_indicator,\n social_security_disability_code as social_security_disability_code,\n stock_vesting_effect as stock_vesting_effect,\n stop_payment_date as stop_payment_date,\n week_of_confinement as week_of_confinement,\n work_related as work_related,\n worker_id as worker_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__worker_leave_status_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n adoption_notification_date as adoption_notification_date,\n adoption_placement_date as adoption_placement_date,\n age_of_dependent as age_of_dependent,\n benefits_effect as benefits_effect,\n caesarean_section_birth as caesarean_section_birth,\n child_birth_date as child_birth_date,\n child_sdate_of_death as child_sdate_of_death,\n continuous_service_accrual_effect as continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital as date_baby_arrived_home_from_hospital,\n date_child_entered_country as date_child_entered_country,\n date_of_recall as date_of_recall,\n description as description,\n estimated_leave_end_date as estimated_leave_end_date,\n expected_due_date as expected_due_date,\n first_day_of_work as first_day_of_work,\n last_date_for_which_paid as last_date_for_which_paid,\n leave_end_date as leave_end_date,\n leave_entitlement_override as leave_entitlement_override,\n leave_last_day_of_work as leave_last_day_of_work,\n leave_of_absence_type as leave_of_absence_type,\n leave_percentage as leave_percentage,\n leave_request_event_id as leave_request_event_id,\n leave_return_event as leave_return_event,\n leave_start_date as leave_start_date,\n leave_status_code as leave_status_code,\n leave_type_reason as leave_type_reason,\n location_during_leave as location_during_leave,\n multiple_child_indicator as multiple_child_indicator,\n number_of_babies_adopted_children as number_of_babies_adopted_children,\n number_of_child_dependents as number_of_child_dependents,\n number_of_previous_births as number_of_previous_births,\n number_of_previous_maternity_leaves as number_of_previous_maternity_leaves,\n on_leave as on_leave,\n paid_time_off_accrual_effect as paid_time_off_accrual_effect,\n payroll_effect as payroll_effect,\n single_parent_indicator as single_parent_indicator,\n social_security_disability_code as social_security_disability_code,\n stock_vesting_effect as stock_vesting_effect,\n stop_payment_date as stop_payment_date,\n week_of_confinement as week_of_confinement,\n work_related as work_related,\n worker_id as worker_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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_metadata": {"name": "not_null", "kwargs": {"column_name": "leave_request_event_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_leave_status')) }}"}, "namespace": null}}, "test.workday.not_null_stg_workday__worker_leave_status_worker_id.c899fb3a61": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1781284401.770432, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__worker_leave_status", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__worker_leave_status_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n adoption_notification_date as adoption_notification_date,\n adoption_placement_date as adoption_placement_date,\n age_of_dependent as age_of_dependent,\n benefits_effect as benefits_effect,\n caesarean_section_birth as caesarean_section_birth,\n child_birth_date as child_birth_date,\n child_sdate_of_death as child_sdate_of_death,\n continuous_service_accrual_effect as continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital as date_baby_arrived_home_from_hospital,\n date_child_entered_country as date_child_entered_country,\n date_of_recall as date_of_recall,\n description as description,\n estimated_leave_end_date as estimated_leave_end_date,\n expected_due_date as expected_due_date,\n first_day_of_work as first_day_of_work,\n last_date_for_which_paid as last_date_for_which_paid,\n leave_end_date as leave_end_date,\n leave_entitlement_override as leave_entitlement_override,\n leave_last_day_of_work as leave_last_day_of_work,\n leave_of_absence_type as leave_of_absence_type,\n leave_percentage as leave_percentage,\n leave_request_event_id as leave_request_event_id,\n leave_return_event as leave_return_event,\n leave_start_date as leave_start_date,\n leave_status_code as leave_status_code,\n leave_type_reason as leave_type_reason,\n location_during_leave as location_during_leave,\n multiple_child_indicator as multiple_child_indicator,\n number_of_babies_adopted_children as number_of_babies_adopted_children,\n number_of_child_dependents as number_of_child_dependents,\n number_of_previous_births as number_of_previous_births,\n number_of_previous_maternity_leaves as number_of_previous_maternity_leaves,\n on_leave as on_leave,\n paid_time_off_accrual_effect as paid_time_off_accrual_effect,\n payroll_effect as payroll_effect,\n single_parent_indicator as single_parent_indicator,\n social_security_disability_code as social_security_disability_code,\n stock_vesting_effect as stock_vesting_effect,\n stop_payment_date as stop_payment_date,\n week_of_confinement as week_of_confinement,\n work_related as work_related,\n worker_id as worker_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__worker_leave_status_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n adoption_notification_date as adoption_notification_date,\n adoption_placement_date as adoption_placement_date,\n age_of_dependent as age_of_dependent,\n benefits_effect as benefits_effect,\n caesarean_section_birth as caesarean_section_birth,\n child_birth_date as child_birth_date,\n child_sdate_of_death as child_sdate_of_death,\n continuous_service_accrual_effect as continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital as date_baby_arrived_home_from_hospital,\n date_child_entered_country as date_child_entered_country,\n date_of_recall as date_of_recall,\n description as description,\n estimated_leave_end_date as estimated_leave_end_date,\n expected_due_date as expected_due_date,\n first_day_of_work as first_day_of_work,\n last_date_for_which_paid as last_date_for_which_paid,\n leave_end_date as leave_end_date,\n leave_entitlement_override as leave_entitlement_override,\n leave_last_day_of_work as leave_last_day_of_work,\n leave_of_absence_type as leave_of_absence_type,\n leave_percentage as leave_percentage,\n leave_request_event_id as leave_request_event_id,\n leave_return_event as leave_return_event,\n leave_start_date as leave_start_date,\n leave_status_code as leave_status_code,\n leave_type_reason as leave_type_reason,\n location_during_leave as location_during_leave,\n multiple_child_indicator as multiple_child_indicator,\n number_of_babies_adopted_children as number_of_babies_adopted_children,\n number_of_child_dependents as number_of_child_dependents,\n number_of_previous_births as number_of_previous_births,\n number_of_previous_maternity_leaves as number_of_previous_maternity_leaves,\n on_leave as on_leave,\n paid_time_off_accrual_effect as paid_time_off_accrual_effect,\n payroll_effect as payroll_effect,\n single_parent_indicator as single_parent_indicator,\n social_security_disability_code as social_security_disability_code,\n stock_vesting_effect as stock_vesting_effect,\n stop_payment_date as stop_payment_date,\n week_of_confinement as week_of_confinement,\n work_related as work_related,\n worker_id as worker_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_leave_status')) }}"}, "namespace": null}}, "test.workday.not_null_stg_workday__worker_position_organization_position_id.196dd9786d": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1781284401.7728417, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n index as index,\n position_id as position_id,\n worker_id as worker_id,\n date_of_pay_group_assignment as date_of_pay_group_assignment,\n organization_id as organization_id,\n primary_business_site as primary_business_site,\n used_in_change_organization_assignments as used_in_change_organization_assignments\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n index as index,\n position_id as position_id,\n worker_id as worker_id,\n date_of_pay_group_assignment as date_of_pay_group_assignment,\n organization_id as organization_id,\n primary_business_site as primary_business_site,\n used_in_change_organization_assignments as used_in_change_organization_assignments\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization')) }}"}, "namespace": null}}, "test.workday.not_null_stg_workday__worker_position_organization_worker_id.d8cf960f0b": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1781284401.7751088, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n index as index,\n position_id as position_id,\n worker_id as worker_id,\n date_of_pay_group_assignment as date_of_pay_group_assignment,\n organization_id as organization_id,\n primary_business_site as primary_business_site,\n used_in_change_organization_assignments as used_in_change_organization_assignments\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n index as index,\n position_id as position_id,\n worker_id as worker_id,\n date_of_pay_group_assignment as date_of_pay_group_assignment,\n organization_id as organization_id,\n primary_business_site as primary_business_site,\n used_in_change_organization_assignments as used_in_change_organization_assignments\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization')) }}"}, "namespace": null}}, "test.workday.not_null_stg_workday__worker_position_organization_organization_id.a79000dec1": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_workday__worker_p_90dbe3fb66cda8c3c13fbdcf1b2f4d23"}, "created_at": 1781284401.7774248, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__worker_p_90dbe3fb66cda8c3c13fbdcf1b2f4d23\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n index as index,\n position_id as position_id,\n worker_id as worker_id,\n date_of_pay_group_assignment as date_of_pay_group_assignment,\n organization_id as organization_id,\n primary_business_site as primary_business_site,\n used_in_change_organization_assignments as used_in_change_organization_assignments\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n index as index,\n position_id as position_id,\n worker_id as worker_id,\n date_of_pay_group_assignment as date_of_pay_group_assignment,\n organization_id as organization_id,\n primary_business_site as primary_business_site,\n used_in_change_organization_assignments as used_in_change_organization_assignments\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization')) }}"}, "namespace": null}}}, "sources": {"source.workday.workday.job_profile": {"database": "postgres", "schema": "public", "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": "_fivetran_synced", "loaded_at_query": 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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_profile_id"]}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}, "additional_job_description": {"name": "additional_job_description", "description": "Additional details or information about the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.additional_job_description"]}, "compensation_grade_id": {"name": "compensation_grade_id", "description": "Identifier for the compensation grade.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.compensation_grade_id"]}, "critical_job": {"name": "critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.critical_job"]}, "description": {"name": "description", "description": "Brief description of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_profile_description"]}, "difficulty_to_fill": {"name": "difficulty_to_fill", "description": "Indication of the difficulty level in filling the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.difficulty_to_fill"]}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.effective_date"]}, "inactive": {"name": "inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.inactive"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.include_job_code_in_name"]}, "job_category_id": {"name": "job_category_id", "description": "Identifier for the job category.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_category_id"]}, "job_profile_code": {"name": "job_profile_code", "description": "Code assigned to the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_profile_code"]}, "level": {"name": "level", "description": "Level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.level"]}, "management_level": {"name": "management_level", "description": "Management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.management_level"]}, "private_title": {"name": "private_title", "description": "Private title associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.private_title"]}, "public_job": {"name": "public_job", "description": "Flag indicating whether the job is public.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.public_job"]}, "referral_payment_plan": {"name": "referral_payment_plan", "description": "Referral payment plan associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.referral_payment_plan"]}, "summary": {"name": "summary", "description": "Summary or overview of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.summary"]}, "title": {"name": "title", "description": "Title associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.title"]}, "union_code": {"name": "union_code", "description": "Code associated with the union related to the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.union_code"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.union_membership_requirement"]}, "work_shift_required": {"name": "work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.work_shift_required"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.work_study_award_source_code"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.work_study_requirement_option_code"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": "_fivetran_synced", "loaded_at_query": null, "meta": {}, "tags": [], "static_analysis": null}, "patch_path": null, "unrendered_config": {"loaded_at_field": "_fivetran_synced", "enabled": true, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"workday_job_profile_data\"", "created_at": 1781284402.062919, "unrendered_database": "{% if target.type not in (\"spark\") %}{{ var(\"workday_database\", target.database) }}{% endif %}", "unrendered_schema": "{{ var(\"workday_schema\", \"workday\") }}", "doc_blocks": ["doc.workday.job_profile"]}, "source.workday.workday.job_family_job_profile": {"database": "postgres", "schema": "public", "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": "_fivetran_synced", "loaded_at_query": 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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_family_id"]}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_profile_id"]}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": "_fivetran_synced", "loaded_at_query": null, "meta": {}, "tags": [], "static_analysis": null}, "patch_path": null, "unrendered_config": {"loaded_at_field": "_fivetran_synced", "enabled": true, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"workday_job_family_job_profile_data\"", "created_at": 1781284402.0652056, "unrendered_database": "{% if target.type not in (\"spark\") %}{{ var(\"workday_database\", target.database) }}{% endif %}", "unrendered_schema": "{{ var(\"workday_schema\", \"workday\") }}", "doc_blocks": ["doc.workday.job_family_job_profile"]}, "source.workday.workday.job_family": {"database": "postgres", "schema": "public", "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": "_fivetran_synced", "loaded_at_query": 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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.id"]}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.effective_date"]}, "inactive": {"name": "inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.inactive"]}, "job_family_code": {"name": "job_family_code", "description": "Code assigned to the job family", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_family_code"]}, "summary": {"name": "summary", "description": "Summary or overview of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.summary"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": "_fivetran_synced", "loaded_at_query": null, "meta": {}, "tags": [], "static_analysis": null}, "patch_path": null, "unrendered_config": {"loaded_at_field": "_fivetran_synced", "enabled": true, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"workday_job_family_data\"", "created_at": 1781284402.0658443, "unrendered_database": "{% if target.type not in (\"spark\") %}{{ var(\"workday_database\", target.database) }}{% endif %}", "unrendered_schema": "{{ var(\"workday_schema\", \"workday\") }}", "doc_blocks": ["doc.workday.job_family"]}, "source.workday.workday.job_family_job_family_group": {"database": "postgres", "schema": "public", "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": "_fivetran_synced", "loaded_at_query": 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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_family_id"]}, "job_family_group_id": {"name": "job_family_group_id", "description": "Identifier for the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_family_group_id"]}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": "_fivetran_synced", "loaded_at_query": null, "meta": {}, "tags": [], "static_analysis": null}, "patch_path": null, "unrendered_config": {"loaded_at_field": "_fivetran_synced", "enabled": true, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"workday_job_family_job_family_group_data\"", "created_at": 1781284402.0664473, "unrendered_database": "{% if target.type not in (\"spark\") %}{{ var(\"workday_database\", target.database) }}{% endif %}", "unrendered_schema": "{{ var(\"workday_schema\", \"workday\") }}", "doc_blocks": ["doc.workday.job_family_job_family_group"]}, "source.workday.workday.job_family_group": {"database": "postgres", "schema": "public", "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": "_fivetran_synced", "loaded_at_query": 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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_family_group_id"]}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.effective_date"]}, "inactive": {"name": "inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.inactive"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_family_group_code"]}, "summary": {"name": "summary", "description": "Summary or overview of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.summary"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": "_fivetran_synced", "loaded_at_query": null, "meta": {}, "tags": [], "static_analysis": null}, "patch_path": null, "unrendered_config": {"loaded_at_field": "_fivetran_synced", "enabled": true, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"workday_job_family_group_data\"", "created_at": 1781284402.0670438, "unrendered_database": "{% if target.type not in (\"spark\") %}{{ var(\"workday_database\", target.database) }}{% endif %}", "unrendered_schema": "{{ var(\"workday_schema\", \"workday\") }}", "doc_blocks": ["doc.workday.job_family_group"]}, "source.workday.workday.organization_role": {"database": "postgres", "schema": "public", "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": "_fivetran_synced", "loaded_at_query": 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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.organization_id"]}, "role_id": {"name": "role_id", "description": "Identifier for the specific role.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.role_id"]}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.organization_role_code"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": "_fivetran_synced", "loaded_at_query": null, "meta": {}, "tags": [], "static_analysis": null}, "patch_path": null, "unrendered_config": {"loaded_at_field": "_fivetran_synced", "enabled": true, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"workday_organization_role_data\"", "created_at": 1781284402.0676303, "unrendered_database": "{% if target.type not in (\"spark\") %}{{ var(\"workday_database\", target.database) }}{% endif %}", "unrendered_schema": "{{ var(\"workday_schema\", \"workday\") }}", "doc_blocks": ["doc.workday.organization_role"]}, "source.workday.workday.organization_role_worker": {"database": "postgres", "schema": "public", "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": "_fivetran_synced", "loaded_at_query": 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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.associated_worker_id"]}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.organization_id"]}, "role_id": {"name": "role_id", "description": "Identifier for the specific role.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.role_id"]}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": "_fivetran_synced", "loaded_at_query": null, "meta": {}, "tags": [], "static_analysis": null}, "patch_path": null, "unrendered_config": {"loaded_at_field": "_fivetran_synced", "enabled": true, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"workday_organization_role_worker_data\"", "created_at": 1781284402.068204, "unrendered_database": "{% if target.type not in (\"spark\") %}{{ var(\"workday_database\", target.database) }}{% endif %}", "unrendered_schema": "{{ var(\"workday_schema\", \"workday\") }}", "doc_blocks": ["doc.workday.organization_role_worker"]}, "source.workday.workday.organization_job_family": {"database": "postgres", "schema": "public", "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": "_fivetran_synced", "loaded_at_query": 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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_family_id"]}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.organization_id"]}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}, "job_family_group_id": {"name": "job_family_group_id", "description": "Identifier for the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_family_group_id"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": "_fivetran_synced", "loaded_at_query": null, "meta": {}, "tags": [], "static_analysis": null}, "patch_path": null, "unrendered_config": {"loaded_at_field": "_fivetran_synced", "enabled": true, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"workday_organization_job_family_data\"", "created_at": 1781284402.0687954, "unrendered_database": "{% if target.type not in (\"spark\") %}{{ var(\"workday_database\", target.database) }}{% endif %}", "unrendered_schema": "{{ var(\"workday_schema\", \"workday\") }}", "doc_blocks": ["doc.workday.organization_job_family"]}, "source.workday.workday.organization": {"database": "postgres", "schema": "public", "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": "_fivetran_synced", "loaded_at_query": 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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.organization_id"]}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}, "availability_date": {"name": "availability_date", "description": "Date when the organization becomes available.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.availability_date"]}, "available_for_hire": {"name": "available_for_hire", "description": "Flag indicating whether the organization is available for hiring.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.available_for_hire"]}, "code": {"name": "code", "description": "Code assigned to the organization for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.code"]}, "description": {"name": "description", "description": "The description of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.organization_description"]}, "external_url": {"name": "external_url", "description": "External URL associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.external_url"]}, "hiring_freeze": {"name": "hiring_freeze", "description": "Flag indicating whether the organization is under a hiring freeze.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hiring_freeze"]}, "inactive": {"name": "inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.inactive"]}, "inactive_date": {"name": "inactive_date", "description": "Date when the organization becomes inactive", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.inactive_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.include_manager_in_name"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.include_organization_code_in_name"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.last_updated_date_time"]}, "location": {"name": "location", "description": "Location associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.location"]}, "manager_id": {"name": "manager_id", "description": "Identifier for the manager associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.manager_id"]}, "name": {"name": "name", "description": "Name of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.organization_name"]}, "organization_code": {"name": "organization_code", "description": "Code associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.organization_code"]}, "organization_owner_id": {"name": "organization_owner_id", "description": "Identifier for the owner of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.organization_owner_id"]}, "staffing_model": {"name": "staffing_model", "description": "Staffing model associated with the organization", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.staffing_model"]}, "sub_type": {"name": "sub_type", "description": "Subtype or classification of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.organization_sub_type"]}, "superior_organization_id": {"name": "superior_organization_id", "description": "Identifier for the superior organization, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.superior_organization_id"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.supervisory_position_availability_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.supervisory_position_earliest_hire_date"]}, "supervisory_position_time_type": {"name": "supervisory_position_time_type", "description": "Time type associated with supervisory positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.supervisory_position_time_type"]}, "supervisory_position_worker_type": {"name": "supervisory_position_worker_type", "description": "Worker type associated with supervisory positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.supervisory_position_worker_type"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.top_level_organization_id"]}, "type": {"name": "type", "description": "Type or category of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.organization_type"]}, "visibility": {"name": "visibility", "description": "Visibility level of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.visibility"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": "_fivetran_synced", "loaded_at_query": null, "meta": {}, "tags": [], "static_analysis": null}, "patch_path": null, "unrendered_config": {"loaded_at_field": "_fivetran_synced", "enabled": true, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"workday_organization_data\"", "created_at": 1781284402.0695653, "unrendered_database": "{% if target.type not in (\"spark\") %}{{ var(\"workday_database\", target.database) }}{% endif %}", "unrendered_schema": "{{ var(\"workday_schema\", \"workday\") }}", "doc_blocks": ["doc.workday.organization"]}, "source.workday.workday.position_organization": {"database": "postgres", "schema": "public", "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": "_fivetran_synced", "loaded_at_query": 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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.organization_id"]}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.position_id"]}, "type": {"name": "type", "description": "Type or category of the position within the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.position_organization_type"]}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": "_fivetran_synced", "loaded_at_query": null, "meta": {}, "tags": [], "static_analysis": null}, "patch_path": null, "unrendered_config": {"loaded_at_field": "_fivetran_synced", "enabled": true, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"workday_position_organization_data\"", "created_at": 1781284402.0701294, "unrendered_database": "{% if target.type not in (\"spark\") %}{{ var(\"workday_database\", target.database) }}{% endif %}", "unrendered_schema": "{{ var(\"workday_schema\", \"workday\") }}", "doc_blocks": ["doc.workday.position_organization"]}, "source.workday.workday.position": {"database": "postgres", "schema": "public", "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": "_fivetran_synced", "loaded_at_query": 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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.id"]}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.academic_tenure_eligible"]}, "availability_date": {"name": "availability_date", "description": "Date when the organization becomes available.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.availability_date"]}, "available_for_hire": {"name": "available_for_hire", "description": "Flag indicating whether the organization is available for hiring.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.available_for_hire"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.available_for_overlap"]}, "available_for_recruiting": {"name": "available_for_recruiting", "description": "Flag indicating whether the position is available for recruiting.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.available_for_recruiting"]}, "closed": {"name": "closed", "description": "Flag indicating whether the position is closed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.closed"]}, "compensation_grade_code": {"name": "compensation_grade_code", "description": "Code associated with the compensation grade of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.compensation_grade_code"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.compensation_grade_profile_code"]}, "compensation_package_code": {"name": "compensation_package_code", "description": "Code associated with the compensation package of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.compensation_package_code"]}, "compensation_step_code": {"name": "compensation_step_code", "description": "Code associated with the compensation step of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.compensation_step_code"]}, "critical_job": {"name": "critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.critical_job"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.difficulty_to_fill_code"]}, "earliest_hire_date": {"name": "earliest_hire_date", "description": "Earliest date when the position can be filled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.earliest_hire_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.earliest_overlap_date"]}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.effective_date"]}, "hiring_freeze": {"name": "hiring_freeze", "description": "Flag indicating whether the organization is under a hiring freeze.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hiring_freeze"]}, "job_description": {"name": "job_description", "description": "Detailed description of the job associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_description"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_description_summary"]}, "job_posting_title": {"name": "job_posting_title", "description": "Title used for job postings associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_posting_title"]}, "position_code": {"name": "position_code", "description": "Code associated with the position for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.position_code"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.position_time_type_code"]}, "primary_compensation_basis": {"name": "primary_compensation_basis", "description": "Primary basis of compensation for the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.primary_compensation_basis"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.primary_compensation_basis_amount_change"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.primary_compensation_basis_percent_change"]}, "supervisory_organization_id": {"name": "supervisory_organization_id", "description": "Identifier for the supervisory organization associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.supervisory_organization_id"]}, "work_shift_required": {"name": "work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.work_shift_required"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.worker_for_filled_position_id"]}, "worker_position_id": {"name": "worker_position_id", "description": "Identifier for the worker associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.worker_position_id"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.worker_type_code"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": "_fivetran_synced", "loaded_at_query": null, "meta": {}, "tags": [], "static_analysis": null}, "patch_path": null, "unrendered_config": {"loaded_at_field": "_fivetran_synced", "enabled": true, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"workday_position_data\"", "created_at": 1781284402.0708368, "unrendered_database": "{% if target.type not in (\"spark\") %}{{ var(\"workday_database\", target.database) }}{% endif %}", "unrendered_schema": "{{ var(\"workday_schema\", \"workday\") }}", "doc_blocks": ["doc.workday.position"]}, "source.workday.workday.position_job_profile": {"database": "postgres", "schema": "public", "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": "_fivetran_synced", "loaded_at_query": 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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_profile_id"]}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.position_id"]}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.difficulty_to_fill_code"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.is_critical_job"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_category_code"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.management_level_code"]}, "name": {"name": "name", "description": "Name associated with the job profile linked to the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.position_job_profile_name"]}, "work_shift_required": {"name": "work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.work_shift_required"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": "_fivetran_synced", "loaded_at_query": null, "meta": {}, "tags": [], "static_analysis": null}, "patch_path": null, "unrendered_config": {"loaded_at_field": "_fivetran_synced", "enabled": true, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"workday_position_job_profile_data\"", "created_at": 1781284402.0714335, "unrendered_database": "{% if target.type not in (\"spark\") %}{{ var(\"workday_database\", target.database) }}{% endif %}", "unrendered_schema": "{{ var(\"workday_schema\", \"workday\") }}", "doc_blocks": ["doc.workday.position_job_profile"]}, "source.workday.workday.worker_history": {"database": "postgres", "schema": "public", "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": "_fivetran_synced", "loaded_at_query": 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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.worker_id"]}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}, "academic_tenure_date": {"name": "academic_tenure_date", "description": "Date when academic tenure is achieved.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.academic_tenure_date"]}, "active": {"name": "active", "description": "Flag indicating the current active status of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.active"]}, "active_status_date": {"name": "active_status_date", "description": "Date when the active status was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.active_status_date"]}, "annual_currency_summary_currency": {"name": "annual_currency_summary_currency", "description": "Currency used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.annual_currency_summary_currency"]}, "annual_currency_summary_frequency": {"name": "annual_currency_summary_frequency", "description": "Frequency of currency for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.annual_currency_summary_frequency"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.annual_currency_summary_primary_compensation_basis"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.annual_currency_summary_total_base_pay"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.annual_currency_summary_total_salary_and_allowances"]}, "annual_summary_currency": {"name": "annual_summary_currency", "description": "Currency used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.annual_summary_currency"]}, "annual_summary_frequency": {"name": "annual_summary_frequency", "description": "Frequency of currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.annual_summary_frequency"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.annual_summary_primary_compensation_basis"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.annual_summary_total_base_pay"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.annual_summary_total_salary_and_allowances"]}, "benefits_service_date": {"name": "benefits_service_date", "description": "Date when the worker's benefits service starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.benefits_service_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.company_service_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.compensation_effective_date"]}, "compensation_grade_id": {"name": "compensation_grade_id", "description": "Identifier for the compensation grade.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.compensation_grade_id"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.compensation_grade_profile_id"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.continuous_service_date"]}, "contract_assignment_details": {"name": "contract_assignment_details", "description": "Details of the worker's contract assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.contract_assignment_details"]}, "contract_currency_code": {"name": "contract_currency_code", "description": "Currency code used for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.contract_currency_code"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.contract_end_date"]}, "contract_frequency_name": {"name": "contract_frequency_name", "description": "Frequency of payment for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.contract_frequency_name"]}, "contract_pay_rate": {"name": "contract_pay_rate", "description": "Pay rate associated with the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.contract_pay_rate"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.contract_vendor_name"]}, "date_entered_workforce": {"name": "date_entered_workforce", "description": "Date when the worker entered the workforce.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.date_entered_workforce"]}, "days_unemployed": {"name": "days_unemployed", "description": "Number of days the worker has been unemployed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.days_unemployed"]}, "eligible_for_hire": {"name": "eligible_for_hire", "description": "Flag indicating whether the worker is eligible for hire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.eligible_for_hire"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.eligible_for_rehire_on_latest_termination"]}, "employee_compensation_currency": {"name": "employee_compensation_currency", "description": "Currency code used for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.employee_compensation_currency"]}, "employee_compensation_frequency": {"name": "employee_compensation_frequency", "description": "Frequency of payment for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.employee_compensation_frequency"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.employee_compensation_primary_compensation_basis"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.employee_compensation_total_base_pay"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.employee_compensation_total_salary_and_allowances"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.end_employment_date"]}, "expected_date_of_return": {"name": "expected_date_of_return", "description": "Expected date of the worker's return.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.expected_date_of_return"]}, "expected_retirement_date": {"name": "expected_retirement_date", "description": "Expected date of the worker's retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.expected_retirement_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.first_day_of_work"]}, "has_international_assignment": {"name": "has_international_assignment", "description": "Flag indicating whether the worker has an international assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.has_international_assignment"]}, "hire_date": {"name": "hire_date", "description": "The date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hire_date"]}, "hire_reason": {"name": "hire_reason", "description": "The reason for hiring the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hire_reason"]}, "hire_rescinded": {"name": "hire_rescinded", "description": "Flag indicating whether the worker's hire was rescinded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hire_rescinded"]}, "home_country": {"name": "home_country", "description": "The home country of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.home_country"]}, "hourly_frequency_currency": {"name": "hourly_frequency_currency", "description": "Currency code used for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hourly_frequency_currency"]}, "hourly_frequency_frequency": {"name": "hourly_frequency_frequency", "description": "Frequency of payment for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hourly_frequency_frequency"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hourly_frequency_primary_compensation_basis"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hourly_frequency_total_base_pay"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hourly_frequency_total_salary_and_allowances"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.last_datefor_which_paid"]}, "local_termination_reason": {"name": "local_termination_reason", "description": "The reason for local termination of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.local_termination_reason"]}, "months_continuous_prior_employment": {"name": "months_continuous_prior_employment", "description": "Number of months of continuous prior employment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.months_continuous_prior_employment"]}, "not_returning": {"name": "not_returning", "description": "Flag indicating whether the worker is not returning.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.not_returning"]}, "original_hire_date": {"name": "original_hire_date", "description": "The original date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.original_hire_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.pay_group_frequency_currency"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.pay_group_frequency_frequency"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.pay_group_frequency_primary_compensation_basis"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.pay_group_frequency_total_base_pay"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.pay_group_frequency_total_salary_and_allowances"]}, "pay_through_date": {"name": "pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.pay_through_date"]}, "primary_termination_category": {"name": "primary_termination_category", "description": "The primary termination category for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.primary_termination_category"]}, "primary_termination_reason": {"name": "primary_termination_reason", "description": "The primary termination reason for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.primary_termination_reason"]}, "probation_end_date": {"name": "probation_end_date", "description": "The date when the worker's probation ends.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.probation_end_date"]}, "probation_start_date": {"name": "probation_start_date", "description": "The date when the worker's probation starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.probation_start_date"]}, "reason_reference_id": {"name": "reason_reference_id", "description": "The reference ID for the termination reason.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.reason_reference_id"]}, "regrettable_termination": {"name": "regrettable_termination", "description": "Flag indicating whether the worker's termination is regrettable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.regrettable_termination"]}, "rehire": {"name": "rehire", "description": "Flag indicating whether the worker is eligible for rehire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.rehire"]}, "resignation_date": {"name": "resignation_date", "description": "The date when the worker resigned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.resignation_date"]}, "retired": {"name": "retired", "description": "Flag indicating whether the worker is retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.retired"]}, "retirement_date": {"name": "retirement_date", "description": "The date when the worker retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.retirement_date"]}, "retirement_eligibility_date": {"name": "retirement_eligibility_date", "description": "The date when the worker becomes eligible for retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.retirement_eligibility_date"]}, "return_unknown": {"name": "return_unknown", "description": "Flag indicating whether the worker's return status is unknown.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.return_unknown"]}, "seniority_date": {"name": "seniority_date", "description": "The date when the worker's seniority is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.seniority_date"]}, "severance_date": {"name": "severance_date", "description": "The date when the worker's severance is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.severance_date"]}, "terminated": {"name": "terminated", "description": "Flag indicating whether the worker is terminated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.terminated"]}, "termination_date": {"name": "termination_date", "description": "The date when the worker is terminated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.termination_date"]}, "termination_involuntary": {"name": "termination_involuntary", "description": "Flag indicating whether the termination is involuntary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.termination_involuntary"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.termination_last_day_of_work"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.time_off_service_date"]}, "universal_id": {"name": "universal_id", "description": "The universal ID associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.universal_id"]}, "user_id": {"name": "user_id", "description": "The identifier for the user associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.user_id"]}, "vesting_date": {"name": "vesting_date", "description": "The date when the worker's vesting starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.vesting_date"]}, "worker_code": {"name": "worker_code", "description": "The code associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.worker_code"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": "_fivetran_synced", "loaded_at_query": null, "meta": {}, "tags": [], "static_analysis": null}, "patch_path": null, "unrendered_config": {"loaded_at_field": "_fivetran_synced", "enabled": true, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"workday_worker_history_data\"", "created_at": 1781284402.07247, "unrendered_database": "{% if target.type not in (\"spark\") %}{{ var(\"workday_database\", target.database) }}{% endif %}", "unrendered_schema": "{{ var(\"workday_schema\", \"workday\") }}", "doc_blocks": ["doc.workday.worker"]}, "source.workday.workday.personal_information_history": {"database": "postgres", "schema": "public", "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": "_fivetran_synced", "loaded_at_query": 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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.personal_information_id"]}, "_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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_active"]}, "_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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_start"]}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_end"]}, "type": {"name": "type", "description": "The type of personal information record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.personal_information_type"]}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}, "additional_nationality": {"name": "additional_nationality", "description": "Additional nationality associated with the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.additional_nationality"]}, "blood_type": {"name": "blood_type", "description": "The blood type of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.blood_type"]}, "citizenship_status": {"name": "citizenship_status", "description": "The citizenship status of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.citizenship_status"]}, "city_of_birth": {"name": "city_of_birth", "description": "The city of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.city_of_birth"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.city_of_birth_code"]}, "country_of_birth": {"name": "country_of_birth", "description": "The country of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.country_of_birth"]}, "date_of_birth": {"name": "date_of_birth", "description": "The date of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.date_of_birth"]}, "date_of_death": {"name": "date_of_death", "description": "The date of death of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.date_of_death"]}, "gender": {"name": "gender", "description": "The gender of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.gender"]}, "hispanic_or_latino": {"name": "hispanic_or_latino", "description": "lag indicating whether the individual is Hispanic or Latino.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hispanic_or_latino"]}, "hukou_locality": {"name": "hukou_locality", "description": "The locality associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hukou_locality"]}, "hukou_postal_code": {"name": "hukou_postal_code", "description": "The postal code associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hukou_postal_code"]}, "hukou_region": {"name": "hukou_region", "description": "The region associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hukou_region"]}, "hukou_subregion": {"name": "hukou_subregion", "description": "The subregion associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hukou_subregion"]}, "hukou_type": {"name": "hukou_type", "description": "The type of Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hukou_type"]}, "last_medical_exam_date": {"name": "last_medical_exam_date", "description": "The date of the last medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.last_medical_exam_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.last_medical_exam_valid_to"]}, "local_hukou": {"name": "local_hukou", "description": "Flag indicating whether the Hukou is local.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.local_hukou"]}, "marital_status": {"name": "marital_status", "description": "The marital status of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.marital_status"]}, "marital_status_date": {"name": "marital_status_date", "description": "The date of the marital status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.marital_status_date"]}, "medical_exam_notes": {"name": "medical_exam_notes", "description": "Notes from the medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.medical_exam_notes"]}, "native_region": {"name": "native_region", "description": "The native region of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.native_region"]}, "native_region_code": {"name": "native_region_code", "description": "The code of the native region.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.native_region_code"]}, "personnel_file_agency": {"name": "personnel_file_agency", "description": "The agency associated with the personnel file.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.personnel_file_agency"]}, "political_affiliation": {"name": "political_affiliation", "description": "The political affiliation of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.political_affiliation"]}, "primary_nationality": {"name": "primary_nationality", "description": "The primary nationality of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.primary_nationality"]}, "region_of_birth": {"name": "region_of_birth", "description": "The region of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.region_of_birth"]}, "region_of_birth_code": {"name": "region_of_birth_code", "description": "The code of the region of birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.region_of_birth_code"]}, "religion": {"name": "religion", "description": "The religion of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.religion"]}, "social_benefit": {"name": "social_benefit", "description": "The social benefit associated with the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.social_benefit"]}, "tobacco_use": {"name": "tobacco_use", "description": "Flag indicating whether the individual uses tobacco.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.tobacco_use"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": "_fivetran_synced", "loaded_at_query": null, "meta": {}, "tags": [], "static_analysis": null}, "patch_path": null, "unrendered_config": {"loaded_at_field": "_fivetran_synced", "enabled": true, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"workday_personal_information_history_data\"", "created_at": 1781284402.0732563, "unrendered_database": "{% if target.type not in (\"spark\") %}{{ var(\"workday_database\", target.database) }}{% endif %}", "unrendered_schema": "{{ var(\"workday_schema\", \"workday\") }}", "doc_blocks": ["doc.workday.personal_information"]}, "source.workday.workday.person_name": {"database": "postgres", "schema": "public", "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": "_fivetran_synced", "loaded_at_query": 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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.index"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.personal_info_system_id"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.person_name_type"]}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}, "academic_suffix": {"name": "academic_suffix", "description": "The academic suffix, if applicable (e.g., PhD, MD).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.academic_suffix"]}, "additional_name_type": {"name": "additional_name_type", "description": "Additional type or category for the person name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.additional_name_type"]}, "country": {"name": "country", "description": "The country associated with the person name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.country"]}, "first_name": {"name": "first_name", "description": "The first name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.first_name"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.full_name_singapore_malaysia"]}, "hereditary_suffix": {"name": "hereditary_suffix", "description": "The hereditary suffix, if applicable (e.g., Jr, Sr).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hereditary_suffix"]}, "honorary_suffix": {"name": "honorary_suffix", "description": "The honorary suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.honorary_suffix"]}, "last_name": {"name": "last_name", "description": "The last name or surname of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.last_name"]}, "local_first_name": {"name": "local_first_name", "description": "The local or native first name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.local_first_name"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.local_first_name_2"]}, "local_last_name": {"name": "local_last_name", "description": "The local or native last name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.local_last_name"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.local_last_name_2"]}, "local_middle_name": {"name": "local_middle_name", "description": "The local or native middle name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.local_middle_name"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.local_middle_name_2"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.local_secondary_last_name"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.local_secondary_last_name_2"]}, "middle_name": {"name": "middle_name", "description": "The middle name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.middle_name"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.prefix_salutation"]}, "prefix_title": {"name": "prefix_title", "description": "The prefix or title associated with the name (e.g., Professor).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.prefix_title"]}, "prefix_title_code": {"name": "prefix_title_code", "description": "The code associated with the prefix or title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.prefix_title_code"]}, "professional_suffix": {"name": "professional_suffix", "description": "The professional suffix, if applicable (e.g., Esq., CPA).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.professional_suffix"]}, "religious_suffix": {"name": "religious_suffix", "description": "The religious suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.religious_suffix"]}, "royal_suffix": {"name": "royal_suffix", "description": "The royal suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.royal_suffix"]}, "secondary_last_name": {"name": "secondary_last_name", "description": "Secondary last name or surname, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.secondary_last_name"]}, "social_suffix": {"name": "social_suffix", "description": "The social suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.social_suffix"]}, "social_suffix_id": {"name": "social_suffix_id", "description": "The identifier for the social suffix.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.social_suffix_id"]}, "tertiary_last_name": {"name": "tertiary_last_name", "description": "Tertiary last name or surname, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.tertiary_last_name"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": "_fivetran_synced", "loaded_at_query": null, "meta": {}, "tags": [], "static_analysis": null}, "patch_path": null, "unrendered_config": {"loaded_at_field": "_fivetran_synced", "enabled": true, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"workday_person_name_data\"", "created_at": 1781284402.074008, "unrendered_database": "{% if target.type not in (\"spark\") %}{{ var(\"workday_database\", target.database) }}{% endif %}", "unrendered_schema": "{{ var(\"workday_schema\", \"workday\") }}", "doc_blocks": ["doc.workday.person_name"]}, "source.workday.workday.personal_information_ethnicity": {"database": "postgres", "schema": "public", "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": "_fivetran_synced", "loaded_at_query": 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": {"id": {"name": "id", "description": "The identifier associated with the ethnicity.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.ethnicity_id"]}, "country_personal_information_id": {"name": "country_personal_information_id", "description": "Country personal information ID linking to worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.country_personal_information_id"]}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}, "ethnicity_code": {"name": "ethnicity_code", "description": "The code representing the ethnicity of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.ethnicity_code"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": "_fivetran_synced", "loaded_at_query": null, "meta": {}, "tags": [], "static_analysis": null}, "patch_path": null, "unrendered_config": {"loaded_at_field": "_fivetran_synced", "enabled": true, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"workday_personal_information_ethnicity_data\"", "created_at": 1781284402.0746439, "unrendered_database": "{% if target.type not in (\"spark\") %}{{ var(\"workday_database\", target.database) }}{% endif %}", "unrendered_schema": "{{ var(\"workday_schema\", \"workday\") }}", "doc_blocks": ["doc.workday.personal_information_ethnicity"]}, "source.workday.workday.military_service": {"database": "postgres", "schema": "public", "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": "_fivetran_synced", "loaded_at_query": 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": {"personal_info_common_id": {"name": "personal_info_common_id", "description": "Personal information common data ID linking to worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.personal_info_common_id"]}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}, "discharge_date": {"name": "discharge_date", "description": "The date on which the individual was discharged from military service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.discharge_date"]}, "discharge_type": {"name": "discharge_type", "description": "Type of military discharge.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.discharge_type"]}, "notes": {"name": "notes", "description": "Additional notes or comments related to the military service record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.notes"]}, "rank": {"name": "rank", "description": "The rank achieved by the individual during military service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.rank"]}, "service": {"name": "service", "description": "The specific military service branch in which the individual served.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.service"]}, "status_id": {"name": "status_id", "description": "Military status identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.military_status_id"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.status_begin_date"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": "_fivetran_synced", "loaded_at_query": null, "meta": {}, "tags": [], "static_analysis": null}, "patch_path": null, "unrendered_config": {"loaded_at_field": "_fivetran_synced", "enabled": true, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"workday_military_service_data\"", "created_at": 1781284402.0752494, "unrendered_database": "{% if target.type not in (\"spark\") %}{{ var(\"workday_database\", target.database) }}{% endif %}", "unrendered_schema": "{{ var(\"workday_schema\", \"workday\") }}", "doc_blocks": ["doc.workday.military_service"]}, "source.workday.workday.personal_information_common_data": {"database": "postgres", "schema": "public", "name": "personal_information_common_data", "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_common_data", "fqn": ["workday", "staging", "workday", "personal_information_common_data"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_personal_information_common_data_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table containing universal personal information attributes including date of birth, death records, nationality, citizenship status, birth location, and medical exam data.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_deleted"]}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.worker_id"]}, "fivetran_id": {"name": "fivetran_id", "description": "Fivetran composite key identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.fivetran_id"]}, "additional_nationality": {"name": "additional_nationality", "description": "Additional nationality associated with the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.additional_nationality"]}, "blood_type": {"name": "blood_type", "description": "The blood type of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.blood_type"]}, "citizenship_status": {"name": "citizenship_status", "description": "The citizenship status of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.citizenship_status"]}, "city_of_birth": {"name": "city_of_birth", "description": "The city of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.city_of_birth"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.city_of_birth_code"]}, "country_of_birth": {"name": "country_of_birth", "description": "The country of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.country_of_birth"]}, "country_region_of_birth": {"name": "country_region_of_birth", "description": "Country region of birth code (renamed from legacy `region_of_birth_code` in v42.2 API).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.country_region_of_birth"]}, "date_of_birth": {"name": "date_of_birth", "description": "The date of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.date_of_birth"]}, "date_of_death": {"name": "date_of_death", "description": "The date of death of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.date_of_death"]}, "last_medical_exam_date": {"name": "last_medical_exam_date", "description": "The date of the last medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.last_medical_exam_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.last_medical_exam_valid_to"]}, "medical_exam_notes": {"name": "medical_exam_notes", "description": "Notes from the medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.medical_exam_notes"]}, "primary_nationality": {"name": "primary_nationality", "description": "The primary nationality of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.primary_nationality"]}, "region_of_birth": {"name": "region_of_birth", "description": "The region of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.region_of_birth"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": "_fivetran_synced", "loaded_at_query": null, "meta": {}, "tags": [], "static_analysis": null}, "patch_path": null, "unrendered_config": {"loaded_at_field": "_fivetran_synced", "enabled": true, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"workday_personal_information_common_data_data\"", "created_at": 1781284402.075896, "unrendered_database": "{% if target.type not in (\"spark\") %}{{ var(\"workday_database\", target.database) }}{% endif %}", "unrendered_schema": "{{ var(\"workday_schema\", \"workday\") }}", "doc_blocks": ["doc.workday.personal_information_common_data"]}, "source.workday.workday.country_personal_information": {"database": "postgres", "schema": "public", "name": "country_personal_information", "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.country_personal_information", "fqn": ["workday", "staging", "workday", "country_personal_information"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_country_personal_information_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table containing country-specific personal information attributes including gender, marital status, and region-specific data.", "columns": {"fivetran_id": {"name": "fivetran_id", "description": "Fivetran composite key identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.fivetran_id"]}, "personal_info_common_id": {"name": "personal_info_common_id", "description": "Personal information common data ID linking to worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.personal_info_common_id"]}, "country_code": {"name": "country_code", "description": "Country code for country-specific information.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.country_code"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_deleted"]}, "gender": {"name": "gender", "description": "The gender of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.gender"]}, "hispanic_or_latino": {"name": "hispanic_or_latino", "description": "lag indicating whether the individual is Hispanic or Latino.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hispanic_or_latino"]}, "hukou_locality": {"name": "hukou_locality", "description": "The locality associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hukou_locality"]}, "hukou_postal_code": {"name": "hukou_postal_code", "description": "The postal code associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hukou_postal_code"]}, "hukou_region_code": {"name": "hukou_region_code", "description": "Hukou region code (China-specific, renamed from legacy `hukou_region` in v42.2 API).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hukou_region_code"]}, "hukou_subregion_code": {"name": "hukou_subregion_code", "description": "Hukou subregion code (China-specific, renamed from legacy `hukou_subregion` in v42.2 API).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hukou_subregion_code"]}, "hukou_type_code": {"name": "hukou_type_code", "description": "Hukou type code (China-specific, renamed from legacy `hukou_type` in v42.2 API).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hukou_type_code"]}, "local_hukou": {"name": "local_hukou", "description": "Flag indicating whether the Hukou is local.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.local_hukou"]}, "marital_status": {"name": "marital_status", "description": "The marital status of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.marital_status"]}, "marital_status_date": {"name": "marital_status_date", "description": "The date of the marital status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.marital_status_date"]}, "native_region_code": {"name": "native_region_code", "description": "The code of the native region.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.native_region_code"]}, "native_region": {"name": "native_region", "description": "The native region of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.native_region"]}, "personnel_file_agency_for_person": {"name": "personnel_file_agency_for_person", "description": "Personnel file agency for person (renamed from legacy `personnel_file_agency` in v42.2 API).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.personnel_file_agency_for_person"]}, "political_affiliation": {"name": "political_affiliation", "description": "The political affiliation of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.political_affiliation"]}, "religion": {"name": "religion", "description": "The religion of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.religion"]}, "social_benefits_locality": {"name": "social_benefits_locality", "description": "Social benefits locality.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.social_benefits_locality"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": "_fivetran_synced", "loaded_at_query": null, "meta": {}, "tags": [], "static_analysis": null}, "patch_path": null, "unrendered_config": {"loaded_at_field": "_fivetran_synced", "enabled": true, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"workday_country_personal_information_data\"", "created_at": 1781284402.0765548, "unrendered_database": "{% if target.type not in (\"spark\") %}{{ var(\"workday_database\", target.database) }}{% endif %}", "unrendered_schema": "{{ var(\"workday_schema\", \"workday\") }}", "doc_blocks": ["doc.workday.country_personal_information"]}, "source.workday.workday.person_contact_email_address": {"database": "postgres", "schema": "public", "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": "_fivetran_synced", "loaded_at_query": 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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.id"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.personal_info_system_id"]}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}, "email_address": {"name": "email_address", "description": "The actual email address of the person.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.email_address"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.email_code"]}, "email_comment": {"name": "email_comment", "description": "Any additional comments or notes related to the email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.email_comment"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": "_fivetran_synced", "loaded_at_query": null, "meta": {}, "tags": [], "static_analysis": null}, "patch_path": null, "unrendered_config": {"loaded_at_field": "_fivetran_synced", "enabled": true, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"workday_person_contact_email_address_data\"", "created_at": 1781284402.0771787, "unrendered_database": "{% if target.type not in (\"spark\") %}{{ var(\"workday_database\", target.database) }}{% endif %}", "unrendered_schema": "{{ var(\"workday_schema\", \"workday\") }}", "doc_blocks": ["doc.workday.person_contact_email_address"]}, "source.workday.workday.worker_position_history": {"database": "postgres", "schema": "public", "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": "_fivetran_synced", "loaded_at_query": 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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.position_id"]}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.worker_id"]}, "_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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_active"]}, "_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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_start"]}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_end"]}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.academic_pay_setup_data_annual_work_period_end_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.academic_pay_setup_data_annual_work_period_start_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.academic_pay_setup_data_annual_work_period_work_percent_of_year"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.academic_pay_setup_data_disbursement_plan_period_end_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.academic_pay_setup_data_disbursement_plan_period_start_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.business_site_summary_display_language"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.business_site_summary_local"]}, "business_site_summary_location": {"name": "business_site_summary_location", "description": "The location of the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.business_site_summary_location"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.business_site_summary_location_type"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.business_site_summary_name"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.business_site_summary_scheduled_weekly_hours"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.business_site_summary_time_profile"]}, "business_title": {"name": "business_title", "description": "The business title associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.business_title"]}, "critical_job": {"name": "critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.critical_job"]}, "default_weekly_hours": {"name": "default_weekly_hours", "description": "The default weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.default_weekly_hours"]}, "difficulty_to_fill": {"name": "difficulty_to_fill", "description": "Indication of the difficulty level in filling the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.difficulty_to_fill"]}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.effective_date"]}, "employee_type": {"name": "employee_type", "description": "The type of employee associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.employee_type"]}, "end_date": {"name": "end_date", "description": "The end date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.end_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.end_employment_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.exclude_from_head_count"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.expected_assignment_end_date"]}, "external_employee": {"name": "external_employee", "description": "Flag indicating whether the worker is an external employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.external_employee"]}, "federal_withholding_fein": {"name": "federal_withholding_fein", "description": "The Federal Employer Identification Number (FEIN) for federal withholding.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.federal_withholding_fein"]}, "frequency": {"name": "frequency", "description": "The frequency associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.frequency"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.full_time_equivalent_percentage"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.headcount_restriction_code"]}, "home_country": {"name": "home_country", "description": "The home country of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.home_country"]}, "host_country": {"name": "host_country", "description": "The host country associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.host_country"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.international_assignment_type"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.is_primary_job"]}, "job_exempt": {"name": "job_exempt", "description": "Indicates whether the job is exempt from certain regulations.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_exempt"]}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_profile_id"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.management_level_code"]}, "paid_fte": {"name": "paid_fte", "description": "The paid full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.paid_fte"]}, "pay_group": {"name": "pay_group", "description": "The pay group associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.pay_group"]}, "pay_rate": {"name": "pay_rate", "description": "The pay rate associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.pay_rate"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.pay_rate_type"]}, "pay_through_date": {"name": "pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.pay_through_date"]}, "payroll_entity": {"name": "payroll_entity", "description": "The payroll entity associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.payroll_entity"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.payroll_file_number"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.regular_paid_equivalent_hours"]}, "scheduled_weekly_hours": {"name": "scheduled_weekly_hours", "description": "The scheduled weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.scheduled_weekly_hours"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.specify_paid_fte"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.specify_working_fte"]}, "start_date": {"name": "start_date", "description": "The start date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.start_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.start_international_assignment_reason"]}, "work_hours_profile": {"name": "work_hours_profile", "description": "The work hours profile associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.work_hours_profile"]}, "work_shift": {"name": "work_shift", "description": "The work shift associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.work_shift"]}, "work_shift_required": {"name": "work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.work_shift_required"]}, "work_space": {"name": "work_space", "description": "The work space associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.work_space"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.worker_hours_profile_classification"]}, "working_fte": {"name": "working_fte", "description": "The working full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.working_fte"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.working_time_frequency"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.working_time_unit"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.working_time_value"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": "_fivetran_synced", "loaded_at_query": null, "meta": {}, "tags": [], "static_analysis": null}, "patch_path": null, "unrendered_config": {"loaded_at_field": "_fivetran_synced", "enabled": true, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"workday_worker_position_history_data\"", "created_at": 1781284402.0780973, "unrendered_database": "{% if target.type not in (\"spark\") %}{{ var(\"workday_database\", target.database) }}{% endif %}", "unrendered_schema": "{{ var(\"workday_schema\", \"workday\") }}", "doc_blocks": ["doc.workday.worker_position"]}, "source.workday.workday.worker_leave_status": {"database": "postgres", "schema": "public", "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": "_fivetran_synced", "loaded_at_query": 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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.leave_request_event_id"]}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.worker_id"]}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}, "adoption_notification_date": {"name": "adoption_notification_date", "description": "The date of adoption notification.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.adoption_notification_date"]}, "adoption_placement_date": {"name": "adoption_placement_date", "description": "The date of adoption placement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.adoption_placement_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.age_of_dependent"]}, "benefits_effect": {"name": "benefits_effect", "description": "The effect of leave on benefits.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.benefits_effect"]}, "caesarean_section_birth": {"name": "caesarean_section_birth", "description": "Indicator for Caesarean section birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.caesarean_section_birth"]}, "child_birth_date": {"name": "child_birth_date", "description": "The date of child birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.child_birth_date"]}, "child_sdate_of_death": {"name": "child_sdate_of_death", "description": "The start date of child death.>", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.child_sdate_of_death"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.continuous_service_accrual_effect"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.date_baby_arrived_home_from_hospital"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.date_child_entered_country"]}, "date_of_recall": {"name": "date_of_recall", "description": "The date of recall.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.date_of_recall"]}, "description": {"name": "description", "description": "Description of the type of leave", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.leave_description"]}, "estimated_leave_end_date": {"name": "estimated_leave_end_date", "description": "The estimated end date of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.estimated_leave_end_date"]}, "expected_due_date": {"name": "expected_due_date", "description": "The expected due date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.expected_due_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.first_day_of_work"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.last_date_for_which_paid"]}, "leave_end_date": {"name": "leave_end_date", "description": "The end date of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.leave_end_date"]}, "leave_entitlement_override": {"name": "leave_entitlement_override", "description": "Override for leave entitlement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.leave_entitlement_override"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.leave_last_day_of_work"]}, "leave_of_absence_type": {"name": "leave_of_absence_type", "description": "The type of leave of absence.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.leave_of_absence_type"]}, "leave_percentage": {"name": "leave_percentage", "description": "The percentage of leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.leave_percentage"]}, "leave_return_event": {"name": "leave_return_event", "description": "The event associated with the return from leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.leave_return_event"]}, "leave_start_date": {"name": "leave_start_date", "description": "The start date of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.leave_start_date"]}, "leave_status_code": {"name": "leave_status_code", "description": "The code indicating the status of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.leave_status_code"]}, "leave_type_reason": {"name": "leave_type_reason", "description": "The reason for the leave type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.leave_type_reason"]}, "location_during_leave": {"name": "location_during_leave", "description": "The location during the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.location_during_leave"]}, "multiple_child_indicator": {"name": "multiple_child_indicator", "description": "Indicator for multiple children.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.multiple_child_indicator"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.number_of_babies_adopted_children"]}, "number_of_child_dependents": {"name": "number_of_child_dependents", "description": "The number of child dependents.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.number_of_child_dependents"]}, "number_of_previous_births": {"name": "number_of_previous_births", "description": "The number of previous births.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.number_of_previous_births"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.number_of_previous_maternity_leaves"]}, "on_leave": {"name": "on_leave", "description": "Indicator for whether the worker is on leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.on_leave"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.paid_time_off_accrual_effect"]}, "payroll_effect": {"name": "payroll_effect", "description": "The effect of leave on payroll.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.payroll_effect"]}, "single_parent_indicator": {"name": "single_parent_indicator", "description": "Indicator for a single parent.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.single_parent_indicator"]}, "social_security_disability_code": {"name": "social_security_disability_code", "description": "The code indicating social security disability.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.social_security_disability_code"]}, "stock_vesting_effect": {"name": "stock_vesting_effect", "description": "The effect of leave on stock vesting.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.stock_vesting_effect"]}, "stop_payment_date": {"name": "stop_payment_date", "description": "The date when stop payment occurs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.stop_payment_date"]}, "week_of_confinement": {"name": "week_of_confinement", "description": "Indicator for whether the leave is work-related.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.week_of_confinement"]}, "work_related": {"name": "work_related", "description": "Indicator for whether the leave is work-related.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.work_related"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": "_fivetran_synced", "loaded_at_query": null, "meta": {}, "tags": [], "static_analysis": null}, "patch_path": null, "unrendered_config": {"loaded_at_field": "_fivetran_synced", "enabled": true, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"workday_worker_leave_status_data\"", "created_at": 1781284402.0799484, "unrendered_database": "{% if target.type not in (\"spark\") %}{{ var(\"workday_database\", target.database) }}{% endif %}", "unrendered_schema": "{{ var(\"workday_schema\", \"workday\") }}", "doc_blocks": ["doc.workday.worker_leave_status"]}, "source.workday.workday.worker_position_organization_history": {"database": "postgres", "schema": "public", "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": "_fivetran_synced", "loaded_at_query": 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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.source_relation"]}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.position_id"]}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.worker_id"]}, "_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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_active"]}, "_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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_start"]}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_end"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}, "index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.index"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.date_of_pay_group_assignment"]}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.organization_id"]}, "primary_business_site": {"name": "primary_business_site", "description": "Primary location a worker's business is situated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.primary_business_site"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.used_in_change_organization_assignments"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": "_fivetran_synced", "loaded_at_query": null, "meta": {}, "tags": [], "static_analysis": null}, "patch_path": null, "unrendered_config": {"loaded_at_field": "_fivetran_synced", "enabled": true, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"workday_worker_position_organization_history_data\"", "created_at": 1781284402.0805843, "unrendered_database": "{% if target.type not in (\"spark\") %}{{ var(\"workday_database\", target.database) }}{% endif %}", "unrendered_schema": "{{ var(\"workday_schema\", \"workday\") }}", "doc_blocks": ["doc.workday.worker_position_organization"]}}, "macros": {"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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.0474489, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.0481646, "supported_languages": null}, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.0486252, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.0489516, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.0491414, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.0493438, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.0495338, "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 select distinct\n dependent_namespace.nspname as dependent_schema,\n dependent_class.relname as dependent_name,\n referenced_namespace.nspname as referenced_schema,\n referenced_class.relname as referenced_name\n\n -- Query for views: views are entries in pg_class with an entry in pg_rewrite, but we avoid\n -- a seq scan on pg_rewrite by leveraging the fact there is an \"internal\" row in pg_depend for\n -- the view...\n from pg_class as dependent_class\n join pg_namespace as dependent_namespace on dependent_namespace.oid = dependent_class.relnamespace\n join pg_depend as dependent_depend on dependent_depend.refobjid = dependent_class.oid\n and dependent_depend.classid = 'pg_rewrite'::regclass\n and dependent_depend.refclassid = 'pg_class'::regclass\n and dependent_depend.deptype = 'i'\n\n -- ... and via pg_depend (that has a row per column, hence the need for \"distinct\" above, and\n -- making sure to exclude the internal row to avoid a view appearing to depend on itself)...\n join pg_depend as joining_depend on joining_depend.objid = dependent_depend.objid\n and joining_depend.classid = 'pg_rewrite'::regclass\n and joining_depend.refclassid = 'pg_class'::regclass\n and joining_depend.refobjid != dependent_depend.refobjid\n\n -- ... we can find the tables they query from in pg_class, but excluding system tables. Note we\n -- don't need need to exclude _dependent_ system tables, because they only query from other\n -- system tables, and so are automatically excluded by excluding _referenced_ system tables\n join pg_class as referenced_class on referenced_class.oid = joining_depend.refobjid\n join pg_namespace as referenced_namespace on referenced_namespace.oid = referenced_class.relnamespace\n and referenced_namespace.nspname != 'information_schema'\n and referenced_namespace.nspname not like 'pg\\_%'\n\n order by\n dependent_schema, dependent_name, referenced_schema, referenced_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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.050448, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.0507698, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.054837, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.0556889, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.0562184, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.056744, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.0575442, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.0583203, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.05862, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.0591764, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.059822, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.0612762, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.0616279, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.062143, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.0625973, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.0632775, "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 {% if relation.type == 'materialized_view' -%}\n {% set relation_type = \"materialized view\" %}\n {%- else -%}\n {%- set relation_type = relation.type -%}\n {%- endif -%}\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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.063895, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.0648556, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.0651922, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.0654004, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.0656958, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.0659275, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.0668526, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.067117, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.067936, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.068306, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.0717854, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.0725121, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.0732517, "supported_languages": null}, "macro.dbt_postgres.postgres__get_incremental_microbatch_sql": {"name": "postgres__get_incremental_microbatch_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_microbatch_sql", "macro_sql": "{% macro postgres__get_incremental_microbatch_sql(arg_dict) %}\n\n {% if arg_dict[\"unique_key\"] %}\n {% do return(adapter.dispatch('get_incremental_merge_sql', 'dbt')(arg_dict)) %}\n {% else %}\n {{ exceptions.raise_compiler_error(\"dbt-postgres 'microbatch' requires a `unique_key` config\") }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_incremental_merge_sql", "macro.dbt.default__get_incremental_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.0737975, "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 {%- set columns = config.get(\"snapshot_table_column_names\") or get_snapshot_table_column_names() -%}\n\n update {{ target }}\n set {{ columns.dbt_valid_to }} = DBT_INTERNAL_SOURCE.{{ columns.dbt_valid_to }}\n from {{ source }} as DBT_INTERNAL_SOURCE\n where DBT_INTERNAL_SOURCE.{{ columns.dbt_scd_id }}::text = {{ target }}.{{ columns.dbt_scd_id }}::text\n and DBT_INTERNAL_SOURCE.dbt_change_type::text in ('update'::text, 'delete'::text)\n {% if config.get(\"dbt_valid_to_current\") %}\n and ({{ target }}.{{ columns.dbt_valid_to }} = {{ config.get('dbt_valid_to_current') }} or {{ target }}.{{ columns.dbt_valid_to }} is null);\n {% else %}\n and {{ target }}.{{ columns.dbt_valid_to }} is null;\n {% endif %}\n\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": ["macro.dbt.get_snapshot_table_column_names"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.0757046, "supported_languages": null}, "macro.dbt_postgres.postgres__formatted_scalar_function_args_sql": {"name": "postgres__formatted_scalar_function_args_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/materializations/functions/scalar.sql", "original_file_path": "macros/materializations/functions/scalar.sql", "unique_id": "macro.dbt_postgres.postgres__formatted_scalar_function_args_sql", "macro_sql": "{% macro postgres__formatted_scalar_function_args_sql() %}\n {% set args = [] %}\n {% for arg in model.arguments -%}\n {% set default_value = arg.get('default_value', none) %}\n {% if default_value != none %}\n {%- do args.append(arg.name ~ ' ' ~ arg.data_type ~ ' DEFAULT ' ~ default_value) -%}\n {% else %}\n {%- do args.append(arg.name ~ ' ' ~ arg.data_type) -%}\n {% endif %}\n {%- endfor %}\n {{ args | join(', ') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.076899, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.0774271, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.0776808, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.0779126, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.0782008, "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) -}}{{ ';' if not loop.last else \"\" }}\n {%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.0789373, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.079897, "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\t{{ ';' if not loop.last else \"\" }}\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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.0807765, "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.model) %}\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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.0812607, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.0821483, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.082411, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.0826976, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.0838525, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.0841112, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.0844119, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.0856233, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.0858824, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.0861526, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.0864122, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.086675, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.0869129, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.087169, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.0874681, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.0877306, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.0879726, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.0882354, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.0884836, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.0887413, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.0890968, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.0895443, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.0897214, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.0901961, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.0904422, "supported_languages": null}, "macro.dbt.cast": {"name": "cast", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/cast.sql", "original_file_path": "macros/utils/cast.sql", "unique_id": "macro.dbt.cast", "macro_sql": "{% macro cast(field, type) %}\n {{ return(adapter.dispatch('cast', 'dbt') (field, type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.0908968, "supported_languages": null}, "macro.dbt.default__cast": {"name": "default__cast", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/cast.sql", "original_file_path": "macros/utils/cast.sql", "unique_id": "macro.dbt.default__cast", "macro_sql": "{% macro default__cast(field, type) %}\n cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.0911129, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.0918694, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.0925753, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.0928898, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.0937333, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.0942087, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.0944428, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.0952132, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.0959058, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.0964463, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.0968475, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.097269, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.097463, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.0978394, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.0979738, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.0985067, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.0989437, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.0991876, "supported_languages": null}, "macro.dbt.date": {"name": "date", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date.sql", "original_file_path": "macros/utils/date.sql", "unique_id": "macro.dbt.date", "macro_sql": "{% macro date(year, month, day) %}\n {{ return(adapter.dispatch('date', 'dbt') (year, month, day)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__date"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.0997348, "supported_languages": null}, "macro.dbt.default__date": {"name": "default__date", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date.sql", "original_file_path": "macros/utils/date.sql", "unique_id": "macro.dbt.default__date", "macro_sql": "{% macro default__date(year, month, day) -%}\n {%- set dt = modules.datetime.date(year, month, day) -%}\n {%- set iso_8601_formatted_date = dt.strftime('%Y-%m-%d') -%}\n to_date('{{ iso_8601_formatted_date }}', 'YYYY-MM-DD')\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1002061, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.100673, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.100899, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.101753, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1027627, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1032782, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1038978, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1044483, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1047285, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1051295, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1054025, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1058655, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1060958, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1065125, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.106728, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1071346, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1073275, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1077502, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1080153, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.108677, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1090875, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.109574, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1103463, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1108096, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1110427, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1115687, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1118484, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1122198, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1123624, "supported_languages": null}, "macro.dbt.equals": {"name": "equals", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/equals.sql", "original_file_path": "macros/utils/equals.sql", "unique_id": "macro.dbt.equals", "macro_sql": "{% macro equals(expr1, expr2) %}\n {{ return(adapter.dispatch('equals', 'dbt') (expr1, expr2)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__equals"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1128993, "supported_languages": null}, "macro.dbt.default__equals": {"name": "default__equals", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/equals.sql", "original_file_path": "macros/utils/equals.sql", "unique_id": "macro.dbt.default__equals", "macro_sql": "{% macro default__equals(expr1, expr2) -%}\n{%- if adapter.behavior.enable_truthy_nulls_equals_macro.no_warn %}\n case when (({{ expr1 }} = {{ expr2 }}) or ({{ expr1 }} is null and {{ expr2 }} is null))\n then 0\n else 1\n end = 0\n{%- else -%}\n ({{ expr1 }} = {{ expr2 }})\n{%- endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1134014, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1140306, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.114321, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.114701, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.115123, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1153011, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1157813, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1160154, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1164148, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1170282, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1175349, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1184154, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.120385, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.120593, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1208744, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1210644, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1216314, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1219454, "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.render() }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.122147, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1225402, "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.render() }} to {{ grantees | join(', ') }}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1228895, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1232631, "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.render() }} from {{ grantees | join(', ') }}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.123625, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.124, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1252356, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1255746, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1259842, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.126374, "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.render() ~': 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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1282692, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.129163, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.129441, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1297913, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.130483, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.130815, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1310387, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.131291, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.131516, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1335692, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1338434, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1343598, "supported_languages": null}, "macro.dbt.get_list_of_column_names": {"name": "get_list_of_column_names", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_list_of_column_names", "macro_sql": "\n\n{%- macro get_list_of_column_names(columns) -%}\n {% set col_names = [] %}\n {% for col in columns %}\n {% do col_names.append(col.name) %}\n {% endfor %}\n {{ return(col_names) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1349666, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1353447, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1356921, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1359959, "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', 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": ["macro.dbt.cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1379623, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.138598, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.138914, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1394913, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1398585, "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.render() }} add column {{ adapter.quote(tmp_column) }} {{ new_column_type }};\n update {{ relation.render() }} set {{ adapter.quote(tmp_column) }} = {{ adapter.quote(column_name) }};\n alter table {{ relation.render() }} drop column {{ adapter.quote(column_name) }} cascade;\n alter table {{ relation.render() }} 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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1409252, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1413643, "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.render() }}\n\n {% for column in add_columns %}\n add column {{ column.quoted }} {{ column.expanded_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.quoted }}{{ ',' 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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1426637, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1435368, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.143795, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1440291, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1442056, "supported_languages": null}, "macro.dbt.get_snapshot_get_time_data_type": {"name": "get_snapshot_get_time_data_type", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.get_snapshot_get_time_data_type", "macro_sql": "{% macro get_snapshot_get_time_data_type() %}\n {% set snapshot_time = adapter.dispatch('snapshot_get_time', 'dbt')() %}\n {% set time_data_type_sql = 'select ' ~ snapshot_time ~ ' as dbt_snapshot_time' %}\n {% set snapshot_time_column_schema = get_column_schema_from_query(time_data_type_sql) %}\n {% set time_data_type = snapshot_time_column_schema[0].dtype %}\n {{ return(time_data_type or none) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.snapshot_get_time", "macro.dbt_postgres.postgres__snapshot_get_time", "macro.dbt.get_column_schema_from_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1448798, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1452851, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1454375, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.145711, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.145983, "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 is not none -%}\n {{ sql_header }}\n {%- endif %}\n {{ get_limit_subquery_sql(compiled_code, limit) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_limit_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1466572, "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": "\n{%- macro get_limit_subquery_sql(sql, limit) -%}\n {{ adapter.dispatch('get_limit_sql', 'dbt')(sql, limit) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__get_limit_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.146964, "supported_languages": null}, "macro.dbt.default__get_limit_sql": {"name": "default__get_limit_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_sql", "macro_sql": "{% macro default__get_limit_sql(sql, limit) %}\n {{ sql }}\n {% if limit is not none %}\n limit {{ limit }}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.147272, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1488757, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.149329, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.149666, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.150083, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1503918, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.15065, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1509364, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1513376, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.15167, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.152292, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.152615, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1528788, "supported_languages": null}, "macro.dbt.list_function_relations_without_caching": {"name": "list_function_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_function_relations_without_caching", "macro_sql": "{% macro list_function_relations_without_caching(schema_relation) %}\n {{ return(adapter.dispatch('list_function_relations_without_caching', 'dbt')(schema_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__list_function_relations_without_caching"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1531746, "supported_languages": null}, "macro.dbt.default__list_function_relations_without_caching": {"name": "default__list_function_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_function_relations_without_caching", "macro_sql": "{% macro default__list_function_relations_without_caching(schema_relation) %}\n {{ exceptions.raise_not_implemented(\n 'list_function_relations_without_caching macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.153449, "supported_languages": null}, "macro.dbt.get_catalog_for_single_relation": {"name": "get_catalog_for_single_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_catalog_for_single_relation", "macro_sql": "{% macro get_catalog_for_single_relation(relation) %}\n {{ return(adapter.dispatch('get_catalog_for_single_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_catalog_for_single_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1537468, "supported_languages": null}, "macro.dbt.default__get_catalog_for_single_relation": {"name": "default__get_catalog_for_single_relation", "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_for_single_relation", "macro_sql": "{% macro default__get_catalog_for_single_relation(relation) %}\n {{ exceptions.raise_not_implemented(\n 'get_catalog_for_single_relation macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1540074, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1542757, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1545403, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1548724, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1551456, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1563842, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1566684, "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 {#-- This ensures microbatch batches get unique temp relations to avoid clobbering --#}\n {% if suffix == '__dbt_tmp' and model.batch %}\n {% set suffix = suffix ~ '_' ~ model.batch.id %}\n {% endif %}\n\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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1573217, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1578083, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1582062, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1587374, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1591644, "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.render() }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1594763, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1598783, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.160787, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1611657, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1614163, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1619797, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1622784, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.162559, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1630254, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1639183, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.164614, "supported_languages": null}, "macro.dbt.collect_freshness_custom_sql": {"name": "collect_freshness_custom_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "unique_id": "macro.dbt.collect_freshness_custom_sql", "macro_sql": "{% macro collect_freshness_custom_sql(source, loaded_at_query) %}\n {{ return(adapter.dispatch('collect_freshness_custom_sql', 'dbt')(source, loaded_at_query))}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__collect_freshness_custom_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1649587, "supported_languages": null}, "macro.dbt.default__collect_freshness_custom_sql": {"name": "default__collect_freshness_custom_sql", "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_custom_sql", "macro_sql": "{% macro default__collect_freshness_custom_sql(source, loaded_at_query) %}\n {% call statement('collect_freshness_custom_sql', fetch_result=True, auto_begin=False) -%}\n with source_query as (\n {{ loaded_at_query }}\n )\n select\n (select * from source_query) as max_loaded_at,\n {{ current_timestamp() }} as snapshotted_at\n {% endcall %}\n {{ return(load_result('collect_freshness_custom_sql')) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1654832, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1666298, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1669123, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1672401, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.167646, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.16809, "supported_languages": null}, "macro.dbt.validate_doc_columns": {"name": "validate_doc_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.validate_doc_columns", "macro_sql": "{% macro validate_doc_columns(relation, column_dict, existing_column_names) %}\n {% set existing_lower = existing_column_names | map(\"lower\") | list %}\n {% set missing = [] %}\n {% set filtered = {} %}\n {% for col_name in column_dict %}\n {% set is_quoted = column_dict[col_name]['quote'] %}\n {% if is_quoted %}\n {% set present = col_name in existing_column_names %}\n {% else %}\n {% set present = col_name | lower in existing_lower %}\n {% endif %}\n {% if present %}\n {% do filtered.update({col_name: column_dict[col_name]}) %}\n {% else %}\n {% do missing.append(col_name) %}\n {% endif %}\n {% endfor %}\n {% if missing | length > 0 %}\n {{ exceptions.warn(\"In relation \" ~ relation.render() ~ \": The following columns are specified in the schema but are not present in the database: \" ~ missing | join(\", \")) }}\n {% endif %}\n {{ return(filtered) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1698036, "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 {% set existing_columns = adapter.get_columns_in_relation(relation) | map(attribute=\"name\") | list %}\n {% set filtered_columns = validate_doc_columns(relation, model.columns, existing_columns) %}\n {% set alter_comment_sql = alter_column_comment(relation, filtered_columns) %}\n {% if alter_comment_sql and alter_comment_sql | trim | length > 0 %}\n {% do run_query(alter_comment_sql) %}\n {% endif %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.alter_relation_comment", "macro.dbt.validate_doc_columns", "macro.dbt.alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1711748, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1717038, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.172072, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1733415, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1752288, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1765661, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1769567, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1791422, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1800902, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1805744, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1810918, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1815999, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.182081, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1835456, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1838756, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1841114, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1843524, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1845837, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.188223, "supported_languages": ["sql"]}, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1909335, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1915948, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1920097, "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.render() ~ \"`\") }}\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.render() ~ \"`\") }}\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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1941152, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.1945221, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.19558, "supported_languages": null}, "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 {% do create_indexes(intermediate_relation) %}\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 {{ 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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.199276, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.2016702, "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 {{ return(adapter.dispatch('check_for_schema_changes', 'dbt')(source_relation, target_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__check_for_schema_changes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.2020464, "supported_languages": null}, "macro.dbt.default__check_for_schema_changes": {"name": "default__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.default__check_for_schema_changes", "macro_sql": "{% macro default__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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.2042658, "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 {{ return(adapter.dispatch('sync_column_schemas', 'dbt')(on_schema_change, target_relation, schema_changes_dict)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__sync_column_schemas"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.204735, "supported_languages": null}, "macro.dbt.default__sync_column_schemas": {"name": "default__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.default__sync_column_schemas", "macro_sql": "{% macro default__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 {%- 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 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\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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.206792, "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 {{ return(adapter.dispatch('process_schema_changes', 'dbt')(on_schema_change, source_relation, target_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__process_schema_changes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.2072113, "supported_languages": null}, "macro.dbt.default__process_schema_changes": {"name": "default__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.default__process_schema_changes", "macro_sql": "{% macro default__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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.2086658, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.2106924, "supported_languages": null}, "macro.dbt.get_merge_unique_key_match": {"name": "get_merge_unique_key_match", "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_unique_key_match", "macro_sql": "{% macro get_merge_unique_key_match(source_unique_key, target_unique_key) %}\n {{ return(adapter.dispatch('get_merge_unique_key_match', 'dbt')(source_unique_key, target_unique_key)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_merge_unique_key_match"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.2110536, "supported_languages": null}, "macro.dbt.default__get_merge_unique_key_match": {"name": "default__get_merge_unique_key_match", "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_unique_key_match", "macro_sql": "{% macro default__get_merge_unique_key_match(source_unique_key, target_unique_key) -%}\n {{ return(equals(source_unique_key, target_unique_key) | trim) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.equals"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.211359, "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 source_unique_key = (\"DBT_INTERNAL_SOURCE.\" ~ unique_key) | trim %}\n {% set target_unique_key = (\"DBT_INTERNAL_DEST.\" ~ unique_key) | trim %}\n {% set unique_key_match = get_merge_unique_key_match(source_unique_key, target_unique_key) %}\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", "macro.dbt.get_merge_unique_key_match"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.2142417, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.2148502, "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 string %}\n {% set unique_key = [unique_key] %}\n {% endif %}\n\n {%- set unique_key_str = unique_key|join(', ') -%}\n\n delete from {{ target }} as DBT_INTERNAL_DEST\n where ({{ unique_key_str }}) in (\n select distinct {{ unique_key_str }}\n from {{ source }} as DBT_INTERNAL_SOURCE\n )\n {%- if incremental_predicates %}\n {% for predicate in incremental_predicates %}\n and {{ predicate }}\n {% endfor %}\n {%- endif -%};\n\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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.2160594, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.2165225, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.2176094, "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 {% set incremental_strategy = config.get('incremental_strategy') or 'default' %}\n {% set strategy_sql_macro_func = adapter.get_incremental_strategy_macro(context, incremental_strategy) %}\n\n {% if existing_relation is none %}\n {% set build_sql = get_create_table_as_sql(False, target_relation, sql) %}\n {% set relation_for_indexes = target_relation %}\n {% elif full_refresh_mode %}\n {% set build_sql = get_create_table_as_sql(False, intermediate_relation, sql) %}\n {% set relation_for_indexes = intermediate_relation %}\n {% set need_swap = true %}\n {% else %}\n {% do run_query(get_create_table_as_sql(True, temp_relation, sql)) %}\n {% set relation_for_indexes = temp_relation %}\n {% set contract_config = config.get('contract') %}\n {% if not contract_config or not contract_config.enforced %}\n {% do adapter.expand_target_column_types(\n from_relation=temp_relation,\n to_relation=target_relation) %}\n {% endif %}\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_predicates = config.get('predicates', none) or config.get('incremental_predicates', none) %}\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 existing_relation is none or existing_relation.is_view or should_full_refresh() %}\n {% do create_indexes(relation_for_indexes) %}\n {% endif %}\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 {{ 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.create_indexes", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.225273, "supported_languages": ["sql"]}, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.2265363, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.2269447, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.2272544, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.227746, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.228046, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.2285357, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.2288358, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.2292523, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.2295597, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.2298002, "supported_languages": null}, "macro.dbt.get_incremental_microbatch_sql": {"name": "get_incremental_microbatch_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_microbatch_sql", "macro_sql": "{% macro get_incremental_microbatch_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_microbatch_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_incremental_microbatch_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.230091, "supported_languages": null}, "macro.dbt.default__get_incremental_microbatch_sql": {"name": "default__get_incremental_microbatch_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_microbatch_sql", "macro_sql": "{% macro default__get_incremental_microbatch_sql(arg_dict) %}\n\n {{ exceptions.raise_not_implemented('microbatch materialization strategy not implemented for adapter ' + adapter.type()) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.2303689, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.2308307, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.2323017, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.233354, "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 {{ return(adapter.dispatch('diff_column_data_types', 'dbt')(source_columns, target_columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__diff_column_data_types"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.2337127, "supported_languages": null}, "macro.dbt.default__diff_column_data_types": {"name": "default__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.default__diff_column_data_types", "macro_sql": "{% macro default__diff_column_data_types(source_columns, target_columns) %}\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.expanded_data_type != tc.expanded_data_type and not sc.can_expand_to(other_column=tc) %}\n {{ result.append( { 'column_name': tc.name, 'new_type': sc.expanded_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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.2347798, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.2351637, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.236335, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.2373238, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.2377322, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.2379243, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.2384028, "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.render() }} clone {{ defer_relation.render() }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.2386818, "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 {%- set grant_config = config.get('grants') -%}\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.render() ~ \" 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 {% if target_relation.database == defer_relation.database and\n target_relation.schema == defer_relation.schema and\n target_relation.identifier == defer_relation.identifier %}\n {{ log(\"Target relation and defer relation are the same, skipping clone for relation: \" ~ target_relation.render()) }}\n {% else %}\n {% call statement('main') %}\n {{ create_or_replace_clone(target_relation, defer_relation) }}\n {% endcall %}\n {% endif %}\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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.2430947, "supported_languages": ["sql"]}, "macro.dbt.function_execute_build_sql": {"name": "function_execute_build_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/helpers.sql", "original_file_path": "macros/materializations/functions/helpers.sql", "unique_id": "macro.dbt.function_execute_build_sql", "macro_sql": "{% macro function_execute_build_sql(build_sql, existing_relation, target_relation) %}\n {{ return(adapter.dispatch('function_execute_build_sql', 'dbt')(build_sql, existing_relation, target_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__function_execute_build_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.2437983, "supported_languages": null}, "macro.dbt.default__function_execute_build_sql": {"name": "default__function_execute_build_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/helpers.sql", "original_file_path": "macros/materializations/functions/helpers.sql", "unique_id": "macro.dbt.default__function_execute_build_sql", "macro_sql": "{% macro default__function_execute_build_sql(build_sql, existing_relation, target_relation) %}\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 {{ adapter.commit() }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.2446742, "supported_languages": null}, "macro.dbt.materialization_function_default": {"name": "materialization_function_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/function.sql", "original_file_path": "macros/materializations/functions/function.sql", "unique_id": "macro.dbt.materialization_function_default", "macro_sql": "{% materialization function, default, supported_languages=['sql', 'python', 'javascript'] %}\n {% set existing_relation = load_cached_relation(this) %}\n {% set target_relation = this.incorporate(type=this.Function) %}\n\n {{ run_hooks(pre_hooks) }}\n\n {% set function_config = this.get_function_config(model) %}\n {% set macro_name = this.get_function_macro_name(function_config) %}\n\n {# Doing this aliasing of adapter.dispatch is a hacky way to disable the static analysis of actually calling adapter.dispatch #}\n {# This is necessary because the static analysis breaks being able to dynamically pass a macro_name #}\n {% set _dispatch = adapter.dispatch %}\n\n {% set build_sql = _dispatch(macro_name, 'dbt')(target_relation) %}\n {{ function_execute_build_sql(build_sql, existing_relation, target_relation) }}\n {{ run_hooks(post_hooks) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.run_hooks", "macro.dbt.function_execute_build_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.2462432, "supported_languages": ["sql", "python", "javascript"]}, "macro.dbt.get_aggregate_function_create_replace_signature": {"name": "get_aggregate_function_create_replace_signature", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/aggregate.sql", "original_file_path": "macros/materializations/functions/aggregate.sql", "unique_id": "macro.dbt.get_aggregate_function_create_replace_signature", "macro_sql": "{% macro get_aggregate_function_create_replace_signature(target_relation) %}\n {{ return(adapter.dispatch('get_aggregate_function_create_replace_signature', 'dbt')(target_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_aggregate_function_create_replace_signature"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.247418, "supported_languages": null}, "macro.dbt.default__get_aggregate_function_create_replace_signature": {"name": "default__get_aggregate_function_create_replace_signature", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/aggregate.sql", "original_file_path": "macros/materializations/functions/aggregate.sql", "unique_id": "macro.dbt.default__get_aggregate_function_create_replace_signature", "macro_sql": "{% macro default__get_aggregate_function_create_replace_signature(target_relation) %}\n CREATE OR REPLACE AGGREGATE FUNCTION {{ target_relation.render() }} ({{ get_formatted_aggregate_function_args()}})\n RETURNS {{ model.returns.data_type }}\n {{ get_function_language_specifier() }}\n {{ get_aggregate_function_volatility_specifier() }}\n {% if model.get('language') == 'python' %}\n {{ get_function_python_options() }}\n {% endif %}\n AS\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_formatted_aggregate_function_args", "macro.dbt.get_function_language_specifier", "macro.dbt.get_aggregate_function_volatility_specifier", "macro.dbt.get_function_python_options"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.248014, "supported_languages": null}, "macro.dbt.get_formatted_aggregate_function_args": {"name": "get_formatted_aggregate_function_args", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/aggregate.sql", "original_file_path": "macros/materializations/functions/aggregate.sql", "unique_id": "macro.dbt.get_formatted_aggregate_function_args", "macro_sql": "{% macro get_formatted_aggregate_function_args() %}\n {{ return(adapter.dispatch('get_formatted_aggregate_function_args', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_formatted_aggregate_function_args"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.2482927, "supported_languages": null}, "macro.dbt.default__get_formatted_aggregate_function_args": {"name": "default__get_formatted_aggregate_function_args", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/aggregate.sql", "original_file_path": "macros/materializations/functions/aggregate.sql", "unique_id": "macro.dbt.default__get_formatted_aggregate_function_args", "macro_sql": "{% macro default__get_formatted_aggregate_function_args() %}\n {# conveniently we can reuse the sql scalar function args #}\n {{ formatted_scalar_function_args_sql() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.formatted_scalar_function_args_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.2485015, "supported_languages": null}, "macro.dbt.get_function_language_specifier": {"name": "get_function_language_specifier", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/aggregate.sql", "original_file_path": "macros/materializations/functions/aggregate.sql", "unique_id": "macro.dbt.get_function_language_specifier", "macro_sql": "{% macro get_function_language_specifier() %}\n {{ return(adapter.dispatch('get_function_language_specifier', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_function_language_specifier"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.2487679, "supported_languages": null}, "macro.dbt.default__get_function_language_specifier": {"name": "default__get_function_language_specifier", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/aggregate.sql", "original_file_path": "macros/materializations/functions/aggregate.sql", "unique_id": "macro.dbt.default__get_function_language_specifier", "macro_sql": "{% macro default__get_function_language_specifier() %}\n {% set language = model.get('language') %}\n {% if language == 'sql' %}\n {# generally you dont need to specify the language for sql functions #}\n {% elif language == 'python' %}\n LANGUAGE PYTHON\n {% elif language == 'javascript' %}\n LANGUAGE js\n {% else %}\n {{ 'LANGUAGE ' ~ language.upper() }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.249381, "supported_languages": null}, "macro.dbt.get_aggregate_function_volatility_specifier": {"name": "get_aggregate_function_volatility_specifier", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/aggregate.sql", "original_file_path": "macros/materializations/functions/aggregate.sql", "unique_id": "macro.dbt.get_aggregate_function_volatility_specifier", "macro_sql": "{% macro get_aggregate_function_volatility_specifier() %}\n {{ return(adapter.dispatch('get_aggregate_function_volatility_specifier', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_aggregate_function_volatility_specifier"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.2496655, "supported_languages": null}, "macro.dbt.default__get_aggregate_function_volatility_specifier": {"name": "default__get_aggregate_function_volatility_specifier", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/aggregate.sql", "original_file_path": "macros/materializations/functions/aggregate.sql", "unique_id": "macro.dbt.default__get_aggregate_function_volatility_specifier", "macro_sql": "{% macro default__get_aggregate_function_volatility_specifier() %}\n {{ scalar_function_volatility_sql() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.scalar_function_volatility_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.2498448, "supported_languages": null}, "macro.dbt.get_function_python_options": {"name": "get_function_python_options", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/aggregate.sql", "original_file_path": "macros/materializations/functions/aggregate.sql", "unique_id": "macro.dbt.get_function_python_options", "macro_sql": "{% macro get_function_python_options() %}\n {{ return(adapter.dispatch('get_function_python_options', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_function_python_options"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.2501109, "supported_languages": null}, "macro.dbt.default__get_function_python_options": {"name": "default__get_function_python_options", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/aggregate.sql", "original_file_path": "macros/materializations/functions/aggregate.sql", "unique_id": "macro.dbt.default__get_function_python_options", "macro_sql": "{% macro default__get_function_python_options() %}\n RUNTIME_VERSION = '{{ model.config.get('runtime_version') }}'\n HANDLER = '{{ model.config.get('entry_point') }}'\n {% set packages = model.config.get('packages', []) %}\n {% if packages %}\n PACKAGES = ('{{ packages | join(\"','\") }}')\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.2507267, "supported_languages": null}, "macro.dbt.scalar_function_sql": {"name": "scalar_function_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/scalar.sql", "original_file_path": "macros/materializations/functions/scalar.sql", "unique_id": "macro.dbt.scalar_function_sql", "macro_sql": "{% macro scalar_function_sql(target_relation) %}\n {{ return(adapter.dispatch('scalar_function_sql', 'dbt')(target_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__scalar_function_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.2521584, "supported_languages": null}, "macro.dbt.default__scalar_function_sql": {"name": "default__scalar_function_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/scalar.sql", "original_file_path": "macros/materializations/functions/scalar.sql", "unique_id": "macro.dbt.default__scalar_function_sql", "macro_sql": "{% macro default__scalar_function_sql(target_relation) %}\n {{ scalar_function_create_replace_signature_sql(target_relation) }}\n {{ scalar_function_body_sql() }};\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.scalar_function_create_replace_signature_sql", "macro.dbt.scalar_function_body_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.2524357, "supported_languages": null}, "macro.dbt.scalar_function_create_replace_signature_sql": {"name": "scalar_function_create_replace_signature_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/scalar.sql", "original_file_path": "macros/materializations/functions/scalar.sql", "unique_id": "macro.dbt.scalar_function_create_replace_signature_sql", "macro_sql": "{% macro scalar_function_create_replace_signature_sql(target_relation) %}\n {{ return(adapter.dispatch('scalar_function_create_replace_signature_sql', 'dbt')(target_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__scalar_function_create_replace_signature_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.2528558, "supported_languages": null}, "macro.dbt.default__scalar_function_create_replace_signature_sql": {"name": "default__scalar_function_create_replace_signature_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/scalar.sql", "original_file_path": "macros/materializations/functions/scalar.sql", "unique_id": "macro.dbt.default__scalar_function_create_replace_signature_sql", "macro_sql": "{% macro default__scalar_function_create_replace_signature_sql(target_relation) %}\n CREATE OR REPLACE FUNCTION {{ target_relation.render() }} ({{ formatted_scalar_function_args_sql()}})\n RETURNS {{ model.returns.data_type }}\n {{ scalar_function_volatility_sql() }}\n AS\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.formatted_scalar_function_args_sql", "macro.dbt.scalar_function_volatility_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.2532141, "supported_languages": null}, "macro.dbt.formatted_scalar_function_args_sql": {"name": "formatted_scalar_function_args_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/scalar.sql", "original_file_path": "macros/materializations/functions/scalar.sql", "unique_id": "macro.dbt.formatted_scalar_function_args_sql", "macro_sql": "{% macro formatted_scalar_function_args_sql() %}\n {{ return(adapter.dispatch('formatted_scalar_function_args_sql', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__formatted_scalar_function_args_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.253502, "supported_languages": null}, "macro.dbt.formatted_scalar_function_args_javascript": {"name": "formatted_scalar_function_args_javascript", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/scalar.sql", "original_file_path": "macros/materializations/functions/scalar.sql", "unique_id": "macro.dbt.formatted_scalar_function_args_javascript", "macro_sql": "{% macro formatted_scalar_function_args_javascript() %}\n {{ return(adapter.dispatch('formatted_scalar_function_args_javascript', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__formatted_scalar_function_args_javascript"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.253771, "supported_languages": null}, "macro.dbt.default__formatted_scalar_function_args_sql": {"name": "default__formatted_scalar_function_args_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/scalar.sql", "original_file_path": "macros/materializations/functions/scalar.sql", "unique_id": "macro.dbt.default__formatted_scalar_function_args_sql", "macro_sql": "{% macro default__formatted_scalar_function_args_sql() %}\n {% set args = [] %}\n {% for arg in model.arguments -%}\n {%- do args.append(arg.name ~ ' ' ~ arg.data_type) -%}\n {%- endfor %}\n {{ args | join(', ') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.2543, "supported_languages": null}, "macro.dbt.default__formatted_scalar_function_args_javascript": {"name": "default__formatted_scalar_function_args_javascript", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/scalar.sql", "original_file_path": "macros/materializations/functions/scalar.sql", "unique_id": "macro.dbt.default__formatted_scalar_function_args_javascript", "macro_sql": "{% macro default__formatted_scalar_function_args_javascript() %}\n {% set msg = \"formatted_scalar_function_args_javascript not implemented for adapter \" ~ adapter.type() %}\n {% do exceptions.raise_compiler_error(msg) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.2546558, "supported_languages": null}, "macro.dbt.scalar_function_body_sql": {"name": "scalar_function_body_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/scalar.sql", "original_file_path": "macros/materializations/functions/scalar.sql", "unique_id": "macro.dbt.scalar_function_body_sql", "macro_sql": "{% macro scalar_function_body_sql() %}\n {{ return(adapter.dispatch('scalar_function_body_sql', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__scalar_function_body_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.254926, "supported_languages": null}, "macro.dbt.default__scalar_function_body_sql": {"name": "default__scalar_function_body_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/scalar.sql", "original_file_path": "macros/materializations/functions/scalar.sql", "unique_id": "macro.dbt.default__scalar_function_body_sql", "macro_sql": "{% macro default__scalar_function_body_sql() %}\n $$\n {{ model.compiled_code }}\n $$ LANGUAGE SQL\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.2551003, "supported_languages": null}, "macro.dbt.scalar_function_volatility_sql": {"name": "scalar_function_volatility_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/scalar.sql", "original_file_path": "macros/materializations/functions/scalar.sql", "unique_id": "macro.dbt.scalar_function_volatility_sql", "macro_sql": "{% macro scalar_function_volatility_sql() %}\n {{ return(adapter.dispatch('scalar_function_volatility_sql', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__scalar_function_volatility_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.2554057, "supported_languages": null}, "macro.dbt.scalar_function_volatility_javascript": {"name": "scalar_function_volatility_javascript", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/scalar.sql", "original_file_path": "macros/materializations/functions/scalar.sql", "unique_id": "macro.dbt.scalar_function_volatility_javascript", "macro_sql": "{% macro scalar_function_volatility_javascript() %}\n {{ return(adapter.dispatch('scalar_function_volatility_javascript', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__scalar_function_volatility_javascript"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.255689, "supported_languages": null}, "macro.dbt.default__scalar_function_volatility_javascript": {"name": "default__scalar_function_volatility_javascript", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/scalar.sql", "original_file_path": "macros/materializations/functions/scalar.sql", "unique_id": "macro.dbt.default__scalar_function_volatility_javascript", "macro_sql": "{% macro default__scalar_function_volatility_javascript() %}\n {% set volatility = model.config.get('volatility') %}\n {% if volatility != none %}\n {% set msg = \"Volatility is not supported by \" ~ adapter.type() ~ \" in javascript UDF and will be ignored\" %}\n {% do exceptions.warn(msg) %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.2562754, "supported_languages": null}, "macro.dbt.default__scalar_function_volatility_sql": {"name": "default__scalar_function_volatility_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/scalar.sql", "original_file_path": "macros/materializations/functions/scalar.sql", "unique_id": "macro.dbt.default__scalar_function_volatility_sql", "macro_sql": "{% macro default__scalar_function_volatility_sql() %}\n {% set volatility = model.config.get('volatility') %}\n {% if volatility == 'deterministic' %}\n IMMUTABLE\n {% elif volatility == 'stable' %}\n STABLE\n {% elif volatility == 'non-deterministic' %}\n VOLATILE\n {% elif volatility != none %}\n {# This shouldn't happen unless a new volatility is invented #}\n {% do unsupported_volatility_warning(volatility) %}\n {% endif %}\n {# If no volatility is set, don't add anything and let the data warehouse default it #}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.unsupported_volatility_warning"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.256969, "supported_languages": null}, "macro.dbt.unsupported_volatility_warning": {"name": "unsupported_volatility_warning", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/scalar.sql", "original_file_path": "macros/materializations/functions/scalar.sql", "unique_id": "macro.dbt.unsupported_volatility_warning", "macro_sql": "{% macro unsupported_volatility_warning(volatility) %}\n {{ return(adapter.dispatch('unsupported_volatility_warning', 'dbt')(volatility)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__unsupported_volatility_warning"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.2572813, "supported_languages": null}, "macro.dbt.default__unsupported_volatility_warning": {"name": "default__unsupported_volatility_warning", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/scalar.sql", "original_file_path": "macros/materializations/functions/scalar.sql", "unique_id": "macro.dbt.default__unsupported_volatility_warning", "macro_sql": "{% macro default__unsupported_volatility_warning(volatility) %}\n {% set msg = \"Found `\" ~ volatility ~ \"` volatility specified on function `\" ~ model.name ~ \"`. This volatility is not supported by \" ~ adapter.type() ~ \", and will be ignored\" %}\n {% do exceptions.warn(msg) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.2577326, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.2616482, "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.render() }} add column {{ adapter.quote(column.name) }} {{ column.expanded_data_type }};\n {% endcall %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.2622066, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.262645, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.262812, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.2630556, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.2632484, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.2636042, "supported_languages": null}, "macro.dbt.get_snapshot_table_column_names": {"name": "get_snapshot_table_column_names", "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_snapshot_table_column_names", "macro_sql": "{% macro get_snapshot_table_column_names() %}\n {{ return({'dbt_valid_to': 'dbt_valid_to', 'dbt_valid_from': 'dbt_valid_from', 'dbt_scd_id': 'dbt_scd_id', 'dbt_updated_at': 'dbt_updated_at', 'dbt_is_deleted': 'dbt_is_deleted'}) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.2640269, "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 {% set columns = config.get('snapshot_table_column_names') or get_snapshot_table_column_names() %}\n {% if strategy.hard_deletes == 'new_record' %}\n {% set new_scd_id = snapshot_hash_arguments([columns.dbt_scd_id, snapshot_get_time()]) %}\n {% endif %}\n with snapshot_query as (\n\n {{ source_sql }}\n\n ),\n\n snapshotted_data as (\n\n select *, {{ unique_key_fields(strategy.unique_key) }}\n from {{ target_relation }}\n where\n {% if config.get('dbt_valid_to_current') %}\n\t\t{% set source_unique_key = columns.dbt_valid_to | trim %}\n\t\t{% set target_unique_key = config.get('dbt_valid_to_current') | trim %}\n\n\t\t{# The exact equals semantics between NULL values depends on the current behavior flag set. Also, update records if the source field is null #}\n ( {{ equals(source_unique_key, target_unique_key) }} or {{ source_unique_key }} is null )\n {% else %}\n {{ columns.dbt_valid_to }} is null\n {% endif %}\n\n ),\n\n insertions_source_data as (\n\n select *, {{ unique_key_fields(strategy.unique_key) }},\n {{ strategy.updated_at }} as {{ columns.dbt_updated_at }},\n {{ strategy.updated_at }} as {{ columns.dbt_valid_from }},\n {{ get_dbt_valid_to_current(strategy, columns) }},\n {{ strategy.scd_id }} as {{ columns.dbt_scd_id }}\n\n from snapshot_query\n ),\n\n updates_source_data as (\n\n select *, {{ unique_key_fields(strategy.unique_key) }},\n {{ strategy.updated_at }} as {{ columns.dbt_updated_at }},\n {{ strategy.updated_at }} as {{ columns.dbt_valid_from }},\n {{ strategy.updated_at }} as {{ columns.dbt_valid_to }}\n\n from snapshot_query\n ),\n\n {%- if strategy.hard_deletes == 'invalidate' or strategy.hard_deletes == 'new_record' %}\n\n deletes_source_data as (\n\n select *, {{ unique_key_fields(strategy.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 {%- if strategy.hard_deletes == 'new_record' -%}\n ,'False' as {{ columns.dbt_is_deleted }}\n {%- endif %}\n\n from insertions_source_data as source_data\n left outer join snapshotted_data\n on {{ unique_key_join_on(strategy.unique_key, \"snapshotted_data\", \"source_data\") }}\n where {{ unique_key_is_null(strategy.unique_key, \"snapshotted_data\") }}\n or ({{ unique_key_is_not_null(strategy.unique_key, \"snapshotted_data\") }} and (\n {{ strategy.row_changed }} {%- if strategy.hard_deletes == 'new_record' -%} or snapshotted_data.{{ columns.dbt_is_deleted }} = 'True' {% endif %}\n )\n\n )\n\n ),\n\n updates as (\n\n select\n 'update' as dbt_change_type,\n source_data.*,\n snapshotted_data.{{ columns.dbt_scd_id }}\n {%- if strategy.hard_deletes == 'new_record' -%}\n , snapshotted_data.{{ columns.dbt_is_deleted }}\n {%- endif %}\n\n from updates_source_data as source_data\n join snapshotted_data\n on {{ unique_key_join_on(strategy.unique_key, \"snapshotted_data\", \"source_data\") }}\n where (\n {{ strategy.row_changed }} {%- if strategy.hard_deletes == 'new_record' -%} or snapshotted_data.{{ columns.dbt_is_deleted }} = 'True' {% endif %}\n )\n )\n\n {%- if strategy.hard_deletes == 'invalidate' or strategy.hard_deletes == 'new_record' %}\n ,\n deletes as (\n\n select\n 'delete' as dbt_change_type,\n source_data.*,\n {{ snapshot_get_time() }} as {{ columns.dbt_valid_from }},\n {{ snapshot_get_time() }} as {{ columns.dbt_updated_at }},\n {{ snapshot_get_time() }} as {{ columns.dbt_valid_to }},\n snapshotted_data.{{ columns.dbt_scd_id }}\n {%- if strategy.hard_deletes == 'new_record' -%}\n , snapshotted_data.{{ columns.dbt_is_deleted }}\n {%- endif %}\n from snapshotted_data\n left join deletes_source_data as source_data\n on {{ unique_key_join_on(strategy.unique_key, \"snapshotted_data\", \"source_data\") }}\n where {{ unique_key_is_null(strategy.unique_key, \"source_data\") }}\n\n {%- if strategy.hard_deletes == 'new_record' %}\n and not (\n --avoid updating the record's valid_to if the latest entry is marked as deleted\n snapshotted_data.{{ columns.dbt_is_deleted }} = 'True'\n and\n {% if config.get('dbt_valid_to_current') -%}\n snapshotted_data.{{ columns.dbt_valid_to }} = {{ config.get('dbt_valid_to_current') }}\n {%- else -%}\n snapshotted_data.{{ columns.dbt_valid_to }} is null\n {%- endif %}\n )\n {%- endif %}\n )\n {%- endif %}\n\n {%- if strategy.hard_deletes == 'new_record' %}\n {% set snapshotted_cols = get_list_of_column_names(get_columns_in_relation(target_relation)) %}\n {% set source_sql_cols = get_column_schema_from_query(source_sql) %}\n ,\n deletion_records as (\n\n select\n 'insert' as dbt_change_type,\n {#/*\n If a column has been added to the source it won't yet exist in the\n snapshotted table so we insert a null value as a placeholder for the column.\n */#}\n {%- for col in source_sql_cols -%}\n {%- if col.name in snapshotted_cols -%}\n snapshotted_data.{{ adapter.quote(col.column) }},\n {%- else -%}\n {{ safe_cast('NULL', col.dtype) }} as {{ adapter.quote(col.column) }},\n {%- endif -%}\n {% endfor -%}\n {%- if strategy.unique_key | is_list -%}\n {%- for key in strategy.unique_key -%}\n snapshotted_data.{{ key }} as dbt_unique_key_{{ loop.index }},\n {% endfor -%}\n {%- else -%}\n snapshotted_data.dbt_unique_key as dbt_unique_key,\n {% endif -%}\n {{ snapshot_get_time() }} as {{ columns.dbt_valid_from }},\n {{ snapshot_get_time() }} as {{ columns.dbt_updated_at }},\n snapshotted_data.{{ columns.dbt_valid_to }} as {{ columns.dbt_valid_to }},\n {{ new_scd_id }} as {{ columns.dbt_scd_id }},\n 'True' as {{ columns.dbt_is_deleted }}\n from snapshotted_data\n left join deletes_source_data as source_data\n on {{ unique_key_join_on(strategy.unique_key, \"snapshotted_data\", \"source_data\") }}\n where {{ unique_key_is_null(strategy.unique_key, \"source_data\") }}\n and not (\n --avoid inserting a new record if the latest one is marked as deleted\n snapshotted_data.{{ columns.dbt_is_deleted }} = 'True'\n and\n {% if config.get('dbt_valid_to_current') -%}\n snapshotted_data.{{ columns.dbt_valid_to }} = {{ config.get('dbt_valid_to_current') }}\n {%- else -%}\n snapshotted_data.{{ columns.dbt_valid_to }} is null\n {%- endif %}\n )\n\n )\n {%- endif %}\n\n select * from insertions\n union all\n select * from updates\n {%- if strategy.hard_deletes == 'invalidate' or strategy.hard_deletes == 'new_record' %}\n union all\n select * from deletes\n {%- endif %}\n {%- if strategy.hard_deletes == 'new_record' %}\n union all\n select * from deletion_records\n {%- endif %}\n\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_snapshot_table_column_names", "macro.dbt.snapshot_hash_arguments", "macro.dbt.snapshot_get_time", "macro.dbt.unique_key_fields", "macro.dbt.equals", "macro.dbt.get_dbt_valid_to_current", "macro.dbt.unique_key_join_on", "macro.dbt.unique_key_is_null", "macro.dbt.unique_key_is_not_null", "macro.dbt.get_list_of_column_names", "macro.dbt.get_columns_in_relation", "macro.dbt.get_column_schema_from_query", "macro.dbt.safe_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.271438, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.271842, "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 {% set columns = config.get('snapshot_table_column_names') or get_snapshot_table_column_names() %}\n\n select *,\n {{ strategy.scd_id }} as {{ columns.dbt_scd_id }},\n {{ strategy.updated_at }} as {{ columns.dbt_updated_at }},\n {{ strategy.updated_at }} as {{ columns.dbt_valid_from }},\n {{ get_dbt_valid_to_current(strategy, columns) }}\n {%- if strategy.hard_deletes == 'new_record' -%}\n , 'False' as {{ columns.dbt_is_deleted }}\n {% endif -%}\n from (\n {{ sql }}\n ) sbq\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_snapshot_table_column_names", "macro.dbt.get_dbt_valid_to_current"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.2727134, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.2734313, "supported_languages": null}, "macro.dbt.get_updated_at_column_data_type": {"name": "get_updated_at_column_data_type", "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_updated_at_column_data_type", "macro_sql": "{% macro get_updated_at_column_data_type(snapshot_sql) %}\n {% set snapshot_sql_column_schema = get_column_schema_from_query(snapshot_sql) %}\n {% set dbt_updated_at_data_type = null %}\n {% set ns = namespace() -%} {#-- handle for-loop scoping with a namespace --#}\n {% set ns.dbt_updated_at_data_type = null -%}\n {% for column in snapshot_sql_column_schema %}\n {% if ((column.column == 'dbt_updated_at') or (column.column == 'DBT_UPDATED_AT')) %}\n {% set ns.dbt_updated_at_data_type = column.dtype %}\n {% endif %}\n {% endfor %}\n {{ return(ns.dbt_updated_at_data_type or none) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_column_schema_from_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.2744021, "supported_languages": null}, "macro.dbt.check_time_data_types": {"name": "check_time_data_types", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.check_time_data_types", "macro_sql": "{% macro check_time_data_types(sql) %}\n {% set dbt_updated_at_data_type = get_updated_at_column_data_type(sql) %}\n {% set snapshot_get_time_data_type = get_snapshot_get_time_data_type() %}\n {% if snapshot_get_time_data_type is not none and dbt_updated_at_data_type is not none and snapshot_get_time_data_type != dbt_updated_at_data_type %}\n {% if exceptions.warn_snapshot_timestamp_data_types %}\n {{ exceptions.warn_snapshot_timestamp_data_types(snapshot_get_time_data_type, dbt_updated_at_data_type) }}\n {% endif %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_updated_at_column_data_type", "macro.dbt.get_snapshot_get_time_data_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.2751057, "supported_languages": null}, "macro.dbt.get_dbt_valid_to_current": {"name": "get_dbt_valid_to_current", "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_dbt_valid_to_current", "macro_sql": "{% macro get_dbt_valid_to_current(strategy, columns) %}\n {% set dbt_valid_to_current = config.get('dbt_valid_to_current') or \"null\" %}\n coalesce(nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}), {{dbt_valid_to_current}})\n as {{ columns.dbt_valid_to }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.2755725, "supported_languages": null}, "macro.dbt.unique_key_fields": {"name": "unique_key_fields", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.unique_key_fields", "macro_sql": "{% macro unique_key_fields(unique_key) %}\n {% if unique_key | is_list %}\n {% for key in unique_key %}\n {{ key }} as dbt_unique_key_{{ loop.index }}\n {%- if not loop.last %} , {%- endif %}\n {% endfor %}\n {% else %}\n {{ unique_key }} as dbt_unique_key\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.276137, "supported_languages": null}, "macro.dbt.unique_key_join_on": {"name": "unique_key_join_on", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.unique_key_join_on", "macro_sql": "{% macro unique_key_join_on(unique_key, identifier, from_identifier) %}\n {% if unique_key | is_list %}\n {% for key in unique_key %}\n\t {% set source_unique_key = (identifier ~ \".dbt_unique_key_\" ~ loop.index) | trim %}\n\t {% set target_unique_key = (from_identifier ~ \".dbt_unique_key_\" ~ loop.index) | trim %}\n\t {{ equals(source_unique_key, target_unique_key) }}\n {%- if not loop.last %} and {%- endif %}\n {% endfor %}\n {% else %}\n {{ identifier }}.dbt_unique_key = {{ from_identifier }}.dbt_unique_key\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.equals"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.2770658, "supported_languages": null}, "macro.dbt.unique_key_is_null": {"name": "unique_key_is_null", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.unique_key_is_null", "macro_sql": "{% macro unique_key_is_null(unique_key, identifier) %}\n {% if unique_key | is_list %}\n {{ identifier }}.dbt_unique_key_1 is null\n {% else %}\n {{ identifier }}.dbt_unique_key is null\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.2774231, "supported_languages": null}, "macro.dbt.unique_key_is_not_null": {"name": "unique_key_is_not_null", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.unique_key_is_not_null", "macro_sql": "{% macro unique_key_is_not_null(unique_key, identifier) %}\n {% if unique_key | is_list %}\n {{ identifier }}.dbt_unique_key_1 is not null\n {% else %}\n {{ identifier }}.dbt_unique_key is not null\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.2777615, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.2813942, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.2816937, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.2820618, "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, model_config, target_exists) %}\n {# The model_config parameter is no longer used, but is passed in anyway for compatibility. #}\n {% set primary_key = config.get('unique_key') %}\n {% set updated_at = config.get('updated_at') %}\n {% set hard_deletes = adapter.get_hard_deletes_behavior(config) %}\n {% set invalidate_hard_deletes = hard_deletes == 'invalidate' %}\n {% set columns = config.get(\"snapshot_table_column_names\") or get_snapshot_table_column_names() %}\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 }}.{{ columns.dbt_valid_from }} < {{ current_rel }}.{{ updated_at }})\n {%- endset %}\n\n {% set scd_args = api.Relation.scd_args(primary_key, updated_at) %}\n {% set scd_id_expr = snapshot_hash_arguments(scd_args) %}\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 \"hard_deletes\": hard_deletes\n }) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_snapshot_table_column_names", "macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.283821, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.2841089, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.2844112, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.2867205, "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, model_config, target_exists) %}\n {# The model_config parameter is no longer used, but is passed in anyway for compatibility. #}\n {% set check_cols_config = config.get('check_cols') %}\n {% set primary_key = config.get('unique_key') %}\n {% set hard_deletes = adapter.get_hard_deletes_behavior(config) %}\n {% set invalidate_hard_deletes = hard_deletes == 'invalidate' %}\n {% set updated_at = config.get('updated_at') or 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_args = api.Relation.scd_args(primary_key, updated_at) %}\n {% set scd_id_expr = snapshot_hash_arguments(scd_args) %}\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 \"hard_deletes\": 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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.2892237, "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\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 {# The model['config'] parameter below is no longer used, but passing anyway for compatibility #}\n {# It was a dictionary of config, instead of the config object from the context #}\n {% set strategy = strategy_macro(model, \"snapshotted_data\", \"source_data\", model['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 build_or_select_sql = build_sql %}\n {% set final_sql = create_table_as(False, target_relation, build_sql) %}\n\n {% else %}\n\n {% set columns = config.get(\"snapshot_table_column_names\") or get_snapshot_table_column_names() %}\n\n {{ adapter.assert_valid_snapshot_target_given_strategy(target_relation, columns, strategy) }}\n\n {% set build_or_select_sql = snapshot_staging_table(strategy, sql, target_relation) %}\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 remove_columns = ['dbt_change_type', 'DBT_CHANGE_TYPE', 'dbt_unique_key', 'DBT_UNIQUE_KEY'] %}\n {% if unique_key | is_list %}\n {% for key in strategy.unique_key %}\n {{ remove_columns.append('dbt_unique_key_' + loop.index|string) }}\n {{ remove_columns.append('DBT_UNIQUE_KEY_' + loop.index|string) }}\n {% endfor %}\n {% endif %}\n\n {% set missing_columns = adapter.get_missing_columns(staging_table, target_relation)\n | rejectattr('name', 'in', remove_columns)\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', 'in', remove_columns)\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\n {{ check_time_data_types(build_or_select_sql) }}\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.get_snapshot_table_column_names", "macro.dbt.snapshot_staging_table", "macro.dbt.build_snapshot_staging_table", "macro.dbt.create_columns", "macro.dbt.snapshot_merge_sql", "macro.dbt.check_time_data_types", "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.2960267, "supported_languages": ["sql"]}, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.296882, "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 {%- set columns = config.get(\"snapshot_table_column_names\") or get_snapshot_table_column_names() -%}\n\n merge into {{ target.render() }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on DBT_INTERNAL_SOURCE.{{ columns.dbt_scd_id }} = DBT_INTERNAL_DEST.{{ columns.dbt_scd_id }}\n\n when matched\n {% if config.get(\"dbt_valid_to_current\") %}\n\t{% set source_unique_key = (\"DBT_INTERNAL_DEST.\" ~ columns.dbt_valid_to) | trim %}\n\t{% set target_unique_key = config.get('dbt_valid_to_current') | trim %}\n\tand ({{ equals(source_unique_key, target_unique_key) }} or {{ source_unique_key }} is null)\n\n {% else %}\n and DBT_INTERNAL_DEST.{{ columns.dbt_valid_to }} is null\n {% endif %}\n and DBT_INTERNAL_SOURCE.dbt_change_type in ('update', 'delete')\n then update\n set {{ columns.dbt_valid_to }} = DBT_INTERNAL_SOURCE.{{ columns.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": ["macro.dbt.get_snapshot_table_column_names", "macro.dbt.equals"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.2982585, "supported_languages": null}, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.2994308, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.2999766, "supported_languages": null}, "macro.dbt.get_unit_test_sql": {"name": "get_unit_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_unit_test_sql", "macro_sql": "{% macro get_unit_test_sql(main_sql, expected_fixture_sql, expected_column_names) -%}\n {{ adapter.dispatch('get_unit_test_sql', 'dbt')(main_sql, expected_fixture_sql, expected_column_names) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_unit_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.3003771, "supported_languages": null}, "macro.dbt.default__get_unit_test_sql": {"name": "default__get_unit_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_unit_test_sql", "macro_sql": "{% macro default__get_unit_test_sql(main_sql, expected_fixture_sql, expected_column_names) -%}\n-- Build actual result given inputs\nwith dbt_internal_unit_test_actual as (\n select\n {% for expected_column_name in expected_column_names %}{{expected_column_name}}{% if not loop.last -%},{% endif %}{%- endfor -%}, {{ dbt.string_literal(\"actual\") }} as {{ adapter.quote(\"actual_or_expected\") }}\n from (\n {{ main_sql }}\n ) _dbt_internal_unit_test_actual\n),\n-- Build expected result\ndbt_internal_unit_test_expected as (\n select\n {% for expected_column_name in expected_column_names %}{{expected_column_name}}{% if not loop.last -%}, {% endif %}{%- endfor -%}, {{ dbt.string_literal(\"expected\") }} as {{ adapter.quote(\"actual_or_expected\") }}\n from (\n {{ expected_fixture_sql }}\n ) _dbt_internal_unit_test_expected\n)\n-- Union actual and expected results\nselect * from dbt_internal_unit_test_actual\nunion all\nselect * from dbt_internal_unit_test_expected\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.string_literal"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.3014228, "supported_languages": null}, "macro.dbt.materialization_unit_default": {"name": "materialization_unit_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/unit.sql", "original_file_path": "macros/materializations/tests/unit.sql", "unique_id": "macro.dbt.materialization_unit_default", "macro_sql": "{%- materialization unit, default -%}\n\n {% set relations = [] %}\n {% set sql_header = config.get('sql_header') if flags.REQUIRE_SQL_HEADER_IN_TEST_CONFIGS else none %}\n\n {% set expected_rows = config.get('expected_rows') %}\n {% set expected_sql = config.get('expected_sql') %}\n {% set tested_expected_column_names = expected_rows[0].keys() if (expected_rows | length ) > 0 else get_columns_in_query(sql) %}\n\n {%- set target_relation = this.incorporate(type='table') -%}\n {%- set temp_relation = make_temp_relation(target_relation)-%}\n {% do run_query(get_create_table_as_sql(True, temp_relation, get_empty_subquery_sql(sql))) %}\n {%- set columns_in_relation = adapter.get_columns_in_relation(temp_relation) -%}\n {%- set column_name_to_data_types = {} -%}\n {%- set column_name_to_quoted = {} -%}\n {%- for column in columns_in_relation -%}\n {%- do column_name_to_data_types.update({column.name|lower: column.data_type}) -%}\n {%- do column_name_to_quoted.update({column.name|lower: column.quoted}) -%}\n {%- endfor -%}\n\n {%- set expected_column_names_quoted = [] -%}\n {%- for column_name in tested_expected_column_names -%}\n {%- do expected_column_names_quoted.append(column_name_to_quoted[column_name|lower]) -%}\n {%- endfor -%}\n\n {% if not expected_sql %}\n {% set expected_sql = get_expected_sql(expected_rows, column_name_to_data_types, column_name_to_quoted) %}\n {% endif %}\n {% set unit_test_sql = get_unit_test_sql(sql, expected_sql, expected_column_names_quoted) %}\n\n {% call statement('main', fetch_result=True) -%}\n\n {% if sql_header %}{{ sql_header }}{% endif %}\n {{ unit_test_sql }}\n\n {%- endcall %}\n\n {% do adapter.drop_relation(temp_relation) %}\n\n {{ return({'relations': relations}) }}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.get_columns_in_query", "macro.dbt.make_temp_relation", "macro.dbt.run_query", "macro.dbt.get_create_table_as_sql", "macro.dbt.get_empty_subquery_sql", "macro.dbt.get_expected_sql", "macro.dbt.get_unit_test_sql", "macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.3049014, "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 {% set limit = config.get('limit') %}\n {% set sql_header = config.get('sql_header') if flags.REQUIRE_SQL_HEADER_IN_TEST_CONFIGS else none %}\n\n {% set sql_with_limit %}\n {{ get_limit_subquery_sql(sql, limit) }}\n {% endset %}\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 {% if sql_header %}{{ sql_header }}{% endif %}\n {{ get_create_sql(target_relation, sql_with_limit) }}\n {% endcall %}\n\n {% do relations.append(target_relation) %}\n\n {# Since the test failures have already been saved to the database, reuse that result rather than querying again #}\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_with_limit %}\n\n {% endif %}\n\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 {% if sql_header %}{{ sql_header }}{% endif %}\n {# The limit has already been included above, and we do not want to duplicate it again. We also want to be safe for macro overrides treating `limit` as a required parameter. #}\n {{ get_test_sql(main_sql, fail_calc, warn_if, error_if, limit=none)}}\n\n {%- endcall %}\n\n {{ return({'relations': relations}) }}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.get_limit_subquery_sql", "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.3092425, "supported_languages": ["sql"]}, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.3098764, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.3105226, "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.render())) }}\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 = \"\" %}\n {% if rows_affected > 0 %}\n {% set sql = load_csv_rows(model, agate_table) %}\n {% endif %}\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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.3148694, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.3165774, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.3180454, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.318454, "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.render() %}\n {% endif %}\n\n {{ return(sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.3192518, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.3195777, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.3198042, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.3200345, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.3202243, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.320497, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.3206875, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.321467, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.3218899, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.3238535, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.3244343, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.3247838, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.3253667, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.325785, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.326727, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.3286765, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.3292115, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.3295794, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.3303468, "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.render() }} 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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.3309817, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.331285, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.3316267, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.331949, "supported_languages": null}, "macro.dbt.drop_schema_named": {"name": "drop_schema_named", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/schema.sql", "original_file_path": "macros/relations/schema.sql", "unique_id": "macro.dbt.drop_schema_named", "macro_sql": "{% macro drop_schema_named(schema_name) %}\n {{ return(adapter.dispatch('drop_schema_named', 'dbt') (schema_name)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__drop_schema_named"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.3324118, "supported_languages": null}, "macro.dbt.default__drop_schema_named": {"name": "default__drop_schema_named", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/schema.sql", "original_file_path": "macros/relations/schema.sql", "unique_id": "macro.dbt.default__drop_schema_named", "macro_sql": "{% macro default__drop_schema_named(schema_name) %}\n {% set schema_relation = api.Relation.create(schema=schema_name) %}\n {{ adapter.drop_schema(schema_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.332768, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.3334482, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.3339188, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.3347344, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.3354557, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.3358047, "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.render() }} rename to {{ target_name }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.336294, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.3369493, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.3376975, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.338147, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.3384066, "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 {{- 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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.3388119, "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.render() }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.3390157, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.339515, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.3397405, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.3401742, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.3404334, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.3408682, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.34123, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.3421652, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.3424993, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.3429644, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.3432035, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.3440852, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.344343, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.3461766, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.3465364, "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.render() ~ \" 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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.346934, "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 {{- 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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.3474479, "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.render() }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.34767, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.3481183, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.34838, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.3489995, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.34927, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.3501122, "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.render() }}\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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.3508723, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.351346, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.3515916, "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 {{- 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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.3519943, "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.render() }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.3521984, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.3526475, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.3528976, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.3539705, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.354284, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.355013, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.3561747, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.3569624, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.3572772, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.357587, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.3589191, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.35913, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.3601687, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.3604667, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.360695, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.3627768, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.3634367, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.3640118, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.3646529, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.3650842, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.365845, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.3662903, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.3668132, "supported_languages": null}, "macro.dbt.generate_latest_version_pointer_alias": {"name": "generate_latest_version_pointer_alias", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_latest_version_pointer_alias.sql", "original_file_path": "macros/get_custom_name/get_latest_version_pointer_alias.sql", "unique_id": "macro.dbt.generate_latest_version_pointer_alias", "macro_sql": "{% macro generate_latest_version_pointer_alias(custom_alias_name=none, node=none) -%}\n {% do return(adapter.dispatch('generate_latest_version_pointer_alias', 'dbt')(custom_alias_name, node)) %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_latest_version_pointer_alias"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.3674574, "supported_languages": null}, "macro.dbt.default__generate_latest_version_pointer_alias": {"name": "default__generate_latest_version_pointer_alias", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_latest_version_pointer_alias.sql", "original_file_path": "macros/get_custom_name/get_latest_version_pointer_alias.sql", "unique_id": "macro.dbt.default__generate_latest_version_pointer_alias", "macro_sql": "{% macro default__generate_latest_version_pointer_alias(custom_alias_name=none, node=none) -%}\n {%- if custom_alias_name -%}\n {{ custom_alias_name | trim }}\n {%- else -%}\n {{ node.name }}\n {%- endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.3678303, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.368475, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.3691237, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.3705902, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.370856, "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\n {#\n We want to get the string of the returned relation by calling .render() in order to skip sample/empty\n mode rendering logic. However, people override the default ref macro, and often return a string instead\n of a relation (like the ref macro does by default). Thus, to make sure we dont blow things up, we have\n to ensure the resolved relation has a .render() method.\n #}\n {%- if resolved.render is defined and resolved.render is callable -%}\n {%- set resolved = resolved.render() -%}\n {%- endif -%}\n\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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.3726258, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.3733282, "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 -%}\n {# Handle dbt.config.meta_get() calls - use separate dict to avoid overwriting native configs #}\n {%- set meta_dict = {} -%}\n {%- if model.config.meta_keys_used -%}\n {% set meta_dbt_used = zip(model.config.meta_keys_used, model.config.meta_keys_defaults) | list %}\n {%- for key, default in meta_dbt_used -%}\n {%- if model.config.meta and key in model.config.meta -%}\n {%- set value = model.config.meta[key] -%}\n {%- else -%}\n {%- set value = default -%}\n {%- endif -%}\n {%- do meta_dict.update({key: value}) -%}\n {%- endfor -%}\n {%- endif -%}\nconfig_dict = {{ config_dict }}\nmeta_dict = {{ meta_dict }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.375228, "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\n @staticmethod\n def meta_get(key, default=None):\n return meta_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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.376122, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.3762763, "supported_languages": null}, "macro.dbt.get_fixture_sql": {"name": "get_fixture_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/unit_test_sql/get_fixture_sql.sql", "original_file_path": "macros/unit_test_sql/get_fixture_sql.sql", "unique_id": "macro.dbt.get_fixture_sql", "macro_sql": "{% macro get_fixture_sql(rows, column_name_to_data_types) %}\n-- Fixture for {{ model.name }}\n{% set default_row = {} %}\n\n{%- if not column_name_to_data_types -%}\n{#-- Use defer_relation IFF it is available in the manifest and 'this' is missing from the database --#}\n{%- set this_or_defer_relation = defer_relation if (defer_relation and not load_relation(this)) else this -%}\n{%- set columns_in_relation = adapter.get_columns_in_relation(this_or_defer_relation) -%}\n\n{%- set column_name_to_data_types = {} -%}\n{%- set column_name_to_quoted = {} -%}\n{%- for column in columns_in_relation -%}\n\n{#-- This needs to be a case-insensitive comparison --#}\n{%- do column_name_to_data_types.update({column.name|lower: column.data_type}) -%}\n{%- do column_name_to_quoted.update({column.name|lower: column.quoted}) -%}\n{%- endfor -%}\n{%- endif -%}\n\n{%- if not column_name_to_data_types -%}\n {{ exceptions.raise_compiler_error(\"Not able to get columns for unit test '\" ~ model.name ~ \"' from relation \" ~ this ~ \" because the relation doesn't exist\") }}\n{%- endif -%}\n\n{%- for column_name, column_type in column_name_to_data_types.items() -%}\n {%- do default_row.update({column_name: (safe_cast(\"null\", column_type) | trim )}) -%}\n{%- endfor -%}\n\n{{ validate_fixture_rows(rows, row_number) }}\n\n{%- for row in rows -%}\n{%- set formatted_row = format_row(row, column_name_to_data_types) -%}\n{%- set default_row_copy = default_row.copy() -%}\n{%- do default_row_copy.update(formatted_row) -%}\nselect\n{%- for column_name, column_value in default_row_copy.items() %} {{ column_value }} as {{ column_name_to_quoted[column_name] }}{% if not loop.last -%}, {%- endif %}\n{%- endfor %}\n{%- if not loop.last %}\nunion all\n{% endif %}\n{%- endfor -%}\n\n{%- if (rows | length) == 0 -%}\n select\n {%- for column_name, column_value in default_row.items() %} {{ column_value }} as {{ column_name_to_quoted[column_name] }}{% if not loop.last -%},{%- endif %}\n {%- endfor %}\n limit 0\n{%- endif -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.load_relation", "macro.dbt.safe_cast", "macro.dbt.validate_fixture_rows", "macro.dbt.format_row"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.380734, "supported_languages": null}, "macro.dbt.get_expected_sql": {"name": "get_expected_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/unit_test_sql/get_fixture_sql.sql", "original_file_path": "macros/unit_test_sql/get_fixture_sql.sql", "unique_id": "macro.dbt.get_expected_sql", "macro_sql": "{% macro get_expected_sql(rows, column_name_to_data_types, column_name_to_quoted) %}\n\n{%- if (rows | length) == 0 -%}\n select * from dbt_internal_unit_test_actual\n limit 0\n{%- else -%}\n{%- for row in rows -%}\n{%- set formatted_row = format_row(row, column_name_to_data_types) -%}\nselect\n{%- for column_name, column_value in formatted_row.items() %} {{ column_value }} as {{ column_name_to_quoted[column_name] }}{% if not loop.last -%}, {%- endif %}\n{%- endfor %}\n{%- if not loop.last %}\nunion all\n{% endif %}\n{%- endfor -%}\n{%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.format_row"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.3818371, "supported_languages": null}, "macro.dbt.format_row": {"name": "format_row", "resource_type": "macro", "package_name": "dbt", "path": "macros/unit_test_sql/get_fixture_sql.sql", "original_file_path": "macros/unit_test_sql/get_fixture_sql.sql", "unique_id": "macro.dbt.format_row", "macro_sql": "\n\n{%- macro format_row(row, column_name_to_data_types) -%}\n {#-- generate case-insensitive formatted row --#}\n {% set formatted_row = {} %}\n {%- for column_name, column_value in row.items() -%}\n {% set column_name = column_name|lower %}\n\n {%- if column_name not in column_name_to_data_types %}\n {#-- if user-provided row contains column name that relation does not contain, raise an error --#}\n {% set fixture_name = \"expected output\" if model.resource_type == 'unit_test' else (\"'\" ~ model.name ~ \"'\") %}\n {{ exceptions.raise_compiler_error(\n \"Invalid column name: '\" ~ column_name ~ \"' in unit test fixture for \" ~ fixture_name ~ \".\"\n \"\\nAccepted columns for \" ~ fixture_name ~ \" are: \" ~ (column_name_to_data_types.keys()|list)\n ) }}\n {%- endif -%}\n\n {%- set column_type = column_name_to_data_types[column_name] %}\n\n {#-- For string fixture values, strip varchar length to prevent silent truncation (GH-11974) --#}\n {%- if column_value is string and 'varying' in column_type -%}\n {%- set column_type = column_type.split('(')[0] -%}\n {%- endif -%}\n\n {#-- sanitize column_value: wrap yaml strings in quotes, apply cast --#}\n {%- set column_value_clean = column_value -%}\n {%- if column_value is string -%}\n {%- set column_value_clean = dbt.string_literal(dbt.escape_single_quotes(column_value)) -%}\n {%- elif column_value is none -%}\n {%- set column_value_clean = 'null' -%}\n {%- endif -%}\n\n {%- set row_update = {column_name: safe_cast(column_value_clean, column_type) } -%}\n {%- do formatted_row.update(row_update) -%}\n {%- endfor -%}\n {{ return(formatted_row) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.string_literal", "macro.dbt.escape_single_quotes", "macro.dbt.safe_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.3839426, "supported_languages": null}, "macro.dbt.validate_fixture_rows": {"name": "validate_fixture_rows", "resource_type": "macro", "package_name": "dbt", "path": "macros/unit_test_sql/get_fixture_sql.sql", "original_file_path": "macros/unit_test_sql/get_fixture_sql.sql", "unique_id": "macro.dbt.validate_fixture_rows", "macro_sql": "{%- macro validate_fixture_rows(rows, row_number) -%}\n {{ return(adapter.dispatch('validate_fixture_rows', 'dbt')(rows, row_number)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__validate_fixture_rows"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.3843067, "supported_languages": null}, "macro.dbt.default__validate_fixture_rows": {"name": "default__validate_fixture_rows", "resource_type": "macro", "package_name": "dbt", "path": "macros/unit_test_sql/get_fixture_sql.sql", "original_file_path": "macros/unit_test_sql/get_fixture_sql.sql", "unique_id": "macro.dbt.default__validate_fixture_rows", "macro_sql": "{%- macro default__validate_fixture_rows(rows, row_number) -%}\n {# This is an abstract method for adapter overrides as needed #}\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.3844883, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.385259, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.385692, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.3861928, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.3866825, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.3878362, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.3948205, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.3961039, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.4094412, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.4107213, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.420413, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.4219491, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.4229777, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.425031, "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\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"country_personal_information_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"ethnicity_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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.426188, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.428092, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.4329371, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.4344184, "supported_languages": null}, "macro.workday.get_personal_information_common_data_columns": {"name": "get_personal_information_common_data_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_personal_information_common_data_columns.sql", "original_file_path": "macros/get_personal_information_common_data_columns.sql", "unique_id": "macro.workday.get_personal_information_common_data_columns", "macro_sql": "{% macro get_personal_information_common_data_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"fivetran_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"worker_id\", \"datatype\": dbt.type_string()},\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\": \"country_region_of_birth\", \"datatype\": dbt.type_string()},\n {\"name\": \"date_of_birth\", \"datatype\": \"date\"},\n {\"name\": \"date_of_death\", \"datatype\": \"date\"},\n {\"name\": \"last_medical_exam_date\", \"datatype\": \"date\"},\n {\"name\": \"last_medical_exam_valid_to\", \"datatype\": \"date\"},\n {\"name\": \"medical_exam_notes\", \"datatype\": dbt.type_string()},\n {\"name\": \"primary_nationality\", \"datatype\": dbt.type_string()},\n {\"name\": \"region_of_birth\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_boolean", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.4374826, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.4386413, "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\": \"personal_info_common_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discharge_date\", \"datatype\": \"date\"},\n {\"name\": \"discharge_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"notes\", \"datatype\": dbt.type_string()},\n {\"name\": \"rank\", \"datatype\": dbt.type_string()},\n {\"name\": \"service\", \"datatype\": dbt.type_string()},\n {\"name\": \"status_id\", \"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_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.440487, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.4457839, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.4510388, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.4520671, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.4561949, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.4576719, "supported_languages": null}, "macro.workday.get_country_personal_information_columns": {"name": "get_country_personal_information_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_country_personal_information_columns.sql", "original_file_path": "macros/get_country_personal_information_columns.sql", "unique_id": "macro.workday.get_country_personal_information_columns", "macro_sql": "{% macro get_country_personal_information_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"fivetran_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"personal_info_common_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"country_code\", \"datatype\": dbt.type_string()},\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_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"hukou_subregion_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"hukou_type_code\", \"datatype\": dbt.type_string()},\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\": \"native_region_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"native_region\", \"datatype\": dbt.type_string()},\n {\"name\": \"personnel_file_agency_for_person\", \"datatype\": dbt.type_string()},\n {\"name\": \"political_affiliation\", \"datatype\": dbt.type_string()},\n {\"name\": \"religion\", \"datatype\": dbt.type_string()},\n {\"name\": \"social_benefits_locality\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_boolean", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.4612136, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.46725, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.4678988, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.4688394, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.469561, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.4707565, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.4712634, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.4718432, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.4728427, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.4732056, "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 select *\n from {{ relation }} as tt\n qualify\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) = 1\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.4734993, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.4738243, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.474107, "supported_languages": null}, "macro.dbt_utils.databricks__deduplicate": {"name": "databricks__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.databricks__deduplicate", "macro_sql": "\n{%- macro databricks__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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.4743962, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.4746814, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.4753382, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.4759393, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.4767225, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.477423, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.4777403, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.4785872, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.4790664, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.4792929, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.4798794, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.4808638, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.4816973, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.483094, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.483651, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.4841998, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.484915, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.4865296, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.4871826, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.4882288, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.4890876, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.4900575, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.4904568, "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 generated_number) - 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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.491041, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.4918718, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.4932673, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.495161, "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.render()) }} as {{ dbt.type_string() }}) as {{ source_column_name }},\n {%- endif %}\n\n /* No columns from any of the relations.\n This star is only output during dbt compile, and exists to keep SQLFluff happy. */\n {% if dbt_command == 'compile' and ordered_column_names|length == 0 %}\n *\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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.5010765, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.5025828, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.5031934, "supported_languages": null}, "macro.dbt_utils.redshift__get_tables_by_pattern_sql": {"name": "redshift__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.redshift__get_tables_by_pattern_sql", "macro_sql": "{% macro redshift__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {% set sql %}\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 union all\n select distinct\n schemaname as {{ adapter.quote('table_schema') }},\n tablename as {{ adapter.quote('table_name') }},\n 'external' as {{ adapter.quote('table_type') }}\n from svv_external_tables\n where redshift_database_name = '{{ database }}'\n and schemaname ilike '{{ schema_pattern }}'\n and table_name ilike '{{ table_pattern }}'\n and table_name not ilike '{{ exclude }}'\n {% endset %}\n\n {{ return(sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.504302, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.505535, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.5063705, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.506861, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.5072758, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.50785, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.5080888, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.5083318, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.508562, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.5093389, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.5098007, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.510864, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.512206, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.512819, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.5137267, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.5149724, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.5174527, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.5182364, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.5190265, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.519369, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.5206113, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.5230696, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.5245, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.5258937, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.5265005, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.5268998, "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', quote_identifiers=False) -%}\n {{ return(adapter.dispatch('unpivot', 'dbt_utils')(relation, cast_to, exclude, remove, field_name, value_name, quote_identifiers)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__unpivot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.528227, "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', quote_identifiers=False) -%}\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 {%- set current_col_name = adapter.quote(col.column) if quote_identifiers else col.column -%}\n select\n {%- for exclude_col in exclude %}\n {{ adapter.quote(exclude_col) if quote_identifiers else exclude_col }},\n {%- endfor %}\n\n cast('{{ col.column }}' as {{ dbt.type_string() }}) as {{ adapter.quote(field_name) if quote_identifiers else field_name }},\n cast( {% if col.data_type == 'boolean' %}\n {{ dbt.cast_bool_to_text(current_col_name) }}\n {% else %}\n {{ current_col_name }}\n {% endif %}\n as {{ cast_to }}) as {{ adapter.quote(value_name) if quote_identifiers else 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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.53126, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.5321023, "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 {{ dbt.type_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": ["macro.dbt.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.533497, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.5343478, "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 {% if group_by_columns|length() == 0 %}\n where {{ column_name }} is not null\n limit 1\n {% endif %}\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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.5357814, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.5371957, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.539916, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.540644, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.5412562, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.541986, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.5426486, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.5434713, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.5440407, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.5450325, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.5467043, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.5477452, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.549499, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.5501497, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.550662, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.5513072, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.551893, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.552893, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.554563, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.555513, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.5568793, "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, exclude_columns=None, precision = None) %}\n {{ return(adapter.dispatch('test_equality', 'dbt_utils')(model, compare_model, compare_columns, exclude_columns, precision)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_equality"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.558935, "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, exclude_columns=None, precision = None) %}\n\n{%- if compare_columns and exclude_columns -%}\n {{ exceptions.raise_compiler_error(\"Both a compare and an ignore list were provided to the `equality` macro. Only one is allowed\") }}\n{%- endif -%}\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\n\n-- setup\n{%- do dbt_utils._is_relation(model, 'test_equality') -%}\n\n{# Ensure there are no extra columns in the compare_model vs model #}\n{%- if not compare_columns -%}\n {%- do dbt_utils._is_ephemeral(model, 'test_equality') -%}\n {%- do dbt_utils._is_ephemeral(compare_model, 'test_equality') -%}\n\n {%- set model_columns = adapter.get_columns_in_relation(model) -%}\n {%- set compare_model_columns = adapter.get_columns_in_relation(compare_model) -%}\n\n\n {%- if exclude_columns -%}\n {#-- Lower case ignore columns for easier comparison --#}\n {%- set exclude_columns = exclude_columns | map(\"lower\") | list %}\n\n {# Filter out the excluded columns #}\n {%- set include_columns = [] %}\n {%- set include_model_columns = [] %}\n {%- for column in model_columns -%}\n {%- if column.name | lower not in exclude_columns -%}\n {% do include_columns.append(column) %}\n {%- endif %}\n {%- endfor %}\n {%- for column in compare_model_columns -%}\n {%- if column.name | lower not in exclude_columns -%}\n {% do include_model_columns.append(column) %}\n {%- endif %}\n {%- endfor %}\n\n {%- set compare_columns_set = set(include_columns | map(attribute='quoted') | map(\"lower\")) %}\n {%- set compare_model_columns_set = set(include_model_columns | map(attribute='quoted') | map(\"lower\")) %}\n {%- else -%}\n {%- set compare_columns_set = set(model_columns | map(attribute='quoted') | map(\"lower\")) %}\n {%- set compare_model_columns_set = set(compare_model_columns | map(attribute='quoted') | map(\"lower\")) %}\n {%- endif -%}\n\n {% if compare_columns_set != compare_model_columns_set %}\n {{ exceptions.raise_compiler_error(compare_model ~\" has less columns than \" ~ model ~ \", please ensure they have the same columns or use the `compare_columns` or `exclude_columns` arguments to subset them.\") }}\n {% endif %}\n\n\n{% endif %}\n\n{%- if not precision -%}\n {%- if not compare_columns -%}\n {# \n You cannot get the columns in an ephemeral model (due to not existing in the information schema),\n so if the user does not provide an explicit list of columns we must error in the case it is ephemeral\n #}\n {%- do dbt_utils._is_ephemeral(model, 'test_equality') -%}\n {%- set compare_columns = adapter.get_columns_in_relation(model)-%}\n\n {%- if exclude_columns -%}\n {#-- Lower case ignore columns for easier comparison --#}\n {%- set exclude_columns = exclude_columns | map(\"lower\") | list %}\n\n {# Filter out the excluded columns #}\n {%- set include_columns = [] %}\n {%- for column in compare_columns -%}\n {%- if column.name | lower not in exclude_columns -%}\n {% do include_columns.append(column) %}\n {%- endif %}\n {%- endfor %}\n\n {%- set compare_columns = include_columns | map(attribute='quoted') %}\n {%- else -%} {# Compare columns provided #}\n {%- set compare_columns = compare_columns | map(attribute='quoted') %}\n {%- endif -%}\n {%- endif -%}\n\n {% set compare_cols_csv = compare_columns | join(', ') %}\n\n{% else %} {# Precision required #}\n {#-\n If rounding is required, we need to get the types, so it cannot be ephemeral even if they provide column names\n -#}\n {%- do dbt_utils._is_ephemeral(model, 'test_equality') -%}\n {%- set columns = adapter.get_columns_in_relation(model) -%}\n\n {% set columns_list = [] %}\n {%- for col in columns -%}\n {%- if (\n (col.name|lower in compare_columns|map('lower') or not compare_columns) and\n (col.name|lower not in exclude_columns|map('lower') or not exclude_columns)\n ) -%}\n {# Databricks double type is not picked up by any number type checks in dbt #}\n {%- if col.is_float() or col.is_numeric() or col.data_type == 'double' -%}\n {# Cast is required due to postgres not having round for a double precision number #}\n {%- do columns_list.append('round(cast(' ~ col.quoted ~ ' as ' ~ dbt.type_numeric() ~ '),' ~ precision ~ ') as ' ~ col.quoted) -%}\n {%- else -%} {# Non-numeric type #}\n {%- do columns_list.append(col.quoted) -%}\n {%- endif -%}\n {% endif %}\n {%- endfor -%}\n\n {% set compare_cols_csv = columns_list | join(', ') %}\n\n{% endif %}\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.type_numeric", "macro.dbt.except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.5653398, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.5661461, "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 {% do 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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.567183, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.5680013, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.568785, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.5695038, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.570253, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.570849, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.5718951, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.5724475, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.5732136, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.5737581, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.5742822, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.5747538, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.575077, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.5755036, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.5759056, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.57711, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.5775743, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.5778465, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.5785959, "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{% if not string %}\n{{ return('') }}\n{% endif %}\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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.5798328, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.58072, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.5809548, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.581429, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.5818973, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.5821152, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.5823407, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.582557, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.5827649, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.5876946, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.5883417, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.5896347, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.5902622, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.5910997, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.5930827, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.5937388, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.5944488, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.594718, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.5949905, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.5952795, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.5955477, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.5957952, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.596453, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.5985155, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.606084, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.6068661, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.6074789, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.607712, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.6079383, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.6081574, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.6084, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.608836, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.6090121, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.6091788, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.6096952, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.609939, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.610264, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.611173, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.6114845, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.612987, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.6134732, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.614203, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.6144967, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.6147773, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.6150563, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.6152976, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.6155863, "supported_languages": null}, "macro.fivetran_utils.union_relations_custom": {"name": "union_relations_custom", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_relations_custom.sql", "original_file_path": "macros/union_relations_custom.sql", "unique_id": "macro.fivetran_utils.union_relations_custom", "macro_sql": "{%- macro union_relations_custom(relations, aliases=none, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation', where=none) -%}\n {{ return(adapter.dispatch('union_relations_custom', 'fivetran_utils')(relations, aliases, column_override, include, exclude, source_column_name, where)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__union_relations_custom"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.617559, "supported_languages": null}, "macro.fivetran_utils.default__union_relations_custom": {"name": "default__union_relations_custom", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_relations_custom.sql", "original_file_path": "macros/union_relations_custom.sql", "unique_id": "macro.fivetran_utils.default__union_relations_custom", "macro_sql": "\n\n{%- macro default__union_relations_custom(relations, aliases=none, 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, 'zendesk_union_relations') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'zendesk_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 {# dbt_utils union_relations includes the table in the source_relation. For Fivetran dbt package purposes the table should not be included in the source relation. #}\n cast({{ dbt.string_literal(relation.database ~ '.' ~ relation.schema) }} 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 {# This alias is a change from dbt_utils union_relations code. Avoids errors if the table is named a reserved keyword #}\n from {{ aliases[loop.index0] if aliases else relation }} as unioned_relation_{{ loop.index }}\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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.623752, "supported_languages": null}, "macro.fivetran_utils.apply_source_relation": {"name": "apply_source_relation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/apply_source_relation.sql", "original_file_path": "macros/apply_source_relation.sql", "unique_id": "macro.fivetran_utils.apply_source_relation", "macro_sql": "{% macro apply_source_relation(package_name, use_package_prefix=true) -%}\n\n{{ adapter.dispatch('apply_source_relation', 'fivetran_utils') (package_name, use_package_prefix) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__apply_source_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.6245813, "supported_languages": null}, "macro.fivetran_utils.default__apply_source_relation": {"name": "default__apply_source_relation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/apply_source_relation.sql", "original_file_path": "macros/apply_source_relation.sql", "unique_id": "macro.fivetran_utils.default__apply_source_relation", "macro_sql": "{% macro default__apply_source_relation(package_name, use_package_prefix=true) -%}\n\n{% set sources_var = package_name ~ '_sources' %}\n{% set database_var = package_name ~ '_database' %}\n{% set schema_var = package_name ~ '_schema' %}\n\n{% if use_package_prefix %}\n {% set union_schemas_var = package_name ~ '_union_schemas' %}\n {% set union_databases_var = package_name ~ '_union_databases' %}\n{% else %}\n {% set union_schemas_var = 'union_schemas' %}\n {% set union_databases_var = 'union_databases' %}\n{% endif %}\n\n{% if var(sources_var, []) | length > 0 %}\n, _dbt_source_relation as source_relation\n{% elif var(union_schemas_var, []) | length > 0 or var(union_databases_var, []) | length > 0 %}\n{{ fivetran_utils.source_relation(union_schema_variable=union_schemas_var, union_database_variable=union_databases_var) }}\n{% else %}\n{% set database = var(database_var, target.database) %}\n{% set schema = var(schema_var, package_name) %}\n, cast('{{ database ~ \".\" ~ schema }}' as {{ dbt.type_string() }}) as source_relation\n{% endif %}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.source_relation", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.6263638, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.6270409, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.6279998, "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{%- set using_source_casing = var('fivetran_using_source_casing', false) -%}\n\n{%- for column in staging_columns %}\n {%- if column.name|lower in source_column_names %}\n {%- if using_source_casing %}\n {%- set column_alias = column.alias if 'alias' in column else column.name %}\n {{ adapter.quote(column.name) }} as {{ adapter.quote(column_alias|upper if target.type == 'snowflake' else column_alias) }}\n {%- else %}\n {{ fivetran_utils.quote_column(column) }} as\n {%- if 'alias' in column %} {{ column.alias }}{% else %} {{ fivetran_utils.quote_column(column) }}{% endif %}\n {%- endif %}\n {%- else %}\n cast(null as {{ column.datatype }}) as\n {%- if 'alias' in column %} {{ column.alias }}{% else %} {{ fivetran_utils.quote_column(column) }}{% endif %}\n {%- endif %}{{ ',' if not loop.last }}\n{%- endfor %}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.quote_column"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.630478, "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 %}{{ column.name }}\n {%- endif %}\n {%- else %}{{ column.name }}\n {%- endif %}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.6313596, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.6320648, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.63243, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.6328015, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.633217, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.6334343, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.633609, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.6346455, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.6350634, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.6356158, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.6360235, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.636432, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.6368651, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.6372917, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.6376922, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.6399107, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.6405158, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.6407135, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.6409044, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.6410732, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.6412373, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.6429422, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.6442332, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.6445322, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.6448052, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.6450684, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.6478944, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.6484208, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.648603, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.6487696, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.6489353, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.6500785, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.6510491, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.6521099, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.6528418, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.6531215, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.653401, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.6536658, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.653925, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.6542115, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.6548786, "supported_languages": null}, "macro.fivetran_utils.union_connections": {"name": "union_connections", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_connections.sql", "original_file_path": "macros/union_connections.sql", "unique_id": "macro.fivetran_utils.union_connections", "macro_sql": "{% macro union_connections(connection_dictionary, single_source_name, single_table_name, default_identifier=single_table_name) %}\n\n{{ adapter.dispatch('union_connections', 'fivetran_utils') (connection_dictionary, single_source_name, single_table_name, default_identifier) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__union_connections"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.6562722, "supported_languages": null}, "macro.fivetran_utils.default__union_connections": {"name": "default__union_connections", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_connections.sql", "original_file_path": "macros/union_connections.sql", "unique_id": "macro.fivetran_utils.default__union_connections", "macro_sql": "{% macro default__union_connections(connection_dictionary, single_source_name, single_table_name, default_identifier=single_table_name) %}\n\n{%- set exception_warning = \"\\n\\nPlease be aware: The \" ~ single_source_name|upper ~ \".\" ~ single_table_name|upper ~ \" table was not found in your schema(s). The Fivetran Data Model will create a completely empty 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{%- set using_empty_table_warnings = (execute and not var('fivetran__remove_empty_table_warnings', false)) %}\n{%- set connections = var(connection_dictionary, []) %}\n{%- set using_unioning = connections | length > 0 %}\n{%- set identifier_var = single_source_name + \"_\" + single_table_name + \"_identifier\" %}\n\n{%- if using_unioning %}\n{# For unioning #}\n {%- set relations = [] -%}\n {%- for connection in connections -%}\n\n {% if var('has_defined_sources', false) %}\n {%- set database = source(connection.name, single_table_name).database %}\n {%- set schema = source(connection.name, single_table_name).schema %}\n {%- set identifier = source(connection.name, single_table_name).identifier %}\n {%- else %}\n {%- set database = connection.database if connection.database else target.database %}\n {%- set schema = connection.schema if connection.schema else single_source_name %}\n {%- set identifier = var(identifier_var, default_identifier) %}\n {%- endif %}\n \n {%- set relation=adapter.get_relation(\n database=database,\n schema=schema,\n identifier=identifier\n )\n -%}\n\n {%- if relation is not none -%}\n {%- do relations.append(relation) -%}\n {%- endif -%}\n\n -- ** Values passed to adapter.get_relation:\n {{ '-- database: ' ~ database }}\n {{ '-- schema: ' ~ schema }}\n {{ '-- identifier: ' ~ identifier ~ '\\n' }}\n\n {%- endfor -%}\n\n {%- if relations | length > 0 -%}\n {{ fivetran_utils.union_relations_custom(relations, source_column_name='_dbt_source_relation') }}\n\n {%- else -%}\n {{ exceptions.warn(exception_warning) if using_empty_table_warnings }}\n\n select\n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit {{ '0' if target.type != 'redshift' else '1' }}\n {%- endif -%}\n\n{% else %}\n{# Not unioning #}\n\n {%- set database = source(single_source_name, single_table_name).database %}\n {%- set schema = source(single_source_name, single_table_name).schema %}\n {%- set identifier = var(identifier_var, default_identifier) %}\n\n {%- set relation=adapter.get_relation(\n database=database,\n schema=schema,\n identifier=identifier\n )\n -%}\n\n -- ** Values passed to adapter.get_relation:\n {{ '-- full-identifier_var: ' ~ identifier_var }}\n {{ '-- database: ' ~ database }} \n {{ '-- schema: ' ~ schema }}\n {{ '-- identifier: ' ~ identifier ~ '\\n' }}\n\n {% if relation is not none -%}\n select\n {{ dbt_utils.star(from=source(single_source_name, single_table_name)) }}\n , '{{ database ~ \".\" ~ schema }}' as _dbt_source_relation\n from {{ source(single_source_name, single_table_name) }} as source_table\n\n {% else %}\n {{ exceptions.warn(exception_warning) if using_empty_table_warnings }}\n\n select\n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit {{ '0' if target.type != 'redshift' else '1' }}\n {%- endif -%}\n{% endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.union_relations_custom", "macro.dbt.type_string", "macro.dbt_utils.star"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.6609585, "supported_languages": null}, "macro.fivetran_utils.partition_by_source_relation": {"name": "partition_by_source_relation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/partition_by_source_relation.sql", "original_file_path": "macros/partition_by_source_relation.sql", "unique_id": "macro.fivetran_utils.partition_by_source_relation", "macro_sql": "{% macro partition_by_source_relation(package_name, has_other_partitions='yes', alias=None, package_prefix_union_variable=true) %}\n {{ return(adapter.dispatch('partition_by_source_relation', 'fivetran_utils')(package_name, has_other_partitions, alias, package_prefix_union_variable)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__partition_by_source_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.6619313, "supported_languages": null}, "macro.fivetran_utils.default__partition_by_source_relation": {"name": "default__partition_by_source_relation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/partition_by_source_relation.sql", "original_file_path": "macros/partition_by_source_relation.sql", "unique_id": "macro.fivetran_utils.default__partition_by_source_relation", "macro_sql": "{% macro default__partition_by_source_relation(package_name, has_other_partitions='yes', alias=None, package_prefix_union_variable=true) -%}\n\n{%- if package_prefix_union_variable %}\n {%- set union_schemas_var = package_name ~ '_union_schemas' -%}\n {%- set union_databases_var = package_name ~ '_union_databases' -%}\n{%- else %}\n {%- set union_schemas_var = 'union_schemas' -%}\n {%- set union_databases_var = 'union_databases' -%}\n{%- endif -%}\n\n{%- set is_unioning = var(union_schemas_var, [])|length > 1 or var(union_databases_var, [])|length > 1 or var(package_name ~ '_sources', [])|length > 1 -%}\n{%- set prefix = '' if alias is none else alias ~ '.' -%}\n\n{%- if has_other_partitions == 'no' -%}\n {{- 'partition by ' ~ prefix ~ 'source_relation' if is_unioning else '' -}}\n{%- else -%}\n {{- ', ' ~ prefix ~ 'source_relation' if is_unioning else '' -}}\n{%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.6634376, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.664515, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.66527, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1781284398.666918, "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.discharge_type": {"name": "discharge_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.discharge_type", "block_contents": "Type of military discharge."}, "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_info_common_id": {"name": "personal_info_common_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.personal_info_common_id", "block_contents": "Personal information common data ID linking to worker."}, "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.). Now always null and maintained for backwards compatibility only."}, "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."}, "doc.workday.country_personal_information_id": {"name": "country_personal_information_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.country_personal_information_id", "block_contents": "Country personal information ID linking to worker."}, "doc.workday.country_code": {"name": "country_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.country_code", "block_contents": "Country code for country-specific information."}, "doc.workday.country_region_of_birth": {"name": "country_region_of_birth", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.country_region_of_birth", "block_contents": "Country region of birth code (renamed from legacy `region_of_birth_code` in v42.2 API)."}, "doc.workday.fivetran_id": {"name": "fivetran_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.fivetran_id", "block_contents": "Fivetran composite key identifier."}, "doc.workday.hukou_region_code": {"name": "hukou_region_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hukou_region_code", "block_contents": "Hukou region code (China-specific, renamed from legacy `hukou_region` in v42.2 API)."}, "doc.workday.hukou_subregion_code": {"name": "hukou_subregion_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hukou_subregion_code", "block_contents": "Hukou subregion code (China-specific, renamed from legacy `hukou_subregion` in v42.2 API)."}, "doc.workday.hukou_type_code": {"name": "hukou_type_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hukou_type_code", "block_contents": "Hukou type code (China-specific, renamed from legacy `hukou_type` in v42.2 API)."}, "doc.workday.military_service_incoming": {"name": "military_service_incoming", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.military_service_incoming", "block_contents": "Table containing military service records including rank, service information, and veteran status. This table is for existing customers to leverage between January 5 and April 6, 2026 until transitioned over to `military_service`. This will be removed after April 6."}, "doc.workday.military_service_legacy": {"name": "military_service_legacy", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.military_service_legacy", "block_contents": "Legacy Workday military service table. This source is for testing purposes only. The package does not support the legacy schema - all models use new schema with legacy fields cast to null for backward compatibility. This table will be deprecated and removed after April 6."}, "doc.workday.military_status_id": {"name": "military_status_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.military_status_id", "block_contents": "Military status identifier."}, "doc.workday.personnel_file_agency_for_person": {"name": "personnel_file_agency_for_person", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.personnel_file_agency_for_person", "block_contents": "Personnel file agency for person (renamed from legacy `personnel_file_agency` in v42.2 API)."}, "doc.workday.personal_information_common_data": {"name": "personal_information_common_data", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.personal_information_common_data", "block_contents": "Table containing universal personal information attributes including date of birth, death records, nationality, citizenship status, birth location, and medical exam data."}, "doc.workday.personal_information_ethnicity_incoming": {"name": "personal_information_ethnicity_incoming", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.personal_information_ethnicity_incoming", "block_contents": "Table containing worker ethnicity information for diversity tracking and compliance reporting. **NOTE** This table is for existing customers to leverage between January 5 and April 6, 2026 until transitioned over to `personal_information_ethnicity`."}, "doc.workday.personal_information_ethnicity_legacy": {"name": "personal_information_ethnicity_legacy", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.personal_information_ethnicity_legacy", "block_contents": "Legacy Workday personal information ethnicity table. This source is for testing purposes only. The package does not support the legacy schema - all models use v42.2 API schema with legacy fields cast to null for backward compatibility. This will be removed after April 6."}, "doc.workday.country_personal_information": {"name": "country_personal_information", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.country_personal_information", "block_contents": "Table containing country-specific personal information attributes including gender, marital status, and region-specific data."}, "doc.workday.social_benefits_locality": {"name": "social_benefits_locality", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.social_benefits_locality", "block_contents": "Social benefits locality."}, "doc.workday.social_benefit_information": {"name": "social_benefit_information", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.social_benefit_information", "block_contents": "Social benefit information."}, "doc.workday.index_backward_compatibility": {"name": "index_backward_compatibility", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.index_backward_compatibility", "block_contents": "An index for a particular identifier. This field is now always null after recent schema updates, and is maintained for backwards compatibility only."}}, "exposures": {}, "metrics": {}, "groups": {}, "selectors": {}, "disabled": {"test.workday_integration_tests.integrity_employee_count": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "integrity_employee_count", "resource_type": "test", "package_name": "workday_integration_tests", "path": "integrity/integrity_employee_count.sql", "original_file_path": "tests/integrity/integrity_employee_count.sql", "unique_id": "test.workday_integration_tests.integrity_employee_count", "fqn": ["workday_integration_tests", "integrity", "integrity_employee_count"], "alias": "integrity_employee_count", "checksum": {"name": "sha256", "checksum": "ec4fbb5a7b9af454771344a250c815d60d174784e1e7a6f5548115e8d13f682c"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1781284399.3942432, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false) and var('employee_history_enabled', false)\n) }}\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\nemployee_daily_history as (\n\n select *\n from {{ ref('workday__employee_daily_history') }}\n),\n\nemployee_source as (\n\n select\n worker_history.worker_id,\n worker_history.source_relation,\n worker_position_history.position_id,\n worker_position_history.position_start_date\n from worker_history \n left join worker_position_history \n on worker_history.worker_id = worker_position_history.worker_id\n and worker_history.source_relation = worker_position_history.source_relation\n and worker_history._fivetran_start <= worker_position_history._fivetran_end\n and worker_history._fivetran_end >= worker_position_history._fivetran_start\n group by 1, 2, 3, 4 \n --to segment out workers who did not have a start date prior to the spine cutoff\n having cast(max(worker_history._fivetran_end) as date) >= cast('{{ var('employee_history_start_date','2025-03-01') }}' as date) \n),\n\nemployee_end as (\n\n select \n employee_id\n from employee_daily_history \n group by 1\n),\n\nsource_count as (\n select \n 1 as join_key,\n count(*) as total_employee_source\n from employee_source\n group by 1\n),\n\nend_count as (\n select \n 1 as join_key,\n count(*) as total_employee_end\n from employee_end\n group by 1\n),\n\nfinal as (\n select\n total_employee_source,\n total_employee_end\n from source_count\n full outer join end_count\n on source_count.join_key = end_count.join_key\n)\n\nselect *\nfrom final\nwhere total_employee_source != total_employee_end", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__worker_history", "package": null, "version": null}, {"name": "stg_workday__worker_position_history", "package": null, "version": null}, {"name": "workday__employee_daily_history", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.workday_integration_tests.consistency_monthly_summary_count": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_monthly_summary_count", "resource_type": "test", "package_name": "workday_integration_tests", "path": "consistency/consistency_monthly_summary_count.sql", "original_file_path": "tests/consistency/consistency_monthly_summary_count.sql", "unique_id": "test.workday_integration_tests.consistency_monthly_summary_count", "fqn": ["workday_integration_tests", "consistency", "consistency_monthly_summary_count"], "alias": "consistency_monthly_summary_count", "checksum": {"name": "sha256", "checksum": "8efac08f83235b271588c9bf751b096e4c6844998db962ebc1dba3c1677256b2"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1781284399.4274573, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false) and var('employee_history_enabled', false)\n) }}\n\nwith prod as (\n select \n 1 as join_key,\n count(*) as total_prod_pr_count\n from {{ target.schema }}_workday_prod.workday__monthly_summary\n group by 1\n),\n\ndev as (\n select \n 1 as join_key,\n count(*) as total_dev_pr_count\n from {{ target.schema }}_workday_dev.workday__monthly_summary\n group by 1\n),\n\nfinal as (\n select\n total_prod_pr_count,\n total_dev_pr_count\n from prod\n full outer join dev\n on dev.join_key = prod.join_key\n)\n\nselect *\nfrom final\nwhere total_dev_pr_count != total_prod_pr_count", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "functions": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.workday_integration_tests.consistency_job_overview": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_job_overview", "resource_type": "test", "package_name": "workday_integration_tests", "path": "consistency/consistency_job_overview.sql", "original_file_path": "tests/consistency/consistency_job_overview.sql", "unique_id": "test.workday_integration_tests.consistency_job_overview", "fqn": ["workday_integration_tests", "consistency", "consistency_job_overview"], "alias": "consistency_job_overview", "checksum": {"name": "sha256", "checksum": "5132c3028f087edfc5e2a5ed7c2e5ab7bca857e8a63a61785b029ff5415c4cb5"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1781284399.4337428, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n select *\n from {{ target.schema }}_workday_prod.workday__job_overview\n),\n\ndev as (\n select *\n from {{ target.schema }}_workday_dev.workday__job_overview\n), \n\nprod_not_in_dev as (\n -- rows from prod not found in dev\n select * from prod\n except distinct\n select * from dev\n),\n\ndev_not_in_prod as (\n -- rows from dev not found in prod\n select * from dev\n except distinct\n select * from prod\n),\n\nfinal as (\n select\n *,\n 'from prod' as source\n from prod_not_in_dev\n\n union all -- union since we only care if rows are produced\n\n select\n *,\n 'from dev' as source\n from dev_not_in_prod\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "functions": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.workday_integration_tests.consistency_monthly_summary": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_monthly_summary", "resource_type": "test", "package_name": "workday_integration_tests", "path": "consistency/consistency_monthly_summary.sql", "original_file_path": "tests/consistency/consistency_monthly_summary.sql", "unique_id": "test.workday_integration_tests.consistency_monthly_summary", "fqn": ["workday_integration_tests", "consistency", "consistency_monthly_summary"], "alias": "consistency_monthly_summary", "checksum": {"name": "sha256", "checksum": "2eadd6186e43e0f5108003922c29831497e2920830eaa5ef59641b5206ad55fd"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1781284399.4393876, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false) and var('employee_history_enabled', false)\n) }}\n\n-- this test ensures the workday__monthly_summary end model matches the prior version.\n-- for now we only look at non-active metrics since this PR is changing that logic\nwith prod as (\n select metrics_month,\n source_relation,\n new_employees,\n churned_employees,\n churned_voluntary_employees,\n churned_involuntary_employees,\n churned_workers\n from {{ target.schema }}_workday_prod.workday__monthly_summary \n),\n\ndev as (\n select metrics_month,\n source_relation,\n new_employees,\n churned_employees,\n churned_voluntary_employees,\n churned_involuntary_employees,\n churned_workers \n from {{ target.schema }}_workday_dev.workday__monthly_summary \n),\n\nprod_not_in_dev as (\n -- rows from prod not found in dev\n select * from prod\n except distinct\n select * from dev\n),\n\ndev_not_in_prod as (\n -- rows from dev not found in prod\n select * from dev\n except distinct\n select * from prod\n),\n\nfinal as (\n select\n *,\n 'from prod' as source\n from prod_not_in_dev\n\n union all -- union since we only care if rows are produced\n\n select\n *,\n 'from dev' as source\n from dev_not_in_prod\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "functions": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.workday_integration_tests.consistency_employee_overview": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_employee_overview", "resource_type": "test", "package_name": "workday_integration_tests", "path": "consistency/consistency_employee_overview.sql", "original_file_path": "tests/consistency/consistency_employee_overview.sql", "unique_id": "test.workday_integration_tests.consistency_employee_overview", "fqn": ["workday_integration_tests", "consistency", "consistency_employee_overview"], "alias": "consistency_employee_overview", "checksum": {"name": "sha256", "checksum": "5d286aa529b4884f5aaeee6c56a99cb91266dd36d36a4a584d2b3b5f719b8a59"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1781284399.4453897, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n select *\n from {{ target.schema }}_workday_prod.workday__employee_overview\n),\n\ndev as (\n select *\n from {{ target.schema }}_workday_dev.workday__employee_overview\n), \n\nprod_not_in_dev as (\n -- rows from prod not found in dev\n select * from prod\n except distinct\n select * from dev\n),\n\ndev_not_in_prod as (\n -- rows from dev not found in prod\n select * from dev\n except distinct\n select * from prod\n),\n\nfinal as (\n select\n *,\n 'from prod' as source\n from prod_not_in_dev\n\n union all -- union since we only care if rows are produced\n\n select\n *,\n 'from dev' as source\n from dev_not_in_prod\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "functions": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.workday_integration_tests.consistency_organization_overview": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_organization_overview", "resource_type": "test", "package_name": "workday_integration_tests", "path": "consistency/consistency_organization_overview.sql", "original_file_path": "tests/consistency/consistency_organization_overview.sql", "unique_id": "test.workday_integration_tests.consistency_organization_overview", "fqn": ["workday_integration_tests", "consistency", "consistency_organization_overview"], "alias": "consistency_organization_overview", "checksum": {"name": "sha256", "checksum": "ce2d70862dad9c9cfe4b19f5c1ef9370892f72e6977055915d1184e874838a15"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1781284399.4516706, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n select *\n from {{ target.schema }}_workday_prod.workday__organization_overview\n),\n\ndev as (\n select *\n from {{ target.schema }}_workday_dev.workday__organization_overview\n), \n\nprod_not_in_dev as (\n -- rows from prod not found in dev\n select * from prod\n except distinct\n select * from dev\n),\n\ndev_not_in_prod as (\n -- rows from dev not found in prod\n select * from dev\n except distinct\n select * from prod\n),\n\nfinal as (\n select\n *,\n 'from prod' as source\n from prod_not_in_dev\n\n union all -- union since we only care if rows are produced\n\n select\n *,\n 'from dev' as source\n from dev_not_in_prod\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "functions": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.workday_integration_tests.consistency_position_overview": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_position_overview", "resource_type": "test", "package_name": "workday_integration_tests", "path": "consistency/consistency_position_overview.sql", "original_file_path": "tests/consistency/consistency_position_overview.sql", "unique_id": "test.workday_integration_tests.consistency_position_overview", "fqn": ["workday_integration_tests", "consistency", "consistency_position_overview"], "alias": "consistency_position_overview", "checksum": {"name": "sha256", "checksum": "c72dd03a332f84e5ec50bdded082692791673360b578789dec53b59ecacad5d3"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1781284399.4573574, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n select *\n from {{ target.schema }}_workday_prod.workday__position_overview\n),\n\ndev as (\n select *\n from {{ target.schema }}_workday_dev.workday__position_overview\n), \n\nprod_not_in_dev as (\n -- rows from prod not found in dev\n select * from prod\n except distinct\n select * from dev\n),\n\ndev_not_in_prod as (\n -- rows from dev not found in prod\n select * from dev\n except distinct\n select * from prod\n),\n\nfinal as (\n select\n *,\n 'from prod' as source\n from prod_not_in_dev\n\n union all -- union since we only care if rows are produced\n\n select\n *,\n 'from dev' as source\n from dev_not_in_prod\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "functions": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}]}, "parent_map": {"seed.workday_integration_tests.workday_job_family_data": [], "seed.workday_integration_tests.workday_job_family_group_data": [], "seed.workday_integration_tests.workday_position_job_profile_data": [], "seed.workday_integration_tests.workday_organization_data": [], "seed.workday_integration_tests.workday_worker_leave_status_data": [], "seed.workday_integration_tests.workday_position_data": [], "seed.workday_integration_tests.workday_personal_information_ethnicity_data": [], "seed.workday_integration_tests.workday_worker_position_organization_history_data": [], "seed.workday_integration_tests.workday_organization_role_worker_data": [], "seed.workday_integration_tests.workday_job_family_job_profile_data": [], "seed.workday_integration_tests.workday_country_personal_information_data": [], "seed.workday_integration_tests.workday_worker_position_history_data": [], "seed.workday_integration_tests.workday_personal_information_history_data": [], "seed.workday_integration_tests.workday_job_family_job_family_group_data": [], "seed.workday_integration_tests.workday_position_organization_data": [], "seed.workday_integration_tests.workday_person_name_data": [], "seed.workday_integration_tests.workday_organization_job_family_data": [], "seed.workday_integration_tests.workday_personal_information_common_data_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_role_data": [], "seed.workday_integration_tests.workday_military_service_data": [], "seed.workday_integration_tests.workday_worker_history_data": [], "model.workday.workday__position_overview": ["model.workday.stg_workday__position", "model.workday.stg_workday__position_job_profile"], "model.workday.workday__employee_overview": ["model.workday.int_workday__worker_employee_enhanced"], "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.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__worker_position_org_daily_history": ["model.workday.stg_workday__worker_position_organization_base", "model.workday.stg_workday__worker_position_organization_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.stg_workday__worker_position_history": ["model.workday.stg_workday__worker_position_base"], "model.workday.stg_workday__worker_position_organization_history": ["model.workday.stg_workday__worker_position_organization_base"], "model.workday.stg_workday__personal_information_history": ["model.workday.stg_workday__personal_information_base"], "model.workday.stg_workday__worker_history": ["model.workday.stg_workday__worker_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.stg_workday__position": ["model.workday.stg_workday__position_base"], "model.workday.stg_workday__person_name": ["model.workday.stg_workday__person_name_base"], "model.workday.stg_workday__organization_job_family": ["model.workday.stg_workday__organization_job_family_base"], "model.workday.stg_workday__military_service": ["model.workday.stg_workday__military_service_base"], "model.workday.stg_workday__job_family_job_profile": ["model.workday.stg_workday__job_family_job_profile_base"], "model.workday.stg_workday__job_profile": ["model.workday.stg_workday__job_profile_base"], "model.workday.stg_workday__organization_role": ["model.workday.stg_workday__organization_role_base"], "model.workday.stg_workday__country_personal_information": ["model.workday.stg_workday__country_personal_information_base"], "model.workday.stg_workday__organization_role_worker": ["model.workday.stg_workday__organization_role_worker_base"], "model.workday.stg_workday__worker_position_organization": ["model.workday.stg_workday__worker_position_organization_base"], "model.workday.stg_workday__worker_leave_status": ["model.workday.stg_workday__worker_leave_status_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__job_family_group": ["model.workday.stg_workday__job_family_group_base"], "model.workday.stg_workday__position_job_profile": ["model.workday.stg_workday__position_job_profile_base"], "model.workday.stg_workday__worker_position": ["model.workday.stg_workday__worker_position_base"], "model.workday.stg_workday__personal_information_ethnicity": ["model.workday.stg_workday__personal_information_ethnicity_base"], "model.workday.stg_workday__personal_information_common_data": ["model.workday.stg_workday__personal_information_common_data_base"], "model.workday.stg_workday__person_contact_email_address": ["model.workday.stg_workday__person_contact_email_address_base"], "model.workday.stg_workday__job_family": ["model.workday.stg_workday__job_family_base"], "model.workday.stg_workday__position_organization": ["model.workday.stg_workday__position_organization_base"], "model.workday.stg_workday__organization": ["model.workday.stg_workday__organization_base"], "model.workday.stg_workday__worker_position_organization_base": ["source.workday.workday.worker_position_organization_history"], "model.workday.stg_workday__country_personal_information_base": ["source.workday.workday.country_personal_information"], "model.workday.stg_workday__position_organization_base": ["source.workday.workday.position_organization"], "model.workday.stg_workday__job_family_job_profile_base": ["source.workday.workday.job_family_job_profile"], "model.workday.stg_workday__organization_role_worker_base": ["source.workday.workday.organization_role_worker"], "model.workday.stg_workday__organization_base": ["source.workday.workday.organization"], "model.workday.stg_workday__worker_position_base": ["source.workday.workday.worker_position_history"], "model.workday.stg_workday__position_base": ["source.workday.workday.position"], "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__organization_role_base": ["source.workday.workday.organization_role"], "model.workday.stg_workday__worker_base": ["source.workday.workday.worker_history"], "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_job_family_base": ["source.workday.workday.organization_job_family"], "model.workday.stg_workday__position_job_profile_base": ["source.workday.workday.position_job_profile"], "model.workday.stg_workday__worker_leave_status_base": ["source.workday.workday.worker_leave_status"], "model.workday.stg_workday__military_service_base": ["source.workday.workday.military_service"], "model.workday.stg_workday__job_family_group_base": ["source.workday.workday.job_family_group"], "model.workday.stg_workday__personal_information_base": ["source.workday.workday.personal_information_history"], "model.workday.stg_workday__personal_information_common_data_base": ["source.workday.workday.personal_information_common_data"], "model.workday.stg_workday__person_name_base": ["source.workday.workday.person_name"], "model.workday.stg_workday__person_contact_email_address_base": ["source.workday.workday.person_contact_email_address"], "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__worker_position_enriched": ["model.workday.stg_workday__worker_position"], "model.workday.int_workday__personal_details": ["model.workday.stg_workday__country_personal_information", "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_common_data", "model.workday.stg_workday__personal_information_ethnicity"], "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.not_null_workday__position_overview_position_id.603beb3f22": ["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.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"], "test.workday.not_null_stg_workday__job_profile_job_profile_id.1166250eaa": ["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.not_null_stg_workday__job_family_job_family_id.0dbfcdcd3f": ["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.not_null_stg_workday__job_family_group_job_family_group_id.e25ebb9009": ["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.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.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.not_null_stg_workday__organization_organization_id.f11f86e5c7": ["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.not_null_stg_workday__position_position_id.8a8bc89d4e": ["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.not_null_stg_workday__worker_worker_id.8dae310560": ["model.workday.stg_workday__worker"], "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.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.not_null_stg_workday__personal_information_common_data_worker_id.deb68b6c56": ["model.workday.stg_workday__personal_information_common_data"], "test.workday.not_null_stg_workday__military_service_worker_id.a196487e38": ["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.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.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.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"], "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.personal_information_common_data": [], "source.workday.workday.country_personal_information": [], "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_data": [], "seed.workday_integration_tests.workday_job_family_group_data": [], "seed.workday_integration_tests.workday_position_job_profile_data": [], "seed.workday_integration_tests.workday_organization_data": [], "seed.workday_integration_tests.workday_worker_leave_status_data": [], "seed.workday_integration_tests.workday_position_data": [], "seed.workday_integration_tests.workday_personal_information_ethnicity_data": [], "seed.workday_integration_tests.workday_worker_position_organization_history_data": [], "seed.workday_integration_tests.workday_organization_role_worker_data": [], "seed.workday_integration_tests.workday_job_family_job_profile_data": [], "seed.workday_integration_tests.workday_country_personal_information_data": [], "seed.workday_integration_tests.workday_worker_position_history_data": [], "seed.workday_integration_tests.workday_personal_information_history_data": [], "seed.workday_integration_tests.workday_job_family_job_family_group_data": [], "seed.workday_integration_tests.workday_position_organization_data": [], "seed.workday_integration_tests.workday_person_name_data": [], "seed.workday_integration_tests.workday_organization_job_family_data": [], "seed.workday_integration_tests.workday_personal_information_common_data_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_role_data": [], "seed.workday_integration_tests.workday_military_service_data": [], "seed.workday_integration_tests.workday_worker_history_data": [], "model.workday.workday__position_overview": ["test.workday.not_null_workday__position_overview_position_id.603beb3f22"], "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__organization_overview": ["test.workday.not_null_workday__organization_overview_organization_id.5b1070ba31", "test.workday.not_null_workday__organization_overview_organization_role_id.a909dac412"], "model.workday.workday__job_overview": ["test.workday.not_null_workday__job_overview_job_profile_id.dc998c6857"], "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.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.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_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.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_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.int_workday__employee_history": ["model.workday.workday__employee_daily_history"], "model.workday.stg_workday__position": ["model.workday.workday__position_overview", "test.workday.not_null_stg_workday__position_position_id.8a8bc89d4e"], "model.workday.stg_workday__person_name": ["model.workday.int_workday__personal_details", "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__organization_job_family": ["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__military_service": ["model.workday.int_workday__personal_details", "test.workday.not_null_stg_workday__military_service_worker_id.a196487e38"], "model.workday.stg_workday__job_family_job_profile": ["model.workday.workday__job_overview", "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__job_profile": ["model.workday.workday__job_overview", "test.workday.not_null_stg_workday__job_profile_job_profile_id.1166250eaa"], "model.workday.stg_workday__organization_role": ["model.workday.workday__organization_overview", "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__country_personal_information": ["model.workday.int_workday__personal_details"], "model.workday.stg_workday__organization_role_worker": ["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__worker_position_organization": ["model.workday.workday__organization_overview", "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__worker_leave_status": ["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__job_family_job_family_group": ["model.workday.workday__job_overview", "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.not_null_stg_workday__worker_worker_id.8dae310560"], "model.workday.stg_workday__job_family_group": ["model.workday.workday__job_overview", "test.workday.not_null_stg_workday__job_family_group_job_family_group_id.e25ebb9009"], "model.workday.stg_workday__position_job_profile": ["model.workday.workday__position_overview", "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": ["model.workday.int_workday__worker_position_enriched", "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__personal_information_ethnicity": ["model.workday.int_workday__personal_details", "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__personal_information_common_data": ["model.workday.int_workday__personal_details", "test.workday.not_null_stg_workday__personal_information_common_data_worker_id.deb68b6c56"], "model.workday.stg_workday__person_contact_email_address": ["model.workday.int_workday__personal_details", "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__job_family": ["model.workday.workday__job_overview", "test.workday.not_null_stg_workday__job_family_job_family_id.0dbfcdcd3f"], "model.workday.stg_workday__position_organization": ["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__organization": ["model.workday.workday__organization_overview", "test.workday.not_null_stg_workday__organization_organization_id.f11f86e5c7"], "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__country_personal_information_base": ["model.workday.stg_workday__country_personal_information"], "model.workday.stg_workday__position_organization_base": ["model.workday.stg_workday__position_organization"], "model.workday.stg_workday__job_family_job_profile_base": ["model.workday.stg_workday__job_family_job_profile"], "model.workday.stg_workday__organization_role_worker_base": ["model.workday.stg_workday__organization_role_worker"], "model.workday.stg_workday__organization_base": ["model.workday.stg_workday__organization"], "model.workday.stg_workday__worker_position_base": ["model.workday.stg_workday__worker_position", "model.workday.stg_workday__worker_position_history"], "model.workday.stg_workday__position_base": ["model.workday.stg_workday__position"], "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__organization_role_base": ["model.workday.stg_workday__organization_role"], "model.workday.stg_workday__worker_base": ["model.workday.stg_workday__worker", "model.workday.stg_workday__worker_history"], "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_job_family_base": ["model.workday.stg_workday__organization_job_family"], "model.workday.stg_workday__position_job_profile_base": ["model.workday.stg_workday__position_job_profile"], "model.workday.stg_workday__worker_leave_status_base": ["model.workday.stg_workday__worker_leave_status"], "model.workday.stg_workday__military_service_base": ["model.workday.stg_workday__military_service"], "model.workday.stg_workday__job_family_group_base": ["model.workday.stg_workday__job_family_group"], "model.workday.stg_workday__personal_information_base": ["model.workday.stg_workday__personal_information_history"], "model.workday.stg_workday__personal_information_common_data_base": ["model.workday.stg_workday__personal_information_common_data"], "model.workday.stg_workday__person_name_base": ["model.workday.stg_workday__person_name"], "model.workday.stg_workday__person_contact_email_address_base": ["model.workday.stg_workday__person_contact_email_address"], "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__worker_position_enriched": ["model.workday.int_workday__worker_employee_enhanced"], "model.workday.int_workday__personal_details": ["model.workday.int_workday__worker_employee_enhanced"], "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.not_null_workday__position_overview_position_id.603beb3f22": [], "test.workday.not_null_workday__organization_overview_organization_id.5b1070ba31": [], "test.workday.not_null_workday__organization_overview_organization_role_id.a909dac412": [], "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": [], "test.workday.not_null_stg_workday__job_profile_job_profile_id.1166250eaa": [], "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.not_null_stg_workday__job_family_job_family_id.0dbfcdcd3f": [], "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.not_null_stg_workday__job_family_group_job_family_group_id.e25ebb9009": [], "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.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.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.not_null_stg_workday__organization_organization_id.f11f86e5c7": [], "test.workday.not_null_stg_workday__position_organization_organization_id.567af692ad": [], "test.workday.not_null_stg_workday__position_organization_position_id.f62eb486b7": [], "test.workday.not_null_stg_workday__position_position_id.8a8bc89d4e": [], "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.not_null_stg_workday__worker_worker_id.8dae310560": [], "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.not_null_stg_workday__personal_information_ethnicity_worker_id.08e20915fd": [], "test.workday.not_null_stg_workday__personal_information_ethnicity_ethnicity_id.89c11054f2": [], "test.workday.not_null_stg_workday__personal_information_common_data_worker_id.deb68b6c56": [], "test.workday.not_null_stg_workday__military_service_worker_id.a196487e38": [], "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.not_null_stg_workday__worker_position_position_id.4dfd73b611": [], "test.workday.not_null_stg_workday__worker_position_worker_id.98db71611d": [], "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.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": [], "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.personal_information_common_data": ["model.workday.stg_workday__personal_information_common_data_base"], "source.workday.workday.country_personal_information": ["model.workday.stg_workday__country_personal_information_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": {}, "unit_tests": {}, "functions": {}} \ No newline at end of file +{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/manifest/v12.json", "dbt_version": "1.11.11", "generated_at": "2026-06-25T21:22:56.387446Z", "invocation_id": "64d0afb4-cb41-4baa-bb88-8ea782e44061", "invocation_started_at": "2026-06-25T21:22:43.257061+00:00", "env": {}, "project_name": "workday_integration_tests", "project_id": "457920b1e5594993369a050db836d437", "user_id": null, "send_anonymous_usage_stats": false, "adapter_type": "postgres", "quoting": {"database": true, "schema": true, "identifier": true, "column": null}, "run_started_at": "2026-06-25T21:22:43.257329+00:00"}, "nodes": {"seed.workday_integration_tests.workday_job_family_data": {"database": "postgres", "schema": "public", "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, "static_analysis": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ target.type in ('postgres','redshift') or var('fivetran_using_source_casing', false) }}", "column_types": {"_fivetran_synced": "timestamp"}}, "created_at": 1782422565.8467846, "relation_name": "\"postgres\".\"public\".\"workday_job_family_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_job_family_group_data": {"database": "postgres", "schema": "public", "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, "static_analysis": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ target.type in ('postgres','redshift') or var('fivetran_using_source_casing', false) }}", "column_types": {"_fivetran_synced": "timestamp"}}, "created_at": 1782422565.8545127, "relation_name": "\"postgres\".\"public\".\"workday_job_family_group_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_position_job_profile_data": {"database": "postgres", "schema": "public", "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, "static_analysis": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ target.type in ('postgres','redshift') or var('fivetran_using_source_casing', false) }}", "column_types": {"_fivetran_synced": "timestamp"}}, "created_at": 1782422565.8578417, "relation_name": "\"postgres\".\"public\".\"workday_position_job_profile_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_organization_data": {"database": "postgres", "schema": "public", "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, "static_analysis": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ target.type in ('postgres','redshift') or var('fivetran_using_source_casing', false) }}", "column_types": {"_fivetran_synced": "timestamp"}}, "created_at": 1782422565.861298, "relation_name": "\"postgres\".\"public\".\"workday_organization_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_worker_leave_status_data": {"database": "postgres", "schema": "public", "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, "static_analysis": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "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"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ target.type in ('postgres','redshift') or var('fivetran_using_source_casing', false) }}", "column_types": {"_fivetran_synced": "timestamp", "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": 1782422565.8646734, "relation_name": "\"postgres\".\"public\".\"workday_worker_leave_status_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_position_data": {"database": "postgres", "schema": "public", "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, "static_analysis": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "primary_compensation_basis": "float", "primary_compensation_basis_amount_change": "float", "primary_compensation_basis_percent_change": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ target.type in ('postgres','redshift') or var('fivetran_using_source_casing', false) }}", "column_types": {"_fivetran_synced": "timestamp", "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": 1782422565.8680198, "relation_name": "\"postgres\".\"public\".\"workday_position_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_personal_information_ethnicity_data": {"database": "postgres", "schema": "public", "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": "107fa2f924415ca927c3d3b0e328f2d760c473ca80b61057155b85218e53d9ed"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ target.type in ('postgres','redshift') or var('fivetran_using_source_casing', false) }}", "column_types": {"_fivetran_synced": "timestamp"}}, "created_at": 1782422565.8713381, "relation_name": "\"postgres\".\"public\".\"workday_personal_information_ethnicity_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_worker_position_organization_history_data": {"database": "postgres", "schema": "public", "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": "5480a1177e9e1909ba459d0393d1e8c4ecb40cc87db76809340dded54ab15d9d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": 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": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ target.type in ('postgres','redshift') or var('fivetran_using_source_casing', false) }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1782422565.8747327, "relation_name": "\"postgres\".\"public\".\"workday_worker_position_organization_history_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_organization_role_worker_data": {"database": "postgres", "schema": "public", "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, "static_analysis": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ target.type in ('postgres','redshift') or var('fivetran_using_source_casing', false) }}", "column_types": {"_fivetran_synced": "timestamp"}}, "created_at": 1782422565.8781428, "relation_name": "\"postgres\".\"public\".\"workday_organization_role_worker_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_job_family_job_profile_data": {"database": "postgres", "schema": "public", "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, "static_analysis": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ target.type in ('postgres','redshift') or var('fivetran_using_source_casing', false) }}", "column_types": {"_fivetran_synced": "timestamp"}}, "created_at": 1782422565.8814077, "relation_name": "\"postgres\".\"public\".\"workday_job_family_job_profile_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_country_personal_information_data": {"database": "postgres", "schema": "public", "name": "workday_country_personal_information_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_country_personal_information_data.csv", "original_file_path": "seeds/workday_country_personal_information_data.csv", "unique_id": "seed.workday_integration_tests.workday_country_personal_information_data", "fqn": ["workday_integration_tests", "workday_country_personal_information_data"], "alias": "workday_country_personal_information_data", "checksum": {"name": "sha256", "checksum": "f68c3082af227073768e2a494e17f37e7b73958b59dab3f12fa4625fca9b522d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ target.type in ('postgres','redshift') or var('fivetran_using_source_casing', false) }}", "column_types": {"_fivetran_synced": "timestamp"}}, "created_at": 1782422565.8846176, "relation_name": "\"postgres\".\"public\".\"workday_country_personal_information_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_worker_position_history_data": {"database": "postgres", "schema": "public", "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": "ed202c88c92ec5e05fb28c902ea5988a1492e617dd646cabd4ef2a64bca7785f"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "academic_pay_setup_data_annual_work_period_work_percent_of_year": "float", "business_site_summary_scheduled_weekly_hours": "float", "default_weekly_hours": "float", "_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": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ target.type in ('postgres','redshift') or var('fivetran_using_source_casing', false) }}", "column_types": {"_fivetran_synced": "timestamp", "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' }}", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1782422565.887901, "relation_name": "\"postgres\".\"public\".\"workday_worker_position_history_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_personal_information_history_data": {"database": "postgres", "schema": "public", "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": "cf68af0cbe18950f7fc92fb28f70b2a8947264d154a08d0498bb9f6aff4c1186"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": 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": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ target.type in ('postgres','redshift') or var('fivetran_using_source_casing', false) }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1782422565.89136, "relation_name": "\"postgres\".\"public\".\"workday_personal_information_history_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_job_family_job_family_group_data": {"database": "postgres", "schema": "public", "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, "static_analysis": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ target.type in ('postgres','redshift') or var('fivetran_using_source_casing', false) }}", "column_types": {"_fivetran_synced": "timestamp"}}, "created_at": 1782422565.8946223, "relation_name": "\"postgres\".\"public\".\"workday_job_family_job_family_group_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_position_organization_data": {"database": "postgres", "schema": "public", "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": "f5ced8efdd1f948d8d3c2de8d6cc6a6f52551a8a10e77874624d802ac350a8cc"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": 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": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ target.type in ('postgres','redshift') or var('fivetran_using_source_casing', false) }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1782422565.8979, "relation_name": "\"postgres\".\"public\".\"workday_position_organization_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_person_name_data": {"database": "postgres", "schema": "public", "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": "8957c4cfb94030e4bfd30f70b43a6bab404785ea72390ea453413023e9d720a5"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ target.type in ('postgres','redshift') or var('fivetran_using_source_casing', false) }}", "column_types": {"_fivetran_synced": "timestamp"}}, "created_at": 1782422565.9012299, "relation_name": "\"postgres\".\"public\".\"workday_person_name_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_organization_job_family_data": {"database": "postgres", "schema": "public", "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, "static_analysis": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ target.type in ('postgres','redshift') or var('fivetran_using_source_casing', false) }}", "column_types": {"_fivetran_synced": "timestamp"}}, "created_at": 1782422565.9045746, "relation_name": "\"postgres\".\"public\".\"workday_organization_job_family_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_personal_information_common_data_data": {"database": "postgres", "schema": "public", "name": "workday_personal_information_common_data_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_personal_information_common_data_data.csv", "original_file_path": "seeds/workday_personal_information_common_data_data.csv", "unique_id": "seed.workday_integration_tests.workday_personal_information_common_data_data", "fqn": ["workday_integration_tests", "workday_personal_information_common_data_data"], "alias": "workday_personal_information_common_data_data", "checksum": {"name": "sha256", "checksum": "b472ca7e494b28b870355821234d4395773330368e5066955ba69c611169c9b9"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ target.type in ('postgres','redshift') or var('fivetran_using_source_casing', false) }}", "column_types": {"_fivetran_synced": "timestamp"}}, "created_at": 1782422565.9079685, "relation_name": "\"postgres\".\"public\".\"workday_personal_information_common_data_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_job_profile_data": {"database": "postgres", "schema": "public", "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, "static_analysis": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ target.type in ('postgres','redshift') or var('fivetran_using_source_casing', false) }}", "column_types": {"_fivetran_synced": "timestamp"}}, "created_at": 1782422565.9112463, "relation_name": "\"postgres\".\"public\".\"workday_job_profile_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_person_contact_email_address_data": {"database": "postgres", "schema": "public", "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, "static_analysis": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ target.type in ('postgres','redshift') or var('fivetran_using_source_casing', false) }}", "column_types": {"_fivetran_synced": "timestamp"}}, "created_at": 1782422565.9145246, "relation_name": "\"postgres\".\"public\".\"workday_person_contact_email_address_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_organization_role_data": {"database": "postgres", "schema": "public", "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, "static_analysis": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ target.type in ('postgres','redshift') or var('fivetran_using_source_casing', false) }}", "column_types": {"_fivetran_synced": "timestamp"}}, "created_at": 1782422565.9179091, "relation_name": "\"postgres\".\"public\".\"workday_organization_role_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_military_service_data": {"database": "postgres", "schema": "public", "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": "def70ff8093177913fa8dabfd06dcb77b523ef3f86d2a6c876eec0f3c931c9a1"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ target.type in ('postgres','redshift') or var('fivetran_using_source_casing', false) }}", "column_types": {"_fivetran_synced": "timestamp"}}, "created_at": 1782422565.9212956, "relation_name": "\"postgres\".\"public\".\"workday_military_service_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_worker_history_data": {"database": "postgres", "schema": "public", "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": "fbb146b86dd709011a56421e89d7a997bfe0eae6c9e6f23840a135c3e48b987d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "seed", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "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", "_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": false, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": false, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"docs": {"show": false}, "quote_columns": "{{ target.type in ('postgres','redshift') or var('fivetran_using_source_casing', false) }}", "column_types": {"_fivetran_synced": "timestamp", "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' }}", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1782422565.9248192, "relation_name": "\"postgres\".\"public\".\"workday_worker_history_data\"", "raw_code": "", "doc_blocks": [], "root_path": "/home/runner/work/dbt_workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "model.workday.workday__position_overview": {"database": "postgres", "schema": "public_workday_dev", "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_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.position_id"]}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.source_relation"]}, "position_code": {"name": "position_code", "description": "Code associated with the position for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.position_code"]}, "job_posting_title": {"name": "job_posting_title", "description": "Title used for job postings associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_posting_title"]}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.effective_date"]}, "is_closed": {"name": "is_closed", "description": "Flag indicating whether the position is closed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.closed"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hiring_freeze"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.available_for_hire"]}, "availability_date": {"name": "availability_date", "description": "Date when the organization becomes available.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.availability_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.available_for_recruiting"]}, "earliest_hire_date": {"name": "earliest_hire_date", "description": "Earliest date when the position can be filled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.earliest_hire_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.available_for_overlap"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.earliest_overlap_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.worker_for_filled_position_id"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.worker_type_code"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.position_time_type_code"]}, "supervisory_organization_id": {"name": "supervisory_organization_id", "description": "Identifier for the supervisory organization associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.supervisory_organization_id"]}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_profile_id"]}, "compensation_package_code": {"name": "compensation_package_code", "description": "Code associated with the compensation package of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.compensation_package_code"]}, "compensation_grade_code": {"name": "compensation_grade_code", "description": "Code associated with the compensation grade of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.compensation_grade_code"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.compensation_grade_profile_code"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday.yml", "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "table", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1782422567.533581, "relation_name": "\"postgres\".\"public_workday_dev\".\"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", "doc_blocks": ["doc.workday.workday__position_overview"], "language": "sql", "refs": [{"name": "stg_workday__position", "package": null, "version": null}, {"name": "stg_workday__position_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__position_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n academic_tenure_eligible as academic_tenure_eligible,\n availability_date as availability_date,\n available_for_hire as available_for_hire,\n available_for_overlap as available_for_overlap,\n available_for_recruiting as available_for_recruiting,\n closed as closed,\n compensation_grade_code as compensation_grade_code,\n compensation_grade_profile_code as compensation_grade_profile_code,\n compensation_package_code as compensation_package_code,\n compensation_step_code as compensation_step_code,\n critical_job as critical_job,\n difficulty_to_fill_code as difficulty_to_fill_code,\n earliest_hire_date as earliest_hire_date,\n earliest_overlap_date as earliest_overlap_date,\n effective_date as effective_date,\n hiring_freeze as hiring_freeze,\n id as id,\n job_description as job_description,\n job_description_summary as job_description_summary,\n job_posting_title as job_posting_title,\n position_code as position_code,\n position_time_type_code as position_time_type_code,\n primary_compensation_basis as primary_compensation_basis,\n primary_compensation_basis_amount_change as primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change as primary_compensation_basis_percent_change,\n supervisory_organization_id as supervisory_organization_id,\n work_shift_required as work_shift_required,\n worker_for_filled_position_id as worker_for_filled_position_id,\n worker_position_id as worker_position_id,\n worker_type_code as worker_type_code\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n difficulty_to_fill_code as difficulty_to_fill_code,\n is_critical_job as is_critical_job,\n job_category_code as job_category_code,\n job_profile_id as job_profile_id,\n management_level_code as management_level_code,\n name as name,\n position_id as position_id,\n work_shift_required as work_shift_required\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__position_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n academic_tenure_eligible as academic_tenure_eligible,\n availability_date as availability_date,\n available_for_hire as available_for_hire,\n available_for_overlap as available_for_overlap,\n available_for_recruiting as available_for_recruiting,\n closed as closed,\n compensation_grade_code as compensation_grade_code,\n compensation_grade_profile_code as compensation_grade_profile_code,\n compensation_package_code as compensation_package_code,\n compensation_step_code as compensation_step_code,\n critical_job as critical_job,\n difficulty_to_fill_code as difficulty_to_fill_code,\n earliest_hire_date as earliest_hire_date,\n earliest_overlap_date as earliest_overlap_date,\n effective_date as effective_date,\n hiring_freeze as hiring_freeze,\n id as id,\n job_description as job_description,\n job_description_summary as job_description_summary,\n job_posting_title as job_posting_title,\n position_code as position_code,\n position_time_type_code as position_time_type_code,\n primary_compensation_basis as primary_compensation_basis,\n primary_compensation_basis_amount_change as primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change as primary_compensation_basis_percent_change,\n supervisory_organization_id as supervisory_organization_id,\n work_shift_required as work_shift_required,\n worker_for_filled_position_id as worker_for_filled_position_id,\n worker_position_id as worker_position_id,\n worker_type_code as worker_type_code\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n difficulty_to_fill_code as difficulty_to_fill_code,\n is_critical_job as is_critical_job,\n job_category_code as job_category_code,\n job_profile_id as job_profile_id,\n management_level_code as management_level_code,\n name as name,\n position_id as position_id,\n work_shift_required as work_shift_required\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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, "primary_key": [], "time_spine": null}, "model.workday.workday__employee_overview": {"database": "postgres", "schema": "public_workday_dev", "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": "b4b41327513d4e0603d953f0c8af861417d1b618ee859f65fcb69066fcc9d40e"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.employee_id"]}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.worker_id"]}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.position_id"]}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.source_relation"]}, "fivetran_id": {"name": "fivetran_id", "description": "Fivetran composite key identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.fivetran_id"]}, "worker_code": {"name": "worker_code", "description": "The code associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.worker_code"]}, "user_id": {"name": "user_id", "description": "The identifier for the user associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.user_id"]}, "universal_id": {"name": "universal_id", "description": "The universal ID associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.universal_id"]}, "is_user_active": {"name": "is_user_active", "description": "Is the user currently active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.is_user_active"]}, "is_employed": {"name": "is_employed", "description": "Is the worker currently employed?", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.is_employed"]}, "hire_date": {"name": "hire_date", "description": "The date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hire_date"]}, "departure_date": {"name": "departure_date", "description": "The departure date for the employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.departure_date"]}, "days_as_worker": {"name": "days_as_worker", "description": "Number of days since the worker has been created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.days_as_worker"]}, "is_terminated": {"name": "is_terminated", "description": "Has the worker been terminated?", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.is_terminated"]}, "primary_termination_category": {"name": "primary_termination_category", "description": "The primary termination category for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.primary_termination_category"]}, "primary_termination_reason": {"name": "primary_termination_reason", "description": "The primary termination reason for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.primary_termination_reason"]}, "is_regrettable_termination": {"name": "is_regrettable_termination", "description": "Has the worker been regrettably terminated?", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.is_regrettable_termination"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.compensation_effective_date"]}, "employee_compensation_frequency": {"name": "employee_compensation_frequency", "description": "Frequency of payment for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.employee_compensation_frequency"]}, "annual_currency_summary_currency": {"name": "annual_currency_summary_currency", "description": "Currency used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.annual_currency_summary_currency"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.annual_currency_summary_total_base_pay"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.annual_currency_summary_primary_compensation_basis"]}, "annual_summary_currency": {"name": "annual_summary_currency", "description": "Currency used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.annual_summary_currency"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.annual_summary_total_base_pay"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.annual_summary_primary_compensation_basis"]}, "compensation_grade_id": {"name": "compensation_grade_id", "description": "Identifier for the compensation grade.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.compensation_grade_id"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.compensation_grade_profile_id"]}, "date_of_birth": {"name": "date_of_birth", "description": "The date of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.date_of_birth"]}, "employee_type": {"name": "employee_type", "description": "The type of employee associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.employee_type"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.management_level_code"]}, "gender": {"name": "gender", "description": "The gender of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.gender"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hispanic_or_latino"]}, "first_name": {"name": "first_name", "description": "The first name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.first_name"]}, "last_name": {"name": "last_name", "description": "The last name or surname of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.last_name"]}, "email_address": {"name": "email_address", "description": "The actual email address of the person.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.email_address"]}, "ethnicity_codes": {"name": "ethnicity_codes", "description": "String aggregation of all ethnicity codes associated with an individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.ethnicity_codes"]}, "military_status": {"name": "military_status", "description": "The military status of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.military_status"]}, "business_title": {"name": "business_title", "description": "The business title associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.business_title"]}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_profile_id"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.fte_percent"]}, "position_start_date": {"name": "position_start_date", "description": "The position start date for this employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.position_start_date"]}, "position_end_date": {"name": "position_end_date", "description": "The position end date for this employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.position_end_date"]}, "position_effective_date": {"name": "position_effective_date", "description": "The position effective date for the employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.position_effective_date"]}, "position_location": {"name": "position_location", "description": "The position location of the employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.position_location"]}, "days_employed": {"name": "days_employed", "description": "The number of days the employee held their position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.days_employed"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.employed_one_year"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.employed_five_years"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.employed_ten_years"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.employed_twenty_years"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.employed_thirty_years"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.is_current_employee_one_year"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.is_current_employee_five_years"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.is_current_employee_ten_years"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.is_current_employee_twenty_years"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.is_current_employee_thirty_years"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday.yml", "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "table", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1782422567.5213027, "relation_name": "\"postgres\".\"public_workday_dev\".\"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 fivetran_id,\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", "doc_blocks": ["doc.workday.workday__employee_overview"], "language": "sql", "refs": [{"name": "int_workday__worker_employee_enhanced", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n academic_tenure_date as academic_tenure_date,\n active as active,\n active_status_date as active_status_date,\n annual_currency_summary_currency as annual_currency_summary_currency,\n annual_currency_summary_frequency as annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis as annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay as annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances as annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency as annual_summary_currency,\n annual_summary_frequency as annual_summary_frequency,\n annual_summary_primary_compensation_basis as annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay as annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances as annual_summary_total_salary_and_allowances,\n benefits_service_date as benefits_service_date,\n company_service_date as company_service_date,\n compensation_effective_date as compensation_effective_date,\n compensation_grade_id as compensation_grade_id,\n compensation_grade_profile_id as compensation_grade_profile_id,\n continuous_service_date as continuous_service_date,\n contract_assignment_details as contract_assignment_details,\n contract_currency_code as contract_currency_code,\n contract_end_date as contract_end_date,\n contract_frequency_name as contract_frequency_name,\n contract_pay_rate as contract_pay_rate,\n contract_vendor_name as contract_vendor_name,\n date_entered_workforce as date_entered_workforce,\n days_unemployed as days_unemployed,\n eligible_for_hire as eligible_for_hire,\n eligible_for_rehire_on_latest_termination as eligible_for_rehire_on_latest_termination,\n employee_compensation_currency as employee_compensation_currency,\n employee_compensation_frequency as employee_compensation_frequency,\n employee_compensation_primary_compensation_basis as employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay as employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances as employee_compensation_total_salary_and_allowances,\n end_employment_date as end_employment_date,\n expected_date_of_return as expected_date_of_return,\n expected_retirement_date as expected_retirement_date,\n first_day_of_work as first_day_of_work,\n has_international_assignment as has_international_assignment,\n hire_date as hire_date,\n hire_reason as hire_reason,\n hire_rescinded as hire_rescinded,\n home_country as home_country,\n hourly_frequency_currency as hourly_frequency_currency,\n hourly_frequency_frequency as hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis as hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay as hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances as hourly_frequency_total_salary_and_allowances,\n id as id,\n last_datefor_which_paid as last_datefor_which_paid,\n local_termination_reason as local_termination_reason,\n months_continuous_prior_employment as months_continuous_prior_employment,\n not_returning as not_returning,\n original_hire_date as original_hire_date,\n pay_group_frequency_currency as pay_group_frequency_currency,\n pay_group_frequency_frequency as pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis as pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay as pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances as pay_group_frequency_total_salary_and_allowances,\n pay_through_date as pay_through_date,\n primary_termination_category as primary_termination_category,\n primary_termination_reason as primary_termination_reason,\n probation_end_date as probation_end_date,\n probation_start_date as probation_start_date,\n reason_reference_id as reason_reference_id,\n regrettable_termination as regrettable_termination,\n rehire as rehire,\n resignation_date as resignation_date,\n retired as retired,\n retirement_date as retirement_date,\n retirement_eligibility_date as retirement_eligibility_date,\n return_unknown as return_unknown,\n seniority_date as seniority_date,\n severance_date as severance_date,\n terminated as terminated,\n termination_date as termination_date,\n termination_involuntary as termination_involuntary,\n termination_last_day_of_work as termination_last_day_of_work,\n time_off_service_date as time_off_service_date,\n universal_id as universal_id,\n user_id as user_id,\n vesting_date as vesting_date,\n worker_code as worker_code\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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_common_data as (\nwith base as (\n\n select *\n from \"postgres\".\"public_workday_dev\".\"stg_workday__personal_information_common_data_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_synced as _fivetran_synced,\n _fivetran_deleted as _fivetran_deleted,\n fivetran_id as fivetran_id,\n worker_id as worker_id,\n additional_nationality as additional_nationality,\n blood_type as blood_type,\n citizenship_status as citizenship_status,\n city_of_birth as city_of_birth,\n city_of_birth_code as city_of_birth_code,\n country_of_birth as country_of_birth,\n country_region_of_birth as country_region_of_birth,\n date_of_birth as date_of_birth,\n date_of_death as date_of_death,\n last_medical_exam_date as last_medical_exam_date,\n last_medical_exam_valid_to as last_medical_exam_valid_to,\n medical_exam_notes as medical_exam_notes,\n primary_nationality as primary_nationality,\n region_of_birth as region_of_birth\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n from base\n),\n\nfinal as (\n\n select\n fivetran_id,\n 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 country_region_of_birth,\n date_of_birth,\n date_of_death,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n medical_exam_notes,\n primary_nationality,\n region_of_birth\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__country_personal_information as (\nwith base as (\n\n select *\n from \"postgres\".\"public_workday_dev\".\"stg_workday__country_personal_information_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_synced as _fivetran_synced,\n _fivetran_deleted as _fivetran_deleted,\n fivetran_id as fivetran_id,\n personal_info_common_id as personal_info_common_id,\n country_code as country_code,\n gender as gender,\n hispanic_or_latino as hispanic_or_latino,\n hukou_locality as hukou_locality,\n hukou_postal_code as hukou_postal_code,\n hukou_region_code as hukou_region_code,\n hukou_subregion_code as hukou_subregion_code,\n hukou_type_code as hukou_type_code,\n local_hukou as local_hukou,\n marital_status as marital_status,\n marital_status_date as marital_status_date,\n native_region_code as native_region_code,\n native_region as native_region,\n personnel_file_agency_for_person as personnel_file_agency_for_person,\n political_affiliation as political_affiliation,\n religion as religion,\n social_benefits_locality as social_benefits_locality\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n from base\n),\n\nfinal as (\n\n select\n fivetran_id,\n personal_info_common_id,\n country_code,\n source_relation,\n _fivetran_synced,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region_code,\n hukou_subregion_code,\n hukou_type_code,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n native_region_code,\n native_region,\n personnel_file_agency_for_person,\n political_affiliation,\n religion,\n social_benefits_locality\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"public_workday_dev\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n academic_suffix as academic_suffix,\n additional_name_type as additional_name_type,\n country as country,\n first_name as first_name,\n full_name_singapore_malaysia as full_name_singapore_malaysia,\n hereditary_suffix as hereditary_suffix,\n honorary_suffix as honorary_suffix,\n index as index,\n last_name as last_name,\n local_first_name as local_first_name,\n local_first_name_2 as local_first_name_2,\n local_last_name as local_last_name,\n local_last_name_2 as local_last_name_2,\n local_middle_name as local_middle_name,\n local_middle_name_2 as local_middle_name_2,\n local_secondary_last_name as local_secondary_last_name,\n local_secondary_last_name_2 as local_secondary_last_name_2,\n middle_name as middle_name,\n personal_info_system_id as personal_info_system_id,\n prefix_salutation as prefix_salutation,\n prefix_title as prefix_title,\n prefix_title_code as prefix_title_code,\n professional_suffix as professional_suffix,\n religious_suffix as religious_suffix,\n royal_suffix as royal_suffix,\n secondary_last_name as secondary_last_name,\n social_suffix as social_suffix,\n social_suffix_id as social_suffix_id,\n tertiary_last_name as tertiary_last_name,\n type as type\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n 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\".\"public_workday_dev\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n email_address as email_address,\n email_code as email_code,\n email_comment as email_comment,\n id as id,\n personal_info_system_id as personal_info_system_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n 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\".\"public_workday_dev\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n id as id,\n country_personal_information_id as country_personal_information_id,\n ethnicity_code as ethnicity_code\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n from base\n),\n\nfinal as (\n\n select\n source_relation,\n _fivetran_synced, \n country_personal_information_id as worker_id,\n ethnicity_code,\n id as ethnicity_id\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\".\"public_workday_dev\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n personal_info_common_id as personal_info_common_id,\n discharge_date as discharge_date,\n discharge_type as discharge_type,\n notes as notes,\n rank as rank,\n service as service,\n status_id as status_id,\n status_begin_date as status_begin_date\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n from base\n),\n\nfinal as (\n select\n personal_info_common_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n notes,\n rank,\n service,\n discharge_type,\n status_id 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_common_data as (\n\n select\n fivetran_id,\n worker_id,\n source_relation,\n date_of_birth\n from __dbt__cte__stg_workday__personal_information_common_data\n),\n\nworker_personal_country_data as (\n\n select\n fivetran_id as personal_country_id,\n personal_info_common_id,\n source_relation,\n gender,\n is_hispanic_or_latino\n from __dbt__cte__stg_workday__country_personal_information\n),\n\nworker_personal_info_data as (\n\n select\n worker_personal_common_data.fivetran_id,\n worker_personal_country_data.personal_country_id,\n worker_personal_common_data.worker_id,\n worker_personal_common_data.source_relation,\n worker_personal_common_data.date_of_birth,\n worker_personal_country_data.gender,\n worker_personal_country_data.is_hispanic_or_latino\n from worker_personal_common_data\n left join worker_personal_country_data\n on worker_personal_common_data.fivetran_id = worker_personal_country_data.personal_info_common_id\n and worker_personal_common_data.source_relation = worker_personal_country_data.source_relation\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.fivetran_id,\n worker_personal_info_data.worker_id,\n worker_personal_info_data.source_relation,\n worker_personal_info_data.date_of_birth,\n worker_personal_info_data.gender,\n worker_personal_info_data.is_hispanic_or_latino,\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.personal_country_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.fivetran_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\".\"public_workday_dev\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n academic_pay_setup_data_annual_work_period_end_date as academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date as academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year as academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date as academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date as academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language as business_site_summary_display_language,\n business_site_summary_local as business_site_summary_local,\n business_site_summary_location as business_site_summary_location,\n business_site_summary_location_type as business_site_summary_location_type,\n business_site_summary_name as business_site_summary_name,\n business_site_summary_scheduled_weekly_hours as business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile as business_site_summary_time_profile,\n business_title as business_title,\n critical_job as critical_job,\n default_weekly_hours as default_weekly_hours,\n difficulty_to_fill as difficulty_to_fill,\n effective_date as effective_date,\n employee_type as employee_type,\n end_date as end_date,\n end_employment_date as end_employment_date,\n exclude_from_head_count as exclude_from_head_count,\n expected_assignment_end_date as expected_assignment_end_date,\n external_employee as external_employee,\n federal_withholding_fein as federal_withholding_fein,\n frequency as frequency,\n full_time_equivalent_percentage as full_time_equivalent_percentage,\n headcount_restriction_code as headcount_restriction_code,\n home_country as home_country,\n host_country as host_country,\n international_assignment_type as international_assignment_type,\n is_primary_job as is_primary_job,\n job_exempt as job_exempt,\n job_profile_id as job_profile_id,\n management_level_code as management_level_code,\n paid_fte as paid_fte,\n pay_group as pay_group,\n pay_rate as pay_rate,\n pay_rate_type as pay_rate_type,\n pay_through_date as pay_through_date,\n payroll_entity as payroll_entity,\n payroll_file_number as payroll_file_number,\n position_id as position_id,\n regular_paid_equivalent_hours as regular_paid_equivalent_hours,\n scheduled_weekly_hours as scheduled_weekly_hours,\n specify_paid_fte as specify_paid_fte,\n specify_working_fte as specify_working_fte,\n start_date as start_date,\n start_international_assignment_reason as start_international_assignment_reason,\n work_hours_profile as work_hours_profile,\n work_shift as work_shift,\n work_shift_required as work_shift_required,\n work_space as work_space,\n worker_hours_profile_classification as worker_hours_profile_classification,\n worker_id as worker_id,\n working_fte as working_fte,\n working_time_frequency as working_time_frequency,\n working_time_unit as working_time_unit,\n working_time_value as working_time_value\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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 int_worker_personal_details.fivetran_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 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 fivetran_id,\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\".\"public_workday_dev\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n academic_tenure_date as academic_tenure_date,\n active as active,\n active_status_date as active_status_date,\n annual_currency_summary_currency as annual_currency_summary_currency,\n annual_currency_summary_frequency as annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis as annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay as annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances as annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency as annual_summary_currency,\n annual_summary_frequency as annual_summary_frequency,\n annual_summary_primary_compensation_basis as annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay as annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances as annual_summary_total_salary_and_allowances,\n benefits_service_date as benefits_service_date,\n company_service_date as company_service_date,\n compensation_effective_date as compensation_effective_date,\n compensation_grade_id as compensation_grade_id,\n compensation_grade_profile_id as compensation_grade_profile_id,\n continuous_service_date as continuous_service_date,\n contract_assignment_details as contract_assignment_details,\n contract_currency_code as contract_currency_code,\n contract_end_date as contract_end_date,\n contract_frequency_name as contract_frequency_name,\n contract_pay_rate as contract_pay_rate,\n contract_vendor_name as contract_vendor_name,\n date_entered_workforce as date_entered_workforce,\n days_unemployed as days_unemployed,\n eligible_for_hire as eligible_for_hire,\n eligible_for_rehire_on_latest_termination as eligible_for_rehire_on_latest_termination,\n employee_compensation_currency as employee_compensation_currency,\n employee_compensation_frequency as employee_compensation_frequency,\n employee_compensation_primary_compensation_basis as employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay as employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances as employee_compensation_total_salary_and_allowances,\n end_employment_date as end_employment_date,\n expected_date_of_return as expected_date_of_return,\n expected_retirement_date as expected_retirement_date,\n first_day_of_work as first_day_of_work,\n has_international_assignment as has_international_assignment,\n hire_date as hire_date,\n hire_reason as hire_reason,\n hire_rescinded as hire_rescinded,\n home_country as home_country,\n hourly_frequency_currency as hourly_frequency_currency,\n hourly_frequency_frequency as hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis as hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay as hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances as hourly_frequency_total_salary_and_allowances,\n id as id,\n last_datefor_which_paid as last_datefor_which_paid,\n local_termination_reason as local_termination_reason,\n months_continuous_prior_employment as months_continuous_prior_employment,\n not_returning as not_returning,\n original_hire_date as original_hire_date,\n pay_group_frequency_currency as pay_group_frequency_currency,\n pay_group_frequency_frequency as pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis as pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay as pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances as pay_group_frequency_total_salary_and_allowances,\n pay_through_date as pay_through_date,\n primary_termination_category as primary_termination_category,\n primary_termination_reason as primary_termination_reason,\n probation_end_date as probation_end_date,\n probation_start_date as probation_start_date,\n reason_reference_id as reason_reference_id,\n regrettable_termination as regrettable_termination,\n rehire as rehire,\n resignation_date as resignation_date,\n retired as retired,\n retirement_date as retirement_date,\n retirement_eligibility_date as retirement_eligibility_date,\n return_unknown as return_unknown,\n seniority_date as seniority_date,\n severance_date as severance_date,\n terminated as terminated,\n termination_date as termination_date,\n termination_involuntary as termination_involuntary,\n termination_last_day_of_work as termination_last_day_of_work,\n time_off_service_date as time_off_service_date,\n universal_id as universal_id,\n user_id as user_id,\n vesting_date as vesting_date,\n worker_code as worker_code\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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_common_data", "sql": " __dbt__cte__stg_workday__personal_information_common_data as (\nwith base as (\n\n select *\n from \"postgres\".\"public_workday_dev\".\"stg_workday__personal_information_common_data_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_synced as _fivetran_synced,\n _fivetran_deleted as _fivetran_deleted,\n fivetran_id as fivetran_id,\n worker_id as worker_id,\n additional_nationality as additional_nationality,\n blood_type as blood_type,\n citizenship_status as citizenship_status,\n city_of_birth as city_of_birth,\n city_of_birth_code as city_of_birth_code,\n country_of_birth as country_of_birth,\n country_region_of_birth as country_region_of_birth,\n date_of_birth as date_of_birth,\n date_of_death as date_of_death,\n last_medical_exam_date as last_medical_exam_date,\n last_medical_exam_valid_to as last_medical_exam_valid_to,\n medical_exam_notes as medical_exam_notes,\n primary_nationality as primary_nationality,\n region_of_birth as region_of_birth\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n from base\n),\n\nfinal as (\n\n select\n fivetran_id,\n 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 country_region_of_birth,\n date_of_birth,\n date_of_death,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n medical_exam_notes,\n primary_nationality,\n region_of_birth\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__country_personal_information", "sql": " __dbt__cte__stg_workday__country_personal_information as (\nwith base as (\n\n select *\n from \"postgres\".\"public_workday_dev\".\"stg_workday__country_personal_information_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_synced as _fivetran_synced,\n _fivetran_deleted as _fivetran_deleted,\n fivetran_id as fivetran_id,\n personal_info_common_id as personal_info_common_id,\n country_code as country_code,\n gender as gender,\n hispanic_or_latino as hispanic_or_latino,\n hukou_locality as hukou_locality,\n hukou_postal_code as hukou_postal_code,\n hukou_region_code as hukou_region_code,\n hukou_subregion_code as hukou_subregion_code,\n hukou_type_code as hukou_type_code,\n local_hukou as local_hukou,\n marital_status as marital_status,\n marital_status_date as marital_status_date,\n native_region_code as native_region_code,\n native_region as native_region,\n personnel_file_agency_for_person as personnel_file_agency_for_person,\n political_affiliation as political_affiliation,\n religion as religion,\n social_benefits_locality as social_benefits_locality\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n from base\n),\n\nfinal as (\n\n select\n fivetran_id,\n personal_info_common_id,\n country_code,\n source_relation,\n _fivetran_synced,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region_code,\n hukou_subregion_code,\n hukou_type_code,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n native_region_code,\n native_region,\n personnel_file_agency_for_person,\n political_affiliation,\n religion,\n social_benefits_locality\n from fields\n where not coalesce(_fivetran_deleted, false)\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\".\"public_workday_dev\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n academic_suffix as academic_suffix,\n additional_name_type as additional_name_type,\n country as country,\n first_name as first_name,\n full_name_singapore_malaysia as full_name_singapore_malaysia,\n hereditary_suffix as hereditary_suffix,\n honorary_suffix as honorary_suffix,\n index as index,\n last_name as last_name,\n local_first_name as local_first_name,\n local_first_name_2 as local_first_name_2,\n local_last_name as local_last_name,\n local_last_name_2 as local_last_name_2,\n local_middle_name as local_middle_name,\n local_middle_name_2 as local_middle_name_2,\n local_secondary_last_name as local_secondary_last_name,\n local_secondary_last_name_2 as local_secondary_last_name_2,\n middle_name as middle_name,\n personal_info_system_id as personal_info_system_id,\n prefix_salutation as prefix_salutation,\n prefix_title as prefix_title,\n prefix_title_code as prefix_title_code,\n professional_suffix as professional_suffix,\n religious_suffix as religious_suffix,\n royal_suffix as royal_suffix,\n secondary_last_name as secondary_last_name,\n social_suffix as social_suffix,\n social_suffix_id as social_suffix_id,\n tertiary_last_name as tertiary_last_name,\n type as type\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n 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\".\"public_workday_dev\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n email_address as email_address,\n email_code as email_code,\n email_comment as email_comment,\n id as id,\n personal_info_system_id as personal_info_system_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n 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\".\"public_workday_dev\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n id as id,\n country_personal_information_id as country_personal_information_id,\n ethnicity_code as ethnicity_code\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n from base\n),\n\nfinal as (\n\n select\n source_relation,\n _fivetran_synced, \n country_personal_information_id as worker_id,\n ethnicity_code,\n id as ethnicity_id\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\".\"public_workday_dev\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n personal_info_common_id as personal_info_common_id,\n discharge_date as discharge_date,\n discharge_type as discharge_type,\n notes as notes,\n rank as rank,\n service as service,\n status_id as status_id,\n status_begin_date as status_begin_date\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n from base\n),\n\nfinal as (\n select\n personal_info_common_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n notes,\n rank,\n service,\n discharge_type,\n status_id 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_common_data as (\n\n select\n fivetran_id,\n worker_id,\n source_relation,\n date_of_birth\n from __dbt__cte__stg_workday__personal_information_common_data\n),\n\nworker_personal_country_data as (\n\n select\n fivetran_id as personal_country_id,\n personal_info_common_id,\n source_relation,\n gender,\n is_hispanic_or_latino\n from __dbt__cte__stg_workday__country_personal_information\n),\n\nworker_personal_info_data as (\n\n select\n worker_personal_common_data.fivetran_id,\n worker_personal_country_data.personal_country_id,\n worker_personal_common_data.worker_id,\n worker_personal_common_data.source_relation,\n worker_personal_common_data.date_of_birth,\n worker_personal_country_data.gender,\n worker_personal_country_data.is_hispanic_or_latino\n from worker_personal_common_data\n left join worker_personal_country_data\n on worker_personal_common_data.fivetran_id = worker_personal_country_data.personal_info_common_id\n and worker_personal_common_data.source_relation = worker_personal_country_data.source_relation\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.fivetran_id,\n worker_personal_info_data.worker_id,\n worker_personal_info_data.source_relation,\n worker_personal_info_data.date_of_birth,\n worker_personal_info_data.gender,\n worker_personal_info_data.is_hispanic_or_latino,\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.personal_country_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.fivetran_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\".\"public_workday_dev\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n academic_pay_setup_data_annual_work_period_end_date as academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date as academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year as academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date as academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date as academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language as business_site_summary_display_language,\n business_site_summary_local as business_site_summary_local,\n business_site_summary_location as business_site_summary_location,\n business_site_summary_location_type as business_site_summary_location_type,\n business_site_summary_name as business_site_summary_name,\n business_site_summary_scheduled_weekly_hours as business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile as business_site_summary_time_profile,\n business_title as business_title,\n critical_job as critical_job,\n default_weekly_hours as default_weekly_hours,\n difficulty_to_fill as difficulty_to_fill,\n effective_date as effective_date,\n employee_type as employee_type,\n end_date as end_date,\n end_employment_date as end_employment_date,\n exclude_from_head_count as exclude_from_head_count,\n expected_assignment_end_date as expected_assignment_end_date,\n external_employee as external_employee,\n federal_withholding_fein as federal_withholding_fein,\n frequency as frequency,\n full_time_equivalent_percentage as full_time_equivalent_percentage,\n headcount_restriction_code as headcount_restriction_code,\n home_country as home_country,\n host_country as host_country,\n international_assignment_type as international_assignment_type,\n is_primary_job as is_primary_job,\n job_exempt as job_exempt,\n job_profile_id as job_profile_id,\n management_level_code as management_level_code,\n paid_fte as paid_fte,\n pay_group as pay_group,\n pay_rate as pay_rate,\n pay_rate_type as pay_rate_type,\n pay_through_date as pay_through_date,\n payroll_entity as payroll_entity,\n payroll_file_number as payroll_file_number,\n position_id as position_id,\n regular_paid_equivalent_hours as regular_paid_equivalent_hours,\n scheduled_weekly_hours as scheduled_weekly_hours,\n specify_paid_fte as specify_paid_fte,\n specify_working_fte as specify_working_fte,\n start_date as start_date,\n start_international_assignment_reason as start_international_assignment_reason,\n work_hours_profile as work_hours_profile,\n work_shift as work_shift,\n work_shift_required as work_shift_required,\n work_space as work_space,\n worker_hours_profile_classification as worker_hours_profile_classification,\n worker_id as worker_id,\n working_fte as working_fte,\n working_time_frequency as working_time_frequency,\n working_time_unit as working_time_unit,\n working_time_value as working_time_value\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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 int_worker_personal_details.fivetran_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 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, "primary_key": ["employee_id"], "time_spine": null}, "model.workday.workday__organization_overview": {"database": "postgres", "schema": "public_workday_dev", "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_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.organization_id"]}, "organization_role_id": {"name": "organization_role_id", "description": "The role id associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.organization_role_id"]}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.position_id"]}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.worker_id"]}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.source_relation"]}, "organization_code": {"name": "organization_code", "description": "Code associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.organization_code"]}, "organization_name": {"name": "organization_name", "description": "Name of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.organization_name"]}, "organization_type": {"name": "organization_type", "description": "Type or category of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.organization_type"]}, "organization_sub_type": {"name": "organization_sub_type", "description": "Subtype or classification of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.organization_sub_type"]}, "superior_organization_id": {"name": "superior_organization_id", "description": "Identifier for the superior organization, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.superior_organization_id"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.top_level_organization_id"]}, "manager_id": {"name": "manager_id", "description": "Identifier for the manager associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.manager_id"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.organization_role_code"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday.yml", "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "table", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1782422567.5379333, "relation_name": "\"postgres\".\"public_workday_dev\".\"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", "doc_blocks": ["doc.workday.workday__organization_overview"], "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": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__organization_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n availability_date as availability_date,\n available_for_hire as available_for_hire,\n code as code,\n description as description,\n external_url as external_url,\n hiring_freeze as hiring_freeze,\n id as id,\n inactive as inactive,\n inactive_date as inactive_date,\n include_manager_in_name as include_manager_in_name,\n include_organization_code_in_name as include_organization_code_in_name,\n last_updated_date_time as last_updated_date_time,\n location as location,\n manager_id as manager_id,\n name as name,\n organization_code as organization_code,\n organization_owner_id as organization_owner_id,\n staffing_model as staffing_model,\n sub_type as sub_type,\n superior_organization_id as superior_organization_id,\n supervisory_position_availability_date as supervisory_position_availability_date,\n supervisory_position_earliest_hire_date as supervisory_position_earliest_hire_date,\n supervisory_position_time_type as supervisory_position_time_type,\n supervisory_position_worker_type as supervisory_position_worker_type,\n top_level_organization_id as top_level_organization_id,\n type as type,\n visibility as visibility\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n organization_id as organization_id,\n organization_role_code as organization_role_code,\n role_id as role_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n index as index,\n position_id as position_id,\n worker_id as worker_id,\n date_of_pay_group_assignment as date_of_pay_group_assignment,\n organization_id as organization_id,\n primary_business_site as primary_business_site,\n used_in_change_organization_assignments as used_in_change_organization_assignments\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__organization_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n availability_date as availability_date,\n available_for_hire as available_for_hire,\n code as code,\n description as description,\n external_url as external_url,\n hiring_freeze as hiring_freeze,\n id as id,\n inactive as inactive,\n inactive_date as inactive_date,\n include_manager_in_name as include_manager_in_name,\n include_organization_code_in_name as include_organization_code_in_name,\n last_updated_date_time as last_updated_date_time,\n location as location,\n manager_id as manager_id,\n name as name,\n organization_code as organization_code,\n organization_owner_id as organization_owner_id,\n staffing_model as staffing_model,\n sub_type as sub_type,\n superior_organization_id as superior_organization_id,\n supervisory_position_availability_date as supervisory_position_availability_date,\n supervisory_position_earliest_hire_date as supervisory_position_earliest_hire_date,\n supervisory_position_time_type as supervisory_position_time_type,\n supervisory_position_worker_type as supervisory_position_worker_type,\n top_level_organization_id as top_level_organization_id,\n type as type,\n visibility as visibility\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n organization_id as organization_id,\n organization_role_code as organization_role_code,\n role_id as role_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n index as index,\n position_id as position_id,\n worker_id as worker_id,\n date_of_pay_group_assignment as date_of_pay_group_assignment,\n organization_id as organization_id,\n primary_business_site as primary_business_site,\n used_in_change_organization_assignments as used_in_change_organization_assignments\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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, "primary_key": [], "time_spine": null}, "model.workday.workday__job_overview": {"database": "postgres", "schema": "public_workday_dev", "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_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_profile_id"]}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.source_relation"]}, "job_profile_code": {"name": "job_profile_code", "description": "Code assigned to the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_profile_code"]}, "job_title": {"name": "job_title", "description": "The title of the job for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_title"]}, "private_title": {"name": "private_title", "description": "The private title associated with the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_private_title"]}, "job_summary": {"name": "job_summary", "description": "The summary of the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_summary"]}, "job_description": {"name": "job_description", "description": "Brief description of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_profile_description"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_family_codes"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_family_summaries"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_family_group_codes"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_family_group_summaries"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday.yml", "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "table", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1782422567.5263577, "relation_name": "\"postgres\".\"public_workday_dev\".\"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", "doc_blocks": ["doc.workday.workday__job_overview"], "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": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__job_profile_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n additional_job_description as additional_job_description,\n compensation_grade_id as compensation_grade_id,\n critical_job as critical_job,\n description as description,\n difficulty_to_fill as difficulty_to_fill,\n effective_date as effective_date,\n id as id,\n inactive as inactive,\n include_job_code_in_name as include_job_code_in_name,\n job_category_id as job_category_id,\n job_profile_code as job_profile_code,\n level as level,\n management_level as management_level,\n private_title as private_title,\n public_job as public_job,\n referral_payment_plan as referral_payment_plan,\n summary as summary,\n title as title,\n union_code as union_code,\n union_membership_requirement as union_membership_requirement,\n work_shift_required as work_shift_required,\n work_study_award_source_code as work_study_award_source_code,\n work_study_requirement_option_code as work_study_requirement_option_code\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n job_family_id as job_family_id,\n job_profile_id as job_profile_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__job_family_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n effective_date as effective_date,\n id as id,\n inactive as inactive,\n job_family_code as job_family_code,\n summary as summary\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n job_family_id as job_family_id,\n job_family_group_id as job_family_group_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__job_family_group_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n effective_date as effective_date,\n id as id,\n inactive as inactive,\n job_family_group_code as job_family_group_code,\n summary as summary\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__job_profile_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n additional_job_description as additional_job_description,\n compensation_grade_id as compensation_grade_id,\n critical_job as critical_job,\n description as description,\n difficulty_to_fill as difficulty_to_fill,\n effective_date as effective_date,\n id as id,\n inactive as inactive,\n include_job_code_in_name as include_job_code_in_name,\n job_category_id as job_category_id,\n job_profile_code as job_profile_code,\n level as level,\n management_level as management_level,\n private_title as private_title,\n public_job as public_job,\n referral_payment_plan as referral_payment_plan,\n summary as summary,\n title as title,\n union_code as union_code,\n union_membership_requirement as union_membership_requirement,\n work_shift_required as work_shift_required,\n work_study_award_source_code as work_study_award_source_code,\n work_study_requirement_option_code as work_study_requirement_option_code\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n job_family_id as job_family_id,\n job_profile_id as job_profile_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__job_family_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n effective_date as effective_date,\n id as id,\n inactive as inactive,\n job_family_code as job_family_code,\n summary as summary\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n job_family_id as job_family_id,\n job_family_group_id as job_family_group_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__job_family_group_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n effective_date as effective_date,\n id as id,\n inactive as inactive,\n job_family_group_code as job_family_group_code,\n summary as summary\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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, "primary_key": [], "time_spine": null}, "model.workday.workday__worker_position_org_daily_history": {"database": "postgres", "schema": "public_workday_dev", "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": "ccc39a81df5790ca944d4273d2f483860a93922e69aec58e7c8b867ad2ae07f4"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "date_day": {"name": "date_day", "description": "Date on which the account had these field values.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.worker_id"]}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.position_id"]}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.organization_id"]}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.source_relation"]}, "_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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_start"]}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_end"]}, "_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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "_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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_active"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}, "index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.index"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.date_of_pay_group_assignment"]}, "primary_business_site": {"name": "primary_business_site", "description": "Primary location a worker's business is situated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.primary_business_site"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.used_in_change_organization_assignments"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday_history/workday_history.yml", "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true, "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1782422567.6901703, "relation_name": "\"postgres\".\"public_workday_dev\".\"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 and flags.WHICH in ('run', 'build') %}\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 results = run_query(first_last_date_query) %}\n {% set start_date_raw = results.columns[0][0] %}\n {% set last_date_raw = results.columns[1][0] %}\n {% set start_date = start_date_raw|string if start_date_raw is not none else var('employee_history_start_date','2025-03-01') %}\n {% set last_date = last_date_raw|string if last_date_raw is not none else modules.datetime.datetime.today().strftime('%Y-%m-%d') %}\n {% set spine_start = \"greatest(cast('\" ~ start_date[0:10] ~ \"' as date), cast('\" ~ var('employee_history_start_date','2025-03-01') ~ \"' as date))\" %}\n {% set spine_end = \"cast('\" ~ last_date[0:10] ~ \"' as date)\" %}\n\n{# During compile/test, creates range going back 1 year #}\n{% else %}\n {% set spine_start = dbt.dateadd(\"year\", \"-1\", \"current_date\") %}\n {% set spine_end = dbt.dateadd(\"day\", \"-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 = spine_start,\n end_date = spine_end\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", "doc_blocks": [], "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": [], "functions": [], "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt_utils.date_spine", "macro.dbt_utils.generate_surrogate_key", "macro.dbt.type_timestamp"], "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\".\"public_workday_dev\".\"stg_workday__worker_position_organization_base\"\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\".\"public_workday_dev\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n index as index,\n position_id as position_id,\n worker_id as worker_id,\n date_of_pay_group_assignment as date_of_pay_group_assignment,\n organization_id as organization_id,\n primary_business_site as primary_business_site,\n used_in_change_organization_assignments as used_in_change_organization_assignments\n\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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 + 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 \n \n\n )\n\n select *\n from unioned\n where generated_number <= 364\n order by generated_number\n\n\n\n),\n\nall_periods as (\n\n select (\n \n\n \n\n current_date + ((interval '1 year') * (-1))\n\n + ((interval '1 day') * (row_number() over (order by generated_number) - 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 <= \n\n current_date + ((interval '1 day') * (-1))\n\n\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\".\"public_workday_dev\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n index as index,\n position_id as position_id,\n worker_id as worker_id,\n date_of_pay_group_assignment as date_of_pay_group_assignment,\n organization_id as organization_id,\n primary_business_site as primary_business_site,\n used_in_change_organization_assignments as used_in_change_organization_assignments\n\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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, "primary_key": ["wpo_day_id"], "time_spine": null}, "model.workday.workday__monthly_summary": {"database": "postgres", "schema": "public_workday_dev", "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": "288d229ea4db7480335f49e07d354b34ea5e6e94def85cf391bcd34b6a939989"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.source_relation"]}, "new_employees": {"name": "new_employees", "description": "New employees that came in this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "churned_employees": {"name": "churned_employees", "description": "Churned employees that came in this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "churned_voluntary_employees": {"name": "churned_voluntary_employees", "description": "Voluntary churned employees that came in this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "churned_involuntary_employees": {"name": "churned_involuntary_employees", "description": "Involuntary churned employees that came in this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "churned_workers": {"name": "churned_workers", "description": "Churned workers that came in this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "active_employees": {"name": "active_employees", "description": "Employees considered active this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "active_male_employees": {"name": "active_male_employees", "description": "Male employees considered active this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "active_female_employees": {"name": "active_female_employees", "description": "Female employees considered active this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "active_workers": {"name": "active_workers", "description": "Workers considered active this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "active_known_gender_employees": {"name": "active_known_gender_employees", "description": "Known gender employees considered active this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_days_as_employee": {"name": "avg_days_as_employee", "description": "Average days employee has been active month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "avg_days_as_worker": {"name": "avg_days_as_worker", "description": "Average days as a worker this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday_history/workday_history.yml", "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true, "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1782422567.6864724, "relation_name": "\"postgres\".\"public_workday_dev\".\"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 {{ fivetran_utils.partition_by_source_relation(package_name='workday') }}, extract(year from date_day), extract(month from date_day) order by date_day desc) as recent_dom_row,\n sum(case when is_active = true then 1 else 0 end) over (partition by employee_id {{ fivetran_utils.partition_by_source_relation(package_name='workday') }} order by date_day asc rows unbounded preceding) as days_employee_active,\n sum(case when is_active = true then 1 else 0 end) over (partition by worker_id {{ fivetran_utils.partition_by_source_relation(package_name='workday') }} order by date_day asc rows unbounded preceding) as days_worker_active\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\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 end_of_month_history\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_employee_active) as avg_days_as_employee\n from end_of_month_history\n where is_active = true\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_worker_active) as avg_days_as_worker\n from end_of_month_history\n where is_active = true\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", "doc_blocks": [], "language": "sql", "refs": [{"name": "workday__employee_daily_history", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.dbt.date_trunc", "macro.fivetran_utils.partition_by_source_relation", "macro.dbt.current_timestamp"], "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 , extract(year from date_day), extract(month from date_day) order by date_day desc) as recent_dom_row,\n sum(case when is_active = true then 1 else 0 end) over (partition by employee_id order by date_day asc rows unbounded preceding) as days_employee_active,\n sum(case when is_active = true then 1 else 0 end) over (partition by worker_id order by date_day asc rows unbounded preceding) as days_worker_active\n from \"postgres\".\"public_workday_dev\".\"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\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 end_of_month_history\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_employee_active) as avg_days_as_employee\n from end_of_month_history\n where is_active = true\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_worker_active) as avg_days_as_worker\n from end_of_month_history\n where is_active = true\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, "primary_key": ["metrics_month"], "time_spine": null}, "model.workday.workday__employee_daily_history": {"database": "postgres", "schema": "public_workday_dev", "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": "ac90b38d487bc54df5ea5f1e6c71a3fa20e72cd30f9389b54bba9ddd5cbdea91"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "table", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "date_day": {"name": "date_day", "description": "Date on which the account had these field values.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.source_relation"]}, "history_unique_key": {"name": "history_unique_key", "description": "Surrogate key hashed on 'employee_id' and '_fivetran_date'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.employee_id"]}, "_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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_date"]}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.worker_id"]}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.position_id"]}, "_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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_start"]}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_end"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.end_employment_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.end_employment_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.pay_through_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.pay_through_date"]}, "academic_tenure_date": {"name": "academic_tenure_date", "description": "Date when academic tenure is achieved.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.academic_tenure_date"]}, "active": {"name": "active", "description": "Flag indicating the current active status of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.active"]}, "active_status_date": {"name": "active_status_date", "description": "Date when the active status was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.active_status_date"]}, "annual_currency_summary_currency": {"name": "annual_currency_summary_currency", "description": "Currency used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.annual_currency_summary_currency"]}, "annual_currency_summary_frequency": {"name": "annual_currency_summary_frequency", "description": "Frequency of currency for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.annual_currency_summary_frequency"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.annual_currency_summary_primary_compensation_basis"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.annual_currency_summary_total_base_pay"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.annual_currency_summary_total_salary_and_allowances"]}, "annual_summary_currency": {"name": "annual_summary_currency", "description": "Currency used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.annual_summary_currency"]}, "annual_summary_frequency": {"name": "annual_summary_frequency", "description": "Frequency of currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.annual_summary_frequency"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.annual_summary_primary_compensation_basis"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.annual_summary_total_base_pay"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.annual_summary_total_salary_and_allowances"]}, "benefits_service_date": {"name": "benefits_service_date", "description": "Date when the worker's benefits service starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.benefits_service_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.company_service_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.compensation_effective_date"]}, "compensation_grade_id": {"name": "compensation_grade_id", "description": "Identifier for the compensation grade.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.compensation_grade_id"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.compensation_grade_profile_id"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.continuous_service_date"]}, "contract_assignment_details": {"name": "contract_assignment_details", "description": "Details of the worker's contract assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.contract_assignment_details"]}, "contract_currency_code": {"name": "contract_currency_code", "description": "Currency code used for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.contract_currency_code"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.contract_end_date"]}, "contract_frequency_name": {"name": "contract_frequency_name", "description": "Frequency of payment for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.contract_frequency_name"]}, "contract_pay_rate": {"name": "contract_pay_rate", "description": "Pay rate associated with the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.contract_pay_rate"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.contract_vendor_name"]}, "date_entered_workforce": {"name": "date_entered_workforce", "description": "Date when the worker entered the workforce.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.date_entered_workforce"]}, "days_unemployed": {"name": "days_unemployed", "description": "Number of days the worker has been unemployed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.days_unemployed"]}, "eligible_for_hire": {"name": "eligible_for_hire", "description": "Flag indicating whether the worker is eligible for hire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.eligible_for_hire"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.eligible_for_rehire_on_latest_termination"]}, "employee_compensation_currency": {"name": "employee_compensation_currency", "description": "Currency code used for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.employee_compensation_currency"]}, "employee_compensation_frequency": {"name": "employee_compensation_frequency", "description": "Frequency of payment for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.employee_compensation_frequency"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.employee_compensation_primary_compensation_basis"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.employee_compensation_total_base_pay"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.employee_compensation_total_salary_and_allowances"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.end_employment_date"]}, "expected_date_of_return": {"name": "expected_date_of_return", "description": "Expected date of the worker's return.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.expected_date_of_return"]}, "expected_retirement_date": {"name": "expected_retirement_date", "description": "Expected date of the worker's retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.expected_retirement_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.first_day_of_work"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.has_international_assignment"]}, "hire_date": {"name": "hire_date", "description": "The date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hire_date"]}, "hire_reason": {"name": "hire_reason", "description": "The reason for hiring the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hire_reason"]}, "is_hire_rescinded": {"name": "is_hire_rescinded", "description": "Flag indicating whether the worker's hire was rescinded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hire_rescinded"]}, "home_country": {"name": "home_country", "description": "The home country of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.home_country"]}, "hourly_frequency_currency": {"name": "hourly_frequency_currency", "description": "Currency code used for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hourly_frequency_currency"]}, "hourly_frequency_frequency": {"name": "hourly_frequency_frequency", "description": "Frequency of payment for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hourly_frequency_frequency"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hourly_frequency_primary_compensation_basis"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hourly_frequency_total_base_pay"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hourly_frequency_total_salary_and_allowances"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.last_datefor_which_paid"]}, "local_termination_reason": {"name": "local_termination_reason", "description": "The reason for local termination of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.local_termination_reason"]}, "months_continuous_prior_employment": {"name": "months_continuous_prior_employment", "description": "Number of months of continuous prior employment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.months_continuous_prior_employment"]}, "is_not_returning": {"name": "is_not_returning", "description": "Flag indicating whether the worker is not returning.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.not_returning"]}, "original_hire_date": {"name": "original_hire_date", "description": "The original date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.original_hire_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.pay_group_frequency_currency"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.pay_group_frequency_frequency"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.pay_group_frequency_primary_compensation_basis"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.pay_group_frequency_total_base_pay"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.pay_group_frequency_total_salary_and_allowances"]}, "pay_through_date": {"name": "pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.pay_through_date"]}, "primary_termination_category": {"name": "primary_termination_category", "description": "The primary termination category for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.primary_termination_category"]}, "primary_termination_reason": {"name": "primary_termination_reason", "description": "The primary termination reason for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.primary_termination_reason"]}, "probation_end_date": {"name": "probation_end_date", "description": "The date when the worker's probation ends.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.probation_end_date"]}, "probation_start_date": {"name": "probation_start_date", "description": "The date when the worker's probation starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.probation_start_date"]}, "reason_reference_id": {"name": "reason_reference_id", "description": "The reference ID for the termination reason.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.reason_reference_id"]}, "is_regrettable_termination": {"name": "is_regrettable_termination", "description": "Flag indicating whether the worker's termination is regrettable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.regrettable_termination"]}, "is_rehire": {"name": "is_rehire", "description": "Flag indicating whether the worker is eligible for rehire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.rehire"]}, "resignation_date": {"name": "resignation_date", "description": "The date when the worker resigned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.resignation_date"]}, "is_retired": {"name": "is_retired", "description": "Flag indicating whether the worker is retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.retired"]}, "retirement_date": {"name": "retirement_date", "description": "The date when the worker retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.retirement_date"]}, "retirement_eligibility_date": {"name": "retirement_eligibility_date", "description": "The date when the worker becomes eligible for retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.retirement_eligibility_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.return_unknown"]}, "seniority_date": {"name": "seniority_date", "description": "The date when the worker's seniority is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.seniority_date"]}, "severance_date": {"name": "severance_date", "description": "The date when the worker's severance is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.severance_date"]}, "is_terminated": {"name": "is_terminated", "description": "Has the worker been terminated?", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.is_terminated"]}, "termination_date": {"name": "termination_date", "description": "The date when the worker is terminated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.termination_date"]}, "is_termination_involuntary": {"name": "is_termination_involuntary", "description": "Flag indicating whether the termination is involuntary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.termination_involuntary"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.termination_last_day_of_work"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.time_off_service_date"]}, "universal_id": {"name": "universal_id", "description": "The universal ID associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.universal_id"]}, "user_id": {"name": "user_id", "description": "The identifier for the user associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.user_id"]}, "vesting_date": {"name": "vesting_date", "description": "The date when the worker's vesting starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.vesting_date"]}, "worker_code": {"name": "worker_code", "description": "The code associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.worker_code"]}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.effective_date"]}, "position_start_date": {"name": "position_start_date", "description": "The start date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.start_date"]}, "position_end_date": {"name": "position_end_date", "description": "The end date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.end_date"]}, "position_location": {"name": "position_location", "description": "The position location of the employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.position_location"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.exclude_from_head_count"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.fte_percent"]}, "is_job_exempt": {"name": "is_job_exempt", "description": "Indicates whether the job is exempt from certain regulations.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_exempt"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.specify_paid_fte"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.specify_working_fte"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.work_shift_required"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.academic_pay_setup_data_annual_work_period_end_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.academic_pay_setup_data_annual_work_period_start_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.academic_pay_setup_data_annual_work_period_work_percent_of_year"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.academic_pay_setup_data_disbursement_plan_period_end_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.academic_pay_setup_data_disbursement_plan_period_start_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.business_site_summary_display_language"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.business_site_summary_local"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.business_site_summary_location_type"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.business_site_summary_name"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.business_site_summary_scheduled_weekly_hours"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.business_site_summary_time_profile"]}, "business_title": {"name": "business_title", "description": "The business title associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.business_title"]}, "is_critical_job": {"name": "is_critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.critical_job"]}, "default_weekly_hours": {"name": "default_weekly_hours", "description": "The default weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.default_weekly_hours"]}, "difficulty_to_fill": {"name": "difficulty_to_fill", "description": "Indication of the difficulty level in filling the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.difficulty_to_fill"]}, "position_effective_date": {"name": "position_effective_date", "description": "The position effective date for the employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.position_effective_date"]}, "employee_type": {"name": "employee_type", "description": "The type of employee associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.employee_type"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.expected_assignment_end_date"]}, "external_employee": {"name": "external_employee", "description": "Flag indicating whether the worker is an external employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.external_employee"]}, "federal_withholding_fein": {"name": "federal_withholding_fein", "description": "The Federal Employer Identification Number (FEIN) for federal withholding.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.federal_withholding_fein"]}, "frequency": {"name": "frequency", "description": "The frequency associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.frequency"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.headcount_restriction_code"]}, "host_country": {"name": "host_country", "description": "The host country associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.host_country"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.international_assignment_type"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.is_primary_job"]}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_profile_id"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.management_level_code"]}, "paid_fte": {"name": "paid_fte", "description": "The paid full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.paid_fte"]}, "pay_group": {"name": "pay_group", "description": "The pay group associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.pay_group"]}, "pay_rate": {"name": "pay_rate", "description": "The pay rate associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.pay_rate"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.pay_rate_type"]}, "payroll_entity": {"name": "payroll_entity", "description": "The payroll entity associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.payroll_entity"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.payroll_file_number"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.regular_paid_equivalent_hours"]}, "scheduled_weekly_hours": {"name": "scheduled_weekly_hours", "description": "The scheduled weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.scheduled_weekly_hours"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.start_international_assignment_reason"]}, "work_hours_profile": {"name": "work_hours_profile", "description": "The work hours profile associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.work_hours_profile"]}, "work_shift": {"name": "work_shift", "description": "The work shift associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.work_shift"]}, "work_space": {"name": "work_space", "description": "The work space associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.work_space"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.worker_hours_profile_classification"]}, "working_fte": {"name": "working_fte", "description": "The working full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.working_fte"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.working_time_frequency"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.working_time_unit"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.working_time_value"]}, "additional_nationality": {"name": "additional_nationality", "description": "Additional nationality associated with the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.additional_nationality"]}, "blood_type": {"name": "blood_type", "description": "The blood type of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.blood_type"]}, "citizenship_status": {"name": "citizenship_status", "description": "The citizenship status of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.citizenship_status"]}, "city_of_birth": {"name": "city_of_birth", "description": "The city of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.city_of_birth"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.city_of_birth_code"]}, "country_of_birth": {"name": "country_of_birth", "description": "The country of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.country_of_birth"]}, "date_of_birth": {"name": "date_of_birth", "description": "The date of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.date_of_birth"]}, "date_of_death": {"name": "date_of_death", "description": "The date of death of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.date_of_death"]}, "gender": {"name": "gender", "description": "The gender of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.gender"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hispanic_or_latino"]}, "hukou_locality": {"name": "hukou_locality", "description": "The locality associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hukou_locality"]}, "hukou_postal_code": {"name": "hukou_postal_code", "description": "The postal code associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hukou_postal_code"]}, "hukou_region": {"name": "hukou_region", "description": "The region associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hukou_region"]}, "hukou_subregion": {"name": "hukou_subregion", "description": "The subregion associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hukou_subregion"]}, "hukou_type": {"name": "hukou_type", "description": "The type of Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hukou_type"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday_history/workday_history.yml", "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "table", "enabled": true, "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1782422567.678849, "relation_name": "\"postgres\".\"public_workday_dev\".\"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 and flags.WHICH in ('run', 'build') %}\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 results = run_query(first_last_date_query) %}\n {% set start_date_raw = results.columns[0][0] %}\n {% set last_date_raw = results.columns[1][0] %}\n {% set start_date = start_date_raw|string if start_date_raw is not none else var('employee_history_start_date','2025-03-01') %}\n {% set last_date = last_date_raw|string if last_date_raw is not none else modules.datetime.datetime.today().strftime('%Y-%m-%d') %}\n {% set spine_start = \"greatest(cast('\" ~ start_date[0:10] ~ \"' as date), cast('\" ~ var('employee_history_start_date','2025-03-01') ~ \"' as date))\" %}\n {% set spine_end = \"cast('\" ~ last_date[0:10] ~ \"' as date)\" %}\n\n{# During compile/test, creates range going back 1 year #}\n{% else %}\n {% set spine_start = dbt.dateadd(\"year\", \"-1\", \"current_date\") %}\n {% set spine_end = dbt.dateadd(\"day\", \"-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 = spine_start,\n end_date = spine_end\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", "doc_blocks": [], "language": "sql", "refs": [{"name": "int_workday__employee_history", "package": null, "version": null}, {"name": "int_workday__employee_history", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt_utils.date_spine", "macro.dbt_utils.generate_surrogate_key", "macro.dbt.type_timestamp"], "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\".\"public_workday_dev\".\"int_workday__employee_history\"\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 + 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 \n \n\n )\n\n select *\n from unioned\n where generated_number <= 364\n order by generated_number\n\n\n\n),\n\nall_periods as (\n\n select (\n \n\n \n\n current_date + ((interval '1 year') * (-1))\n\n + ((interval '1 day') * (row_number() over (order by generated_number) - 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 <= \n\n current_date + ((interval '1 day') * (-1))\n\n\n\n)\n\nselect * from filtered\n\n\n),\n\nemployee_history as (\n\n select * \n from \"postgres\".\"public_workday_dev\".\"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, "primary_key": ["employee_day_id"], "time_spine": null}, "model.workday.stg_workday__worker_position_history": {"database": "postgres", "schema": "public_workday_dev", "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": "a1a5040ed300df857b1c2fd007454926a4a6fcb14e3f9384ab3aed1a8ce83c75"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.worker_id"]}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.position_id"]}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.source_relation"]}, "_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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_start"]}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_end"]}, "_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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_date"]}, "_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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_active"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.academic_pay_setup_data_annual_work_period_end_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.academic_pay_setup_data_annual_work_period_start_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.academic_pay_setup_data_annual_work_period_work_percent_of_year"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.academic_pay_setup_data_disbursement_plan_period_end_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.academic_pay_setup_data_disbursement_plan_period_start_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.business_site_summary_display_language"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.business_site_summary_local"]}, "position_location": {"name": "position_location", "description": "The location of the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.business_site_summary_location"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.business_site_summary_location_type"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.business_site_summary_name"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.business_site_summary_scheduled_weekly_hours"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.business_site_summary_time_profile"]}, "business_title": {"name": "business_title", "description": "The business title associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.business_title"]}, "is_critical_job": {"name": "is_critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.critical_job"]}, "default_weekly_hours": {"name": "default_weekly_hours", "description": "The default weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.default_weekly_hours"]}, "difficulty_to_fill": {"name": "difficulty_to_fill", "description": "Indication of the difficulty level in filling the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.difficulty_to_fill"]}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.effective_date"]}, "employee_type": {"name": "employee_type", "description": "The type of employee associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.employee_type"]}, "position_end_date": {"name": "position_end_date", "description": "The end date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.end_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.end_employment_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.exclude_from_head_count"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.expected_assignment_end_date"]}, "external_employee": {"name": "external_employee", "description": "Flag indicating whether the worker is an external employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.external_employee"]}, "federal_withholding_fein": {"name": "federal_withholding_fein", "description": "The Federal Employer Identification Number (FEIN) for federal withholding.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.federal_withholding_fein"]}, "frequency": {"name": "frequency", "description": "The frequency associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.frequency"]}, "fte_percent": {"name": "fte_percent", "description": "The full-time equivalent (FTE) percentage associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.full_time_equivalent_percentage"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.headcount_restriction_code"]}, "home_country": {"name": "home_country", "description": "The home country of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.home_country"]}, "host_country": {"name": "host_country", "description": "The host country associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.host_country"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.international_assignment_type"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.is_primary_job"]}, "is_job_exempt": {"name": "is_job_exempt", "description": "Indicates whether the job is exempt from certain regulations.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_exempt"]}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_profile_id"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.management_level_code"]}, "paid_fte": {"name": "paid_fte", "description": "The paid full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.paid_fte"]}, "pay_group": {"name": "pay_group", "description": "The pay group associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.pay_group"]}, "pay_rate": {"name": "pay_rate", "description": "The pay rate associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.pay_rate"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.pay_rate_type"]}, "pay_through_date": {"name": "pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.pay_through_date"]}, "payroll_entity": {"name": "payroll_entity", "description": "The payroll entity associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.payroll_entity"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.payroll_file_number"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.regular_paid_equivalent_hours"]}, "scheduled_weekly_hours": {"name": "scheduled_weekly_hours", "description": "The scheduled weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.scheduled_weekly_hours"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.specify_paid_fte"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.specify_working_fte"]}, "position_start_date": {"name": "position_start_date", "description": "The start date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.start_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.start_international_assignment_reason"]}, "work_hours_profile": {"name": "work_hours_profile", "description": "The work hours profile associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.work_hours_profile"]}, "work_shift": {"name": "work_shift", "description": "The work shift associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.work_shift"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.work_shift_required"]}, "work_space": {"name": "work_space", "description": "The work space associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.work_space"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.worker_hours_profile_classification"]}, "working_fte": {"name": "working_fte", "description": "The working full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.working_fte"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.working_time_frequency"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.working_time_unit"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.working_time_value"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday_history/staging/stg_workday_history.yml", "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "ephemeral", "enabled": true, "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1782422567.7385201, "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 {{ fivetran_utils.apply_source_relation(package_name='workday') }}\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", "doc_blocks": [], "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": [], "functions": [], "depends_on": {"macros": ["macro.workday.get_worker_position_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.apply_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\".\"public_workday_dev\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n academic_pay_setup_data_annual_work_period_end_date as academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date as academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year as academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date as academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date as academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language as business_site_summary_display_language,\n business_site_summary_local as business_site_summary_local,\n business_site_summary_location as business_site_summary_location,\n business_site_summary_location_type as business_site_summary_location_type,\n business_site_summary_name as business_site_summary_name,\n business_site_summary_scheduled_weekly_hours as business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile as business_site_summary_time_profile,\n business_title as business_title,\n critical_job as critical_job,\n default_weekly_hours as default_weekly_hours,\n difficulty_to_fill as difficulty_to_fill,\n effective_date as effective_date,\n employee_type as employee_type,\n end_date as end_date,\n end_employment_date as end_employment_date,\n exclude_from_head_count as exclude_from_head_count,\n expected_assignment_end_date as expected_assignment_end_date,\n external_employee as external_employee,\n federal_withholding_fein as federal_withholding_fein,\n frequency as frequency,\n full_time_equivalent_percentage as full_time_equivalent_percentage,\n headcount_restriction_code as headcount_restriction_code,\n home_country as home_country,\n host_country as host_country,\n international_assignment_type as international_assignment_type,\n is_primary_job as is_primary_job,\n job_exempt as job_exempt,\n job_profile_id as job_profile_id,\n management_level_code as management_level_code,\n paid_fte as paid_fte,\n pay_group as pay_group,\n pay_rate as pay_rate,\n pay_rate_type as pay_rate_type,\n pay_through_date as pay_through_date,\n payroll_entity as payroll_entity,\n payroll_file_number as payroll_file_number,\n position_id as position_id,\n regular_paid_equivalent_hours as regular_paid_equivalent_hours,\n scheduled_weekly_hours as scheduled_weekly_hours,\n specify_paid_fte as specify_paid_fte,\n specify_working_fte as specify_working_fte,\n start_date as start_date,\n start_international_assignment_reason as start_international_assignment_reason,\n work_hours_profile as work_hours_profile,\n work_shift as work_shift,\n work_shift_required as work_shift_required,\n work_space as work_space,\n worker_hours_profile_classification as worker_hours_profile_classification,\n worker_id as worker_id,\n working_fte as working_fte,\n working_time_frequency as working_time_frequency,\n working_time_unit as working_time_unit,\n working_time_value as working_time_value\n\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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, "primary_key": ["history_unique_key"], "time_spine": null}, "model.workday.stg_workday__worker_position_organization_history": {"database": "postgres", "schema": "public_workday_dev", "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": "74eb364dae67f37c2e28f763f3d81e3398805f07e60647491b77e8d42e8ea603"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.worker_id"]}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.position_id"]}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.organization_id"]}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.source_relation"]}, "_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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_start"]}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_end"]}, "_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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_date"]}, "_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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_active"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}, "index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.index"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.date_of_pay_group_assignment"]}, "primary_business_site": {"name": "primary_business_site", "description": "Primary location a worker's business is situated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.primary_business_site"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.used_in_change_organization_assignments"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday_history/staging/stg_workday_history.yml", "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "ephemeral", "enabled": true, "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1782422567.7404673, "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 {{ fivetran_utils.apply_source_relation(package_name='workday') }}\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", "doc_blocks": [], "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": [], "functions": [], "depends_on": {"macros": ["macro.workday.get_worker_position_organization_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.apply_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\".\"public_workday_dev\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n index as index,\n position_id as position_id,\n worker_id as worker_id,\n date_of_pay_group_assignment as date_of_pay_group_assignment,\n organization_id as organization_id,\n primary_business_site as primary_business_site,\n used_in_change_organization_assignments as used_in_change_organization_assignments\n\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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, "primary_key": ["history_unique_key"], "time_spine": null}, "model.workday.stg_workday__personal_information_history": {"database": "postgres", "schema": "public_workday_dev", "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": "24651b4fb598400a57ce5a59e3d08888f183cd89ea2fcca9a758e499ed2ad512"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.worker_id"]}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.source_relation"]}, "_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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_start"]}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_end"]}, "_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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_date"]}, "_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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_active"]}, "type": {"name": "type", "description": "The type of personal information record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.personal_information_type"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}, "additional_nationality": {"name": "additional_nationality", "description": "Additional nationality associated with the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.additional_nationality"]}, "blood_type": {"name": "blood_type", "description": "The blood type of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.blood_type"]}, "citizenship_status": {"name": "citizenship_status", "description": "The citizenship status of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.citizenship_status"]}, "city_of_birth": {"name": "city_of_birth", "description": "The city of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.city_of_birth"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.city_of_birth_code"]}, "country_of_birth": {"name": "country_of_birth", "description": "The country of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.country_of_birth"]}, "date_of_birth": {"name": "date_of_birth", "description": "The date of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.date_of_birth"]}, "date_of_death": {"name": "date_of_death", "description": "The date of death of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.date_of_death"]}, "gender": {"name": "gender", "description": "The gender of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.gender"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hispanic_or_latino"]}, "hukou_locality": {"name": "hukou_locality", "description": "The locality associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hukou_locality"]}, "hukou_postal_code": {"name": "hukou_postal_code", "description": "The postal code associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hukou_postal_code"]}, "hukou_region": {"name": "hukou_region", "description": "The region associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hukou_region"]}, "hukou_subregion": {"name": "hukou_subregion", "description": "The subregion associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hukou_subregion"]}, "hukou_type": {"name": "hukou_type", "description": "The type of Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hukou_type"]}, "last_medical_exam_date": {"name": "last_medical_exam_date", "description": "The date of the last medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.last_medical_exam_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.last_medical_exam_valid_to"]}, "is_local_hukou": {"name": "is_local_hukou", "description": "Flag indicating whether the Hukou is local.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.local_hukou"]}, "marital_status": {"name": "marital_status", "description": "The marital status of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.marital_status"]}, "marital_status_date": {"name": "marital_status_date", "description": "The date of the marital status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.marital_status_date"]}, "medical_exam_notes": {"name": "medical_exam_notes", "description": "Notes from the medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.medical_exam_notes"]}, "native_region": {"name": "native_region", "description": "The native region of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.native_region"]}, "native_region_code": {"name": "native_region_code", "description": "The code of the native region.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.native_region_code"]}, "personnel_file_agency": {"name": "personnel_file_agency", "description": "The agency associated with the personnel file.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.personnel_file_agency"]}, "political_affiliation": {"name": "political_affiliation", "description": "The political affiliation of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.political_affiliation"]}, "primary_nationality": {"name": "primary_nationality", "description": "The primary nationality of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.primary_nationality"]}, "region_of_birth": {"name": "region_of_birth", "description": "The region of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.region_of_birth"]}, "region_of_birth_code": {"name": "region_of_birth_code", "description": "The code of the region of birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.region_of_birth_code"]}, "religion": {"name": "religion", "description": "The religion of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.religion"]}, "social_benefit": {"name": "social_benefit", "description": "The social benefit associated with the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.social_benefit"]}, "is_tobacco_use": {"name": "is_tobacco_use", "description": "Flag indicating whether the individual uses tobacco.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.tobacco_use"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday_history/staging/stg_workday_history.yml", "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "ephemeral", "enabled": true, "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1782422567.727072, "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 {{ fivetran_utils.apply_source_relation(package_name='workday') }}\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", "doc_blocks": [], "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": [], "functions": [], "depends_on": {"macros": ["macro.workday.get_personal_information_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.apply_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\".\"public_workday_dev\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n additional_nationality as additional_nationality,\n blood_type as blood_type,\n citizenship_status as citizenship_status,\n city_of_birth as city_of_birth,\n city_of_birth_code as city_of_birth_code,\n country_of_birth as country_of_birth,\n date_of_birth as date_of_birth,\n date_of_death as date_of_death,\n gender as gender,\n hispanic_or_latino as hispanic_or_latino,\n hukou_locality as hukou_locality,\n hukou_postal_code as hukou_postal_code,\n hukou_region as hukou_region,\n hukou_subregion as hukou_subregion,\n hukou_type as hukou_type,\n id as id,\n last_medical_exam_date as last_medical_exam_date,\n last_medical_exam_valid_to as last_medical_exam_valid_to,\n local_hukou as local_hukou,\n marital_status as marital_status,\n marital_status_date as marital_status_date,\n medical_exam_notes as medical_exam_notes,\n native_region as native_region,\n native_region_code as native_region_code,\n personnel_file_agency as personnel_file_agency,\n political_affiliation as political_affiliation,\n primary_nationality as primary_nationality,\n region_of_birth as region_of_birth,\n region_of_birth_code as region_of_birth_code,\n religion as religion,\n social_benefit as social_benefit,\n tobacco_use as tobacco_use,\n type as type\n\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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, "primary_key": ["history_unique_key"], "time_spine": null}, "model.workday.stg_workday__worker_history": {"database": "postgres", "schema": "public_workday_dev", "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": "f9a8e8864e0c0cf9f5ec8d436e737ad4a49ed074a555f6893902778379da5b54"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.worker_id"]}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.source_relation"]}, "_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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_start"]}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_end"]}, "_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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_date"]}, "_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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_active"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}, "academic_tenure_date": {"name": "academic_tenure_date", "description": "Date when academic tenure is achieved.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.academic_tenure_date"]}, "is_active": {"name": "is_active", "description": "Flag indicating the current active status of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.active"]}, "active_status_date": {"name": "active_status_date", "description": "Date when the active status was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.active_status_date"]}, "annual_currency_summary_currency": {"name": "annual_currency_summary_currency", "description": "Currency used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.annual_currency_summary_currency"]}, "annual_currency_summary_frequency": {"name": "annual_currency_summary_frequency", "description": "Frequency of currency for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.annual_currency_summary_frequency"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.annual_currency_summary_primary_compensation_basis"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.annual_currency_summary_total_base_pay"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.annual_currency_summary_total_salary_and_allowances"]}, "annual_summary_currency": {"name": "annual_summary_currency", "description": "Currency used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.annual_summary_currency"]}, "annual_summary_frequency": {"name": "annual_summary_frequency", "description": "Frequency of currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.annual_summary_frequency"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.annual_summary_primary_compensation_basis"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.annual_summary_total_base_pay"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.annual_summary_total_salary_and_allowances"]}, "benefits_service_date": {"name": "benefits_service_date", "description": "Date when the worker's benefits service starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.benefits_service_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.company_service_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.compensation_effective_date"]}, "compensation_grade_id": {"name": "compensation_grade_id", "description": "Identifier for the compensation grade.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.compensation_grade_id"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.compensation_grade_profile_id"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.continuous_service_date"]}, "contract_assignment_details": {"name": "contract_assignment_details", "description": "Details of the worker's contract assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.contract_assignment_details"]}, "contract_currency_code": {"name": "contract_currency_code", "description": "Currency code used for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.contract_currency_code"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.contract_end_date"]}, "contract_frequency_name": {"name": "contract_frequency_name", "description": "Frequency of payment for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.contract_frequency_name"]}, "contract_pay_rate": {"name": "contract_pay_rate", "description": "Pay rate associated with the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.contract_pay_rate"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.contract_vendor_name"]}, "date_entered_workforce": {"name": "date_entered_workforce", "description": "Date when the worker entered the workforce.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.date_entered_workforce"]}, "days_unemployed": {"name": "days_unemployed", "description": "Number of days the worker has been unemployed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.days_unemployed"]}, "eligible_for_hire": {"name": "eligible_for_hire", "description": "Flag indicating whether the worker is eligible for hire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.eligible_for_hire"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.eligible_for_rehire_on_latest_termination"]}, "employee_compensation_currency": {"name": "employee_compensation_currency", "description": "Currency code used for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.employee_compensation_currency"]}, "employee_compensation_frequency": {"name": "employee_compensation_frequency", "description": "Frequency of payment for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.employee_compensation_frequency"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.employee_compensation_primary_compensation_basis"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.employee_compensation_total_base_pay"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.employee_compensation_total_salary_and_allowances"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.end_employment_date"]}, "expected_date_of_return": {"name": "expected_date_of_return", "description": "Expected date of the worker's return.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.expected_date_of_return"]}, "expected_retirement_date": {"name": "expected_retirement_date", "description": "Expected date of the worker's retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.expected_retirement_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.first_day_of_work"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.has_international_assignment"]}, "hire_date": {"name": "hire_date", "description": "The date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hire_date"]}, "hire_reason": {"name": "hire_reason", "description": "The reason for hiring the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hire_reason"]}, "is_hire_rescinded": {"name": "is_hire_rescinded", "description": "Flag indicating whether the worker's hire was rescinded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hire_rescinded"]}, "home_country": {"name": "home_country", "description": "The home country of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.home_country"]}, "hourly_frequency_currency": {"name": "hourly_frequency_currency", "description": "Currency code used for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hourly_frequency_currency"]}, "hourly_frequency_frequency": {"name": "hourly_frequency_frequency", "description": "Frequency of payment for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hourly_frequency_frequency"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hourly_frequency_primary_compensation_basis"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hourly_frequency_total_base_pay"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hourly_frequency_total_salary_and_allowances"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.last_datefor_which_paid"]}, "local_termination_reason": {"name": "local_termination_reason", "description": "The reason for local termination of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.local_termination_reason"]}, "months_continuous_prior_employment": {"name": "months_continuous_prior_employment", "description": "Number of months of continuous prior employment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.months_continuous_prior_employment"]}, "is_not_returning": {"name": "is_not_returning", "description": "Flag indicating whether the worker is not returning.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.not_returning"]}, "original_hire_date": {"name": "original_hire_date", "description": "The original date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.original_hire_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.pay_group_frequency_currency"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.pay_group_frequency_frequency"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.pay_group_frequency_primary_compensation_basis"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.pay_group_frequency_total_base_pay"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.pay_group_frequency_total_salary_and_allowances"]}, "pay_through_date": {"name": "pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.pay_through_date"]}, "primary_termination_category": {"name": "primary_termination_category", "description": "The primary termination category for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.primary_termination_category"]}, "primary_termination_reason": {"name": "primary_termination_reason", "description": "The primary termination reason for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.primary_termination_reason"]}, "probation_end_date": {"name": "probation_end_date", "description": "The date when the worker's probation ends.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.probation_end_date"]}, "probation_start_date": {"name": "probation_start_date", "description": "The date when the worker's probation starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.probation_start_date"]}, "reason_reference_id": {"name": "reason_reference_id", "description": "The reference ID for the termination reason.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.reason_reference_id"]}, "is_regrettable_termination": {"name": "is_regrettable_termination", "description": "Flag indicating whether the worker's termination is regrettable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.regrettable_termination"]}, "is_rehire": {"name": "is_rehire", "description": "Flag indicating whether the worker is eligible for rehire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.rehire"]}, "resignation_date": {"name": "resignation_date", "description": "The date when the worker resigned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.resignation_date"]}, "is_retired": {"name": "is_retired", "description": "Flag indicating whether the worker is retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.retired"]}, "retirement_date": {"name": "retirement_date", "description": "The date when the worker retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.retirement_date"]}, "retirement_eligibility_date": {"name": "retirement_eligibility_date", "description": "The date when the worker becomes eligible for retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.retirement_eligibility_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.return_unknown"]}, "seniority_date": {"name": "seniority_date", "description": "The date when the worker's seniority is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.seniority_date"]}, "severance_date": {"name": "severance_date", "description": "The date when the worker's severance is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.severance_date"]}, "is_terminated": {"name": "is_terminated", "description": "Has the worker been terminated?", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.is_terminated"]}, "termination_date": {"name": "termination_date", "description": "The date when the worker is terminated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.termination_date"]}, "is_termination_involuntary": {"name": "is_termination_involuntary", "description": "Flag indicating whether the termination is involuntary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.termination_involuntary"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.termination_last_day_of_work"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.time_off_service_date"]}, "universal_id": {"name": "universal_id", "description": "The universal ID associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.universal_id"]}, "user_id": {"name": "user_id", "description": "The identifier for the user associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.user_id"]}, "vesting_date": {"name": "vesting_date", "description": "The date when the worker's vesting starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.vesting_date"]}, "worker_code": {"name": "worker_code", "description": "The code associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.worker_code"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday_history/staging/stg_workday_history.yml", "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "ephemeral", "enabled": true, "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1782422567.7336996, "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 {{ fivetran_utils.apply_source_relation(package_name='workday') }}\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 {% set string_dtypes = ['char', 'string'] %}\n {% for col in adapter.get_columns_in_relation(ref('stg_workday__worker_base')) %}\n {% if col.name.lower() in ['annual_currency_summary_primary_compensation_basis', 'annual_currency_summary_total_base_pay', 'annual_currency_summary_total_salary_and_allowances'] %}\n {% if target.type == 'databricks' %}\n {% set ns = namespace(is_str=false) %}\n {% for stype in string_dtypes %}\n {% if stype in col.dtype.lower() %}{% set ns.is_str = true %}{% endif %}\n {% endfor %}\n {% set is_str = ns.is_str %}\n {% else %}\n {% set is_str = col.is_string() %}\n {% endif %}\n {% if is_str %}\n case\n when trim({{ col.name }}) <> ''\n and translate(trim({{ col.name }}), '0123456789.+-eE', '') = ''\n then cast({{ col.name }} as {{ dbt.type_float() }})\n else null\n end as {{ col.name }},\n {% else %}\n {{ col.name }},\n {% endif %}\n {% endif %}\n {% endfor %}\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", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__worker_base", "package": null, "version": null}, {"name": "stg_workday__worker_base", "package": null, "version": null}, {"name": "stg_workday__worker_base", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.workday.get_worker_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.apply_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\".\"public_workday_dev\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n academic_tenure_date as academic_tenure_date,\n active as active,\n active_status_date as active_status_date,\n annual_currency_summary_currency as annual_currency_summary_currency,\n annual_currency_summary_frequency as annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis as annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay as annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances as annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency as annual_summary_currency,\n annual_summary_frequency as annual_summary_frequency,\n annual_summary_primary_compensation_basis as annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay as annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances as annual_summary_total_salary_and_allowances,\n benefits_service_date as benefits_service_date,\n company_service_date as company_service_date,\n compensation_effective_date as compensation_effective_date,\n compensation_grade_id as compensation_grade_id,\n compensation_grade_profile_id as compensation_grade_profile_id,\n continuous_service_date as continuous_service_date,\n contract_assignment_details as contract_assignment_details,\n contract_currency_code as contract_currency_code,\n contract_end_date as contract_end_date,\n contract_frequency_name as contract_frequency_name,\n contract_pay_rate as contract_pay_rate,\n contract_vendor_name as contract_vendor_name,\n date_entered_workforce as date_entered_workforce,\n days_unemployed as days_unemployed,\n eligible_for_hire as eligible_for_hire,\n eligible_for_rehire_on_latest_termination as eligible_for_rehire_on_latest_termination,\n employee_compensation_currency as employee_compensation_currency,\n employee_compensation_frequency as employee_compensation_frequency,\n employee_compensation_primary_compensation_basis as employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay as employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances as employee_compensation_total_salary_and_allowances,\n end_employment_date as end_employment_date,\n expected_date_of_return as expected_date_of_return,\n expected_retirement_date as expected_retirement_date,\n first_day_of_work as first_day_of_work,\n has_international_assignment as has_international_assignment,\n hire_date as hire_date,\n hire_reason as hire_reason,\n hire_rescinded as hire_rescinded,\n home_country as home_country,\n hourly_frequency_currency as hourly_frequency_currency,\n hourly_frequency_frequency as hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis as hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay as hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances as hourly_frequency_total_salary_and_allowances,\n id as id,\n last_datefor_which_paid as last_datefor_which_paid,\n local_termination_reason as local_termination_reason,\n months_continuous_prior_employment as months_continuous_prior_employment,\n not_returning as not_returning,\n original_hire_date as original_hire_date,\n pay_group_frequency_currency as pay_group_frequency_currency,\n pay_group_frequency_frequency as pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis as pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay as pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances as pay_group_frequency_total_salary_and_allowances,\n pay_through_date as pay_through_date,\n primary_termination_category as primary_termination_category,\n primary_termination_reason as primary_termination_reason,\n probation_end_date as probation_end_date,\n probation_start_date as probation_start_date,\n reason_reference_id as reason_reference_id,\n regrettable_termination as regrettable_termination,\n rehire as rehire,\n resignation_date as resignation_date,\n retired as retired,\n retirement_date as retirement_date,\n retirement_eligibility_date as retirement_eligibility_date,\n return_unknown as return_unknown,\n seniority_date as seniority_date,\n severance_date as severance_date,\n terminated as terminated,\n termination_date as termination_date,\n termination_involuntary as termination_involuntary,\n termination_last_day_of_work as termination_last_day_of_work,\n time_off_service_date as time_off_service_date,\n universal_id as universal_id,\n user_id as user_id,\n vesting_date as vesting_date,\n worker_code as worker_code\n\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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 \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 annual_currency_summary_primary_compensation_basis,\n \n \n \n \n \n \n \n \n annual_currency_summary_total_base_pay,\n \n \n \n \n \n \n \n \n annual_currency_summary_total_salary_and_allowances,\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 \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 \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 \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 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, "primary_key": ["history_unique_key"], "time_spine": null}, "model.workday.int_workday__employee_history": {"database": "postgres", "schema": "public_workday_dev", "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": "b3c48cd403b0880b5d755bf023bce253011d2a84b18a5208e5be5041c4eca4f6"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "view", "enabled": true, "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1782422566.5715306, "relation_name": "\"postgres\".\"public_workday_dev\".\"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 {{ fivetran_utils.partition_by_source_relation(package_name='workday') }} 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", "doc_blocks": [], "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": [], "functions": [], "depends_on": {"macros": ["macro.dbt.dateadd", "macro.fivetran_utils.partition_by_source_relation", "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\".\"public_workday_dev\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n academic_tenure_date as academic_tenure_date,\n active as active,\n active_status_date as active_status_date,\n annual_currency_summary_currency as annual_currency_summary_currency,\n annual_currency_summary_frequency as annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis as annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay as annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances as annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency as annual_summary_currency,\n annual_summary_frequency as annual_summary_frequency,\n annual_summary_primary_compensation_basis as annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay as annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances as annual_summary_total_salary_and_allowances,\n benefits_service_date as benefits_service_date,\n company_service_date as company_service_date,\n compensation_effective_date as compensation_effective_date,\n compensation_grade_id as compensation_grade_id,\n compensation_grade_profile_id as compensation_grade_profile_id,\n continuous_service_date as continuous_service_date,\n contract_assignment_details as contract_assignment_details,\n contract_currency_code as contract_currency_code,\n contract_end_date as contract_end_date,\n contract_frequency_name as contract_frequency_name,\n contract_pay_rate as contract_pay_rate,\n contract_vendor_name as contract_vendor_name,\n date_entered_workforce as date_entered_workforce,\n days_unemployed as days_unemployed,\n eligible_for_hire as eligible_for_hire,\n eligible_for_rehire_on_latest_termination as eligible_for_rehire_on_latest_termination,\n employee_compensation_currency as employee_compensation_currency,\n employee_compensation_frequency as employee_compensation_frequency,\n employee_compensation_primary_compensation_basis as employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay as employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances as employee_compensation_total_salary_and_allowances,\n end_employment_date as end_employment_date,\n expected_date_of_return as expected_date_of_return,\n expected_retirement_date as expected_retirement_date,\n first_day_of_work as first_day_of_work,\n has_international_assignment as has_international_assignment,\n hire_date as hire_date,\n hire_reason as hire_reason,\n hire_rescinded as hire_rescinded,\n home_country as home_country,\n hourly_frequency_currency as hourly_frequency_currency,\n hourly_frequency_frequency as hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis as hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay as hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances as hourly_frequency_total_salary_and_allowances,\n id as id,\n last_datefor_which_paid as last_datefor_which_paid,\n local_termination_reason as local_termination_reason,\n months_continuous_prior_employment as months_continuous_prior_employment,\n not_returning as not_returning,\n original_hire_date as original_hire_date,\n pay_group_frequency_currency as pay_group_frequency_currency,\n pay_group_frequency_frequency as pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis as pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay as pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances as pay_group_frequency_total_salary_and_allowances,\n pay_through_date as pay_through_date,\n primary_termination_category as primary_termination_category,\n primary_termination_reason as primary_termination_reason,\n probation_end_date as probation_end_date,\n probation_start_date as probation_start_date,\n reason_reference_id as reason_reference_id,\n regrettable_termination as regrettable_termination,\n rehire as rehire,\n resignation_date as resignation_date,\n retired as retired,\n retirement_date as retirement_date,\n retirement_eligibility_date as retirement_eligibility_date,\n return_unknown as return_unknown,\n seniority_date as seniority_date,\n severance_date as severance_date,\n terminated as terminated,\n termination_date as termination_date,\n termination_involuntary as termination_involuntary,\n termination_last_day_of_work as termination_last_day_of_work,\n time_off_service_date as time_off_service_date,\n universal_id as universal_id,\n user_id as user_id,\n vesting_date as vesting_date,\n worker_code as worker_code\n\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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 \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 annual_currency_summary_primary_compensation_basis,\n \n \n \n \n \n \n \n \n annual_currency_summary_total_base_pay,\n \n \n \n \n \n \n \n \n annual_currency_summary_total_salary_and_allowances,\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 \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 \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 \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 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\".\"public_workday_dev\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n academic_pay_setup_data_annual_work_period_end_date as academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date as academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year as academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date as academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date as academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language as business_site_summary_display_language,\n business_site_summary_local as business_site_summary_local,\n business_site_summary_location as business_site_summary_location,\n business_site_summary_location_type as business_site_summary_location_type,\n business_site_summary_name as business_site_summary_name,\n business_site_summary_scheduled_weekly_hours as business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile as business_site_summary_time_profile,\n business_title as business_title,\n critical_job as critical_job,\n default_weekly_hours as default_weekly_hours,\n difficulty_to_fill as difficulty_to_fill,\n effective_date as effective_date,\n employee_type as employee_type,\n end_date as end_date,\n end_employment_date as end_employment_date,\n exclude_from_head_count as exclude_from_head_count,\n expected_assignment_end_date as expected_assignment_end_date,\n external_employee as external_employee,\n federal_withholding_fein as federal_withholding_fein,\n frequency as frequency,\n full_time_equivalent_percentage as full_time_equivalent_percentage,\n headcount_restriction_code as headcount_restriction_code,\n home_country as home_country,\n host_country as host_country,\n international_assignment_type as international_assignment_type,\n is_primary_job as is_primary_job,\n job_exempt as job_exempt,\n job_profile_id as job_profile_id,\n management_level_code as management_level_code,\n paid_fte as paid_fte,\n pay_group as pay_group,\n pay_rate as pay_rate,\n pay_rate_type as pay_rate_type,\n pay_through_date as pay_through_date,\n payroll_entity as payroll_entity,\n payroll_file_number as payroll_file_number,\n position_id as position_id,\n regular_paid_equivalent_hours as regular_paid_equivalent_hours,\n scheduled_weekly_hours as scheduled_weekly_hours,\n specify_paid_fte as specify_paid_fte,\n specify_working_fte as specify_working_fte,\n start_date as start_date,\n start_international_assignment_reason as start_international_assignment_reason,\n work_hours_profile as work_hours_profile,\n work_shift as work_shift,\n work_shift_required as work_shift_required,\n work_space as work_space,\n worker_hours_profile_classification as worker_hours_profile_classification,\n worker_id as worker_id,\n working_fte as working_fte,\n working_time_frequency as working_time_frequency,\n working_time_unit as working_time_unit,\n working_time_value as working_time_value\n\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n additional_nationality as additional_nationality,\n blood_type as blood_type,\n citizenship_status as citizenship_status,\n city_of_birth as city_of_birth,\n city_of_birth_code as city_of_birth_code,\n country_of_birth as country_of_birth,\n date_of_birth as date_of_birth,\n date_of_death as date_of_death,\n gender as gender,\n hispanic_or_latino as hispanic_or_latino,\n hukou_locality as hukou_locality,\n hukou_postal_code as hukou_postal_code,\n hukou_region as hukou_region,\n hukou_subregion as hukou_subregion,\n hukou_type as hukou_type,\n id as id,\n last_medical_exam_date as last_medical_exam_date,\n last_medical_exam_valid_to as last_medical_exam_valid_to,\n local_hukou as local_hukou,\n marital_status as marital_status,\n marital_status_date as marital_status_date,\n medical_exam_notes as medical_exam_notes,\n native_region as native_region,\n native_region_code as native_region_code,\n personnel_file_agency as personnel_file_agency,\n political_affiliation as political_affiliation,\n primary_nationality as primary_nationality,\n region_of_birth as region_of_birth,\n region_of_birth_code as region_of_birth_code,\n religion as religion,\n social_benefit as social_benefit,\n tobacco_use as tobacco_use,\n type as type\n\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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 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\".\"public_workday_dev\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n academic_tenure_date as academic_tenure_date,\n active as active,\n active_status_date as active_status_date,\n annual_currency_summary_currency as annual_currency_summary_currency,\n annual_currency_summary_frequency as annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis as annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay as annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances as annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency as annual_summary_currency,\n annual_summary_frequency as annual_summary_frequency,\n annual_summary_primary_compensation_basis as annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay as annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances as annual_summary_total_salary_and_allowances,\n benefits_service_date as benefits_service_date,\n company_service_date as company_service_date,\n compensation_effective_date as compensation_effective_date,\n compensation_grade_id as compensation_grade_id,\n compensation_grade_profile_id as compensation_grade_profile_id,\n continuous_service_date as continuous_service_date,\n contract_assignment_details as contract_assignment_details,\n contract_currency_code as contract_currency_code,\n contract_end_date as contract_end_date,\n contract_frequency_name as contract_frequency_name,\n contract_pay_rate as contract_pay_rate,\n contract_vendor_name as contract_vendor_name,\n date_entered_workforce as date_entered_workforce,\n days_unemployed as days_unemployed,\n eligible_for_hire as eligible_for_hire,\n eligible_for_rehire_on_latest_termination as eligible_for_rehire_on_latest_termination,\n employee_compensation_currency as employee_compensation_currency,\n employee_compensation_frequency as employee_compensation_frequency,\n employee_compensation_primary_compensation_basis as employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay as employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances as employee_compensation_total_salary_and_allowances,\n end_employment_date as end_employment_date,\n expected_date_of_return as expected_date_of_return,\n expected_retirement_date as expected_retirement_date,\n first_day_of_work as first_day_of_work,\n has_international_assignment as has_international_assignment,\n hire_date as hire_date,\n hire_reason as hire_reason,\n hire_rescinded as hire_rescinded,\n home_country as home_country,\n hourly_frequency_currency as hourly_frequency_currency,\n hourly_frequency_frequency as hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis as hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay as hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances as hourly_frequency_total_salary_and_allowances,\n id as id,\n last_datefor_which_paid as last_datefor_which_paid,\n local_termination_reason as local_termination_reason,\n months_continuous_prior_employment as months_continuous_prior_employment,\n not_returning as not_returning,\n original_hire_date as original_hire_date,\n pay_group_frequency_currency as pay_group_frequency_currency,\n pay_group_frequency_frequency as pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis as pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay as pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances as pay_group_frequency_total_salary_and_allowances,\n pay_through_date as pay_through_date,\n primary_termination_category as primary_termination_category,\n primary_termination_reason as primary_termination_reason,\n probation_end_date as probation_end_date,\n probation_start_date as probation_start_date,\n reason_reference_id as reason_reference_id,\n regrettable_termination as regrettable_termination,\n rehire as rehire,\n resignation_date as resignation_date,\n retired as retired,\n retirement_date as retirement_date,\n retirement_eligibility_date as retirement_eligibility_date,\n return_unknown as return_unknown,\n seniority_date as seniority_date,\n severance_date as severance_date,\n terminated as terminated,\n termination_date as termination_date,\n termination_involuntary as termination_involuntary,\n termination_last_day_of_work as termination_last_day_of_work,\n time_off_service_date as time_off_service_date,\n universal_id as universal_id,\n user_id as user_id,\n vesting_date as vesting_date,\n worker_code as worker_code\n\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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 \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 annual_currency_summary_primary_compensation_basis,\n \n \n \n \n \n \n \n \n annual_currency_summary_total_base_pay,\n \n \n \n \n \n \n \n \n annual_currency_summary_total_salary_and_allowances,\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 \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 \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 \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 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\".\"public_workday_dev\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n academic_pay_setup_data_annual_work_period_end_date as academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date as academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year as academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date as academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date as academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language as business_site_summary_display_language,\n business_site_summary_local as business_site_summary_local,\n business_site_summary_location as business_site_summary_location,\n business_site_summary_location_type as business_site_summary_location_type,\n business_site_summary_name as business_site_summary_name,\n business_site_summary_scheduled_weekly_hours as business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile as business_site_summary_time_profile,\n business_title as business_title,\n critical_job as critical_job,\n default_weekly_hours as default_weekly_hours,\n difficulty_to_fill as difficulty_to_fill,\n effective_date as effective_date,\n employee_type as employee_type,\n end_date as end_date,\n end_employment_date as end_employment_date,\n exclude_from_head_count as exclude_from_head_count,\n expected_assignment_end_date as expected_assignment_end_date,\n external_employee as external_employee,\n federal_withholding_fein as federal_withholding_fein,\n frequency as frequency,\n full_time_equivalent_percentage as full_time_equivalent_percentage,\n headcount_restriction_code as headcount_restriction_code,\n home_country as home_country,\n host_country as host_country,\n international_assignment_type as international_assignment_type,\n is_primary_job as is_primary_job,\n job_exempt as job_exempt,\n job_profile_id as job_profile_id,\n management_level_code as management_level_code,\n paid_fte as paid_fte,\n pay_group as pay_group,\n pay_rate as pay_rate,\n pay_rate_type as pay_rate_type,\n pay_through_date as pay_through_date,\n payroll_entity as payroll_entity,\n payroll_file_number as payroll_file_number,\n position_id as position_id,\n regular_paid_equivalent_hours as regular_paid_equivalent_hours,\n scheduled_weekly_hours as scheduled_weekly_hours,\n specify_paid_fte as specify_paid_fte,\n specify_working_fte as specify_working_fte,\n start_date as start_date,\n start_international_assignment_reason as start_international_assignment_reason,\n work_hours_profile as work_hours_profile,\n work_shift as work_shift,\n work_shift_required as work_shift_required,\n work_space as work_space,\n worker_hours_profile_classification as worker_hours_profile_classification,\n worker_id as worker_id,\n working_fte as working_fte,\n working_time_frequency as working_time_frequency,\n working_time_unit as working_time_unit,\n working_time_value as working_time_value\n\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n additional_nationality as additional_nationality,\n blood_type as blood_type,\n citizenship_status as citizenship_status,\n city_of_birth as city_of_birth,\n city_of_birth_code as city_of_birth_code,\n country_of_birth as country_of_birth,\n date_of_birth as date_of_birth,\n date_of_death as date_of_death,\n gender as gender,\n hispanic_or_latino as hispanic_or_latino,\n hukou_locality as hukou_locality,\n hukou_postal_code as hukou_postal_code,\n hukou_region as hukou_region,\n hukou_subregion as hukou_subregion,\n hukou_type as hukou_type,\n id as id,\n last_medical_exam_date as last_medical_exam_date,\n last_medical_exam_valid_to as last_medical_exam_valid_to,\n local_hukou as local_hukou,\n marital_status as marital_status,\n marital_status_date as marital_status_date,\n medical_exam_notes as medical_exam_notes,\n native_region as native_region,\n native_region_code as native_region_code,\n personnel_file_agency as personnel_file_agency,\n political_affiliation as political_affiliation,\n primary_nationality as primary_nationality,\n region_of_birth as region_of_birth,\n region_of_birth_code as region_of_birth_code,\n religion as religion,\n social_benefit as social_benefit,\n tobacco_use as tobacco_use,\n type as type\n\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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, "primary_key": [], "time_spine": null}, "model.workday.stg_workday__position": {"database": "postgres", "schema": "public_workday_dev", "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": "09a0fdeb16acf5108668804faf6afb574117004b57e8fc4bb9da4bc78b29dd5b"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.source_relation"]}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.position_id"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.academic_tenure_eligible"]}, "availability_date": {"name": "availability_date", "description": "Date when the organization becomes available.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.availability_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.available_for_hire"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.available_for_overlap"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.available_for_recruiting"]}, "is_closed": {"name": "is_closed", "description": "Flag indicating whether the position is closed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.closed"]}, "compensation_grade_code": {"name": "compensation_grade_code", "description": "Code associated with the compensation grade of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.compensation_grade_code"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.compensation_grade_profile_code"]}, "compensation_package_code": {"name": "compensation_package_code", "description": "Code associated with the compensation package of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.compensation_package_code"]}, "compensation_step_code": {"name": "compensation_step_code", "description": "Code associated with the compensation step of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.compensation_step_code"]}, "is_critical_job": {"name": "is_critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.critical_job"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.difficulty_to_fill_code"]}, "earliest_hire_date": {"name": "earliest_hire_date", "description": "Earliest date when the position can be filled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.earliest_hire_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.earliest_overlap_date"]}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.effective_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hiring_freeze"]}, "job_description": {"name": "job_description", "description": "Detailed description of the job associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_description"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_description_summary"]}, "job_posting_title": {"name": "job_posting_title", "description": "Title used for job postings associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_posting_title"]}, "position_code": {"name": "position_code", "description": "Code associated with the position for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.position_code"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.position_time_type_code"]}, "primary_compensation_basis": {"name": "primary_compensation_basis", "description": "Primary basis of compensation for the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.primary_compensation_basis"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.primary_compensation_basis_amount_change"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.primary_compensation_basis_percent_change"]}, "supervisory_organization_id": {"name": "supervisory_organization_id", "description": "Identifier for the supervisory organization associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.supervisory_organization_id"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.work_shift_required"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.worker_for_filled_position_id"]}, "worker_position_id": {"name": "worker_position_id", "description": "Identifier for the worker associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.worker_position_id"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.worker_type_code"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "ephemeral", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1782422567.806227, "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.apply_source_relation(package_name='workday') }}\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", "doc_blocks": ["doc.workday.position"], "language": "sql", "refs": [{"name": "stg_workday__position_base", "package": null, "version": null}, {"name": "stg_workday__position_base", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.workday.get_position_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.apply_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\".\"public_workday_dev\".\"stg_workday__position_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n academic_tenure_eligible as academic_tenure_eligible,\n availability_date as availability_date,\n available_for_hire as available_for_hire,\n available_for_overlap as available_for_overlap,\n available_for_recruiting as available_for_recruiting,\n closed as closed,\n compensation_grade_code as compensation_grade_code,\n compensation_grade_profile_code as compensation_grade_profile_code,\n compensation_package_code as compensation_package_code,\n compensation_step_code as compensation_step_code,\n critical_job as critical_job,\n difficulty_to_fill_code as difficulty_to_fill_code,\n earliest_hire_date as earliest_hire_date,\n earliest_overlap_date as earliest_overlap_date,\n effective_date as effective_date,\n hiring_freeze as hiring_freeze,\n id as id,\n job_description as job_description,\n job_description_summary as job_description_summary,\n job_posting_title as job_posting_title,\n position_code as position_code,\n position_time_type_code as position_time_type_code,\n primary_compensation_basis as primary_compensation_basis,\n primary_compensation_basis_amount_change as primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change as primary_compensation_basis_percent_change,\n supervisory_organization_id as supervisory_organization_id,\n work_shift_required as work_shift_required,\n worker_for_filled_position_id as worker_for_filled_position_id,\n worker_position_id as worker_position_id,\n worker_type_code as worker_type_code\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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, "primary_key": [], "time_spine": null}, "model.workday.stg_workday__person_name": {"database": "postgres", "schema": "public_workday_dev", "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": "ab41173e73add64790e76513ea3b0a910bfe00f6d3a6cc93576ec64bfcd5fb89"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.source_relation"]}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.worker_id"]}, "index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.index"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.person_name_type"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}, "academic_suffix": {"name": "academic_suffix", "description": "The academic suffix, if applicable (e.g., PhD, MD).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.academic_suffix"]}, "additional_name_type": {"name": "additional_name_type", "description": "Additional type or category for the person name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.additional_name_type"]}, "country": {"name": "country", "description": "The country associated with the person name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.country"]}, "first_name": {"name": "first_name", "description": "The first name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.first_name"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.full_name_singapore_malaysia"]}, "hereditary_suffix": {"name": "hereditary_suffix", "description": "The hereditary suffix, if applicable (e.g., Jr, Sr).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hereditary_suffix"]}, "honorary_suffix": {"name": "honorary_suffix", "description": "The honorary suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.honorary_suffix"]}, "last_name": {"name": "last_name", "description": "The last name or surname of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.last_name"]}, "local_first_name": {"name": "local_first_name", "description": "The local or native first name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.local_first_name"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.local_first_name_2"]}, "local_last_name": {"name": "local_last_name", "description": "The local or native last name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.local_last_name"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.local_last_name_2"]}, "local_middle_name": {"name": "local_middle_name", "description": "The local or native middle name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.local_middle_name"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.local_middle_name_2"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.local_secondary_last_name"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.local_secondary_last_name_2"]}, "middle_name": {"name": "middle_name", "description": "The middle name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.middle_name"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.prefix_salutation"]}, "prefix_title": {"name": "prefix_title", "description": "The prefix or title associated with the name (e.g., Professor).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.prefix_title"]}, "prefix_title_code": {"name": "prefix_title_code", "description": "The code associated with the prefix or title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.prefix_title_code"]}, "professional_suffix": {"name": "professional_suffix", "description": "The professional suffix, if applicable (e.g., Esq., CPA).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.professional_suffix"]}, "religious_suffix": {"name": "religious_suffix", "description": "The religious suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.religious_suffix"]}, "royal_suffix": {"name": "royal_suffix", "description": "The royal suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.royal_suffix"]}, "secondary_last_name": {"name": "secondary_last_name", "description": "Secondary last name or surname, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.secondary_last_name"]}, "social_suffix": {"name": "social_suffix", "description": "The social suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.social_suffix"]}, "social_suffix_id": {"name": "social_suffix_id", "description": "The identifier for the social suffix.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.social_suffix_id"]}, "tertiary_last_name": {"name": "tertiary_last_name", "description": "Tertiary last name or surname, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.tertiary_last_name"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "ephemeral", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1782422567.822382, "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.apply_source_relation(package_name='workday') }}\n 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", "doc_blocks": ["doc.workday.person_name"], "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": [], "functions": [], "depends_on": {"macros": ["macro.workday.get_person_name_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.apply_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\".\"public_workday_dev\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n academic_suffix as academic_suffix,\n additional_name_type as additional_name_type,\n country as country,\n first_name as first_name,\n full_name_singapore_malaysia as full_name_singapore_malaysia,\n hereditary_suffix as hereditary_suffix,\n honorary_suffix as honorary_suffix,\n index as index,\n last_name as last_name,\n local_first_name as local_first_name,\n local_first_name_2 as local_first_name_2,\n local_last_name as local_last_name,\n local_last_name_2 as local_last_name_2,\n local_middle_name as local_middle_name,\n local_middle_name_2 as local_middle_name_2,\n local_secondary_last_name as local_secondary_last_name,\n local_secondary_last_name_2 as local_secondary_last_name_2,\n middle_name as middle_name,\n personal_info_system_id as personal_info_system_id,\n prefix_salutation as prefix_salutation,\n prefix_title as prefix_title,\n prefix_title_code as prefix_title_code,\n professional_suffix as professional_suffix,\n religious_suffix as religious_suffix,\n royal_suffix as royal_suffix,\n secondary_last_name as secondary_last_name,\n social_suffix as social_suffix,\n social_suffix_id as social_suffix_id,\n tertiary_last_name as tertiary_last_name,\n type as type\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n 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, "primary_key": [], "time_spine": null}, "model.workday.stg_workday__organization_job_family": {"database": "postgres", "schema": "public_workday_dev", "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": "a014939318785f0913f6bb089f6d34dc2ae0a1cc53cf4d507cb2d28084e9bcdd"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.source_relation"]}, "job_family_id": {"name": "job_family_id", "description": "Identifier for the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_family_id"]}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.organization_id"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}, "job_family_group_id": {"name": "job_family_group_id", "description": "Identifier for the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_family_group_id"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "ephemeral", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1782422567.794225, "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.apply_source_relation(package_name='workday') }}\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", "doc_blocks": ["doc.workday.organization_job_family"], "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": [], "functions": [], "depends_on": {"macros": ["macro.workday.get_organization_job_family_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.apply_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\".\"public_workday_dev\".\"stg_workday__organization_job_family_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n job_family_group_id as job_family_group_id,\n job_family_id as job_family_id,\n organization_id as organization_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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, "primary_key": [], "time_spine": null}, "model.workday.stg_workday__military_service": {"database": "postgres", "schema": "public_workday_dev", "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": "607e8311c00be967aba81f7025387b43ad326fa95b194592e60034decc2d60eb"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.source_relation"]}, "index": {"name": "index", "description": "An index for a particular identifier. This field is now always null after recent schema updates, and is maintained for backwards compatibility only.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.index_backward_compatibility"]}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.worker_id"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}, "discharge_date": {"name": "discharge_date", "description": "The date on which the individual was discharged from military service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.discharge_date"]}, "discharge_type": {"name": "discharge_type", "description": "Type of military discharge.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.discharge_type"]}, "notes": {"name": "notes", "description": "Additional notes or comments related to the military service record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.notes"]}, "rank": {"name": "rank", "description": "The rank achieved by the individual during military service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.rank"]}, "service": {"name": "service", "description": "The specific military service branch in which the individual served.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.service"]}, "service_type": {"name": "service_type", "description": "The type or category of military service (e.g., active duty, reserve, etc.). Now always null and maintained for backwards compatibility only.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.service_type"]}, "military_status": {"name": "military_status", "description": "The military status of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.military_status"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.status_begin_date"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "ephemeral", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1782422567.832546, "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.apply_source_relation(package_name='workday') }}\n from base\n),\n\nfinal as (\n select\n personal_info_common_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n notes,\n rank,\n service,\n discharge_type,\n status_id as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "doc_blocks": ["doc.workday.military_service"], "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": [], "functions": [], "depends_on": {"macros": ["macro.workday.get_military_service_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.apply_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\".\"public_workday_dev\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n personal_info_common_id as personal_info_common_id,\n discharge_date as discharge_date,\n discharge_type as discharge_type,\n notes as notes,\n rank as rank,\n service as service,\n status_id as status_id,\n status_begin_date as status_begin_date\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n from base\n),\n\nfinal as (\n select\n personal_info_common_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n notes,\n rank,\n service,\n discharge_type,\n status_id 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, "primary_key": [], "time_spine": null}, "model.workday.stg_workday__job_family_job_profile": {"database": "postgres", "schema": "public_workday_dev", "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": "c1e6e05d803bc96d00ac61a4630c255abc437ee734eabe37e96e87481e4f368a"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.source_relation"]}, "job_family_id": {"name": "job_family_id", "description": "Identifier for the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_family_id"]}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_profile_id"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "ephemeral", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1782422567.786675, "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.apply_source_relation(package_name='workday') }}\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", "doc_blocks": ["doc.workday.job_family_job_profile"], "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": [], "functions": [], "depends_on": {"macros": ["macro.workday.get_job_family_job_profile_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.apply_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\".\"public_workday_dev\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n job_family_id as job_family_id,\n job_profile_id as job_profile_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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, "primary_key": [], "time_spine": null}, "model.workday.stg_workday__job_profile": {"database": "postgres", "schema": "public_workday_dev", "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": "cad16109d51ba8fe726ab6322dcf33795338bb0f87d2f852bd27e9b9fa519ae3"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.source_relation"]}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_profile_id"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}, "additional_job_description": {"name": "additional_job_description", "description": "Additional details or information about the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.additional_job_description"]}, "compensation_grade_id": {"name": "compensation_grade_id", "description": "Identifier for the compensation grade.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.compensation_grade_id"]}, "is_critical_job": {"name": "is_critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.critical_job"]}, "job_description": {"name": "job_description", "description": "Brief description of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_profile_description"]}, "difficulty_to_fill": {"name": "difficulty_to_fill", "description": "Indication of the difficulty level in filling the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.difficulty_to_fill"]}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.effective_date"]}, "is_inactive": {"name": "is_inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.inactive"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.include_job_code_in_name"]}, "job_category_id": {"name": "job_category_id", "description": "Identifier for the job category.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_category_id"]}, "job_profile_code": {"name": "job_profile_code", "description": "Code assigned to the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_profile_code"]}, "level": {"name": "level", "description": "Level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.level"]}, "management_level": {"name": "management_level", "description": "Management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.management_level"]}, "private_title": {"name": "private_title", "description": "Private title associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.private_title"]}, "is_public_job": {"name": "is_public_job", "description": "Flag indicating whether the job is public.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.public_job"]}, "referral_payment_plan": {"name": "referral_payment_plan", "description": "Referral payment plan associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.referral_payment_plan"]}, "job_summary": {"name": "job_summary", "description": "Summary or overview of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.summary"]}, "job_title": {"name": "job_title", "description": "The title of the job for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_title"]}, "union_code": {"name": "union_code", "description": "Code associated with the union related to the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.union_code"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.union_membership_requirement"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.work_shift_required"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.work_study_award_source_code"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.work_study_requirement_option_code"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "ephemeral", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1782422567.785525, "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.apply_source_relation(package_name='workday') }}\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", "doc_blocks": ["doc.workday.job_profile"], "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": [], "functions": [], "depends_on": {"macros": ["macro.workday.get_job_profile_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.apply_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\".\"public_workday_dev\".\"stg_workday__job_profile_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n additional_job_description as additional_job_description,\n compensation_grade_id as compensation_grade_id,\n critical_job as critical_job,\n description as description,\n difficulty_to_fill as difficulty_to_fill,\n effective_date as effective_date,\n id as id,\n inactive as inactive,\n include_job_code_in_name as include_job_code_in_name,\n job_category_id as job_category_id,\n job_profile_code as job_profile_code,\n level as level,\n management_level as management_level,\n private_title as private_title,\n public_job as public_job,\n referral_payment_plan as referral_payment_plan,\n summary as summary,\n title as title,\n union_code as union_code,\n union_membership_requirement as union_membership_requirement,\n work_shift_required as work_shift_required,\n work_study_award_source_code as work_study_award_source_code,\n work_study_requirement_option_code as work_study_requirement_option_code\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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, "primary_key": [], "time_spine": null}, "model.workday.stg_workday__organization_role": {"database": "postgres", "schema": "public_workday_dev", "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": "9e2511e1459fac24865d9dee9a87d9364622d6f7a01ce235ace6ef40f0a01ad7"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.source_relation"]}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.organization_id"]}, "organization_role_id": {"name": "organization_role_id", "description": "The role id associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.organization_role_id"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.organization_role_code"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "ephemeral", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1782422567.7917552, "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.apply_source_relation(package_name='workday') }}\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", "doc_blocks": ["doc.workday.organization_role"], "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": [], "functions": [], "depends_on": {"macros": ["macro.workday.get_organization_role_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.apply_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\".\"public_workday_dev\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n organization_id as organization_id,\n organization_role_code as organization_role_code,\n role_id as role_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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, "primary_key": [], "time_spine": null}, "model.workday.stg_workday__country_personal_information": {"database": "postgres", "schema": "public_workday_dev", "name": "stg_workday__country_personal_information", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__country_personal_information.sql", "original_file_path": "models/staging/stg_workday__country_personal_information.sql", "unique_id": "model.workday.stg_workday__country_personal_information", "fqn": ["workday", "staging", "stg_workday__country_personal_information"], "alias": "stg_workday__country_personal_information", "checksum": {"name": "sha256", "checksum": "64da126c43767a55e2599ee54d3311c51dabe36ca56f071c810aaf266eb41c1b"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table containing country-specific personal information attributes including gender, marital status, and region-specific data.", "columns": {"fivetran_id": {"name": "fivetran_id", "description": "Fivetran composite key identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.fivetran_id"]}, "personal_info_common_id": {"name": "personal_info_common_id", "description": "Personal information common data ID linking to worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.personal_info_common_id"]}, "country_code": {"name": "country_code", "description": "Country code for country-specific information.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.country_code"]}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.source_relation"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}, "gender": {"name": "gender", "description": "The gender of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.gender"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hispanic_or_latino"]}, "hukou_locality": {"name": "hukou_locality", "description": "The locality associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hukou_locality"]}, "hukou_postal_code": {"name": "hukou_postal_code", "description": "The postal code associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hukou_postal_code"]}, "hukou_region_code": {"name": "hukou_region_code", "description": "Hukou region code (China-specific, renamed from legacy `hukou_region` in v42.2 API).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hukou_region_code"]}, "hukou_subregion_code": {"name": "hukou_subregion_code", "description": "Hukou subregion code (China-specific, renamed from legacy `hukou_subregion` in v42.2 API).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hukou_subregion_code"]}, "hukou_type_code": {"name": "hukou_type_code", "description": "Hukou type code (China-specific, renamed from legacy `hukou_type` in v42.2 API).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hukou_type_code"]}, "is_local_hukou": {"name": "is_local_hukou", "description": "Flag indicating whether the Hukou is local.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.local_hukou"]}, "marital_status": {"name": "marital_status", "description": "The marital status of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.marital_status"]}, "marital_status_date": {"name": "marital_status_date", "description": "The date of the marital status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.marital_status_date"]}, "native_region_code": {"name": "native_region_code", "description": "The code of the native region.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.native_region_code"]}, "native_region": {"name": "native_region", "description": "The native region of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.native_region"]}, "personnel_file_agency_for_person": {"name": "personnel_file_agency_for_person", "description": "Personnel file agency for person (renamed from legacy `personnel_file_agency` in v42.2 API).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.personnel_file_agency_for_person"]}, "political_affiliation": {"name": "political_affiliation", "description": "The political affiliation of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.political_affiliation"]}, "religion": {"name": "religion", "description": "The religion of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.religion"]}, "social_benefit": {"name": "social_benefit", "description": "Social benefit information.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.social_benefit_information"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "ephemeral", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1782422567.8292854, "relation_name": null, "raw_code": "with base as (\n\n select *\n from {{ ref('stg_workday__country_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__country_personal_information_base')),\n staging_columns=get_country_personal_information_columns()\n )\n }}\n {{ fivetran_utils.apply_source_relation(package_name='workday') }}\n from base\n),\n\nfinal as (\n\n select\n fivetran_id,\n personal_info_common_id,\n country_code,\n source_relation,\n _fivetran_synced,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region_code,\n hukou_subregion_code,\n hukou_type_code,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n native_region_code,\n native_region,\n personnel_file_agency_for_person,\n political_affiliation,\n religion,\n social_benefits_locality\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "doc_blocks": ["doc.workday.country_personal_information"], "language": "sql", "refs": [{"name": "stg_workday__country_personal_information_base", "package": null, "version": null}, {"name": "stg_workday__country_personal_information_base", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.workday.get_country_personal_information_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.apply_source_relation"], "nodes": ["model.workday.stg_workday__country_personal_information_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__country_personal_information.sql", "compiled": true, "compiled_code": "with base as (\n\n select *\n from \"postgres\".\"public_workday_dev\".\"stg_workday__country_personal_information_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_synced as _fivetran_synced,\n _fivetran_deleted as _fivetran_deleted,\n fivetran_id as fivetran_id,\n personal_info_common_id as personal_info_common_id,\n country_code as country_code,\n gender as gender,\n hispanic_or_latino as hispanic_or_latino,\n hukou_locality as hukou_locality,\n hukou_postal_code as hukou_postal_code,\n hukou_region_code as hukou_region_code,\n hukou_subregion_code as hukou_subregion_code,\n hukou_type_code as hukou_type_code,\n local_hukou as local_hukou,\n marital_status as marital_status,\n marital_status_date as marital_status_date,\n native_region_code as native_region_code,\n native_region as native_region,\n personnel_file_agency_for_person as personnel_file_agency_for_person,\n political_affiliation as political_affiliation,\n religion as religion,\n social_benefits_locality as social_benefits_locality\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n from base\n),\n\nfinal as (\n\n select\n fivetran_id,\n personal_info_common_id,\n country_code,\n source_relation,\n _fivetran_synced,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region_code,\n hukou_subregion_code,\n hukou_type_code,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n native_region_code,\n native_region,\n personnel_file_agency_for_person,\n political_affiliation,\n religion,\n social_benefits_locality\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, "primary_key": [], "time_spine": null}, "model.workday.stg_workday__organization_role_worker": {"database": "postgres", "schema": "public_workday_dev", "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": "26787213af73dd4629d6d316ff4e22adcceb35fdd0a90891aa5726fe3e5d6238"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.source_relation"]}, "organization_worker_code": {"name": "organization_worker_code", "description": "The worker code associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.organization_worker_code"]}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.organization_id"]}, "role_id": {"name": "role_id", "description": "Identifier for the specific role.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.role_id"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "ephemeral", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1782422567.7933733, "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.apply_source_relation(package_name='workday') }}\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", "doc_blocks": ["doc.workday.organization_role_worker"], "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": [], "functions": [], "depends_on": {"macros": ["macro.workday.get_organization_role_worker_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.apply_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\".\"public_workday_dev\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n associated_worker_id as associated_worker_id,\n organization_id as organization_id,\n role_id as role_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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, "primary_key": [], "time_spine": null}, "model.workday.stg_workday__worker_position_organization": {"database": "postgres", "schema": "public_workday_dev", "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": "16f090f3ded40074084ef855d9eddb4ed5bf5141c0c9dd2d682f52755f6ec70a"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.source_relation"]}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.position_id"]}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.worker_id"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}, "index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.index"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.date_of_pay_group_assignment"]}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.organization_id"]}, "primary_business_site": {"name": "primary_business_site", "description": "Primary location a worker's business is situated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.primary_business_site"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.used_in_change_organization_assignments"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "ephemeral", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1782422567.8540933, "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.apply_source_relation(package_name='workday') }}\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", "doc_blocks": ["doc.workday.worker_position_organization"], "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": [], "functions": [], "depends_on": {"macros": ["macro.workday.get_worker_position_organization_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.apply_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\".\"public_workday_dev\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n index as index,\n position_id as position_id,\n worker_id as worker_id,\n date_of_pay_group_assignment as date_of_pay_group_assignment,\n organization_id as organization_id,\n primary_business_site as primary_business_site,\n used_in_change_organization_assignments as used_in_change_organization_assignments\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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, "primary_key": [], "time_spine": null}, "model.workday.stg_workday__worker_leave_status": {"database": "postgres", "schema": "public_workday_dev", "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": "71a92cd37cb4016a86698a3dabfa82f1c8cdd13b0435b6239cd52ce969ff6e95"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.source_relation"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.leave_request_event_id"]}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.worker_id"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}, "adoption_notification_date": {"name": "adoption_notification_date", "description": "The date of adoption notification.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.adoption_notification_date"]}, "adoption_placement_date": {"name": "adoption_placement_date", "description": "The date of adoption placement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.adoption_placement_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.age_of_dependent"]}, "is_benefits_effect": {"name": "is_benefits_effect", "description": "The effect of leave on benefits.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.benefits_effect"]}, "is_caesarean_section_birth": {"name": "is_caesarean_section_birth", "description": "Indicator for Caesarean section birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.caesarean_section_birth"]}, "child_birth_date": {"name": "child_birth_date", "description": "The date of child birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.child_birth_date"]}, "child_sdate_of_death": {"name": "child_sdate_of_death", "description": "The start date of child death.>", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.child_sdate_of_death"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.continuous_service_accrual_effect"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.date_baby_arrived_home_from_hospital"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.date_child_entered_country"]}, "date_of_recall": {"name": "date_of_recall", "description": "The date of recall.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.date_of_recall"]}, "description": {"name": "description", "description": "Description of the type of leave", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.leave_description"]}, "estimated_leave_end_date": {"name": "estimated_leave_end_date", "description": "The estimated end date of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.estimated_leave_end_date"]}, "expected_due_date": {"name": "expected_due_date", "description": "The expected due date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.expected_due_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.first_day_of_work"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.last_date_for_which_paid"]}, "leave_end_date": {"name": "leave_end_date", "description": "The end date of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.leave_end_date"]}, "leave_entitlement_override": {"name": "leave_entitlement_override", "description": "Override for leave entitlement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.leave_entitlement_override"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.leave_last_day_of_work"]}, "leave_of_absence_type": {"name": "leave_of_absence_type", "description": "The type of leave of absence.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.leave_of_absence_type"]}, "leave_percentage": {"name": "leave_percentage", "description": "The percentage of leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.leave_percentage"]}, "leave_return_event": {"name": "leave_return_event", "description": "The event associated with the return from leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.leave_return_event"]}, "leave_start_date": {"name": "leave_start_date", "description": "The start date of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.leave_start_date"]}, "leave_status_code": {"name": "leave_status_code", "description": "The code indicating the status of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.leave_status_code"]}, "leave_type_reason": {"name": "leave_type_reason", "description": "The reason for the leave type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.leave_type_reason"]}, "location_during_leave": {"name": "location_during_leave", "description": "The location during the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.location_during_leave"]}, "is_multiple_child_indicator": {"name": "is_multiple_child_indicator", "description": "Indicator for multiple children.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.multiple_child_indicator"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.number_of_babies_adopted_children"]}, "number_of_child_dependents": {"name": "number_of_child_dependents", "description": "The number of child dependents.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.number_of_child_dependents"]}, "number_of_previous_births": {"name": "number_of_previous_births", "description": "The number of previous births.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.number_of_previous_births"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.number_of_previous_maternity_leaves"]}, "is_on_leave": {"name": "is_on_leave", "description": "Indicator for whether the worker is on leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.on_leave"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.paid_time_off_accrual_effect"]}, "is_payroll_effect": {"name": "is_payroll_effect", "description": "The effect of leave on payroll.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.payroll_effect"]}, "is_single_parent_indicator": {"name": "is_single_parent_indicator", "description": "Indicator for a single parent.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.single_parent_indicator"]}, "social_security_disability_code": {"name": "social_security_disability_code", "description": "The code indicating social security disability.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.social_security_disability_code"]}, "is_stock_vesting_effect": {"name": "is_stock_vesting_effect", "description": "The effect of leave on stock vesting.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.stock_vesting_effect"]}, "stop_payment_date": {"name": "stop_payment_date", "description": "The date when stop payment occurs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.stop_payment_date"]}, "week_of_confinement": {"name": "week_of_confinement", "description": "Indicator for whether the leave is work-related.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.week_of_confinement"]}, "is_work_related": {"name": "is_work_related", "description": "Indicator for whether the leave is work-related.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.work_related"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "ephemeral", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1782422567.8530014, "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.apply_source_relation(package_name='workday') }}\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", "doc_blocks": ["doc.workday.worker_leave_status"], "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": [], "functions": [], "depends_on": {"macros": ["macro.workday.get_worker_leave_status_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.apply_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\".\"public_workday_dev\".\"stg_workday__worker_leave_status_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n adoption_notification_date as adoption_notification_date,\n adoption_placement_date as adoption_placement_date,\n age_of_dependent as age_of_dependent,\n benefits_effect as benefits_effect,\n caesarean_section_birth as caesarean_section_birth,\n child_birth_date as child_birth_date,\n child_sdate_of_death as child_sdate_of_death,\n continuous_service_accrual_effect as continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital as date_baby_arrived_home_from_hospital,\n date_child_entered_country as date_child_entered_country,\n date_of_recall as date_of_recall,\n description as description,\n estimated_leave_end_date as estimated_leave_end_date,\n expected_due_date as expected_due_date,\n first_day_of_work as first_day_of_work,\n last_date_for_which_paid as last_date_for_which_paid,\n leave_end_date as leave_end_date,\n leave_entitlement_override as leave_entitlement_override,\n leave_last_day_of_work as leave_last_day_of_work,\n leave_of_absence_type as leave_of_absence_type,\n leave_percentage as leave_percentage,\n leave_request_event_id as leave_request_event_id,\n leave_return_event as leave_return_event,\n leave_start_date as leave_start_date,\n leave_status_code as leave_status_code,\n leave_type_reason as leave_type_reason,\n location_during_leave as location_during_leave,\n multiple_child_indicator as multiple_child_indicator,\n number_of_babies_adopted_children as number_of_babies_adopted_children,\n number_of_child_dependents as number_of_child_dependents,\n number_of_previous_births as number_of_previous_births,\n number_of_previous_maternity_leaves as number_of_previous_maternity_leaves,\n on_leave as on_leave,\n paid_time_off_accrual_effect as paid_time_off_accrual_effect,\n payroll_effect as payroll_effect,\n single_parent_indicator as single_parent_indicator,\n social_security_disability_code as social_security_disability_code,\n stock_vesting_effect as stock_vesting_effect,\n stop_payment_date as stop_payment_date,\n week_of_confinement as week_of_confinement,\n work_related as work_related,\n worker_id as worker_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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, "primary_key": [], "time_spine": null}, "model.workday.stg_workday__job_family_job_family_group": {"database": "postgres", "schema": "public_workday_dev", "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": "5ec48348e9392986431f6593f7f1c685c6400ac5aedc4d00d61739e4db76f978"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.source_relation"]}, "job_family_id": {"name": "job_family_id", "description": "Identifier for the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_family_id"]}, "job_family_group_id": {"name": "job_family_group_id", "description": "Identifier for the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_family_group_id"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "ephemeral", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1782422567.78942, "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.apply_source_relation(package_name='workday') }}\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", "doc_blocks": ["doc.workday.job_family_job_family_group"], "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": [], "functions": [], "depends_on": {"macros": ["macro.workday.get_job_family_job_family_group_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.apply_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\".\"public_workday_dev\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n job_family_id as job_family_id,\n job_family_group_id as job_family_group_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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, "primary_key": [], "time_spine": null}, "model.workday.stg_workday__worker": {"database": "postgres", "schema": "public_workday_dev", "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": "c5ba813666e9e5b93a3285062fc8d349719fba0d952dd9637e03eccc25e28b62"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.source_relation"]}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.worker_id"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}, "academic_tenure_date": {"name": "academic_tenure_date", "description": "Date when academic tenure is achieved.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.academic_tenure_date"]}, "is_active": {"name": "is_active", "description": "Flag indicating the current active status of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.active"]}, "active_status_date": {"name": "active_status_date", "description": "Date when the active status was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.active_status_date"]}, "annual_currency_summary_currency": {"name": "annual_currency_summary_currency", "description": "Currency used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.annual_currency_summary_currency"]}, "annual_currency_summary_frequency": {"name": "annual_currency_summary_frequency", "description": "Frequency of currency for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.annual_currency_summary_frequency"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.annual_currency_summary_primary_compensation_basis"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.annual_currency_summary_total_base_pay"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.annual_currency_summary_total_salary_and_allowances"]}, "annual_summary_currency": {"name": "annual_summary_currency", "description": "Currency used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.annual_summary_currency"]}, "annual_summary_frequency": {"name": "annual_summary_frequency", "description": "Frequency of currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.annual_summary_frequency"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.annual_summary_primary_compensation_basis"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.annual_summary_total_base_pay"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.annual_summary_total_salary_and_allowances"]}, "benefits_service_date": {"name": "benefits_service_date", "description": "Date when the worker's benefits service starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.benefits_service_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.company_service_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.compensation_effective_date"]}, "compensation_grade_id": {"name": "compensation_grade_id", "description": "Identifier for the compensation grade.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.compensation_grade_id"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.compensation_grade_profile_id"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.continuous_service_date"]}, "contract_assignment_details": {"name": "contract_assignment_details", "description": "Details of the worker's contract assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.contract_assignment_details"]}, "contract_currency_code": {"name": "contract_currency_code", "description": "Currency code used for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.contract_currency_code"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.contract_end_date"]}, "contract_frequency_name": {"name": "contract_frequency_name", "description": "Frequency of payment for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.contract_frequency_name"]}, "contract_pay_rate": {"name": "contract_pay_rate", "description": "Pay rate associated with the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.contract_pay_rate"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.contract_vendor_name"]}, "date_entered_workforce": {"name": "date_entered_workforce", "description": "Date when the worker entered the workforce.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.date_entered_workforce"]}, "days_unemployed": {"name": "days_unemployed", "description": "Number of days the worker has been unemployed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.days_unemployed"]}, "eligible_for_hire": {"name": "eligible_for_hire", "description": "Flag indicating whether the worker is eligible for hire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.eligible_for_hire"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.eligible_for_rehire_on_latest_termination"]}, "employee_compensation_currency": {"name": "employee_compensation_currency", "description": "Currency code used for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.employee_compensation_currency"]}, "employee_compensation_frequency": {"name": "employee_compensation_frequency", "description": "Frequency of payment for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.employee_compensation_frequency"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.employee_compensation_primary_compensation_basis"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.employee_compensation_total_base_pay"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.employee_compensation_total_salary_and_allowances"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.end_employment_date"]}, "expected_date_of_return": {"name": "expected_date_of_return", "description": "Expected date of the worker's return.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.expected_date_of_return"]}, "expected_retirement_date": {"name": "expected_retirement_date", "description": "Expected date of the worker's retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.expected_retirement_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.first_day_of_work"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.has_international_assignment"]}, "hire_date": {"name": "hire_date", "description": "The date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hire_date"]}, "hire_reason": {"name": "hire_reason", "description": "The reason for hiring the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hire_reason"]}, "is_hire_rescinded": {"name": "is_hire_rescinded", "description": "Flag indicating whether the worker's hire was rescinded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hire_rescinded"]}, "home_country": {"name": "home_country", "description": "The home country of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.home_country"]}, "hourly_frequency_currency": {"name": "hourly_frequency_currency", "description": "Currency code used for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hourly_frequency_currency"]}, "hourly_frequency_frequency": {"name": "hourly_frequency_frequency", "description": "Frequency of payment for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hourly_frequency_frequency"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hourly_frequency_primary_compensation_basis"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hourly_frequency_total_base_pay"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hourly_frequency_total_salary_and_allowances"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.last_datefor_which_paid"]}, "local_termination_reason": {"name": "local_termination_reason", "description": "The reason for local termination of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.local_termination_reason"]}, "months_continuous_prior_employment": {"name": "months_continuous_prior_employment", "description": "Number of months of continuous prior employment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.months_continuous_prior_employment"]}, "is_not_returning": {"name": "is_not_returning", "description": "Flag indicating whether the worker is not returning.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.not_returning"]}, "original_hire_date": {"name": "original_hire_date", "description": "The original date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.original_hire_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.pay_group_frequency_currency"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.pay_group_frequency_frequency"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.pay_group_frequency_primary_compensation_basis"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.pay_group_frequency_total_base_pay"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.pay_group_frequency_total_salary_and_allowances"]}, "pay_through_date": {"name": "pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.pay_through_date"]}, "primary_termination_category": {"name": "primary_termination_category", "description": "The primary termination category for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.primary_termination_category"]}, "primary_termination_reason": {"name": "primary_termination_reason", "description": "The primary termination reason for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.primary_termination_reason"]}, "probation_end_date": {"name": "probation_end_date", "description": "The date when the worker's probation ends.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.probation_end_date"]}, "probation_start_date": {"name": "probation_start_date", "description": "The date when the worker's probation starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.probation_start_date"]}, "reason_reference_id": {"name": "reason_reference_id", "description": "The reference ID for the termination reason.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.reason_reference_id"]}, "is_regrettable_termination": {"name": "is_regrettable_termination", "description": "Flag indicating whether the worker's termination is regrettable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.regrettable_termination"]}, "is_rehire": {"name": "is_rehire", "description": "Flag indicating whether the worker is eligible for rehire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.rehire"]}, "resignation_date": {"name": "resignation_date", "description": "The date when the worker resigned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.resignation_date"]}, "is_retired": {"name": "is_retired", "description": "Flag indicating whether the worker is retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.retired"]}, "retirement_date": {"name": "retirement_date", "description": "The date when the worker retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.retirement_date"]}, "retirement_eligibility_date": {"name": "retirement_eligibility_date", "description": "The date when the worker becomes eligible for retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.retirement_eligibility_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.return_unknown"]}, "seniority_date": {"name": "seniority_date", "description": "The date when the worker's seniority is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.seniority_date"]}, "severance_date": {"name": "severance_date", "description": "The date when the worker's severance is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.severance_date"]}, "is_terminated": {"name": "is_terminated", "description": "Has the worker been terminated?", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.is_terminated"]}, "termination_date": {"name": "termination_date", "description": "The date when the worker is terminated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.termination_date"]}, "is_termination_involuntary": {"name": "is_termination_involuntary", "description": "Flag indicating whether the termination is involuntary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.termination_involuntary"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.termination_last_day_of_work"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.time_off_service_date"]}, "universal_id": {"name": "universal_id", "description": "The universal ID associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.universal_id"]}, "user_id": {"name": "user_id", "description": "The identifier for the user associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.user_id"]}, "vesting_date": {"name": "vesting_date", "description": "The date when the worker's vesting starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.vesting_date"]}, "worker_code": {"name": "worker_code", "description": "The code associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.worker_code"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "ephemeral", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1782422567.812119, "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.apply_source_relation(package_name='workday') }}\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", "doc_blocks": ["doc.workday.worker"], "language": "sql", "refs": [{"name": "stg_workday__worker_base", "package": null, "version": null}, {"name": "stg_workday__worker_base", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.workday.get_worker_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.apply_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\".\"public_workday_dev\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n academic_tenure_date as academic_tenure_date,\n active as active,\n active_status_date as active_status_date,\n annual_currency_summary_currency as annual_currency_summary_currency,\n annual_currency_summary_frequency as annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis as annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay as annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances as annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency as annual_summary_currency,\n annual_summary_frequency as annual_summary_frequency,\n annual_summary_primary_compensation_basis as annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay as annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances as annual_summary_total_salary_and_allowances,\n benefits_service_date as benefits_service_date,\n company_service_date as company_service_date,\n compensation_effective_date as compensation_effective_date,\n compensation_grade_id as compensation_grade_id,\n compensation_grade_profile_id as compensation_grade_profile_id,\n continuous_service_date as continuous_service_date,\n contract_assignment_details as contract_assignment_details,\n contract_currency_code as contract_currency_code,\n contract_end_date as contract_end_date,\n contract_frequency_name as contract_frequency_name,\n contract_pay_rate as contract_pay_rate,\n contract_vendor_name as contract_vendor_name,\n date_entered_workforce as date_entered_workforce,\n days_unemployed as days_unemployed,\n eligible_for_hire as eligible_for_hire,\n eligible_for_rehire_on_latest_termination as eligible_for_rehire_on_latest_termination,\n employee_compensation_currency as employee_compensation_currency,\n employee_compensation_frequency as employee_compensation_frequency,\n employee_compensation_primary_compensation_basis as employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay as employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances as employee_compensation_total_salary_and_allowances,\n end_employment_date as end_employment_date,\n expected_date_of_return as expected_date_of_return,\n expected_retirement_date as expected_retirement_date,\n first_day_of_work as first_day_of_work,\n has_international_assignment as has_international_assignment,\n hire_date as hire_date,\n hire_reason as hire_reason,\n hire_rescinded as hire_rescinded,\n home_country as home_country,\n hourly_frequency_currency as hourly_frequency_currency,\n hourly_frequency_frequency as hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis as hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay as hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances as hourly_frequency_total_salary_and_allowances,\n id as id,\n last_datefor_which_paid as last_datefor_which_paid,\n local_termination_reason as local_termination_reason,\n months_continuous_prior_employment as months_continuous_prior_employment,\n not_returning as not_returning,\n original_hire_date as original_hire_date,\n pay_group_frequency_currency as pay_group_frequency_currency,\n pay_group_frequency_frequency as pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis as pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay as pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances as pay_group_frequency_total_salary_and_allowances,\n pay_through_date as pay_through_date,\n primary_termination_category as primary_termination_category,\n primary_termination_reason as primary_termination_reason,\n probation_end_date as probation_end_date,\n probation_start_date as probation_start_date,\n reason_reference_id as reason_reference_id,\n regrettable_termination as regrettable_termination,\n rehire as rehire,\n resignation_date as resignation_date,\n retired as retired,\n retirement_date as retirement_date,\n retirement_eligibility_date as retirement_eligibility_date,\n return_unknown as return_unknown,\n seniority_date as seniority_date,\n severance_date as severance_date,\n terminated as terminated,\n termination_date as termination_date,\n termination_involuntary as termination_involuntary,\n termination_last_day_of_work as termination_last_day_of_work,\n time_off_service_date as time_off_service_date,\n universal_id as universal_id,\n user_id as user_id,\n vesting_date as vesting_date,\n worker_code as worker_code\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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, "primary_key": [], "time_spine": null}, "model.workday.stg_workday__job_family_group": {"database": "postgres", "schema": "public_workday_dev", "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": "3837d788fc82c41584fc8e1c6df4d5fd6b2cbde65c1437997cf11da9c86b9433"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.source_relation"]}, "job_family_group_id": {"name": "job_family_group_id", "description": "Identifier for the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_family_group_id"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.effective_date"]}, "is_inactive": {"name": "is_inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.inactive"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_family_group_code"]}, "job_family_group_summary": {"name": "job_family_group_summary", "description": "The summary of the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_family_group_summary"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "ephemeral", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1782422567.790914, "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.apply_source_relation(package_name='workday') }}\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", "doc_blocks": ["doc.workday.job_family_group"], "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": [], "functions": [], "depends_on": {"macros": ["macro.workday.get_job_family_group_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.apply_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\".\"public_workday_dev\".\"stg_workday__job_family_group_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n effective_date as effective_date,\n id as id,\n inactive as inactive,\n job_family_group_code as job_family_group_code,\n summary as summary\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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, "primary_key": [], "time_spine": null}, "model.workday.stg_workday__position_job_profile": {"database": "postgres", "schema": "public_workday_dev", "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": "ac6acb486f9d795dcacece7b52dfc57ce4087bbfcd8d793ca50c25d049737891"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.source_relation"]}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_profile_id"]}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.position_id"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.difficulty_to_fill_code"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.is_critical_job"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_category_code"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.management_level_code"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.position_job_profile_name"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.work_shift_required"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "ephemeral", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1782422567.8079257, "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.apply_source_relation(package_name='workday') }}\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", "doc_blocks": ["doc.workday.position_job_profile"], "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": [], "functions": [], "depends_on": {"macros": ["macro.workday.get_position_job_profile_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.apply_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\".\"public_workday_dev\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n difficulty_to_fill_code as difficulty_to_fill_code,\n is_critical_job as is_critical_job,\n job_category_code as job_category_code,\n job_profile_id as job_profile_id,\n management_level_code as management_level_code,\n name as name,\n position_id as position_id,\n work_shift_required as work_shift_required\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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, "primary_key": [], "time_spine": null}, "model.workday.stg_workday__worker_position": {"database": "postgres", "schema": "public_workday_dev", "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": "0167815f7d0fa065ac0d4cf86fae9907956860dd5d4e48c37e96640f471e994b"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.source_relation"]}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.position_id"]}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.worker_id"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.academic_pay_setup_data_annual_work_period_end_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.academic_pay_setup_data_annual_work_period_start_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.academic_pay_setup_data_annual_work_period_work_percent_of_year"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.academic_pay_setup_data_disbursement_plan_period_end_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.academic_pay_setup_data_disbursement_plan_period_start_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.business_site_summary_display_language"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.business_site_summary_local"]}, "position_location": {"name": "position_location", "description": "The location of the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.business_site_summary_location"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.business_site_summary_location_type"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.business_site_summary_name"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.business_site_summary_scheduled_weekly_hours"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.business_site_summary_time_profile"]}, "business_title": {"name": "business_title", "description": "The business title associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.business_title"]}, "is_critical_job": {"name": "is_critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.critical_job"]}, "default_weekly_hours": {"name": "default_weekly_hours", "description": "The default weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.default_weekly_hours"]}, "difficulty_to_fill": {"name": "difficulty_to_fill", "description": "Indication of the difficulty level in filling the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.difficulty_to_fill"]}, "position_effective_date": {"name": "position_effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.effective_date"]}, "employee_type": {"name": "employee_type", "description": "The type of employee associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.employee_type"]}, "position_end_date": {"name": "position_end_date", "description": "The end date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.end_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.end_employment_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.exclude_from_head_count"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.expected_assignment_end_date"]}, "external_employee": {"name": "external_employee", "description": "Flag indicating whether the worker is an external employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.external_employee"]}, "federal_withholding_fein": {"name": "federal_withholding_fein", "description": "The Federal Employer Identification Number (FEIN) for federal withholding.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.federal_withholding_fein"]}, "frequency": {"name": "frequency", "description": "The frequency associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.frequency"]}, "fte_percent": {"name": "fte_percent", "description": "The full-time equivalent (FTE) percentage associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.full_time_equivalent_percentage"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.headcount_restriction_code"]}, "home_country": {"name": "home_country", "description": "The home country of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.home_country"]}, "host_country": {"name": "host_country", "description": "The host country associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.host_country"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.international_assignment_type"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.is_primary_job"]}, "is_job_exempt": {"name": "is_job_exempt", "description": "Indicates whether the job is exempt from certain regulations.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_exempt"]}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_profile_id"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.management_level_code"]}, "paid_fte": {"name": "paid_fte", "description": "The paid full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.paid_fte"]}, "pay_group": {"name": "pay_group", "description": "The pay group associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.pay_group"]}, "pay_rate": {"name": "pay_rate", "description": "The pay rate associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.pay_rate"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.pay_rate_type"]}, "pay_through_date": {"name": "pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.pay_through_date"]}, "payroll_entity": {"name": "payroll_entity", "description": "The payroll entity associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.payroll_entity"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.payroll_file_number"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.regular_paid_equivalent_hours"]}, "scheduled_weekly_hours": {"name": "scheduled_weekly_hours", "description": "The scheduled weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.scheduled_weekly_hours"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.specify_paid_fte"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.specify_working_fte"]}, "position_start_date": {"name": "position_start_date", "description": "The start date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.start_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.start_international_assignment_reason"]}, "work_hours_profile": {"name": "work_hours_profile", "description": "The work hours profile associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.work_hours_profile"]}, "work_shift": {"name": "work_shift", "description": "The work shift associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.work_shift"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.work_shift_required"]}, "work_space": {"name": "work_space", "description": "The work space associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.work_space"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.worker_hours_profile_classification"]}, "working_fte": {"name": "working_fte", "description": "The working full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.working_fte"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.working_time_frequency"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.working_time_unit"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.working_time_value"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "ephemeral", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1782422567.8376875, "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.apply_source_relation(package_name='workday') }}\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", "doc_blocks": ["doc.workday.worker_position"], "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": [], "functions": [], "depends_on": {"macros": ["macro.workday.get_worker_position_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.apply_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\".\"public_workday_dev\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n academic_pay_setup_data_annual_work_period_end_date as academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date as academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year as academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date as academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date as academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language as business_site_summary_display_language,\n business_site_summary_local as business_site_summary_local,\n business_site_summary_location as business_site_summary_location,\n business_site_summary_location_type as business_site_summary_location_type,\n business_site_summary_name as business_site_summary_name,\n business_site_summary_scheduled_weekly_hours as business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile as business_site_summary_time_profile,\n business_title as business_title,\n critical_job as critical_job,\n default_weekly_hours as default_weekly_hours,\n difficulty_to_fill as difficulty_to_fill,\n effective_date as effective_date,\n employee_type as employee_type,\n end_date as end_date,\n end_employment_date as end_employment_date,\n exclude_from_head_count as exclude_from_head_count,\n expected_assignment_end_date as expected_assignment_end_date,\n external_employee as external_employee,\n federal_withholding_fein as federal_withholding_fein,\n frequency as frequency,\n full_time_equivalent_percentage as full_time_equivalent_percentage,\n headcount_restriction_code as headcount_restriction_code,\n home_country as home_country,\n host_country as host_country,\n international_assignment_type as international_assignment_type,\n is_primary_job as is_primary_job,\n job_exempt as job_exempt,\n job_profile_id as job_profile_id,\n management_level_code as management_level_code,\n paid_fte as paid_fte,\n pay_group as pay_group,\n pay_rate as pay_rate,\n pay_rate_type as pay_rate_type,\n pay_through_date as pay_through_date,\n payroll_entity as payroll_entity,\n payroll_file_number as payroll_file_number,\n position_id as position_id,\n regular_paid_equivalent_hours as regular_paid_equivalent_hours,\n scheduled_weekly_hours as scheduled_weekly_hours,\n specify_paid_fte as specify_paid_fte,\n specify_working_fte as specify_working_fte,\n start_date as start_date,\n start_international_assignment_reason as start_international_assignment_reason,\n work_hours_profile as work_hours_profile,\n work_shift as work_shift,\n work_shift_required as work_shift_required,\n work_space as work_space,\n worker_hours_profile_classification as worker_hours_profile_classification,\n worker_id as worker_id,\n working_fte as working_fte,\n working_time_frequency as working_time_frequency,\n working_time_unit as working_time_unit,\n working_time_value as working_time_value\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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, "primary_key": [], "time_spine": null}, "model.workday.stg_workday__personal_information_ethnicity": {"database": "postgres", "schema": "public_workday_dev", "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": "8ab64324653ed6b4b98083eb2212a3b14067265c93f061bae400f4cb96cb8bbb"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.source_relation"]}, "index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.index"]}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.worker_id"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}, "ethnicity_code": {"name": "ethnicity_code", "description": "The code representing the ethnicity of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.ethnicity_code"]}, "ethnicity_id": {"name": "ethnicity_id", "description": "The identifier associated with the ethnicity.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.ethnicity_id"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "ephemeral", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1782422567.823921, "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.apply_source_relation(package_name='workday') }}\n from base\n),\n\nfinal as (\n\n select\n source_relation,\n _fivetran_synced, \n country_personal_information_id as worker_id,\n ethnicity_code,\n id as ethnicity_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "doc_blocks": ["doc.workday.personal_information_ethnicity"], "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": [], "functions": [], "depends_on": {"macros": ["macro.workday.get_personal_information_ethnicity_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.apply_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\".\"public_workday_dev\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n id as id,\n country_personal_information_id as country_personal_information_id,\n ethnicity_code as ethnicity_code\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n from base\n),\n\nfinal as (\n\n select\n source_relation,\n _fivetran_synced, \n country_personal_information_id as worker_id,\n ethnicity_code,\n id as ethnicity_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, "primary_key": [], "time_spine": null}, "model.workday.stg_workday__personal_information_common_data": {"database": "postgres", "schema": "public_workday_dev", "name": "stg_workday__personal_information_common_data", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__personal_information_common_data.sql", "original_file_path": "models/staging/stg_workday__personal_information_common_data.sql", "unique_id": "model.workday.stg_workday__personal_information_common_data", "fqn": ["workday", "staging", "stg_workday__personal_information_common_data"], "alias": "stg_workday__personal_information_common_data", "checksum": {"name": "sha256", "checksum": "ff1f194943bcb681666ddffaa50f074d074e8269a01af03c6bdb741a63beeb0e"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "Table containing universal personal information attributes including date of birth, death records, nationality, citizenship status, birth location, and medical exam data.", "columns": {"fivetran_id": {"name": "fivetran_id", "description": "Fivetran composite key identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.fivetran_id"]}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.worker_id"]}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.source_relation"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}, "additional_nationality": {"name": "additional_nationality", "description": "Additional nationality associated with the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.additional_nationality"]}, "blood_type": {"name": "blood_type", "description": "The blood type of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.blood_type"]}, "citizenship_status": {"name": "citizenship_status", "description": "The citizenship status of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.citizenship_status"]}, "city_of_birth": {"name": "city_of_birth", "description": "The city of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.city_of_birth"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.city_of_birth_code"]}, "country_of_birth": {"name": "country_of_birth", "description": "The country of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.country_of_birth"]}, "country_region_of_birth": {"name": "country_region_of_birth", "description": "Country region of birth code (renamed from legacy `region_of_birth_code` in v42.2 API).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.country_region_of_birth"]}, "date_of_birth": {"name": "date_of_birth", "description": "The date of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.date_of_birth"]}, "date_of_death": {"name": "date_of_death", "description": "The date of death of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.date_of_death"]}, "last_medical_exam_date": {"name": "last_medical_exam_date", "description": "The date of the last medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.last_medical_exam_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.last_medical_exam_valid_to"]}, "medical_exam_notes": {"name": "medical_exam_notes", "description": "Notes from the medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.medical_exam_notes"]}, "primary_nationality": {"name": "primary_nationality", "description": "The primary nationality of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.primary_nationality"]}, "region_of_birth": {"name": "region_of_birth", "description": "The region of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.region_of_birth"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "ephemeral", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1782422567.8256562, "relation_name": null, "raw_code": "with base as (\n\n select *\n from {{ ref('stg_workday__personal_information_common_data_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_common_data_base')),\n staging_columns=get_personal_information_common_data_columns()\n )\n }}\n {{ fivetran_utils.apply_source_relation(package_name='workday') }}\n from base\n),\n\nfinal as (\n\n select\n fivetran_id,\n 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 country_region_of_birth,\n date_of_birth,\n date_of_death,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n medical_exam_notes,\n primary_nationality,\n region_of_birth\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "doc_blocks": ["doc.workday.personal_information_common_data"], "language": "sql", "refs": [{"name": "stg_workday__personal_information_common_data_base", "package": null, "version": null}, {"name": "stg_workday__personal_information_common_data_base", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.workday.get_personal_information_common_data_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.apply_source_relation"], "nodes": ["model.workday.stg_workday__personal_information_common_data_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__personal_information_common_data.sql", "compiled": true, "compiled_code": "with base as (\n\n select *\n from \"postgres\".\"public_workday_dev\".\"stg_workday__personal_information_common_data_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_synced as _fivetran_synced,\n _fivetran_deleted as _fivetran_deleted,\n fivetran_id as fivetran_id,\n worker_id as worker_id,\n additional_nationality as additional_nationality,\n blood_type as blood_type,\n citizenship_status as citizenship_status,\n city_of_birth as city_of_birth,\n city_of_birth_code as city_of_birth_code,\n country_of_birth as country_of_birth,\n country_region_of_birth as country_region_of_birth,\n date_of_birth as date_of_birth,\n date_of_death as date_of_death,\n last_medical_exam_date as last_medical_exam_date,\n last_medical_exam_valid_to as last_medical_exam_valid_to,\n medical_exam_notes as medical_exam_notes,\n primary_nationality as primary_nationality,\n region_of_birth as region_of_birth\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n from base\n),\n\nfinal as (\n\n select\n fivetran_id,\n 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 country_region_of_birth,\n date_of_birth,\n date_of_death,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n medical_exam_notes,\n primary_nationality,\n region_of_birth\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, "primary_key": [], "time_spine": null}, "model.workday.stg_workday__person_contact_email_address": {"database": "postgres", "schema": "public_workday_dev", "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": "455a122a54e41f72e31d1af366c9d6e242e2e8c27b5e3669471961809d25ed02"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.source_relation"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.person_contact_email_address_id"]}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.worker_id"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}, "email_address": {"name": "email_address", "description": "The actual email address of the person.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.email_address"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.email_code"]}, "email_comment": {"name": "email_comment", "description": "Any additional comments or notes related to the email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.email_comment"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "ephemeral", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1782422567.8345437, "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.apply_source_relation(package_name='workday') }}\n 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", "doc_blocks": ["doc.workday.person_contact_email_address"], "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": [], "functions": [], "depends_on": {"macros": ["macro.workday.get_person_contact_email_address_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.apply_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\".\"public_workday_dev\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n email_address as email_address,\n email_code as email_code,\n email_comment as email_comment,\n id as id,\n personal_info_system_id as personal_info_system_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n 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, "primary_key": [], "time_spine": null}, "model.workday.stg_workday__job_family": {"database": "postgres", "schema": "public_workday_dev", "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": "905255e3c40eba1e143a445a53187f9f831b2f9744f3178b67a7e5b9d6ae90cb"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.source_relation"]}, "job_family_id": {"name": "job_family_id", "description": "Identifier for the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_family_id"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.effective_date"]}, "is_inactive": {"name": "is_inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.inactive"]}, "job_family_code": {"name": "job_family_code", "description": "Code assigned to the job family", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_family_code"]}, "job_family_summary": {"name": "job_family_summary", "description": "The summary of the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_family_summary"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "ephemeral", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1782422567.7882109, "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.apply_source_relation(package_name='workday') }}\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", "doc_blocks": ["doc.workday.job_family"], "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": [], "functions": [], "depends_on": {"macros": ["macro.workday.get_job_family_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.apply_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\".\"public_workday_dev\".\"stg_workday__job_family_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n effective_date as effective_date,\n id as id,\n inactive as inactive,\n job_family_code as job_family_code,\n summary as summary\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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, "primary_key": [], "time_spine": null}, "model.workday.stg_workday__position_organization": {"database": "postgres", "schema": "public_workday_dev", "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": "5db69d1b44f45b15968d113ac89a48ca91629f8843a7161163e45c39f7feba50"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.source_relation"]}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.organization_id"]}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.position_id"]}, "type": {"name": "type", "description": "Type or category of the position within the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.position_organization_type"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "ephemeral", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1782422567.8017123, "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.apply_source_relation(package_name='workday') }}\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", "doc_blocks": ["doc.workday.position_organization"], "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": [], "functions": [], "depends_on": {"macros": ["macro.workday.get_position_organization_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.apply_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\".\"public_workday_dev\".\"stg_workday__position_organization_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n organization_id as organization_id,\n position_id as position_id,\n type as type\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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, "primary_key": [], "time_spine": null}, "model.workday.stg_workday__organization": {"database": "postgres", "schema": "public_workday_dev", "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": "08f48c9820c563e483d8cfd5b9f6d6bcbff37f9ca20a0f30c2df04f97e9c964b"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.source_relation"]}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.organization_id"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}, "availability_date": {"name": "availability_date", "description": "Date when the organization becomes available.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.availability_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.available_for_hire"]}, "code": {"name": "code", "description": "Code assigned to the organization for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.code"]}, "organization_description": {"name": "organization_description", "description": "The description of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.organization_description"]}, "external_url": {"name": "external_url", "description": "External URL associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.external_url"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hiring_freeze"]}, "is_inactive": {"name": "is_inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.inactive"]}, "inactive_date": {"name": "inactive_date", "description": "Date when the organization becomes inactive", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.inactive_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.include_manager_in_name"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.include_organization_code_in_name"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.last_updated_date_time"]}, "organization_location": {"name": "organization_location", "description": "The location of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.organization_location"]}, "manager_id": {"name": "manager_id", "description": "Identifier for the manager associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.manager_id"]}, "organization_name": {"name": "organization_name", "description": "Name of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.organization_name"]}, "organization_code": {"name": "organization_code", "description": "Code associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.organization_code"]}, "organization_owner_id": {"name": "organization_owner_id", "description": "Identifier for the owner of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.organization_owner_id"]}, "staffing_model": {"name": "staffing_model", "description": "Staffing model associated with the organization", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.staffing_model"]}, "organization_sub_type": {"name": "organization_sub_type", "description": "Subtype or classification of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.organization_sub_type"]}, "superior_organization_id": {"name": "superior_organization_id", "description": "Identifier for the superior organization, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.superior_organization_id"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.supervisory_position_availability_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.supervisory_position_earliest_hire_date"]}, "supervisory_position_time_type": {"name": "supervisory_position_time_type", "description": "Time type associated with supervisory positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.supervisory_position_time_type"]}, "supervisory_position_worker_type": {"name": "supervisory_position_worker_type", "description": "Worker type associated with supervisory positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.supervisory_position_worker_type"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.top_level_organization_id"]}, "organization_type": {"name": "organization_type", "description": "Type or category of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.organization_type"]}, "visibility": {"name": "visibility", "description": "Visibility level of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.visibility"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "ephemeral", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1782422567.8007963, "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.apply_source_relation(package_name='workday') }}\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", "doc_blocks": ["doc.workday.organization"], "language": "sql", "refs": [{"name": "stg_workday__organization_base", "package": null, "version": null}, {"name": "stg_workday__organization_base", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.workday.get_organization_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.apply_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\".\"public_workday_dev\".\"stg_workday__organization_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n availability_date as availability_date,\n available_for_hire as available_for_hire,\n code as code,\n description as description,\n external_url as external_url,\n hiring_freeze as hiring_freeze,\n id as id,\n inactive as inactive,\n inactive_date as inactive_date,\n include_manager_in_name as include_manager_in_name,\n include_organization_code_in_name as include_organization_code_in_name,\n last_updated_date_time as last_updated_date_time,\n location as location,\n manager_id as manager_id,\n name as name,\n organization_code as organization_code,\n organization_owner_id as organization_owner_id,\n staffing_model as staffing_model,\n sub_type as sub_type,\n superior_organization_id as superior_organization_id,\n supervisory_position_availability_date as supervisory_position_availability_date,\n supervisory_position_earliest_hire_date as supervisory_position_earliest_hire_date,\n supervisory_position_time_type as supervisory_position_time_type,\n supervisory_position_worker_type as supervisory_position_worker_type,\n top_level_organization_id as top_level_organization_id,\n type as type,\n visibility as visibility\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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, "primary_key": [], "time_spine": null}, "model.workday.stg_workday__worker_position_organization_base": {"database": "postgres", "schema": "public_workday_dev", "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": "8fb4675078f05d5e0380671b81872e5e621273f17d1a5dd43e51771a56bb8dcd"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "view", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1782422567.031816, "relation_name": "\"postgres\".\"public_workday_dev\".\"stg_workday__worker_position_organization_base\"", "raw_code": "{% if var('workday_union_schemas', []) | length > 0 or var('workday_union_databases', []) | length > 0 %}\n\n{{\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}}\n\n{% else %}\n\n{{\n fivetran_utils.union_connections(\n connection_dictionary='workday_sources',\n single_source_name='workday',\n single_table_name='worker_position_organization_history'\n )\n}}\n\n{% endif %}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["workday", "worker_position_organization_history"], ["workday", "worker_position_organization_history"]], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.fivetran_utils.union_connections"], "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-- ** Values passed to adapter.get_relation:\n -- full-identifier_var: workday_worker_position_organization_history_identifier\n -- database: postgres \n -- schema: public\n -- identifier: workday_worker_position_organization_history_data\n\n\n select\n \"_fivetran_start\",\n \"index\",\n \"position_id\",\n \"worker_id\",\n \"_fivetran_active\",\n \"_fivetran_end\",\n \"_fivetran_synced\",\n \"date_of_pay_group_assignment\",\n \"organization_id\",\n \"primary_business_site\",\n \"used_in_change_organization_assignments\"\n from \"postgres\".\"public\".\"workday_worker_position_organization_history_data\" as source_table\n\n \n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.workday.stg_workday__country_personal_information_base": {"database": "postgres", "schema": "public_workday_dev", "name": "stg_workday__country_personal_information_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__country_personal_information_base.sql", "original_file_path": "models/staging/base/stg_workday__country_personal_information_base.sql", "unique_id": "model.workday.stg_workday__country_personal_information_base", "fqn": ["workday", "staging", "base", "stg_workday__country_personal_information_base"], "alias": "stg_workday__country_personal_information_base", "checksum": {"name": "sha256", "checksum": "b727ab58305d1f732a51feb1182b1df1b24aabfd62f71a68cdbe2445b16008ef"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "view", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1782422567.0611491, "relation_name": "\"postgres\".\"public_workday_dev\".\"stg_workday__country_personal_information_base\"", "raw_code": "{% if var('workday_union_schemas', []) | length > 0 or var('workday_union_databases', []) | length > 0 %}\n\n{{\n fivetran_utils.union_data(\n table_identifier='country_personal_information',\n database_variable='workday_database',\n schema_variable='workday_schema',\n default_database=target.database,\n default_schema='workday',\n default_variable='country_personal_information',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}\n\n{% else %}\n\n{{\n fivetran_utils.union_connections(\n connection_dictionary='workday_sources',\n single_source_name='workday',\n single_table_name='country_personal_information'\n )\n}}\n\n{% endif %}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["workday", "country_personal_information"], ["workday", "country_personal_information"]], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.fivetran_utils.union_connections"], "nodes": ["source.workday.workday.country_personal_information"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__country_personal_information_base.sql", "compiled": true, "compiled_code": "\n\n\n\n\n-- ** Values passed to adapter.get_relation:\n -- full-identifier_var: workday_country_personal_information_identifier\n -- database: postgres \n -- schema: public\n -- identifier: workday_country_personal_information_data\n\n\n select\n \"fivetran_id\",\n \"personal_info_common_id\",\n \"country_code\",\n \"_fivetran_synced\",\n \"_fivetran_deleted\",\n \"gender\",\n \"hispanic_or_latino\",\n \"hukou_locality\",\n \"hukou_postal_code\",\n \"hukou_region_code\",\n \"hukou_subregion_code\",\n \"hukou_type_code\",\n \"local_hukou\",\n \"marital_status\",\n \"marital_status_date\",\n \"native_region_code\",\n \"native_region\",\n \"personnel_file_agency_for_person\",\n \"political_affiliation\",\n \"religion\",\n \"social_benefits_locality\"\n from \"postgres\".\"public\".\"workday_country_personal_information_data\" as source_table\n\n \n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.workday.stg_workday__position_organization_base": {"database": "postgres", "schema": "public_workday_dev", "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": "6255bc9e4181741a97a59337041166cc95ee6131b3d562bf2b2d4d5d7bf531c8"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "view", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1782422567.0717137, "relation_name": "\"postgres\".\"public_workday_dev\".\"stg_workday__position_organization_base\"", "raw_code": "{% if var('workday_union_schemas', []) | length > 0 or var('workday_union_databases', []) | length > 0 %}\n\n{{\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}}\n\n{% else %}\n\n{{\n fivetran_utils.union_connections(\n connection_dictionary='workday_sources',\n single_source_name='workday',\n single_table_name='position_organization'\n )\n}}\n\n{% endif %}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["workday", "position_organization"], ["workday", "position_organization"]], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.fivetran_utils.union_connections"], "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-- ** Values passed to adapter.get_relation:\n -- full-identifier_var: workday_position_organization_identifier\n -- database: postgres \n -- schema: public\n -- identifier: workday_position_organization_data\n\n\n select\n \"organization_id\",\n \"position_id\",\n \"type\",\n \"_fivetran_deleted\",\n \"_fivetran_synced\",\n \"_fivetran_active\",\n \"_fivetran_start\",\n \"_fivetran_end\"\n from \"postgres\".\"public\".\"workday_position_organization_data\" as source_table\n\n \n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.workday.stg_workday__job_family_job_profile_base": {"database": "postgres", "schema": "public_workday_dev", "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": "152c3630d55fea360ea898507ef4c17077217572a76af557486dec979e2a9e29"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "view", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1782422567.0833058, "relation_name": "\"postgres\".\"public_workday_dev\".\"stg_workday__job_family_job_profile_base\"", "raw_code": "{% if var('workday_union_schemas', []) | length > 0 or var('workday_union_databases', []) | length > 0 %}\n\n{{\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}}\n\n{% else %}\n\n{{\n fivetran_utils.union_connections(\n connection_dictionary='workday_sources',\n single_source_name='workday',\n single_table_name='job_family_job_profile'\n )\n}}\n\n{% endif %}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["workday", "job_family_job_profile"], ["workday", "job_family_job_profile"]], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.fivetran_utils.union_connections"], "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-- ** Values passed to adapter.get_relation:\n -- full-identifier_var: workday_job_family_job_profile_identifier\n -- database: postgres \n -- schema: public\n -- identifier: workday_job_family_job_profile_data\n\n\n select\n \"job_family_id\",\n \"job_profile_id\",\n \"_fivetran_deleted\",\n \"_fivetran_synced\"\n from \"postgres\".\"public\".\"workday_job_family_job_profile_data\" as source_table\n\n \n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.workday.stg_workday__organization_role_worker_base": {"database": "postgres", "schema": "public_workday_dev", "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": "adc863a149df96e9d0a08ef87705639547ef625f3442563bf01ea138ba95b00a"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "view", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1782422567.094331, "relation_name": "\"postgres\".\"public_workday_dev\".\"stg_workday__organization_role_worker_base\"", "raw_code": "{% if var('workday_union_schemas', []) | length > 0 or var('workday_union_databases', []) | length > 0 %}\n\n{{\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}}\n\n{% else %}\n\n{{\n fivetran_utils.union_connections(\n connection_dictionary='workday_sources',\n single_source_name='workday',\n single_table_name='organization_role_worker'\n )\n}}\n\n{% endif %}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["workday", "organization_role_worker"], ["workday", "organization_role_worker"]], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.fivetran_utils.union_connections"], "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-- ** Values passed to adapter.get_relation:\n -- full-identifier_var: workday_organization_role_worker_identifier\n -- database: postgres \n -- schema: public\n -- identifier: workday_organization_role_worker_data\n\n\n select\n \"associated_worker_id\",\n \"organization_id\",\n \"role_id\",\n \"_fivetran_deleted\",\n \"_fivetran_synced\"\n from \"postgres\".\"public\".\"workday_organization_role_worker_data\" as source_table\n\n \n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.workday.stg_workday__organization_base": {"database": "postgres", "schema": "public_workday_dev", "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": "ea8672f9519f4eeab1036b11e1a9b551cc45ce7c8cd1ed62f6090ff799ae5a3b"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "view", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1782422567.1042967, "relation_name": "\"postgres\".\"public_workday_dev\".\"stg_workday__organization_base\"", "raw_code": "{% if var('workday_union_schemas', []) | length > 0 or var('workday_union_databases', []) | length > 0 %}\n\n{{\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}}\n\n{% else %}\n\n{{\n fivetran_utils.union_connections(\n connection_dictionary='workday_sources',\n single_source_name='workday',\n single_table_name='organization'\n )\n}}\n\n{% endif %}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["workday", "organization"], ["workday", "organization"]], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.fivetran_utils.union_connections"], "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-- ** Values passed to adapter.get_relation:\n -- full-identifier_var: workday_organization_identifier\n -- database: postgres \n -- schema: public\n -- identifier: workday_organization_data\n\n\n select\n \"id\",\n \"_fivetran_deleted\",\n \"_fivetran_synced\",\n \"availability_date\",\n \"available_for_hire\",\n \"code\",\n \"description\",\n \"external_url\",\n \"hiring_freeze\",\n \"inactive\",\n \"inactive_date\",\n \"include_manager_in_name\",\n \"include_organization_code_in_name\",\n \"last_updated_date_time\",\n \"location\",\n \"manager_id\",\n \"name\",\n \"organization_code\",\n \"organization_owner_id\",\n \"staffing_model\",\n \"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\",\n \"visibility\"\n from \"postgres\".\"public\".\"workday_organization_data\" as source_table\n\n \n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.workday.stg_workday__worker_position_base": {"database": "postgres", "schema": "public_workday_dev", "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": "ff511a863283db5a77889839759c0875a54fd99843abe97a00a14b165026e935"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "view", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1782422567.1141407, "relation_name": "\"postgres\".\"public_workday_dev\".\"stg_workday__worker_position_base\"", "raw_code": "{% if var('workday_union_schemas', []) | length > 0 or var('workday_union_databases', []) | length > 0 %}\n\n{{\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}}\n\n{% else %}\n\n{{\n fivetran_utils.union_connections(\n connection_dictionary='workday_sources',\n single_source_name='workday',\n single_table_name='worker_position_history'\n )\n}}\n\n{% endif %}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["workday", "worker_position_history"], ["workday", "worker_position_history"]], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.fivetran_utils.union_connections"], "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-- ** Values passed to adapter.get_relation:\n -- full-identifier_var: workday_worker_position_history_identifier\n -- database: postgres \n -- schema: public\n -- identifier: workday_worker_position_history_data\n\n\n select\n \"position_id\",\n \"worker_id\",\n \"_fivetran_active\",\n \"_fivetran_start\",\n \"_fivetran_end\",\n \"_fivetran_deleted\",\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 \"effective_date\",\n \"employee_type\",\n \"end_date\",\n \"end_employment_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 \"home_country\",\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 \"postgres\".\"public\".\"workday_worker_position_history_data\" as source_table\n\n \n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.workday.stg_workday__position_base": {"database": "postgres", "schema": "public_workday_dev", "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": "679ee677d1044dbd90f23f814884da57d73b63af6efdc4b7d5d249f7b1dd6d38"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "view", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1782422567.123991, "relation_name": "\"postgres\".\"public_workday_dev\".\"stg_workday__position_base\"", "raw_code": "{% if var('workday_union_schemas', []) | length > 0 or var('workday_union_databases', []) | length > 0 %}\n\n{{\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}}\n\n{% else %}\n\n{{\n fivetran_utils.union_connections(\n connection_dictionary='workday_sources',\n single_source_name='workday',\n single_table_name='position'\n )\n}}\n\n{% endif %}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["workday", "position"], ["workday", "position"]], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.fivetran_utils.union_connections"], "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-- ** Values passed to adapter.get_relation:\n -- full-identifier_var: workday_position_identifier\n -- database: postgres \n -- schema: public\n -- identifier: workday_position_data\n\n\n select\n \"id\",\n \"_fivetran_deleted\",\n \"_fivetran_synced\",\n \"academic_tenure_eligible\",\n \"availability_date\",\n \"available_for_hire\",\n \"available_for_overlap\",\n \"available_for_recruiting\",\n \"closed\",\n \"compensation_grade_code\",\n \"compensation_grade_profile_code\",\n \"compensation_package_code\",\n \"compensation_step_code\",\n \"critical_job\",\n \"difficulty_to_fill_code\",\n \"earliest_hire_date\",\n \"earliest_overlap_date\",\n \"effective_date\",\n \"hiring_freeze\",\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\",\n \"worker_for_filled_position_id\",\n \"worker_position_id\",\n \"worker_type_code\"\n from \"postgres\".\"public\".\"workday_position_data\" as source_table\n\n \n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.workday.stg_workday__job_family_job_family_group_base": {"database": "postgres", "schema": "public_workday_dev", "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": "36b48a4176b09a6dcc94ceb4c11b934a76b74e4fe3ace0da51ad35bd4dc65dbf"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "view", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1782422567.1348784, "relation_name": "\"postgres\".\"public_workday_dev\".\"stg_workday__job_family_job_family_group_base\"", "raw_code": "{% if var('workday_union_schemas', []) | length > 0 or var('workday_union_databases', []) | length > 0 %}\n\n{{\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}}\n\n{% else %}\n\n{{\n fivetran_utils.union_connections(\n connection_dictionary='workday_sources',\n single_source_name='workday',\n single_table_name='job_family_job_family_group'\n )\n}}\n\n{% endif %}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["workday", "job_family_job_family_group"], ["workday", "job_family_job_family_group"]], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.fivetran_utils.union_connections"], "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-- ** Values passed to adapter.get_relation:\n -- full-identifier_var: workday_job_family_job_family_group_identifier\n -- database: postgres \n -- schema: public\n -- identifier: workday_job_family_job_family_group_data\n\n\n select\n \"job_family_group_id\",\n \"job_family_id\",\n \"_fivetran_deleted\",\n \"_fivetran_synced\"\n from \"postgres\".\"public\".\"workday_job_family_job_family_group_data\" as source_table\n\n \n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.workday.stg_workday__personal_information_ethnicity_base": {"database": "postgres", "schema": "public_workday_dev", "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": "fc3dc3800dba472b583b6dbb542fd0ed19a2ca70f9c571364be055b981990522"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "view", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1782422567.1446178, "relation_name": "\"postgres\".\"public_workday_dev\".\"stg_workday__personal_information_ethnicity_base\"", "raw_code": "{% if var('workday_union_schemas', []) | length > 0 or var('workday_union_databases', []) | length > 0 %}\n\n{{\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}}\n\n{% else %}\n\n{{\n fivetran_utils.union_connections(\n connection_dictionary='workday_sources',\n single_source_name='workday',\n single_table_name='personal_information_ethnicity'\n )\n}}\n\n{% endif %}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["workday", "personal_information_ethnicity"], ["workday", "personal_information_ethnicity"]], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.fivetran_utils.union_connections"], "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-- ** Values passed to adapter.get_relation:\n -- full-identifier_var: workday_personal_information_ethnicity_identifier\n -- database: postgres \n -- schema: public\n -- identifier: workday_personal_information_ethnicity_data\n\n\n select\n \"_fivetran_deleted\",\n \"_fivetran_synced\",\n \"id\",\n \"country_personal_information_id\",\n \"ethnicity_code\"\n from \"postgres\".\"public\".\"workday_personal_information_ethnicity_data\" as source_table\n\n \n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.workday.stg_workday__organization_role_base": {"database": "postgres", "schema": "public_workday_dev", "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": "13731bc5d96ecbfd9b9b2dfbd7cf2232bc8558bbfd6f2668ae9bf4d6437dccca"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "view", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1782422567.1543546, "relation_name": "\"postgres\".\"public_workday_dev\".\"stg_workday__organization_role_base\"", "raw_code": "{% if var('workday_union_schemas', []) | length > 0 or var('workday_union_databases', []) | length > 0 %}\n\n{{\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}}\n\n{% else %}\n\n{{\n fivetran_utils.union_connections(\n connection_dictionary='workday_sources',\n single_source_name='workday',\n single_table_name='organization_role'\n )\n}}\n\n{% endif %}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["workday", "organization_role"], ["workday", "organization_role"]], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.fivetran_utils.union_connections"], "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-- ** Values passed to adapter.get_relation:\n -- full-identifier_var: workday_organization_role_identifier\n -- database: postgres \n -- schema: public\n -- identifier: workday_organization_role_data\n\n\n select\n \"organization_id\",\n \"role_id\",\n \"_fivetran_deleted\",\n \"_fivetran_synced\",\n \"organization_role_code\"\n from \"postgres\".\"public\".\"workday_organization_role_data\" as source_table\n\n \n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.workday.stg_workday__worker_base": {"database": "postgres", "schema": "public_workday_dev", "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": "4d51c6e6d9a4b6262396ef97bc56c5a86efd124a9a736da1bf59a12c62439145"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "view", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1782422567.164262, "relation_name": "\"postgres\".\"public_workday_dev\".\"stg_workday__worker_base\"", "raw_code": "{% if var('workday_union_schemas', []) | length > 0 or var('workday_union_databases', []) | length > 0 %}\n\n{{\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}}\n\n{% else %}\n\n{{\n fivetran_utils.union_connections(\n connection_dictionary='workday_sources',\n single_source_name='workday',\n single_table_name='worker_history'\n )\n}}\n\n{% endif %}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["workday", "worker_history"], ["workday", "worker_history"]], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.fivetran_utils.union_connections"], "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-- ** Values passed to adapter.get_relation:\n -- full-identifier_var: workday_worker_history_identifier\n -- database: postgres \n -- schema: public\n -- identifier: workday_worker_history_data\n\n\n select\n \"id\",\n \"_fivetran_active\",\n \"_fivetran_start\",\n \"_fivetran_end\",\n \"_fivetran_deleted\",\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 \"end_employment_date\",\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 \"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\",\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_date\",\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 \"postgres\".\"public\".\"workday_worker_history_data\" as source_table\n\n \n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.workday.stg_workday__job_family_base": {"database": "postgres", "schema": "public_workday_dev", "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": "cb84ca2a5e3f1f77713a9f5050fcc5b797e3ddde03421393569e6406ff80496c"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "view", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1782422567.1742773, "relation_name": "\"postgres\".\"public_workday_dev\".\"stg_workday__job_family_base\"", "raw_code": "{% if var('workday_union_schemas', []) | length > 0 or var('workday_union_databases', []) | length > 0 %}\n\n{{\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}}\n\n{% else %}\n\n{{\n fivetran_utils.union_connections(\n connection_dictionary='workday_sources',\n single_source_name='workday',\n single_table_name='job_family'\n )\n}}\n\n{% endif %}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["workday", "job_family"], ["workday", "job_family"]], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.fivetran_utils.union_connections"], "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-- ** Values passed to adapter.get_relation:\n -- full-identifier_var: workday_job_family_identifier\n -- database: postgres \n -- schema: public\n -- identifier: workday_job_family_data\n\n\n select\n \"id\",\n \"_fivetran_deleted\",\n \"_fivetran_synced\",\n \"effective_date\",\n \"inactive\",\n \"job_family_code\",\n \"summary\"\n from \"postgres\".\"public\".\"workday_job_family_data\" as source_table\n\n \n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.workday.stg_workday__job_profile_base": {"database": "postgres", "schema": "public_workday_dev", "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": "f656188f696d9cee40d74a21c4232e47e8ede07b1bc86cadef233a13597ca6b6"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "view", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1782422567.1854672, "relation_name": "\"postgres\".\"public_workday_dev\".\"stg_workday__job_profile_base\"", "raw_code": "{% if var('workday_union_schemas', []) | length > 0 or var('workday_union_databases', []) | length > 0 %}\n\n{{\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}}\n\n{% else %}\n\n{{\n fivetran_utils.union_connections(\n connection_dictionary='workday_sources',\n single_source_name='workday',\n single_table_name='job_profile'\n )\n}}\n\n{% endif %}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["workday", "job_profile"], ["workday", "job_profile"]], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.fivetran_utils.union_connections"], "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-- ** Values passed to adapter.get_relation:\n -- full-identifier_var: workday_job_profile_identifier\n -- database: postgres \n -- schema: public\n -- identifier: workday_job_profile_data\n\n\n select\n \"id\",\n \"_fivetran_deleted\",\n \"_fivetran_synced\",\n \"additional_job_description\",\n \"compensation_grade_id\",\n \"critical_job\",\n \"description\",\n \"difficulty_to_fill\",\n \"effective_date\",\n \"inactive\",\n \"include_job_code_in_name\",\n \"job_category_id\",\n \"job_profile_code\",\n \"level\",\n \"management_level\",\n \"private_title\",\n \"public_job\",\n \"referral_payment_plan\",\n \"summary\",\n \"title\",\n \"union_code\",\n \"union_membership_requirement\",\n \"work_shift_required\",\n \"work_study_award_source_code\",\n \"work_study_requirement_option_code\"\n from \"postgres\".\"public\".\"workday_job_profile_data\" as source_table\n\n \n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.workday.stg_workday__organization_job_family_base": {"database": "postgres", "schema": "public_workday_dev", "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": "a556a2aa788ac4eb7c1d7a497ad0b0a48a4c0d67a15a11f9b1d624250d3a6c7e"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "view", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1782422567.195213, "relation_name": "\"postgres\".\"public_workday_dev\".\"stg_workday__organization_job_family_base\"", "raw_code": "{% if var('workday_union_schemas', []) | length > 0 or var('workday_union_databases', []) | length > 0 %}\n\n{{\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}}\n\n{% else %}\n\n{{\n fivetran_utils.union_connections(\n connection_dictionary='workday_sources',\n single_source_name='workday',\n single_table_name='organization_job_family'\n )\n}}\n\n{% endif %}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["workday", "organization_job_family"], ["workday", "organization_job_family"]], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.fivetran_utils.union_connections"], "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-- ** Values passed to adapter.get_relation:\n -- full-identifier_var: workday_organization_job_family_identifier\n -- database: postgres \n -- schema: public\n -- identifier: workday_organization_job_family_data\n\n\n select\n \"job_family_id\",\n \"organization_id\",\n \"_fivetran_deleted\",\n \"_fivetran_synced\",\n \"job_family_group_id\"\n from \"postgres\".\"public\".\"workday_organization_job_family_data\" as source_table\n\n \n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.workday.stg_workday__position_job_profile_base": {"database": "postgres", "schema": "public_workday_dev", "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": "544df3e1a931f119868d0b3bd9362f07c90b29d7d190472e4e9ffc9cc26a38ed"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "view", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1782422567.2050567, "relation_name": "\"postgres\".\"public_workday_dev\".\"stg_workday__position_job_profile_base\"", "raw_code": "{% if var('workday_union_schemas', []) | length > 0 or var('workday_union_databases', []) | length > 0 %}\n\n{{\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}}\n\n{% else %}\n\n{{\n fivetran_utils.union_connections(\n connection_dictionary='workday_sources',\n single_source_name='workday',\n single_table_name='position_job_profile'\n )\n}}\n\n{% endif %}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["workday", "position_job_profile"], ["workday", "position_job_profile"]], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.fivetran_utils.union_connections"], "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-- ** Values passed to adapter.get_relation:\n -- full-identifier_var: workday_position_job_profile_identifier\n -- database: postgres \n -- schema: public\n -- identifier: workday_position_job_profile_data\n\n\n select\n \"job_profile_id\",\n \"position_id\",\n \"_fivetran_deleted\",\n \"_fivetran_synced\",\n \"difficulty_to_fill_code\",\n \"is_critical_job\",\n \"job_category_code\",\n \"management_level_code\",\n \"name\",\n \"work_shift_required\"\n from \"postgres\".\"public\".\"workday_position_job_profile_data\" as source_table\n\n \n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.workday.stg_workday__worker_leave_status_base": {"database": "postgres", "schema": "public_workday_dev", "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": "bdf032e8ad46151ffe75d51e7f1b5f8f8dcb9565faa0c7ab57371fa24d42aaa9"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "view", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1782422567.2148333, "relation_name": "\"postgres\".\"public_workday_dev\".\"stg_workday__worker_leave_status_base\"", "raw_code": "{% if var('workday_union_schemas', []) | length > 0 or var('workday_union_databases', []) | length > 0 %}\n\n{{\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}}\n\n{% else %}\n\n{{\n fivetran_utils.union_connections(\n connection_dictionary='workday_sources',\n single_source_name='workday',\n single_table_name='worker_leave_status'\n )\n}}\n\n{% endif %}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["workday", "worker_leave_status"], ["workday", "worker_leave_status"]], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.fivetran_utils.union_connections"], "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-- ** Values passed to adapter.get_relation:\n -- full-identifier_var: workday_worker_leave_status_identifier\n -- database: postgres \n -- schema: public\n -- identifier: workday_worker_leave_status_data\n\n\n select\n \"leave_request_event_id\",\n \"worker_id\",\n \"_fivetran_deleted\",\n \"_fivetran_synced\",\n \"adoption_notification_date\",\n \"adoption_placement_date\",\n \"age_of_dependent\",\n \"benefits_effect\",\n \"caesarean_section_birth\",\n \"child_birth_date\",\n \"child_sdate_of_death\",\n \"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_return_event\",\n \"leave_start_date\",\n \"leave_status_code\",\n \"leave_type_reason\",\n \"location_during_leave\",\n \"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\",\n \"paid_time_off_accrual_effect\",\n \"payroll_effect\",\n \"single_parent_indicator\",\n \"social_security_disability_code\",\n \"stillbirth_baby_deceased\",\n \"stock_vesting_effect\",\n \"stop_payment_date\",\n \"week_of_confinement\",\n \"work_related\"\n from \"postgres\".\"public\".\"workday_worker_leave_status_data\" as source_table\n\n \n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.workday.stg_workday__military_service_base": {"database": "postgres", "schema": "public_workday_dev", "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": "0002104a3226b80242fa760d60fcd83988a97f9b768f1a099413a48c336fa6fe"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "view", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1782422567.288491, "relation_name": "\"postgres\".\"public_workday_dev\".\"stg_workday__military_service_base\"", "raw_code": "{% if var('workday_union_schemas', []) | length > 0 or var('workday_union_databases', []) | length > 0 %}\n\n{{\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}}\n\n{% else %}\n\n{{\n fivetran_utils.union_connections(\n connection_dictionary='workday_sources',\n single_source_name='workday',\n single_table_name='military_service'\n )\n}}\n\n{% endif %}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["workday", "military_service"], ["workday", "military_service"]], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.fivetran_utils.union_connections"], "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-- ** Values passed to adapter.get_relation:\n -- full-identifier_var: workday_military_service_identifier\n -- database: postgres \n -- schema: public\n -- identifier: workday_military_service_data\n\n\n select\n \"_fivetran_deleted\",\n \"_fivetran_synced\",\n \"personal_info_common_id\",\n \"discharge_date\",\n \"discharge_type\",\n \"notes\",\n \"rank\",\n \"service\",\n \"status_id\",\n \"status_begin_date\"\n from \"postgres\".\"public\".\"workday_military_service_data\" as source_table\n\n \n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.workday.stg_workday__job_family_group_base": {"database": "postgres", "schema": "public_workday_dev", "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": "1ea1a8a3c0232805dda078ee00fc1c01c35571d1d6cd5bd484f00a4f09f7aa81"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "view", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1782422567.2988608, "relation_name": "\"postgres\".\"public_workday_dev\".\"stg_workday__job_family_group_base\"", "raw_code": "{% if var('workday_union_schemas', []) | length > 0 or var('workday_union_databases', []) | length > 0 %}\n\n{{\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}}\n\n{% else %}\n\n{{\n fivetran_utils.union_connections(\n connection_dictionary='workday_sources',\n single_source_name='workday',\n single_table_name='job_family_group'\n )\n}}\n\n{% endif %}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["workday", "job_family_group"], ["workday", "job_family_group"]], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.fivetran_utils.union_connections"], "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-- ** Values passed to adapter.get_relation:\n -- full-identifier_var: workday_job_family_group_identifier\n -- database: postgres \n -- schema: public\n -- identifier: workday_job_family_group_data\n\n\n select\n \"id\",\n \"_fivetran_deleted\",\n \"_fivetran_synced\",\n \"effective_date\",\n \"inactive\",\n \"job_family_group_code\",\n \"summary\"\n from \"postgres\".\"public\".\"workday_job_family_group_data\" as source_table\n\n \n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.workday.stg_workday__personal_information_base": {"database": "postgres", "schema": "public_workday_dev", "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": "91692a48e5d1363b008fd67ecbad8bc34018f58f184834b2e0a139f3d09006aa"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "view", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1782422567.308683, "relation_name": "\"postgres\".\"public_workday_dev\".\"stg_workday__personal_information_base\"", "raw_code": "{% if var('workday_union_schemas', []) | length > 0 or var('workday_union_databases', []) | length > 0 %}\n\n{{\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}}\n\n{% else %}\n\n{{\n fivetran_utils.union_connections(\n connection_dictionary='workday_sources',\n single_source_name='workday',\n single_table_name='personal_information_history'\n )\n}}\n\n{% endif %}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["workday", "personal_information_history"], ["workday", "personal_information_history"]], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.fivetran_utils.union_connections"], "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-- ** Values passed to adapter.get_relation:\n -- full-identifier_var: workday_personal_information_history_identifier\n -- database: postgres \n -- schema: public\n -- identifier: workday_personal_information_history_data\n\n\n select\n \"id\",\n \"type\",\n \"_fivetran_active\",\n \"_fivetran_start\",\n \"_fivetran_end\",\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 \"postgres\".\"public\".\"workday_personal_information_history_data\" as source_table\n\n \n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.workday.stg_workday__personal_information_common_data_base": {"database": "postgres", "schema": "public_workday_dev", "name": "stg_workday__personal_information_common_data_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__personal_information_common_data_base.sql", "original_file_path": "models/staging/base/stg_workday__personal_information_common_data_base.sql", "unique_id": "model.workday.stg_workday__personal_information_common_data_base", "fqn": ["workday", "staging", "base", "stg_workday__personal_information_common_data_base"], "alias": "stg_workday__personal_information_common_data_base", "checksum": {"name": "sha256", "checksum": "17e28e50b676452ba33e56513e31b86e6ee7ca1ea711a2422f4ccdd856cd92de"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "view", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1782422567.3183599, "relation_name": "\"postgres\".\"public_workday_dev\".\"stg_workday__personal_information_common_data_base\"", "raw_code": "{% if var('workday_union_schemas', []) | length > 0 or var('workday_union_databases', []) | length > 0 %}\n\n{{\n fivetran_utils.union_data(\n table_identifier='personal_information_common_data',\n database_variable='workday_database',\n schema_variable='workday_schema',\n default_database=target.database,\n default_schema='workday',\n default_variable='personal_information_common_data',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}\n\n{% else %}\n\n{{\n fivetran_utils.union_connections(\n connection_dictionary='workday_sources',\n single_source_name='workday',\n single_table_name='personal_information_common_data'\n )\n}}\n\n{% endif %}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["workday", "personal_information_common_data"], ["workday", "personal_information_common_data"]], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.fivetran_utils.union_connections"], "nodes": ["source.workday.workday.personal_information_common_data"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__personal_information_common_data_base.sql", "compiled": true, "compiled_code": "\n\n\n\n\n-- ** Values passed to adapter.get_relation:\n -- full-identifier_var: workday_personal_information_common_data_identifier\n -- database: postgres \n -- schema: public\n -- identifier: workday_personal_information_common_data_data\n\n\n select\n \"fivetran_id\",\n \"worker_id\",\n \"_fivetran_synced\",\n \"_fivetran_deleted\",\n \"additional_nationality\",\n \"blood_type\",\n \"citizenship_status\",\n \"city_of_birth\",\n \"city_of_birth_code\",\n \"country_of_birth\",\n \"country_region_of_birth\",\n \"date_of_birth\",\n \"date_of_death\",\n \"last_medical_exam_date\",\n \"last_medical_exam_valid_to\",\n \"medical_exam_notes\",\n \"primary_nationality\",\n \"region_of_birth\"\n from \"postgres\".\"public\".\"workday_personal_information_common_data_data\" as source_table\n\n \n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.workday.stg_workday__person_name_base": {"database": "postgres", "schema": "public_workday_dev", "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": "e8222db7d9bd75b00b69b2ca6e6fce6a6418994cf7dfd3f0d81302f266a3f005"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "view", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1782422567.3282785, "relation_name": "\"postgres\".\"public_workday_dev\".\"stg_workday__person_name_base\"", "raw_code": "{% if var('workday_union_schemas', []) | length > 0 or var('workday_union_databases', []) | length > 0 %}\n\n{{\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}}\n\n{% else %}\n\n{{\n fivetran_utils.union_connections(\n connection_dictionary='workday_sources',\n single_source_name='workday',\n single_table_name='person_name'\n )\n}}\n\n{% endif %}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["workday", "person_name"], ["workday", "person_name"]], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.fivetran_utils.union_connections"], "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-- ** Values passed to adapter.get_relation:\n -- full-identifier_var: workday_person_name_identifier\n -- database: postgres \n -- schema: public\n -- identifier: workday_person_name_data\n\n\n select\n \"index\",\n \"personal_info_system_id\",\n \"type\",\n \"_fivetran_deleted\",\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 \"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 from \"postgres\".\"public\".\"workday_person_name_data\" as source_table\n\n \n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.workday.stg_workday__person_contact_email_address_base": {"database": "postgres", "schema": "public_workday_dev", "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": "9e210cc791ae13d554d6c3bff0cc9757de7357a62215c131c0ed531db1c68600"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "view", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "view", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1782422567.339233, "relation_name": "\"postgres\".\"public_workday_dev\".\"stg_workday__person_contact_email_address_base\"", "raw_code": "{% if var('workday_union_schemas', []) | length > 0 or var('workday_union_databases', []) | length > 0 %}\n\n{{\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}}\n\n{% else %}\n\n{{\n fivetran_utils.union_connections(\n connection_dictionary='workday_sources',\n single_source_name='workday',\n single_table_name='person_contact_email_address'\n )\n}}\n\n{% endif %}", "doc_blocks": [], "language": "sql", "refs": [], "sources": [["workday", "person_contact_email_address"], ["workday", "person_contact_email_address"]], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.fivetran_utils.union_connections"], "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-- ** Values passed to adapter.get_relation:\n -- full-identifier_var: workday_person_contact_email_address_identifier\n -- database: postgres \n -- schema: public\n -- identifier: workday_person_contact_email_address_data\n\n\n select\n \"id\",\n \"personal_info_system_id\",\n \"_fivetran_deleted\",\n \"_fivetran_synced\",\n \"email_address\",\n \"email_code\",\n \"email_comment\"\n from \"postgres\".\"public\".\"workday_person_contact_email_address_data\" as source_table\n\n \n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "primary_key": [], "time_spine": null}, "model.workday.int_workday__worker_details": {"database": "postgres", "schema": "public_workday_dev", "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_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "ephemeral", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1782422567.348883, "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", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__worker", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n academic_tenure_date as academic_tenure_date,\n active as active,\n active_status_date as active_status_date,\n annual_currency_summary_currency as annual_currency_summary_currency,\n annual_currency_summary_frequency as annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis as annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay as annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances as annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency as annual_summary_currency,\n annual_summary_frequency as annual_summary_frequency,\n annual_summary_primary_compensation_basis as annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay as annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances as annual_summary_total_salary_and_allowances,\n benefits_service_date as benefits_service_date,\n company_service_date as company_service_date,\n compensation_effective_date as compensation_effective_date,\n compensation_grade_id as compensation_grade_id,\n compensation_grade_profile_id as compensation_grade_profile_id,\n continuous_service_date as continuous_service_date,\n contract_assignment_details as contract_assignment_details,\n contract_currency_code as contract_currency_code,\n contract_end_date as contract_end_date,\n contract_frequency_name as contract_frequency_name,\n contract_pay_rate as contract_pay_rate,\n contract_vendor_name as contract_vendor_name,\n date_entered_workforce as date_entered_workforce,\n days_unemployed as days_unemployed,\n eligible_for_hire as eligible_for_hire,\n eligible_for_rehire_on_latest_termination as eligible_for_rehire_on_latest_termination,\n employee_compensation_currency as employee_compensation_currency,\n employee_compensation_frequency as employee_compensation_frequency,\n employee_compensation_primary_compensation_basis as employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay as employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances as employee_compensation_total_salary_and_allowances,\n end_employment_date as end_employment_date,\n expected_date_of_return as expected_date_of_return,\n expected_retirement_date as expected_retirement_date,\n first_day_of_work as first_day_of_work,\n has_international_assignment as has_international_assignment,\n hire_date as hire_date,\n hire_reason as hire_reason,\n hire_rescinded as hire_rescinded,\n home_country as home_country,\n hourly_frequency_currency as hourly_frequency_currency,\n hourly_frequency_frequency as hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis as hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay as hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances as hourly_frequency_total_salary_and_allowances,\n id as id,\n last_datefor_which_paid as last_datefor_which_paid,\n local_termination_reason as local_termination_reason,\n months_continuous_prior_employment as months_continuous_prior_employment,\n not_returning as not_returning,\n original_hire_date as original_hire_date,\n pay_group_frequency_currency as pay_group_frequency_currency,\n pay_group_frequency_frequency as pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis as pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay as pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances as pay_group_frequency_total_salary_and_allowances,\n pay_through_date as pay_through_date,\n primary_termination_category as primary_termination_category,\n primary_termination_reason as primary_termination_reason,\n probation_end_date as probation_end_date,\n probation_start_date as probation_start_date,\n reason_reference_id as reason_reference_id,\n regrettable_termination as regrettable_termination,\n rehire as rehire,\n resignation_date as resignation_date,\n retired as retired,\n retirement_date as retirement_date,\n retirement_eligibility_date as retirement_eligibility_date,\n return_unknown as return_unknown,\n seniority_date as seniority_date,\n severance_date as severance_date,\n terminated as terminated,\n termination_date as termination_date,\n termination_involuntary as termination_involuntary,\n termination_last_day_of_work as termination_last_day_of_work,\n time_off_service_date as time_off_service_date,\n universal_id as universal_id,\n user_id as user_id,\n vesting_date as vesting_date,\n worker_code as worker_code\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n academic_tenure_date as academic_tenure_date,\n active as active,\n active_status_date as active_status_date,\n annual_currency_summary_currency as annual_currency_summary_currency,\n annual_currency_summary_frequency as annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis as annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay as annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances as annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency as annual_summary_currency,\n annual_summary_frequency as annual_summary_frequency,\n annual_summary_primary_compensation_basis as annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay as annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances as annual_summary_total_salary_and_allowances,\n benefits_service_date as benefits_service_date,\n company_service_date as company_service_date,\n compensation_effective_date as compensation_effective_date,\n compensation_grade_id as compensation_grade_id,\n compensation_grade_profile_id as compensation_grade_profile_id,\n continuous_service_date as continuous_service_date,\n contract_assignment_details as contract_assignment_details,\n contract_currency_code as contract_currency_code,\n contract_end_date as contract_end_date,\n contract_frequency_name as contract_frequency_name,\n contract_pay_rate as contract_pay_rate,\n contract_vendor_name as contract_vendor_name,\n date_entered_workforce as date_entered_workforce,\n days_unemployed as days_unemployed,\n eligible_for_hire as eligible_for_hire,\n eligible_for_rehire_on_latest_termination as eligible_for_rehire_on_latest_termination,\n employee_compensation_currency as employee_compensation_currency,\n employee_compensation_frequency as employee_compensation_frequency,\n employee_compensation_primary_compensation_basis as employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay as employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances as employee_compensation_total_salary_and_allowances,\n end_employment_date as end_employment_date,\n expected_date_of_return as expected_date_of_return,\n expected_retirement_date as expected_retirement_date,\n first_day_of_work as first_day_of_work,\n has_international_assignment as has_international_assignment,\n hire_date as hire_date,\n hire_reason as hire_reason,\n hire_rescinded as hire_rescinded,\n home_country as home_country,\n hourly_frequency_currency as hourly_frequency_currency,\n hourly_frequency_frequency as hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis as hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay as hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances as hourly_frequency_total_salary_and_allowances,\n id as id,\n last_datefor_which_paid as last_datefor_which_paid,\n local_termination_reason as local_termination_reason,\n months_continuous_prior_employment as months_continuous_prior_employment,\n not_returning as not_returning,\n original_hire_date as original_hire_date,\n pay_group_frequency_currency as pay_group_frequency_currency,\n pay_group_frequency_frequency as pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis as pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay as pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances as pay_group_frequency_total_salary_and_allowances,\n pay_through_date as pay_through_date,\n primary_termination_category as primary_termination_category,\n primary_termination_reason as primary_termination_reason,\n probation_end_date as probation_end_date,\n probation_start_date as probation_start_date,\n reason_reference_id as reason_reference_id,\n regrettable_termination as regrettable_termination,\n rehire as rehire,\n resignation_date as resignation_date,\n retired as retired,\n retirement_date as retirement_date,\n retirement_eligibility_date as retirement_eligibility_date,\n return_unknown as return_unknown,\n seniority_date as seniority_date,\n severance_date as severance_date,\n terminated as terminated,\n termination_date as termination_date,\n termination_involuntary as termination_involuntary,\n termination_last_day_of_work as termination_last_day_of_work,\n time_off_service_date as time_off_service_date,\n universal_id as universal_id,\n user_id as user_id,\n vesting_date as vesting_date,\n worker_code as worker_code\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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, "primary_key": [], "time_spine": null}, "model.workday.int_workday__worker_employee_enhanced": {"database": "postgres", "schema": "public_workday_dev", "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": "0ffa12041ff3da9433b9f8b89b46a959fd8b11b14b6bb2a3a0404e7ee166fec1"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "ephemeral", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1782422567.366707, "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 int_worker_personal_details.fivetran_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 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", "doc_blocks": [], "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": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n academic_tenure_date as academic_tenure_date,\n active as active,\n active_status_date as active_status_date,\n annual_currency_summary_currency as annual_currency_summary_currency,\n annual_currency_summary_frequency as annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis as annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay as annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances as annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency as annual_summary_currency,\n annual_summary_frequency as annual_summary_frequency,\n annual_summary_primary_compensation_basis as annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay as annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances as annual_summary_total_salary_and_allowances,\n benefits_service_date as benefits_service_date,\n company_service_date as company_service_date,\n compensation_effective_date as compensation_effective_date,\n compensation_grade_id as compensation_grade_id,\n compensation_grade_profile_id as compensation_grade_profile_id,\n continuous_service_date as continuous_service_date,\n contract_assignment_details as contract_assignment_details,\n contract_currency_code as contract_currency_code,\n contract_end_date as contract_end_date,\n contract_frequency_name as contract_frequency_name,\n contract_pay_rate as contract_pay_rate,\n contract_vendor_name as contract_vendor_name,\n date_entered_workforce as date_entered_workforce,\n days_unemployed as days_unemployed,\n eligible_for_hire as eligible_for_hire,\n eligible_for_rehire_on_latest_termination as eligible_for_rehire_on_latest_termination,\n employee_compensation_currency as employee_compensation_currency,\n employee_compensation_frequency as employee_compensation_frequency,\n employee_compensation_primary_compensation_basis as employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay as employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances as employee_compensation_total_salary_and_allowances,\n end_employment_date as end_employment_date,\n expected_date_of_return as expected_date_of_return,\n expected_retirement_date as expected_retirement_date,\n first_day_of_work as first_day_of_work,\n has_international_assignment as has_international_assignment,\n hire_date as hire_date,\n hire_reason as hire_reason,\n hire_rescinded as hire_rescinded,\n home_country as home_country,\n hourly_frequency_currency as hourly_frequency_currency,\n hourly_frequency_frequency as hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis as hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay as hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances as hourly_frequency_total_salary_and_allowances,\n id as id,\n last_datefor_which_paid as last_datefor_which_paid,\n local_termination_reason as local_termination_reason,\n months_continuous_prior_employment as months_continuous_prior_employment,\n not_returning as not_returning,\n original_hire_date as original_hire_date,\n pay_group_frequency_currency as pay_group_frequency_currency,\n pay_group_frequency_frequency as pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis as pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay as pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances as pay_group_frequency_total_salary_and_allowances,\n pay_through_date as pay_through_date,\n primary_termination_category as primary_termination_category,\n primary_termination_reason as primary_termination_reason,\n probation_end_date as probation_end_date,\n probation_start_date as probation_start_date,\n reason_reference_id as reason_reference_id,\n regrettable_termination as regrettable_termination,\n rehire as rehire,\n resignation_date as resignation_date,\n retired as retired,\n retirement_date as retirement_date,\n retirement_eligibility_date as retirement_eligibility_date,\n return_unknown as return_unknown,\n seniority_date as seniority_date,\n severance_date as severance_date,\n terminated as terminated,\n termination_date as termination_date,\n termination_involuntary as termination_involuntary,\n termination_last_day_of_work as termination_last_day_of_work,\n time_off_service_date as time_off_service_date,\n universal_id as universal_id,\n user_id as user_id,\n vesting_date as vesting_date,\n worker_code as worker_code\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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_common_data as (\nwith base as (\n\n select *\n from \"postgres\".\"public_workday_dev\".\"stg_workday__personal_information_common_data_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_synced as _fivetran_synced,\n _fivetran_deleted as _fivetran_deleted,\n fivetran_id as fivetran_id,\n worker_id as worker_id,\n additional_nationality as additional_nationality,\n blood_type as blood_type,\n citizenship_status as citizenship_status,\n city_of_birth as city_of_birth,\n city_of_birth_code as city_of_birth_code,\n country_of_birth as country_of_birth,\n country_region_of_birth as country_region_of_birth,\n date_of_birth as date_of_birth,\n date_of_death as date_of_death,\n last_medical_exam_date as last_medical_exam_date,\n last_medical_exam_valid_to as last_medical_exam_valid_to,\n medical_exam_notes as medical_exam_notes,\n primary_nationality as primary_nationality,\n region_of_birth as region_of_birth\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n from base\n),\n\nfinal as (\n\n select\n fivetran_id,\n 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 country_region_of_birth,\n date_of_birth,\n date_of_death,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n medical_exam_notes,\n primary_nationality,\n region_of_birth\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__country_personal_information as (\nwith base as (\n\n select *\n from \"postgres\".\"public_workday_dev\".\"stg_workday__country_personal_information_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_synced as _fivetran_synced,\n _fivetran_deleted as _fivetran_deleted,\n fivetran_id as fivetran_id,\n personal_info_common_id as personal_info_common_id,\n country_code as country_code,\n gender as gender,\n hispanic_or_latino as hispanic_or_latino,\n hukou_locality as hukou_locality,\n hukou_postal_code as hukou_postal_code,\n hukou_region_code as hukou_region_code,\n hukou_subregion_code as hukou_subregion_code,\n hukou_type_code as hukou_type_code,\n local_hukou as local_hukou,\n marital_status as marital_status,\n marital_status_date as marital_status_date,\n native_region_code as native_region_code,\n native_region as native_region,\n personnel_file_agency_for_person as personnel_file_agency_for_person,\n political_affiliation as political_affiliation,\n religion as religion,\n social_benefits_locality as social_benefits_locality\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n from base\n),\n\nfinal as (\n\n select\n fivetran_id,\n personal_info_common_id,\n country_code,\n source_relation,\n _fivetran_synced,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region_code,\n hukou_subregion_code,\n hukou_type_code,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n native_region_code,\n native_region,\n personnel_file_agency_for_person,\n political_affiliation,\n religion,\n social_benefits_locality\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"public_workday_dev\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n academic_suffix as academic_suffix,\n additional_name_type as additional_name_type,\n country as country,\n first_name as first_name,\n full_name_singapore_malaysia as full_name_singapore_malaysia,\n hereditary_suffix as hereditary_suffix,\n honorary_suffix as honorary_suffix,\n index as index,\n last_name as last_name,\n local_first_name as local_first_name,\n local_first_name_2 as local_first_name_2,\n local_last_name as local_last_name,\n local_last_name_2 as local_last_name_2,\n local_middle_name as local_middle_name,\n local_middle_name_2 as local_middle_name_2,\n local_secondary_last_name as local_secondary_last_name,\n local_secondary_last_name_2 as local_secondary_last_name_2,\n middle_name as middle_name,\n personal_info_system_id as personal_info_system_id,\n prefix_salutation as prefix_salutation,\n prefix_title as prefix_title,\n prefix_title_code as prefix_title_code,\n professional_suffix as professional_suffix,\n religious_suffix as religious_suffix,\n royal_suffix as royal_suffix,\n secondary_last_name as secondary_last_name,\n social_suffix as social_suffix,\n social_suffix_id as social_suffix_id,\n tertiary_last_name as tertiary_last_name,\n type as type\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n 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\".\"public_workday_dev\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n email_address as email_address,\n email_code as email_code,\n email_comment as email_comment,\n id as id,\n personal_info_system_id as personal_info_system_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n 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\".\"public_workday_dev\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n id as id,\n country_personal_information_id as country_personal_information_id,\n ethnicity_code as ethnicity_code\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n from base\n),\n\nfinal as (\n\n select\n source_relation,\n _fivetran_synced, \n country_personal_information_id as worker_id,\n ethnicity_code,\n id as ethnicity_id\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\".\"public_workday_dev\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n personal_info_common_id as personal_info_common_id,\n discharge_date as discharge_date,\n discharge_type as discharge_type,\n notes as notes,\n rank as rank,\n service as service,\n status_id as status_id,\n status_begin_date as status_begin_date\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n from base\n),\n\nfinal as (\n select\n personal_info_common_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n notes,\n rank,\n service,\n discharge_type,\n status_id 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_common_data as (\n\n select\n fivetran_id,\n worker_id,\n source_relation,\n date_of_birth\n from __dbt__cte__stg_workday__personal_information_common_data\n),\n\nworker_personal_country_data as (\n\n select\n fivetran_id as personal_country_id,\n personal_info_common_id,\n source_relation,\n gender,\n is_hispanic_or_latino\n from __dbt__cte__stg_workday__country_personal_information\n),\n\nworker_personal_info_data as (\n\n select\n worker_personal_common_data.fivetran_id,\n worker_personal_country_data.personal_country_id,\n worker_personal_common_data.worker_id,\n worker_personal_common_data.source_relation,\n worker_personal_common_data.date_of_birth,\n worker_personal_country_data.gender,\n worker_personal_country_data.is_hispanic_or_latino\n from worker_personal_common_data\n left join worker_personal_country_data\n on worker_personal_common_data.fivetran_id = worker_personal_country_data.personal_info_common_id\n and worker_personal_common_data.source_relation = worker_personal_country_data.source_relation\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.fivetran_id,\n worker_personal_info_data.worker_id,\n worker_personal_info_data.source_relation,\n worker_personal_info_data.date_of_birth,\n worker_personal_info_data.gender,\n worker_personal_info_data.is_hispanic_or_latino,\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.personal_country_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.fivetran_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\".\"public_workday_dev\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n academic_pay_setup_data_annual_work_period_end_date as academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date as academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year as academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date as academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date as academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language as business_site_summary_display_language,\n business_site_summary_local as business_site_summary_local,\n business_site_summary_location as business_site_summary_location,\n business_site_summary_location_type as business_site_summary_location_type,\n business_site_summary_name as business_site_summary_name,\n business_site_summary_scheduled_weekly_hours as business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile as business_site_summary_time_profile,\n business_title as business_title,\n critical_job as critical_job,\n default_weekly_hours as default_weekly_hours,\n difficulty_to_fill as difficulty_to_fill,\n effective_date as effective_date,\n employee_type as employee_type,\n end_date as end_date,\n end_employment_date as end_employment_date,\n exclude_from_head_count as exclude_from_head_count,\n expected_assignment_end_date as expected_assignment_end_date,\n external_employee as external_employee,\n federal_withholding_fein as federal_withholding_fein,\n frequency as frequency,\n full_time_equivalent_percentage as full_time_equivalent_percentage,\n headcount_restriction_code as headcount_restriction_code,\n home_country as home_country,\n host_country as host_country,\n international_assignment_type as international_assignment_type,\n is_primary_job as is_primary_job,\n job_exempt as job_exempt,\n job_profile_id as job_profile_id,\n management_level_code as management_level_code,\n paid_fte as paid_fte,\n pay_group as pay_group,\n pay_rate as pay_rate,\n pay_rate_type as pay_rate_type,\n pay_through_date as pay_through_date,\n payroll_entity as payroll_entity,\n payroll_file_number as payroll_file_number,\n position_id as position_id,\n regular_paid_equivalent_hours as regular_paid_equivalent_hours,\n scheduled_weekly_hours as scheduled_weekly_hours,\n specify_paid_fte as specify_paid_fte,\n specify_working_fte as specify_working_fte,\n start_date as start_date,\n start_international_assignment_reason as start_international_assignment_reason,\n work_hours_profile as work_hours_profile,\n work_shift as work_shift,\n work_shift_required as work_shift_required,\n work_space as work_space,\n worker_hours_profile_classification as worker_hours_profile_classification,\n worker_id as worker_id,\n working_fte as working_fte,\n working_time_frequency as working_time_frequency,\n working_time_unit as working_time_unit,\n working_time_value as working_time_value\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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 int_worker_personal_details.fivetran_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 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\".\"public_workday_dev\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n academic_tenure_date as academic_tenure_date,\n active as active,\n active_status_date as active_status_date,\n annual_currency_summary_currency as annual_currency_summary_currency,\n annual_currency_summary_frequency as annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis as annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay as annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances as annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency as annual_summary_currency,\n annual_summary_frequency as annual_summary_frequency,\n annual_summary_primary_compensation_basis as annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay as annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances as annual_summary_total_salary_and_allowances,\n benefits_service_date as benefits_service_date,\n company_service_date as company_service_date,\n compensation_effective_date as compensation_effective_date,\n compensation_grade_id as compensation_grade_id,\n compensation_grade_profile_id as compensation_grade_profile_id,\n continuous_service_date as continuous_service_date,\n contract_assignment_details as contract_assignment_details,\n contract_currency_code as contract_currency_code,\n contract_end_date as contract_end_date,\n contract_frequency_name as contract_frequency_name,\n contract_pay_rate as contract_pay_rate,\n contract_vendor_name as contract_vendor_name,\n date_entered_workforce as date_entered_workforce,\n days_unemployed as days_unemployed,\n eligible_for_hire as eligible_for_hire,\n eligible_for_rehire_on_latest_termination as eligible_for_rehire_on_latest_termination,\n employee_compensation_currency as employee_compensation_currency,\n employee_compensation_frequency as employee_compensation_frequency,\n employee_compensation_primary_compensation_basis as employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay as employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances as employee_compensation_total_salary_and_allowances,\n end_employment_date as end_employment_date,\n expected_date_of_return as expected_date_of_return,\n expected_retirement_date as expected_retirement_date,\n first_day_of_work as first_day_of_work,\n has_international_assignment as has_international_assignment,\n hire_date as hire_date,\n hire_reason as hire_reason,\n hire_rescinded as hire_rescinded,\n home_country as home_country,\n hourly_frequency_currency as hourly_frequency_currency,\n hourly_frequency_frequency as hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis as hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay as hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances as hourly_frequency_total_salary_and_allowances,\n id as id,\n last_datefor_which_paid as last_datefor_which_paid,\n local_termination_reason as local_termination_reason,\n months_continuous_prior_employment as months_continuous_prior_employment,\n not_returning as not_returning,\n original_hire_date as original_hire_date,\n pay_group_frequency_currency as pay_group_frequency_currency,\n pay_group_frequency_frequency as pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis as pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay as pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances as pay_group_frequency_total_salary_and_allowances,\n pay_through_date as pay_through_date,\n primary_termination_category as primary_termination_category,\n primary_termination_reason as primary_termination_reason,\n probation_end_date as probation_end_date,\n probation_start_date as probation_start_date,\n reason_reference_id as reason_reference_id,\n regrettable_termination as regrettable_termination,\n rehire as rehire,\n resignation_date as resignation_date,\n retired as retired,\n retirement_date as retirement_date,\n retirement_eligibility_date as retirement_eligibility_date,\n return_unknown as return_unknown,\n seniority_date as seniority_date,\n severance_date as severance_date,\n terminated as terminated,\n termination_date as termination_date,\n termination_involuntary as termination_involuntary,\n termination_last_day_of_work as termination_last_day_of_work,\n time_off_service_date as time_off_service_date,\n universal_id as universal_id,\n user_id as user_id,\n vesting_date as vesting_date,\n worker_code as worker_code\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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_common_data", "sql": " __dbt__cte__stg_workday__personal_information_common_data as (\nwith base as (\n\n select *\n from \"postgres\".\"public_workday_dev\".\"stg_workday__personal_information_common_data_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_synced as _fivetran_synced,\n _fivetran_deleted as _fivetran_deleted,\n fivetran_id as fivetran_id,\n worker_id as worker_id,\n additional_nationality as additional_nationality,\n blood_type as blood_type,\n citizenship_status as citizenship_status,\n city_of_birth as city_of_birth,\n city_of_birth_code as city_of_birth_code,\n country_of_birth as country_of_birth,\n country_region_of_birth as country_region_of_birth,\n date_of_birth as date_of_birth,\n date_of_death as date_of_death,\n last_medical_exam_date as last_medical_exam_date,\n last_medical_exam_valid_to as last_medical_exam_valid_to,\n medical_exam_notes as medical_exam_notes,\n primary_nationality as primary_nationality,\n region_of_birth as region_of_birth\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n from base\n),\n\nfinal as (\n\n select\n fivetran_id,\n 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 country_region_of_birth,\n date_of_birth,\n date_of_death,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n medical_exam_notes,\n primary_nationality,\n region_of_birth\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__country_personal_information", "sql": " __dbt__cte__stg_workday__country_personal_information as (\nwith base as (\n\n select *\n from \"postgres\".\"public_workday_dev\".\"stg_workday__country_personal_information_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_synced as _fivetran_synced,\n _fivetran_deleted as _fivetran_deleted,\n fivetran_id as fivetran_id,\n personal_info_common_id as personal_info_common_id,\n country_code as country_code,\n gender as gender,\n hispanic_or_latino as hispanic_or_latino,\n hukou_locality as hukou_locality,\n hukou_postal_code as hukou_postal_code,\n hukou_region_code as hukou_region_code,\n hukou_subregion_code as hukou_subregion_code,\n hukou_type_code as hukou_type_code,\n local_hukou as local_hukou,\n marital_status as marital_status,\n marital_status_date as marital_status_date,\n native_region_code as native_region_code,\n native_region as native_region,\n personnel_file_agency_for_person as personnel_file_agency_for_person,\n political_affiliation as political_affiliation,\n religion as religion,\n social_benefits_locality as social_benefits_locality\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n from base\n),\n\nfinal as (\n\n select\n fivetran_id,\n personal_info_common_id,\n country_code,\n source_relation,\n _fivetran_synced,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region_code,\n hukou_subregion_code,\n hukou_type_code,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n native_region_code,\n native_region,\n personnel_file_agency_for_person,\n political_affiliation,\n religion,\n social_benefits_locality\n from fields\n where not coalesce(_fivetran_deleted, false)\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\".\"public_workday_dev\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n academic_suffix as academic_suffix,\n additional_name_type as additional_name_type,\n country as country,\n first_name as first_name,\n full_name_singapore_malaysia as full_name_singapore_malaysia,\n hereditary_suffix as hereditary_suffix,\n honorary_suffix as honorary_suffix,\n index as index,\n last_name as last_name,\n local_first_name as local_first_name,\n local_first_name_2 as local_first_name_2,\n local_last_name as local_last_name,\n local_last_name_2 as local_last_name_2,\n local_middle_name as local_middle_name,\n local_middle_name_2 as local_middle_name_2,\n local_secondary_last_name as local_secondary_last_name,\n local_secondary_last_name_2 as local_secondary_last_name_2,\n middle_name as middle_name,\n personal_info_system_id as personal_info_system_id,\n prefix_salutation as prefix_salutation,\n prefix_title as prefix_title,\n prefix_title_code as prefix_title_code,\n professional_suffix as professional_suffix,\n religious_suffix as religious_suffix,\n royal_suffix as royal_suffix,\n secondary_last_name as secondary_last_name,\n social_suffix as social_suffix,\n social_suffix_id as social_suffix_id,\n tertiary_last_name as tertiary_last_name,\n type as type\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n 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\".\"public_workday_dev\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n email_address as email_address,\n email_code as email_code,\n email_comment as email_comment,\n id as id,\n personal_info_system_id as personal_info_system_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n 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\".\"public_workday_dev\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n id as id,\n country_personal_information_id as country_personal_information_id,\n ethnicity_code as ethnicity_code\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n from base\n),\n\nfinal as (\n\n select\n source_relation,\n _fivetran_synced, \n country_personal_information_id as worker_id,\n ethnicity_code,\n id as ethnicity_id\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\".\"public_workday_dev\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n personal_info_common_id as personal_info_common_id,\n discharge_date as discharge_date,\n discharge_type as discharge_type,\n notes as notes,\n rank as rank,\n service as service,\n status_id as status_id,\n status_begin_date as status_begin_date\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n from base\n),\n\nfinal as (\n select\n personal_info_common_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n notes,\n rank,\n service,\n discharge_type,\n status_id 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_common_data as (\n\n select\n fivetran_id,\n worker_id,\n source_relation,\n date_of_birth\n from __dbt__cte__stg_workday__personal_information_common_data\n),\n\nworker_personal_country_data as (\n\n select\n fivetran_id as personal_country_id,\n personal_info_common_id,\n source_relation,\n gender,\n is_hispanic_or_latino\n from __dbt__cte__stg_workday__country_personal_information\n),\n\nworker_personal_info_data as (\n\n select\n worker_personal_common_data.fivetran_id,\n worker_personal_country_data.personal_country_id,\n worker_personal_common_data.worker_id,\n worker_personal_common_data.source_relation,\n worker_personal_common_data.date_of_birth,\n worker_personal_country_data.gender,\n worker_personal_country_data.is_hispanic_or_latino\n from worker_personal_common_data\n left join worker_personal_country_data\n on worker_personal_common_data.fivetran_id = worker_personal_country_data.personal_info_common_id\n and worker_personal_common_data.source_relation = worker_personal_country_data.source_relation\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.fivetran_id,\n worker_personal_info_data.worker_id,\n worker_personal_info_data.source_relation,\n worker_personal_info_data.date_of_birth,\n worker_personal_info_data.gender,\n worker_personal_info_data.is_hispanic_or_latino,\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.personal_country_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.fivetran_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\".\"public_workday_dev\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n academic_pay_setup_data_annual_work_period_end_date as academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date as academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year as academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date as academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date as academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language as business_site_summary_display_language,\n business_site_summary_local as business_site_summary_local,\n business_site_summary_location as business_site_summary_location,\n business_site_summary_location_type as business_site_summary_location_type,\n business_site_summary_name as business_site_summary_name,\n business_site_summary_scheduled_weekly_hours as business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile as business_site_summary_time_profile,\n business_title as business_title,\n critical_job as critical_job,\n default_weekly_hours as default_weekly_hours,\n difficulty_to_fill as difficulty_to_fill,\n effective_date as effective_date,\n employee_type as employee_type,\n end_date as end_date,\n end_employment_date as end_employment_date,\n exclude_from_head_count as exclude_from_head_count,\n expected_assignment_end_date as expected_assignment_end_date,\n external_employee as external_employee,\n federal_withholding_fein as federal_withholding_fein,\n frequency as frequency,\n full_time_equivalent_percentage as full_time_equivalent_percentage,\n headcount_restriction_code as headcount_restriction_code,\n home_country as home_country,\n host_country as host_country,\n international_assignment_type as international_assignment_type,\n is_primary_job as is_primary_job,\n job_exempt as job_exempt,\n job_profile_id as job_profile_id,\n management_level_code as management_level_code,\n paid_fte as paid_fte,\n pay_group as pay_group,\n pay_rate as pay_rate,\n pay_rate_type as pay_rate_type,\n pay_through_date as pay_through_date,\n payroll_entity as payroll_entity,\n payroll_file_number as payroll_file_number,\n position_id as position_id,\n regular_paid_equivalent_hours as regular_paid_equivalent_hours,\n scheduled_weekly_hours as scheduled_weekly_hours,\n specify_paid_fte as specify_paid_fte,\n specify_working_fte as specify_working_fte,\n start_date as start_date,\n start_international_assignment_reason as start_international_assignment_reason,\n work_hours_profile as work_hours_profile,\n work_shift as work_shift,\n work_shift_required as work_shift_required,\n work_space as work_space,\n worker_hours_profile_classification as worker_hours_profile_classification,\n worker_id as worker_id,\n working_fte as working_fte,\n working_time_frequency as working_time_frequency,\n working_time_unit as working_time_unit,\n working_time_value as working_time_value\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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, "primary_key": [], "time_spine": null}, "model.workday.int_workday__worker_position_enriched": {"database": "postgres", "schema": "public_workday_dev", "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_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "ephemeral", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1782422567.3705287, "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", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__worker_position", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n academic_pay_setup_data_annual_work_period_end_date as academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date as academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year as academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date as academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date as academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language as business_site_summary_display_language,\n business_site_summary_local as business_site_summary_local,\n business_site_summary_location as business_site_summary_location,\n business_site_summary_location_type as business_site_summary_location_type,\n business_site_summary_name as business_site_summary_name,\n business_site_summary_scheduled_weekly_hours as business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile as business_site_summary_time_profile,\n business_title as business_title,\n critical_job as critical_job,\n default_weekly_hours as default_weekly_hours,\n difficulty_to_fill as difficulty_to_fill,\n effective_date as effective_date,\n employee_type as employee_type,\n end_date as end_date,\n end_employment_date as end_employment_date,\n exclude_from_head_count as exclude_from_head_count,\n expected_assignment_end_date as expected_assignment_end_date,\n external_employee as external_employee,\n federal_withholding_fein as federal_withholding_fein,\n frequency as frequency,\n full_time_equivalent_percentage as full_time_equivalent_percentage,\n headcount_restriction_code as headcount_restriction_code,\n home_country as home_country,\n host_country as host_country,\n international_assignment_type as international_assignment_type,\n is_primary_job as is_primary_job,\n job_exempt as job_exempt,\n job_profile_id as job_profile_id,\n management_level_code as management_level_code,\n paid_fte as paid_fte,\n pay_group as pay_group,\n pay_rate as pay_rate,\n pay_rate_type as pay_rate_type,\n pay_through_date as pay_through_date,\n payroll_entity as payroll_entity,\n payroll_file_number as payroll_file_number,\n position_id as position_id,\n regular_paid_equivalent_hours as regular_paid_equivalent_hours,\n scheduled_weekly_hours as scheduled_weekly_hours,\n specify_paid_fte as specify_paid_fte,\n specify_working_fte as specify_working_fte,\n start_date as start_date,\n start_international_assignment_reason as start_international_assignment_reason,\n work_hours_profile as work_hours_profile,\n work_shift as work_shift,\n work_shift_required as work_shift_required,\n work_space as work_space,\n worker_hours_profile_classification as worker_hours_profile_classification,\n worker_id as worker_id,\n working_fte as working_fte,\n working_time_frequency as working_time_frequency,\n working_time_unit as working_time_unit,\n working_time_value as working_time_value\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n academic_pay_setup_data_annual_work_period_end_date as academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date as academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year as academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date as academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date as academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language as business_site_summary_display_language,\n business_site_summary_local as business_site_summary_local,\n business_site_summary_location as business_site_summary_location,\n business_site_summary_location_type as business_site_summary_location_type,\n business_site_summary_name as business_site_summary_name,\n business_site_summary_scheduled_weekly_hours as business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile as business_site_summary_time_profile,\n business_title as business_title,\n critical_job as critical_job,\n default_weekly_hours as default_weekly_hours,\n difficulty_to_fill as difficulty_to_fill,\n effective_date as effective_date,\n employee_type as employee_type,\n end_date as end_date,\n end_employment_date as end_employment_date,\n exclude_from_head_count as exclude_from_head_count,\n expected_assignment_end_date as expected_assignment_end_date,\n external_employee as external_employee,\n federal_withholding_fein as federal_withholding_fein,\n frequency as frequency,\n full_time_equivalent_percentage as full_time_equivalent_percentage,\n headcount_restriction_code as headcount_restriction_code,\n home_country as home_country,\n host_country as host_country,\n international_assignment_type as international_assignment_type,\n is_primary_job as is_primary_job,\n job_exempt as job_exempt,\n job_profile_id as job_profile_id,\n management_level_code as management_level_code,\n paid_fte as paid_fte,\n pay_group as pay_group,\n pay_rate as pay_rate,\n pay_rate_type as pay_rate_type,\n pay_through_date as pay_through_date,\n payroll_entity as payroll_entity,\n payroll_file_number as payroll_file_number,\n position_id as position_id,\n regular_paid_equivalent_hours as regular_paid_equivalent_hours,\n scheduled_weekly_hours as scheduled_weekly_hours,\n specify_paid_fte as specify_paid_fte,\n specify_working_fte as specify_working_fte,\n start_date as start_date,\n start_international_assignment_reason as start_international_assignment_reason,\n work_hours_profile as work_hours_profile,\n work_shift as work_shift,\n work_shift_required as work_shift_required,\n work_space as work_space,\n worker_hours_profile_classification as worker_hours_profile_classification,\n worker_id as worker_id,\n working_fte as working_fte,\n working_time_frequency as working_time_frequency,\n working_time_unit as working_time_unit,\n working_time_value as working_time_value\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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, "primary_key": [], "time_spine": null}, "model.workday.int_workday__personal_details": {"database": "postgres", "schema": "public_workday_dev", "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": "d02a9b9caa0e6a9ddda9d7060928fbf5d8666ee8badcc07965f548d513dfdfbc"}, "config": {"enabled": true, "alias": null, "schema": "workday_dev", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "ephemeral", "incremental_strategy": null, "batch_size": null, "lookback": 1, "begin": null, "persist_docs": {"relation": true, "columns": true}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "event_time": null, "concurrent_batches": null, "access": "protected", "freshness": null}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"schema": "workday_{{ var('directed_schema','dev') }}", "materialized": "ephemeral", "persist_docs": {"relation": true, "columns": "{{ false if target.type in ('databricks') else true }}"}}, "created_at": 1782422567.379024, "relation_name": null, "raw_code": "with worker_personal_common_data as (\n\n select\n fivetran_id,\n worker_id,\n source_relation,\n date_of_birth\n from {{ ref('stg_workday__personal_information_common_data') }}\n),\n\nworker_personal_country_data as (\n\n select\n fivetran_id as personal_country_id,\n personal_info_common_id,\n source_relation,\n gender,\n is_hispanic_or_latino\n from {{ ref('stg_workday__country_personal_information') }}\n),\n\nworker_personal_info_data as (\n\n select\n worker_personal_common_data.fivetran_id,\n worker_personal_country_data.personal_country_id,\n worker_personal_common_data.worker_id,\n worker_personal_common_data.source_relation,\n worker_personal_common_data.date_of_birth,\n worker_personal_country_data.gender,\n worker_personal_country_data.is_hispanic_or_latino\n from worker_personal_common_data\n left join worker_personal_country_data\n on worker_personal_common_data.fivetran_id = worker_personal_country_data.personal_info_common_id\n and worker_personal_common_data.source_relation = worker_personal_country_data.source_relation\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.fivetran_id,\n worker_personal_info_data.worker_id,\n worker_personal_info_data.source_relation,\n worker_personal_info_data.date_of_birth,\n worker_personal_info_data.gender,\n worker_personal_info_data.is_hispanic_or_latino,\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.personal_country_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.fivetran_id = worker_military.worker_id\n and worker_personal_info_data.source_relation = worker_military.source_relation\n)\n\nselect * \nfrom worker_personal_details", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__personal_information_common_data", "package": null, "version": null}, {"name": "stg_workday__country_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": [], "functions": [], "depends_on": {"macros": ["macro.fivetran_utils.string_agg"], "nodes": ["model.workday.stg_workday__personal_information_common_data", "model.workday.stg_workday__country_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_common_data as (\nwith base as (\n\n select *\n from \"postgres\".\"public_workday_dev\".\"stg_workday__personal_information_common_data_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_synced as _fivetran_synced,\n _fivetran_deleted as _fivetran_deleted,\n fivetran_id as fivetran_id,\n worker_id as worker_id,\n additional_nationality as additional_nationality,\n blood_type as blood_type,\n citizenship_status as citizenship_status,\n city_of_birth as city_of_birth,\n city_of_birth_code as city_of_birth_code,\n country_of_birth as country_of_birth,\n country_region_of_birth as country_region_of_birth,\n date_of_birth as date_of_birth,\n date_of_death as date_of_death,\n last_medical_exam_date as last_medical_exam_date,\n last_medical_exam_valid_to as last_medical_exam_valid_to,\n medical_exam_notes as medical_exam_notes,\n primary_nationality as primary_nationality,\n region_of_birth as region_of_birth\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n from base\n),\n\nfinal as (\n\n select\n fivetran_id,\n 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 country_region_of_birth,\n date_of_birth,\n date_of_death,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n medical_exam_notes,\n primary_nationality,\n region_of_birth\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__country_personal_information as (\nwith base as (\n\n select *\n from \"postgres\".\"public_workday_dev\".\"stg_workday__country_personal_information_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_synced as _fivetran_synced,\n _fivetran_deleted as _fivetran_deleted,\n fivetran_id as fivetran_id,\n personal_info_common_id as personal_info_common_id,\n country_code as country_code,\n gender as gender,\n hispanic_or_latino as hispanic_or_latino,\n hukou_locality as hukou_locality,\n hukou_postal_code as hukou_postal_code,\n hukou_region_code as hukou_region_code,\n hukou_subregion_code as hukou_subregion_code,\n hukou_type_code as hukou_type_code,\n local_hukou as local_hukou,\n marital_status as marital_status,\n marital_status_date as marital_status_date,\n native_region_code as native_region_code,\n native_region as native_region,\n personnel_file_agency_for_person as personnel_file_agency_for_person,\n political_affiliation as political_affiliation,\n religion as religion,\n social_benefits_locality as social_benefits_locality\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n from base\n),\n\nfinal as (\n\n select\n fivetran_id,\n personal_info_common_id,\n country_code,\n source_relation,\n _fivetran_synced,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region_code,\n hukou_subregion_code,\n hukou_type_code,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n native_region_code,\n native_region,\n personnel_file_agency_for_person,\n political_affiliation,\n religion,\n social_benefits_locality\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"public_workday_dev\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n academic_suffix as academic_suffix,\n additional_name_type as additional_name_type,\n country as country,\n first_name as first_name,\n full_name_singapore_malaysia as full_name_singapore_malaysia,\n hereditary_suffix as hereditary_suffix,\n honorary_suffix as honorary_suffix,\n index as index,\n last_name as last_name,\n local_first_name as local_first_name,\n local_first_name_2 as local_first_name_2,\n local_last_name as local_last_name,\n local_last_name_2 as local_last_name_2,\n local_middle_name as local_middle_name,\n local_middle_name_2 as local_middle_name_2,\n local_secondary_last_name as local_secondary_last_name,\n local_secondary_last_name_2 as local_secondary_last_name_2,\n middle_name as middle_name,\n personal_info_system_id as personal_info_system_id,\n prefix_salutation as prefix_salutation,\n prefix_title as prefix_title,\n prefix_title_code as prefix_title_code,\n professional_suffix as professional_suffix,\n religious_suffix as religious_suffix,\n royal_suffix as royal_suffix,\n secondary_last_name as secondary_last_name,\n social_suffix as social_suffix,\n social_suffix_id as social_suffix_id,\n tertiary_last_name as tertiary_last_name,\n type as type\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n 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\".\"public_workday_dev\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n email_address as email_address,\n email_code as email_code,\n email_comment as email_comment,\n id as id,\n personal_info_system_id as personal_info_system_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n 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\".\"public_workday_dev\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n id as id,\n country_personal_information_id as country_personal_information_id,\n ethnicity_code as ethnicity_code\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n from base\n),\n\nfinal as (\n\n select\n source_relation,\n _fivetran_synced, \n country_personal_information_id as worker_id,\n ethnicity_code,\n id as ethnicity_id\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\".\"public_workday_dev\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n personal_info_common_id as personal_info_common_id,\n discharge_date as discharge_date,\n discharge_type as discharge_type,\n notes as notes,\n rank as rank,\n service as service,\n status_id as status_id,\n status_begin_date as status_begin_date\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n from base\n),\n\nfinal as (\n select\n personal_info_common_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n notes,\n rank,\n service,\n discharge_type,\n status_id 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_common_data as (\n\n select\n fivetran_id,\n worker_id,\n source_relation,\n date_of_birth\n from __dbt__cte__stg_workday__personal_information_common_data\n),\n\nworker_personal_country_data as (\n\n select\n fivetran_id as personal_country_id,\n personal_info_common_id,\n source_relation,\n gender,\n is_hispanic_or_latino\n from __dbt__cte__stg_workday__country_personal_information\n),\n\nworker_personal_info_data as (\n\n select\n worker_personal_common_data.fivetran_id,\n worker_personal_country_data.personal_country_id,\n worker_personal_common_data.worker_id,\n worker_personal_common_data.source_relation,\n worker_personal_common_data.date_of_birth,\n worker_personal_country_data.gender,\n worker_personal_country_data.is_hispanic_or_latino\n from worker_personal_common_data\n left join worker_personal_country_data\n on worker_personal_common_data.fivetran_id = worker_personal_country_data.personal_info_common_id\n and worker_personal_common_data.source_relation = worker_personal_country_data.source_relation\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.fivetran_id,\n worker_personal_info_data.worker_id,\n worker_personal_info_data.source_relation,\n worker_personal_info_data.date_of_birth,\n worker_personal_info_data.gender,\n worker_personal_info_data.is_hispanic_or_latino,\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.personal_country_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.fivetran_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_common_data", "sql": " __dbt__cte__stg_workday__personal_information_common_data as (\nwith base as (\n\n select *\n from \"postgres\".\"public_workday_dev\".\"stg_workday__personal_information_common_data_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_synced as _fivetran_synced,\n _fivetran_deleted as _fivetran_deleted,\n fivetran_id as fivetran_id,\n worker_id as worker_id,\n additional_nationality as additional_nationality,\n blood_type as blood_type,\n citizenship_status as citizenship_status,\n city_of_birth as city_of_birth,\n city_of_birth_code as city_of_birth_code,\n country_of_birth as country_of_birth,\n country_region_of_birth as country_region_of_birth,\n date_of_birth as date_of_birth,\n date_of_death as date_of_death,\n last_medical_exam_date as last_medical_exam_date,\n last_medical_exam_valid_to as last_medical_exam_valid_to,\n medical_exam_notes as medical_exam_notes,\n primary_nationality as primary_nationality,\n region_of_birth as region_of_birth\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n from base\n),\n\nfinal as (\n\n select\n fivetran_id,\n 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 country_region_of_birth,\n date_of_birth,\n date_of_death,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n medical_exam_notes,\n primary_nationality,\n region_of_birth\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__country_personal_information", "sql": " __dbt__cte__stg_workday__country_personal_information as (\nwith base as (\n\n select *\n from \"postgres\".\"public_workday_dev\".\"stg_workday__country_personal_information_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_synced as _fivetran_synced,\n _fivetran_deleted as _fivetran_deleted,\n fivetran_id as fivetran_id,\n personal_info_common_id as personal_info_common_id,\n country_code as country_code,\n gender as gender,\n hispanic_or_latino as hispanic_or_latino,\n hukou_locality as hukou_locality,\n hukou_postal_code as hukou_postal_code,\n hukou_region_code as hukou_region_code,\n hukou_subregion_code as hukou_subregion_code,\n hukou_type_code as hukou_type_code,\n local_hukou as local_hukou,\n marital_status as marital_status,\n marital_status_date as marital_status_date,\n native_region_code as native_region_code,\n native_region as native_region,\n personnel_file_agency_for_person as personnel_file_agency_for_person,\n political_affiliation as political_affiliation,\n religion as religion,\n social_benefits_locality as social_benefits_locality\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n from base\n),\n\nfinal as (\n\n select\n fivetran_id,\n personal_info_common_id,\n country_code,\n source_relation,\n _fivetran_synced,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region_code,\n hukou_subregion_code,\n hukou_type_code,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n native_region_code,\n native_region,\n personnel_file_agency_for_person,\n political_affiliation,\n religion,\n social_benefits_locality\n from fields\n where not coalesce(_fivetran_deleted, false)\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\".\"public_workday_dev\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n academic_suffix as academic_suffix,\n additional_name_type as additional_name_type,\n country as country,\n first_name as first_name,\n full_name_singapore_malaysia as full_name_singapore_malaysia,\n hereditary_suffix as hereditary_suffix,\n honorary_suffix as honorary_suffix,\n index as index,\n last_name as last_name,\n local_first_name as local_first_name,\n local_first_name_2 as local_first_name_2,\n local_last_name as local_last_name,\n local_last_name_2 as local_last_name_2,\n local_middle_name as local_middle_name,\n local_middle_name_2 as local_middle_name_2,\n local_secondary_last_name as local_secondary_last_name,\n local_secondary_last_name_2 as local_secondary_last_name_2,\n middle_name as middle_name,\n personal_info_system_id as personal_info_system_id,\n prefix_salutation as prefix_salutation,\n prefix_title as prefix_title,\n prefix_title_code as prefix_title_code,\n professional_suffix as professional_suffix,\n religious_suffix as religious_suffix,\n royal_suffix as royal_suffix,\n secondary_last_name as secondary_last_name,\n social_suffix as social_suffix,\n social_suffix_id as social_suffix_id,\n tertiary_last_name as tertiary_last_name,\n type as type\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n 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\".\"public_workday_dev\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n email_address as email_address,\n email_code as email_code,\n email_comment as email_comment,\n id as id,\n personal_info_system_id as personal_info_system_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n 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\".\"public_workday_dev\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n id as id,\n country_personal_information_id as country_personal_information_id,\n ethnicity_code as ethnicity_code\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n from base\n),\n\nfinal as (\n\n select\n source_relation,\n _fivetran_synced, \n country_personal_information_id as worker_id,\n ethnicity_code,\n id as ethnicity_id\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\".\"public_workday_dev\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n personal_info_common_id as personal_info_common_id,\n discharge_date as discharge_date,\n discharge_type as discharge_type,\n notes as notes,\n rank as rank,\n service as service,\n status_id as status_id,\n status_begin_date as status_begin_date\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n from base\n),\n\nfinal as (\n select\n personal_info_common_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n notes,\n rank,\n service,\n discharge_type,\n status_id 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, "primary_key": [], "time_spine": null}, "test.workday.unique_workday__employee_overview_employee_id.b01e19996c": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1782422567.6115425, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "workday__employee_overview", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"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_metadata": {"name": "unique", "kwargs": {"column_name": "employee_id", "model": "{{ get_where_subquery(ref('workday__employee_overview')) }}"}, "namespace": null}}, "test.workday.not_null_workday__employee_overview_employee_id.bc9ace9e78": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1782422567.614364, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "workday__employee_overview", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"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_metadata": {"name": "not_null", "kwargs": {"column_name": "employee_id", "model": "{{ get_where_subquery(ref('workday__employee_overview')) }}"}, "namespace": null}}, "test.workday.not_null_workday__employee_overview_worker_id.a9f1737e97": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1782422567.6169076, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "workday__employee_overview", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"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_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('workday__employee_overview')) }}"}, "namespace": null}}, "test.workday.not_null_workday__job_overview_job_profile_id.dc998c6857": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1782422567.6194208, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "workday__job_overview", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"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_metadata": {"name": "not_null", "kwargs": {"column_name": "job_profile_id", "model": "{{ get_where_subquery(ref('workday__job_overview')) }}"}, "namespace": null}}, "test.workday.not_null_workday__position_overview_position_id.603beb3f22": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1782422567.62206, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "workday__position_overview", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"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_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('workday__position_overview')) }}"}, "namespace": null}}, "test.workday.not_null_workday__organization_overview_organization_id.5b1070ba31": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1782422567.624615, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "workday__organization_overview", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"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_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('workday__organization_overview')) }}"}, "namespace": null}}, "test.workday.not_null_workday__organization_overview_organization_role_id.a909dac412": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1782422567.6270576, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "workday__organization_overview", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"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_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_role_id", "model": "{{ get_where_subquery(ref('workday__organization_overview')) }}"}, "namespace": null}}, "test.workday.unique_workday__employee_daily_history_employee_day_id.99f5eea269": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1782422567.6913104, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "workday__employee_daily_history", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"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_metadata": {"name": "unique", "kwargs": {"column_name": "employee_day_id", "model": "{{ get_where_subquery(ref('workday__employee_daily_history')) }}"}, "namespace": null}}, "test.workday.not_null_workday__employee_daily_history_employee_day_id.9e97637f6d": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1782422567.693874, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "workday__employee_daily_history", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"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_metadata": {"name": "not_null", "kwargs": {"column_name": "employee_day_id", "model": "{{ get_where_subquery(ref('workday__employee_daily_history')) }}"}, "namespace": null}}, "test.workday.unique_workday__monthly_summary_metrics_month.955a3b67ab": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1782422567.6963913, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "workday__monthly_summary", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"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_metadata": {"name": "unique", "kwargs": {"column_name": "metrics_month", "model": "{{ get_where_subquery(ref('workday__monthly_summary')) }}"}, "namespace": null}}, "test.workday.not_null_workday__monthly_summary_metrics_month.3be01a1e58": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1782422567.699146, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "workday__monthly_summary", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"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_metadata": {"name": "not_null", "kwargs": {"column_name": "metrics_month", "model": "{{ get_where_subquery(ref('workday__monthly_summary')) }}"}, "namespace": null}}, "test.workday.unique_workday__worker_position_org_daily_history_wpo_day_id.f7bfe51a21": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1782422567.7016048, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "workday__worker_position_org_daily_history", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"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_metadata": {"name": "unique", "kwargs": {"column_name": "wpo_day_id", "model": "{{ get_where_subquery(ref('workday__worker_position_org_daily_history')) }}"}, "namespace": null}}, "test.workday.not_null_workday__worker_position_org_daily_history_wpo_day_id.8948c132f4": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1782422567.7040305, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "workday__worker_position_org_daily_history", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"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_metadata": {"name": "not_null", "kwargs": {"column_name": "wpo_day_id", "model": "{{ get_where_subquery(ref('workday__worker_position_org_daily_history')) }}"}, "namespace": null}}, "test.workday.not_null_workday__worker_position_org_daily_history_worker_id.914545c0fb": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1782422567.706524, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "workday__worker_position_org_daily_history", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"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_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('workday__worker_position_org_daily_history')) }}"}, "namespace": null}}, "test.workday.not_null_workday__worker_position_org_daily_history_position_id.07f47bf163": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1782422567.7091494, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "workday__worker_position_org_daily_history", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"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_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('workday__worker_position_org_daily_history')) }}"}, "namespace": null}}, "test.workday.not_null_workday__worker_position_org_daily_history_organization_id.27a8cf4e9c": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_workday__worker_posit_f00304a8628e430ed7c21d43d8c23632"}, "created_at": 1782422567.712692, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_workday__worker_posit_f00304a8628e430ed7c21d43d8c23632\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "workday__worker_position_org_daily_history", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"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_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('workday__worker_position_org_daily_history')) }}"}, "namespace": null}}, "test.workday.unique_stg_workday__personal_information_history_history_unique_key.3dba27dafc": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "unique_stg_workday__personal_i_acccbe4c15b5fb4d1446e98ff69015e2"}, "created_at": 1782422567.741987, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}{{ config(alias=\"unique_stg_workday__personal_i_acccbe4c15b5fb4d1446e98ff69015e2\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__personal_information_history", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n additional_nationality as additional_nationality,\n blood_type as blood_type,\n citizenship_status as citizenship_status,\n city_of_birth as city_of_birth,\n city_of_birth_code as city_of_birth_code,\n country_of_birth as country_of_birth,\n date_of_birth as date_of_birth,\n date_of_death as date_of_death,\n gender as gender,\n hispanic_or_latino as hispanic_or_latino,\n hukou_locality as hukou_locality,\n hukou_postal_code as hukou_postal_code,\n hukou_region as hukou_region,\n hukou_subregion as hukou_subregion,\n hukou_type as hukou_type,\n id as id,\n last_medical_exam_date as last_medical_exam_date,\n last_medical_exam_valid_to as last_medical_exam_valid_to,\n local_hukou as local_hukou,\n marital_status as marital_status,\n marital_status_date as marital_status_date,\n medical_exam_notes as medical_exam_notes,\n native_region as native_region,\n native_region_code as native_region_code,\n personnel_file_agency as personnel_file_agency,\n political_affiliation as political_affiliation,\n primary_nationality as primary_nationality,\n region_of_birth as region_of_birth,\n region_of_birth_code as region_of_birth_code,\n religion as religion,\n social_benefit as social_benefit,\n tobacco_use as tobacco_use,\n type as type\n\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n additional_nationality as additional_nationality,\n blood_type as blood_type,\n citizenship_status as citizenship_status,\n city_of_birth as city_of_birth,\n city_of_birth_code as city_of_birth_code,\n country_of_birth as country_of_birth,\n date_of_birth as date_of_birth,\n date_of_death as date_of_death,\n gender as gender,\n hispanic_or_latino as hispanic_or_latino,\n hukou_locality as hukou_locality,\n hukou_postal_code as hukou_postal_code,\n hukou_region as hukou_region,\n hukou_subregion as hukou_subregion,\n hukou_type as hukou_type,\n id as id,\n last_medical_exam_date as last_medical_exam_date,\n last_medical_exam_valid_to as last_medical_exam_valid_to,\n local_hukou as local_hukou,\n marital_status as marital_status,\n marital_status_date as marital_status_date,\n medical_exam_notes as medical_exam_notes,\n native_region as native_region,\n native_region_code as native_region_code,\n personnel_file_agency as personnel_file_agency,\n political_affiliation as political_affiliation,\n primary_nationality as primary_nationality,\n region_of_birth as region_of_birth,\n region_of_birth_code as region_of_birth_code,\n religion as religion,\n social_benefit as social_benefit,\n tobacco_use as tobacco_use,\n type as type\n\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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_metadata": {"name": "unique", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__personal_information_history')) }}"}, "namespace": null}}, "test.workday.not_null_stg_workday__personal_information_history_history_unique_key.64bf86390e": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_workday__personal_43beec0d9761e57841678ed565c671d3"}, "created_at": 1782422567.745427, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__personal_43beec0d9761e57841678ed565c671d3\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__personal_information_history", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n additional_nationality as additional_nationality,\n blood_type as blood_type,\n citizenship_status as citizenship_status,\n city_of_birth as city_of_birth,\n city_of_birth_code as city_of_birth_code,\n country_of_birth as country_of_birth,\n date_of_birth as date_of_birth,\n date_of_death as date_of_death,\n gender as gender,\n hispanic_or_latino as hispanic_or_latino,\n hukou_locality as hukou_locality,\n hukou_postal_code as hukou_postal_code,\n hukou_region as hukou_region,\n hukou_subregion as hukou_subregion,\n hukou_type as hukou_type,\n id as id,\n last_medical_exam_date as last_medical_exam_date,\n last_medical_exam_valid_to as last_medical_exam_valid_to,\n local_hukou as local_hukou,\n marital_status as marital_status,\n marital_status_date as marital_status_date,\n medical_exam_notes as medical_exam_notes,\n native_region as native_region,\n native_region_code as native_region_code,\n personnel_file_agency as personnel_file_agency,\n political_affiliation as political_affiliation,\n primary_nationality as primary_nationality,\n region_of_birth as region_of_birth,\n region_of_birth_code as region_of_birth_code,\n religion as religion,\n social_benefit as social_benefit,\n tobacco_use as tobacco_use,\n type as type\n\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n additional_nationality as additional_nationality,\n blood_type as blood_type,\n citizenship_status as citizenship_status,\n city_of_birth as city_of_birth,\n city_of_birth_code as city_of_birth_code,\n country_of_birth as country_of_birth,\n date_of_birth as date_of_birth,\n date_of_death as date_of_death,\n gender as gender,\n hispanic_or_latino as hispanic_or_latino,\n hukou_locality as hukou_locality,\n hukou_postal_code as hukou_postal_code,\n hukou_region as hukou_region,\n hukou_subregion as hukou_subregion,\n hukou_type as hukou_type,\n id as id,\n last_medical_exam_date as last_medical_exam_date,\n last_medical_exam_valid_to as last_medical_exam_valid_to,\n local_hukou as local_hukou,\n marital_status as marital_status,\n marital_status_date as marital_status_date,\n medical_exam_notes as medical_exam_notes,\n native_region as native_region,\n native_region_code as native_region_code,\n personnel_file_agency as personnel_file_agency,\n political_affiliation as political_affiliation,\n primary_nationality as primary_nationality,\n region_of_birth as region_of_birth,\n region_of_birth_code as region_of_birth_code,\n religion as religion,\n social_benefit as social_benefit,\n tobacco_use as tobacco_use,\n type as type\n\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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_metadata": {"name": "not_null", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__personal_information_history')) }}"}, "namespace": null}}, "test.workday.not_null_stg_workday__personal_information_history_worker_id.b9fdbd8e58": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1782422567.7479475, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__personal_information_history", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n additional_nationality as additional_nationality,\n blood_type as blood_type,\n citizenship_status as citizenship_status,\n city_of_birth as city_of_birth,\n city_of_birth_code as city_of_birth_code,\n country_of_birth as country_of_birth,\n date_of_birth as date_of_birth,\n date_of_death as date_of_death,\n gender as gender,\n hispanic_or_latino as hispanic_or_latino,\n hukou_locality as hukou_locality,\n hukou_postal_code as hukou_postal_code,\n hukou_region as hukou_region,\n hukou_subregion as hukou_subregion,\n hukou_type as hukou_type,\n id as id,\n last_medical_exam_date as last_medical_exam_date,\n last_medical_exam_valid_to as last_medical_exam_valid_to,\n local_hukou as local_hukou,\n marital_status as marital_status,\n marital_status_date as marital_status_date,\n medical_exam_notes as medical_exam_notes,\n native_region as native_region,\n native_region_code as native_region_code,\n personnel_file_agency as personnel_file_agency,\n political_affiliation as political_affiliation,\n primary_nationality as primary_nationality,\n region_of_birth as region_of_birth,\n region_of_birth_code as region_of_birth_code,\n religion as religion,\n social_benefit as social_benefit,\n tobacco_use as tobacco_use,\n type as type\n\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n additional_nationality as additional_nationality,\n blood_type as blood_type,\n citizenship_status as citizenship_status,\n city_of_birth as city_of_birth,\n city_of_birth_code as city_of_birth_code,\n country_of_birth as country_of_birth,\n date_of_birth as date_of_birth,\n date_of_death as date_of_death,\n gender as gender,\n hispanic_or_latino as hispanic_or_latino,\n hukou_locality as hukou_locality,\n hukou_postal_code as hukou_postal_code,\n hukou_region as hukou_region,\n hukou_subregion as hukou_subregion,\n hukou_type as hukou_type,\n id as id,\n last_medical_exam_date as last_medical_exam_date,\n last_medical_exam_valid_to as last_medical_exam_valid_to,\n local_hukou as local_hukou,\n marital_status as marital_status,\n marital_status_date as marital_status_date,\n medical_exam_notes as medical_exam_notes,\n native_region as native_region,\n native_region_code as native_region_code,\n personnel_file_agency as personnel_file_agency,\n political_affiliation as political_affiliation,\n primary_nationality as primary_nationality,\n region_of_birth as region_of_birth,\n region_of_birth_code as region_of_birth_code,\n religion as religion,\n social_benefit as social_benefit,\n tobacco_use as tobacco_use,\n type as type\n\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__personal_information_history')) }}"}, "namespace": null}}, "test.workday.unique_stg_workday__worker_history_history_unique_key.48173a6d72": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1782422567.750454, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__worker_history", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n academic_tenure_date as academic_tenure_date,\n active as active,\n active_status_date as active_status_date,\n annual_currency_summary_currency as annual_currency_summary_currency,\n annual_currency_summary_frequency as annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis as annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay as annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances as annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency as annual_summary_currency,\n annual_summary_frequency as annual_summary_frequency,\n annual_summary_primary_compensation_basis as annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay as annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances as annual_summary_total_salary_and_allowances,\n benefits_service_date as benefits_service_date,\n company_service_date as company_service_date,\n compensation_effective_date as compensation_effective_date,\n compensation_grade_id as compensation_grade_id,\n compensation_grade_profile_id as compensation_grade_profile_id,\n continuous_service_date as continuous_service_date,\n contract_assignment_details as contract_assignment_details,\n contract_currency_code as contract_currency_code,\n contract_end_date as contract_end_date,\n contract_frequency_name as contract_frequency_name,\n contract_pay_rate as contract_pay_rate,\n contract_vendor_name as contract_vendor_name,\n date_entered_workforce as date_entered_workforce,\n days_unemployed as days_unemployed,\n eligible_for_hire as eligible_for_hire,\n eligible_for_rehire_on_latest_termination as eligible_for_rehire_on_latest_termination,\n employee_compensation_currency as employee_compensation_currency,\n employee_compensation_frequency as employee_compensation_frequency,\n employee_compensation_primary_compensation_basis as employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay as employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances as employee_compensation_total_salary_and_allowances,\n end_employment_date as end_employment_date,\n expected_date_of_return as expected_date_of_return,\n expected_retirement_date as expected_retirement_date,\n first_day_of_work as first_day_of_work,\n has_international_assignment as has_international_assignment,\n hire_date as hire_date,\n hire_reason as hire_reason,\n hire_rescinded as hire_rescinded,\n home_country as home_country,\n hourly_frequency_currency as hourly_frequency_currency,\n hourly_frequency_frequency as hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis as hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay as hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances as hourly_frequency_total_salary_and_allowances,\n id as id,\n last_datefor_which_paid as last_datefor_which_paid,\n local_termination_reason as local_termination_reason,\n months_continuous_prior_employment as months_continuous_prior_employment,\n not_returning as not_returning,\n original_hire_date as original_hire_date,\n pay_group_frequency_currency as pay_group_frequency_currency,\n pay_group_frequency_frequency as pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis as pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay as pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances as pay_group_frequency_total_salary_and_allowances,\n pay_through_date as pay_through_date,\n primary_termination_category as primary_termination_category,\n primary_termination_reason as primary_termination_reason,\n probation_end_date as probation_end_date,\n probation_start_date as probation_start_date,\n reason_reference_id as reason_reference_id,\n regrettable_termination as regrettable_termination,\n rehire as rehire,\n resignation_date as resignation_date,\n retired as retired,\n retirement_date as retirement_date,\n retirement_eligibility_date as retirement_eligibility_date,\n return_unknown as return_unknown,\n seniority_date as seniority_date,\n severance_date as severance_date,\n terminated as terminated,\n termination_date as termination_date,\n termination_involuntary as termination_involuntary,\n termination_last_day_of_work as termination_last_day_of_work,\n time_off_service_date as time_off_service_date,\n universal_id as universal_id,\n user_id as user_id,\n vesting_date as vesting_date,\n worker_code as worker_code\n\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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 \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 annual_currency_summary_primary_compensation_basis,\n \n \n \n \n \n \n \n \n annual_currency_summary_total_base_pay,\n \n \n \n \n \n \n \n \n annual_currency_summary_total_salary_and_allowances,\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 \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 \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 \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 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\".\"public_workday_dev\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n academic_tenure_date as academic_tenure_date,\n active as active,\n active_status_date as active_status_date,\n annual_currency_summary_currency as annual_currency_summary_currency,\n annual_currency_summary_frequency as annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis as annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay as annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances as annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency as annual_summary_currency,\n annual_summary_frequency as annual_summary_frequency,\n annual_summary_primary_compensation_basis as annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay as annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances as annual_summary_total_salary_and_allowances,\n benefits_service_date as benefits_service_date,\n company_service_date as company_service_date,\n compensation_effective_date as compensation_effective_date,\n compensation_grade_id as compensation_grade_id,\n compensation_grade_profile_id as compensation_grade_profile_id,\n continuous_service_date as continuous_service_date,\n contract_assignment_details as contract_assignment_details,\n contract_currency_code as contract_currency_code,\n contract_end_date as contract_end_date,\n contract_frequency_name as contract_frequency_name,\n contract_pay_rate as contract_pay_rate,\n contract_vendor_name as contract_vendor_name,\n date_entered_workforce as date_entered_workforce,\n days_unemployed as days_unemployed,\n eligible_for_hire as eligible_for_hire,\n eligible_for_rehire_on_latest_termination as eligible_for_rehire_on_latest_termination,\n employee_compensation_currency as employee_compensation_currency,\n employee_compensation_frequency as employee_compensation_frequency,\n employee_compensation_primary_compensation_basis as employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay as employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances as employee_compensation_total_salary_and_allowances,\n end_employment_date as end_employment_date,\n expected_date_of_return as expected_date_of_return,\n expected_retirement_date as expected_retirement_date,\n first_day_of_work as first_day_of_work,\n has_international_assignment as has_international_assignment,\n hire_date as hire_date,\n hire_reason as hire_reason,\n hire_rescinded as hire_rescinded,\n home_country as home_country,\n hourly_frequency_currency as hourly_frequency_currency,\n hourly_frequency_frequency as hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis as hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay as hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances as hourly_frequency_total_salary_and_allowances,\n id as id,\n last_datefor_which_paid as last_datefor_which_paid,\n local_termination_reason as local_termination_reason,\n months_continuous_prior_employment as months_continuous_prior_employment,\n not_returning as not_returning,\n original_hire_date as original_hire_date,\n pay_group_frequency_currency as pay_group_frequency_currency,\n pay_group_frequency_frequency as pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis as pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay as pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances as pay_group_frequency_total_salary_and_allowances,\n pay_through_date as pay_through_date,\n primary_termination_category as primary_termination_category,\n primary_termination_reason as primary_termination_reason,\n probation_end_date as probation_end_date,\n probation_start_date as probation_start_date,\n reason_reference_id as reason_reference_id,\n regrettable_termination as regrettable_termination,\n rehire as rehire,\n resignation_date as resignation_date,\n retired as retired,\n retirement_date as retirement_date,\n retirement_eligibility_date as retirement_eligibility_date,\n return_unknown as return_unknown,\n seniority_date as seniority_date,\n severance_date as severance_date,\n terminated as terminated,\n termination_date as termination_date,\n termination_involuntary as termination_involuntary,\n termination_last_day_of_work as termination_last_day_of_work,\n time_off_service_date as time_off_service_date,\n universal_id as universal_id,\n user_id as user_id,\n vesting_date as vesting_date,\n worker_code as worker_code\n\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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 \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 annual_currency_summary_primary_compensation_basis,\n \n \n \n \n \n \n \n \n annual_currency_summary_total_base_pay,\n \n \n \n \n \n \n \n \n annual_currency_summary_total_salary_and_allowances,\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 \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 \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 \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 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_metadata": {"name": "unique", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__worker_history')) }}"}, "namespace": null}}, "test.workday.not_null_stg_workday__worker_history_history_unique_key.20bf1dd638": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1782422567.753108, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__worker_history", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n academic_tenure_date as academic_tenure_date,\n active as active,\n active_status_date as active_status_date,\n annual_currency_summary_currency as annual_currency_summary_currency,\n annual_currency_summary_frequency as annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis as annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay as annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances as annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency as annual_summary_currency,\n annual_summary_frequency as annual_summary_frequency,\n annual_summary_primary_compensation_basis as annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay as annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances as annual_summary_total_salary_and_allowances,\n benefits_service_date as benefits_service_date,\n company_service_date as company_service_date,\n compensation_effective_date as compensation_effective_date,\n compensation_grade_id as compensation_grade_id,\n compensation_grade_profile_id as compensation_grade_profile_id,\n continuous_service_date as continuous_service_date,\n contract_assignment_details as contract_assignment_details,\n contract_currency_code as contract_currency_code,\n contract_end_date as contract_end_date,\n contract_frequency_name as contract_frequency_name,\n contract_pay_rate as contract_pay_rate,\n contract_vendor_name as contract_vendor_name,\n date_entered_workforce as date_entered_workforce,\n days_unemployed as days_unemployed,\n eligible_for_hire as eligible_for_hire,\n eligible_for_rehire_on_latest_termination as eligible_for_rehire_on_latest_termination,\n employee_compensation_currency as employee_compensation_currency,\n employee_compensation_frequency as employee_compensation_frequency,\n employee_compensation_primary_compensation_basis as employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay as employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances as employee_compensation_total_salary_and_allowances,\n end_employment_date as end_employment_date,\n expected_date_of_return as expected_date_of_return,\n expected_retirement_date as expected_retirement_date,\n first_day_of_work as first_day_of_work,\n has_international_assignment as has_international_assignment,\n hire_date as hire_date,\n hire_reason as hire_reason,\n hire_rescinded as hire_rescinded,\n home_country as home_country,\n hourly_frequency_currency as hourly_frequency_currency,\n hourly_frequency_frequency as hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis as hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay as hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances as hourly_frequency_total_salary_and_allowances,\n id as id,\n last_datefor_which_paid as last_datefor_which_paid,\n local_termination_reason as local_termination_reason,\n months_continuous_prior_employment as months_continuous_prior_employment,\n not_returning as not_returning,\n original_hire_date as original_hire_date,\n pay_group_frequency_currency as pay_group_frequency_currency,\n pay_group_frequency_frequency as pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis as pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay as pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances as pay_group_frequency_total_salary_and_allowances,\n pay_through_date as pay_through_date,\n primary_termination_category as primary_termination_category,\n primary_termination_reason as primary_termination_reason,\n probation_end_date as probation_end_date,\n probation_start_date as probation_start_date,\n reason_reference_id as reason_reference_id,\n regrettable_termination as regrettable_termination,\n rehire as rehire,\n resignation_date as resignation_date,\n retired as retired,\n retirement_date as retirement_date,\n retirement_eligibility_date as retirement_eligibility_date,\n return_unknown as return_unknown,\n seniority_date as seniority_date,\n severance_date as severance_date,\n terminated as terminated,\n termination_date as termination_date,\n termination_involuntary as termination_involuntary,\n termination_last_day_of_work as termination_last_day_of_work,\n time_off_service_date as time_off_service_date,\n universal_id as universal_id,\n user_id as user_id,\n vesting_date as vesting_date,\n worker_code as worker_code\n\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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 \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 annual_currency_summary_primary_compensation_basis,\n \n \n \n \n \n \n \n \n annual_currency_summary_total_base_pay,\n \n \n \n \n \n \n \n \n annual_currency_summary_total_salary_and_allowances,\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 \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 \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 \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 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\".\"public_workday_dev\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n academic_tenure_date as academic_tenure_date,\n active as active,\n active_status_date as active_status_date,\n annual_currency_summary_currency as annual_currency_summary_currency,\n annual_currency_summary_frequency as annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis as annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay as annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances as annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency as annual_summary_currency,\n annual_summary_frequency as annual_summary_frequency,\n annual_summary_primary_compensation_basis as annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay as annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances as annual_summary_total_salary_and_allowances,\n benefits_service_date as benefits_service_date,\n company_service_date as company_service_date,\n compensation_effective_date as compensation_effective_date,\n compensation_grade_id as compensation_grade_id,\n compensation_grade_profile_id as compensation_grade_profile_id,\n continuous_service_date as continuous_service_date,\n contract_assignment_details as contract_assignment_details,\n contract_currency_code as contract_currency_code,\n contract_end_date as contract_end_date,\n contract_frequency_name as contract_frequency_name,\n contract_pay_rate as contract_pay_rate,\n contract_vendor_name as contract_vendor_name,\n date_entered_workforce as date_entered_workforce,\n days_unemployed as days_unemployed,\n eligible_for_hire as eligible_for_hire,\n eligible_for_rehire_on_latest_termination as eligible_for_rehire_on_latest_termination,\n employee_compensation_currency as employee_compensation_currency,\n employee_compensation_frequency as employee_compensation_frequency,\n employee_compensation_primary_compensation_basis as employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay as employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances as employee_compensation_total_salary_and_allowances,\n end_employment_date as end_employment_date,\n expected_date_of_return as expected_date_of_return,\n expected_retirement_date as expected_retirement_date,\n first_day_of_work as first_day_of_work,\n has_international_assignment as has_international_assignment,\n hire_date as hire_date,\n hire_reason as hire_reason,\n hire_rescinded as hire_rescinded,\n home_country as home_country,\n hourly_frequency_currency as hourly_frequency_currency,\n hourly_frequency_frequency as hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis as hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay as hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances as hourly_frequency_total_salary_and_allowances,\n id as id,\n last_datefor_which_paid as last_datefor_which_paid,\n local_termination_reason as local_termination_reason,\n months_continuous_prior_employment as months_continuous_prior_employment,\n not_returning as not_returning,\n original_hire_date as original_hire_date,\n pay_group_frequency_currency as pay_group_frequency_currency,\n pay_group_frequency_frequency as pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis as pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay as pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances as pay_group_frequency_total_salary_and_allowances,\n pay_through_date as pay_through_date,\n primary_termination_category as primary_termination_category,\n primary_termination_reason as primary_termination_reason,\n probation_end_date as probation_end_date,\n probation_start_date as probation_start_date,\n reason_reference_id as reason_reference_id,\n regrettable_termination as regrettable_termination,\n rehire as rehire,\n resignation_date as resignation_date,\n retired as retired,\n retirement_date as retirement_date,\n retirement_eligibility_date as retirement_eligibility_date,\n return_unknown as return_unknown,\n seniority_date as seniority_date,\n severance_date as severance_date,\n terminated as terminated,\n termination_date as termination_date,\n termination_involuntary as termination_involuntary,\n termination_last_day_of_work as termination_last_day_of_work,\n time_off_service_date as time_off_service_date,\n universal_id as universal_id,\n user_id as user_id,\n vesting_date as vesting_date,\n worker_code as worker_code\n\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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 \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 annual_currency_summary_primary_compensation_basis,\n \n \n \n \n \n \n \n \n annual_currency_summary_total_base_pay,\n \n \n \n \n \n \n \n \n annual_currency_summary_total_salary_and_allowances,\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 \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 \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 \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 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_metadata": {"name": "not_null", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__worker_history')) }}"}, "namespace": null}}, "test.workday.not_null_stg_workday__worker_history_worker_id.2cb7a23eb5": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1782422567.7555704, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__worker_history", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n academic_tenure_date as academic_tenure_date,\n active as active,\n active_status_date as active_status_date,\n annual_currency_summary_currency as annual_currency_summary_currency,\n annual_currency_summary_frequency as annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis as annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay as annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances as annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency as annual_summary_currency,\n annual_summary_frequency as annual_summary_frequency,\n annual_summary_primary_compensation_basis as annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay as annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances as annual_summary_total_salary_and_allowances,\n benefits_service_date as benefits_service_date,\n company_service_date as company_service_date,\n compensation_effective_date as compensation_effective_date,\n compensation_grade_id as compensation_grade_id,\n compensation_grade_profile_id as compensation_grade_profile_id,\n continuous_service_date as continuous_service_date,\n contract_assignment_details as contract_assignment_details,\n contract_currency_code as contract_currency_code,\n contract_end_date as contract_end_date,\n contract_frequency_name as contract_frequency_name,\n contract_pay_rate as contract_pay_rate,\n contract_vendor_name as contract_vendor_name,\n date_entered_workforce as date_entered_workforce,\n days_unemployed as days_unemployed,\n eligible_for_hire as eligible_for_hire,\n eligible_for_rehire_on_latest_termination as eligible_for_rehire_on_latest_termination,\n employee_compensation_currency as employee_compensation_currency,\n employee_compensation_frequency as employee_compensation_frequency,\n employee_compensation_primary_compensation_basis as employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay as employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances as employee_compensation_total_salary_and_allowances,\n end_employment_date as end_employment_date,\n expected_date_of_return as expected_date_of_return,\n expected_retirement_date as expected_retirement_date,\n first_day_of_work as first_day_of_work,\n has_international_assignment as has_international_assignment,\n hire_date as hire_date,\n hire_reason as hire_reason,\n hire_rescinded as hire_rescinded,\n home_country as home_country,\n hourly_frequency_currency as hourly_frequency_currency,\n hourly_frequency_frequency as hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis as hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay as hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances as hourly_frequency_total_salary_and_allowances,\n id as id,\n last_datefor_which_paid as last_datefor_which_paid,\n local_termination_reason as local_termination_reason,\n months_continuous_prior_employment as months_continuous_prior_employment,\n not_returning as not_returning,\n original_hire_date as original_hire_date,\n pay_group_frequency_currency as pay_group_frequency_currency,\n pay_group_frequency_frequency as pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis as pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay as pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances as pay_group_frequency_total_salary_and_allowances,\n pay_through_date as pay_through_date,\n primary_termination_category as primary_termination_category,\n primary_termination_reason as primary_termination_reason,\n probation_end_date as probation_end_date,\n probation_start_date as probation_start_date,\n reason_reference_id as reason_reference_id,\n regrettable_termination as regrettable_termination,\n rehire as rehire,\n resignation_date as resignation_date,\n retired as retired,\n retirement_date as retirement_date,\n retirement_eligibility_date as retirement_eligibility_date,\n return_unknown as return_unknown,\n seniority_date as seniority_date,\n severance_date as severance_date,\n terminated as terminated,\n termination_date as termination_date,\n termination_involuntary as termination_involuntary,\n termination_last_day_of_work as termination_last_day_of_work,\n time_off_service_date as time_off_service_date,\n universal_id as universal_id,\n user_id as user_id,\n vesting_date as vesting_date,\n worker_code as worker_code\n\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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 \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 annual_currency_summary_primary_compensation_basis,\n \n \n \n \n \n \n \n \n annual_currency_summary_total_base_pay,\n \n \n \n \n \n \n \n \n annual_currency_summary_total_salary_and_allowances,\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 \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 \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 \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 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\".\"public_workday_dev\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n academic_tenure_date as academic_tenure_date,\n active as active,\n active_status_date as active_status_date,\n annual_currency_summary_currency as annual_currency_summary_currency,\n annual_currency_summary_frequency as annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis as annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay as annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances as annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency as annual_summary_currency,\n annual_summary_frequency as annual_summary_frequency,\n annual_summary_primary_compensation_basis as annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay as annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances as annual_summary_total_salary_and_allowances,\n benefits_service_date as benefits_service_date,\n company_service_date as company_service_date,\n compensation_effective_date as compensation_effective_date,\n compensation_grade_id as compensation_grade_id,\n compensation_grade_profile_id as compensation_grade_profile_id,\n continuous_service_date as continuous_service_date,\n contract_assignment_details as contract_assignment_details,\n contract_currency_code as contract_currency_code,\n contract_end_date as contract_end_date,\n contract_frequency_name as contract_frequency_name,\n contract_pay_rate as contract_pay_rate,\n contract_vendor_name as contract_vendor_name,\n date_entered_workforce as date_entered_workforce,\n days_unemployed as days_unemployed,\n eligible_for_hire as eligible_for_hire,\n eligible_for_rehire_on_latest_termination as eligible_for_rehire_on_latest_termination,\n employee_compensation_currency as employee_compensation_currency,\n employee_compensation_frequency as employee_compensation_frequency,\n employee_compensation_primary_compensation_basis as employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay as employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances as employee_compensation_total_salary_and_allowances,\n end_employment_date as end_employment_date,\n expected_date_of_return as expected_date_of_return,\n expected_retirement_date as expected_retirement_date,\n first_day_of_work as first_day_of_work,\n has_international_assignment as has_international_assignment,\n hire_date as hire_date,\n hire_reason as hire_reason,\n hire_rescinded as hire_rescinded,\n home_country as home_country,\n hourly_frequency_currency as hourly_frequency_currency,\n hourly_frequency_frequency as hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis as hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay as hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances as hourly_frequency_total_salary_and_allowances,\n id as id,\n last_datefor_which_paid as last_datefor_which_paid,\n local_termination_reason as local_termination_reason,\n months_continuous_prior_employment as months_continuous_prior_employment,\n not_returning as not_returning,\n original_hire_date as original_hire_date,\n pay_group_frequency_currency as pay_group_frequency_currency,\n pay_group_frequency_frequency as pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis as pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay as pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances as pay_group_frequency_total_salary_and_allowances,\n pay_through_date as pay_through_date,\n primary_termination_category as primary_termination_category,\n primary_termination_reason as primary_termination_reason,\n probation_end_date as probation_end_date,\n probation_start_date as probation_start_date,\n reason_reference_id as reason_reference_id,\n regrettable_termination as regrettable_termination,\n rehire as rehire,\n resignation_date as resignation_date,\n retired as retired,\n retirement_date as retirement_date,\n retirement_eligibility_date as retirement_eligibility_date,\n return_unknown as return_unknown,\n seniority_date as seniority_date,\n severance_date as severance_date,\n terminated as terminated,\n termination_date as termination_date,\n termination_involuntary as termination_involuntary,\n termination_last_day_of_work as termination_last_day_of_work,\n time_off_service_date as time_off_service_date,\n universal_id as universal_id,\n user_id as user_id,\n vesting_date as vesting_date,\n worker_code as worker_code\n\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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 \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 annual_currency_summary_primary_compensation_basis,\n \n \n \n \n \n \n \n \n annual_currency_summary_total_base_pay,\n \n \n \n \n \n \n \n \n annual_currency_summary_total_salary_and_allowances,\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 \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 \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 \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 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_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_history')) }}"}, "namespace": null}}, "test.workday.unique_stg_workday__worker_position_history_history_unique_key.ff18ecb879": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1782422567.7580433, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__worker_position_history", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n academic_pay_setup_data_annual_work_period_end_date as academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date as academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year as academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date as academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date as academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language as business_site_summary_display_language,\n business_site_summary_local as business_site_summary_local,\n business_site_summary_location as business_site_summary_location,\n business_site_summary_location_type as business_site_summary_location_type,\n business_site_summary_name as business_site_summary_name,\n business_site_summary_scheduled_weekly_hours as business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile as business_site_summary_time_profile,\n business_title as business_title,\n critical_job as critical_job,\n default_weekly_hours as default_weekly_hours,\n difficulty_to_fill as difficulty_to_fill,\n effective_date as effective_date,\n employee_type as employee_type,\n end_date as end_date,\n end_employment_date as end_employment_date,\n exclude_from_head_count as exclude_from_head_count,\n expected_assignment_end_date as expected_assignment_end_date,\n external_employee as external_employee,\n federal_withholding_fein as federal_withholding_fein,\n frequency as frequency,\n full_time_equivalent_percentage as full_time_equivalent_percentage,\n headcount_restriction_code as headcount_restriction_code,\n home_country as home_country,\n host_country as host_country,\n international_assignment_type as international_assignment_type,\n is_primary_job as is_primary_job,\n job_exempt as job_exempt,\n job_profile_id as job_profile_id,\n management_level_code as management_level_code,\n paid_fte as paid_fte,\n pay_group as pay_group,\n pay_rate as pay_rate,\n pay_rate_type as pay_rate_type,\n pay_through_date as pay_through_date,\n payroll_entity as payroll_entity,\n payroll_file_number as payroll_file_number,\n position_id as position_id,\n regular_paid_equivalent_hours as regular_paid_equivalent_hours,\n scheduled_weekly_hours as scheduled_weekly_hours,\n specify_paid_fte as specify_paid_fte,\n specify_working_fte as specify_working_fte,\n start_date as start_date,\n start_international_assignment_reason as start_international_assignment_reason,\n work_hours_profile as work_hours_profile,\n work_shift as work_shift,\n work_shift_required as work_shift_required,\n work_space as work_space,\n worker_hours_profile_classification as worker_hours_profile_classification,\n worker_id as worker_id,\n working_fte as working_fte,\n working_time_frequency as working_time_frequency,\n working_time_unit as working_time_unit,\n working_time_value as working_time_value\n\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n academic_pay_setup_data_annual_work_period_end_date as academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date as academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year as academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date as academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date as academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language as business_site_summary_display_language,\n business_site_summary_local as business_site_summary_local,\n business_site_summary_location as business_site_summary_location,\n business_site_summary_location_type as business_site_summary_location_type,\n business_site_summary_name as business_site_summary_name,\n business_site_summary_scheduled_weekly_hours as business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile as business_site_summary_time_profile,\n business_title as business_title,\n critical_job as critical_job,\n default_weekly_hours as default_weekly_hours,\n difficulty_to_fill as difficulty_to_fill,\n effective_date as effective_date,\n employee_type as employee_type,\n end_date as end_date,\n end_employment_date as end_employment_date,\n exclude_from_head_count as exclude_from_head_count,\n expected_assignment_end_date as expected_assignment_end_date,\n external_employee as external_employee,\n federal_withholding_fein as federal_withholding_fein,\n frequency as frequency,\n full_time_equivalent_percentage as full_time_equivalent_percentage,\n headcount_restriction_code as headcount_restriction_code,\n home_country as home_country,\n host_country as host_country,\n international_assignment_type as international_assignment_type,\n is_primary_job as is_primary_job,\n job_exempt as job_exempt,\n job_profile_id as job_profile_id,\n management_level_code as management_level_code,\n paid_fte as paid_fte,\n pay_group as pay_group,\n pay_rate as pay_rate,\n pay_rate_type as pay_rate_type,\n pay_through_date as pay_through_date,\n payroll_entity as payroll_entity,\n payroll_file_number as payroll_file_number,\n position_id as position_id,\n regular_paid_equivalent_hours as regular_paid_equivalent_hours,\n scheduled_weekly_hours as scheduled_weekly_hours,\n specify_paid_fte as specify_paid_fte,\n specify_working_fte as specify_working_fte,\n start_date as start_date,\n start_international_assignment_reason as start_international_assignment_reason,\n work_hours_profile as work_hours_profile,\n work_shift as work_shift,\n work_shift_required as work_shift_required,\n work_space as work_space,\n worker_hours_profile_classification as worker_hours_profile_classification,\n worker_id as worker_id,\n working_fte as working_fte,\n working_time_frequency as working_time_frequency,\n working_time_unit as working_time_unit,\n working_time_value as working_time_value\n\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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_metadata": {"name": "unique", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_history')) }}"}, "namespace": null}}, "test.workday.not_null_stg_workday__worker_position_history_history_unique_key.a8e6e3f55e": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_workday__worker_p_c944587cb69904dc149ec54bf0f489e9"}, "created_at": 1782422567.760566, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__worker_p_c944587cb69904dc149ec54bf0f489e9\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__worker_position_history", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n academic_pay_setup_data_annual_work_period_end_date as academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date as academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year as academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date as academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date as academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language as business_site_summary_display_language,\n business_site_summary_local as business_site_summary_local,\n business_site_summary_location as business_site_summary_location,\n business_site_summary_location_type as business_site_summary_location_type,\n business_site_summary_name as business_site_summary_name,\n business_site_summary_scheduled_weekly_hours as business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile as business_site_summary_time_profile,\n business_title as business_title,\n critical_job as critical_job,\n default_weekly_hours as default_weekly_hours,\n difficulty_to_fill as difficulty_to_fill,\n effective_date as effective_date,\n employee_type as employee_type,\n end_date as end_date,\n end_employment_date as end_employment_date,\n exclude_from_head_count as exclude_from_head_count,\n expected_assignment_end_date as expected_assignment_end_date,\n external_employee as external_employee,\n federal_withholding_fein as federal_withholding_fein,\n frequency as frequency,\n full_time_equivalent_percentage as full_time_equivalent_percentage,\n headcount_restriction_code as headcount_restriction_code,\n home_country as home_country,\n host_country as host_country,\n international_assignment_type as international_assignment_type,\n is_primary_job as is_primary_job,\n job_exempt as job_exempt,\n job_profile_id as job_profile_id,\n management_level_code as management_level_code,\n paid_fte as paid_fte,\n pay_group as pay_group,\n pay_rate as pay_rate,\n pay_rate_type as pay_rate_type,\n pay_through_date as pay_through_date,\n payroll_entity as payroll_entity,\n payroll_file_number as payroll_file_number,\n position_id as position_id,\n regular_paid_equivalent_hours as regular_paid_equivalent_hours,\n scheduled_weekly_hours as scheduled_weekly_hours,\n specify_paid_fte as specify_paid_fte,\n specify_working_fte as specify_working_fte,\n start_date as start_date,\n start_international_assignment_reason as start_international_assignment_reason,\n work_hours_profile as work_hours_profile,\n work_shift as work_shift,\n work_shift_required as work_shift_required,\n work_space as work_space,\n worker_hours_profile_classification as worker_hours_profile_classification,\n worker_id as worker_id,\n working_fte as working_fte,\n working_time_frequency as working_time_frequency,\n working_time_unit as working_time_unit,\n working_time_value as working_time_value\n\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n academic_pay_setup_data_annual_work_period_end_date as academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date as academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year as academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date as academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date as academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language as business_site_summary_display_language,\n business_site_summary_local as business_site_summary_local,\n business_site_summary_location as business_site_summary_location,\n business_site_summary_location_type as business_site_summary_location_type,\n business_site_summary_name as business_site_summary_name,\n business_site_summary_scheduled_weekly_hours as business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile as business_site_summary_time_profile,\n business_title as business_title,\n critical_job as critical_job,\n default_weekly_hours as default_weekly_hours,\n difficulty_to_fill as difficulty_to_fill,\n effective_date as effective_date,\n employee_type as employee_type,\n end_date as end_date,\n end_employment_date as end_employment_date,\n exclude_from_head_count as exclude_from_head_count,\n expected_assignment_end_date as expected_assignment_end_date,\n external_employee as external_employee,\n federal_withholding_fein as federal_withholding_fein,\n frequency as frequency,\n full_time_equivalent_percentage as full_time_equivalent_percentage,\n headcount_restriction_code as headcount_restriction_code,\n home_country as home_country,\n host_country as host_country,\n international_assignment_type as international_assignment_type,\n is_primary_job as is_primary_job,\n job_exempt as job_exempt,\n job_profile_id as job_profile_id,\n management_level_code as management_level_code,\n paid_fte as paid_fte,\n pay_group as pay_group,\n pay_rate as pay_rate,\n pay_rate_type as pay_rate_type,\n pay_through_date as pay_through_date,\n payroll_entity as payroll_entity,\n payroll_file_number as payroll_file_number,\n position_id as position_id,\n regular_paid_equivalent_hours as regular_paid_equivalent_hours,\n scheduled_weekly_hours as scheduled_weekly_hours,\n specify_paid_fte as specify_paid_fte,\n specify_working_fte as specify_working_fte,\n start_date as start_date,\n start_international_assignment_reason as start_international_assignment_reason,\n work_hours_profile as work_hours_profile,\n work_shift as work_shift,\n work_shift_required as work_shift_required,\n work_space as work_space,\n worker_hours_profile_classification as worker_hours_profile_classification,\n worker_id as worker_id,\n working_fte as working_fte,\n working_time_frequency as working_time_frequency,\n working_time_unit as working_time_unit,\n working_time_value as working_time_value\n\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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_metadata": {"name": "not_null", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_history')) }}"}, "namespace": null}}, "test.workday.not_null_stg_workday__worker_position_history_worker_id.b7059c600d": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1782422567.7630215, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__worker_position_history", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n academic_pay_setup_data_annual_work_period_end_date as academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date as academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year as academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date as academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date as academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language as business_site_summary_display_language,\n business_site_summary_local as business_site_summary_local,\n business_site_summary_location as business_site_summary_location,\n business_site_summary_location_type as business_site_summary_location_type,\n business_site_summary_name as business_site_summary_name,\n business_site_summary_scheduled_weekly_hours as business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile as business_site_summary_time_profile,\n business_title as business_title,\n critical_job as critical_job,\n default_weekly_hours as default_weekly_hours,\n difficulty_to_fill as difficulty_to_fill,\n effective_date as effective_date,\n employee_type as employee_type,\n end_date as end_date,\n end_employment_date as end_employment_date,\n exclude_from_head_count as exclude_from_head_count,\n expected_assignment_end_date as expected_assignment_end_date,\n external_employee as external_employee,\n federal_withholding_fein as federal_withholding_fein,\n frequency as frequency,\n full_time_equivalent_percentage as full_time_equivalent_percentage,\n headcount_restriction_code as headcount_restriction_code,\n home_country as home_country,\n host_country as host_country,\n international_assignment_type as international_assignment_type,\n is_primary_job as is_primary_job,\n job_exempt as job_exempt,\n job_profile_id as job_profile_id,\n management_level_code as management_level_code,\n paid_fte as paid_fte,\n pay_group as pay_group,\n pay_rate as pay_rate,\n pay_rate_type as pay_rate_type,\n pay_through_date as pay_through_date,\n payroll_entity as payroll_entity,\n payroll_file_number as payroll_file_number,\n position_id as position_id,\n regular_paid_equivalent_hours as regular_paid_equivalent_hours,\n scheduled_weekly_hours as scheduled_weekly_hours,\n specify_paid_fte as specify_paid_fte,\n specify_working_fte as specify_working_fte,\n start_date as start_date,\n start_international_assignment_reason as start_international_assignment_reason,\n work_hours_profile as work_hours_profile,\n work_shift as work_shift,\n work_shift_required as work_shift_required,\n work_space as work_space,\n worker_hours_profile_classification as worker_hours_profile_classification,\n worker_id as worker_id,\n working_fte as working_fte,\n working_time_frequency as working_time_frequency,\n working_time_unit as working_time_unit,\n working_time_value as working_time_value\n\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n academic_pay_setup_data_annual_work_period_end_date as academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date as academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year as academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date as academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date as academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language as business_site_summary_display_language,\n business_site_summary_local as business_site_summary_local,\n business_site_summary_location as business_site_summary_location,\n business_site_summary_location_type as business_site_summary_location_type,\n business_site_summary_name as business_site_summary_name,\n business_site_summary_scheduled_weekly_hours as business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile as business_site_summary_time_profile,\n business_title as business_title,\n critical_job as critical_job,\n default_weekly_hours as default_weekly_hours,\n difficulty_to_fill as difficulty_to_fill,\n effective_date as effective_date,\n employee_type as employee_type,\n end_date as end_date,\n end_employment_date as end_employment_date,\n exclude_from_head_count as exclude_from_head_count,\n expected_assignment_end_date as expected_assignment_end_date,\n external_employee as external_employee,\n federal_withholding_fein as federal_withholding_fein,\n frequency as frequency,\n full_time_equivalent_percentage as full_time_equivalent_percentage,\n headcount_restriction_code as headcount_restriction_code,\n home_country as home_country,\n host_country as host_country,\n international_assignment_type as international_assignment_type,\n is_primary_job as is_primary_job,\n job_exempt as job_exempt,\n job_profile_id as job_profile_id,\n management_level_code as management_level_code,\n paid_fte as paid_fte,\n pay_group as pay_group,\n pay_rate as pay_rate,\n pay_rate_type as pay_rate_type,\n pay_through_date as pay_through_date,\n payroll_entity as payroll_entity,\n payroll_file_number as payroll_file_number,\n position_id as position_id,\n regular_paid_equivalent_hours as regular_paid_equivalent_hours,\n scheduled_weekly_hours as scheduled_weekly_hours,\n specify_paid_fte as specify_paid_fte,\n specify_working_fte as specify_working_fte,\n start_date as start_date,\n start_international_assignment_reason as start_international_assignment_reason,\n work_hours_profile as work_hours_profile,\n work_shift as work_shift,\n work_shift_required as work_shift_required,\n work_space as work_space,\n worker_hours_profile_classification as worker_hours_profile_classification,\n worker_id as worker_id,\n working_fte as working_fte,\n working_time_frequency as working_time_frequency,\n working_time_unit as working_time_unit,\n working_time_value as working_time_value\n\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_history')) }}"}, "namespace": null}}, "test.workday.not_null_stg_workday__worker_position_history_position_id.02ef0674c9": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1782422567.765625, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__worker_position_history", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n academic_pay_setup_data_annual_work_period_end_date as academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date as academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year as academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date as academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date as academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language as business_site_summary_display_language,\n business_site_summary_local as business_site_summary_local,\n business_site_summary_location as business_site_summary_location,\n business_site_summary_location_type as business_site_summary_location_type,\n business_site_summary_name as business_site_summary_name,\n business_site_summary_scheduled_weekly_hours as business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile as business_site_summary_time_profile,\n business_title as business_title,\n critical_job as critical_job,\n default_weekly_hours as default_weekly_hours,\n difficulty_to_fill as difficulty_to_fill,\n effective_date as effective_date,\n employee_type as employee_type,\n end_date as end_date,\n end_employment_date as end_employment_date,\n exclude_from_head_count as exclude_from_head_count,\n expected_assignment_end_date as expected_assignment_end_date,\n external_employee as external_employee,\n federal_withholding_fein as federal_withholding_fein,\n frequency as frequency,\n full_time_equivalent_percentage as full_time_equivalent_percentage,\n headcount_restriction_code as headcount_restriction_code,\n home_country as home_country,\n host_country as host_country,\n international_assignment_type as international_assignment_type,\n is_primary_job as is_primary_job,\n job_exempt as job_exempt,\n job_profile_id as job_profile_id,\n management_level_code as management_level_code,\n paid_fte as paid_fte,\n pay_group as pay_group,\n pay_rate as pay_rate,\n pay_rate_type as pay_rate_type,\n pay_through_date as pay_through_date,\n payroll_entity as payroll_entity,\n payroll_file_number as payroll_file_number,\n position_id as position_id,\n regular_paid_equivalent_hours as regular_paid_equivalent_hours,\n scheduled_weekly_hours as scheduled_weekly_hours,\n specify_paid_fte as specify_paid_fte,\n specify_working_fte as specify_working_fte,\n start_date as start_date,\n start_international_assignment_reason as start_international_assignment_reason,\n work_hours_profile as work_hours_profile,\n work_shift as work_shift,\n work_shift_required as work_shift_required,\n work_space as work_space,\n worker_hours_profile_classification as worker_hours_profile_classification,\n worker_id as worker_id,\n working_fte as working_fte,\n working_time_frequency as working_time_frequency,\n working_time_unit as working_time_unit,\n working_time_value as working_time_value\n\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n academic_pay_setup_data_annual_work_period_end_date as academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date as academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year as academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date as academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date as academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language as business_site_summary_display_language,\n business_site_summary_local as business_site_summary_local,\n business_site_summary_location as business_site_summary_location,\n business_site_summary_location_type as business_site_summary_location_type,\n business_site_summary_name as business_site_summary_name,\n business_site_summary_scheduled_weekly_hours as business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile as business_site_summary_time_profile,\n business_title as business_title,\n critical_job as critical_job,\n default_weekly_hours as default_weekly_hours,\n difficulty_to_fill as difficulty_to_fill,\n effective_date as effective_date,\n employee_type as employee_type,\n end_date as end_date,\n end_employment_date as end_employment_date,\n exclude_from_head_count as exclude_from_head_count,\n expected_assignment_end_date as expected_assignment_end_date,\n external_employee as external_employee,\n federal_withholding_fein as federal_withholding_fein,\n frequency as frequency,\n full_time_equivalent_percentage as full_time_equivalent_percentage,\n headcount_restriction_code as headcount_restriction_code,\n home_country as home_country,\n host_country as host_country,\n international_assignment_type as international_assignment_type,\n is_primary_job as is_primary_job,\n job_exempt as job_exempt,\n job_profile_id as job_profile_id,\n management_level_code as management_level_code,\n paid_fte as paid_fte,\n pay_group as pay_group,\n pay_rate as pay_rate,\n pay_rate_type as pay_rate_type,\n pay_through_date as pay_through_date,\n payroll_entity as payroll_entity,\n payroll_file_number as payroll_file_number,\n position_id as position_id,\n regular_paid_equivalent_hours as regular_paid_equivalent_hours,\n scheduled_weekly_hours as scheduled_weekly_hours,\n specify_paid_fte as specify_paid_fte,\n specify_working_fte as specify_working_fte,\n start_date as start_date,\n start_international_assignment_reason as start_international_assignment_reason,\n work_hours_profile as work_hours_profile,\n work_shift as work_shift,\n work_shift_required as work_shift_required,\n work_space as work_space,\n worker_hours_profile_classification as worker_hours_profile_classification,\n worker_id as worker_id,\n working_fte as working_fte,\n working_time_frequency as working_time_frequency,\n working_time_unit as working_time_unit,\n working_time_value as working_time_value\n\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_history')) }}"}, "namespace": null}}, "test.workday.unique_stg_workday__worker_position_organization_history_history_unique_key.f54a0e0398": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "unique_stg_workday__worker_pos_1a68f337fa0582521a7db4f909dbfc22"}, "created_at": 1782422567.76811, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}{{ config(alias=\"unique_stg_workday__worker_pos_1a68f337fa0582521a7db4f909dbfc22\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_history", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n index as index,\n position_id as position_id,\n worker_id as worker_id,\n date_of_pay_group_assignment as date_of_pay_group_assignment,\n organization_id as organization_id,\n primary_business_site as primary_business_site,\n used_in_change_organization_assignments as used_in_change_organization_assignments\n\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n index as index,\n position_id as position_id,\n worker_id as worker_id,\n date_of_pay_group_assignment as date_of_pay_group_assignment,\n organization_id as organization_id,\n primary_business_site as primary_business_site,\n used_in_change_organization_assignments as used_in_change_organization_assignments\n\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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_metadata": {"name": "unique", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization_history')) }}"}, "namespace": null}}, "test.workday.not_null_stg_workday__worker_position_organization_history_history_unique_key.ae1422e8bf": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_workday__worker_p_518901ce1a15646095927d6a041af3d6"}, "created_at": 1782422567.770586, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__worker_p_518901ce1a15646095927d6a041af3d6\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_history", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n index as index,\n position_id as position_id,\n worker_id as worker_id,\n date_of_pay_group_assignment as date_of_pay_group_assignment,\n organization_id as organization_id,\n primary_business_site as primary_business_site,\n used_in_change_organization_assignments as used_in_change_organization_assignments\n\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n index as index,\n position_id as position_id,\n worker_id as worker_id,\n date_of_pay_group_assignment as date_of_pay_group_assignment,\n organization_id as organization_id,\n primary_business_site as primary_business_site,\n used_in_change_organization_assignments as used_in_change_organization_assignments\n\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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_metadata": {"name": "not_null", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization_history')) }}"}, "namespace": null}}, "test.workday.not_null_stg_workday__worker_position_organization_history_worker_id.d364de4bf3": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_workday__worker_p_e71f2575b8bdd1b669d2663f9b8d436a"}, "created_at": 1782422567.7730901, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__worker_p_e71f2575b8bdd1b669d2663f9b8d436a\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_history", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n index as index,\n position_id as position_id,\n worker_id as worker_id,\n date_of_pay_group_assignment as date_of_pay_group_assignment,\n organization_id as organization_id,\n primary_business_site as primary_business_site,\n used_in_change_organization_assignments as used_in_change_organization_assignments\n\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n index as index,\n position_id as position_id,\n worker_id as worker_id,\n date_of_pay_group_assignment as date_of_pay_group_assignment,\n organization_id as organization_id,\n primary_business_site as primary_business_site,\n used_in_change_organization_assignments as used_in_change_organization_assignments\n\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization_history')) }}"}, "namespace": null}}, "test.workday.not_null_stg_workday__worker_position_organization_history_position_id.9676945ef5": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_workday__worker_p_0ecc03f267616c4f7fc29bef1bd47441"}, "created_at": 1782422567.7756655, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__worker_p_0ecc03f267616c4f7fc29bef1bd47441\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_history", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n index as index,\n position_id as position_id,\n worker_id as worker_id,\n date_of_pay_group_assignment as date_of_pay_group_assignment,\n organization_id as organization_id,\n primary_business_site as primary_business_site,\n used_in_change_organization_assignments as used_in_change_organization_assignments\n\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n index as index,\n position_id as position_id,\n worker_id as worker_id,\n date_of_pay_group_assignment as date_of_pay_group_assignment,\n organization_id as organization_id,\n primary_business_site as primary_business_site,\n used_in_change_organization_assignments as used_in_change_organization_assignments\n\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization_history')) }}"}, "namespace": null}}, "test.workday.not_null_stg_workday__worker_position_organization_history_organization_id.97cda6043d": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_workday__worker_p_99bb646f526b3826c22dee3fd24856d0"}, "created_at": 1782422567.7781353, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__worker_p_99bb646f526b3826c22dee3fd24856d0\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_history", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n index as index,\n position_id as position_id,\n worker_id as worker_id,\n date_of_pay_group_assignment as date_of_pay_group_assignment,\n organization_id as organization_id,\n primary_business_site as primary_business_site,\n used_in_change_organization_assignments as used_in_change_organization_assignments\n\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n index as index,\n position_id as position_id,\n worker_id as worker_id,\n date_of_pay_group_assignment as date_of_pay_group_assignment,\n organization_id as organization_id,\n primary_business_site as primary_business_site,\n used_in_change_organization_assignments as used_in_change_organization_assignments\n\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization_history')) }}"}, "namespace": null}}, "test.workday.not_null_stg_workday__job_profile_job_profile_id.1166250eaa": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1782422567.8551404, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__job_profile_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n additional_job_description as additional_job_description,\n compensation_grade_id as compensation_grade_id,\n critical_job as critical_job,\n description as description,\n difficulty_to_fill as difficulty_to_fill,\n effective_date as effective_date,\n id as id,\n inactive as inactive,\n include_job_code_in_name as include_job_code_in_name,\n job_category_id as job_category_id,\n job_profile_code as job_profile_code,\n level as level,\n management_level as management_level,\n private_title as private_title,\n public_job as public_job,\n referral_payment_plan as referral_payment_plan,\n summary as summary,\n title as title,\n union_code as union_code,\n union_membership_requirement as union_membership_requirement,\n work_shift_required as work_shift_required,\n work_study_award_source_code as work_study_award_source_code,\n work_study_requirement_option_code as work_study_requirement_option_code\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__job_profile_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n additional_job_description as additional_job_description,\n compensation_grade_id as compensation_grade_id,\n critical_job as critical_job,\n description as description,\n difficulty_to_fill as difficulty_to_fill,\n effective_date as effective_date,\n id as id,\n inactive as inactive,\n include_job_code_in_name as include_job_code_in_name,\n job_category_id as job_category_id,\n job_profile_code as job_profile_code,\n level as level,\n management_level as management_level,\n private_title as private_title,\n public_job as public_job,\n referral_payment_plan as referral_payment_plan,\n summary as summary,\n title as title,\n union_code as union_code,\n union_membership_requirement as union_membership_requirement,\n work_shift_required as work_shift_required,\n work_study_award_source_code as work_study_award_source_code,\n work_study_requirement_option_code as work_study_requirement_option_code\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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_metadata": {"name": "not_null", "kwargs": {"column_name": "job_profile_id", "model": "{{ get_where_subquery(ref('stg_workday__job_profile')) }}"}, "namespace": null}}, "test.workday.not_null_stg_workday__job_family_job_profile_job_family_id.f5bbfef4e8": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1782422567.8576689, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__job_family_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n job_family_id as job_family_id,\n job_profile_id as job_profile_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n job_family_id as job_family_id,\n job_profile_id as job_profile_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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_metadata": {"name": "not_null", "kwargs": {"column_name": "job_family_id", "model": "{{ get_where_subquery(ref('stg_workday__job_family_job_profile')) }}"}, "namespace": null}}, "test.workday.not_null_stg_workday__job_family_job_profile_job_profile_id.c7a636316c": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1782422567.8602262, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__job_family_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n job_family_id as job_family_id,\n job_profile_id as job_profile_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n job_family_id as job_family_id,\n job_profile_id as job_profile_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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_metadata": {"name": "not_null", "kwargs": {"column_name": "job_profile_id", "model": "{{ get_where_subquery(ref('stg_workday__job_family_job_profile')) }}"}, "namespace": null}}, "test.workday.not_null_stg_workday__job_family_job_family_id.0dbfcdcd3f": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1782422567.862727, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__job_family", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__job_family_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n effective_date as effective_date,\n id as id,\n inactive as inactive,\n job_family_code as job_family_code,\n summary as summary\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__job_family_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n effective_date as effective_date,\n id as id,\n inactive as inactive,\n job_family_code as job_family_code,\n summary as summary\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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_metadata": {"name": "not_null", "kwargs": {"column_name": "job_family_id", "model": "{{ get_where_subquery(ref('stg_workday__job_family')) }}"}, "namespace": null}}, "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_id.589a75cf0b": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1782422567.8652134, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__job_family_job_family_group", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n job_family_id as job_family_id,\n job_family_group_id as job_family_group_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n job_family_id as job_family_id,\n job_family_group_id as job_family_group_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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_metadata": {"name": "not_null", "kwargs": {"column_name": "job_family_id", "model": "{{ get_where_subquery(ref('stg_workday__job_family_job_family_group')) }}"}, "namespace": null}}, "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_group_id.f105a73bde": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_workday__job_fami_c0a4daa8ee8fbab4cd5d40cfe44484af"}, "created_at": 1782422567.8677056, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__job_fami_c0a4daa8ee8fbab4cd5d40cfe44484af\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__job_family_job_family_group", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n job_family_id as job_family_id,\n job_family_group_id as job_family_group_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n job_family_id as job_family_id,\n job_family_group_id as job_family_group_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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_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}}, "test.workday.not_null_stg_workday__job_family_group_job_family_group_id.e25ebb9009": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1782422567.8701866, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__job_family_group", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__job_family_group_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n effective_date as effective_date,\n id as id,\n inactive as inactive,\n job_family_group_code as job_family_group_code,\n summary as summary\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__job_family_group_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n effective_date as effective_date,\n id as id,\n inactive as inactive,\n job_family_group_code as job_family_group_code,\n summary as summary\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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_metadata": {"name": "not_null", "kwargs": {"column_name": "job_family_group_id", "model": "{{ get_where_subquery(ref('stg_workday__job_family_group')) }}"}, "namespace": null}}, "test.workday.not_null_stg_workday__organization_role_organization_id.917651c7a7": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1782422567.8727534, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__organization_role", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n organization_id as organization_id,\n organization_role_code as organization_role_code,\n role_id as role_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n organization_id as organization_id,\n organization_role_code as organization_role_code,\n role_id as role_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__organization_role')) }}"}, "namespace": null}}, "test.workday.not_null_stg_workday__organization_role_organization_role_id.2ea32fe93f": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1782422567.8752735, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__organization_role", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n organization_id as organization_id,\n organization_role_code as organization_role_code,\n role_id as role_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n organization_id as organization_id,\n organization_role_code as organization_role_code,\n role_id as role_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_role_id", "model": "{{ get_where_subquery(ref('stg_workday__organization_role')) }}"}, "namespace": null}}, "test.workday.not_null_stg_workday__organization_role_worker_organization_worker_code.ddc8d566ca": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_workday__organiza_0783852f549eb5adccc96839860dacda"}, "created_at": 1782422567.8777428, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__organiza_0783852f549eb5adccc96839860dacda\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__organization_role_worker", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n associated_worker_id as associated_worker_id,\n organization_id as organization_id,\n role_id as role_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n associated_worker_id as associated_worker_id,\n organization_id as organization_id,\n role_id as role_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_worker_code", "model": "{{ get_where_subquery(ref('stg_workday__organization_role_worker')) }}"}, "namespace": null}}, "test.workday.not_null_stg_workday__organization_role_worker_organization_id.b98960b9f5": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1782422567.8801858, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__organization_role_worker", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n associated_worker_id as associated_worker_id,\n organization_id as organization_id,\n role_id as role_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n associated_worker_id as associated_worker_id,\n organization_id as organization_id,\n role_id as role_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__organization_role_worker')) }}"}, "namespace": null}}, "test.workday.not_null_stg_workday__organization_role_worker_role_id.1703a44b72": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1782422567.882794, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__organization_role_worker", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n associated_worker_id as associated_worker_id,\n organization_id as organization_id,\n role_id as role_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n associated_worker_id as associated_worker_id,\n organization_id as organization_id,\n role_id as role_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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_metadata": {"name": "not_null", "kwargs": {"column_name": "role_id", "model": "{{ get_where_subquery(ref('stg_workday__organization_role_worker')) }}"}, "namespace": null}}, "test.workday.not_null_stg_workday__organization_job_family_job_family_id.a2ab2ad617": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1782422567.8852532, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__organization_job_family", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__organization_job_family_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n job_family_group_id as job_family_group_id,\n job_family_id as job_family_id,\n organization_id as organization_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__organization_job_family_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n job_family_group_id as job_family_group_id,\n job_family_id as job_family_id,\n organization_id as organization_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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_metadata": {"name": "not_null", "kwargs": {"column_name": "job_family_id", "model": "{{ get_where_subquery(ref('stg_workday__organization_job_family')) }}"}, "namespace": null}}, "test.workday.not_null_stg_workday__organization_job_family_organization_id.3fc5ce5e7e": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1782422567.8876822, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__organization_job_family", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__organization_job_family_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n job_family_group_id as job_family_group_id,\n job_family_id as job_family_id,\n organization_id as organization_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__organization_job_family_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n job_family_group_id as job_family_group_id,\n job_family_id as job_family_id,\n organization_id as organization_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__organization_job_family')) }}"}, "namespace": null}}, "test.workday.not_null_stg_workday__organization_organization_id.f11f86e5c7": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1782422567.890113, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__organization", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__organization_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n availability_date as availability_date,\n available_for_hire as available_for_hire,\n code as code,\n description as description,\n external_url as external_url,\n hiring_freeze as hiring_freeze,\n id as id,\n inactive as inactive,\n inactive_date as inactive_date,\n include_manager_in_name as include_manager_in_name,\n include_organization_code_in_name as include_organization_code_in_name,\n last_updated_date_time as last_updated_date_time,\n location as location,\n manager_id as manager_id,\n name as name,\n organization_code as organization_code,\n organization_owner_id as organization_owner_id,\n staffing_model as staffing_model,\n sub_type as sub_type,\n superior_organization_id as superior_organization_id,\n supervisory_position_availability_date as supervisory_position_availability_date,\n supervisory_position_earliest_hire_date as supervisory_position_earliest_hire_date,\n supervisory_position_time_type as supervisory_position_time_type,\n supervisory_position_worker_type as supervisory_position_worker_type,\n top_level_organization_id as top_level_organization_id,\n type as type,\n visibility as visibility\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__organization_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n availability_date as availability_date,\n available_for_hire as available_for_hire,\n code as code,\n description as description,\n external_url as external_url,\n hiring_freeze as hiring_freeze,\n id as id,\n inactive as inactive,\n inactive_date as inactive_date,\n include_manager_in_name as include_manager_in_name,\n include_organization_code_in_name as include_organization_code_in_name,\n last_updated_date_time as last_updated_date_time,\n location as location,\n manager_id as manager_id,\n name as name,\n organization_code as organization_code,\n organization_owner_id as organization_owner_id,\n staffing_model as staffing_model,\n sub_type as sub_type,\n superior_organization_id as superior_organization_id,\n supervisory_position_availability_date as supervisory_position_availability_date,\n supervisory_position_earliest_hire_date as supervisory_position_earliest_hire_date,\n supervisory_position_time_type as supervisory_position_time_type,\n supervisory_position_worker_type as supervisory_position_worker_type,\n top_level_organization_id as top_level_organization_id,\n type as type,\n visibility as visibility\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__organization')) }}"}, "namespace": null}}, "test.workday.not_null_stg_workday__position_organization_organization_id.567af692ad": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1782422567.892576, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__position_organization_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n organization_id as organization_id,\n position_id as position_id,\n type as type\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__position_organization_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n organization_id as organization_id,\n position_id as position_id,\n type as type\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__position_organization')) }}"}, "namespace": null}}, "test.workday.not_null_stg_workday__position_organization_position_id.f62eb486b7": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1782422567.895157, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__position_organization_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n organization_id as organization_id,\n position_id as position_id,\n type as type\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__position_organization_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n organization_id as organization_id,\n position_id as position_id,\n type as type\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__position_organization')) }}"}, "namespace": null}}, "test.workday.not_null_stg_workday__position_position_id.8a8bc89d4e": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1782422567.8975935, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__position", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__position_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n academic_tenure_eligible as academic_tenure_eligible,\n availability_date as availability_date,\n available_for_hire as available_for_hire,\n available_for_overlap as available_for_overlap,\n available_for_recruiting as available_for_recruiting,\n closed as closed,\n compensation_grade_code as compensation_grade_code,\n compensation_grade_profile_code as compensation_grade_profile_code,\n compensation_package_code as compensation_package_code,\n compensation_step_code as compensation_step_code,\n critical_job as critical_job,\n difficulty_to_fill_code as difficulty_to_fill_code,\n earliest_hire_date as earliest_hire_date,\n earliest_overlap_date as earliest_overlap_date,\n effective_date as effective_date,\n hiring_freeze as hiring_freeze,\n id as id,\n job_description as job_description,\n job_description_summary as job_description_summary,\n job_posting_title as job_posting_title,\n position_code as position_code,\n position_time_type_code as position_time_type_code,\n primary_compensation_basis as primary_compensation_basis,\n primary_compensation_basis_amount_change as primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change as primary_compensation_basis_percent_change,\n supervisory_organization_id as supervisory_organization_id,\n work_shift_required as work_shift_required,\n worker_for_filled_position_id as worker_for_filled_position_id,\n worker_position_id as worker_position_id,\n worker_type_code as worker_type_code\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__position_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n academic_tenure_eligible as academic_tenure_eligible,\n availability_date as availability_date,\n available_for_hire as available_for_hire,\n available_for_overlap as available_for_overlap,\n available_for_recruiting as available_for_recruiting,\n closed as closed,\n compensation_grade_code as compensation_grade_code,\n compensation_grade_profile_code as compensation_grade_profile_code,\n compensation_package_code as compensation_package_code,\n compensation_step_code as compensation_step_code,\n critical_job as critical_job,\n difficulty_to_fill_code as difficulty_to_fill_code,\n earliest_hire_date as earliest_hire_date,\n earliest_overlap_date as earliest_overlap_date,\n effective_date as effective_date,\n hiring_freeze as hiring_freeze,\n id as id,\n job_description as job_description,\n job_description_summary as job_description_summary,\n job_posting_title as job_posting_title,\n position_code as position_code,\n position_time_type_code as position_time_type_code,\n primary_compensation_basis as primary_compensation_basis,\n primary_compensation_basis_amount_change as primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change as primary_compensation_basis_percent_change,\n supervisory_organization_id as supervisory_organization_id,\n work_shift_required as work_shift_required,\n worker_for_filled_position_id as worker_for_filled_position_id,\n worker_position_id as worker_position_id,\n worker_type_code as worker_type_code\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__position')) }}"}, "namespace": null}}, "test.workday.not_null_stg_workday__position_job_profile_job_profile_id.214e63eb51": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1782422567.9000397, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__position_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n difficulty_to_fill_code as difficulty_to_fill_code,\n is_critical_job as is_critical_job,\n job_category_code as job_category_code,\n job_profile_id as job_profile_id,\n management_level_code as management_level_code,\n name as name,\n position_id as position_id,\n work_shift_required as work_shift_required\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n difficulty_to_fill_code as difficulty_to_fill_code,\n is_critical_job as is_critical_job,\n job_category_code as job_category_code,\n job_profile_id as job_profile_id,\n management_level_code as management_level_code,\n name as name,\n position_id as position_id,\n work_shift_required as work_shift_required\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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_metadata": {"name": "not_null", "kwargs": {"column_name": "job_profile_id", "model": "{{ get_where_subquery(ref('stg_workday__position_job_profile')) }}"}, "namespace": null}}, "test.workday.not_null_stg_workday__position_job_profile_position_id.edebffbee7": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1782422567.9025526, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__position_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n difficulty_to_fill_code as difficulty_to_fill_code,\n is_critical_job as is_critical_job,\n job_category_code as job_category_code,\n job_profile_id as job_profile_id,\n management_level_code as management_level_code,\n name as name,\n position_id as position_id,\n work_shift_required as work_shift_required\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n difficulty_to_fill_code as difficulty_to_fill_code,\n is_critical_job as is_critical_job,\n job_category_code as job_category_code,\n job_profile_id as job_profile_id,\n management_level_code as management_level_code,\n name as name,\n position_id as position_id,\n work_shift_required as work_shift_required\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__position_job_profile')) }}"}, "namespace": null}}, "test.workday.not_null_stg_workday__worker_worker_id.8dae310560": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1782422567.9051542, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__worker", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n academic_tenure_date as academic_tenure_date,\n active as active,\n active_status_date as active_status_date,\n annual_currency_summary_currency as annual_currency_summary_currency,\n annual_currency_summary_frequency as annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis as annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay as annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances as annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency as annual_summary_currency,\n annual_summary_frequency as annual_summary_frequency,\n annual_summary_primary_compensation_basis as annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay as annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances as annual_summary_total_salary_and_allowances,\n benefits_service_date as benefits_service_date,\n company_service_date as company_service_date,\n compensation_effective_date as compensation_effective_date,\n compensation_grade_id as compensation_grade_id,\n compensation_grade_profile_id as compensation_grade_profile_id,\n continuous_service_date as continuous_service_date,\n contract_assignment_details as contract_assignment_details,\n contract_currency_code as contract_currency_code,\n contract_end_date as contract_end_date,\n contract_frequency_name as contract_frequency_name,\n contract_pay_rate as contract_pay_rate,\n contract_vendor_name as contract_vendor_name,\n date_entered_workforce as date_entered_workforce,\n days_unemployed as days_unemployed,\n eligible_for_hire as eligible_for_hire,\n eligible_for_rehire_on_latest_termination as eligible_for_rehire_on_latest_termination,\n employee_compensation_currency as employee_compensation_currency,\n employee_compensation_frequency as employee_compensation_frequency,\n employee_compensation_primary_compensation_basis as employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay as employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances as employee_compensation_total_salary_and_allowances,\n end_employment_date as end_employment_date,\n expected_date_of_return as expected_date_of_return,\n expected_retirement_date as expected_retirement_date,\n first_day_of_work as first_day_of_work,\n has_international_assignment as has_international_assignment,\n hire_date as hire_date,\n hire_reason as hire_reason,\n hire_rescinded as hire_rescinded,\n home_country as home_country,\n hourly_frequency_currency as hourly_frequency_currency,\n hourly_frequency_frequency as hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis as hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay as hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances as hourly_frequency_total_salary_and_allowances,\n id as id,\n last_datefor_which_paid as last_datefor_which_paid,\n local_termination_reason as local_termination_reason,\n months_continuous_prior_employment as months_continuous_prior_employment,\n not_returning as not_returning,\n original_hire_date as original_hire_date,\n pay_group_frequency_currency as pay_group_frequency_currency,\n pay_group_frequency_frequency as pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis as pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay as pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances as pay_group_frequency_total_salary_and_allowances,\n pay_through_date as pay_through_date,\n primary_termination_category as primary_termination_category,\n primary_termination_reason as primary_termination_reason,\n probation_end_date as probation_end_date,\n probation_start_date as probation_start_date,\n reason_reference_id as reason_reference_id,\n regrettable_termination as regrettable_termination,\n rehire as rehire,\n resignation_date as resignation_date,\n retired as retired,\n retirement_date as retirement_date,\n retirement_eligibility_date as retirement_eligibility_date,\n return_unknown as return_unknown,\n seniority_date as seniority_date,\n severance_date as severance_date,\n terminated as terminated,\n termination_date as termination_date,\n termination_involuntary as termination_involuntary,\n termination_last_day_of_work as termination_last_day_of_work,\n time_off_service_date as time_off_service_date,\n universal_id as universal_id,\n user_id as user_id,\n vesting_date as vesting_date,\n worker_code as worker_code\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n academic_tenure_date as academic_tenure_date,\n active as active,\n active_status_date as active_status_date,\n annual_currency_summary_currency as annual_currency_summary_currency,\n annual_currency_summary_frequency as annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis as annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay as annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances as annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency as annual_summary_currency,\n annual_summary_frequency as annual_summary_frequency,\n annual_summary_primary_compensation_basis as annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay as annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances as annual_summary_total_salary_and_allowances,\n benefits_service_date as benefits_service_date,\n company_service_date as company_service_date,\n compensation_effective_date as compensation_effective_date,\n compensation_grade_id as compensation_grade_id,\n compensation_grade_profile_id as compensation_grade_profile_id,\n continuous_service_date as continuous_service_date,\n contract_assignment_details as contract_assignment_details,\n contract_currency_code as contract_currency_code,\n contract_end_date as contract_end_date,\n contract_frequency_name as contract_frequency_name,\n contract_pay_rate as contract_pay_rate,\n contract_vendor_name as contract_vendor_name,\n date_entered_workforce as date_entered_workforce,\n days_unemployed as days_unemployed,\n eligible_for_hire as eligible_for_hire,\n eligible_for_rehire_on_latest_termination as eligible_for_rehire_on_latest_termination,\n employee_compensation_currency as employee_compensation_currency,\n employee_compensation_frequency as employee_compensation_frequency,\n employee_compensation_primary_compensation_basis as employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay as employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances as employee_compensation_total_salary_and_allowances,\n end_employment_date as end_employment_date,\n expected_date_of_return as expected_date_of_return,\n expected_retirement_date as expected_retirement_date,\n first_day_of_work as first_day_of_work,\n has_international_assignment as has_international_assignment,\n hire_date as hire_date,\n hire_reason as hire_reason,\n hire_rescinded as hire_rescinded,\n home_country as home_country,\n hourly_frequency_currency as hourly_frequency_currency,\n hourly_frequency_frequency as hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis as hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay as hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances as hourly_frequency_total_salary_and_allowances,\n id as id,\n last_datefor_which_paid as last_datefor_which_paid,\n local_termination_reason as local_termination_reason,\n months_continuous_prior_employment as months_continuous_prior_employment,\n not_returning as not_returning,\n original_hire_date as original_hire_date,\n pay_group_frequency_currency as pay_group_frequency_currency,\n pay_group_frequency_frequency as pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis as pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay as pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances as pay_group_frequency_total_salary_and_allowances,\n pay_through_date as pay_through_date,\n primary_termination_category as primary_termination_category,\n primary_termination_reason as primary_termination_reason,\n probation_end_date as probation_end_date,\n probation_start_date as probation_start_date,\n reason_reference_id as reason_reference_id,\n regrettable_termination as regrettable_termination,\n rehire as rehire,\n resignation_date as resignation_date,\n retired as retired,\n retirement_date as retirement_date,\n retirement_eligibility_date as retirement_eligibility_date,\n return_unknown as return_unknown,\n seniority_date as seniority_date,\n severance_date as severance_date,\n terminated as terminated,\n termination_date as termination_date,\n termination_involuntary as termination_involuntary,\n termination_last_day_of_work as termination_last_day_of_work,\n time_off_service_date as time_off_service_date,\n universal_id as universal_id,\n user_id as user_id,\n vesting_date as vesting_date,\n worker_code as worker_code\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker')) }}"}, "namespace": null}}, "test.workday.not_null_stg_workday__person_name_worker_id.666b7b3a90": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1782422567.9077008, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__person_name", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n academic_suffix as academic_suffix,\n additional_name_type as additional_name_type,\n country as country,\n first_name as first_name,\n full_name_singapore_malaysia as full_name_singapore_malaysia,\n hereditary_suffix as hereditary_suffix,\n honorary_suffix as honorary_suffix,\n index as index,\n last_name as last_name,\n local_first_name as local_first_name,\n local_first_name_2 as local_first_name_2,\n local_last_name as local_last_name,\n local_last_name_2 as local_last_name_2,\n local_middle_name as local_middle_name,\n local_middle_name_2 as local_middle_name_2,\n local_secondary_last_name as local_secondary_last_name,\n local_secondary_last_name_2 as local_secondary_last_name_2,\n middle_name as middle_name,\n personal_info_system_id as personal_info_system_id,\n prefix_salutation as prefix_salutation,\n prefix_title as prefix_title,\n prefix_title_code as prefix_title_code,\n professional_suffix as professional_suffix,\n religious_suffix as religious_suffix,\n royal_suffix as royal_suffix,\n secondary_last_name as secondary_last_name,\n social_suffix as social_suffix,\n social_suffix_id as social_suffix_id,\n tertiary_last_name as tertiary_last_name,\n type as type\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n 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\".\"public_workday_dev\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n academic_suffix as academic_suffix,\n additional_name_type as additional_name_type,\n country as country,\n first_name as first_name,\n full_name_singapore_malaysia as full_name_singapore_malaysia,\n hereditary_suffix as hereditary_suffix,\n honorary_suffix as honorary_suffix,\n index as index,\n last_name as last_name,\n local_first_name as local_first_name,\n local_first_name_2 as local_first_name_2,\n local_last_name as local_last_name,\n local_last_name_2 as local_last_name_2,\n local_middle_name as local_middle_name,\n local_middle_name_2 as local_middle_name_2,\n local_secondary_last_name as local_secondary_last_name,\n local_secondary_last_name_2 as local_secondary_last_name_2,\n middle_name as middle_name,\n personal_info_system_id as personal_info_system_id,\n prefix_salutation as prefix_salutation,\n prefix_title as prefix_title,\n prefix_title_code as prefix_title_code,\n professional_suffix as professional_suffix,\n religious_suffix as religious_suffix,\n royal_suffix as royal_suffix,\n secondary_last_name as secondary_last_name,\n social_suffix as social_suffix,\n social_suffix_id as social_suffix_id,\n tertiary_last_name as tertiary_last_name,\n type as type\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n 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_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__person_name')) }}"}, "namespace": null}}, "test.workday.not_null_stg_workday__person_name_person_name_type.59eb1d6f63": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1782422567.910167, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__person_name", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n academic_suffix as academic_suffix,\n additional_name_type as additional_name_type,\n country as country,\n first_name as first_name,\n full_name_singapore_malaysia as full_name_singapore_malaysia,\n hereditary_suffix as hereditary_suffix,\n honorary_suffix as honorary_suffix,\n index as index,\n last_name as last_name,\n local_first_name as local_first_name,\n local_first_name_2 as local_first_name_2,\n local_last_name as local_last_name,\n local_last_name_2 as local_last_name_2,\n local_middle_name as local_middle_name,\n local_middle_name_2 as local_middle_name_2,\n local_secondary_last_name as local_secondary_last_name,\n local_secondary_last_name_2 as local_secondary_last_name_2,\n middle_name as middle_name,\n personal_info_system_id as personal_info_system_id,\n prefix_salutation as prefix_salutation,\n prefix_title as prefix_title,\n prefix_title_code as prefix_title_code,\n professional_suffix as professional_suffix,\n religious_suffix as religious_suffix,\n royal_suffix as royal_suffix,\n secondary_last_name as secondary_last_name,\n social_suffix as social_suffix,\n social_suffix_id as social_suffix_id,\n tertiary_last_name as tertiary_last_name,\n type as type\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n 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\".\"public_workday_dev\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n academic_suffix as academic_suffix,\n additional_name_type as additional_name_type,\n country as country,\n first_name as first_name,\n full_name_singapore_malaysia as full_name_singapore_malaysia,\n hereditary_suffix as hereditary_suffix,\n honorary_suffix as honorary_suffix,\n index as index,\n last_name as last_name,\n local_first_name as local_first_name,\n local_first_name_2 as local_first_name_2,\n local_last_name as local_last_name,\n local_last_name_2 as local_last_name_2,\n local_middle_name as local_middle_name,\n local_middle_name_2 as local_middle_name_2,\n local_secondary_last_name as local_secondary_last_name,\n local_secondary_last_name_2 as local_secondary_last_name_2,\n middle_name as middle_name,\n personal_info_system_id as personal_info_system_id,\n prefix_salutation as prefix_salutation,\n prefix_title as prefix_title,\n prefix_title_code as prefix_title_code,\n professional_suffix as professional_suffix,\n religious_suffix as religious_suffix,\n royal_suffix as royal_suffix,\n secondary_last_name as secondary_last_name,\n social_suffix as social_suffix,\n social_suffix_id as social_suffix_id,\n tertiary_last_name as tertiary_last_name,\n type as type\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n 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_metadata": {"name": "not_null", "kwargs": {"column_name": "person_name_type", "model": "{{ get_where_subquery(ref('stg_workday__person_name')) }}"}, "namespace": null}}, "test.workday.not_null_stg_workday__personal_information_ethnicity_worker_id.08e20915fd": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1782422567.9126606, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__personal_information_ethnicity", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n id as id,\n country_personal_information_id as country_personal_information_id,\n ethnicity_code as ethnicity_code\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n from base\n),\n\nfinal as (\n\n select\n source_relation,\n _fivetran_synced, \n country_personal_information_id as worker_id,\n ethnicity_code,\n id as ethnicity_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__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\".\"public_workday_dev\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n id as id,\n country_personal_information_id as country_personal_information_id,\n ethnicity_code as ethnicity_code\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n from base\n),\n\nfinal as (\n\n select\n source_relation,\n _fivetran_synced, \n country_personal_information_id as worker_id,\n ethnicity_code,\n id as ethnicity_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__personal_information_ethnicity", "attached_node": "model.workday.stg_workday__personal_information_ethnicity", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__personal_information_ethnicity')) }}"}, "namespace": null}}, "test.workday.not_null_stg_workday__personal_information_ethnicity_ethnicity_id.89c11054f2": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_workday__personal_e65829867ddf84c220ea148ba5494da5"}, "created_at": 1782422567.9154537, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__personal_e65829867ddf84c220ea148ba5494da5\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__personal_information_ethnicity", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n id as id,\n country_personal_information_id as country_personal_information_id,\n ethnicity_code as ethnicity_code\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n from base\n),\n\nfinal as (\n\n select\n source_relation,\n _fivetran_synced, \n country_personal_information_id as worker_id,\n ethnicity_code,\n id as ethnicity_id\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\".\"public_workday_dev\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n id as id,\n country_personal_information_id as country_personal_information_id,\n ethnicity_code as ethnicity_code\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n from base\n),\n\nfinal as (\n\n select\n source_relation,\n _fivetran_synced, \n country_personal_information_id as worker_id,\n ethnicity_code,\n id as ethnicity_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": "ethnicity_id", "file_key_name": "models.stg_workday__personal_information_ethnicity", "attached_node": "model.workday.stg_workday__personal_information_ethnicity", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "ethnicity_id", "model": "{{ get_where_subquery(ref('stg_workday__personal_information_ethnicity')) }}"}, "namespace": null}}, "test.workday.not_null_stg_workday__personal_information_common_data_worker_id.deb68b6c56": {"database": "postgres", "schema": "public_dbt_test__audit", "name": "not_null_stg_workday__personal_information_common_data_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__personal_ae57e14ea808b0ff151df26672b307d0.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__personal_information_common_data_worker_id.deb68b6c56", "fqn": ["workday", "staging", "not_null_stg_workday__personal_information_common_data_worker_id"], "alias": "not_null_stg_workday__personal_ae57e14ea808b0ff151df26672b307d0", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__personal_ae57e14ea808b0ff151df26672b307d0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_workday__personal_ae57e14ea808b0ff151df26672b307d0"}, "created_at": 1782422567.9180598, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__personal_ae57e14ea808b0ff151df26672b307d0\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__personal_information_common_data", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information_common_data"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__personal_ae57e14ea808b0ff151df26672b307d0.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__personal_information_common_data as (\nwith base as (\n\n select *\n from \"postgres\".\"public_workday_dev\".\"stg_workday__personal_information_common_data_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_synced as _fivetran_synced,\n _fivetran_deleted as _fivetran_deleted,\n fivetran_id as fivetran_id,\n worker_id as worker_id,\n additional_nationality as additional_nationality,\n blood_type as blood_type,\n citizenship_status as citizenship_status,\n city_of_birth as city_of_birth,\n city_of_birth_code as city_of_birth_code,\n country_of_birth as country_of_birth,\n country_region_of_birth as country_region_of_birth,\n date_of_birth as date_of_birth,\n date_of_death as date_of_death,\n last_medical_exam_date as last_medical_exam_date,\n last_medical_exam_valid_to as last_medical_exam_valid_to,\n medical_exam_notes as medical_exam_notes,\n primary_nationality as primary_nationality,\n region_of_birth as region_of_birth\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n from base\n),\n\nfinal as (\n\n select\n fivetran_id,\n 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 country_region_of_birth,\n date_of_birth,\n date_of_death,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n medical_exam_notes,\n primary_nationality,\n region_of_birth\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_common_data\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__personal_information_common_data", "sql": " __dbt__cte__stg_workday__personal_information_common_data as (\nwith base as (\n\n select *\n from \"postgres\".\"public_workday_dev\".\"stg_workday__personal_information_common_data_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_synced as _fivetran_synced,\n _fivetran_deleted as _fivetran_deleted,\n fivetran_id as fivetran_id,\n worker_id as worker_id,\n additional_nationality as additional_nationality,\n blood_type as blood_type,\n citizenship_status as citizenship_status,\n city_of_birth as city_of_birth,\n city_of_birth_code as city_of_birth_code,\n country_of_birth as country_of_birth,\n country_region_of_birth as country_region_of_birth,\n date_of_birth as date_of_birth,\n date_of_death as date_of_death,\n last_medical_exam_date as last_medical_exam_date,\n last_medical_exam_valid_to as last_medical_exam_valid_to,\n medical_exam_notes as medical_exam_notes,\n primary_nationality as primary_nationality,\n region_of_birth as region_of_birth\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n from base\n),\n\nfinal as (\n\n select\n fivetran_id,\n 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 country_region_of_birth,\n date_of_birth,\n date_of_death,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n medical_exam_notes,\n primary_nationality,\n region_of_birth\n from 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_common_data", "attached_node": "model.workday.stg_workday__personal_information_common_data", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__personal_information_common_data')) }}"}, "namespace": null}}, "test.workday.not_null_stg_workday__military_service_worker_id.a196487e38": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1782422567.9205554, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__military_service", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n personal_info_common_id as personal_info_common_id,\n discharge_date as discharge_date,\n discharge_type as discharge_type,\n notes as notes,\n rank as rank,\n service as service,\n status_id as status_id,\n status_begin_date as status_begin_date\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n from base\n),\n\nfinal as (\n select\n personal_info_common_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n notes,\n rank,\n service,\n discharge_type,\n status_id 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\".\"public_workday_dev\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n personal_info_common_id as personal_info_common_id,\n discharge_date as discharge_date,\n discharge_type as discharge_type,\n notes as notes,\n rank as rank,\n service as service,\n status_id as status_id,\n status_begin_date as status_begin_date\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n from base\n),\n\nfinal as (\n select\n personal_info_common_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n notes,\n rank,\n service,\n discharge_type,\n status_id 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_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__military_service')) }}"}, "namespace": null}}, "test.workday.not_null_stg_workday__person_contact_email_address_person_contact_email_address_id.b8e6adf279": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_workday__person_c_74359aa56eef2ed577a1adb5458ccb08"}, "created_at": 1782422567.9230118, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__person_c_74359aa56eef2ed577a1adb5458ccb08\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__person_contact_email_address", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n email_address as email_address,\n email_code as email_code,\n email_comment as email_comment,\n id as id,\n personal_info_system_id as personal_info_system_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n 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\".\"public_workday_dev\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n email_address as email_address,\n email_code as email_code,\n email_comment as email_comment,\n id as id,\n personal_info_system_id as personal_info_system_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n 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_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}}, "test.workday.not_null_stg_workday__person_contact_email_address_worker_id.9237f19755": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1782422567.9254737, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__person_contact_email_address", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n email_address as email_address,\n email_code as email_code,\n email_comment as email_comment,\n id as id,\n personal_info_system_id as personal_info_system_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n 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\".\"public_workday_dev\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n email_address as email_address,\n email_code as email_code,\n email_comment as email_comment,\n id as id,\n personal_info_system_id as personal_info_system_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\n\n 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_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__person_contact_email_address')) }}"}, "namespace": null}}, "test.workday.not_null_stg_workday__worker_position_position_id.4dfd73b611": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1782422567.9279869, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__worker_position", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n academic_pay_setup_data_annual_work_period_end_date as academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date as academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year as academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date as academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date as academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language as business_site_summary_display_language,\n business_site_summary_local as business_site_summary_local,\n business_site_summary_location as business_site_summary_location,\n business_site_summary_location_type as business_site_summary_location_type,\n business_site_summary_name as business_site_summary_name,\n business_site_summary_scheduled_weekly_hours as business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile as business_site_summary_time_profile,\n business_title as business_title,\n critical_job as critical_job,\n default_weekly_hours as default_weekly_hours,\n difficulty_to_fill as difficulty_to_fill,\n effective_date as effective_date,\n employee_type as employee_type,\n end_date as end_date,\n end_employment_date as end_employment_date,\n exclude_from_head_count as exclude_from_head_count,\n expected_assignment_end_date as expected_assignment_end_date,\n external_employee as external_employee,\n federal_withholding_fein as federal_withholding_fein,\n frequency as frequency,\n full_time_equivalent_percentage as full_time_equivalent_percentage,\n headcount_restriction_code as headcount_restriction_code,\n home_country as home_country,\n host_country as host_country,\n international_assignment_type as international_assignment_type,\n is_primary_job as is_primary_job,\n job_exempt as job_exempt,\n job_profile_id as job_profile_id,\n management_level_code as management_level_code,\n paid_fte as paid_fte,\n pay_group as pay_group,\n pay_rate as pay_rate,\n pay_rate_type as pay_rate_type,\n pay_through_date as pay_through_date,\n payroll_entity as payroll_entity,\n payroll_file_number as payroll_file_number,\n position_id as position_id,\n regular_paid_equivalent_hours as regular_paid_equivalent_hours,\n scheduled_weekly_hours as scheduled_weekly_hours,\n specify_paid_fte as specify_paid_fte,\n specify_working_fte as specify_working_fte,\n start_date as start_date,\n start_international_assignment_reason as start_international_assignment_reason,\n work_hours_profile as work_hours_profile,\n work_shift as work_shift,\n work_shift_required as work_shift_required,\n work_space as work_space,\n worker_hours_profile_classification as worker_hours_profile_classification,\n worker_id as worker_id,\n working_fte as working_fte,\n working_time_frequency as working_time_frequency,\n working_time_unit as working_time_unit,\n working_time_value as working_time_value\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n academic_pay_setup_data_annual_work_period_end_date as academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date as academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year as academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date as academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date as academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language as business_site_summary_display_language,\n business_site_summary_local as business_site_summary_local,\n business_site_summary_location as business_site_summary_location,\n business_site_summary_location_type as business_site_summary_location_type,\n business_site_summary_name as business_site_summary_name,\n business_site_summary_scheduled_weekly_hours as business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile as business_site_summary_time_profile,\n business_title as business_title,\n critical_job as critical_job,\n default_weekly_hours as default_weekly_hours,\n difficulty_to_fill as difficulty_to_fill,\n effective_date as effective_date,\n employee_type as employee_type,\n end_date as end_date,\n end_employment_date as end_employment_date,\n exclude_from_head_count as exclude_from_head_count,\n expected_assignment_end_date as expected_assignment_end_date,\n external_employee as external_employee,\n federal_withholding_fein as federal_withholding_fein,\n frequency as frequency,\n full_time_equivalent_percentage as full_time_equivalent_percentage,\n headcount_restriction_code as headcount_restriction_code,\n home_country as home_country,\n host_country as host_country,\n international_assignment_type as international_assignment_type,\n is_primary_job as is_primary_job,\n job_exempt as job_exempt,\n job_profile_id as job_profile_id,\n management_level_code as management_level_code,\n paid_fte as paid_fte,\n pay_group as pay_group,\n pay_rate as pay_rate,\n pay_rate_type as pay_rate_type,\n pay_through_date as pay_through_date,\n payroll_entity as payroll_entity,\n payroll_file_number as payroll_file_number,\n position_id as position_id,\n regular_paid_equivalent_hours as regular_paid_equivalent_hours,\n scheduled_weekly_hours as scheduled_weekly_hours,\n specify_paid_fte as specify_paid_fte,\n specify_working_fte as specify_working_fte,\n start_date as start_date,\n start_international_assignment_reason as start_international_assignment_reason,\n work_hours_profile as work_hours_profile,\n work_shift as work_shift,\n work_shift_required as work_shift_required,\n work_space as work_space,\n worker_hours_profile_classification as worker_hours_profile_classification,\n worker_id as worker_id,\n working_fte as working_fte,\n working_time_frequency as working_time_frequency,\n working_time_unit as working_time_unit,\n working_time_value as working_time_value\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position')) }}"}, "namespace": null}}, "test.workday.not_null_stg_workday__worker_position_worker_id.98db71611d": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1782422567.9304643, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__worker_position", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n academic_pay_setup_data_annual_work_period_end_date as academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date as academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year as academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date as academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date as academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language as business_site_summary_display_language,\n business_site_summary_local as business_site_summary_local,\n business_site_summary_location as business_site_summary_location,\n business_site_summary_location_type as business_site_summary_location_type,\n business_site_summary_name as business_site_summary_name,\n business_site_summary_scheduled_weekly_hours as business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile as business_site_summary_time_profile,\n business_title as business_title,\n critical_job as critical_job,\n default_weekly_hours as default_weekly_hours,\n difficulty_to_fill as difficulty_to_fill,\n effective_date as effective_date,\n employee_type as employee_type,\n end_date as end_date,\n end_employment_date as end_employment_date,\n exclude_from_head_count as exclude_from_head_count,\n expected_assignment_end_date as expected_assignment_end_date,\n external_employee as external_employee,\n federal_withholding_fein as federal_withholding_fein,\n frequency as frequency,\n full_time_equivalent_percentage as full_time_equivalent_percentage,\n headcount_restriction_code as headcount_restriction_code,\n home_country as home_country,\n host_country as host_country,\n international_assignment_type as international_assignment_type,\n is_primary_job as is_primary_job,\n job_exempt as job_exempt,\n job_profile_id as job_profile_id,\n management_level_code as management_level_code,\n paid_fte as paid_fte,\n pay_group as pay_group,\n pay_rate as pay_rate,\n pay_rate_type as pay_rate_type,\n pay_through_date as pay_through_date,\n payroll_entity as payroll_entity,\n payroll_file_number as payroll_file_number,\n position_id as position_id,\n regular_paid_equivalent_hours as regular_paid_equivalent_hours,\n scheduled_weekly_hours as scheduled_weekly_hours,\n specify_paid_fte as specify_paid_fte,\n specify_working_fte as specify_working_fte,\n start_date as start_date,\n start_international_assignment_reason as start_international_assignment_reason,\n work_hours_profile as work_hours_profile,\n work_shift as work_shift,\n work_shift_required as work_shift_required,\n work_space as work_space,\n worker_hours_profile_classification as worker_hours_profile_classification,\n worker_id as worker_id,\n working_fte as working_fte,\n working_time_frequency as working_time_frequency,\n working_time_unit as working_time_unit,\n working_time_value as working_time_value\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n academic_pay_setup_data_annual_work_period_end_date as academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date as academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year as academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date as academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date as academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language as business_site_summary_display_language,\n business_site_summary_local as business_site_summary_local,\n business_site_summary_location as business_site_summary_location,\n business_site_summary_location_type as business_site_summary_location_type,\n business_site_summary_name as business_site_summary_name,\n business_site_summary_scheduled_weekly_hours as business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile as business_site_summary_time_profile,\n business_title as business_title,\n critical_job as critical_job,\n default_weekly_hours as default_weekly_hours,\n difficulty_to_fill as difficulty_to_fill,\n effective_date as effective_date,\n employee_type as employee_type,\n end_date as end_date,\n end_employment_date as end_employment_date,\n exclude_from_head_count as exclude_from_head_count,\n expected_assignment_end_date as expected_assignment_end_date,\n external_employee as external_employee,\n federal_withholding_fein as federal_withholding_fein,\n frequency as frequency,\n full_time_equivalent_percentage as full_time_equivalent_percentage,\n headcount_restriction_code as headcount_restriction_code,\n home_country as home_country,\n host_country as host_country,\n international_assignment_type as international_assignment_type,\n is_primary_job as is_primary_job,\n job_exempt as job_exempt,\n job_profile_id as job_profile_id,\n management_level_code as management_level_code,\n paid_fte as paid_fte,\n pay_group as pay_group,\n pay_rate as pay_rate,\n pay_rate_type as pay_rate_type,\n pay_through_date as pay_through_date,\n payroll_entity as payroll_entity,\n payroll_file_number as payroll_file_number,\n position_id as position_id,\n regular_paid_equivalent_hours as regular_paid_equivalent_hours,\n scheduled_weekly_hours as scheduled_weekly_hours,\n specify_paid_fte as specify_paid_fte,\n specify_working_fte as specify_working_fte,\n start_date as start_date,\n start_international_assignment_reason as start_international_assignment_reason,\n work_hours_profile as work_hours_profile,\n work_shift as work_shift,\n work_shift_required as work_shift_required,\n work_space as work_space,\n worker_hours_profile_classification as worker_hours_profile_classification,\n worker_id as worker_id,\n working_fte as working_fte,\n working_time_frequency as working_time_frequency,\n working_time_unit as working_time_unit,\n working_time_value as working_time_value\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position')) }}"}, "namespace": null}}, "test.workday.not_null_stg_workday__worker_leave_status_leave_request_event_id.a172377761": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_workday__worker_l_c2bd4624d54474d8cc43b5b9a29cf308"}, "created_at": 1782422567.9329383, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__worker_l_c2bd4624d54474d8cc43b5b9a29cf308\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__worker_leave_status", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__worker_leave_status_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n adoption_notification_date as adoption_notification_date,\n adoption_placement_date as adoption_placement_date,\n age_of_dependent as age_of_dependent,\n benefits_effect as benefits_effect,\n caesarean_section_birth as caesarean_section_birth,\n child_birth_date as child_birth_date,\n child_sdate_of_death as child_sdate_of_death,\n continuous_service_accrual_effect as continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital as date_baby_arrived_home_from_hospital,\n date_child_entered_country as date_child_entered_country,\n date_of_recall as date_of_recall,\n description as description,\n estimated_leave_end_date as estimated_leave_end_date,\n expected_due_date as expected_due_date,\n first_day_of_work as first_day_of_work,\n last_date_for_which_paid as last_date_for_which_paid,\n leave_end_date as leave_end_date,\n leave_entitlement_override as leave_entitlement_override,\n leave_last_day_of_work as leave_last_day_of_work,\n leave_of_absence_type as leave_of_absence_type,\n leave_percentage as leave_percentage,\n leave_request_event_id as leave_request_event_id,\n leave_return_event as leave_return_event,\n leave_start_date as leave_start_date,\n leave_status_code as leave_status_code,\n leave_type_reason as leave_type_reason,\n location_during_leave as location_during_leave,\n multiple_child_indicator as multiple_child_indicator,\n number_of_babies_adopted_children as number_of_babies_adopted_children,\n number_of_child_dependents as number_of_child_dependents,\n number_of_previous_births as number_of_previous_births,\n number_of_previous_maternity_leaves as number_of_previous_maternity_leaves,\n on_leave as on_leave,\n paid_time_off_accrual_effect as paid_time_off_accrual_effect,\n payroll_effect as payroll_effect,\n single_parent_indicator as single_parent_indicator,\n social_security_disability_code as social_security_disability_code,\n stock_vesting_effect as stock_vesting_effect,\n stop_payment_date as stop_payment_date,\n week_of_confinement as week_of_confinement,\n work_related as work_related,\n worker_id as worker_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__worker_leave_status_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n adoption_notification_date as adoption_notification_date,\n adoption_placement_date as adoption_placement_date,\n age_of_dependent as age_of_dependent,\n benefits_effect as benefits_effect,\n caesarean_section_birth as caesarean_section_birth,\n child_birth_date as child_birth_date,\n child_sdate_of_death as child_sdate_of_death,\n continuous_service_accrual_effect as continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital as date_baby_arrived_home_from_hospital,\n date_child_entered_country as date_child_entered_country,\n date_of_recall as date_of_recall,\n description as description,\n estimated_leave_end_date as estimated_leave_end_date,\n expected_due_date as expected_due_date,\n first_day_of_work as first_day_of_work,\n last_date_for_which_paid as last_date_for_which_paid,\n leave_end_date as leave_end_date,\n leave_entitlement_override as leave_entitlement_override,\n leave_last_day_of_work as leave_last_day_of_work,\n leave_of_absence_type as leave_of_absence_type,\n leave_percentage as leave_percentage,\n leave_request_event_id as leave_request_event_id,\n leave_return_event as leave_return_event,\n leave_start_date as leave_start_date,\n leave_status_code as leave_status_code,\n leave_type_reason as leave_type_reason,\n location_during_leave as location_during_leave,\n multiple_child_indicator as multiple_child_indicator,\n number_of_babies_adopted_children as number_of_babies_adopted_children,\n number_of_child_dependents as number_of_child_dependents,\n number_of_previous_births as number_of_previous_births,\n number_of_previous_maternity_leaves as number_of_previous_maternity_leaves,\n on_leave as on_leave,\n paid_time_off_accrual_effect as paid_time_off_accrual_effect,\n payroll_effect as payroll_effect,\n single_parent_indicator as single_parent_indicator,\n social_security_disability_code as social_security_disability_code,\n stock_vesting_effect as stock_vesting_effect,\n stop_payment_date as stop_payment_date,\n week_of_confinement as week_of_confinement,\n work_related as work_related,\n worker_id as worker_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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_metadata": {"name": "not_null", "kwargs": {"column_name": "leave_request_event_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_leave_status')) }}"}, "namespace": null}}, "test.workday.not_null_stg_workday__worker_leave_status_worker_id.c899fb3a61": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1782422567.935421, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__worker_leave_status", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__worker_leave_status_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n adoption_notification_date as adoption_notification_date,\n adoption_placement_date as adoption_placement_date,\n age_of_dependent as age_of_dependent,\n benefits_effect as benefits_effect,\n caesarean_section_birth as caesarean_section_birth,\n child_birth_date as child_birth_date,\n child_sdate_of_death as child_sdate_of_death,\n continuous_service_accrual_effect as continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital as date_baby_arrived_home_from_hospital,\n date_child_entered_country as date_child_entered_country,\n date_of_recall as date_of_recall,\n description as description,\n estimated_leave_end_date as estimated_leave_end_date,\n expected_due_date as expected_due_date,\n first_day_of_work as first_day_of_work,\n last_date_for_which_paid as last_date_for_which_paid,\n leave_end_date as leave_end_date,\n leave_entitlement_override as leave_entitlement_override,\n leave_last_day_of_work as leave_last_day_of_work,\n leave_of_absence_type as leave_of_absence_type,\n leave_percentage as leave_percentage,\n leave_request_event_id as leave_request_event_id,\n leave_return_event as leave_return_event,\n leave_start_date as leave_start_date,\n leave_status_code as leave_status_code,\n leave_type_reason as leave_type_reason,\n location_during_leave as location_during_leave,\n multiple_child_indicator as multiple_child_indicator,\n number_of_babies_adopted_children as number_of_babies_adopted_children,\n number_of_child_dependents as number_of_child_dependents,\n number_of_previous_births as number_of_previous_births,\n number_of_previous_maternity_leaves as number_of_previous_maternity_leaves,\n on_leave as on_leave,\n paid_time_off_accrual_effect as paid_time_off_accrual_effect,\n payroll_effect as payroll_effect,\n single_parent_indicator as single_parent_indicator,\n social_security_disability_code as social_security_disability_code,\n stock_vesting_effect as stock_vesting_effect,\n stop_payment_date as stop_payment_date,\n week_of_confinement as week_of_confinement,\n work_related as work_related,\n worker_id as worker_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__worker_leave_status_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_deleted as _fivetran_deleted,\n _fivetran_synced as _fivetran_synced,\n adoption_notification_date as adoption_notification_date,\n adoption_placement_date as adoption_placement_date,\n age_of_dependent as age_of_dependent,\n benefits_effect as benefits_effect,\n caesarean_section_birth as caesarean_section_birth,\n child_birth_date as child_birth_date,\n child_sdate_of_death as child_sdate_of_death,\n continuous_service_accrual_effect as continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital as date_baby_arrived_home_from_hospital,\n date_child_entered_country as date_child_entered_country,\n date_of_recall as date_of_recall,\n description as description,\n estimated_leave_end_date as estimated_leave_end_date,\n expected_due_date as expected_due_date,\n first_day_of_work as first_day_of_work,\n last_date_for_which_paid as last_date_for_which_paid,\n leave_end_date as leave_end_date,\n leave_entitlement_override as leave_entitlement_override,\n leave_last_day_of_work as leave_last_day_of_work,\n leave_of_absence_type as leave_of_absence_type,\n leave_percentage as leave_percentage,\n leave_request_event_id as leave_request_event_id,\n leave_return_event as leave_return_event,\n leave_start_date as leave_start_date,\n leave_status_code as leave_status_code,\n leave_type_reason as leave_type_reason,\n location_during_leave as location_during_leave,\n multiple_child_indicator as multiple_child_indicator,\n number_of_babies_adopted_children as number_of_babies_adopted_children,\n number_of_child_dependents as number_of_child_dependents,\n number_of_previous_births as number_of_previous_births,\n number_of_previous_maternity_leaves as number_of_previous_maternity_leaves,\n on_leave as on_leave,\n paid_time_off_accrual_effect as paid_time_off_accrual_effect,\n payroll_effect as payroll_effect,\n single_parent_indicator as single_parent_indicator,\n social_security_disability_code as social_security_disability_code,\n stock_vesting_effect as stock_vesting_effect,\n stop_payment_date as stop_payment_date,\n week_of_confinement as week_of_confinement,\n work_related as work_related,\n worker_id as worker_id\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_leave_status')) }}"}, "namespace": null}}, "test.workday.not_null_stg_workday__worker_position_organization_position_id.196dd9786d": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1782422567.937945, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n index as index,\n position_id as position_id,\n worker_id as worker_id,\n date_of_pay_group_assignment as date_of_pay_group_assignment,\n organization_id as organization_id,\n primary_business_site as primary_business_site,\n used_in_change_organization_assignments as used_in_change_organization_assignments\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n index as index,\n position_id as position_id,\n worker_id as worker_id,\n date_of_pay_group_assignment as date_of_pay_group_assignment,\n organization_id as organization_id,\n primary_business_site as primary_business_site,\n used_in_change_organization_assignments as used_in_change_organization_assignments\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization')) }}"}, "namespace": null}}, "test.workday.not_null_stg_workday__worker_position_organization_worker_id.d8cf960f0b": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {}, "created_at": 1782422567.9404173, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n index as index,\n position_id as position_id,\n worker_id as worker_id,\n date_of_pay_group_assignment as date_of_pay_group_assignment,\n organization_id as organization_id,\n primary_business_site as primary_business_site,\n used_in_change_organization_assignments as used_in_change_organization_assignments\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n index as index,\n position_id as position_id,\n worker_id as worker_id,\n date_of_pay_group_assignment as date_of_pay_group_assignment,\n organization_id as organization_id,\n primary_business_site as primary_business_site,\n used_in_change_organization_assignments as used_in_change_organization_assignments\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization')) }}"}, "namespace": null}}, "test.workday.not_null_stg_workday__worker_position_organization_organization_id.a79000dec1": {"database": "postgres", "schema": "public_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, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"alias": "not_null_stg_workday__worker_p_90dbe3fb66cda8c3c13fbdcf1b2f4d23"}, "created_at": 1782422567.942878, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__worker_p_90dbe3fb66cda8c3c13fbdcf1b2f4d23\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "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\".\"public_workday_dev\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n index as index,\n position_id as position_id,\n worker_id as worker_id,\n date_of_pay_group_assignment as date_of_pay_group_assignment,\n organization_id as organization_id,\n primary_business_site as primary_business_site,\n used_in_change_organization_assignments as used_in_change_organization_assignments\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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\".\"public_workday_dev\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n _fivetran_active as _fivetran_active,\n _fivetran_synced as _fivetran_synced,\n _fivetran_start as _fivetran_start,\n _fivetran_end as _fivetran_end,\n index as index,\n position_id as position_id,\n worker_id as worker_id,\n date_of_pay_group_assignment as date_of_pay_group_assignment,\n organization_id as organization_id,\n primary_business_site as primary_business_site,\n used_in_change_organization_assignments as used_in_change_organization_assignments\n \n\n\n\n\n \n \n\n\n\n\n\n, cast('postgres.public' as TEXT) as source_relation\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_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization')) }}"}, "namespace": null}}}, "sources": {"source.workday.workday.job_profile": {"database": "postgres", "schema": "public", "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": "_fivetran_synced", "loaded_at_query": 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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_profile_id"]}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}, "additional_job_description": {"name": "additional_job_description", "description": "Additional details or information about the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.additional_job_description"]}, "compensation_grade_id": {"name": "compensation_grade_id", "description": "Identifier for the compensation grade.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.compensation_grade_id"]}, "critical_job": {"name": "critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.critical_job"]}, "description": {"name": "description", "description": "Brief description of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_profile_description"]}, "difficulty_to_fill": {"name": "difficulty_to_fill", "description": "Indication of the difficulty level in filling the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.difficulty_to_fill"]}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.effective_date"]}, "inactive": {"name": "inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.inactive"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.include_job_code_in_name"]}, "job_category_id": {"name": "job_category_id", "description": "Identifier for the job category.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_category_id"]}, "job_profile_code": {"name": "job_profile_code", "description": "Code assigned to the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_profile_code"]}, "level": {"name": "level", "description": "Level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.level"]}, "management_level": {"name": "management_level", "description": "Management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.management_level"]}, "private_title": {"name": "private_title", "description": "Private title associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.private_title"]}, "public_job": {"name": "public_job", "description": "Flag indicating whether the job is public.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.public_job"]}, "referral_payment_plan": {"name": "referral_payment_plan", "description": "Referral payment plan associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.referral_payment_plan"]}, "summary": {"name": "summary", "description": "Summary or overview of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.summary"]}, "title": {"name": "title", "description": "Title associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.title"]}, "union_code": {"name": "union_code", "description": "Code associated with the union related to the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.union_code"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.union_membership_requirement"]}, "work_shift_required": {"name": "work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.work_shift_required"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.work_study_award_source_code"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.work_study_requirement_option_code"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": "_fivetran_synced", "loaded_at_query": null, "meta": {}, "tags": [], "static_analysis": null}, "patch_path": null, "unrendered_config": {"loaded_at_field": "_fivetran_synced", "enabled": true, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"workday_job_profile_data\"", "created_at": 1782422568.1279562, "unrendered_database": "{% if target.type not in (\"spark\") %}{{ var(\"workday_database\", target.database) }}{% endif %}", "unrendered_schema": "{{ var(\"workday_schema\", \"workday\") }}", "doc_blocks": ["doc.workday.job_profile"]}, "source.workday.workday.job_family_job_profile": {"database": "postgres", "schema": "public", "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": "_fivetran_synced", "loaded_at_query": 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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_family_id"]}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_profile_id"]}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": "_fivetran_synced", "loaded_at_query": null, "meta": {}, "tags": [], "static_analysis": null}, "patch_path": null, "unrendered_config": {"loaded_at_field": "_fivetran_synced", "enabled": true, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"workday_job_family_job_profile_data\"", "created_at": 1782422568.1301224, "unrendered_database": "{% if target.type not in (\"spark\") %}{{ var(\"workday_database\", target.database) }}{% endif %}", "unrendered_schema": "{{ var(\"workday_schema\", \"workday\") }}", "doc_blocks": ["doc.workday.job_family_job_profile"]}, "source.workday.workday.job_family": {"database": "postgres", "schema": "public", "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": "_fivetran_synced", "loaded_at_query": 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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.id"]}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.effective_date"]}, "inactive": {"name": "inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.inactive"]}, "job_family_code": {"name": "job_family_code", "description": "Code assigned to the job family", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_family_code"]}, "summary": {"name": "summary", "description": "Summary or overview of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.summary"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": "_fivetran_synced", "loaded_at_query": null, "meta": {}, "tags": [], "static_analysis": null}, "patch_path": null, "unrendered_config": {"loaded_at_field": "_fivetran_synced", "enabled": true, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"workday_job_family_data\"", "created_at": 1782422568.131597, "unrendered_database": "{% if target.type not in (\"spark\") %}{{ var(\"workday_database\", target.database) }}{% endif %}", "unrendered_schema": "{{ var(\"workday_schema\", \"workday\") }}", "doc_blocks": ["doc.workday.job_family"]}, "source.workday.workday.job_family_job_family_group": {"database": "postgres", "schema": "public", "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": "_fivetran_synced", "loaded_at_query": 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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_family_id"]}, "job_family_group_id": {"name": "job_family_group_id", "description": "Identifier for the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_family_group_id"]}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": "_fivetran_synced", "loaded_at_query": null, "meta": {}, "tags": [], "static_analysis": null}, "patch_path": null, "unrendered_config": {"loaded_at_field": "_fivetran_synced", "enabled": true, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"workday_job_family_job_family_group_data\"", "created_at": 1782422568.1322966, "unrendered_database": "{% if target.type not in (\"spark\") %}{{ var(\"workday_database\", target.database) }}{% endif %}", "unrendered_schema": "{{ var(\"workday_schema\", \"workday\") }}", "doc_blocks": ["doc.workday.job_family_job_family_group"]}, "source.workday.workday.job_family_group": {"database": "postgres", "schema": "public", "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": "_fivetran_synced", "loaded_at_query": 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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_family_group_id"]}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.effective_date"]}, "inactive": {"name": "inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.inactive"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_family_group_code"]}, "summary": {"name": "summary", "description": "Summary or overview of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.summary"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": "_fivetran_synced", "loaded_at_query": null, "meta": {}, "tags": [], "static_analysis": null}, "patch_path": null, "unrendered_config": {"loaded_at_field": "_fivetran_synced", "enabled": true, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"workday_job_family_group_data\"", "created_at": 1782422568.1329737, "unrendered_database": "{% if target.type not in (\"spark\") %}{{ var(\"workday_database\", target.database) }}{% endif %}", "unrendered_schema": "{{ var(\"workday_schema\", \"workday\") }}", "doc_blocks": ["doc.workday.job_family_group"]}, "source.workday.workday.organization_role": {"database": "postgres", "schema": "public", "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": "_fivetran_synced", "loaded_at_query": 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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.organization_id"]}, "role_id": {"name": "role_id", "description": "Identifier for the specific role.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.role_id"]}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.organization_role_code"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": "_fivetran_synced", "loaded_at_query": null, "meta": {}, "tags": [], "static_analysis": null}, "patch_path": null, "unrendered_config": {"loaded_at_field": "_fivetran_synced", "enabled": true, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"workday_organization_role_data\"", "created_at": 1782422568.1336484, "unrendered_database": "{% if target.type not in (\"spark\") %}{{ var(\"workday_database\", target.database) }}{% endif %}", "unrendered_schema": "{{ var(\"workday_schema\", \"workday\") }}", "doc_blocks": ["doc.workday.organization_role"]}, "source.workday.workday.organization_role_worker": {"database": "postgres", "schema": "public", "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": "_fivetran_synced", "loaded_at_query": 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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.associated_worker_id"]}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.organization_id"]}, "role_id": {"name": "role_id", "description": "Identifier for the specific role.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.role_id"]}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": "_fivetran_synced", "loaded_at_query": null, "meta": {}, "tags": [], "static_analysis": null}, "patch_path": null, "unrendered_config": {"loaded_at_field": "_fivetran_synced", "enabled": true, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"workday_organization_role_worker_data\"", "created_at": 1782422568.1343126, "unrendered_database": "{% if target.type not in (\"spark\") %}{{ var(\"workday_database\", target.database) }}{% endif %}", "unrendered_schema": "{{ var(\"workday_schema\", \"workday\") }}", "doc_blocks": ["doc.workday.organization_role_worker"]}, "source.workday.workday.organization_job_family": {"database": "postgres", "schema": "public", "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": "_fivetran_synced", "loaded_at_query": 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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_family_id"]}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.organization_id"]}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}, "job_family_group_id": {"name": "job_family_group_id", "description": "Identifier for the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_family_group_id"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": "_fivetran_synced", "loaded_at_query": null, "meta": {}, "tags": [], "static_analysis": null}, "patch_path": null, "unrendered_config": {"loaded_at_field": "_fivetran_synced", "enabled": true, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"workday_organization_job_family_data\"", "created_at": 1782422568.1349733, "unrendered_database": "{% if target.type not in (\"spark\") %}{{ var(\"workday_database\", target.database) }}{% endif %}", "unrendered_schema": "{{ var(\"workday_schema\", \"workday\") }}", "doc_blocks": ["doc.workday.organization_job_family"]}, "source.workday.workday.organization": {"database": "postgres", "schema": "public", "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": "_fivetran_synced", "loaded_at_query": 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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.organization_id"]}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}, "availability_date": {"name": "availability_date", "description": "Date when the organization becomes available.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.availability_date"]}, "available_for_hire": {"name": "available_for_hire", "description": "Flag indicating whether the organization is available for hiring.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.available_for_hire"]}, "code": {"name": "code", "description": "Code assigned to the organization for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.code"]}, "description": {"name": "description", "description": "The description of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.organization_description"]}, "external_url": {"name": "external_url", "description": "External URL associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.external_url"]}, "hiring_freeze": {"name": "hiring_freeze", "description": "Flag indicating whether the organization is under a hiring freeze.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hiring_freeze"]}, "inactive": {"name": "inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.inactive"]}, "inactive_date": {"name": "inactive_date", "description": "Date when the organization becomes inactive", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.inactive_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.include_manager_in_name"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.include_organization_code_in_name"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.last_updated_date_time"]}, "location": {"name": "location", "description": "Location associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.location"]}, "manager_id": {"name": "manager_id", "description": "Identifier for the manager associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.manager_id"]}, "name": {"name": "name", "description": "Name of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.organization_name"]}, "organization_code": {"name": "organization_code", "description": "Code associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.organization_code"]}, "organization_owner_id": {"name": "organization_owner_id", "description": "Identifier for the owner of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.organization_owner_id"]}, "staffing_model": {"name": "staffing_model", "description": "Staffing model associated with the organization", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.staffing_model"]}, "sub_type": {"name": "sub_type", "description": "Subtype or classification of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.organization_sub_type"]}, "superior_organization_id": {"name": "superior_organization_id", "description": "Identifier for the superior organization, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.superior_organization_id"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.supervisory_position_availability_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.supervisory_position_earliest_hire_date"]}, "supervisory_position_time_type": {"name": "supervisory_position_time_type", "description": "Time type associated with supervisory positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.supervisory_position_time_type"]}, "supervisory_position_worker_type": {"name": "supervisory_position_worker_type", "description": "Worker type associated with supervisory positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.supervisory_position_worker_type"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.top_level_organization_id"]}, "type": {"name": "type", "description": "Type or category of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.organization_type"]}, "visibility": {"name": "visibility", "description": "Visibility level of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.visibility"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": "_fivetran_synced", "loaded_at_query": null, "meta": {}, "tags": [], "static_analysis": null}, "patch_path": null, "unrendered_config": {"loaded_at_field": "_fivetran_synced", "enabled": true, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"workday_organization_data\"", "created_at": 1782422568.2046914, "unrendered_database": "{% if target.type not in (\"spark\") %}{{ var(\"workday_database\", target.database) }}{% endif %}", "unrendered_schema": "{{ var(\"workday_schema\", \"workday\") }}", "doc_blocks": ["doc.workday.organization"]}, "source.workday.workday.position_organization": {"database": "postgres", "schema": "public", "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": "_fivetran_synced", "loaded_at_query": 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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.organization_id"]}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.position_id"]}, "type": {"name": "type", "description": "Type or category of the position within the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.position_organization_type"]}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": "_fivetran_synced", "loaded_at_query": null, "meta": {}, "tags": [], "static_analysis": null}, "patch_path": null, "unrendered_config": {"loaded_at_field": "_fivetran_synced", "enabled": true, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"workday_position_organization_data\"", "created_at": 1782422568.2054665, "unrendered_database": "{% if target.type not in (\"spark\") %}{{ var(\"workday_database\", target.database) }}{% endif %}", "unrendered_schema": "{{ var(\"workday_schema\", \"workday\") }}", "doc_blocks": ["doc.workday.position_organization"]}, "source.workday.workday.position": {"database": "postgres", "schema": "public", "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": "_fivetran_synced", "loaded_at_query": 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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.id"]}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.academic_tenure_eligible"]}, "availability_date": {"name": "availability_date", "description": "Date when the organization becomes available.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.availability_date"]}, "available_for_hire": {"name": "available_for_hire", "description": "Flag indicating whether the organization is available for hiring.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.available_for_hire"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.available_for_overlap"]}, "available_for_recruiting": {"name": "available_for_recruiting", "description": "Flag indicating whether the position is available for recruiting.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.available_for_recruiting"]}, "closed": {"name": "closed", "description": "Flag indicating whether the position is closed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.closed"]}, "compensation_grade_code": {"name": "compensation_grade_code", "description": "Code associated with the compensation grade of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.compensation_grade_code"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.compensation_grade_profile_code"]}, "compensation_package_code": {"name": "compensation_package_code", "description": "Code associated with the compensation package of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.compensation_package_code"]}, "compensation_step_code": {"name": "compensation_step_code", "description": "Code associated with the compensation step of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.compensation_step_code"]}, "critical_job": {"name": "critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.critical_job"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.difficulty_to_fill_code"]}, "earliest_hire_date": {"name": "earliest_hire_date", "description": "Earliest date when the position can be filled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.earliest_hire_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.earliest_overlap_date"]}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.effective_date"]}, "hiring_freeze": {"name": "hiring_freeze", "description": "Flag indicating whether the organization is under a hiring freeze.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hiring_freeze"]}, "job_description": {"name": "job_description", "description": "Detailed description of the job associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_description"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_description_summary"]}, "job_posting_title": {"name": "job_posting_title", "description": "Title used for job postings associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_posting_title"]}, "position_code": {"name": "position_code", "description": "Code associated with the position for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.position_code"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.position_time_type_code"]}, "primary_compensation_basis": {"name": "primary_compensation_basis", "description": "Primary basis of compensation for the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.primary_compensation_basis"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.primary_compensation_basis_amount_change"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.primary_compensation_basis_percent_change"]}, "supervisory_organization_id": {"name": "supervisory_organization_id", "description": "Identifier for the supervisory organization associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.supervisory_organization_id"]}, "work_shift_required": {"name": "work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.work_shift_required"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.worker_for_filled_position_id"]}, "worker_position_id": {"name": "worker_position_id", "description": "Identifier for the worker associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.worker_position_id"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.worker_type_code"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": "_fivetran_synced", "loaded_at_query": null, "meta": {}, "tags": [], "static_analysis": null}, "patch_path": null, "unrendered_config": {"loaded_at_field": "_fivetran_synced", "enabled": true, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"workday_position_data\"", "created_at": 1782422568.2062569, "unrendered_database": "{% if target.type not in (\"spark\") %}{{ var(\"workday_database\", target.database) }}{% endif %}", "unrendered_schema": "{{ var(\"workday_schema\", \"workday\") }}", "doc_blocks": ["doc.workday.position"]}, "source.workday.workday.position_job_profile": {"database": "postgres", "schema": "public", "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": "_fivetran_synced", "loaded_at_query": 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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_profile_id"]}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.position_id"]}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.difficulty_to_fill_code"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.is_critical_job"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_category_code"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.management_level_code"]}, "name": {"name": "name", "description": "Name associated with the job profile linked to the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.position_job_profile_name"]}, "work_shift_required": {"name": "work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.work_shift_required"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": "_fivetran_synced", "loaded_at_query": null, "meta": {}, "tags": [], "static_analysis": null}, "patch_path": null, "unrendered_config": {"loaded_at_field": "_fivetran_synced", "enabled": true, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"workday_position_job_profile_data\"", "created_at": 1782422568.2069328, "unrendered_database": "{% if target.type not in (\"spark\") %}{{ var(\"workday_database\", target.database) }}{% endif %}", "unrendered_schema": "{{ var(\"workday_schema\", \"workday\") }}", "doc_blocks": ["doc.workday.position_job_profile"]}, "source.workday.workday.worker_history": {"database": "postgres", "schema": "public", "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": "_fivetran_synced", "loaded_at_query": 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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.worker_id"]}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}, "academic_tenure_date": {"name": "academic_tenure_date", "description": "Date when academic tenure is achieved.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.academic_tenure_date"]}, "active": {"name": "active", "description": "Flag indicating the current active status of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.active"]}, "active_status_date": {"name": "active_status_date", "description": "Date when the active status was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.active_status_date"]}, "annual_currency_summary_currency": {"name": "annual_currency_summary_currency", "description": "Currency used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.annual_currency_summary_currency"]}, "annual_currency_summary_frequency": {"name": "annual_currency_summary_frequency", "description": "Frequency of currency for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.annual_currency_summary_frequency"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.annual_currency_summary_primary_compensation_basis"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.annual_currency_summary_total_base_pay"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.annual_currency_summary_total_salary_and_allowances"]}, "annual_summary_currency": {"name": "annual_summary_currency", "description": "Currency used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.annual_summary_currency"]}, "annual_summary_frequency": {"name": "annual_summary_frequency", "description": "Frequency of currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.annual_summary_frequency"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.annual_summary_primary_compensation_basis"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.annual_summary_total_base_pay"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.annual_summary_total_salary_and_allowances"]}, "benefits_service_date": {"name": "benefits_service_date", "description": "Date when the worker's benefits service starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.benefits_service_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.company_service_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.compensation_effective_date"]}, "compensation_grade_id": {"name": "compensation_grade_id", "description": "Identifier for the compensation grade.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.compensation_grade_id"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.compensation_grade_profile_id"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.continuous_service_date"]}, "contract_assignment_details": {"name": "contract_assignment_details", "description": "Details of the worker's contract assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.contract_assignment_details"]}, "contract_currency_code": {"name": "contract_currency_code", "description": "Currency code used for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.contract_currency_code"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.contract_end_date"]}, "contract_frequency_name": {"name": "contract_frequency_name", "description": "Frequency of payment for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.contract_frequency_name"]}, "contract_pay_rate": {"name": "contract_pay_rate", "description": "Pay rate associated with the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.contract_pay_rate"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.contract_vendor_name"]}, "date_entered_workforce": {"name": "date_entered_workforce", "description": "Date when the worker entered the workforce.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.date_entered_workforce"]}, "days_unemployed": {"name": "days_unemployed", "description": "Number of days the worker has been unemployed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.days_unemployed"]}, "eligible_for_hire": {"name": "eligible_for_hire", "description": "Flag indicating whether the worker is eligible for hire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.eligible_for_hire"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.eligible_for_rehire_on_latest_termination"]}, "employee_compensation_currency": {"name": "employee_compensation_currency", "description": "Currency code used for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.employee_compensation_currency"]}, "employee_compensation_frequency": {"name": "employee_compensation_frequency", "description": "Frequency of payment for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.employee_compensation_frequency"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.employee_compensation_primary_compensation_basis"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.employee_compensation_total_base_pay"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.employee_compensation_total_salary_and_allowances"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.end_employment_date"]}, "expected_date_of_return": {"name": "expected_date_of_return", "description": "Expected date of the worker's return.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.expected_date_of_return"]}, "expected_retirement_date": {"name": "expected_retirement_date", "description": "Expected date of the worker's retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.expected_retirement_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.first_day_of_work"]}, "has_international_assignment": {"name": "has_international_assignment", "description": "Flag indicating whether the worker has an international assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.has_international_assignment"]}, "hire_date": {"name": "hire_date", "description": "The date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hire_date"]}, "hire_reason": {"name": "hire_reason", "description": "The reason for hiring the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hire_reason"]}, "hire_rescinded": {"name": "hire_rescinded", "description": "Flag indicating whether the worker's hire was rescinded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hire_rescinded"]}, "home_country": {"name": "home_country", "description": "The home country of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.home_country"]}, "hourly_frequency_currency": {"name": "hourly_frequency_currency", "description": "Currency code used for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hourly_frequency_currency"]}, "hourly_frequency_frequency": {"name": "hourly_frequency_frequency", "description": "Frequency of payment for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hourly_frequency_frequency"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hourly_frequency_primary_compensation_basis"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hourly_frequency_total_base_pay"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hourly_frequency_total_salary_and_allowances"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.last_datefor_which_paid"]}, "local_termination_reason": {"name": "local_termination_reason", "description": "The reason for local termination of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.local_termination_reason"]}, "months_continuous_prior_employment": {"name": "months_continuous_prior_employment", "description": "Number of months of continuous prior employment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.months_continuous_prior_employment"]}, "not_returning": {"name": "not_returning", "description": "Flag indicating whether the worker is not returning.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.not_returning"]}, "original_hire_date": {"name": "original_hire_date", "description": "The original date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.original_hire_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.pay_group_frequency_currency"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.pay_group_frequency_frequency"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.pay_group_frequency_primary_compensation_basis"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.pay_group_frequency_total_base_pay"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.pay_group_frequency_total_salary_and_allowances"]}, "pay_through_date": {"name": "pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.pay_through_date"]}, "primary_termination_category": {"name": "primary_termination_category", "description": "The primary termination category for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.primary_termination_category"]}, "primary_termination_reason": {"name": "primary_termination_reason", "description": "The primary termination reason for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.primary_termination_reason"]}, "probation_end_date": {"name": "probation_end_date", "description": "The date when the worker's probation ends.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.probation_end_date"]}, "probation_start_date": {"name": "probation_start_date", "description": "The date when the worker's probation starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.probation_start_date"]}, "reason_reference_id": {"name": "reason_reference_id", "description": "The reference ID for the termination reason.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.reason_reference_id"]}, "regrettable_termination": {"name": "regrettable_termination", "description": "Flag indicating whether the worker's termination is regrettable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.regrettable_termination"]}, "rehire": {"name": "rehire", "description": "Flag indicating whether the worker is eligible for rehire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.rehire"]}, "resignation_date": {"name": "resignation_date", "description": "The date when the worker resigned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.resignation_date"]}, "retired": {"name": "retired", "description": "Flag indicating whether the worker is retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.retired"]}, "retirement_date": {"name": "retirement_date", "description": "The date when the worker retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.retirement_date"]}, "retirement_eligibility_date": {"name": "retirement_eligibility_date", "description": "The date when the worker becomes eligible for retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.retirement_eligibility_date"]}, "return_unknown": {"name": "return_unknown", "description": "Flag indicating whether the worker's return status is unknown.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.return_unknown"]}, "seniority_date": {"name": "seniority_date", "description": "The date when the worker's seniority is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.seniority_date"]}, "severance_date": {"name": "severance_date", "description": "The date when the worker's severance is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.severance_date"]}, "terminated": {"name": "terminated", "description": "Flag indicating whether the worker is terminated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.terminated"]}, "termination_date": {"name": "termination_date", "description": "The date when the worker is terminated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.termination_date"]}, "termination_involuntary": {"name": "termination_involuntary", "description": "Flag indicating whether the termination is involuntary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.termination_involuntary"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.termination_last_day_of_work"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.time_off_service_date"]}, "universal_id": {"name": "universal_id", "description": "The universal ID associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.universal_id"]}, "user_id": {"name": "user_id", "description": "The identifier for the user associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.user_id"]}, "vesting_date": {"name": "vesting_date", "description": "The date when the worker's vesting starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.vesting_date"]}, "worker_code": {"name": "worker_code", "description": "The code associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.worker_code"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": "_fivetran_synced", "loaded_at_query": null, "meta": {}, "tags": [], "static_analysis": null}, "patch_path": null, "unrendered_config": {"loaded_at_field": "_fivetran_synced", "enabled": true, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"workday_worker_history_data\"", "created_at": 1782422568.207909, "unrendered_database": "{% if target.type not in (\"spark\") %}{{ var(\"workday_database\", target.database) }}{% endif %}", "unrendered_schema": "{{ var(\"workday_schema\", \"workday\") }}", "doc_blocks": ["doc.workday.worker"]}, "source.workday.workday.personal_information_history": {"database": "postgres", "schema": "public", "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": "_fivetran_synced", "loaded_at_query": 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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.personal_information_id"]}, "_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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_active"]}, "_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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_start"]}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_end"]}, "type": {"name": "type", "description": "The type of personal information record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.personal_information_type"]}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}, "additional_nationality": {"name": "additional_nationality", "description": "Additional nationality associated with the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.additional_nationality"]}, "blood_type": {"name": "blood_type", "description": "The blood type of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.blood_type"]}, "citizenship_status": {"name": "citizenship_status", "description": "The citizenship status of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.citizenship_status"]}, "city_of_birth": {"name": "city_of_birth", "description": "The city of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.city_of_birth"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.city_of_birth_code"]}, "country_of_birth": {"name": "country_of_birth", "description": "The country of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.country_of_birth"]}, "date_of_birth": {"name": "date_of_birth", "description": "The date of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.date_of_birth"]}, "date_of_death": {"name": "date_of_death", "description": "The date of death of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.date_of_death"]}, "gender": {"name": "gender", "description": "The gender of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.gender"]}, "hispanic_or_latino": {"name": "hispanic_or_latino", "description": "lag indicating whether the individual is Hispanic or Latino.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hispanic_or_latino"]}, "hukou_locality": {"name": "hukou_locality", "description": "The locality associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hukou_locality"]}, "hukou_postal_code": {"name": "hukou_postal_code", "description": "The postal code associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hukou_postal_code"]}, "hukou_region": {"name": "hukou_region", "description": "The region associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hukou_region"]}, "hukou_subregion": {"name": "hukou_subregion", "description": "The subregion associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hukou_subregion"]}, "hukou_type": {"name": "hukou_type", "description": "The type of Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hukou_type"]}, "last_medical_exam_date": {"name": "last_medical_exam_date", "description": "The date of the last medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.last_medical_exam_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.last_medical_exam_valid_to"]}, "local_hukou": {"name": "local_hukou", "description": "Flag indicating whether the Hukou is local.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.local_hukou"]}, "marital_status": {"name": "marital_status", "description": "The marital status of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.marital_status"]}, "marital_status_date": {"name": "marital_status_date", "description": "The date of the marital status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.marital_status_date"]}, "medical_exam_notes": {"name": "medical_exam_notes", "description": "Notes from the medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.medical_exam_notes"]}, "native_region": {"name": "native_region", "description": "The native region of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.native_region"]}, "native_region_code": {"name": "native_region_code", "description": "The code of the native region.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.native_region_code"]}, "personnel_file_agency": {"name": "personnel_file_agency", "description": "The agency associated with the personnel file.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.personnel_file_agency"]}, "political_affiliation": {"name": "political_affiliation", "description": "The political affiliation of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.political_affiliation"]}, "primary_nationality": {"name": "primary_nationality", "description": "The primary nationality of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.primary_nationality"]}, "region_of_birth": {"name": "region_of_birth", "description": "The region of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.region_of_birth"]}, "region_of_birth_code": {"name": "region_of_birth_code", "description": "The code of the region of birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.region_of_birth_code"]}, "religion": {"name": "religion", "description": "The religion of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.religion"]}, "social_benefit": {"name": "social_benefit", "description": "The social benefit associated with the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.social_benefit"]}, "tobacco_use": {"name": "tobacco_use", "description": "Flag indicating whether the individual uses tobacco.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.tobacco_use"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": "_fivetran_synced", "loaded_at_query": null, "meta": {}, "tags": [], "static_analysis": null}, "patch_path": null, "unrendered_config": {"loaded_at_field": "_fivetran_synced", "enabled": true, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"workday_personal_information_history_data\"", "created_at": 1782422568.2087314, "unrendered_database": "{% if target.type not in (\"spark\") %}{{ var(\"workday_database\", target.database) }}{% endif %}", "unrendered_schema": "{{ var(\"workday_schema\", \"workday\") }}", "doc_blocks": ["doc.workday.personal_information"]}, "source.workday.workday.person_name": {"database": "postgres", "schema": "public", "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": "_fivetran_synced", "loaded_at_query": 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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.index"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.personal_info_system_id"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.person_name_type"]}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}, "academic_suffix": {"name": "academic_suffix", "description": "The academic suffix, if applicable (e.g., PhD, MD).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.academic_suffix"]}, "additional_name_type": {"name": "additional_name_type", "description": "Additional type or category for the person name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.additional_name_type"]}, "country": {"name": "country", "description": "The country associated with the person name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.country"]}, "first_name": {"name": "first_name", "description": "The first name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.first_name"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.full_name_singapore_malaysia"]}, "hereditary_suffix": {"name": "hereditary_suffix", "description": "The hereditary suffix, if applicable (e.g., Jr, Sr).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hereditary_suffix"]}, "honorary_suffix": {"name": "honorary_suffix", "description": "The honorary suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.honorary_suffix"]}, "last_name": {"name": "last_name", "description": "The last name or surname of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.last_name"]}, "local_first_name": {"name": "local_first_name", "description": "The local or native first name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.local_first_name"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.local_first_name_2"]}, "local_last_name": {"name": "local_last_name", "description": "The local or native last name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.local_last_name"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.local_last_name_2"]}, "local_middle_name": {"name": "local_middle_name", "description": "The local or native middle name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.local_middle_name"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.local_middle_name_2"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.local_secondary_last_name"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.local_secondary_last_name_2"]}, "middle_name": {"name": "middle_name", "description": "The middle name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.middle_name"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.prefix_salutation"]}, "prefix_title": {"name": "prefix_title", "description": "The prefix or title associated with the name (e.g., Professor).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.prefix_title"]}, "prefix_title_code": {"name": "prefix_title_code", "description": "The code associated with the prefix or title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.prefix_title_code"]}, "professional_suffix": {"name": "professional_suffix", "description": "The professional suffix, if applicable (e.g., Esq., CPA).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.professional_suffix"]}, "religious_suffix": {"name": "religious_suffix", "description": "The religious suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.religious_suffix"]}, "royal_suffix": {"name": "royal_suffix", "description": "The royal suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.royal_suffix"]}, "secondary_last_name": {"name": "secondary_last_name", "description": "Secondary last name or surname, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.secondary_last_name"]}, "social_suffix": {"name": "social_suffix", "description": "The social suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.social_suffix"]}, "social_suffix_id": {"name": "social_suffix_id", "description": "The identifier for the social suffix.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.social_suffix_id"]}, "tertiary_last_name": {"name": "tertiary_last_name", "description": "Tertiary last name or surname, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.tertiary_last_name"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": "_fivetran_synced", "loaded_at_query": null, "meta": {}, "tags": [], "static_analysis": null}, "patch_path": null, "unrendered_config": {"loaded_at_field": "_fivetran_synced", "enabled": true, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"workday_person_name_data\"", "created_at": 1782422568.2094922, "unrendered_database": "{% if target.type not in (\"spark\") %}{{ var(\"workday_database\", target.database) }}{% endif %}", "unrendered_schema": "{{ var(\"workday_schema\", \"workday\") }}", "doc_blocks": ["doc.workday.person_name"]}, "source.workday.workday.personal_information_ethnicity": {"database": "postgres", "schema": "public", "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": "_fivetran_synced", "loaded_at_query": 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": {"id": {"name": "id", "description": "The identifier associated with the ethnicity.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.ethnicity_id"]}, "country_personal_information_id": {"name": "country_personal_information_id", "description": "Country personal information ID linking to worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.country_personal_information_id"]}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}, "ethnicity_code": {"name": "ethnicity_code", "description": "The code representing the ethnicity of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.ethnicity_code"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": "_fivetran_synced", "loaded_at_query": null, "meta": {}, "tags": [], "static_analysis": null}, "patch_path": null, "unrendered_config": {"loaded_at_field": "_fivetran_synced", "enabled": true, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"workday_personal_information_ethnicity_data\"", "created_at": 1782422568.2101822, "unrendered_database": "{% if target.type not in (\"spark\") %}{{ var(\"workday_database\", target.database) }}{% endif %}", "unrendered_schema": "{{ var(\"workday_schema\", \"workday\") }}", "doc_blocks": ["doc.workday.personal_information_ethnicity"]}, "source.workday.workday.military_service": {"database": "postgres", "schema": "public", "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": "_fivetran_synced", "loaded_at_query": 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": {"personal_info_common_id": {"name": "personal_info_common_id", "description": "Personal information common data ID linking to worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.personal_info_common_id"]}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}, "discharge_date": {"name": "discharge_date", "description": "The date on which the individual was discharged from military service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.discharge_date"]}, "discharge_type": {"name": "discharge_type", "description": "Type of military discharge.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.discharge_type"]}, "notes": {"name": "notes", "description": "Additional notes or comments related to the military service record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.notes"]}, "rank": {"name": "rank", "description": "The rank achieved by the individual during military service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.rank"]}, "service": {"name": "service", "description": "The specific military service branch in which the individual served.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.service"]}, "status_id": {"name": "status_id", "description": "Military status identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.military_status_id"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.status_begin_date"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": "_fivetran_synced", "loaded_at_query": null, "meta": {}, "tags": [], "static_analysis": null}, "patch_path": null, "unrendered_config": {"loaded_at_field": "_fivetran_synced", "enabled": true, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"workday_military_service_data\"", "created_at": 1782422568.210849, "unrendered_database": "{% if target.type not in (\"spark\") %}{{ var(\"workday_database\", target.database) }}{% endif %}", "unrendered_schema": "{{ var(\"workday_schema\", \"workday\") }}", "doc_blocks": ["doc.workday.military_service"]}, "source.workday.workday.personal_information_common_data": {"database": "postgres", "schema": "public", "name": "personal_information_common_data", "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_common_data", "fqn": ["workday", "staging", "workday", "personal_information_common_data"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_personal_information_common_data_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table containing universal personal information attributes including date of birth, death records, nationality, citizenship status, birth location, and medical exam data.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_deleted"]}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.worker_id"]}, "fivetran_id": {"name": "fivetran_id", "description": "Fivetran composite key identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.fivetran_id"]}, "additional_nationality": {"name": "additional_nationality", "description": "Additional nationality associated with the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.additional_nationality"]}, "blood_type": {"name": "blood_type", "description": "The blood type of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.blood_type"]}, "citizenship_status": {"name": "citizenship_status", "description": "The citizenship status of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.citizenship_status"]}, "city_of_birth": {"name": "city_of_birth", "description": "The city of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.city_of_birth"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.city_of_birth_code"]}, "country_of_birth": {"name": "country_of_birth", "description": "The country of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.country_of_birth"]}, "country_region_of_birth": {"name": "country_region_of_birth", "description": "Country region of birth code (renamed from legacy `region_of_birth_code` in v42.2 API).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.country_region_of_birth"]}, "date_of_birth": {"name": "date_of_birth", "description": "The date of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.date_of_birth"]}, "date_of_death": {"name": "date_of_death", "description": "The date of death of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.date_of_death"]}, "last_medical_exam_date": {"name": "last_medical_exam_date", "description": "The date of the last medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.last_medical_exam_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.last_medical_exam_valid_to"]}, "medical_exam_notes": {"name": "medical_exam_notes", "description": "Notes from the medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.medical_exam_notes"]}, "primary_nationality": {"name": "primary_nationality", "description": "The primary nationality of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.primary_nationality"]}, "region_of_birth": {"name": "region_of_birth", "description": "The region of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.region_of_birth"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": "_fivetran_synced", "loaded_at_query": null, "meta": {}, "tags": [], "static_analysis": null}, "patch_path": null, "unrendered_config": {"loaded_at_field": "_fivetran_synced", "enabled": true, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"workday_personal_information_common_data_data\"", "created_at": 1782422568.2115607, "unrendered_database": "{% if target.type not in (\"spark\") %}{{ var(\"workday_database\", target.database) }}{% endif %}", "unrendered_schema": "{{ var(\"workday_schema\", \"workday\") }}", "doc_blocks": ["doc.workday.personal_information_common_data"]}, "source.workday.workday.country_personal_information": {"database": "postgres", "schema": "public", "name": "country_personal_information", "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.country_personal_information", "fqn": ["workday", "staging", "workday", "country_personal_information"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_country_personal_information_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table containing country-specific personal information attributes including gender, marital status, and region-specific data.", "columns": {"fivetran_id": {"name": "fivetran_id", "description": "Fivetran composite key identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.fivetran_id"]}, "personal_info_common_id": {"name": "personal_info_common_id", "description": "Personal information common data ID linking to worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.personal_info_common_id"]}, "country_code": {"name": "country_code", "description": "Country code for country-specific information.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.country_code"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_deleted"]}, "gender": {"name": "gender", "description": "The gender of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.gender"]}, "hispanic_or_latino": {"name": "hispanic_or_latino", "description": "lag indicating whether the individual is Hispanic or Latino.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hispanic_or_latino"]}, "hukou_locality": {"name": "hukou_locality", "description": "The locality associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hukou_locality"]}, "hukou_postal_code": {"name": "hukou_postal_code", "description": "The postal code associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hukou_postal_code"]}, "hukou_region_code": {"name": "hukou_region_code", "description": "Hukou region code (China-specific, renamed from legacy `hukou_region` in v42.2 API).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hukou_region_code"]}, "hukou_subregion_code": {"name": "hukou_subregion_code", "description": "Hukou subregion code (China-specific, renamed from legacy `hukou_subregion` in v42.2 API).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hukou_subregion_code"]}, "hukou_type_code": {"name": "hukou_type_code", "description": "Hukou type code (China-specific, renamed from legacy `hukou_type` in v42.2 API).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.hukou_type_code"]}, "local_hukou": {"name": "local_hukou", "description": "Flag indicating whether the Hukou is local.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.local_hukou"]}, "marital_status": {"name": "marital_status", "description": "The marital status of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.marital_status"]}, "marital_status_date": {"name": "marital_status_date", "description": "The date of the marital status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.marital_status_date"]}, "native_region_code": {"name": "native_region_code", "description": "The code of the native region.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.native_region_code"]}, "native_region": {"name": "native_region", "description": "The native region of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.native_region"]}, "personnel_file_agency_for_person": {"name": "personnel_file_agency_for_person", "description": "Personnel file agency for person (renamed from legacy `personnel_file_agency` in v42.2 API).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.personnel_file_agency_for_person"]}, "political_affiliation": {"name": "political_affiliation", "description": "The political affiliation of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.political_affiliation"]}, "religion": {"name": "religion", "description": "The religion of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.religion"]}, "social_benefits_locality": {"name": "social_benefits_locality", "description": "Social benefits locality.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.social_benefits_locality"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": "_fivetran_synced", "loaded_at_query": null, "meta": {}, "tags": [], "static_analysis": null}, "patch_path": null, "unrendered_config": {"loaded_at_field": "_fivetran_synced", "enabled": true, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"workday_country_personal_information_data\"", "created_at": 1782422568.2122786, "unrendered_database": "{% if target.type not in (\"spark\") %}{{ var(\"workday_database\", target.database) }}{% endif %}", "unrendered_schema": "{{ var(\"workday_schema\", \"workday\") }}", "doc_blocks": ["doc.workday.country_personal_information"]}, "source.workday.workday.person_contact_email_address": {"database": "postgres", "schema": "public", "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": "_fivetran_synced", "loaded_at_query": 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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.id"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.personal_info_system_id"]}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}, "email_address": {"name": "email_address", "description": "The actual email address of the person.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.email_address"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.email_code"]}, "email_comment": {"name": "email_comment", "description": "Any additional comments or notes related to the email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.email_comment"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": "_fivetran_synced", "loaded_at_query": null, "meta": {}, "tags": [], "static_analysis": null}, "patch_path": null, "unrendered_config": {"loaded_at_field": "_fivetran_synced", "enabled": true, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"workday_person_contact_email_address_data\"", "created_at": 1782422568.2129667, "unrendered_database": "{% if target.type not in (\"spark\") %}{{ var(\"workday_database\", target.database) }}{% endif %}", "unrendered_schema": "{{ var(\"workday_schema\", \"workday\") }}", "doc_blocks": ["doc.workday.person_contact_email_address"]}, "source.workday.workday.worker_position_history": {"database": "postgres", "schema": "public", "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": "_fivetran_synced", "loaded_at_query": 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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.position_id"]}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.worker_id"]}, "_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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_active"]}, "_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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_start"]}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_end"]}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.academic_pay_setup_data_annual_work_period_end_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.academic_pay_setup_data_annual_work_period_start_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.academic_pay_setup_data_annual_work_period_work_percent_of_year"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.academic_pay_setup_data_disbursement_plan_period_end_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.academic_pay_setup_data_disbursement_plan_period_start_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.business_site_summary_display_language"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.business_site_summary_local"]}, "business_site_summary_location": {"name": "business_site_summary_location", "description": "The location of the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.business_site_summary_location"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.business_site_summary_location_type"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.business_site_summary_name"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.business_site_summary_scheduled_weekly_hours"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.business_site_summary_time_profile"]}, "business_title": {"name": "business_title", "description": "The business title associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.business_title"]}, "critical_job": {"name": "critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.critical_job"]}, "default_weekly_hours": {"name": "default_weekly_hours", "description": "The default weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.default_weekly_hours"]}, "difficulty_to_fill": {"name": "difficulty_to_fill", "description": "Indication of the difficulty level in filling the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.difficulty_to_fill"]}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.effective_date"]}, "employee_type": {"name": "employee_type", "description": "The type of employee associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.employee_type"]}, "end_date": {"name": "end_date", "description": "The end date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.end_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.end_employment_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.exclude_from_head_count"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.expected_assignment_end_date"]}, "external_employee": {"name": "external_employee", "description": "Flag indicating whether the worker is an external employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.external_employee"]}, "federal_withholding_fein": {"name": "federal_withholding_fein", "description": "The Federal Employer Identification Number (FEIN) for federal withholding.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.federal_withholding_fein"]}, "frequency": {"name": "frequency", "description": "The frequency associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.frequency"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.full_time_equivalent_percentage"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.headcount_restriction_code"]}, "home_country": {"name": "home_country", "description": "The home country of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.home_country"]}, "host_country": {"name": "host_country", "description": "The host country associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.host_country"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.international_assignment_type"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.is_primary_job"]}, "job_exempt": {"name": "job_exempt", "description": "Indicates whether the job is exempt from certain regulations.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_exempt"]}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.job_profile_id"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.management_level_code"]}, "paid_fte": {"name": "paid_fte", "description": "The paid full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.paid_fte"]}, "pay_group": {"name": "pay_group", "description": "The pay group associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.pay_group"]}, "pay_rate": {"name": "pay_rate", "description": "The pay rate associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.pay_rate"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.pay_rate_type"]}, "pay_through_date": {"name": "pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.pay_through_date"]}, "payroll_entity": {"name": "payroll_entity", "description": "The payroll entity associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.payroll_entity"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.payroll_file_number"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.regular_paid_equivalent_hours"]}, "scheduled_weekly_hours": {"name": "scheduled_weekly_hours", "description": "The scheduled weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.scheduled_weekly_hours"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.specify_paid_fte"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.specify_working_fte"]}, "start_date": {"name": "start_date", "description": "The start date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.start_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.start_international_assignment_reason"]}, "work_hours_profile": {"name": "work_hours_profile", "description": "The work hours profile associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.work_hours_profile"]}, "work_shift": {"name": "work_shift", "description": "The work shift associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.work_shift"]}, "work_shift_required": {"name": "work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.work_shift_required"]}, "work_space": {"name": "work_space", "description": "The work space associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.work_space"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.worker_hours_profile_classification"]}, "working_fte": {"name": "working_fte", "description": "The working full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.working_fte"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.working_time_frequency"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.working_time_unit"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.working_time_value"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": "_fivetran_synced", "loaded_at_query": null, "meta": {}, "tags": [], "static_analysis": null}, "patch_path": null, "unrendered_config": {"loaded_at_field": "_fivetran_synced", "enabled": true, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"workday_worker_position_history_data\"", "created_at": 1782422568.2138097, "unrendered_database": "{% if target.type not in (\"spark\") %}{{ var(\"workday_database\", target.database) }}{% endif %}", "unrendered_schema": "{{ var(\"workday_schema\", \"workday\") }}", "doc_blocks": ["doc.workday.worker_position"]}, "source.workday.workday.worker_leave_status": {"database": "postgres", "schema": "public", "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": "_fivetran_synced", "loaded_at_query": 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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.leave_request_event_id"]}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.worker_id"]}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_deleted"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}, "adoption_notification_date": {"name": "adoption_notification_date", "description": "The date of adoption notification.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.adoption_notification_date"]}, "adoption_placement_date": {"name": "adoption_placement_date", "description": "The date of adoption placement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.adoption_placement_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.age_of_dependent"]}, "benefits_effect": {"name": "benefits_effect", "description": "The effect of leave on benefits.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.benefits_effect"]}, "caesarean_section_birth": {"name": "caesarean_section_birth", "description": "Indicator for Caesarean section birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.caesarean_section_birth"]}, "child_birth_date": {"name": "child_birth_date", "description": "The date of child birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.child_birth_date"]}, "child_sdate_of_death": {"name": "child_sdate_of_death", "description": "The start date of child death.>", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.child_sdate_of_death"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.continuous_service_accrual_effect"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.date_baby_arrived_home_from_hospital"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.date_child_entered_country"]}, "date_of_recall": {"name": "date_of_recall", "description": "The date of recall.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.date_of_recall"]}, "description": {"name": "description", "description": "Description of the type of leave", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.leave_description"]}, "estimated_leave_end_date": {"name": "estimated_leave_end_date", "description": "The estimated end date of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.estimated_leave_end_date"]}, "expected_due_date": {"name": "expected_due_date", "description": "The expected due date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.expected_due_date"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.first_day_of_work"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.last_date_for_which_paid"]}, "leave_end_date": {"name": "leave_end_date", "description": "The end date of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.leave_end_date"]}, "leave_entitlement_override": {"name": "leave_entitlement_override", "description": "Override for leave entitlement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.leave_entitlement_override"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.leave_last_day_of_work"]}, "leave_of_absence_type": {"name": "leave_of_absence_type", "description": "The type of leave of absence.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.leave_of_absence_type"]}, "leave_percentage": {"name": "leave_percentage", "description": "The percentage of leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.leave_percentage"]}, "leave_return_event": {"name": "leave_return_event", "description": "The event associated with the return from leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.leave_return_event"]}, "leave_start_date": {"name": "leave_start_date", "description": "The start date of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.leave_start_date"]}, "leave_status_code": {"name": "leave_status_code", "description": "The code indicating the status of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.leave_status_code"]}, "leave_type_reason": {"name": "leave_type_reason", "description": "The reason for the leave type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.leave_type_reason"]}, "location_during_leave": {"name": "location_during_leave", "description": "The location during the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.location_during_leave"]}, "multiple_child_indicator": {"name": "multiple_child_indicator", "description": "Indicator for multiple children.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.multiple_child_indicator"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.number_of_babies_adopted_children"]}, "number_of_child_dependents": {"name": "number_of_child_dependents", "description": "The number of child dependents.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.number_of_child_dependents"]}, "number_of_previous_births": {"name": "number_of_previous_births", "description": "The number of previous births.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.number_of_previous_births"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.number_of_previous_maternity_leaves"]}, "on_leave": {"name": "on_leave", "description": "Indicator for whether the worker is on leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.on_leave"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.paid_time_off_accrual_effect"]}, "payroll_effect": {"name": "payroll_effect", "description": "The effect of leave on payroll.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.payroll_effect"]}, "single_parent_indicator": {"name": "single_parent_indicator", "description": "Indicator for a single parent.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.single_parent_indicator"]}, "social_security_disability_code": {"name": "social_security_disability_code", "description": "The code indicating social security disability.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.social_security_disability_code"]}, "stock_vesting_effect": {"name": "stock_vesting_effect", "description": "The effect of leave on stock vesting.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.stock_vesting_effect"]}, "stop_payment_date": {"name": "stop_payment_date", "description": "The date when stop payment occurs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.stop_payment_date"]}, "week_of_confinement": {"name": "week_of_confinement", "description": "Indicator for whether the leave is work-related.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.week_of_confinement"]}, "work_related": {"name": "work_related", "description": "Indicator for whether the leave is work-related.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.work_related"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": "_fivetran_synced", "loaded_at_query": null, "meta": {}, "tags": [], "static_analysis": null}, "patch_path": null, "unrendered_config": {"loaded_at_field": "_fivetran_synced", "enabled": true, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"workday_worker_leave_status_data\"", "created_at": 1782422568.2146416, "unrendered_database": "{% if target.type not in (\"spark\") %}{{ var(\"workday_database\", target.database) }}{% endif %}", "unrendered_schema": "{{ var(\"workday_schema\", \"workday\") }}", "doc_blocks": ["doc.workday.worker_leave_status"]}, "source.workday.workday.worker_position_organization_history": {"database": "postgres", "schema": "public", "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": "_fivetran_synced", "loaded_at_query": 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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.source_relation"]}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.position_id"]}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.worker_id"]}, "_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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_active"]}, "_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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_start"]}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_end"]}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday._fivetran_synced"]}, "index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.index"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.date_of_pay_group_assignment"]}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.organization_id"]}, "primary_business_site": {"name": "primary_business_site", "description": "Primary location a worker's business is situated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.primary_business_site"]}, "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, "config": {"meta": {}, "tags": []}, "tags": [], "granularity": null, "doc_blocks": ["doc.workday.used_in_change_organization_assignments"]}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "loaded_at_field": "_fivetran_synced", "loaded_at_query": null, "meta": {}, "tags": [], "static_analysis": null}, "patch_path": null, "unrendered_config": {"loaded_at_field": "_fivetran_synced", "enabled": true, "loaded_at_query": null, "meta": {}, "tags": []}, "relation_name": "\"postgres\".\"public\".\"workday_worker_position_organization_history_data\"", "created_at": 1782422568.2153206, "unrendered_database": "{% if target.type not in (\"spark\") %}{{ var(\"workday_database\", target.database) }}{% endif %}", "unrendered_schema": "{{ var(\"workday_schema\", \"workday\") }}", "doc_blocks": ["doc.workday.worker_position_organization"]}}, "macros": {"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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.0903707, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.0911074, "supported_languages": null}, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.0915365, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.0919087, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.0921504, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.0923727, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.092606, "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 select distinct\n dependent_namespace.nspname as dependent_schema,\n dependent_class.relname as dependent_name,\n referenced_namespace.nspname as referenced_schema,\n referenced_class.relname as referenced_name\n\n -- Query for views: views are entries in pg_class with an entry in pg_rewrite, but we avoid\n -- a seq scan on pg_rewrite by leveraging the fact there is an \"internal\" row in pg_depend for\n -- the view...\n from pg_class as dependent_class\n join pg_namespace as dependent_namespace on dependent_namespace.oid = dependent_class.relnamespace\n join pg_depend as dependent_depend on dependent_depend.refobjid = dependent_class.oid\n and dependent_depend.classid = 'pg_rewrite'::regclass\n and dependent_depend.refclassid = 'pg_class'::regclass\n and dependent_depend.deptype = 'i'\n\n -- ... and via pg_depend (that has a row per column, hence the need for \"distinct\" above, and\n -- making sure to exclude the internal row to avoid a view appearing to depend on itself)...\n join pg_depend as joining_depend on joining_depend.objid = dependent_depend.objid\n and joining_depend.classid = 'pg_rewrite'::regclass\n and joining_depend.refclassid = 'pg_class'::regclass\n and joining_depend.refobjid != dependent_depend.refobjid\n\n -- ... we can find the tables they query from in pg_class, but excluding system tables. Note we\n -- don't need need to exclude _dependent_ system tables, because they only query from other\n -- system tables, and so are automatically excluded by excluding _referenced_ system tables\n join pg_class as referenced_class on referenced_class.oid = joining_depend.refobjid\n join pg_namespace as referenced_namespace on referenced_namespace.oid = referenced_class.relnamespace\n and referenced_namespace.nspname != 'information_schema'\n and referenced_namespace.nspname not like 'pg\\_%'\n\n order by\n dependent_schema, dependent_name, referenced_schema, referenced_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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.0935557, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.0938873, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.098139, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.099116, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.0997205, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.100364, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1012821, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.102139, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1024854, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1031845, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.103929, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.105697, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1061091, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1067176, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1072593, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.108069, "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 {% if relation.type == 'materialized_view' -%}\n {% set relation_type = \"materialized view\" %}\n {%- else -%}\n {%- set relation_type = relation.type -%}\n {%- endif -%}\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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1088338, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1099808, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.110402, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1106374, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1109748, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1112783, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1123238, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.112631, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.113571, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.113992, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.117996, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1188097, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1197166, "supported_languages": null}, "macro.dbt_postgres.postgres__get_incremental_microbatch_sql": {"name": "postgres__get_incremental_microbatch_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_microbatch_sql", "macro_sql": "{% macro postgres__get_incremental_microbatch_sql(arg_dict) %}\n\n {% if arg_dict[\"unique_key\"] %}\n {% do return(adapter.dispatch('get_incremental_merge_sql', 'dbt')(arg_dict)) %}\n {% else %}\n {{ exceptions.raise_compiler_error(\"dbt-postgres 'microbatch' requires a `unique_key` config\") }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_incremental_merge_sql", "macro.dbt.default__get_incremental_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.120381, "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 {%- set columns = config.get(\"snapshot_table_column_names\") or get_snapshot_table_column_names() -%}\n\n update {{ target }}\n set {{ columns.dbt_valid_to }} = DBT_INTERNAL_SOURCE.{{ columns.dbt_valid_to }}\n from {{ source }} as DBT_INTERNAL_SOURCE\n where DBT_INTERNAL_SOURCE.{{ columns.dbt_scd_id }}::text = {{ target }}.{{ columns.dbt_scd_id }}::text\n and DBT_INTERNAL_SOURCE.dbt_change_type::text in ('update'::text, 'delete'::text)\n {% if config.get(\"dbt_valid_to_current\") %}\n and ({{ target }}.{{ columns.dbt_valid_to }} = {{ config.get('dbt_valid_to_current') }} or {{ target }}.{{ columns.dbt_valid_to }} is null);\n {% else %}\n and {{ target }}.{{ columns.dbt_valid_to }} is null;\n {% endif %}\n\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": ["macro.dbt.get_snapshot_table_column_names"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.122539, "supported_languages": null}, "macro.dbt_postgres.postgres__formatted_scalar_function_args_sql": {"name": "postgres__formatted_scalar_function_args_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/materializations/functions/scalar.sql", "original_file_path": "macros/materializations/functions/scalar.sql", "unique_id": "macro.dbt_postgres.postgres__formatted_scalar_function_args_sql", "macro_sql": "{% macro postgres__formatted_scalar_function_args_sql() %}\n {% set args = [] %}\n {% for arg in model.arguments -%}\n {% set default_value = arg.get('default_value', none) %}\n {% if default_value != none %}\n {%- do args.append(arg.name ~ ' ' ~ arg.data_type ~ ' DEFAULT ' ~ default_value) -%}\n {% else %}\n {%- do args.append(arg.name ~ ' ' ~ arg.data_type) -%}\n {% endif %}\n {%- endfor %}\n {{ args | join(', ') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1238842, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1245985, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1249013, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.125209, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1255584, "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) -}}{{ ';' if not loop.last else \"\" }}\n {%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1264098, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.127468, "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\t{{ ';' if not loop.last else \"\" }}\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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1285083, "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.model) %}\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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1290927, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1301155, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1304061, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.130742, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.132033, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1323414, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.132682, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1339648, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1342924, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.134613, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1349058, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1352391, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.135531, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1358452, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1362174, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.136535, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1368265, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1371586, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.137444, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1377542, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1382976, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.138782, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.138996, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1395793, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1398587, "supported_languages": null}, "macro.dbt.cast": {"name": "cast", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/cast.sql", "original_file_path": "macros/utils/cast.sql", "unique_id": "macro.dbt.cast", "macro_sql": "{% macro cast(field, type) %}\n {{ return(adapter.dispatch('cast', 'dbt') (field, type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1404088, "supported_languages": null}, "macro.dbt.default__cast": {"name": "default__cast", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/cast.sql", "original_file_path": "macros/utils/cast.sql", "unique_id": "macro.dbt.default__cast", "macro_sql": "{% macro default__cast(field, type) %}\n cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.140674, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1415062, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1423042, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1426628, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1436627, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1442184, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1444843, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1453278, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1461518, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1467412, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1472, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.147677, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.147891, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1483498, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1485167, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1491199, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1496267, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1499243, "supported_languages": null}, "macro.dbt.date": {"name": "date", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date.sql", "original_file_path": "macros/utils/date.sql", "unique_id": "macro.dbt.date", "macro_sql": "{% macro date(year, month, day) %}\n {{ return(adapter.dispatch('date', 'dbt') (year, month, day)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__date"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1505494, "supported_languages": null}, "macro.dbt.default__date": {"name": "default__date", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date.sql", "original_file_path": "macros/utils/date.sql", "unique_id": "macro.dbt.default__date", "macro_sql": "{% macro default__date(year, month, day) -%}\n {%- set dt = modules.datetime.date(year, month, day) -%}\n {%- set iso_8601_formatted_date = dt.strftime('%Y-%m-%d') -%}\n to_date('{{ iso_8601_formatted_date }}', 'YYYY-MM-DD')\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1511152, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.151636, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1519067, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1529133, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.154073, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1546457, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1553667, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1559567, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.156313, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1567738, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1571083, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.15764, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1579065, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1584003, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1586497, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1591346, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.159351, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.159824, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1601686, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1608658, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1613562, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1618876, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1622999, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1628153, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.163115, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1637022, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1640394, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1644902, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1646488, "supported_languages": null}, "macro.dbt.equals": {"name": "equals", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/equals.sql", "original_file_path": "macros/utils/equals.sql", "unique_id": "macro.dbt.equals", "macro_sql": "{% macro equals(expr1, expr2) %}\n {{ return(adapter.dispatch('equals', 'dbt') (expr1, expr2)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__equals"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1652644, "supported_languages": null}, "macro.dbt.default__equals": {"name": "default__equals", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/equals.sql", "original_file_path": "macros/utils/equals.sql", "unique_id": "macro.dbt.default__equals", "macro_sql": "{% macro default__equals(expr1, expr2) -%}\n{%- if adapter.behavior.enable_truthy_nulls_equals_macro.no_warn %}\n case when (({{ expr1 }} = {{ expr2 }}) or ({{ expr1 }} is null and {{ expr2 }} is null))\n then 0\n else 1\n end = 0\n{%- else -%}\n ({{ expr1 }} = {{ expr2 }})\n{%- endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1658375, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.166541, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1668706, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1673396, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1678138, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1680276, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1685843, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1688595, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1693442, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1700275, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.170622, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.171624, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1736395, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.173892, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1742463, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1744738, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.175147, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.175511, "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.render() }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.175765, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1762223, "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.render() }} to {{ grantees | join(', ') }}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1766324, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.17709, "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.render() }} from {{ grantees | join(', ') }}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.177512, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1779575, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.17938, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1797593, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1802685, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.180716, "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.render() ~': 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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.182938, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1838744, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.184177, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.184491, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.185261, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.185622, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1858969, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1862428, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1865091, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1886714, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1890075, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1896274, "supported_languages": null}, "macro.dbt.get_list_of_column_names": {"name": "get_list_of_column_names", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_list_of_column_names", "macro_sql": "\n\n{%- macro get_list_of_column_names(columns) -%}\n {% set col_names = [] %}\n {% for col in columns %}\n {% do col_names.append(col.name) %}\n {% endfor %}\n {{ return(col_names) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1903293, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1907568, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1911788, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1915298, "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', 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": ["macro.dbt.cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1937468, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1944299, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.194785, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1954608, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1958995, "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.render() }} add column {{ adapter.quote(tmp_column) }} {{ new_column_type }};\n update {{ relation.render() }} set {{ adapter.quote(tmp_column) }} = {{ adapter.quote(column_name) }};\n alter table {{ relation.render() }} drop column {{ adapter.quote(column_name) }} cascade;\n alter table {{ relation.render() }} 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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1971874, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1976962, "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.render() }}\n\n {% for column in add_columns %}\n add column {{ column.quoted }} {{ column.expanded_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.quoted }}{{ ',' 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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.1992676, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.2001753, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.2004805, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.2007723, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.2009873, "supported_languages": null}, "macro.dbt.get_snapshot_get_time_data_type": {"name": "get_snapshot_get_time_data_type", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.get_snapshot_get_time_data_type", "macro_sql": "{% macro get_snapshot_get_time_data_type() %}\n {% set snapshot_time = adapter.dispatch('snapshot_get_time', 'dbt')() %}\n {% set time_data_type_sql = 'select ' ~ snapshot_time ~ ' as dbt_snapshot_time' %}\n {% set snapshot_time_column_schema = get_column_schema_from_query(time_data_type_sql) %}\n {% set time_data_type = snapshot_time_column_schema[0].dtype %}\n {{ return(time_data_type or none) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.snapshot_get_time", "macro.dbt_postgres.postgres__snapshot_get_time", "macro.dbt.get_column_schema_from_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.2018154, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.202303, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.202476, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.202801, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.2031505, "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 is not none -%}\n {{ sql_header }}\n {%- endif %}\n {{ get_limit_subquery_sql(compiled_code, limit) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_limit_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.2038794, "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": "\n{%- macro get_limit_subquery_sql(sql, limit) -%}\n {{ adapter.dispatch('get_limit_sql', 'dbt')(sql, limit) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__get_limit_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.204273, "supported_languages": null}, "macro.dbt.default__get_limit_sql": {"name": "default__get_limit_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_sql", "macro_sql": "{% macro default__get_limit_sql(sql, limit) %}\n {{ sql }}\n {% if limit is not none %}\n limit {{ limit }}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.2046463, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.2062736, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.206771, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.2071738, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.2076845, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.208036, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.20837, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.2087147, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.2092116, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.2096043, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.2103183, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.2106767, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.2109997, "supported_languages": null}, "macro.dbt.list_function_relations_without_caching": {"name": "list_function_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_function_relations_without_caching", "macro_sql": "{% macro list_function_relations_without_caching(schema_relation) %}\n {{ return(adapter.dispatch('list_function_relations_without_caching', 'dbt')(schema_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__list_function_relations_without_caching"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.211373, "supported_languages": null}, "macro.dbt.default__list_function_relations_without_caching": {"name": "default__list_function_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_function_relations_without_caching", "macro_sql": "{% macro default__list_function_relations_without_caching(schema_relation) %}\n {{ exceptions.raise_not_implemented(\n 'list_function_relations_without_caching macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.2116814, "supported_languages": null}, "macro.dbt.get_catalog_for_single_relation": {"name": "get_catalog_for_single_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_catalog_for_single_relation", "macro_sql": "{% macro get_catalog_for_single_relation(relation) %}\n {{ return(adapter.dispatch('get_catalog_for_single_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_catalog_for_single_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.2120287, "supported_languages": null}, "macro.dbt.default__get_catalog_for_single_relation": {"name": "default__get_catalog_for_single_relation", "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_for_single_relation", "macro_sql": "{% macro default__get_catalog_for_single_relation(relation) %}\n {{ exceptions.raise_not_implemented(\n 'get_catalog_for_single_relation macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.2123585, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.212675, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.2129638, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.213378, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.213716, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.215006, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.2153604, "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 {#-- This ensures microbatch batches get unique temp relations to avoid clobbering --#}\n {% if suffix == '__dbt_tmp' and model.batch %}\n {% set suffix = suffix ~ '_' ~ model.batch.id %}\n {% endif %}\n\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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.2161124, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.2166996, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.2171946, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.2178197, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.2183158, "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.render() }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.2186737, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.2191648, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.220242, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.2206714, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.2209466, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.2215765, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.2219372, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.2222729, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.2226274, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.223486, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.2243013, "supported_languages": null}, "macro.dbt.collect_freshness_custom_sql": {"name": "collect_freshness_custom_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "unique_id": "macro.dbt.collect_freshness_custom_sql", "macro_sql": "{% macro collect_freshness_custom_sql(source, loaded_at_query) %}\n {{ return(adapter.dispatch('collect_freshness_custom_sql', 'dbt')(source, loaded_at_query))}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__collect_freshness_custom_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.2247066, "supported_languages": null}, "macro.dbt.default__collect_freshness_custom_sql": {"name": "default__collect_freshness_custom_sql", "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_custom_sql", "macro_sql": "{% macro default__collect_freshness_custom_sql(source, loaded_at_query) %}\n {% call statement('collect_freshness_custom_sql', fetch_result=True, auto_begin=False) -%}\n with source_query as (\n {{ loaded_at_query }}\n )\n select\n (select * from source_query) as max_loaded_at,\n {{ current_timestamp() }} as snapshotted_at\n {% endcall %}\n {{ return(load_result('collect_freshness_custom_sql')) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.2253346, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.2265463, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.2268763, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.2272966, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.2277224, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.228252, "supported_languages": null}, "macro.dbt.validate_doc_columns": {"name": "validate_doc_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.validate_doc_columns", "macro_sql": "{% macro validate_doc_columns(relation, column_dict, existing_column_names) %}\n {% set existing_lower = existing_column_names | map(\"lower\") | list %}\n {% set missing = [] %}\n {% set filtered = {} %}\n {% for col_name in column_dict %}\n {% set is_quoted = column_dict[col_name]['quote'] %}\n {% if is_quoted %}\n {% set present = col_name in existing_column_names %}\n {% else %}\n {% set present = col_name | lower in existing_lower %}\n {% endif %}\n {% if present %}\n {% do filtered.update({col_name: column_dict[col_name]}) %}\n {% else %}\n {% do missing.append(col_name) %}\n {% endif %}\n {% endfor %}\n {% if missing | length > 0 %}\n {{ exceptions.warn(\"In relation \" ~ relation.render() ~ \": The following columns are specified in the schema but are not present in the database: \" ~ missing | join(\", \")) }}\n {% endif %}\n {{ return(filtered) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.2302425, "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 {% set existing_columns = adapter.get_columns_in_relation(relation) | map(attribute=\"name\") | list %}\n {% set filtered_columns = validate_doc_columns(relation, model.columns, existing_columns) %}\n {% set alter_comment_sql = alter_column_comment(relation, filtered_columns) %}\n {% if alter_comment_sql and alter_comment_sql | trim | length > 0 %}\n {% do run_query(alter_comment_sql) %}\n {% endif %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.alter_relation_comment", "macro.dbt.validate_doc_columns", "macro.dbt.alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.2317863, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.2323425, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.232771, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.2341542, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.2364175, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.2379231, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.2383916, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.2408242, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.2419214, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.2424958, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.2430608, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.243658, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.2442553, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.2458935, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.2462957, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.2465808, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.24686, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.2471607, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.2516162, "supported_languages": ["sql"]}, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.2545624, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.2553275, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.2558029, "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.render() ~ \"`\") }}\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.render() ~ \"`\") }}\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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.2582924, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.2587342, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.259979, "supported_languages": null}, "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 {% do create_indexes(intermediate_relation) %}\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 {{ 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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.263959, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.2663484, "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 {{ return(adapter.dispatch('check_for_schema_changes', 'dbt')(source_relation, target_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__check_for_schema_changes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.266752, "supported_languages": null}, "macro.dbt.default__check_for_schema_changes": {"name": "default__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.default__check_for_schema_changes", "macro_sql": "{% macro default__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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.2691755, "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 {{ return(adapter.dispatch('sync_column_schemas', 'dbt')(on_schema_change, target_relation, schema_changes_dict)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__sync_column_schemas"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.269635, "supported_languages": null}, "macro.dbt.default__sync_column_schemas": {"name": "default__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.default__sync_column_schemas", "macro_sql": "{% macro default__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 {%- 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 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\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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.2719357, "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 {{ return(adapter.dispatch('process_schema_changes', 'dbt')(on_schema_change, source_relation, target_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__process_schema_changes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.2724233, "supported_languages": null}, "macro.dbt.default__process_schema_changes": {"name": "default__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.default__process_schema_changes", "macro_sql": "{% macro default__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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.2740245, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.2761278, "supported_languages": null}, "macro.dbt.get_merge_unique_key_match": {"name": "get_merge_unique_key_match", "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_unique_key_match", "macro_sql": "{% macro get_merge_unique_key_match(source_unique_key, target_unique_key) %}\n {{ return(adapter.dispatch('get_merge_unique_key_match', 'dbt')(source_unique_key, target_unique_key)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_merge_unique_key_match"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.2765374, "supported_languages": null}, "macro.dbt.default__get_merge_unique_key_match": {"name": "default__get_merge_unique_key_match", "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_unique_key_match", "macro_sql": "{% macro default__get_merge_unique_key_match(source_unique_key, target_unique_key) -%}\n {{ return(equals(source_unique_key, target_unique_key) | trim) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.equals"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.2768776, "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 source_unique_key = (\"DBT_INTERNAL_SOURCE.\" ~ unique_key) | trim %}\n {% set target_unique_key = (\"DBT_INTERNAL_DEST.\" ~ unique_key) | trim %}\n {% set unique_key_match = get_merge_unique_key_match(source_unique_key, target_unique_key) %}\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", "macro.dbt.get_merge_unique_key_match"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.2802265, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.280837, "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 string %}\n {% set unique_key = [unique_key] %}\n {% endif %}\n\n {%- set unique_key_str = unique_key|join(', ') -%}\n\n delete from {{ target }} as DBT_INTERNAL_DEST\n where ({{ unique_key_str }}) in (\n select distinct {{ unique_key_str }}\n from {{ source }} as DBT_INTERNAL_SOURCE\n )\n {%- if incremental_predicates %}\n {% for predicate in incremental_predicates %}\n and {{ predicate }}\n {% endfor %}\n {%- endif -%};\n\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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.2822812, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.2827911, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.284037, "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 {% set incremental_strategy = config.get('incremental_strategy') or 'default' %}\n {% set strategy_sql_macro_func = adapter.get_incremental_strategy_macro(context, incremental_strategy) %}\n\n {% if existing_relation is none %}\n {% set build_sql = get_create_table_as_sql(False, target_relation, sql) %}\n {% set relation_for_indexes = target_relation %}\n {% elif full_refresh_mode %}\n {% set build_sql = get_create_table_as_sql(False, intermediate_relation, sql) %}\n {% set relation_for_indexes = intermediate_relation %}\n {% set need_swap = true %}\n {% else %}\n {% do run_query(get_create_table_as_sql(True, temp_relation, sql)) %}\n {% set relation_for_indexes = temp_relation %}\n {% set contract_config = config.get('contract') %}\n {% if not contract_config or not contract_config.enforced %}\n {% do adapter.expand_target_column_types(\n from_relation=temp_relation,\n to_relation=target_relation) %}\n {% endif %}\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_predicates = config.get('predicates', none) or config.get('incremental_predicates', none) %}\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 existing_relation is none or existing_relation.is_view or should_full_refresh() %}\n {% do create_indexes(relation_for_indexes) %}\n {% endif %}\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 {{ 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.create_indexes", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.2922535, "supported_languages": ["sql"]}, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.2935252, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.2939866, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.2943826, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.2949355, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.2953172, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.2958765, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.2962582, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.2967598, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.2971358, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.297436, "supported_languages": null}, "macro.dbt.get_incremental_microbatch_sql": {"name": "get_incremental_microbatch_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_microbatch_sql", "macro_sql": "{% macro get_incremental_microbatch_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_microbatch_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_incremental_microbatch_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.2977905, "supported_languages": null}, "macro.dbt.default__get_incremental_microbatch_sql": {"name": "default__get_incremental_microbatch_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_microbatch_sql", "macro_sql": "{% macro default__get_incremental_microbatch_sql(arg_dict) %}\n\n {{ exceptions.raise_not_implemented('microbatch materialization strategy not implemented for adapter ' + adapter.type()) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.2981243, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.298671, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.3003151, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.3015049, "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 {{ return(adapter.dispatch('diff_column_data_types', 'dbt')(source_columns, target_columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__diff_column_data_types"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.301918, "supported_languages": null}, "macro.dbt.default__diff_column_data_types": {"name": "default__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.default__diff_column_data_types", "macro_sql": "{% macro default__diff_column_data_types(source_columns, target_columns) %}\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.expanded_data_type != tc.expanded_data_type and not sc.can_expand_to(other_column=tc) %}\n {{ result.append( { 'column_name': tc.name, 'new_type': sc.expanded_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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.3031852, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.3036451, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.3050292, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.3061643, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.3066266, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.3068602, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.3074229, "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.render() }} clone {{ defer_relation.render() }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.307763, "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 {%- set grant_config = config.get('grants') -%}\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.render() ~ \" 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 {% if target_relation.database == defer_relation.database and\n target_relation.schema == defer_relation.schema and\n target_relation.identifier == defer_relation.identifier %}\n {{ log(\"Target relation and defer relation are the same, skipping clone for relation: \" ~ target_relation.render()) }}\n {% else %}\n {% call statement('main') %}\n {{ create_or_replace_clone(target_relation, defer_relation) }}\n {% endcall %}\n {% endif %}\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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.3129134, "supported_languages": ["sql"]}, "macro.dbt.function_execute_build_sql": {"name": "function_execute_build_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/helpers.sql", "original_file_path": "macros/materializations/functions/helpers.sql", "unique_id": "macro.dbt.function_execute_build_sql", "macro_sql": "{% macro function_execute_build_sql(build_sql, existing_relation, target_relation) %}\n {{ return(adapter.dispatch('function_execute_build_sql', 'dbt')(build_sql, existing_relation, target_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__function_execute_build_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.3136623, "supported_languages": null}, "macro.dbt.default__function_execute_build_sql": {"name": "default__function_execute_build_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/helpers.sql", "original_file_path": "macros/materializations/functions/helpers.sql", "unique_id": "macro.dbt.default__function_execute_build_sql", "macro_sql": "{% macro default__function_execute_build_sql(build_sql, existing_relation, target_relation) %}\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 {{ adapter.commit() }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.3147018, "supported_languages": null}, "macro.dbt.materialization_function_default": {"name": "materialization_function_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/function.sql", "original_file_path": "macros/materializations/functions/function.sql", "unique_id": "macro.dbt.materialization_function_default", "macro_sql": "{% materialization function, default, supported_languages=['sql', 'python', 'javascript'] %}\n {% set existing_relation = load_cached_relation(this) %}\n {% set target_relation = this.incorporate(type=this.Function) %}\n\n {{ run_hooks(pre_hooks) }}\n\n {% set function_config = this.get_function_config(model) %}\n {% set macro_name = this.get_function_macro_name(function_config) %}\n\n {# Doing this aliasing of adapter.dispatch is a hacky way to disable the static analysis of actually calling adapter.dispatch #}\n {# This is necessary because the static analysis breaks being able to dynamically pass a macro_name #}\n {% set _dispatch = adapter.dispatch %}\n\n {% set build_sql = _dispatch(macro_name, 'dbt')(target_relation) %}\n {{ function_execute_build_sql(build_sql, existing_relation, target_relation) }}\n {{ run_hooks(post_hooks) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.run_hooks", "macro.dbt.function_execute_build_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.3165236, "supported_languages": ["sql", "python", "javascript"]}, "macro.dbt.get_aggregate_function_create_replace_signature": {"name": "get_aggregate_function_create_replace_signature", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/aggregate.sql", "original_file_path": "macros/materializations/functions/aggregate.sql", "unique_id": "macro.dbt.get_aggregate_function_create_replace_signature", "macro_sql": "{% macro get_aggregate_function_create_replace_signature(target_relation) %}\n {{ return(adapter.dispatch('get_aggregate_function_create_replace_signature', 'dbt')(target_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_aggregate_function_create_replace_signature"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.3177366, "supported_languages": null}, "macro.dbt.default__get_aggregate_function_create_replace_signature": {"name": "default__get_aggregate_function_create_replace_signature", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/aggregate.sql", "original_file_path": "macros/materializations/functions/aggregate.sql", "unique_id": "macro.dbt.default__get_aggregate_function_create_replace_signature", "macro_sql": "{% macro default__get_aggregate_function_create_replace_signature(target_relation) %}\n CREATE OR REPLACE AGGREGATE FUNCTION {{ target_relation.render() }} ({{ get_formatted_aggregate_function_args()}})\n RETURNS {{ model.returns.data_type }}\n {{ get_function_language_specifier() }}\n {{ get_aggregate_function_volatility_specifier() }}\n {% if model.get('language') == 'python' %}\n {{ get_function_python_options() }}\n {% endif %}\n AS\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_formatted_aggregate_function_args", "macro.dbt.get_function_language_specifier", "macro.dbt.get_aggregate_function_volatility_specifier", "macro.dbt.get_function_python_options"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.3184752, "supported_languages": null}, "macro.dbt.get_formatted_aggregate_function_args": {"name": "get_formatted_aggregate_function_args", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/aggregate.sql", "original_file_path": "macros/materializations/functions/aggregate.sql", "unique_id": "macro.dbt.get_formatted_aggregate_function_args", "macro_sql": "{% macro get_formatted_aggregate_function_args() %}\n {{ return(adapter.dispatch('get_formatted_aggregate_function_args', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_formatted_aggregate_function_args"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.3188095, "supported_languages": null}, "macro.dbt.default__get_formatted_aggregate_function_args": {"name": "default__get_formatted_aggregate_function_args", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/aggregate.sql", "original_file_path": "macros/materializations/functions/aggregate.sql", "unique_id": "macro.dbt.default__get_formatted_aggregate_function_args", "macro_sql": "{% macro default__get_formatted_aggregate_function_args() %}\n {# conveniently we can reuse the sql scalar function args #}\n {{ formatted_scalar_function_args_sql() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.formatted_scalar_function_args_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.319163, "supported_languages": null}, "macro.dbt.get_function_language_specifier": {"name": "get_function_language_specifier", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/aggregate.sql", "original_file_path": "macros/materializations/functions/aggregate.sql", "unique_id": "macro.dbt.get_function_language_specifier", "macro_sql": "{% macro get_function_language_specifier() %}\n {{ return(adapter.dispatch('get_function_language_specifier', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_function_language_specifier"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.3195105, "supported_languages": null}, "macro.dbt.default__get_function_language_specifier": {"name": "default__get_function_language_specifier", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/aggregate.sql", "original_file_path": "macros/materializations/functions/aggregate.sql", "unique_id": "macro.dbt.default__get_function_language_specifier", "macro_sql": "{% macro default__get_function_language_specifier() %}\n {% set language = model.get('language') %}\n {% if language == 'sql' %}\n {# generally you dont need to specify the language for sql functions #}\n {% elif language == 'python' %}\n LANGUAGE PYTHON\n {% elif language == 'javascript' %}\n LANGUAGE js\n {% else %}\n {{ 'LANGUAGE ' ~ language.upper() }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.320278, "supported_languages": null}, "macro.dbt.get_aggregate_function_volatility_specifier": {"name": "get_aggregate_function_volatility_specifier", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/aggregate.sql", "original_file_path": "macros/materializations/functions/aggregate.sql", "unique_id": "macro.dbt.get_aggregate_function_volatility_specifier", "macro_sql": "{% macro get_aggregate_function_volatility_specifier() %}\n {{ return(adapter.dispatch('get_aggregate_function_volatility_specifier', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_aggregate_function_volatility_specifier"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.3206146, "supported_languages": null}, "macro.dbt.default__get_aggregate_function_volatility_specifier": {"name": "default__get_aggregate_function_volatility_specifier", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/aggregate.sql", "original_file_path": "macros/materializations/functions/aggregate.sql", "unique_id": "macro.dbt.default__get_aggregate_function_volatility_specifier", "macro_sql": "{% macro default__get_aggregate_function_volatility_specifier() %}\n {{ scalar_function_volatility_sql() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.scalar_function_volatility_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.320841, "supported_languages": null}, "macro.dbt.get_function_python_options": {"name": "get_function_python_options", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/aggregate.sql", "original_file_path": "macros/materializations/functions/aggregate.sql", "unique_id": "macro.dbt.get_function_python_options", "macro_sql": "{% macro get_function_python_options() %}\n {{ return(adapter.dispatch('get_function_python_options', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_function_python_options"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.3211925, "supported_languages": null}, "macro.dbt.default__get_function_python_options": {"name": "default__get_function_python_options", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/aggregate.sql", "original_file_path": "macros/materializations/functions/aggregate.sql", "unique_id": "macro.dbt.default__get_function_python_options", "macro_sql": "{% macro default__get_function_python_options() %}\n RUNTIME_VERSION = '{{ model.config.get('runtime_version') }}'\n HANDLER = '{{ model.config.get('entry_point') }}'\n {% set packages = model.config.get('packages', []) %}\n {% if packages %}\n PACKAGES = ('{{ packages | join(\"','\") }}')\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.3219187, "supported_languages": null}, "macro.dbt.scalar_function_sql": {"name": "scalar_function_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/scalar.sql", "original_file_path": "macros/materializations/functions/scalar.sql", "unique_id": "macro.dbt.scalar_function_sql", "macro_sql": "{% macro scalar_function_sql(target_relation) %}\n {{ return(adapter.dispatch('scalar_function_sql', 'dbt')(target_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__scalar_function_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.3234596, "supported_languages": null}, "macro.dbt.default__scalar_function_sql": {"name": "default__scalar_function_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/scalar.sql", "original_file_path": "macros/materializations/functions/scalar.sql", "unique_id": "macro.dbt.default__scalar_function_sql", "macro_sql": "{% macro default__scalar_function_sql(target_relation) %}\n {{ scalar_function_create_replace_signature_sql(target_relation) }}\n {{ scalar_function_body_sql() }};\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.scalar_function_create_replace_signature_sql", "macro.dbt.scalar_function_body_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.3237746, "supported_languages": null}, "macro.dbt.scalar_function_create_replace_signature_sql": {"name": "scalar_function_create_replace_signature_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/scalar.sql", "original_file_path": "macros/materializations/functions/scalar.sql", "unique_id": "macro.dbt.scalar_function_create_replace_signature_sql", "macro_sql": "{% macro scalar_function_create_replace_signature_sql(target_relation) %}\n {{ return(adapter.dispatch('scalar_function_create_replace_signature_sql', 'dbt')(target_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__scalar_function_create_replace_signature_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.3242662, "supported_languages": null}, "macro.dbt.default__scalar_function_create_replace_signature_sql": {"name": "default__scalar_function_create_replace_signature_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/scalar.sql", "original_file_path": "macros/materializations/functions/scalar.sql", "unique_id": "macro.dbt.default__scalar_function_create_replace_signature_sql", "macro_sql": "{% macro default__scalar_function_create_replace_signature_sql(target_relation) %}\n CREATE OR REPLACE FUNCTION {{ target_relation.render() }} ({{ formatted_scalar_function_args_sql()}})\n RETURNS {{ model.returns.data_type }}\n {{ scalar_function_volatility_sql() }}\n AS\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.formatted_scalar_function_args_sql", "macro.dbt.scalar_function_volatility_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.3246946, "supported_languages": null}, "macro.dbt.formatted_scalar_function_args_sql": {"name": "formatted_scalar_function_args_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/scalar.sql", "original_file_path": "macros/materializations/functions/scalar.sql", "unique_id": "macro.dbt.formatted_scalar_function_args_sql", "macro_sql": "{% macro formatted_scalar_function_args_sql() %}\n {{ return(adapter.dispatch('formatted_scalar_function_args_sql', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__formatted_scalar_function_args_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.3250198, "supported_languages": null}, "macro.dbt.formatted_scalar_function_args_javascript": {"name": "formatted_scalar_function_args_javascript", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/scalar.sql", "original_file_path": "macros/materializations/functions/scalar.sql", "unique_id": "macro.dbt.formatted_scalar_function_args_javascript", "macro_sql": "{% macro formatted_scalar_function_args_javascript() %}\n {{ return(adapter.dispatch('formatted_scalar_function_args_javascript', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__formatted_scalar_function_args_javascript"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.325372, "supported_languages": null}, "macro.dbt.default__formatted_scalar_function_args_sql": {"name": "default__formatted_scalar_function_args_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/scalar.sql", "original_file_path": "macros/materializations/functions/scalar.sql", "unique_id": "macro.dbt.default__formatted_scalar_function_args_sql", "macro_sql": "{% macro default__formatted_scalar_function_args_sql() %}\n {% set args = [] %}\n {% for arg in model.arguments -%}\n {%- do args.append(arg.name ~ ' ' ~ arg.data_type) -%}\n {%- endfor %}\n {{ args | join(', ') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.325998, "supported_languages": null}, "macro.dbt.default__formatted_scalar_function_args_javascript": {"name": "default__formatted_scalar_function_args_javascript", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/scalar.sql", "original_file_path": "macros/materializations/functions/scalar.sql", "unique_id": "macro.dbt.default__formatted_scalar_function_args_javascript", "macro_sql": "{% macro default__formatted_scalar_function_args_javascript() %}\n {% set msg = \"formatted_scalar_function_args_javascript not implemented for adapter \" ~ adapter.type() %}\n {% do exceptions.raise_compiler_error(msg) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.3264253, "supported_languages": null}, "macro.dbt.scalar_function_body_sql": {"name": "scalar_function_body_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/scalar.sql", "original_file_path": "macros/materializations/functions/scalar.sql", "unique_id": "macro.dbt.scalar_function_body_sql", "macro_sql": "{% macro scalar_function_body_sql() %}\n {{ return(adapter.dispatch('scalar_function_body_sql', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__scalar_function_body_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.326748, "supported_languages": null}, "macro.dbt.default__scalar_function_body_sql": {"name": "default__scalar_function_body_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/scalar.sql", "original_file_path": "macros/materializations/functions/scalar.sql", "unique_id": "macro.dbt.default__scalar_function_body_sql", "macro_sql": "{% macro default__scalar_function_body_sql() %}\n $$\n {{ model.compiled_code }}\n $$ LANGUAGE SQL\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.326965, "supported_languages": null}, "macro.dbt.scalar_function_volatility_sql": {"name": "scalar_function_volatility_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/scalar.sql", "original_file_path": "macros/materializations/functions/scalar.sql", "unique_id": "macro.dbt.scalar_function_volatility_sql", "macro_sql": "{% macro scalar_function_volatility_sql() %}\n {{ return(adapter.dispatch('scalar_function_volatility_sql', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__scalar_function_volatility_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.327321, "supported_languages": null}, "macro.dbt.scalar_function_volatility_javascript": {"name": "scalar_function_volatility_javascript", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/scalar.sql", "original_file_path": "macros/materializations/functions/scalar.sql", "unique_id": "macro.dbt.scalar_function_volatility_javascript", "macro_sql": "{% macro scalar_function_volatility_javascript() %}\n {{ return(adapter.dispatch('scalar_function_volatility_javascript', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__scalar_function_volatility_javascript"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.3276439, "supported_languages": null}, "macro.dbt.default__scalar_function_volatility_javascript": {"name": "default__scalar_function_volatility_javascript", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/scalar.sql", "original_file_path": "macros/materializations/functions/scalar.sql", "unique_id": "macro.dbt.default__scalar_function_volatility_javascript", "macro_sql": "{% macro default__scalar_function_volatility_javascript() %}\n {% set volatility = model.config.get('volatility') %}\n {% if volatility != none %}\n {% set msg = \"Volatility is not supported by \" ~ adapter.type() ~ \" in javascript UDF and will be ignored\" %}\n {% do exceptions.warn(msg) %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.3283494, "supported_languages": null}, "macro.dbt.default__scalar_function_volatility_sql": {"name": "default__scalar_function_volatility_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/scalar.sql", "original_file_path": "macros/materializations/functions/scalar.sql", "unique_id": "macro.dbt.default__scalar_function_volatility_sql", "macro_sql": "{% macro default__scalar_function_volatility_sql() %}\n {% set volatility = model.config.get('volatility') %}\n {% if volatility == 'deterministic' %}\n IMMUTABLE\n {% elif volatility == 'stable' %}\n STABLE\n {% elif volatility == 'non-deterministic' %}\n VOLATILE\n {% elif volatility != none %}\n {# This shouldn't happen unless a new volatility is invented #}\n {% do unsupported_volatility_warning(volatility) %}\n {% endif %}\n {# If no volatility is set, don't add anything and let the data warehouse default it #}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.unsupported_volatility_warning"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.32918, "supported_languages": null}, "macro.dbt.unsupported_volatility_warning": {"name": "unsupported_volatility_warning", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/scalar.sql", "original_file_path": "macros/materializations/functions/scalar.sql", "unique_id": "macro.dbt.unsupported_volatility_warning", "macro_sql": "{% macro unsupported_volatility_warning(volatility) %}\n {{ return(adapter.dispatch('unsupported_volatility_warning', 'dbt')(volatility)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__unsupported_volatility_warning"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.3295481, "supported_languages": null}, "macro.dbt.default__unsupported_volatility_warning": {"name": "default__unsupported_volatility_warning", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/scalar.sql", "original_file_path": "macros/materializations/functions/scalar.sql", "unique_id": "macro.dbt.default__unsupported_volatility_warning", "macro_sql": "{% macro default__unsupported_volatility_warning(volatility) %}\n {% set msg = \"Found `\" ~ volatility ~ \"` volatility specified on function `\" ~ model.name ~ \"`. This volatility is not supported by \" ~ adapter.type() ~ \", and will be ignored\" %}\n {% do exceptions.warn(msg) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.3300664, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.3339758, "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.render() }} add column {{ adapter.quote(column.name) }} {{ column.expanded_data_type }};\n {% endcall %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.3346517, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.3351114, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.3353086, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.3356047, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.335839, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.3362591, "supported_languages": null}, "macro.dbt.get_snapshot_table_column_names": {"name": "get_snapshot_table_column_names", "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_snapshot_table_column_names", "macro_sql": "{% macro get_snapshot_table_column_names() %}\n {{ return({'dbt_valid_to': 'dbt_valid_to', 'dbt_valid_from': 'dbt_valid_from', 'dbt_scd_id': 'dbt_scd_id', 'dbt_updated_at': 'dbt_updated_at', 'dbt_is_deleted': 'dbt_is_deleted'}) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.3367393, "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 {% set columns = config.get('snapshot_table_column_names') or get_snapshot_table_column_names() %}\n {% if strategy.hard_deletes == 'new_record' %}\n {% set new_scd_id = snapshot_hash_arguments([columns.dbt_scd_id, snapshot_get_time()]) %}\n {% endif %}\n with snapshot_query as (\n\n {{ source_sql }}\n\n ),\n\n snapshotted_data as (\n\n select *, {{ unique_key_fields(strategy.unique_key) }}\n from {{ target_relation }}\n where\n {% if config.get('dbt_valid_to_current') %}\n\t\t{% set source_unique_key = columns.dbt_valid_to | trim %}\n\t\t{% set target_unique_key = config.get('dbt_valid_to_current') | trim %}\n\n\t\t{# The exact equals semantics between NULL values depends on the current behavior flag set. Also, update records if the source field is null #}\n ( {{ equals(source_unique_key, target_unique_key) }} or {{ source_unique_key }} is null )\n {% else %}\n {{ columns.dbt_valid_to }} is null\n {% endif %}\n\n ),\n\n insertions_source_data as (\n\n select *, {{ unique_key_fields(strategy.unique_key) }},\n {{ strategy.updated_at }} as {{ columns.dbt_updated_at }},\n {{ strategy.updated_at }} as {{ columns.dbt_valid_from }},\n {{ get_dbt_valid_to_current(strategy, columns) }},\n {{ strategy.scd_id }} as {{ columns.dbt_scd_id }}\n\n from snapshot_query\n ),\n\n updates_source_data as (\n\n select *, {{ unique_key_fields(strategy.unique_key) }},\n {{ strategy.updated_at }} as {{ columns.dbt_updated_at }},\n {{ strategy.updated_at }} as {{ columns.dbt_valid_from }},\n {{ strategy.updated_at }} as {{ columns.dbt_valid_to }}\n\n from snapshot_query\n ),\n\n {%- if strategy.hard_deletes == 'invalidate' or strategy.hard_deletes == 'new_record' %}\n\n deletes_source_data as (\n\n select *, {{ unique_key_fields(strategy.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 {%- if strategy.hard_deletes == 'new_record' -%}\n ,'False' as {{ columns.dbt_is_deleted }}\n {%- endif %}\n\n from insertions_source_data as source_data\n left outer join snapshotted_data\n on {{ unique_key_join_on(strategy.unique_key, \"snapshotted_data\", \"source_data\") }}\n where {{ unique_key_is_null(strategy.unique_key, \"snapshotted_data\") }}\n or ({{ unique_key_is_not_null(strategy.unique_key, \"snapshotted_data\") }} and (\n {{ strategy.row_changed }} {%- if strategy.hard_deletes == 'new_record' -%} or snapshotted_data.{{ columns.dbt_is_deleted }} = 'True' {% endif %}\n )\n\n )\n\n ),\n\n updates as (\n\n select\n 'update' as dbt_change_type,\n source_data.*,\n snapshotted_data.{{ columns.dbt_scd_id }}\n {%- if strategy.hard_deletes == 'new_record' -%}\n , snapshotted_data.{{ columns.dbt_is_deleted }}\n {%- endif %}\n\n from updates_source_data as source_data\n join snapshotted_data\n on {{ unique_key_join_on(strategy.unique_key, \"snapshotted_data\", \"source_data\") }}\n where (\n {{ strategy.row_changed }} {%- if strategy.hard_deletes == 'new_record' -%} or snapshotted_data.{{ columns.dbt_is_deleted }} = 'True' {% endif %}\n )\n )\n\n {%- if strategy.hard_deletes == 'invalidate' or strategy.hard_deletes == 'new_record' %}\n ,\n deletes as (\n\n select\n 'delete' as dbt_change_type,\n source_data.*,\n {{ snapshot_get_time() }} as {{ columns.dbt_valid_from }},\n {{ snapshot_get_time() }} as {{ columns.dbt_updated_at }},\n {{ snapshot_get_time() }} as {{ columns.dbt_valid_to }},\n snapshotted_data.{{ columns.dbt_scd_id }}\n {%- if strategy.hard_deletes == 'new_record' -%}\n , snapshotted_data.{{ columns.dbt_is_deleted }}\n {%- endif %}\n from snapshotted_data\n left join deletes_source_data as source_data\n on {{ unique_key_join_on(strategy.unique_key, \"snapshotted_data\", \"source_data\") }}\n where {{ unique_key_is_null(strategy.unique_key, \"source_data\") }}\n\n {%- if strategy.hard_deletes == 'new_record' %}\n and not (\n --avoid updating the record's valid_to if the latest entry is marked as deleted\n snapshotted_data.{{ columns.dbt_is_deleted }} = 'True'\n and\n {% if config.get('dbt_valid_to_current') -%}\n snapshotted_data.{{ columns.dbt_valid_to }} = {{ config.get('dbt_valid_to_current') }}\n {%- else -%}\n snapshotted_data.{{ columns.dbt_valid_to }} is null\n {%- endif %}\n )\n {%- endif %}\n )\n {%- endif %}\n\n {%- if strategy.hard_deletes == 'new_record' %}\n {% set snapshotted_cols = get_list_of_column_names(get_columns_in_relation(target_relation)) %}\n {% set source_sql_cols = get_column_schema_from_query(source_sql) %}\n ,\n deletion_records as (\n\n select\n 'insert' as dbt_change_type,\n {#/*\n If a column has been added to the source it won't yet exist in the\n snapshotted table so we insert a null value as a placeholder for the column.\n */#}\n {%- for col in source_sql_cols -%}\n {%- if col.name in snapshotted_cols -%}\n snapshotted_data.{{ adapter.quote(col.column) }},\n {%- else -%}\n {{ safe_cast('NULL', col.dtype) }} as {{ adapter.quote(col.column) }},\n {%- endif -%}\n {% endfor -%}\n {%- if strategy.unique_key | is_list -%}\n {%- for key in strategy.unique_key -%}\n snapshotted_data.{{ key }} as dbt_unique_key_{{ loop.index }},\n {% endfor -%}\n {%- else -%}\n snapshotted_data.dbt_unique_key as dbt_unique_key,\n {% endif -%}\n {{ snapshot_get_time() }} as {{ columns.dbt_valid_from }},\n {{ snapshot_get_time() }} as {{ columns.dbt_updated_at }},\n snapshotted_data.{{ columns.dbt_valid_to }} as {{ columns.dbt_valid_to }},\n {{ new_scd_id }} as {{ columns.dbt_scd_id }},\n 'True' as {{ columns.dbt_is_deleted }}\n from snapshotted_data\n left join deletes_source_data as source_data\n on {{ unique_key_join_on(strategy.unique_key, \"snapshotted_data\", \"source_data\") }}\n where {{ unique_key_is_null(strategy.unique_key, \"source_data\") }}\n and not (\n --avoid inserting a new record if the latest one is marked as deleted\n snapshotted_data.{{ columns.dbt_is_deleted }} = 'True'\n and\n {% if config.get('dbt_valid_to_current') -%}\n snapshotted_data.{{ columns.dbt_valid_to }} = {{ config.get('dbt_valid_to_current') }}\n {%- else -%}\n snapshotted_data.{{ columns.dbt_valid_to }} is null\n {%- endif %}\n )\n\n )\n {%- endif %}\n\n select * from insertions\n union all\n select * from updates\n {%- if strategy.hard_deletes == 'invalidate' or strategy.hard_deletes == 'new_record' %}\n union all\n select * from deletes\n {%- endif %}\n {%- if strategy.hard_deletes == 'new_record' %}\n union all\n select * from deletion_records\n {%- endif %}\n\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_snapshot_table_column_names", "macro.dbt.snapshot_hash_arguments", "macro.dbt.snapshot_get_time", "macro.dbt.unique_key_fields", "macro.dbt.equals", "macro.dbt.get_dbt_valid_to_current", "macro.dbt.unique_key_join_on", "macro.dbt.unique_key_is_null", "macro.dbt.unique_key_is_not_null", "macro.dbt.get_list_of_column_names", "macro.dbt.get_columns_in_relation", "macro.dbt.get_column_schema_from_query", "macro.dbt.safe_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.3454027, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.3458219, "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 {% set columns = config.get('snapshot_table_column_names') or get_snapshot_table_column_names() %}\n\n select *,\n {{ strategy.scd_id }} as {{ columns.dbt_scd_id }},\n {{ strategy.updated_at }} as {{ columns.dbt_updated_at }},\n {{ strategy.updated_at }} as {{ columns.dbt_valid_from }},\n {{ get_dbt_valid_to_current(strategy, columns) }}\n {%- if strategy.hard_deletes == 'new_record' -%}\n , 'False' as {{ columns.dbt_is_deleted }}\n {% endif -%}\n from (\n {{ sql }}\n ) sbq\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_snapshot_table_column_names", "macro.dbt.get_dbt_valid_to_current"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.3468297, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.347673, "supported_languages": null}, "macro.dbt.get_updated_at_column_data_type": {"name": "get_updated_at_column_data_type", "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_updated_at_column_data_type", "macro_sql": "{% macro get_updated_at_column_data_type(snapshot_sql) %}\n {% set snapshot_sql_column_schema = get_column_schema_from_query(snapshot_sql) %}\n {% set dbt_updated_at_data_type = null %}\n {% set ns = namespace() -%} {#-- handle for-loop scoping with a namespace --#}\n {% set ns.dbt_updated_at_data_type = null -%}\n {% for column in snapshot_sql_column_schema %}\n {% if ((column.column == 'dbt_updated_at') or (column.column == 'DBT_UPDATED_AT')) %}\n {% set ns.dbt_updated_at_data_type = column.dtype %}\n {% endif %}\n {% endfor %}\n {{ return(ns.dbt_updated_at_data_type or none) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_column_schema_from_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.3488212, "supported_languages": null}, "macro.dbt.check_time_data_types": {"name": "check_time_data_types", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.check_time_data_types", "macro_sql": "{% macro check_time_data_types(sql) %}\n {% set dbt_updated_at_data_type = get_updated_at_column_data_type(sql) %}\n {% set snapshot_get_time_data_type = get_snapshot_get_time_data_type() %}\n {% if snapshot_get_time_data_type is not none and dbt_updated_at_data_type is not none and snapshot_get_time_data_type != dbt_updated_at_data_type %}\n {% if exceptions.warn_snapshot_timestamp_data_types %}\n {{ exceptions.warn_snapshot_timestamp_data_types(snapshot_get_time_data_type, dbt_updated_at_data_type) }}\n {% endif %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_updated_at_column_data_type", "macro.dbt.get_snapshot_get_time_data_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.3496764, "supported_languages": null}, "macro.dbt.get_dbt_valid_to_current": {"name": "get_dbt_valid_to_current", "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_dbt_valid_to_current", "macro_sql": "{% macro get_dbt_valid_to_current(strategy, columns) %}\n {% set dbt_valid_to_current = config.get('dbt_valid_to_current') or \"null\" %}\n coalesce(nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}), {{dbt_valid_to_current}})\n as {{ columns.dbt_valid_to }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.3502562, "supported_languages": null}, "macro.dbt.unique_key_fields": {"name": "unique_key_fields", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.unique_key_fields", "macro_sql": "{% macro unique_key_fields(unique_key) %}\n {% if unique_key | is_list %}\n {% for key in unique_key %}\n {{ key }} as dbt_unique_key_{{ loop.index }}\n {%- if not loop.last %} , {%- endif %}\n {% endfor %}\n {% else %}\n {{ unique_key }} as dbt_unique_key\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.3509376, "supported_languages": null}, "macro.dbt.unique_key_join_on": {"name": "unique_key_join_on", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.unique_key_join_on", "macro_sql": "{% macro unique_key_join_on(unique_key, identifier, from_identifier) %}\n {% if unique_key | is_list %}\n {% for key in unique_key %}\n\t {% set source_unique_key = (identifier ~ \".dbt_unique_key_\" ~ loop.index) | trim %}\n\t {% set target_unique_key = (from_identifier ~ \".dbt_unique_key_\" ~ loop.index) | trim %}\n\t {{ equals(source_unique_key, target_unique_key) }}\n {%- if not loop.last %} and {%- endif %}\n {% endfor %}\n {% else %}\n {{ identifier }}.dbt_unique_key = {{ from_identifier }}.dbt_unique_key\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.equals"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.3520584, "supported_languages": null}, "macro.dbt.unique_key_is_null": {"name": "unique_key_is_null", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.unique_key_is_null", "macro_sql": "{% macro unique_key_is_null(unique_key, identifier) %}\n {% if unique_key | is_list %}\n {{ identifier }}.dbt_unique_key_1 is null\n {% else %}\n {{ identifier }}.dbt_unique_key is null\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.3525603, "supported_languages": null}, "macro.dbt.unique_key_is_not_null": {"name": "unique_key_is_not_null", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.unique_key_is_not_null", "macro_sql": "{% macro unique_key_is_not_null(unique_key, identifier) %}\n {% if unique_key | is_list %}\n {{ identifier }}.dbt_unique_key_1 is not null\n {% else %}\n {{ identifier }}.dbt_unique_key is not null\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.3529813, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.3570476, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.3574371, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.3578951, "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, model_config, target_exists) %}\n {# The model_config parameter is no longer used, but is passed in anyway for compatibility. #}\n {% set primary_key = config.get('unique_key') %}\n {% set updated_at = config.get('updated_at') %}\n {% set hard_deletes = adapter.get_hard_deletes_behavior(config) %}\n {% set invalidate_hard_deletes = hard_deletes == 'invalidate' %}\n {% set columns = config.get(\"snapshot_table_column_names\") or get_snapshot_table_column_names() %}\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 }}.{{ columns.dbt_valid_from }} < {{ current_rel }}.{{ updated_at }})\n {%- endset %}\n\n {% set scd_args = api.Relation.scd_args(primary_key, updated_at) %}\n {% set scd_id_expr = snapshot_hash_arguments(scd_args) %}\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 \"hard_deletes\": hard_deletes\n }) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_snapshot_table_column_names", "macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.3599756, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.3603456, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.3606884, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.363364, "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, model_config, target_exists) %}\n {# The model_config parameter is no longer used, but is passed in anyway for compatibility. #}\n {% set check_cols_config = config.get('check_cols') %}\n {% set primary_key = config.get('unique_key') %}\n {% set hard_deletes = adapter.get_hard_deletes_behavior(config) %}\n {% set invalidate_hard_deletes = hard_deletes == 'invalidate' %}\n {% set updated_at = config.get('updated_at') or 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_args = api.Relation.scd_args(primary_key, updated_at) %}\n {% set scd_id_expr = snapshot_hash_arguments(scd_args) %}\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 \"hard_deletes\": 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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.3661096, "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\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 {# The model['config'] parameter below is no longer used, but passing anyway for compatibility #}\n {# It was a dictionary of config, instead of the config object from the context #}\n {% set strategy = strategy_macro(model, \"snapshotted_data\", \"source_data\", model['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 build_or_select_sql = build_sql %}\n {% set final_sql = create_table_as(False, target_relation, build_sql) %}\n\n {% else %}\n\n {% set columns = config.get(\"snapshot_table_column_names\") or get_snapshot_table_column_names() %}\n\n {{ adapter.assert_valid_snapshot_target_given_strategy(target_relation, columns, strategy) }}\n\n {% set build_or_select_sql = snapshot_staging_table(strategy, sql, target_relation) %}\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 remove_columns = ['dbt_change_type', 'DBT_CHANGE_TYPE', 'dbt_unique_key', 'DBT_UNIQUE_KEY'] %}\n {% if unique_key | is_list %}\n {% for key in strategy.unique_key %}\n {{ remove_columns.append('dbt_unique_key_' + loop.index|string) }}\n {{ remove_columns.append('DBT_UNIQUE_KEY_' + loop.index|string) }}\n {% endfor %}\n {% endif %}\n\n {% set missing_columns = adapter.get_missing_columns(staging_table, target_relation)\n | rejectattr('name', 'in', remove_columns)\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', 'in', remove_columns)\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\n {{ check_time_data_types(build_or_select_sql) }}\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.get_snapshot_table_column_names", "macro.dbt.snapshot_staging_table", "macro.dbt.build_snapshot_staging_table", "macro.dbt.create_columns", "macro.dbt.snapshot_merge_sql", "macro.dbt.check_time_data_types", "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.3737903, "supported_languages": ["sql"]}, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.37465, "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 {%- set columns = config.get(\"snapshot_table_column_names\") or get_snapshot_table_column_names() -%}\n\n merge into {{ target.render() }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on DBT_INTERNAL_SOURCE.{{ columns.dbt_scd_id }} = DBT_INTERNAL_DEST.{{ columns.dbt_scd_id }}\n\n when matched\n {% if config.get(\"dbt_valid_to_current\") %}\n\t{% set source_unique_key = (\"DBT_INTERNAL_DEST.\" ~ columns.dbt_valid_to) | trim %}\n\t{% set target_unique_key = config.get('dbt_valid_to_current') | trim %}\n\tand ({{ equals(source_unique_key, target_unique_key) }} or {{ source_unique_key }} is null)\n\n {% else %}\n and DBT_INTERNAL_DEST.{{ columns.dbt_valid_to }} is null\n {% endif %}\n and DBT_INTERNAL_SOURCE.dbt_change_type in ('update', 'delete')\n then update\n set {{ columns.dbt_valid_to }} = DBT_INTERNAL_SOURCE.{{ columns.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": ["macro.dbt.get_snapshot_table_column_names", "macro.dbt.equals"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.3762562, "supported_languages": null}, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.3772683, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.3778532, "supported_languages": null}, "macro.dbt.get_unit_test_sql": {"name": "get_unit_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_unit_test_sql", "macro_sql": "{% macro get_unit_test_sql(main_sql, expected_fixture_sql, expected_column_names) -%}\n {{ adapter.dispatch('get_unit_test_sql', 'dbt')(main_sql, expected_fixture_sql, expected_column_names) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_unit_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.378277, "supported_languages": null}, "macro.dbt.default__get_unit_test_sql": {"name": "default__get_unit_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_unit_test_sql", "macro_sql": "{% macro default__get_unit_test_sql(main_sql, expected_fixture_sql, expected_column_names) -%}\n-- Build actual result given inputs\nwith dbt_internal_unit_test_actual as (\n select\n {% for expected_column_name in expected_column_names %}{{expected_column_name}}{% if not loop.last -%},{% endif %}{%- endfor -%}, {{ dbt.string_literal(\"actual\") }} as {{ adapter.quote(\"actual_or_expected\") }}\n from (\n {{ main_sql }}\n ) _dbt_internal_unit_test_actual\n),\n-- Build expected result\ndbt_internal_unit_test_expected as (\n select\n {% for expected_column_name in expected_column_names %}{{expected_column_name}}{% if not loop.last -%}, {% endif %}{%- endfor -%}, {{ dbt.string_literal(\"expected\") }} as {{ adapter.quote(\"actual_or_expected\") }}\n from (\n {{ expected_fixture_sql }}\n ) _dbt_internal_unit_test_expected\n)\n-- Union actual and expected results\nselect * from dbt_internal_unit_test_actual\nunion all\nselect * from dbt_internal_unit_test_expected\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.string_literal"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.379452, "supported_languages": null}, "macro.dbt.materialization_unit_default": {"name": "materialization_unit_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/unit.sql", "original_file_path": "macros/materializations/tests/unit.sql", "unique_id": "macro.dbt.materialization_unit_default", "macro_sql": "{%- materialization unit, default -%}\n\n {% set relations = [] %}\n {% set sql_header = config.get('sql_header') if flags.REQUIRE_SQL_HEADER_IN_TEST_CONFIGS else none %}\n\n {% set expected_rows = config.get('expected_rows') %}\n {% set expected_sql = config.get('expected_sql') %}\n {% set tested_expected_column_names = expected_rows[0].keys() if (expected_rows | length ) > 0 else get_columns_in_query(sql) %}\n\n {%- set target_relation = this.incorporate(type='table') -%}\n {%- set temp_relation = make_temp_relation(target_relation)-%}\n {% do run_query(get_create_table_as_sql(True, temp_relation, get_empty_subquery_sql(sql))) %}\n {%- set columns_in_relation = adapter.get_columns_in_relation(temp_relation) -%}\n {%- set column_name_to_data_types = {} -%}\n {%- set column_name_to_quoted = {} -%}\n {%- for column in columns_in_relation -%}\n {%- do column_name_to_data_types.update({column.name|lower: column.data_type}) -%}\n {%- do column_name_to_quoted.update({column.name|lower: column.quoted}) -%}\n {%- endfor -%}\n\n {%- set expected_column_names_quoted = [] -%}\n {%- for column_name in tested_expected_column_names -%}\n {%- do expected_column_names_quoted.append(column_name_to_quoted[column_name|lower]) -%}\n {%- endfor -%}\n\n {% if not expected_sql %}\n {% set expected_sql = get_expected_sql(expected_rows, column_name_to_data_types, column_name_to_quoted) %}\n {% endif %}\n {% set unit_test_sql = get_unit_test_sql(sql, expected_sql, expected_column_names_quoted) %}\n\n {% call statement('main', fetch_result=True) -%}\n\n {% if sql_header %}{{ sql_header }}{% endif %}\n {{ unit_test_sql }}\n\n {%- endcall %}\n\n {% do adapter.drop_relation(temp_relation) %}\n\n {{ return({'relations': relations}) }}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.get_columns_in_query", "macro.dbt.make_temp_relation", "macro.dbt.run_query", "macro.dbt.get_create_table_as_sql", "macro.dbt.get_empty_subquery_sql", "macro.dbt.get_expected_sql", "macro.dbt.get_unit_test_sql", "macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.383356, "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 {% set limit = config.get('limit') %}\n {% set sql_header = config.get('sql_header') if flags.REQUIRE_SQL_HEADER_IN_TEST_CONFIGS else none %}\n\n {% set sql_with_limit %}\n {{ get_limit_subquery_sql(sql, limit) }}\n {% endset %}\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 {% if sql_header %}{{ sql_header }}{% endif %}\n {{ get_create_sql(target_relation, sql_with_limit) }}\n {% endcall %}\n\n {% do relations.append(target_relation) %}\n\n {# Since the test failures have already been saved to the database, reuse that result rather than querying again #}\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_with_limit %}\n\n {% endif %}\n\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 {% if sql_header %}{{ sql_header }}{% endif %}\n {# The limit has already been included above, and we do not want to duplicate it again. We also want to be safe for macro overrides treating `limit` as a required parameter. #}\n {{ get_test_sql(main_sql, fail_calc, warn_if, error_if, limit=none)}}\n\n {%- endcall %}\n\n {{ return({'relations': relations}) }}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.get_limit_subquery_sql", "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.3884728, "supported_languages": ["sql"]}, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.3891485, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.3899035, "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.render())) }}\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 = \"\" %}\n {% if rows_affected > 0 %}\n {% set sql = load_csv_rows(model, agate_table) %}\n {% endif %}\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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.3949785, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.3967645, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.3985045, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.3989556, "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.render() %}\n {% endif %}\n\n {{ return(sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.3999183, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.4003317, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.4006083, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.400892, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.4011536, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.401471, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.4017034, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.4026365, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.4033883, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.4057477, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.4063745, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.4067788, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.407436, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.4079223, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.408952, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.41132, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.4119196, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.4123483, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.4131885, "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.render() }} 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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.4139314, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.4143167, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.4147162, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.415115, "supported_languages": null}, "macro.dbt.drop_schema_named": {"name": "drop_schema_named", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/schema.sql", "original_file_path": "macros/relations/schema.sql", "unique_id": "macro.dbt.drop_schema_named", "macro_sql": "{% macro drop_schema_named(schema_name) %}\n {{ return(adapter.dispatch('drop_schema_named', 'dbt') (schema_name)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__drop_schema_named"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.4156232, "supported_languages": null}, "macro.dbt.default__drop_schema_named": {"name": "default__drop_schema_named", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/schema.sql", "original_file_path": "macros/relations/schema.sql", "unique_id": "macro.dbt.default__drop_schema_named", "macro_sql": "{% macro default__drop_schema_named(schema_name) %}\n {% set schema_relation = api.Relation.create(schema=schema_name) %}\n {{ adapter.drop_schema(schema_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.4160385, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.416768, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.417326, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.4182148, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.4190562, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.4194822, "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.render() }} rename to {{ target_name }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.420068, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.4208076, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.4216957, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.422231, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.4225292, "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 {{- 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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.4229994, "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.render() }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.423275, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.4238443, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.4241421, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.4246519, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.4249547, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.425476, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.4258738, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.4268882, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.4272842, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.427823, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.4281342, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.429072, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.4293954, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.4315429, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.4319296, "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.render() ~ \" 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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.4324064, "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 {{- 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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.4328742, "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.render() }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.4331436, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.4336507, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.4339418, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.4346406, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.4349554, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.435445, "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.render() }}\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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.4363277, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.436839, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.4371495, "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 {{- 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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.437609, "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.render() }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.4378533, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.4383678, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.4386592, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.439804, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.4401987, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.4410396, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.442395, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.4433048, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.44367, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.4440193, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.4455004, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.4457555, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.4469175, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.4472764, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.4475513, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.4500093, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.450774, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.4514465, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.4521577, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.4526696, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.4535027, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.4540224, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.4547288, "supported_languages": null}, "macro.dbt.generate_latest_version_pointer_alias": {"name": "generate_latest_version_pointer_alias", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_latest_version_pointer_alias.sql", "original_file_path": "macros/get_custom_name/get_latest_version_pointer_alias.sql", "unique_id": "macro.dbt.generate_latest_version_pointer_alias", "macro_sql": "{% macro generate_latest_version_pointer_alias(custom_alias_name=none, node=none) -%}\n {% do return(adapter.dispatch('generate_latest_version_pointer_alias', 'dbt')(custom_alias_name, node)) %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_latest_version_pointer_alias"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.455558, "supported_languages": null}, "macro.dbt.default__generate_latest_version_pointer_alias": {"name": "default__generate_latest_version_pointer_alias", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_latest_version_pointer_alias.sql", "original_file_path": "macros/get_custom_name/get_latest_version_pointer_alias.sql", "unique_id": "macro.dbt.default__generate_latest_version_pointer_alias", "macro_sql": "{% macro default__generate_latest_version_pointer_alias(custom_alias_name=none, node=none) -%}\n {%- if custom_alias_name -%}\n {{ custom_alias_name | trim }}\n {%- else -%}\n {{ node.name }}\n {%- endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.4559977, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.4567227, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.4574726, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.4589686, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.4592981, "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\n {#\n We want to get the string of the returned relation by calling .render() in order to skip sample/empty\n mode rendering logic. However, people override the default ref macro, and often return a string instead\n of a relation (like the ref macro does by default). Thus, to make sure we dont blow things up, we have\n to ensure the resolved relation has a .render() method.\n #}\n {%- if resolved.render is defined and resolved.render is callable -%}\n {%- set resolved = resolved.render() -%}\n {%- endif -%}\n\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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.4612722, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.4620912, "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 -%}\n {# Handle dbt.config.meta_get() calls - use separate dict to avoid overwriting native configs #}\n {%- set meta_dict = {} -%}\n {%- if model.config.meta_keys_used -%}\n {% set meta_dbt_used = zip(model.config.meta_keys_used, model.config.meta_keys_defaults) | list %}\n {%- for key, default in meta_dbt_used -%}\n {%- if model.config.meta and key in model.config.meta -%}\n {%- set value = model.config.meta[key] -%}\n {%- else -%}\n {%- set value = default -%}\n {%- endif -%}\n {%- do meta_dict.update({key: value}) -%}\n {%- endfor -%}\n {%- endif -%}\nconfig_dict = {{ config_dict }}\nmeta_dict = {{ meta_dict }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.4643614, "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\n @staticmethod\n def meta_get(key, default=None):\n return meta_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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.4653063, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.4654686, "supported_languages": null}, "macro.dbt.get_fixture_sql": {"name": "get_fixture_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/unit_test_sql/get_fixture_sql.sql", "original_file_path": "macros/unit_test_sql/get_fixture_sql.sql", "unique_id": "macro.dbt.get_fixture_sql", "macro_sql": "{% macro get_fixture_sql(rows, column_name_to_data_types) %}\n-- Fixture for {{ model.name }}\n{% set default_row = {} %}\n\n{%- if not column_name_to_data_types -%}\n{#-- Use defer_relation IFF it is available in the manifest and 'this' is missing from the database --#}\n{%- set this_or_defer_relation = defer_relation if (defer_relation and not load_relation(this)) else this -%}\n{%- set columns_in_relation = adapter.get_columns_in_relation(this_or_defer_relation) -%}\n\n{%- set column_name_to_data_types = {} -%}\n{%- set column_name_to_quoted = {} -%}\n{%- for column in columns_in_relation -%}\n\n{#-- This needs to be a case-insensitive comparison --#}\n{%- do column_name_to_data_types.update({column.name|lower: column.data_type}) -%}\n{%- do column_name_to_quoted.update({column.name|lower: column.quoted}) -%}\n{%- endfor -%}\n{%- endif -%}\n\n{%- if not column_name_to_data_types -%}\n {{ exceptions.raise_compiler_error(\"Not able to get columns for unit test '\" ~ model.name ~ \"' from relation \" ~ this ~ \" because the relation doesn't exist\") }}\n{%- endif -%}\n\n{%- for column_name, column_type in column_name_to_data_types.items() -%}\n {%- do default_row.update({column_name: (safe_cast(\"null\", column_type) | trim )}) -%}\n{%- endfor -%}\n\n{{ validate_fixture_rows(rows, row_number) }}\n\n{%- for row in rows -%}\n{%- set formatted_row = format_row(row, column_name_to_data_types) -%}\n{%- set default_row_copy = default_row.copy() -%}\n{%- do default_row_copy.update(formatted_row) -%}\nselect\n{%- for column_name, column_value in default_row_copy.items() %} {{ column_value }} as {{ column_name_to_quoted[column_name] }}{% if not loop.last -%}, {%- endif %}\n{%- endfor %}\n{%- if not loop.last %}\nunion all\n{% endif %}\n{%- endfor -%}\n\n{%- if (rows | length) == 0 -%}\n select\n {%- for column_name, column_value in default_row.items() %} {{ column_value }} as {{ column_name_to_quoted[column_name] }}{% if not loop.last -%},{%- endif %}\n {%- endfor %}\n limit 0\n{%- endif -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.load_relation", "macro.dbt.safe_cast", "macro.dbt.validate_fixture_rows", "macro.dbt.format_row"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.4704792, "supported_languages": null}, "macro.dbt.get_expected_sql": {"name": "get_expected_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/unit_test_sql/get_fixture_sql.sql", "original_file_path": "macros/unit_test_sql/get_fixture_sql.sql", "unique_id": "macro.dbt.get_expected_sql", "macro_sql": "{% macro get_expected_sql(rows, column_name_to_data_types, column_name_to_quoted) %}\n\n{%- if (rows | length) == 0 -%}\n select * from dbt_internal_unit_test_actual\n limit 0\n{%- else -%}\n{%- for row in rows -%}\n{%- set formatted_row = format_row(row, column_name_to_data_types) -%}\nselect\n{%- for column_name, column_value in formatted_row.items() %} {{ column_value }} as {{ column_name_to_quoted[column_name] }}{% if not loop.last -%}, {%- endif %}\n{%- endfor %}\n{%- if not loop.last %}\nunion all\n{% endif %}\n{%- endfor -%}\n{%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.format_row"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.4717245, "supported_languages": null}, "macro.dbt.format_row": {"name": "format_row", "resource_type": "macro", "package_name": "dbt", "path": "macros/unit_test_sql/get_fixture_sql.sql", "original_file_path": "macros/unit_test_sql/get_fixture_sql.sql", "unique_id": "macro.dbt.format_row", "macro_sql": "\n\n{%- macro format_row(row, column_name_to_data_types) -%}\n {#-- generate case-insensitive formatted row --#}\n {% set formatted_row = {} %}\n {%- for column_name, column_value in row.items() -%}\n {% set column_name = column_name|lower %}\n\n {%- if column_name not in column_name_to_data_types %}\n {#-- if user-provided row contains column name that relation does not contain, raise an error --#}\n {% set fixture_name = \"expected output\" if model.resource_type == 'unit_test' else (\"'\" ~ model.name ~ \"'\") %}\n {{ exceptions.raise_compiler_error(\n \"Invalid column name: '\" ~ column_name ~ \"' in unit test fixture for \" ~ fixture_name ~ \".\"\n \"\\nAccepted columns for \" ~ fixture_name ~ \" are: \" ~ (column_name_to_data_types.keys()|list)\n ) }}\n {%- endif -%}\n\n {%- set column_type = column_name_to_data_types[column_name] %}\n\n {#-- For string fixture values, strip varchar length to prevent silent truncation (GH-11974) --#}\n {%- if column_value is string and 'varying' in column_type -%}\n {%- set column_type = column_type.split('(')[0] -%}\n {%- endif -%}\n\n {#-- sanitize column_value: wrap yaml strings in quotes, apply cast --#}\n {%- set column_value_clean = column_value -%}\n {%- if column_value is string -%}\n {%- set column_value_clean = dbt.string_literal(dbt.escape_single_quotes(column_value)) -%}\n {%- elif column_value is none -%}\n {%- set column_value_clean = 'null' -%}\n {%- endif -%}\n\n {%- set row_update = {column_name: safe_cast(column_value_clean, column_type) } -%}\n {%- do formatted_row.update(row_update) -%}\n {%- endfor -%}\n {{ return(formatted_row) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.string_literal", "macro.dbt.escape_single_quotes", "macro.dbt.safe_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.474233, "supported_languages": null}, "macro.dbt.validate_fixture_rows": {"name": "validate_fixture_rows", "resource_type": "macro", "package_name": "dbt", "path": "macros/unit_test_sql/get_fixture_sql.sql", "original_file_path": "macros/unit_test_sql/get_fixture_sql.sql", "unique_id": "macro.dbt.validate_fixture_rows", "macro_sql": "{%- macro validate_fixture_rows(rows, row_number) -%}\n {{ return(adapter.dispatch('validate_fixture_rows', 'dbt')(rows, row_number)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__validate_fixture_rows"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.4746556, "supported_languages": null}, "macro.dbt.default__validate_fixture_rows": {"name": "default__validate_fixture_rows", "resource_type": "macro", "package_name": "dbt", "path": "macros/unit_test_sql/get_fixture_sql.sql", "original_file_path": "macros/unit_test_sql/get_fixture_sql.sql", "unique_id": "macro.dbt.default__validate_fixture_rows", "macro_sql": "{%- macro default__validate_fixture_rows(rows, row_number) -%}\n {# This is an abstract method for adapter overrides as needed #}\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.4748526, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.4757063, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.476217, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.4770346, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.477635, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.4789197, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.4864604, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.4878623, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.5025039, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.5038455, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.5143898, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.5160098, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.5172155, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.519452, "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\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"country_personal_information_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"ethnicity_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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.5207293, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.5228167, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.528071, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.529709, "supported_languages": null}, "macro.workday.get_personal_information_common_data_columns": {"name": "get_personal_information_common_data_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_personal_information_common_data_columns.sql", "original_file_path": "macros/get_personal_information_common_data_columns.sql", "unique_id": "macro.workday.get_personal_information_common_data_columns", "macro_sql": "{% macro get_personal_information_common_data_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"fivetran_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"worker_id\", \"datatype\": dbt.type_string()},\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\": \"country_region_of_birth\", \"datatype\": dbt.type_string()},\n {\"name\": \"date_of_birth\", \"datatype\": \"date\"},\n {\"name\": \"date_of_death\", \"datatype\": \"date\"},\n {\"name\": \"last_medical_exam_date\", \"datatype\": \"date\"},\n {\"name\": \"last_medical_exam_valid_to\", \"datatype\": \"date\"},\n {\"name\": \"medical_exam_notes\", \"datatype\": dbt.type_string()},\n {\"name\": \"primary_nationality\", \"datatype\": dbt.type_string()},\n {\"name\": \"region_of_birth\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_boolean", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.5331094, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.5344255, "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\": \"personal_info_common_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discharge_date\", \"datatype\": \"date\"},\n {\"name\": \"discharge_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"notes\", \"datatype\": dbt.type_string()},\n {\"name\": \"rank\", \"datatype\": dbt.type_string()},\n {\"name\": \"service\", \"datatype\": dbt.type_string()},\n {\"name\": \"status_id\", \"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_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.536483, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.5423865, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.548105, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.5492253, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.553743, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.555364, "supported_languages": null}, "macro.workday.get_country_personal_information_columns": {"name": "get_country_personal_information_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_country_personal_information_columns.sql", "original_file_path": "macros/get_country_personal_information_columns.sql", "unique_id": "macro.workday.get_country_personal_information_columns", "macro_sql": "{% macro get_country_personal_information_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"fivetran_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"personal_info_common_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"country_code\", \"datatype\": dbt.type_string()},\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_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"hukou_subregion_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"hukou_type_code\", \"datatype\": dbt.type_string()},\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\": \"native_region_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"native_region\", \"datatype\": dbt.type_string()},\n {\"name\": \"personnel_file_agency_for_person\", \"datatype\": dbt.type_string()},\n {\"name\": \"political_affiliation\", \"datatype\": dbt.type_string()},\n {\"name\": \"religion\", \"datatype\": dbt.type_string()},\n {\"name\": \"social_benefits_locality\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_boolean", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.5592003, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.5656717, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.566344, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.5674107, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.5682027, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.5697043, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.5702999, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.5709534, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.5720077, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.5724447, "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 select *\n from {{ relation }} as tt\n qualify\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) = 1\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.5727746, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.573169, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.57351, "supported_languages": null}, "macro.dbt_utils.databricks__deduplicate": {"name": "databricks__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.databricks__deduplicate", "macro_sql": "\n{%- macro databricks__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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.5738542, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.5742245, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.5749388, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.5756154, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.5764477, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.5772676, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.577635, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.5786579, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.5792294, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.5795023, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.5801628, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.5813117, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.58222, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.5838344, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.5844402, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.5850966, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.5858479, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.5873976, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.5881195, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.5893595, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.5902908, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.5914502, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.5918937, "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 generated_number) - 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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.5926151, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.593511, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.5951447, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.5971174, "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.render()) }} as {{ dbt.type_string() }}) as {{ source_column_name }},\n {%- endif %}\n\n /* No columns from any of the relations.\n This star is only output during dbt compile, and exists to keep SQLFluff happy. */\n {% if dbt_command == 'compile' and ordered_column_names|length == 0 %}\n *\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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.6039517, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.605552, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.6063397, "supported_languages": null}, "macro.dbt_utils.redshift__get_tables_by_pattern_sql": {"name": "redshift__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.redshift__get_tables_by_pattern_sql", "macro_sql": "{% macro redshift__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {% set sql %}\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 union all\n select distinct\n schemaname as {{ adapter.quote('table_schema') }},\n tablename as {{ adapter.quote('table_name') }},\n 'external' as {{ adapter.quote('table_type') }}\n from svv_external_tables\n where redshift_database_name = '{{ database }}'\n and schemaname ilike '{{ schema_pattern }}'\n and table_name ilike '{{ table_pattern }}'\n and table_name not ilike '{{ exclude }}'\n {% endset %}\n\n {{ return(sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.6076536, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.609045, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.6100368, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.6105971, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.6110964, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.6116962, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.6119788, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.612274, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.612545, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.6133945, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.6139274, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.6151474, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.61675, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.6174078, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.618475, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.6198213, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.6227787, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.6236408, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.624567, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.624959, "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, unquote_aliases=False, rename={}) -%}\r\n {{ return(adapter.dispatch('star', 'dbt_utils')(from, relation_alias, except, prefix, suffix, quote_identifiers, unquote_aliases, rename)) }}\r\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__star"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.6265695, "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, unquote_aliases=False, rename={}) -%}\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 }}\r\n {%- if col in rename %} as {{ rename[col] }}\r\n {%- elif unquote_aliases %} as {{ (prefix ~ col ~ suffix)|trim }}\r\n {%- elif prefix!='' or suffix!='' %} as {{ adapter.quote(prefix ~ col ~ suffix)|trim }}\r\n {%- endif -%}\r\n {%- else -%}\r\n {{ col|trim }}\r\n {%- if col in rename %} as {{ rename[col] }}\r\n {%- elif prefix!='' or suffix!='' %} as {{ (prefix ~ col ~ suffix)|trim }}\r\n {%- 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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.6299362, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.631492, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.6331453, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.6337984, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.6342776, "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', quote_identifiers=False) -%}\n {{ return(adapter.dispatch('unpivot', 'dbt_utils')(relation, cast_to, exclude, remove, field_name, value_name, quote_identifiers)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__unpivot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.6357105, "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', quote_identifiers=False) -%}\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 {%- set current_col_name = adapter.quote(col.column) if quote_identifiers else col.column -%}\n select\n {%- for exclude_col in exclude %}\n {{ adapter.quote(exclude_col) if quote_identifiers else exclude_col }},\n {%- endfor %}\n\n cast('{{ col.column }}' as {{ dbt.type_string() }}) as {{ adapter.quote(field_name) if quote_identifiers else field_name }},\n cast( {% if col.data_type == 'boolean' %}\n {{ dbt.cast_bool_to_text(current_col_name) }}\n {% else %}\n {{ current_col_name }}\n {% endif %}\n as {{ cast_to }}) as {{ adapter.quote(value_name) if quote_identifiers else 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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.6393743, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.6402693, "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 {{ dbt.type_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": ["macro.dbt.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.641912, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.642823, "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 {% if group_by_columns|length() == 0 %}\n where {{ column_name }} is not null\n limit 1\n {% endif %}\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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.6444995, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.6460092, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.6490548, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.649794, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.6505275, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.6513183, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.6520627, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.6529546, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.6536388, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.654689, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.6566546, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.6577504, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.6598263, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.6605597, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.6611595, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.661872, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.6625583, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.663584, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.6654725, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.6664832, "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 or most_recent is null\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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.6680923, "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, exclude_columns=None, precision = None) %}\n {{ return(adapter.dispatch('test_equality', 'dbt_utils')(model, compare_model, compare_columns, exclude_columns, precision)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_equality"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.670255, "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, exclude_columns=None, precision = None) %}\n\n{%- if compare_columns and exclude_columns -%}\n {{ exceptions.raise_compiler_error(\"Both a compare and an ignore list were provided to the `equality` macro. Only one is allowed\") }}\n{%- endif -%}\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\n\n-- setup\n{%- do dbt_utils._is_relation(model, 'test_equality') -%}\n\n{# Ensure there are no extra columns in the compare_model vs model #}\n{%- if not compare_columns -%}\n {%- do dbt_utils._is_ephemeral(model, 'test_equality') -%}\n {%- do dbt_utils._is_ephemeral(compare_model, 'test_equality') -%}\n\n {%- set model_columns = adapter.get_columns_in_relation(model) -%}\n {%- set compare_model_columns = adapter.get_columns_in_relation(compare_model) -%}\n\n\n {%- if exclude_columns -%}\n {#-- Lower case ignore columns for easier comparison --#}\n {%- set exclude_columns = exclude_columns | map(\"lower\") | list %}\n\n {# Filter out the excluded columns #}\n {%- set include_columns = [] %}\n {%- set include_model_columns = [] %}\n {%- for column in model_columns -%}\n {%- if column.name | lower not in exclude_columns -%}\n {% do include_columns.append(column) %}\n {%- endif %}\n {%- endfor %}\n {%- for column in compare_model_columns -%}\n {%- if column.name | lower not in exclude_columns -%}\n {% do include_model_columns.append(column) %}\n {%- endif %}\n {%- endfor %}\n\n {%- set compare_columns_set = set(include_columns | map(attribute='quoted') | map(\"lower\")) %}\n {%- set compare_model_columns_set = set(include_model_columns | map(attribute='quoted') | map(\"lower\")) %}\n {%- else -%}\n {%- set compare_columns_set = set(model_columns | map(attribute='quoted') | map(\"lower\")) %}\n {%- set compare_model_columns_set = set(compare_model_columns | map(attribute='quoted') | map(\"lower\")) %}\n {%- endif -%}\n\n {% if compare_columns_set != compare_model_columns_set %}\n {{ exceptions.raise_compiler_error(compare_model ~\" has less columns than \" ~ model ~ \", please ensure they have the same columns or use the `compare_columns` or `exclude_columns` arguments to subset them.\") }}\n {% endif %}\n\n\n{% endif %}\n\n{%- if not precision -%}\n {%- if not compare_columns -%}\n {# \n You cannot get the columns in an ephemeral model (due to not existing in the information schema),\n so if the user does not provide an explicit list of columns we must error in the case it is ephemeral\n #}\n {%- do dbt_utils._is_ephemeral(model, 'test_equality') -%}\n {%- set compare_columns = adapter.get_columns_in_relation(model)-%}\n\n {%- if exclude_columns -%}\n {#-- Lower case ignore columns for easier comparison --#}\n {%- set exclude_columns = exclude_columns | map(\"lower\") | list %}\n\n {# Filter out the excluded columns #}\n {%- set include_columns = [] %}\n {%- for column in compare_columns -%}\n {%- if column.name | lower not in exclude_columns -%}\n {% do include_columns.append(column) %}\n {%- endif %}\n {%- endfor %}\n\n {%- set compare_columns = include_columns | map(attribute='quoted') %}\n {%- else -%} {# Compare columns provided #}\n {%- set compare_columns = compare_columns | map(attribute='quoted') %}\n {%- endif -%}\n {%- endif -%}\n\n {% set compare_cols_csv = compare_columns | join(', ') %}\n\n{% else %} {# Precision required #}\n {#-\n If rounding is required, we need to get the types, so it cannot be ephemeral even if they provide column names\n -#}\n {%- do dbt_utils._is_ephemeral(model, 'test_equality') -%}\n {%- set columns = adapter.get_columns_in_relation(model) -%}\n\n {% set columns_list = [] %}\n {%- for col in columns -%}\n {%- if (\n (col.name|lower in compare_columns|map('lower') or not compare_columns) and\n (col.name|lower not in exclude_columns|map('lower') or not exclude_columns)\n ) -%}\n {# Databricks double type is not picked up by any number type checks in dbt #}\n {%- if col.is_float() or col.is_numeric() or col.data_type == 'double' -%}\n {# Cast is required due to postgres not having round for a double precision number #}\n {%- do columns_list.append('round(cast(' ~ col.quoted ~ ' as ' ~ dbt.type_numeric() ~ '),' ~ precision ~ ') as ' ~ col.quoted) -%}\n {%- else -%} {# Non-numeric type #}\n {%- do columns_list.append(col.quoted) -%}\n {%- endif -%}\n {% endif %}\n {%- endfor -%}\n\n {% set compare_cols_csv = columns_list | join(', ') %}\n\n{% endif %}\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.type_numeric", "macro.dbt.except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.6778033, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.67866, "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 {% do 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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.6798918, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.6807983, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.6817198, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.6824832, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.683382, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.68401, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.6852474, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.6858077, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.6867065, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.6872978, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.687905, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.6884458, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.6888177, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.6893167, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.6897483, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.6911433, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.691651, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.6919696, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.6928208, "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{% if not string %}\n{{ return('') }}\n{% endif %}\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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.6942449, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.6952069, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.695494, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.696039, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.696613, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.6968744, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.6971653, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.6974385, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.6976957, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.7032852, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.7039835, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.7054489, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.7061703, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.7070508, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.7093964, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.7101457, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.7109027, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.71124, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.711549, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.7119148, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.7122548, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.7125578, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.7133155, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.7155452, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.7245934, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.7254288, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.7261007, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.7263813, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.726652, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.7269192, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.7272153, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.7277098, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.7279227, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.7281551, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.7287219, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.7290154, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.7294297, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.730398, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.730749, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.7324467, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.732962, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.733793, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.734151, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.734486, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.7348175, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.7351284, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.7354567, "supported_languages": null}, "macro.fivetran_utils.union_relations_custom": {"name": "union_relations_custom", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_relations_custom.sql", "original_file_path": "macros/union_relations_custom.sql", "unique_id": "macro.fivetran_utils.union_relations_custom", "macro_sql": "{%- macro union_relations_custom(relations, aliases=none, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation', where=none) -%}\n {{ return(adapter.dispatch('union_relations_custom', 'fivetran_utils')(relations, aliases, column_override, include, exclude, source_column_name, where)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__union_relations_custom"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.7375412, "supported_languages": null}, "macro.fivetran_utils.default__union_relations_custom": {"name": "default__union_relations_custom", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_relations_custom.sql", "original_file_path": "macros/union_relations_custom.sql", "unique_id": "macro.fivetran_utils.default__union_relations_custom", "macro_sql": "\n\n{%- macro default__union_relations_custom(relations, aliases=none, 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_custom') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'union_relations_custom') -%}\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 {# dbt_utils union_relations includes the table in the source_relation. For Fivetran dbt package purposes the table should not be included in the source relation. #}\n cast({{ dbt.string_literal(relation.database ~ '.' ~ relation.schema) }} 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 {# This alias is a change from dbt_utils union_relations code. Avoids errors if the table is named a reserved keyword #}\n from {{ aliases[loop.index0] if aliases else relation }} as unioned_relation_{{ loop.index }}\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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.7444232, "supported_languages": null}, "macro.fivetran_utils.apply_source_relation": {"name": "apply_source_relation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/apply_source_relation.sql", "original_file_path": "macros/apply_source_relation.sql", "unique_id": "macro.fivetran_utils.apply_source_relation", "macro_sql": "{% macro apply_source_relation(package_name, use_package_prefix=true) -%}\n\n{{ adapter.dispatch('apply_source_relation', 'fivetran_utils') (package_name, use_package_prefix) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__apply_source_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.7452817, "supported_languages": null}, "macro.fivetran_utils.default__apply_source_relation": {"name": "default__apply_source_relation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/apply_source_relation.sql", "original_file_path": "macros/apply_source_relation.sql", "unique_id": "macro.fivetran_utils.default__apply_source_relation", "macro_sql": "{% macro default__apply_source_relation(package_name, use_package_prefix=true) -%}\n\n{% set sources_var = package_name ~ '_sources' %}\n{% set database_var = package_name ~ '_database' %}\n{% set schema_var = package_name ~ '_schema' %}\n\n{% if use_package_prefix %}\n {% set union_schemas_var = package_name ~ '_union_schemas' %}\n {% set union_databases_var = package_name ~ '_union_databases' %}\n{% else %}\n {% set union_schemas_var = 'union_schemas' %}\n {% set union_databases_var = 'union_databases' %}\n{% endif %}\n\n{% if var(sources_var, []) | length > 0 %}\n, _dbt_source_relation as source_relation\n{% elif var(union_schemas_var, []) | length > 0 or var(union_databases_var, []) | length > 0 %}\n{{ fivetran_utils.source_relation(union_schema_variable=union_schemas_var, union_database_variable=union_databases_var) }}\n{% else %}\n{% set database = var(database_var, target.database) %}\n{% set schema = var(schema_var, package_name) %}\n, cast('{{ database ~ \".\" ~ schema }}' as {{ dbt.type_string() }}) as source_relation\n{% endif %}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.source_relation", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.747388, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.748139, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.7492592, "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{%- set using_source_casing = var('fivetran_using_source_casing', false) -%}\n\n{%- for column in staging_columns %}\n {%- if column.name|lower in source_column_names %}\n {%- if using_source_casing %}\n {%- set column_alias = column.alias if 'alias' in column else column.name %}\n {{ adapter.quote(column.name) }} as {{ adapter.quote(column_alias|upper if target.type == 'snowflake' else column_alias) }}\n {%- else %}\n {{ fivetran_utils.quote_column(column) }} as\n {%- if 'alias' in column %} {{ column.alias }}{% else %} {{ fivetran_utils.quote_column(column) }}{% endif %}\n {%- endif %}\n {%- else %}\n cast(null as {{ column.datatype }}) as\n {%- if 'alias' in column %} {{ column.alias }}{% else %} {{ fivetran_utils.quote_column(column) }}{% endif %}\n {%- endif %}{{ ',' if not loop.last }}\n{%- endfor %}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.quote_column"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.752145, "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 %}{{ column.name }}\n {%- endif %}\n {%- else %}{{ column.name }}\n {%- endif %}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.7531931, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.753949, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.7543852, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.754827, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.755321, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.755537, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.7557437, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.7568712, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.7573903, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.7579904, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.7586586, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.7593963, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.760192, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.7609787, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.7616935, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.7653155, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.7662456, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.7665913, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.7668357, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.7671895, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.7674892, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.7703738, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.7724414, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.7729354, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.7734346, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.773908, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.7774155, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.7779813, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.7782316, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.7784474, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.7786586, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.779966, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.7810473, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.7822213, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.7829778, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.7833333, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.7836628, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.783993, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.7843394, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.7846878, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.7854443, "supported_languages": null}, "macro.fivetran_utils.union_connections": {"name": "union_connections", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_connections.sql", "original_file_path": "macros/union_connections.sql", "unique_id": "macro.fivetran_utils.union_connections", "macro_sql": "{% macro union_connections(connection_dictionary, single_source_name, single_table_name, default_identifier=single_table_name) %}\n\n{{ adapter.dispatch('union_connections', 'fivetran_utils') (connection_dictionary, single_source_name, single_table_name, default_identifier) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__union_connections"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.7868662, "supported_languages": null}, "macro.fivetran_utils.default__union_connections": {"name": "default__union_connections", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_connections.sql", "original_file_path": "macros/union_connections.sql", "unique_id": "macro.fivetran_utils.default__union_connections", "macro_sql": "{% macro default__union_connections(connection_dictionary, single_source_name, single_table_name, default_identifier=single_table_name) %}\n\n{%- set exception_warning = \"\\n\\nPlease be aware: The \" ~ single_source_name|upper ~ \".\" ~ single_table_name|upper ~ \" table was not found in your schema(s). The Fivetran Data Model will create a completely empty 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_connections-source for details).\\n\"%}\n{%- set using_empty_table_warnings = (execute and not var('fivetran__remove_empty_table_warnings', false)) %}\n{%- set connections = var(connection_dictionary, []) %}\n{%- set using_unioning = connections | length > 0 %}\n{%- set identifier_var = single_source_name + \"_\" + single_table_name + \"_identifier\" %}\n\n{%- if using_unioning %}\n{# For unioning #}\n {%- set relations = [] -%}\n {%- for connection in connections -%}\n\n {% if var('has_defined_sources', false) %}\n {%- set database = source(connection.name, single_table_name).database %}\n {%- set schema = source(connection.name, single_table_name).schema %}\n {%- set identifier = source(connection.name, single_table_name).identifier %}\n {%- else %}\n {%- set database = connection.database if connection.database else target.database %}\n {%- set schema = connection.schema if connection.schema else single_source_name %}\n {%- set identifier = var(identifier_var, default_identifier) %}\n {%- endif %}\n \n {%- set relation=adapter.get_relation(\n database=database,\n schema=schema,\n identifier=identifier\n )\n -%}\n\n {%- if relation is not none -%}\n {%- do relations.append(relation) -%}\n {%- endif -%}\n\n -- ** Values passed to adapter.get_relation:\n {{ '-- database: ' ~ database }}\n {{ '-- schema: ' ~ schema }}\n {{ '-- identifier: ' ~ identifier ~ '\\n' }}\n\n {%- endfor -%}\n\n {%- if relations | length > 0 -%}\n {{ fivetran_utils.union_relations_custom(relations, source_column_name='_dbt_source_relation') }}\n\n {%- else -%}\n {{ exceptions.warn(exception_warning) if using_empty_table_warnings }}\n\n select\n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit {{ '0' if target.type != 'redshift' else '1' }}\n {%- endif -%}\n\n{% else %}\n{# Not unioning #}\n\n {%- set database = source(single_source_name, single_table_name).database %}\n {%- set schema = source(single_source_name, single_table_name).schema %}\n {%- set identifier = var(identifier_var, default_identifier) %}\n\n {%- set relation=adapter.get_relation(\n database=database,\n schema=schema,\n identifier=identifier\n )\n -%}\n\n -- ** Values passed to adapter.get_relation:\n {{ '-- full-identifier_var: ' ~ identifier_var }}\n {{ '-- database: ' ~ database }} \n {{ '-- schema: ' ~ schema }}\n {{ '-- identifier: ' ~ identifier ~ '\\n' }}\n\n {% if relation is not none -%}\n select\n {{ dbt_utils.star(from=source(single_source_name, single_table_name)) }}\n from {{ source(single_source_name, single_table_name) }} as source_table\n\n {% else %}\n {{ exceptions.warn(exception_warning) if using_empty_table_warnings }}\n\n select\n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit {{ '0' if target.type != 'redshift' else '1' }}\n {%- endif -%}\n{% endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.union_relations_custom", "macro.dbt.type_string", "macro.dbt_utils.star"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.7922962, "supported_languages": null}, "macro.fivetran_utils.partition_by_source_relation": {"name": "partition_by_source_relation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/partition_by_source_relation.sql", "original_file_path": "macros/partition_by_source_relation.sql", "unique_id": "macro.fivetran_utils.partition_by_source_relation", "macro_sql": "{% macro partition_by_source_relation(package_name, has_other_partitions='yes', alias=None, package_prefix_union_variable=true) %}\n {{ return(adapter.dispatch('partition_by_source_relation', 'fivetran_utils')(package_name, has_other_partitions, alias, package_prefix_union_variable)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__partition_by_source_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.7933192, "supported_languages": null}, "macro.fivetran_utils.default__partition_by_source_relation": {"name": "default__partition_by_source_relation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/partition_by_source_relation.sql", "original_file_path": "macros/partition_by_source_relation.sql", "unique_id": "macro.fivetran_utils.default__partition_by_source_relation", "macro_sql": "{% macro default__partition_by_source_relation(package_name, has_other_partitions='yes', alias=None, package_prefix_union_variable=true) -%}\n\n{%- if package_prefix_union_variable %}\n {%- set union_schemas_var = package_name ~ '_union_schemas' -%}\n {%- set union_databases_var = package_name ~ '_union_databases' -%}\n{%- else %}\n {%- set union_schemas_var = 'union_schemas' -%}\n {%- set union_databases_var = 'union_databases' -%}\n{%- endif -%}\n\n{%- set is_unioning = var(union_schemas_var, [])|length > 1 or var(union_databases_var, [])|length > 1 or var(package_name ~ '_sources', [])|length > 1 -%}\n{%- set prefix = '' if alias is none else alias ~ '.' -%}\n\n{%- if has_other_partitions == 'no' -%}\n {{- 'partition by ' ~ prefix ~ 'source_relation' if is_unioning else '' -}}\n{%- else -%}\n {{- ', ' ~ prefix ~ 'source_relation' if is_unioning else '' -}}\n{%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.7950482, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.796278, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.7971013, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1782422564.799, "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.discharge_type": {"name": "discharge_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.discharge_type", "block_contents": "Type of military discharge."}, "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_info_common_id": {"name": "personal_info_common_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.personal_info_common_id", "block_contents": "Personal information common data ID linking to worker."}, "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.). Now always null and maintained for backwards compatibility only."}, "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."}, "doc.workday.country_personal_information_id": {"name": "country_personal_information_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.country_personal_information_id", "block_contents": "Country personal information ID linking to worker."}, "doc.workday.country_code": {"name": "country_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.country_code", "block_contents": "Country code for country-specific information."}, "doc.workday.country_region_of_birth": {"name": "country_region_of_birth", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.country_region_of_birth", "block_contents": "Country region of birth code (renamed from legacy `region_of_birth_code` in v42.2 API)."}, "doc.workday.fivetran_id": {"name": "fivetran_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.fivetran_id", "block_contents": "Fivetran composite key identifier."}, "doc.workday.hukou_region_code": {"name": "hukou_region_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hukou_region_code", "block_contents": "Hukou region code (China-specific, renamed from legacy `hukou_region` in v42.2 API)."}, "doc.workday.hukou_subregion_code": {"name": "hukou_subregion_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hukou_subregion_code", "block_contents": "Hukou subregion code (China-specific, renamed from legacy `hukou_subregion` in v42.2 API)."}, "doc.workday.hukou_type_code": {"name": "hukou_type_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hukou_type_code", "block_contents": "Hukou type code (China-specific, renamed from legacy `hukou_type` in v42.2 API)."}, "doc.workday.military_service_incoming": {"name": "military_service_incoming", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.military_service_incoming", "block_contents": "Table containing military service records including rank, service information, and veteran status. This table is for existing customers to leverage between January 5 and April 6, 2026 until transitioned over to `military_service`. This will be removed after April 6."}, "doc.workday.military_service_legacy": {"name": "military_service_legacy", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.military_service_legacy", "block_contents": "Legacy Workday military service table. This source is for testing purposes only. The package does not support the legacy schema - all models use new schema with legacy fields cast to null for backward compatibility. This table will be deprecated and removed after April 6."}, "doc.workday.military_status_id": {"name": "military_status_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.military_status_id", "block_contents": "Military status identifier."}, "doc.workday.personnel_file_agency_for_person": {"name": "personnel_file_agency_for_person", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.personnel_file_agency_for_person", "block_contents": "Personnel file agency for person (renamed from legacy `personnel_file_agency` in v42.2 API)."}, "doc.workday.personal_information_common_data": {"name": "personal_information_common_data", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.personal_information_common_data", "block_contents": "Table containing universal personal information attributes including date of birth, death records, nationality, citizenship status, birth location, and medical exam data."}, "doc.workday.personal_information_ethnicity_incoming": {"name": "personal_information_ethnicity_incoming", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.personal_information_ethnicity_incoming", "block_contents": "Table containing worker ethnicity information for diversity tracking and compliance reporting. **NOTE** This table is for existing customers to leverage between January 5 and April 6, 2026 until transitioned over to `personal_information_ethnicity`."}, "doc.workday.personal_information_ethnicity_legacy": {"name": "personal_information_ethnicity_legacy", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.personal_information_ethnicity_legacy", "block_contents": "Legacy Workday personal information ethnicity table. This source is for testing purposes only. The package does not support the legacy schema - all models use v42.2 API schema with legacy fields cast to null for backward compatibility. This will be removed after April 6."}, "doc.workday.country_personal_information": {"name": "country_personal_information", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.country_personal_information", "block_contents": "Table containing country-specific personal information attributes including gender, marital status, and region-specific data."}, "doc.workday.social_benefits_locality": {"name": "social_benefits_locality", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.social_benefits_locality", "block_contents": "Social benefits locality."}, "doc.workday.social_benefit_information": {"name": "social_benefit_information", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.social_benefit_information", "block_contents": "Social benefit information."}, "doc.workday.index_backward_compatibility": {"name": "index_backward_compatibility", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.index_backward_compatibility", "block_contents": "An index for a particular identifier. This field is now always null after recent schema updates, and is maintained for backwards compatibility only."}}, "exposures": {}, "metrics": {}, "groups": {}, "selectors": {}, "disabled": {"test.workday_integration_tests.integrity_employee_count": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "integrity_employee_count", "resource_type": "test", "package_name": "workday_integration_tests", "path": "integrity/integrity_employee_count.sql", "original_file_path": "tests/integrity/integrity_employee_count.sql", "unique_id": "test.workday_integration_tests.integrity_employee_count", "fqn": ["workday_integration_tests", "integrity", "integrity_employee_count"], "alias": "integrity_employee_count", "checksum": {"name": "sha256", "checksum": "ec4fbb5a7b9af454771344a250c815d60d174784e1e7a6f5548115e8d13f682c"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1782422565.6189137, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false) and var('employee_history_enabled', false)\n) }}\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\nemployee_daily_history as (\n\n select *\n from {{ ref('workday__employee_daily_history') }}\n),\n\nemployee_source as (\n\n select\n worker_history.worker_id,\n worker_history.source_relation,\n worker_position_history.position_id,\n worker_position_history.position_start_date\n from worker_history \n left join worker_position_history \n on worker_history.worker_id = worker_position_history.worker_id\n and worker_history.source_relation = worker_position_history.source_relation\n and worker_history._fivetran_start <= worker_position_history._fivetran_end\n and worker_history._fivetran_end >= worker_position_history._fivetran_start\n group by 1, 2, 3, 4 \n --to segment out workers who did not have a start date prior to the spine cutoff\n having cast(max(worker_history._fivetran_end) as date) >= cast('{{ var('employee_history_start_date','2025-03-01') }}' as date) \n),\n\nemployee_end as (\n\n select \n employee_id\n from employee_daily_history \n group by 1\n),\n\nsource_count as (\n select \n 1 as join_key,\n count(*) as total_employee_source\n from employee_source\n group by 1\n),\n\nend_count as (\n select \n 1 as join_key,\n count(*) as total_employee_end\n from employee_end\n group by 1\n),\n\nfinal as (\n select\n total_employee_source,\n total_employee_end\n from source_count\n full outer join end_count\n on source_count.join_key = end_count.join_key\n)\n\nselect *\nfrom final\nwhere total_employee_source != total_employee_end", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_workday__worker_history", "package": null, "version": null}, {"name": "stg_workday__worker_position_history", "package": null, "version": null}, {"name": "workday__employee_daily_history", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.workday_integration_tests.consistency_monthly_summary_count": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_monthly_summary_count", "resource_type": "test", "package_name": "workday_integration_tests", "path": "consistency/consistency_monthly_summary_count.sql", "original_file_path": "tests/consistency/consistency_monthly_summary_count.sql", "unique_id": "test.workday_integration_tests.consistency_monthly_summary_count", "fqn": ["workday_integration_tests", "consistency", "consistency_monthly_summary_count"], "alias": "consistency_monthly_summary_count", "checksum": {"name": "sha256", "checksum": "8efac08f83235b271588c9bf751b096e4c6844998db962ebc1dba3c1677256b2"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1782422565.6525025, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false) and var('employee_history_enabled', false)\n) }}\n\nwith prod as (\n select \n 1 as join_key,\n count(*) as total_prod_pr_count\n from {{ target.schema }}_workday_prod.workday__monthly_summary\n group by 1\n),\n\ndev as (\n select \n 1 as join_key,\n count(*) as total_dev_pr_count\n from {{ target.schema }}_workday_dev.workday__monthly_summary\n group by 1\n),\n\nfinal as (\n select\n total_prod_pr_count,\n total_dev_pr_count\n from prod\n full outer join dev\n on dev.join_key = prod.join_key\n)\n\nselect *\nfrom final\nwhere total_dev_pr_count != total_prod_pr_count", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "functions": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.workday_integration_tests.consistency_job_overview": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_job_overview", "resource_type": "test", "package_name": "workday_integration_tests", "path": "consistency/consistency_job_overview.sql", "original_file_path": "tests/consistency/consistency_job_overview.sql", "unique_id": "test.workday_integration_tests.consistency_job_overview", "fqn": ["workday_integration_tests", "consistency", "consistency_job_overview"], "alias": "consistency_job_overview", "checksum": {"name": "sha256", "checksum": "5132c3028f087edfc5e2a5ed7c2e5ab7bca857e8a63a61785b029ff5415c4cb5"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1782422565.6585467, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n select *\n from {{ target.schema }}_workday_prod.workday__job_overview\n),\n\ndev as (\n select *\n from {{ target.schema }}_workday_dev.workday__job_overview\n), \n\nprod_not_in_dev as (\n -- rows from prod not found in dev\n select * from prod\n except distinct\n select * from dev\n),\n\ndev_not_in_prod as (\n -- rows from dev not found in prod\n select * from dev\n except distinct\n select * from prod\n),\n\nfinal as (\n select\n *,\n 'from prod' as source\n from prod_not_in_dev\n\n union all -- union since we only care if rows are produced\n\n select\n *,\n 'from dev' as source\n from dev_not_in_prod\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "functions": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.workday_integration_tests.consistency_monthly_summary": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_monthly_summary", "resource_type": "test", "package_name": "workday_integration_tests", "path": "consistency/consistency_monthly_summary.sql", "original_file_path": "tests/consistency/consistency_monthly_summary.sql", "unique_id": "test.workday_integration_tests.consistency_monthly_summary", "fqn": ["workday_integration_tests", "consistency", "consistency_monthly_summary"], "alias": "consistency_monthly_summary", "checksum": {"name": "sha256", "checksum": "2eadd6186e43e0f5108003922c29831497e2920830eaa5ef59641b5206ad55fd"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1782422565.664157, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false) and var('employee_history_enabled', false)\n) }}\n\n-- this test ensures the workday__monthly_summary end model matches the prior version.\n-- for now we only look at non-active metrics since this PR is changing that logic\nwith prod as (\n select metrics_month,\n source_relation,\n new_employees,\n churned_employees,\n churned_voluntary_employees,\n churned_involuntary_employees,\n churned_workers\n from {{ target.schema }}_workday_prod.workday__monthly_summary \n),\n\ndev as (\n select metrics_month,\n source_relation,\n new_employees,\n churned_employees,\n churned_voluntary_employees,\n churned_involuntary_employees,\n churned_workers \n from {{ target.schema }}_workday_dev.workday__monthly_summary \n),\n\nprod_not_in_dev as (\n -- rows from prod not found in dev\n select * from prod\n except distinct\n select * from dev\n),\n\ndev_not_in_prod as (\n -- rows from dev not found in prod\n select * from dev\n except distinct\n select * from prod\n),\n\nfinal as (\n select\n *,\n 'from prod' as source\n from prod_not_in_dev\n\n union all -- union since we only care if rows are produced\n\n select\n *,\n 'from dev' as source\n from dev_not_in_prod\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "functions": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.workday_integration_tests.consistency_employee_overview": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_employee_overview", "resource_type": "test", "package_name": "workday_integration_tests", "path": "consistency/consistency_employee_overview.sql", "original_file_path": "tests/consistency/consistency_employee_overview.sql", "unique_id": "test.workday_integration_tests.consistency_employee_overview", "fqn": ["workday_integration_tests", "consistency", "consistency_employee_overview"], "alias": "consistency_employee_overview", "checksum": {"name": "sha256", "checksum": "5d286aa529b4884f5aaeee6c56a99cb91266dd36d36a4a584d2b3b5f719b8a59"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1782422565.6712003, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n select *\n from {{ target.schema }}_workday_prod.workday__employee_overview\n),\n\ndev as (\n select *\n from {{ target.schema }}_workday_dev.workday__employee_overview\n), \n\nprod_not_in_dev as (\n -- rows from prod not found in dev\n select * from prod\n except distinct\n select * from dev\n),\n\ndev_not_in_prod as (\n -- rows from dev not found in prod\n select * from dev\n except distinct\n select * from prod\n),\n\nfinal as (\n select\n *,\n 'from prod' as source\n from prod_not_in_dev\n\n union all -- union since we only care if rows are produced\n\n select\n *,\n 'from dev' as source\n from dev_not_in_prod\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "functions": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.workday_integration_tests.consistency_organization_overview": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_organization_overview", "resource_type": "test", "package_name": "workday_integration_tests", "path": "consistency/consistency_organization_overview.sql", "original_file_path": "tests/consistency/consistency_organization_overview.sql", "unique_id": "test.workday_integration_tests.consistency_organization_overview", "fqn": ["workday_integration_tests", "consistency", "consistency_organization_overview"], "alias": "consistency_organization_overview", "checksum": {"name": "sha256", "checksum": "ce2d70862dad9c9cfe4b19f5c1ef9370892f72e6977055915d1184e874838a15"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1782422565.6768715, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n select *\n from {{ target.schema }}_workday_prod.workday__organization_overview\n),\n\ndev as (\n select *\n from {{ target.schema }}_workday_dev.workday__organization_overview\n), \n\nprod_not_in_dev as (\n -- rows from prod not found in dev\n select * from prod\n except distinct\n select * from dev\n),\n\ndev_not_in_prod as (\n -- rows from dev not found in prod\n select * from dev\n except distinct\n select * from prod\n),\n\nfinal as (\n select\n *,\n 'from prod' as source\n from prod_not_in_dev\n\n union all -- union since we only care if rows are produced\n\n select\n *,\n 'from dev' as source\n from dev_not_in_prod\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "functions": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}], "test.workday_integration_tests.consistency_position_overview": [{"database": "postgres", "schema": "public_dbt_test__audit", "name": "consistency_position_overview", "resource_type": "test", "package_name": "workday_integration_tests", "path": "consistency/consistency_position_overview.sql", "original_file_path": "tests/consistency/consistency_position_overview.sql", "unique_id": "test.workday_integration_tests.consistency_position_overview", "fqn": ["workday_integration_tests", "consistency", "consistency_position_overview"], "alias": "consistency_position_overview", "checksum": {"name": "sha256", "checksum": "c72dd03a332f84e5ec50bdded082692791673360b578789dec53b59ecacad5d3"}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": ["fivetran_validations"], "meta": {}, "group": null, "static_analysis": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["fivetran_validations"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "unrendered_config": {"tags": "fivetran_validations", "enabled": false}, "created_at": 1782422565.682414, "relation_name": null, "raw_code": "{{ config(\n tags=\"fivetran_validations\",\n enabled=var('fivetran_validation_tests_enabled', false)\n) }}\n\nwith prod as (\n select *\n from {{ target.schema }}_workday_prod.workday__position_overview\n),\n\ndev as (\n select *\n from {{ target.schema }}_workday_dev.workday__position_overview\n), \n\nprod_not_in_dev as (\n -- rows from prod not found in dev\n select * from prod\n except distinct\n select * from dev\n),\n\ndev_not_in_prod as (\n -- rows from dev not found in prod\n select * from dev\n except distinct\n select * from prod\n),\n\nfinal as (\n select\n *,\n 'from prod' as source\n from prod_not_in_dev\n\n union all -- union since we only care if rows are produced\n\n select\n *,\n 'from dev' as source\n from dev_not_in_prod\n)\n\nselect *\nfrom final", "doc_blocks": [], "language": "sql", "refs": [], "sources": [], "metrics": [], "functions": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "alias_types": true, "checksum": null}}]}, "parent_map": {"seed.workday_integration_tests.workday_job_family_data": [], "seed.workday_integration_tests.workday_job_family_group_data": [], "seed.workday_integration_tests.workday_position_job_profile_data": [], "seed.workday_integration_tests.workday_organization_data": [], "seed.workday_integration_tests.workday_worker_leave_status_data": [], "seed.workday_integration_tests.workday_position_data": [], "seed.workday_integration_tests.workday_personal_information_ethnicity_data": [], "seed.workday_integration_tests.workday_worker_position_organization_history_data": [], "seed.workday_integration_tests.workday_organization_role_worker_data": [], "seed.workday_integration_tests.workday_job_family_job_profile_data": [], "seed.workday_integration_tests.workday_country_personal_information_data": [], "seed.workday_integration_tests.workday_worker_position_history_data": [], "seed.workday_integration_tests.workday_personal_information_history_data": [], "seed.workday_integration_tests.workday_job_family_job_family_group_data": [], "seed.workday_integration_tests.workday_position_organization_data": [], "seed.workday_integration_tests.workday_person_name_data": [], "seed.workday_integration_tests.workday_organization_job_family_data": [], "seed.workday_integration_tests.workday_personal_information_common_data_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_role_data": [], "seed.workday_integration_tests.workday_military_service_data": [], "seed.workday_integration_tests.workday_worker_history_data": [], "model.workday.workday__position_overview": ["model.workday.stg_workday__position", "model.workday.stg_workday__position_job_profile"], "model.workday.workday__employee_overview": ["model.workday.int_workday__worker_employee_enhanced"], "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.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__worker_position_org_daily_history": ["model.workday.stg_workday__worker_position_organization_base", "model.workday.stg_workday__worker_position_organization_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.stg_workday__worker_position_history": ["model.workday.stg_workday__worker_position_base"], "model.workday.stg_workday__worker_position_organization_history": ["model.workday.stg_workday__worker_position_organization_base"], "model.workday.stg_workday__personal_information_history": ["model.workday.stg_workday__personal_information_base"], "model.workday.stg_workday__worker_history": ["model.workday.stg_workday__worker_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.stg_workday__position": ["model.workday.stg_workday__position_base"], "model.workday.stg_workday__person_name": ["model.workday.stg_workday__person_name_base"], "model.workday.stg_workday__organization_job_family": ["model.workday.stg_workday__organization_job_family_base"], "model.workday.stg_workday__military_service": ["model.workday.stg_workday__military_service_base"], "model.workday.stg_workday__job_family_job_profile": ["model.workday.stg_workday__job_family_job_profile_base"], "model.workday.stg_workday__job_profile": ["model.workday.stg_workday__job_profile_base"], "model.workday.stg_workday__organization_role": ["model.workday.stg_workday__organization_role_base"], "model.workday.stg_workday__country_personal_information": ["model.workday.stg_workday__country_personal_information_base"], "model.workday.stg_workday__organization_role_worker": ["model.workday.stg_workday__organization_role_worker_base"], "model.workday.stg_workday__worker_position_organization": ["model.workday.stg_workday__worker_position_organization_base"], "model.workday.stg_workday__worker_leave_status": ["model.workday.stg_workday__worker_leave_status_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__job_family_group": ["model.workday.stg_workday__job_family_group_base"], "model.workday.stg_workday__position_job_profile": ["model.workday.stg_workday__position_job_profile_base"], "model.workday.stg_workday__worker_position": ["model.workday.stg_workday__worker_position_base"], "model.workday.stg_workday__personal_information_ethnicity": ["model.workday.stg_workday__personal_information_ethnicity_base"], "model.workday.stg_workday__personal_information_common_data": ["model.workday.stg_workday__personal_information_common_data_base"], "model.workday.stg_workday__person_contact_email_address": ["model.workday.stg_workday__person_contact_email_address_base"], "model.workday.stg_workday__job_family": ["model.workday.stg_workday__job_family_base"], "model.workday.stg_workday__position_organization": ["model.workday.stg_workday__position_organization_base"], "model.workday.stg_workday__organization": ["model.workday.stg_workday__organization_base"], "model.workday.stg_workday__worker_position_organization_base": ["source.workday.workday.worker_position_organization_history"], "model.workday.stg_workday__country_personal_information_base": ["source.workday.workday.country_personal_information"], "model.workday.stg_workday__position_organization_base": ["source.workday.workday.position_organization"], "model.workday.stg_workday__job_family_job_profile_base": ["source.workday.workday.job_family_job_profile"], "model.workday.stg_workday__organization_role_worker_base": ["source.workday.workday.organization_role_worker"], "model.workday.stg_workday__organization_base": ["source.workday.workday.organization"], "model.workday.stg_workday__worker_position_base": ["source.workday.workday.worker_position_history"], "model.workday.stg_workday__position_base": ["source.workday.workday.position"], "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__organization_role_base": ["source.workday.workday.organization_role"], "model.workday.stg_workday__worker_base": ["source.workday.workday.worker_history"], "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_job_family_base": ["source.workday.workday.organization_job_family"], "model.workday.stg_workday__position_job_profile_base": ["source.workday.workday.position_job_profile"], "model.workday.stg_workday__worker_leave_status_base": ["source.workday.workday.worker_leave_status"], "model.workday.stg_workday__military_service_base": ["source.workday.workday.military_service"], "model.workday.stg_workday__job_family_group_base": ["source.workday.workday.job_family_group"], "model.workday.stg_workday__personal_information_base": ["source.workday.workday.personal_information_history"], "model.workday.stg_workday__personal_information_common_data_base": ["source.workday.workday.personal_information_common_data"], "model.workday.stg_workday__person_name_base": ["source.workday.workday.person_name"], "model.workday.stg_workday__person_contact_email_address_base": ["source.workday.workday.person_contact_email_address"], "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__worker_position_enriched": ["model.workday.stg_workday__worker_position"], "model.workday.int_workday__personal_details": ["model.workday.stg_workday__country_personal_information", "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_common_data", "model.workday.stg_workday__personal_information_ethnicity"], "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.not_null_workday__position_overview_position_id.603beb3f22": ["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.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"], "test.workday.not_null_stg_workday__job_profile_job_profile_id.1166250eaa": ["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.not_null_stg_workday__job_family_job_family_id.0dbfcdcd3f": ["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.not_null_stg_workday__job_family_group_job_family_group_id.e25ebb9009": ["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.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.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.not_null_stg_workday__organization_organization_id.f11f86e5c7": ["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.not_null_stg_workday__position_position_id.8a8bc89d4e": ["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.not_null_stg_workday__worker_worker_id.8dae310560": ["model.workday.stg_workday__worker"], "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.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.not_null_stg_workday__personal_information_common_data_worker_id.deb68b6c56": ["model.workday.stg_workday__personal_information_common_data"], "test.workday.not_null_stg_workday__military_service_worker_id.a196487e38": ["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.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.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.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"], "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.personal_information_common_data": [], "source.workday.workday.country_personal_information": [], "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_data": [], "seed.workday_integration_tests.workday_job_family_group_data": [], "seed.workday_integration_tests.workday_position_job_profile_data": [], "seed.workday_integration_tests.workday_organization_data": [], "seed.workday_integration_tests.workday_worker_leave_status_data": [], "seed.workday_integration_tests.workday_position_data": [], "seed.workday_integration_tests.workday_personal_information_ethnicity_data": [], "seed.workday_integration_tests.workday_worker_position_organization_history_data": [], "seed.workday_integration_tests.workday_organization_role_worker_data": [], "seed.workday_integration_tests.workday_job_family_job_profile_data": [], "seed.workday_integration_tests.workday_country_personal_information_data": [], "seed.workday_integration_tests.workday_worker_position_history_data": [], "seed.workday_integration_tests.workday_personal_information_history_data": [], "seed.workday_integration_tests.workday_job_family_job_family_group_data": [], "seed.workday_integration_tests.workday_position_organization_data": [], "seed.workday_integration_tests.workday_person_name_data": [], "seed.workday_integration_tests.workday_organization_job_family_data": [], "seed.workday_integration_tests.workday_personal_information_common_data_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_role_data": [], "seed.workday_integration_tests.workday_military_service_data": [], "seed.workday_integration_tests.workday_worker_history_data": [], "model.workday.workday__position_overview": ["test.workday.not_null_workday__position_overview_position_id.603beb3f22"], "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__organization_overview": ["test.workday.not_null_workday__organization_overview_organization_id.5b1070ba31", "test.workday.not_null_workday__organization_overview_organization_role_id.a909dac412"], "model.workday.workday__job_overview": ["test.workday.not_null_workday__job_overview_job_profile_id.dc998c6857"], "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.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.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_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.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_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.int_workday__employee_history": ["model.workday.workday__employee_daily_history"], "model.workday.stg_workday__position": ["model.workday.workday__position_overview", "test.workday.not_null_stg_workday__position_position_id.8a8bc89d4e"], "model.workday.stg_workday__person_name": ["model.workday.int_workday__personal_details", "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__organization_job_family": ["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__military_service": ["model.workday.int_workday__personal_details", "test.workday.not_null_stg_workday__military_service_worker_id.a196487e38"], "model.workday.stg_workday__job_family_job_profile": ["model.workday.workday__job_overview", "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__job_profile": ["model.workday.workday__job_overview", "test.workday.not_null_stg_workday__job_profile_job_profile_id.1166250eaa"], "model.workday.stg_workday__organization_role": ["model.workday.workday__organization_overview", "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__country_personal_information": ["model.workday.int_workday__personal_details"], "model.workday.stg_workday__organization_role_worker": ["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__worker_position_organization": ["model.workday.workday__organization_overview", "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__worker_leave_status": ["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__job_family_job_family_group": ["model.workday.workday__job_overview", "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.not_null_stg_workday__worker_worker_id.8dae310560"], "model.workday.stg_workday__job_family_group": ["model.workday.workday__job_overview", "test.workday.not_null_stg_workday__job_family_group_job_family_group_id.e25ebb9009"], "model.workday.stg_workday__position_job_profile": ["model.workday.workday__position_overview", "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": ["model.workday.int_workday__worker_position_enriched", "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__personal_information_ethnicity": ["model.workday.int_workday__personal_details", "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__personal_information_common_data": ["model.workday.int_workday__personal_details", "test.workday.not_null_stg_workday__personal_information_common_data_worker_id.deb68b6c56"], "model.workday.stg_workday__person_contact_email_address": ["model.workday.int_workday__personal_details", "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__job_family": ["model.workday.workday__job_overview", "test.workday.not_null_stg_workday__job_family_job_family_id.0dbfcdcd3f"], "model.workday.stg_workday__position_organization": ["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__organization": ["model.workday.workday__organization_overview", "test.workday.not_null_stg_workday__organization_organization_id.f11f86e5c7"], "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__country_personal_information_base": ["model.workday.stg_workday__country_personal_information"], "model.workday.stg_workday__position_organization_base": ["model.workday.stg_workday__position_organization"], "model.workday.stg_workday__job_family_job_profile_base": ["model.workday.stg_workday__job_family_job_profile"], "model.workday.stg_workday__organization_role_worker_base": ["model.workday.stg_workday__organization_role_worker"], "model.workday.stg_workday__organization_base": ["model.workday.stg_workday__organization"], "model.workday.stg_workday__worker_position_base": ["model.workday.stg_workday__worker_position", "model.workday.stg_workday__worker_position_history"], "model.workday.stg_workday__position_base": ["model.workday.stg_workday__position"], "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__organization_role_base": ["model.workday.stg_workday__organization_role"], "model.workday.stg_workday__worker_base": ["model.workday.stg_workday__worker", "model.workday.stg_workday__worker_history"], "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_job_family_base": ["model.workday.stg_workday__organization_job_family"], "model.workday.stg_workday__position_job_profile_base": ["model.workday.stg_workday__position_job_profile"], "model.workday.stg_workday__worker_leave_status_base": ["model.workday.stg_workday__worker_leave_status"], "model.workday.stg_workday__military_service_base": ["model.workday.stg_workday__military_service"], "model.workday.stg_workday__job_family_group_base": ["model.workday.stg_workday__job_family_group"], "model.workday.stg_workday__personal_information_base": ["model.workday.stg_workday__personal_information_history"], "model.workday.stg_workday__personal_information_common_data_base": ["model.workday.stg_workday__personal_information_common_data"], "model.workday.stg_workday__person_name_base": ["model.workday.stg_workday__person_name"], "model.workday.stg_workday__person_contact_email_address_base": ["model.workday.stg_workday__person_contact_email_address"], "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__worker_position_enriched": ["model.workday.int_workday__worker_employee_enhanced"], "model.workday.int_workday__personal_details": ["model.workday.int_workday__worker_employee_enhanced"], "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.not_null_workday__position_overview_position_id.603beb3f22": [], "test.workday.not_null_workday__organization_overview_organization_id.5b1070ba31": [], "test.workday.not_null_workday__organization_overview_organization_role_id.a909dac412": [], "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": [], "test.workday.not_null_stg_workday__job_profile_job_profile_id.1166250eaa": [], "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.not_null_stg_workday__job_family_job_family_id.0dbfcdcd3f": [], "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.not_null_stg_workday__job_family_group_job_family_group_id.e25ebb9009": [], "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.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.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.not_null_stg_workday__organization_organization_id.f11f86e5c7": [], "test.workday.not_null_stg_workday__position_organization_organization_id.567af692ad": [], "test.workday.not_null_stg_workday__position_organization_position_id.f62eb486b7": [], "test.workday.not_null_stg_workday__position_position_id.8a8bc89d4e": [], "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.not_null_stg_workday__worker_worker_id.8dae310560": [], "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.not_null_stg_workday__personal_information_ethnicity_worker_id.08e20915fd": [], "test.workday.not_null_stg_workday__personal_information_ethnicity_ethnicity_id.89c11054f2": [], "test.workday.not_null_stg_workday__personal_information_common_data_worker_id.deb68b6c56": [], "test.workday.not_null_stg_workday__military_service_worker_id.a196487e38": [], "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.not_null_stg_workday__worker_position_position_id.4dfd73b611": [], "test.workday.not_null_stg_workday__worker_position_worker_id.98db71611d": [], "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.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": [], "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.personal_information_common_data": ["model.workday.stg_workday__personal_information_common_data_base"], "source.workday.workday.country_personal_information": ["model.workday.stg_workday__country_personal_information_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": {}, "unit_tests": {}, "functions": {}} \ No newline at end of file