From aae0c0edf561624ba3a96bb7c61f3551fc467249 Mon Sep 17 00:00:00 2001 From: fivetran-reneeli Date: Thu, 22 Feb 2024 17:18:59 -0500 Subject: [PATCH 1/9] decision log move and include in readme --- models/DECISIONLOG.md => DECISIONLOG.md | 0 README.md | 6 ++++++ 2 files changed, 6 insertions(+) rename models/DECISIONLOG.md => DECISIONLOG.md (100%) diff --git a/models/DECISIONLOG.md b/DECISIONLOG.md similarity index 100% rename from models/DECISIONLOG.md rename to DECISIONLOG.md diff --git a/README.md b/README.md index 3efb554..1857598 100644 --- a/README.md +++ b/README.md @@ -149,6 +149,12 @@ A small team of analytics engineers at Fivetran develops these dbt packages. How We highly encourage and welcome contributions to this package. Check out [this dbt Discourse article](https://discourse.getdbt.com/t/contributing-to-a-dbt-package/657) on the best workflow for contributing to a package! +## Opinionated Modelling Decisions + +The ServiceNow Connector provides thousands of tables. We developed our data models based on the tables with highest usage across Fivetran customers. + +For more information on table relationships and how they informed our model development, you may refer to the [DECISIONLOG](DECISIONLOG.md). + # 🏪 Are there any resources available? - If you have questions or want to reach out for help, please refer to the [GitHub Issue](https://github.com/fivetran/dbt_servicenow/issues/new/choose) section to find the right avenue of support for you. - If you would like to provide feedback to the dbt package team at Fivetran or would like to request a new dbt package, fill out our [Feedback Form](https://www.surveymonkey.com/r/DQ7K7WW). From 4780289653a19efd69cbbddff8cd54e24d07a308 Mon Sep 17 00:00:00 2001 From: fivetran-reneeli Date: Thu, 22 Feb 2024 17:22:28 -0500 Subject: [PATCH 2/9] up versions and update changelog --- CHANGELOG.md | 3 +++ dbt_project.yml | 2 +- integration_tests/dbt_project.yml | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bf4a407..e743259 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +# dbt_servicenow v0.1.1 +[PR #7](https://github.com/fivetran/dbt_servicenow/pull/7) documents the DECISIONLOG in the README and moves the DECISIONLOG out of the /models folder, so that customers will be able to easily find it as a resource. + # dbt_servicenow v0.1.0 This is the initial release of the ServiceNow dbt package! diff --git a/dbt_project.yml b/dbt_project.yml index f99b639..bbb4a7a 100644 --- a/dbt_project.yml +++ b/dbt_project.yml @@ -1,6 +1,6 @@ config-version: 2 name: 'servicenow' -version: '0.1.0' +version: '0.1.1' require-dbt-version: [">=1.3.0", "<2.0.0"] models: diff --git a/integration_tests/dbt_project.yml b/integration_tests/dbt_project.yml index aa5f4c4..93f64da 100644 --- a/integration_tests/dbt_project.yml +++ b/integration_tests/dbt_project.yml @@ -1,5 +1,5 @@ name: 'servicenow_integration_tests' -version: '0.1.0' +version: '0.1.1' config-version: 2 profile: 'integration_tests' From 9488b7cbe25f164e2594d03c65d265f8cfa2c04e Mon Sep 17 00:00:00 2001 From: fivetran-reneeli Date: Thu, 22 Feb 2024 17:27:27 -0500 Subject: [PATCH 3/9] docs --- docs/catalog.json | 2 +- docs/index.html | 4 ++-- docs/manifest.json | 2 +- docs/run_results.json | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/catalog.json b/docs/catalog.json index 95b11d3..2f43fa0 100644 --- a/docs/catalog.json +++ b/docs/catalog.json @@ -1 +1 @@ -{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/catalog/v1.json", "dbt_version": "1.7.4", "generated_at": "2024-01-18T19:41:46.523400Z", "invocation_id": "a6c6f095-5c56-4d80-b9ea-baf4b7420184", "env": {}}, "nodes": {"seed.servicenow_integration_tests.change_request_data": {"metadata": {"type": "BASE TABLE", "schema": "reddit_ads_integration_tests_3", "name": "change_request_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"sys_id": {"type": "character varying", "index": 1, "name": "sys_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}, "backout_plan": {"type": "text", "index": 4, "name": "backout_plan", "comment": null}, "cab_date": {"type": "integer", "index": 5, "name": "cab_date", "comment": null}, "cab_date_time": {"type": "integer", "index": 6, "name": "cab_date_time", "comment": null}, "cab_delegate_link": {"type": "integer", "index": 7, "name": "cab_delegate_link", "comment": null}, "cab_delegate_value": {"type": "integer", "index": 8, "name": "cab_delegate_value", "comment": null}, "cab_recommendation": {"type": "integer", "index": 9, "name": "cab_recommendation", "comment": null}, "cab_required": {"type": "boolean", "index": 10, "name": "cab_required", "comment": null}, "category": {"type": "text", "index": 11, "name": "category", "comment": null}, "change_plan": {"type": "integer", "index": 12, "name": "change_plan", "comment": null}, "chg_model_link": {"type": "integer", "index": 13, "name": "chg_model_link", "comment": null}, "chg_model_value": {"type": "integer", "index": 14, "name": "chg_model_value", "comment": null}, "close_code": {"type": "integer", "index": 15, "name": "close_code", "comment": null}, "conflict_last_run": {"type": "timestamp without time zone", "index": 16, "name": "conflict_last_run", "comment": null}, "conflict_status": {"type": "text", "index": 17, "name": "conflict_status", "comment": null}, "end_date": {"type": "timestamp without time zone", "index": 18, "name": "end_date", "comment": null}, "implementation_plan": {"type": "text", "index": 19, "name": "implementation_plan", "comment": null}, "justification": {"type": "integer", "index": 20, "name": "justification", "comment": null}, "on_hold": {"type": "boolean", "index": 21, "name": "on_hold", "comment": null}, "on_hold_reason": {"type": "integer", "index": 22, "name": "on_hold_reason", "comment": null}, "on_hold_task": {"type": "integer", "index": 23, "name": "on_hold_task", "comment": null}, "outside_maintenance_schedule": {"type": "boolean", "index": 24, "name": "outside_maintenance_schedule", "comment": null}, "phase": {"type": "integer", "index": 25, "name": "phase", "comment": null}, "phase_state": {"type": "text", "index": 26, "name": "phase_state", "comment": null}, "production_system": {"type": "boolean", "index": 27, "name": "production_system", "comment": null}, "reason": {"type": "integer", "index": 28, "name": "reason", "comment": null}, "requested_by_date": {"type": "integer", "index": 29, "name": "requested_by_date", "comment": null}, "requested_by_link": {"type": "text", "index": 30, "name": "requested_by_link", "comment": null}, "requested_by_value": {"type": "character varying", "index": 31, "name": "requested_by_value", "comment": null}, "review_comments": {"type": "integer", "index": 32, "name": "review_comments", "comment": null}, "review_date": {"type": "integer", "index": 33, "name": "review_date", "comment": null}, "review_status": {"type": "integer", "index": 34, "name": "review_status", "comment": null}, "risk": {"type": "integer", "index": 35, "name": "risk", "comment": null}, "risk_impact_analysis": {"type": "integer", "index": 36, "name": "risk_impact_analysis", "comment": null}, "scope": {"type": "integer", "index": 37, "name": "scope", "comment": null}, "start_date": {"type": "timestamp without time zone", "index": 38, "name": "start_date", "comment": null}, "std_change_producer_version_link": {"type": "integer", "index": 39, "name": "std_change_producer_version_link", "comment": null}, "std_change_producer_version_value": {"type": "integer", "index": 40, "name": "std_change_producer_version_value", "comment": null}, "sys_created_on": {"type": "timestamp without time zone", "index": 41, "name": "sys_created_on", "comment": null}, "sys_updated_on": {"type": "timestamp without time zone", "index": 42, "name": "sys_updated_on", "comment": null}, "test_plan": {"type": "integer", "index": 43, "name": "test_plan", "comment": null}, "type": {"type": "text", "index": 44, "name": "type", "comment": null}, "unauthorized": {"type": "boolean", "index": 45, "name": "unauthorized", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.servicenow_integration_tests.change_request_data"}, "seed.servicenow_integration_tests.change_task_data": {"metadata": {"type": "BASE TABLE", "schema": "reddit_ads_integration_tests_3", "name": "change_task_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"sys_id": {"type": "character varying", "index": 1, "name": "sys_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}, "change_request_link": {"type": "text", "index": 4, "name": "change_request_link", "comment": null}, "change_request_value": {"type": "character varying", "index": 5, "name": "change_request_value", "comment": null}, "change_task_type": {"type": "integer", "index": 6, "name": "change_task_type", "comment": null}, "close_code": {"type": "text", "index": 7, "name": "close_code", "comment": null}, "created_from": {"type": "integer", "index": 8, "name": "created_from", "comment": null}, "on_hold": {"type": "boolean", "index": 9, "name": "on_hold", "comment": null}, "on_hold_reason": {"type": "integer", "index": 10, "name": "on_hold_reason", "comment": null}, "planned_end_date": {"type": "integer", "index": 11, "name": "planned_end_date", "comment": null}, "planned_start_date": {"type": "integer", "index": 12, "name": "planned_start_date", "comment": null}, "sys_created_on": {"type": "timestamp without time zone", "index": 13, "name": "sys_created_on", "comment": null}, "sys_updated_on": {"type": "timestamp without time zone", "index": 14, "name": "sys_updated_on", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.servicenow_integration_tests.change_task_data"}, "seed.servicenow_integration_tests.incident_data": {"metadata": {"type": "BASE TABLE", "schema": "reddit_ads_integration_tests_3", "name": "incident_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"sys_id": {"type": "character varying", "index": 1, "name": "sys_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}, "business_impact": {"type": "integer", "index": 4, "name": "business_impact", "comment": null}, "business_stc": {"type": "integer", "index": 5, "name": "business_stc", "comment": null}, "calendar_stc": {"type": "integer", "index": 6, "name": "calendar_stc", "comment": null}, "caller_id_link": {"type": "text", "index": 7, "name": "caller_id_link", "comment": null}, "caller_id_value": {"type": "text", "index": 8, "name": "caller_id_value", "comment": null}, "category": {"type": "text", "index": 9, "name": "category", "comment": null}, "cause": {"type": "integer", "index": 10, "name": "cause", "comment": null}, "caused_by_link": {"type": "integer", "index": 11, "name": "caused_by_link", "comment": null}, "caused_by_value": {"type": "integer", "index": 12, "name": "caused_by_value", "comment": null}, "child_incidents": {"type": "integer", "index": 13, "name": "child_incidents", "comment": null}, "close_code": {"type": "integer", "index": 14, "name": "close_code", "comment": null}, "hold_reason": {"type": "integer", "index": 15, "name": "hold_reason", "comment": null}, "incident_state": {"type": "integer", "index": 16, "name": "incident_state", "comment": null}, "notify": {"type": "integer", "index": 17, "name": "notify", "comment": null}, "origin_id_link": {"type": "integer", "index": 18, "name": "origin_id_link", "comment": null}, "origin_id_value": {"type": "integer", "index": 19, "name": "origin_id_value", "comment": null}, "parent_incident_link": {"type": "integer", "index": 20, "name": "parent_incident_link", "comment": null}, "parent_incident_value": {"type": "integer", "index": 21, "name": "parent_incident_value", "comment": null}, "problem_id_link": {"type": "text", "index": 22, "name": "problem_id_link", "comment": null}, "problem_id_value": {"type": "text", "index": 23, "name": "problem_id_value", "comment": null}, "reopen_count": {"type": "integer", "index": 24, "name": "reopen_count", "comment": null}, "reopened_by_link": {"type": "integer", "index": 25, "name": "reopened_by_link", "comment": null}, "reopened_by_value": {"type": "integer", "index": 26, "name": "reopened_by_value", "comment": null}, "reopened_time": {"type": "integer", "index": 27, "name": "reopened_time", "comment": null}, "resolved_at": {"type": "timestamp without time zone", "index": 28, "name": "resolved_at", "comment": null}, "resolved_by_link": {"type": "integer", "index": 29, "name": "resolved_by_link", "comment": null}, "resolved_by_value": {"type": "character varying", "index": 30, "name": "resolved_by_value", "comment": null}, "rfc_link": {"type": "integer", "index": 31, "name": "rfc_link", "comment": null}, "rfc_value": {"type": "integer", "index": 32, "name": "rfc_value", "comment": null}, "severity": {"type": "integer", "index": 33, "name": "severity", "comment": null}, "subcategory": {"type": "integer", "index": 34, "name": "subcategory", "comment": null}, "sys_created_on": {"type": "timestamp without time zone", "index": 35, "name": "sys_created_on", "comment": null}, "sys_updated_on": {"type": "timestamp without time zone", "index": 36, "name": "sys_updated_on", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.servicenow_integration_tests.incident_data"}, "seed.servicenow_integration_tests.problem_data": {"metadata": {"type": "BASE TABLE", "schema": "reddit_ads_integration_tests_3", "name": "problem_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"sys_id": {"type": "character varying", "index": 1, "name": "sys_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}, "category": {"type": "text", "index": 4, "name": "category", "comment": null}, "cause_notes": {"type": "integer", "index": 5, "name": "cause_notes", "comment": null}, "confirmed_at": {"type": "integer", "index": 6, "name": "confirmed_at", "comment": null}, "confirmed_by_link": {"type": "integer", "index": 7, "name": "confirmed_by_link", "comment": null}, "confirmed_by_value": {"type": "character varying", "index": 8, "name": "confirmed_by_value", "comment": null}, "duplicate_of_link": {"type": "integer", "index": 9, "name": "duplicate_of_link", "comment": null}, "duplicate_of_value": {"type": "integer", "index": 10, "name": "duplicate_of_value", "comment": null}, "first_reported_by_task_link": {"type": "integer", "index": 11, "name": "first_reported_by_task_link", "comment": null}, "first_reported_by_task_value": {"type": "character varying", "index": 12, "name": "first_reported_by_task_value", "comment": null}, "fix_at": {"type": "integer", "index": 13, "name": "fix_at", "comment": null}, "fix_by_link": {"type": "integer", "index": 14, "name": "fix_by_link", "comment": null}, "fix_by_value": {"type": "character varying", "index": 15, "name": "fix_by_value", "comment": null}, "fix_communicated_at": {"type": "integer", "index": 16, "name": "fix_communicated_at", "comment": null}, "fix_communicated_by_link": {"type": "integer", "index": 17, "name": "fix_communicated_by_link", "comment": null}, "fix_communicated_by_value": {"type": "integer", "index": 18, "name": "fix_communicated_by_value", "comment": null}, "fix_notes": {"type": "integer", "index": 19, "name": "fix_notes", "comment": null}, "known_error": {"type": "boolean", "index": 20, "name": "known_error", "comment": null}, "major_problem": {"type": "boolean", "index": 21, "name": "major_problem", "comment": null}, "problem_state": {"type": "integer", "index": 22, "name": "problem_state", "comment": null}, "related_incidents": {"type": "integer", "index": 23, "name": "related_incidents", "comment": null}, "reopen_count": {"type": "integer", "index": 24, "name": "reopen_count", "comment": null}, "reopened_at": {"type": "integer", "index": 25, "name": "reopened_at", "comment": null}, "reopened_by_link": {"type": "integer", "index": 26, "name": "reopened_by_link", "comment": null}, "reopened_by_value": {"type": "integer", "index": 27, "name": "reopened_by_value", "comment": null}, "resolution_code": {"type": "integer", "index": 28, "name": "resolution_code", "comment": null}, "resolved_at": {"type": "timestamp without time zone", "index": 29, "name": "resolved_at", "comment": null}, "resolved_by_link": {"type": "integer", "index": 30, "name": "resolved_by_link", "comment": null}, "resolved_by_value": {"type": "character varying", "index": 31, "name": "resolved_by_value", "comment": null}, "review_outcome": {"type": "integer", "index": 32, "name": "review_outcome", "comment": null}, "rfc_link": {"type": "integer", "index": 33, "name": "rfc_link", "comment": null}, "rfc_value": {"type": "integer", "index": 34, "name": "rfc_value", "comment": null}, "subcategory": {"type": "text", "index": 35, "name": "subcategory", "comment": null}, "sys_created_on": {"type": "timestamp without time zone", "index": 36, "name": "sys_created_on", "comment": null}, "sys_updated_on": {"type": "timestamp without time zone", "index": 37, "name": "sys_updated_on", "comment": null}, "workaround": {"type": "integer", "index": 38, "name": "workaround", "comment": null}, "workaround_applied": {"type": "boolean", "index": 39, "name": "workaround_applied", "comment": null}, "workaround_communicated_at": {"type": "integer", "index": 40, "name": "workaround_communicated_at", "comment": null}, "workaround_communicated_by_link": {"type": "integer", "index": 41, "name": "workaround_communicated_by_link", "comment": null}, "workaround_communicated_by_value": {"type": "integer", "index": 42, "name": "workaround_communicated_by_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.servicenow_integration_tests.problem_data"}, "seed.servicenow_integration_tests.problem_task_data": {"metadata": {"type": "BASE TABLE", "schema": "reddit_ads_integration_tests_3", "name": "problem_task_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"sys_id": {"type": "character varying", "index": 1, "name": "sys_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}, "cause_code": {"type": "integer", "index": 4, "name": "cause_code", "comment": null}, "close_code": {"type": "integer", "index": 5, "name": "close_code", "comment": null}, "other_reason": {"type": "integer", "index": 6, "name": "other_reason", "comment": null}, "problem_link": {"type": "text", "index": 7, "name": "problem_link", "comment": null}, "problem_task_type": {"type": "text", "index": 8, "name": "problem_task_type", "comment": null}, "problem_value": {"type": "character varying", "index": 9, "name": "problem_value", "comment": null}, "reopen_count": {"type": "integer", "index": 10, "name": "reopen_count", "comment": null}, "reopened_at": {"type": "timestamp without time zone", "index": 11, "name": "reopened_at", "comment": null}, "reopened_by_link": {"type": "text", "index": 12, "name": "reopened_by_link", "comment": null}, "reopened_by_value": {"type": "text", "index": 13, "name": "reopened_by_value", "comment": null}, "started_at": {"type": "timestamp without time zone", "index": 14, "name": "started_at", "comment": null}, "started_by_link": {"type": "text", "index": 15, "name": "started_by_link", "comment": null}, "started_by_value": {"type": "character varying", "index": 16, "name": "started_by_value", "comment": null}, "sys_created_on": {"type": "timestamp without time zone", "index": 17, "name": "sys_created_on", "comment": null}, "sys_updated_on": {"type": "timestamp without time zone", "index": 18, "name": "sys_updated_on", "comment": null}, "vendor_link": {"type": "integer", "index": 19, "name": "vendor_link", "comment": null}, "vendor_value": {"type": "integer", "index": 20, "name": "vendor_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.servicenow_integration_tests.problem_task_data"}, "seed.servicenow_integration_tests.sys_user_data": {"metadata": {"type": "BASE TABLE", "schema": "reddit_ads_integration_tests_3", "name": "sys_user_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"sys_id": {"type": "character varying", "index": 1, "name": "sys_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}, "accumulated_roles": {"type": "integer", "index": 4, "name": "accumulated_roles", "comment": null}, "active": {"type": "boolean", "index": 5, "name": "active", "comment": null}, "avatar": {"type": "integer", "index": 6, "name": "avatar", "comment": null}, "building_link": {"type": "integer", "index": 7, "name": "building_link", "comment": null}, "building_value": {"type": "integer", "index": 8, "name": "building_value", "comment": null}, "calendar_integration": {"type": "integer", "index": 9, "name": "calendar_integration", "comment": null}, "city": {"type": "integer", "index": 10, "name": "city", "comment": null}, "company_link": {"type": "integer", "index": 11, "name": "company_link", "comment": null}, "company_value": {"type": "integer", "index": 12, "name": "company_value", "comment": null}, "cost_center_link": {"type": "integer", "index": 13, "name": "cost_center_link", "comment": null}, "cost_center_value": {"type": "integer", "index": 14, "name": "cost_center_value", "comment": null}, "country": {"type": "integer", "index": 15, "name": "country", "comment": null}, "date_format": {"type": "integer", "index": 16, "name": "date_format", "comment": null}, "default_perspective_link": {"type": "integer", "index": 17, "name": "default_perspective_link", "comment": null}, "default_perspective_value": {"type": "integer", "index": 18, "name": "default_perspective_value", "comment": null}, "department_link": {"type": "integer", "index": 19, "name": "department_link", "comment": null}, "department_value": {"type": "integer", "index": 20, "name": "department_value", "comment": null}, "edu_status": {"type": "integer", "index": 21, "name": "edu_status", "comment": null}, "email": {"type": "text", "index": 22, "name": "email", "comment": null}, "employee_number": {"type": "integer", "index": 23, "name": "employee_number", "comment": null}, "enable_multifactor_authn": {"type": "boolean", "index": 24, "name": "enable_multifactor_authn", "comment": null}, "failed_attempts": {"type": "integer", "index": 25, "name": "failed_attempts", "comment": null}, "first_name": {"type": "text", "index": 26, "name": "first_name", "comment": null}, "gender": {"type": "integer", "index": 27, "name": "gender", "comment": null}, "hashed_user_id": {"type": "integer", "index": 28, "name": "hashed_user_id", "comment": null}, "home_phone": {"type": "integer", "index": 29, "name": "home_phone", "comment": null}, "internal_integration_user": {"type": "boolean", "index": 30, "name": "internal_integration_user", "comment": null}, "introduction": {"type": "integer", "index": 31, "name": "introduction", "comment": null}, "last_login": {"type": "date", "index": 32, "name": "last_login", "comment": null}, "last_login_device": {"type": "integer", "index": 33, "name": "last_login_device", "comment": null}, "last_login_time": {"type": "timestamp without time zone", "index": 34, "name": "last_login_time", "comment": null}, "last_name": {"type": "text", "index": 35, "name": "last_name", "comment": null}, "last_password": {"type": "integer", "index": 36, "name": "last_password", "comment": null}, "ldap_server_link": {"type": "integer", "index": 37, "name": "ldap_server_link", "comment": null}, "ldap_server_value": {"type": "integer", "index": 38, "name": "ldap_server_value", "comment": null}, "location_link": {"type": "integer", "index": 39, "name": "location_link", "comment": null}, "location_value": {"type": "integer", "index": 40, "name": "location_value", "comment": null}, "locked_out": {"type": "boolean", "index": 41, "name": "locked_out", "comment": null}, "manager_link": {"type": "integer", "index": 42, "name": "manager_link", "comment": null}, "manager_value": {"type": "integer", "index": 43, "name": "manager_value", "comment": null}, "middle_name": {"type": "integer", "index": 44, "name": "middle_name", "comment": null}, "mobile_phone": {"type": "integer", "index": 45, "name": "mobile_phone", "comment": null}, "name": {"type": "text", "index": 46, "name": "name", "comment": null}, "notification": {"type": "integer", "index": 47, "name": "notification", "comment": null}, "password_needs_reset": {"type": "boolean", "index": 48, "name": "password_needs_reset", "comment": null}, "phone": {"type": "integer", "index": 49, "name": "phone", "comment": null}, "photo": {"type": "integer", "index": 50, "name": "photo", "comment": null}, "preferred_language": {"type": "integer", "index": 51, "name": "preferred_language", "comment": null}, "roles": {"type": "integer", "index": 52, "name": "roles", "comment": null}, "schedule_link": {"type": "integer", "index": 53, "name": "schedule_link", "comment": null}, "schedule_value": {"type": "integer", "index": 54, "name": "schedule_value", "comment": null}, "source": {"type": "integer", "index": 55, "name": "source", "comment": null}, "state": {"type": "integer", "index": 56, "name": "state", "comment": null}, "sys_class_name": {"type": "text", "index": 57, "name": "sys_class_name", "comment": null}, "sys_created_by": {"type": "character varying", "index": 58, "name": "sys_created_by", "comment": null}, "sys_created_on": {"type": "timestamp without time zone", "index": 59, "name": "sys_created_on", "comment": null}, "sys_domain_link": {"type": "text", "index": 60, "name": "sys_domain_link", "comment": null}, "sys_domain_path": {"type": "text", "index": 61, "name": "sys_domain_path", "comment": null}, "sys_domain_value": {"type": "text", "index": 62, "name": "sys_domain_value", "comment": null}, "sys_mod_count": {"type": "integer", "index": 63, "name": "sys_mod_count", "comment": null}, "sys_updated_by": {"type": "character varying", "index": 64, "name": "sys_updated_by", "comment": null}, "sys_updated_on": {"type": "timestamp without time zone", "index": 65, "name": "sys_updated_on", "comment": null}, "time_format": {"type": "integer", "index": 66, "name": "time_format", "comment": null}, "time_zone": {"type": "integer", "index": 67, "name": "time_zone", "comment": null}, "title": {"type": "integer", "index": 68, "name": "title", "comment": null}, "user_name": {"type": "text", "index": 69, "name": "user_name", "comment": null}, "user_password": {"type": "text", "index": 70, "name": "user_password", "comment": null}, "vip": {"type": "boolean", "index": 71, "name": "vip", "comment": null}, "web_service_access_only": {"type": "boolean", "index": 72, "name": "web_service_access_only", "comment": null}, "zip": {"type": "integer", "index": 73, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.servicenow_integration_tests.sys_user_data"}, "seed.servicenow_integration_tests.task_data": {"metadata": {"type": "BASE TABLE", "schema": "reddit_ads_integration_tests_3", "name": "task_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"sys_id": {"type": "character varying", "index": 1, "name": "sys_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}, "active": {"type": "boolean", "index": 4, "name": "active", "comment": null}, "activity_due": {"type": "integer", "index": 5, "name": "activity_due", "comment": null}, "additional_assignee_list": {"type": "integer", "index": 6, "name": "additional_assignee_list", "comment": null}, "approval": {"type": "text", "index": 7, "name": "approval", "comment": null}, "approval_history": {"type": "integer", "index": 8, "name": "approval_history", "comment": null}, "approval_set": {"type": "integer", "index": 9, "name": "approval_set", "comment": null}, "assigned_to_link": {"type": "text", "index": 10, "name": "assigned_to_link", "comment": null}, "assigned_to_value": {"type": "character varying", "index": 11, "name": "assigned_to_value", "comment": null}, "assignment_group_link": {"type": "integer", "index": 12, "name": "assignment_group_link", "comment": null}, "assignment_group_value": {"type": "integer", "index": 13, "name": "assignment_group_value", "comment": null}, "business_duration": {"type": "integer", "index": 14, "name": "business_duration", "comment": null}, "business_service_link": {"type": "integer", "index": 15, "name": "business_service_link", "comment": null}, "business_service_value": {"type": "integer", "index": 16, "name": "business_service_value", "comment": null}, "calendar_duration": {"type": "integer", "index": 17, "name": "calendar_duration", "comment": null}, "close_notes": {"type": "integer", "index": 18, "name": "close_notes", "comment": null}, "closed_at": {"type": "timestamp without time zone", "index": 19, "name": "closed_at", "comment": null}, "closed_by_link": {"type": "text", "index": 20, "name": "closed_by_link", "comment": null}, "closed_by_value": {"type": "character varying", "index": 21, "name": "closed_by_value", "comment": null}, "cmdb_ci_link": {"type": "integer", "index": 22, "name": "cmdb_ci_link", "comment": null}, "cmdb_ci_value": {"type": "integer", "index": 23, "name": "cmdb_ci_value", "comment": null}, "comments": {"type": "integer", "index": 24, "name": "comments", "comment": null}, "comments_and_work_notes": {"type": "integer", "index": 25, "name": "comments_and_work_notes", "comment": null}, "company_link": {"type": "integer", "index": 26, "name": "company_link", "comment": null}, "company_value": {"type": "integer", "index": 27, "name": "company_value", "comment": null}, "contact_type": {"type": "integer", "index": 28, "name": "contact_type", "comment": null}, "contract_link": {"type": "integer", "index": 29, "name": "contract_link", "comment": null}, "contract_value": {"type": "integer", "index": 30, "name": "contract_value", "comment": null}, "correlation_display": {"type": "integer", "index": 31, "name": "correlation_display", "comment": null}, "correlation_id": {"type": "integer", "index": 32, "name": "correlation_id", "comment": null}, "delivery_plan_link": {"type": "integer", "index": 33, "name": "delivery_plan_link", "comment": null}, "delivery_plan_value": {"type": "integer", "index": 34, "name": "delivery_plan_value", "comment": null}, "delivery_task_link": {"type": "integer", "index": 35, "name": "delivery_task_link", "comment": null}, "delivery_task_value": {"type": "integer", "index": 36, "name": "delivery_task_value", "comment": null}, "description": {"type": "text", "index": 37, "name": "description", "comment": null}, "due_date": {"type": "integer", "index": 38, "name": "due_date", "comment": null}, "escalation": {"type": "integer", "index": 39, "name": "escalation", "comment": null}, "expected_start": {"type": "integer", "index": 40, "name": "expected_start", "comment": null}, "follow_up": {"type": "integer", "index": 41, "name": "follow_up", "comment": null}, "group_list": {"type": "integer", "index": 42, "name": "group_list", "comment": null}, "impact": {"type": "integer", "index": 43, "name": "impact", "comment": null}, "knowledge": {"type": "boolean", "index": 44, "name": "knowledge", "comment": null}, "location_link": {"type": "integer", "index": 45, "name": "location_link", "comment": null}, "location_value": {"type": "integer", "index": 46, "name": "location_value", "comment": null}, "made_sla": {"type": "boolean", "index": 47, "name": "made_sla", "comment": null}, "number": {"type": "text", "index": 48, "name": "number", "comment": null}, "opened_at": {"type": "timestamp without time zone", "index": 49, "name": "opened_at", "comment": null}, "opened_by_link": {"type": "text", "index": 50, "name": "opened_by_link", "comment": null}, "opened_by_value": {"type": "character varying", "index": 51, "name": "opened_by_value", "comment": null}, "order": {"type": "integer", "index": 52, "name": "order", "comment": null}, "parent_link": {"type": "integer", "index": 53, "name": "parent_link", "comment": null}, "parent_value": {"type": "integer", "index": 54, "name": "parent_value", "comment": null}, "priority": {"type": "integer", "index": 55, "name": "priority", "comment": null}, "reassignment_count": {"type": "integer", "index": 56, "name": "reassignment_count", "comment": null}, "rejection_goto_link": {"type": "integer", "index": 57, "name": "rejection_goto_link", "comment": null}, "rejection_goto_value": {"type": "integer", "index": 58, "name": "rejection_goto_value", "comment": null}, "route_reason": {"type": "integer", "index": 59, "name": "route_reason", "comment": null}, "service_offering_link": {"type": "integer", "index": 60, "name": "service_offering_link", "comment": null}, "service_offering_value": {"type": "integer", "index": 61, "name": "service_offering_value", "comment": null}, "short_description": {"type": "text", "index": 62, "name": "short_description", "comment": null}, "sla_due": {"type": "integer", "index": 63, "name": "sla_due", "comment": null}, "state": {"type": "integer", "index": 64, "name": "state", "comment": null}, "sys_class_name": {"type": "text", "index": 65, "name": "sys_class_name", "comment": null}, "sys_created_by": {"type": "character varying", "index": 66, "name": "sys_created_by", "comment": null}, "sys_created_on": {"type": "timestamp without time zone", "index": 67, "name": "sys_created_on", "comment": null}, "sys_domain_link": {"type": "text", "index": 68, "name": "sys_domain_link", "comment": null}, "sys_domain_path": {"type": "text", "index": 69, "name": "sys_domain_path", "comment": null}, "sys_domain_value": {"type": "text", "index": 70, "name": "sys_domain_value", "comment": null}, "sys_mod_count": {"type": "integer", "index": 71, "name": "sys_mod_count", "comment": null}, "sys_updated_by": {"type": "character varying", "index": 72, "name": "sys_updated_by", "comment": null}, "sys_updated_on": {"type": "timestamp without time zone", "index": 73, "name": "sys_updated_on", "comment": null}, "task_effective_number": {"type": "text", "index": 74, "name": "task_effective_number", "comment": null}, "universal_request_link": {"type": "integer", "index": 75, "name": "universal_request_link", "comment": null}, "universal_request_value": {"type": "integer", "index": 76, "name": "universal_request_value", "comment": null}, "upon_approval": {"type": "integer", "index": 77, "name": "upon_approval", "comment": null}, "upon_reject": {"type": "integer", "index": 78, "name": "upon_reject", "comment": null}, "urgency": {"type": "integer", "index": 79, "name": "urgency", "comment": null}, "watch_list": {"type": "integer", "index": 80, "name": "watch_list", "comment": null}, "wf_activity_link": {"type": "integer", "index": 81, "name": "wf_activity_link", "comment": null}, "wf_activity_value": {"type": "integer", "index": 82, "name": "wf_activity_value", "comment": null}, "work_end": {"type": "integer", "index": 83, "name": "work_end", "comment": null}, "work_notes": {"type": "integer", "index": 84, "name": "work_notes", "comment": null}, "work_notes_list": {"type": "integer", "index": 85, "name": "work_notes_list", "comment": null}, "work_start": {"type": "integer", "index": 86, "name": "work_start", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.servicenow_integration_tests.task_data"}, "seed.servicenow_integration_tests.task_sla_data": {"metadata": {"type": "BASE TABLE", "schema": "reddit_ads_integration_tests_3", "name": "task_sla_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"sys_id": {"type": "character varying", "index": 1, "name": "sys_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}, "active": {"type": "boolean", "index": 4, "name": "active", "comment": null}, "business_duration": {"type": "timestamp without time zone", "index": 5, "name": "business_duration", "comment": null}, "business_pause_duration": {"type": "integer", "index": 6, "name": "business_pause_duration", "comment": null}, "business_percentage": {"type": "integer", "index": 7, "name": "business_percentage", "comment": null}, "business_time_left": {"type": "timestamp without time zone", "index": 8, "name": "business_time_left", "comment": null}, "duration": {"type": "timestamp without time zone", "index": 9, "name": "duration", "comment": null}, "end_time": {"type": "timestamp without time zone", "index": 10, "name": "end_time", "comment": null}, "has_breached": {"type": "boolean", "index": 11, "name": "has_breached", "comment": null}, "original_breach_time": {"type": "timestamp without time zone", "index": 12, "name": "original_breach_time", "comment": null}, "pause_duration": {"type": "integer", "index": 13, "name": "pause_duration", "comment": null}, "pause_time": {"type": "integer", "index": 14, "name": "pause_time", "comment": null}, "percentage": {"type": "double precision", "index": 15, "name": "percentage", "comment": null}, "planned_end_time": {"type": "timestamp without time zone", "index": 16, "name": "planned_end_time", "comment": null}, "schedule_link": {"type": "text", "index": 17, "name": "schedule_link", "comment": null}, "schedule_value": {"type": "text", "index": 18, "name": "schedule_value", "comment": null}, "sla_link": {"type": "text", "index": 19, "name": "sla_link", "comment": null}, "sla_value": {"type": "text", "index": 20, "name": "sla_value", "comment": null}, "stage": {"type": "text", "index": 21, "name": "stage", "comment": null}, "start_time": {"type": "timestamp without time zone", "index": 22, "name": "start_time", "comment": null}, "sys_created_by": {"type": "character varying", "index": 23, "name": "sys_created_by", "comment": null}, "sys_created_on": {"type": "timestamp without time zone", "index": 24, "name": "sys_created_on", "comment": null}, "sys_mod_count": {"type": "integer", "index": 25, "name": "sys_mod_count", "comment": null}, "sys_updated_by": {"type": "character varying", "index": 26, "name": "sys_updated_by", "comment": null}, "sys_updated_on": {"type": "timestamp without time zone", "index": 27, "name": "sys_updated_on", "comment": null}, "task_link": {"type": "text", "index": 28, "name": "task_link", "comment": null}, "task_value": {"type": "text", "index": 29, "name": "task_value", "comment": null}, "time_left": {"type": "timestamp without time zone", "index": 30, "name": "time_left", "comment": null}, "timezone": {"type": "text", "index": 31, "name": "timezone", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.servicenow_integration_tests.task_sla_data"}, "model.servicenow.servicenow__activity_summary": {"metadata": {"type": "BASE TABLE", "schema": "reddit_ads_integration_tests_3_servicenow", "name": "servicenow__activity_summary", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"task_updated_date": {"type": "date", "index": 1, "name": "task_updated_date", "comment": null}, "task_state": {"type": "integer", "index": 2, "name": "task_state", "comment": null}, "priority": {"type": "integer", "index": 3, "name": "priority", "comment": null}, "impact": {"type": "integer", "index": 4, "name": "impact", "comment": null}, "urgency": {"type": "integer", "index": 5, "name": "urgency", "comment": null}, "source_relation": {"type": "text", "index": 6, "name": "source_relation", "comment": null}, "total_active_tasks": {"type": "bigint", "index": 7, "name": "total_active_tasks", "comment": null}, "total_active_problem_tasks": {"type": "bigint", "index": 8, "name": "total_active_problem_tasks", "comment": null}, "total_active_change_tasks": {"type": "bigint", "index": 9, "name": "total_active_change_tasks", "comment": null}, "total_associated_problems": {"type": "bigint", "index": 10, "name": "total_associated_problems", "comment": null}, "total_incidents_caused_by_problems": {"type": "bigint", "index": 11, "name": "total_incidents_caused_by_problems", "comment": null}, "total_change_requests": {"type": "bigint", "index": 12, "name": "total_change_requests", "comment": null}, "total_closed_tasks": {"type": "bigint", "index": 13, "name": "total_closed_tasks", "comment": null}, "average_minutes_open_to_close": {"type": "double precision", "index": 14, "name": "average_minutes_open_to_close", "comment": null}, "total_tasks_made_slas": {"type": "bigint", "index": 15, "name": "total_tasks_made_slas", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.servicenow.servicenow__activity_summary"}, "model.servicenow.servicenow__task_enhanced": {"metadata": {"type": "BASE TABLE", "schema": "reddit_ads_integration_tests_3_servicenow", "name": "servicenow__task_enhanced", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"task_id": {"type": "text", "index": 1, "name": "task_id", "comment": null}, "is_task_active": {"type": "boolean", "index": 2, "name": "is_task_active", "comment": null}, "task_description": {"type": "text", "index": 3, "name": "task_description", "comment": null}, "activity_due": {"type": "integer", "index": 4, "name": "activity_due", "comment": null}, "priority": {"type": "integer", "index": 5, "name": "priority", "comment": null}, "impact": {"type": "integer", "index": 6, "name": "impact", "comment": null}, "urgency": {"type": "integer", "index": 7, "name": "urgency", "comment": null}, "task_state": {"type": "integer", "index": 8, "name": "task_state", "comment": null}, "task_number": {"type": "text", "index": 9, "name": "task_number", "comment": null}, "task_order": {"type": "integer", "index": 10, "name": "task_order", "comment": null}, "is_problem_task": {"type": "boolean", "index": 11, "name": "is_problem_task", "comment": null}, "is_change_task": {"type": "boolean", "index": 12, "name": "is_change_task", "comment": null}, "task_created_at": {"type": "timestamp without time zone", "index": 13, "name": "task_created_at", "comment": null}, "sys_created_by": {"type": "character varying", "index": 14, "name": "sys_created_by", "comment": null}, "cmdb_ci_link": {"type": "integer", "index": 15, "name": "cmdb_ci_link", "comment": null}, "cmdb_ci_value": {"type": "text", "index": 16, "name": "cmdb_ci_value", "comment": null}, "cmdb_ci_name": {"type": "text", "index": 17, "name": "cmdb_ci_name", "comment": null}, "creator_email": {"type": "text", "index": 18, "name": "creator_email", "comment": null}, "creator_manager_value": {"type": "text", "index": 19, "name": "creator_manager_value", "comment": null}, "creator_department_value": {"type": "text", "index": 20, "name": "creator_department_value", "comment": null}, "creator_name": {"type": "text", "index": 21, "name": "creator_name", "comment": null}, "creator_roles": {"type": "integer", "index": 22, "name": "creator_roles", "comment": null}, "task_updated_at": {"type": "timestamp without time zone", "index": 23, "name": "task_updated_at", "comment": null}, "task_updated_date": {"type": "date", "index": 24, "name": "task_updated_date", "comment": null}, "sys_updated_by": {"type": "character varying", "index": 25, "name": "sys_updated_by", "comment": null}, "updater_email": {"type": "text", "index": 26, "name": "updater_email", "comment": null}, "updater_manager_value": {"type": "text", "index": 27, "name": "updater_manager_value", "comment": null}, "updater_department_value": {"type": "text", "index": 28, "name": "updater_department_value", "comment": null}, "updater_name": {"type": "text", "index": 29, "name": "updater_name", "comment": null}, "updater_roles": {"type": "integer", "index": 30, "name": "updater_roles", "comment": null}, "task_opened_at": {"type": "timestamp without time zone", "index": 31, "name": "task_opened_at", "comment": null}, "opened_by_link": {"type": "text", "index": 32, "name": "opened_by_link", "comment": null}, "opened_by_value": {"type": "text", "index": 33, "name": "opened_by_value", "comment": null}, "opener_manager_value": {"type": "text", "index": 34, "name": "opener_manager_value", "comment": null}, "opener_email": {"type": "text", "index": 35, "name": "opener_email", "comment": null}, "opener_department_value": {"type": "text", "index": 36, "name": "opener_department_value", "comment": null}, "opener_name": {"type": "text", "index": 37, "name": "opener_name", "comment": null}, "opener_roles": {"type": "integer", "index": 38, "name": "opener_roles", "comment": null}, "assigned_to_link": {"type": "text", "index": 39, "name": "assigned_to_link", "comment": null}, "assigned_to_value": {"type": "text", "index": 40, "name": "assigned_to_value", "comment": null}, "assignee_email": {"type": "text", "index": 41, "name": "assignee_email", "comment": null}, "assignee_manager_value": {"type": "text", "index": 42, "name": "assignee_manager_value", "comment": null}, "assignee_department_value": {"type": "text", "index": 43, "name": "assignee_department_value", "comment": null}, "assignee_name": {"type": "text", "index": 44, "name": "assignee_name", "comment": null}, "assignee_roles": {"type": "integer", "index": 45, "name": "assignee_roles", "comment": null}, "task_closed_at": {"type": "timestamp without time zone", "index": 46, "name": "task_closed_at", "comment": null}, "task_minutes_open_to_close": {"type": "double precision", "index": 47, "name": "task_minutes_open_to_close", "comment": null}, "closed_by_link": {"type": "text", "index": 48, "name": "closed_by_link", "comment": null}, "closed_by_value": {"type": "text", "index": 49, "name": "closed_by_value", "comment": null}, "closer_email": {"type": "text", "index": 50, "name": "closer_email", "comment": null}, "closer_manager_value": {"type": "text", "index": 51, "name": "closer_manager_value", "comment": null}, "closer_department_value": {"type": "text", "index": 52, "name": "closer_department_value", "comment": null}, "closer_name": {"type": "text", "index": 53, "name": "closer_name", "comment": null}, "closer_roles": {"type": "integer", "index": 54, "name": "closer_roles", "comment": null}, "task_effective_number": {"type": "text", "index": 55, "name": "task_effective_number", "comment": null}, "additional_assignee_list": {"type": "integer", "index": 56, "name": "additional_assignee_list", "comment": null}, "approval": {"type": "text", "index": 57, "name": "approval", "comment": null}, "approval_history": {"type": "integer", "index": 58, "name": "approval_history", "comment": null}, "approval_set": {"type": "integer", "index": 59, "name": "approval_set", "comment": null}, "assignment_group_link": {"type": "integer", "index": 60, "name": "assignment_group_link", "comment": null}, "assignment_group_value": {"type": "text", "index": 61, "name": "assignment_group_value", "comment": null}, "assignment_group_name": {"type": "text", "index": 62, "name": "assignment_group_name", "comment": null}, "business_duration": {"type": "integer", "index": 63, "name": "business_duration", "comment": null}, "calendar_duration": {"type": "integer", "index": 64, "name": "calendar_duration", "comment": null}, "business_service_link": {"type": "integer", "index": 65, "name": "business_service_link", "comment": null}, "business_service_value": {"type": "text", "index": 66, "name": "business_service_value", "comment": null}, "business_service_name": {"type": "text", "index": 67, "name": "business_service_name", "comment": null}, "close_notes": {"type": "integer", "index": 68, "name": "close_notes", "comment": null}, "comments": {"type": "integer", "index": 69, "name": "comments", "comment": null}, "comments_and_work_notes": {"type": "integer", "index": 70, "name": "comments_and_work_notes", "comment": null}, "company_link": {"type": "integer", "index": 71, "name": "company_link", "comment": null}, "company_value": {"type": "text", "index": 72, "name": "company_value", "comment": null}, "company_name": {"type": "text", "index": 73, "name": "company_name", "comment": null}, "contact_type": {"type": "integer", "index": 74, "name": "contact_type", "comment": null}, "task_due_date_at": {"type": "integer", "index": 75, "name": "task_due_date_at", "comment": null}, "expected_start": {"type": "integer", "index": 76, "name": "expected_start", "comment": null}, "task_follow_up_at": {"type": "integer", "index": 77, "name": "task_follow_up_at", "comment": null}, "group_list": {"type": "integer", "index": 78, "name": "group_list", "comment": null}, "knowledge": {"type": "boolean", "index": 79, "name": "knowledge", "comment": null}, "is_made_sla": {"type": "boolean", "index": 80, "name": "is_made_sla", "comment": null}, "sla_due": {"type": "integer", "index": 81, "name": "sla_due", "comment": null}, "parent_link": {"type": "integer", "index": 82, "name": "parent_link", "comment": null}, "parent_value": {"type": "text", "index": 83, "name": "parent_value", "comment": null}, "reassignment_count": {"type": "integer", "index": 84, "name": "reassignment_count", "comment": null}, "route_reason": {"type": "integer", "index": 85, "name": "route_reason", "comment": null}, "short_description": {"type": "text", "index": 86, "name": "short_description", "comment": null}, "sys_class_name": {"type": "text", "index": 87, "name": "sys_class_name", "comment": null}, "sys_domain_link": {"type": "text", "index": 88, "name": "sys_domain_link", "comment": null}, "sys_domain_path": {"type": "text", "index": 89, "name": "sys_domain_path", "comment": null}, "sys_domain_value": {"type": "text", "index": 90, "name": "sys_domain_value", "comment": null}, "upon_approval": {"type": "integer", "index": 91, "name": "upon_approval", "comment": null}, "upon_reject": {"type": "integer", "index": 92, "name": "upon_reject", "comment": null}, "watch_list": {"type": "integer", "index": 93, "name": "watch_list", "comment": null}, "work_start": {"type": "integer", "index": 94, "name": "work_start", "comment": null}, "work_end": {"type": "integer", "index": 95, "name": "work_end", "comment": null}, "work_notes": {"type": "integer", "index": 96, "name": "work_notes", "comment": null}, "work_notes_list": {"type": "integer", "index": 97, "name": "work_notes_list", "comment": null}, "problem_task_cause_code": {"type": "integer", "index": 98, "name": "problem_task_cause_code", "comment": null}, "problem_task_close_code": {"type": "integer", "index": 99, "name": "problem_task_close_code", "comment": null}, "problem_task_type": {"type": "text", "index": 100, "name": "problem_task_type", "comment": null}, "problem_task_started_at": {"type": "timestamp without time zone", "index": 101, "name": "problem_task_started_at", "comment": null}, "started_by_value": {"type": "text", "index": 102, "name": "started_by_value", "comment": null}, "problem_task_starter_email": {"type": "text", "index": 103, "name": "problem_task_starter_email", "comment": null}, "problem_task_starter_manager_value": {"type": "text", "index": 104, "name": "problem_task_starter_manager_value", "comment": null}, "problem_task_starter_department_value": {"type": "text", "index": 105, "name": "problem_task_starter_department_value", "comment": null}, "problem_task_starter_name": {"type": "text", "index": 106, "name": "problem_task_starter_name", "comment": null}, "problem_task_starter_roles": {"type": "integer", "index": 107, "name": "problem_task_starter_roles", "comment": null}, "associated_problem_id": {"type": "text", "index": 108, "name": "associated_problem_id", "comment": null}, "problem_category": {"type": "text", "index": 109, "name": "problem_category", "comment": null}, "cause_notes": {"type": "integer", "index": 110, "name": "cause_notes", "comment": null}, "problem_confirmed_at": {"type": "integer", "index": 111, "name": "problem_confirmed_at", "comment": null}, "problem_confirmed_by_value": {"type": "text", "index": 112, "name": "problem_confirmed_by_value", "comment": null}, "problem_confirmer_email": {"type": "text", "index": 113, "name": "problem_confirmer_email", "comment": null}, "problem_confirmer_manager_value": {"type": "text", "index": 114, "name": "problem_confirmer_manager_value", "comment": null}, "problem_confirmer_department_value": {"type": "text", "index": 115, "name": "problem_confirmer_department_value", "comment": null}, "problem_confirmer_name": {"type": "text", "index": 116, "name": "problem_confirmer_name", "comment": null}, "problem_confirmer_roles": {"type": "integer", "index": 117, "name": "problem_confirmer_roles", "comment": null}, "problem_first_reported_by_task_value": {"type": "character varying", "index": 118, "name": "problem_first_reported_by_task_value", "comment": null}, "problem_reporter_email": {"type": "text", "index": 119, "name": "problem_reporter_email", "comment": null}, "problem_reporter_manager_value": {"type": "text", "index": 120, "name": "problem_reporter_manager_value", "comment": null}, "problem_reporter_department_value": {"type": "text", "index": 121, "name": "problem_reporter_department_value", "comment": null}, "problem_reporter_name": {"type": "text", "index": 122, "name": "problem_reporter_name", "comment": null}, "problem_reporter_roles": {"type": "integer", "index": 123, "name": "problem_reporter_roles", "comment": null}, "problem_fix_at": {"type": "integer", "index": 124, "name": "problem_fix_at", "comment": null}, "problem_fix_by_value": {"type": "text", "index": 125, "name": "problem_fix_by_value", "comment": null}, "problem_fixer_email": {"type": "text", "index": 126, "name": "problem_fixer_email", "comment": null}, "problem_fixer_manager_value": {"type": "text", "index": 127, "name": "problem_fixer_manager_value", "comment": null}, "problem_fixer_department_value": {"type": "text", "index": 128, "name": "problem_fixer_department_value", "comment": null}, "problem_fixer_name": {"type": "text", "index": 129, "name": "problem_fixer_name", "comment": null}, "problem_fixer_roles": {"type": "integer", "index": 130, "name": "problem_fixer_roles", "comment": null}, "problem_fix_notes": {"type": "integer", "index": 131, "name": "problem_fix_notes", "comment": null}, "problem_is_known_error": {"type": "boolean", "index": 132, "name": "problem_is_known_error", "comment": null}, "is_major_problem": {"type": "boolean", "index": 133, "name": "is_major_problem", "comment": null}, "problem_state": {"type": "integer", "index": 134, "name": "problem_state", "comment": null}, "problem_related_incidents": {"type": "integer", "index": 135, "name": "problem_related_incidents", "comment": null}, "problem_resolution_code": {"type": "integer", "index": 136, "name": "problem_resolution_code", "comment": null}, "problem_resolved_at": {"type": "timestamp without time zone", "index": 137, "name": "problem_resolved_at", "comment": null}, "problem_resolved_by_value": {"type": "text", "index": 138, "name": "problem_resolved_by_value", "comment": null}, "workaround_applied": {"type": "boolean", "index": 139, "name": "workaround_applied", "comment": null}, "problem_resolver_email": {"type": "text", "index": 140, "name": "problem_resolver_email", "comment": null}, "problem_resolver_manager_value": {"type": "text", "index": 141, "name": "problem_resolver_manager_value", "comment": null}, "problem_resolver_department_value": {"type": "text", "index": 142, "name": "problem_resolver_department_value", "comment": null}, "problem_resolver_name": {"type": "text", "index": 143, "name": "problem_resolver_name", "comment": null}, "problem_resolver_roles": {"type": "integer", "index": 144, "name": "problem_resolver_roles", "comment": null}, "problem_subcategory": {"type": "text", "index": 145, "name": "problem_subcategory", "comment": null}, "problem_created_at": {"type": "timestamp without time zone", "index": 146, "name": "problem_created_at", "comment": null}, "problem_updated_at": {"type": "timestamp without time zone", "index": 147, "name": "problem_updated_at", "comment": null}, "change_task_type": {"type": "integer", "index": 148, "name": "change_task_type", "comment": null}, "change_task_close_code": {"type": "text", "index": 149, "name": "change_task_close_code", "comment": null}, "change_task_created_from": {"type": "integer", "index": 150, "name": "change_task_created_from", "comment": null}, "is_change_on_hold": {"type": "boolean", "index": 151, "name": "is_change_on_hold", "comment": null}, "change_on_hold_reason": {"type": "integer", "index": 152, "name": "change_on_hold_reason", "comment": null}, "change_task_planned_end_date": {"type": "integer", "index": 153, "name": "change_task_planned_end_date", "comment": null}, "change_task_planned_start_date": {"type": "integer", "index": 154, "name": "change_task_planned_start_date", "comment": null}, "associated_change_request_id": {"type": "text", "index": 155, "name": "associated_change_request_id", "comment": null}, "change_request_created_at": {"type": "timestamp without time zone", "index": 156, "name": "change_request_created_at", "comment": null}, "change_request_updated_at": {"type": "timestamp without time zone", "index": 157, "name": "change_request_updated_at", "comment": null}, "change_request_category": {"type": "text", "index": 158, "name": "change_request_category", "comment": null}, "change_plan": {"type": "integer", "index": 159, "name": "change_plan", "comment": null}, "change_request_close_code": {"type": "integer", "index": 160, "name": "change_request_close_code", "comment": null}, "change_request_end_date": {"type": "timestamp without time zone", "index": 161, "name": "change_request_end_date", "comment": null}, "change_request_implementation_plan": {"type": "text", "index": 162, "name": "change_request_implementation_plan", "comment": null}, "change_request_justification": {"type": "integer", "index": 163, "name": "change_request_justification", "comment": null}, "is_change_request_on_hold": {"type": "boolean", "index": 164, "name": "is_change_request_on_hold", "comment": null}, "change_request_on_hold_reason": {"type": "integer", "index": 165, "name": "change_request_on_hold_reason", "comment": null}, "change_request_phase": {"type": "integer", "index": 166, "name": "change_request_phase", "comment": null}, "change_request_phase_state": {"type": "text", "index": 167, "name": "change_request_phase_state", "comment": null}, "change_request_reason": {"type": "integer", "index": 168, "name": "change_request_reason", "comment": null}, "change_requested_by_date": {"type": "integer", "index": 169, "name": "change_requested_by_date", "comment": null}, "change_requested_by_value": {"type": "text", "index": 170, "name": "change_requested_by_value", "comment": null}, "change_requester_email": {"type": "text", "index": 171, "name": "change_requester_email", "comment": null}, "change_requester_manager_value": {"type": "text", "index": 172, "name": "change_requester_manager_value", "comment": null}, "change_requester_department_value": {"type": "text", "index": 173, "name": "change_requester_department_value", "comment": null}, "change_requester_name": {"type": "text", "index": 174, "name": "change_requester_name", "comment": null}, "change_requester_roles": {"type": "integer", "index": 175, "name": "change_requester_roles", "comment": null}, "change_request_review_date": {"type": "integer", "index": 176, "name": "change_request_review_date", "comment": null}, "change_request_review_status": {"type": "integer", "index": 177, "name": "change_request_review_status", "comment": null}, "change_request_risk": {"type": "integer", "index": 178, "name": "change_request_risk", "comment": null}, "change_request_scope": {"type": "integer", "index": 179, "name": "change_request_scope", "comment": null}, "change_request_start_date": {"type": "timestamp without time zone", "index": 180, "name": "change_request_start_date", "comment": null}, "change_request_test_plan": {"type": "integer", "index": 181, "name": "change_request_test_plan", "comment": null}, "change_request_type": {"type": "text", "index": 182, "name": "change_request_type", "comment": null}, "is_change_request_unauthorized": {"type": "boolean", "index": 183, "name": "is_change_request_unauthorized", "comment": null}, "source_relation": {"type": "text", "index": 184, "name": "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.servicenow.servicenow__task_enhanced"}, "model.servicenow.stg_servicenow__change_request": {"metadata": {"type": "VIEW", "schema": "reddit_ads_integration_tests_3_stg_servicenow", "name": "stg_servicenow__change_request", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "change_request_id": {"type": "text", "index": 2, "name": "change_request_id", "comment": null}, "change_request_created_at": {"type": "timestamp without time zone", "index": 3, "name": "change_request_created_at", "comment": null}, "change_request_updated_at": {"type": "timestamp without time zone", "index": 4, "name": "change_request_updated_at", "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}, "backout_plan": {"type": "text", "index": 7, "name": "backout_plan", "comment": null}, "cab_date": {"type": "integer", "index": 8, "name": "cab_date", "comment": null}, "cab_date_time": {"type": "integer", "index": 9, "name": "cab_date_time", "comment": null}, "cab_delegate_link": {"type": "integer", "index": 10, "name": "cab_delegate_link", "comment": null}, "cab_delegate_value": {"type": "text", "index": 11, "name": "cab_delegate_value", "comment": null}, "cab_recommendation": {"type": "integer", "index": 12, "name": "cab_recommendation", "comment": null}, "is_cab_required": {"type": "boolean", "index": 13, "name": "is_cab_required", "comment": null}, "change_request_category": {"type": "text", "index": 14, "name": "change_request_category", "comment": null}, "change_plan": {"type": "integer", "index": 15, "name": "change_plan", "comment": null}, "chg_model_link": {"type": "integer", "index": 16, "name": "chg_model_link", "comment": null}, "chg_model_value": {"type": "text", "index": 17, "name": "chg_model_value", "comment": null}, "change_request_close_code": {"type": "integer", "index": 18, "name": "change_request_close_code", "comment": null}, "conflict_last_run": {"type": "timestamp without time zone", "index": 19, "name": "conflict_last_run", "comment": null}, "conflict_status": {"type": "text", "index": 20, "name": "conflict_status", "comment": null}, "change_request_end_date": {"type": "timestamp without time zone", "index": 21, "name": "change_request_end_date", "comment": null}, "change_request_implementation_plan": {"type": "text", "index": 22, "name": "change_request_implementation_plan", "comment": null}, "change_request_justification": {"type": "integer", "index": 23, "name": "change_request_justification", "comment": null}, "is_change_request_on_hold": {"type": "boolean", "index": 24, "name": "is_change_request_on_hold", "comment": null}, "change_request_on_hold_reason": {"type": "integer", "index": 25, "name": "change_request_on_hold_reason", "comment": null}, "on_hold_task": {"type": "integer", "index": 26, "name": "on_hold_task", "comment": null}, "outside_maintenance_schedule": {"type": "boolean", "index": 27, "name": "outside_maintenance_schedule", "comment": null}, "change_request_phase": {"type": "integer", "index": 28, "name": "change_request_phase", "comment": null}, "change_request_phase_state": {"type": "text", "index": 29, "name": "change_request_phase_state", "comment": null}, "is_production_system": {"type": "boolean", "index": 30, "name": "is_production_system", "comment": null}, "change_request_reason": {"type": "integer", "index": 31, "name": "change_request_reason", "comment": null}, "change_requested_by_date": {"type": "integer", "index": 32, "name": "change_requested_by_date", "comment": null}, "change_requested_by_link": {"type": "text", "index": 33, "name": "change_requested_by_link", "comment": null}, "change_requested_by_value": {"type": "text", "index": 34, "name": "change_requested_by_value", "comment": null}, "review_comments": {"type": "integer", "index": 35, "name": "review_comments", "comment": null}, "change_request_review_date": {"type": "integer", "index": 36, "name": "change_request_review_date", "comment": null}, "change_request_review_status": {"type": "integer", "index": 37, "name": "change_request_review_status", "comment": null}, "change_request_risk": {"type": "integer", "index": 38, "name": "change_request_risk", "comment": null}, "risk_impact_analysis": {"type": "integer", "index": 39, "name": "risk_impact_analysis", "comment": null}, "change_request_scope": {"type": "integer", "index": 40, "name": "change_request_scope", "comment": null}, "change_request_start_date": {"type": "timestamp without time zone", "index": 41, "name": "change_request_start_date", "comment": null}, "change_request_test_plan": {"type": "integer", "index": 42, "name": "change_request_test_plan", "comment": null}, "change_request_type": {"type": "text", "index": 43, "name": "change_request_type", "comment": null}, "is_change_request_unauthorized": {"type": "boolean", "index": 44, "name": "is_change_request_unauthorized", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.servicenow.stg_servicenow__change_request"}, "model.servicenow.stg_servicenow__change_request_base": {"metadata": {"type": "VIEW", "schema": "reddit_ads_integration_tests_3_stg_servicenow", "name": "stg_servicenow__change_request_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"sys_id": {"type": "character varying", "index": 1, "name": "sys_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}, "backout_plan": {"type": "text", "index": 4, "name": "backout_plan", "comment": null}, "cab_date": {"type": "integer", "index": 5, "name": "cab_date", "comment": null}, "cab_date_time": {"type": "integer", "index": 6, "name": "cab_date_time", "comment": null}, "cab_delegate_link": {"type": "integer", "index": 7, "name": "cab_delegate_link", "comment": null}, "cab_delegate_value": {"type": "integer", "index": 8, "name": "cab_delegate_value", "comment": null}, "cab_recommendation": {"type": "integer", "index": 9, "name": "cab_recommendation", "comment": null}, "cab_required": {"type": "boolean", "index": 10, "name": "cab_required", "comment": null}, "category": {"type": "text", "index": 11, "name": "category", "comment": null}, "change_plan": {"type": "integer", "index": 12, "name": "change_plan", "comment": null}, "chg_model_link": {"type": "integer", "index": 13, "name": "chg_model_link", "comment": null}, "chg_model_value": {"type": "integer", "index": 14, "name": "chg_model_value", "comment": null}, "close_code": {"type": "integer", "index": 15, "name": "close_code", "comment": null}, "conflict_last_run": {"type": "timestamp without time zone", "index": 16, "name": "conflict_last_run", "comment": null}, "conflict_status": {"type": "text", "index": 17, "name": "conflict_status", "comment": null}, "end_date": {"type": "timestamp without time zone", "index": 18, "name": "end_date", "comment": null}, "implementation_plan": {"type": "text", "index": 19, "name": "implementation_plan", "comment": null}, "justification": {"type": "integer", "index": 20, "name": "justification", "comment": null}, "on_hold": {"type": "boolean", "index": 21, "name": "on_hold", "comment": null}, "on_hold_reason": {"type": "integer", "index": 22, "name": "on_hold_reason", "comment": null}, "on_hold_task": {"type": "integer", "index": 23, "name": "on_hold_task", "comment": null}, "outside_maintenance_schedule": {"type": "boolean", "index": 24, "name": "outside_maintenance_schedule", "comment": null}, "phase": {"type": "integer", "index": 25, "name": "phase", "comment": null}, "phase_state": {"type": "text", "index": 26, "name": "phase_state", "comment": null}, "production_system": {"type": "boolean", "index": 27, "name": "production_system", "comment": null}, "reason": {"type": "integer", "index": 28, "name": "reason", "comment": null}, "requested_by_date": {"type": "integer", "index": 29, "name": "requested_by_date", "comment": null}, "requested_by_link": {"type": "text", "index": 30, "name": "requested_by_link", "comment": null}, "requested_by_value": {"type": "character varying", "index": 31, "name": "requested_by_value", "comment": null}, "review_comments": {"type": "integer", "index": 32, "name": "review_comments", "comment": null}, "review_date": {"type": "integer", "index": 33, "name": "review_date", "comment": null}, "review_status": {"type": "integer", "index": 34, "name": "review_status", "comment": null}, "risk": {"type": "integer", "index": 35, "name": "risk", "comment": null}, "risk_impact_analysis": {"type": "integer", "index": 36, "name": "risk_impact_analysis", "comment": null}, "scope": {"type": "integer", "index": 37, "name": "scope", "comment": null}, "start_date": {"type": "timestamp without time zone", "index": 38, "name": "start_date", "comment": null}, "std_change_producer_version_link": {"type": "integer", "index": 39, "name": "std_change_producer_version_link", "comment": null}, "std_change_producer_version_value": {"type": "integer", "index": 40, "name": "std_change_producer_version_value", "comment": null}, "sys_created_on": {"type": "timestamp without time zone", "index": 41, "name": "sys_created_on", "comment": null}, "sys_updated_on": {"type": "timestamp without time zone", "index": 42, "name": "sys_updated_on", "comment": null}, "test_plan": {"type": "integer", "index": 43, "name": "test_plan", "comment": null}, "type": {"type": "text", "index": 44, "name": "type", "comment": null}, "unauthorized": {"type": "boolean", "index": 45, "name": "unauthorized", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.servicenow.stg_servicenow__change_request_base"}, "model.servicenow.stg_servicenow__change_task": {"metadata": {"type": "VIEW", "schema": "reddit_ads_integration_tests_3_stg_servicenow", "name": "stg_servicenow__change_task", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "change_task_id": {"type": "text", "index": 2, "name": "change_task_id", "comment": null}, "change_task_created_at": {"type": "timestamp without time zone", "index": 3, "name": "change_task_created_at", "comment": null}, "change_task_updated_at": {"type": "timestamp without time zone", "index": 4, "name": "change_task_updated_at", "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}, "change_request_link": {"type": "text", "index": 7, "name": "change_request_link", "comment": null}, "change_request_value": {"type": "text", "index": 8, "name": "change_request_value", "comment": null}, "change_task_type": {"type": "integer", "index": 9, "name": "change_task_type", "comment": null}, "change_task_close_code": {"type": "text", "index": 10, "name": "change_task_close_code", "comment": null}, "change_task_created_from": {"type": "integer", "index": 11, "name": "change_task_created_from", "comment": null}, "is_change_on_hold": {"type": "boolean", "index": 12, "name": "is_change_on_hold", "comment": null}, "change_on_hold_reason": {"type": "integer", "index": 13, "name": "change_on_hold_reason", "comment": null}, "change_task_planned_end_date": {"type": "integer", "index": 14, "name": "change_task_planned_end_date", "comment": null}, "change_task_planned_start_date": {"type": "integer", "index": 15, "name": "change_task_planned_start_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.servicenow.stg_servicenow__change_task"}, "model.servicenow.stg_servicenow__change_task_base": {"metadata": {"type": "VIEW", "schema": "reddit_ads_integration_tests_3_stg_servicenow", "name": "stg_servicenow__change_task_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"sys_id": {"type": "character varying", "index": 1, "name": "sys_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}, "change_request_link": {"type": "text", "index": 4, "name": "change_request_link", "comment": null}, "change_request_value": {"type": "character varying", "index": 5, "name": "change_request_value", "comment": null}, "change_task_type": {"type": "integer", "index": 6, "name": "change_task_type", "comment": null}, "close_code": {"type": "text", "index": 7, "name": "close_code", "comment": null}, "created_from": {"type": "integer", "index": 8, "name": "created_from", "comment": null}, "on_hold": {"type": "boolean", "index": 9, "name": "on_hold", "comment": null}, "on_hold_reason": {"type": "integer", "index": 10, "name": "on_hold_reason", "comment": null}, "planned_end_date": {"type": "integer", "index": 11, "name": "planned_end_date", "comment": null}, "planned_start_date": {"type": "integer", "index": 12, "name": "planned_start_date", "comment": null}, "sys_created_on": {"type": "timestamp without time zone", "index": 13, "name": "sys_created_on", "comment": null}, "sys_updated_on": {"type": "timestamp without time zone", "index": 14, "name": "sys_updated_on", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.servicenow.stg_servicenow__change_task_base"}, "model.servicenow.stg_servicenow__cmdb_ci": {"metadata": {"type": "VIEW", "schema": "reddit_ads_integration_tests_3_stg_servicenow", "name": "stg_servicenow__cmdb_ci", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "cmdb_ci_id": {"type": "text", "index": 2, "name": "cmdb_ci_id", "comment": null}, "cmdb_ci_created_at": {"type": "timestamp without time zone", "index": 3, "name": "cmdb_ci_created_at", "comment": null}, "cmdb_ci_updated_at": {"type": "timestamp without time zone", "index": 4, "name": "cmdb_ci_updated_at", "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}, "attributes": {"type": "text", "index": 7, "name": "attributes", "comment": null}, "business_unit_link": {"type": "text", "index": 8, "name": "business_unit_link", "comment": null}, "business_unit_value": {"type": "text", "index": 9, "name": "business_unit_value", "comment": null}, "category": {"type": "text", "index": 10, "name": "category", "comment": null}, "company_link": {"type": "text", "index": 11, "name": "company_link", "comment": null}, "company_value": {"type": "text", "index": 12, "name": "company_value", "comment": null}, "cost": {"type": "double precision", "index": 13, "name": "cost", "comment": null}, "cost_cc": {"type": "text", "index": 14, "name": "cost_cc", "comment": null}, "cost_center_link": {"type": "text", "index": 15, "name": "cost_center_link", "comment": null}, "cost_center_value": {"type": "text", "index": 16, "name": "cost_center_value", "comment": null}, "managed_by_link": {"type": "text", "index": 17, "name": "managed_by_link", "comment": null}, "managed_by_value": {"type": "text", "index": 18, "name": "managed_by_value", "comment": null}, "manufacturer_link": {"type": "text", "index": 19, "name": "manufacturer_link", "comment": null}, "manufacturer_value": {"type": "text", "index": 20, "name": "manufacturer_value", "comment": null}, "model_id_link": {"type": "text", "index": 21, "name": "model_id_link", "comment": null}, "model_id_value": {"type": "text", "index": 22, "name": "model_id_value", "comment": null}, "model_number": {"type": "text", "index": 23, "name": "model_number", "comment": null}, "cmdb_ci_name": {"type": "text", "index": 24, "name": "cmdb_ci_name", "comment": null}, "owned_by_link": {"type": "text", "index": 25, "name": "owned_by_link", "comment": null}, "owned_by_value": {"type": "text", "index": 26, "name": "owned_by_value", "comment": null}, "subcategory": {"type": "text", "index": 27, "name": "subcategory", "comment": null}, "sys_class_name": {"type": "text", "index": 28, "name": "sys_class_name", "comment": null}, "sys_class_path": {"type": "text", "index": 29, "name": "sys_class_path", "comment": null}, "sys_created_by": {"type": "text", "index": 30, "name": "sys_created_by", "comment": null}, "sys_domain_link": {"type": "text", "index": 31, "name": "sys_domain_link", "comment": null}, "sys_domain_path": {"type": "text", "index": 32, "name": "sys_domain_path", "comment": null}, "sys_domain_value": {"type": "text", "index": 33, "name": "sys_domain_value", "comment": null}, "sys_mod_count": {"type": "integer", "index": 34, "name": "sys_mod_count", "comment": null}, "sys_updated_by": {"type": "text", "index": 35, "name": "sys_updated_by", "comment": null}, "unverified": {"type": "boolean", "index": 36, "name": "unverified", "comment": null}, "vendor_link": {"type": "text", "index": 37, "name": "vendor_link", "comment": null}, "vendor_value": {"type": "text", "index": 38, "name": "vendor_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.servicenow.stg_servicenow__cmdb_ci"}, "model.servicenow.stg_servicenow__cmdb_ci_base": {"metadata": {"type": "VIEW", "schema": "reddit_ads_integration_tests_3_stg_servicenow", "name": "stg_servicenow__cmdb_ci_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_dbt_source_relation": {"type": "text", "index": 1, "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.servicenow.stg_servicenow__cmdb_ci_base"}, "model.servicenow.stg_servicenow__cmdb_ci_service": {"metadata": {"type": "VIEW", "schema": "reddit_ads_integration_tests_3_stg_servicenow", "name": "stg_servicenow__cmdb_ci_service", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "cmdb_ci_service_id": {"type": "text", "index": 2, "name": "cmdb_ci_service_id", "comment": null}, "cmdb_ci_service_created_at": {"type": "timestamp without time zone", "index": 3, "name": "cmdb_ci_service_created_at", "comment": null}, "cmdb_ci_service_updated_at": {"type": "timestamp without time zone", "index": 4, "name": "cmdb_ci_service_updated_at", "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}, "attributes": {"type": "text", "index": 7, "name": "attributes", "comment": null}, "business_unit_link": {"type": "text", "index": 8, "name": "business_unit_link", "comment": null}, "business_unit_value": {"type": "text", "index": 9, "name": "business_unit_value", "comment": null}, "category": {"type": "text", "index": 10, "name": "category", "comment": null}, "company_link": {"type": "text", "index": 11, "name": "company_link", "comment": null}, "company_value": {"type": "text", "index": 12, "name": "company_value", "comment": null}, "cost": {"type": "double precision", "index": 13, "name": "cost", "comment": null}, "cost_cc": {"type": "text", "index": 14, "name": "cost_cc", "comment": null}, "cost_center_link": {"type": "text", "index": 15, "name": "cost_center_link", "comment": null}, "cost_center_value": {"type": "text", "index": 16, "name": "cost_center_value", "comment": null}, "managed_by_link": {"type": "text", "index": 17, "name": "managed_by_link", "comment": null}, "managed_by_value": {"type": "text", "index": 18, "name": "managed_by_value", "comment": null}, "manufacturer_link": {"type": "text", "index": 19, "name": "manufacturer_link", "comment": null}, "manufacturer_value": {"type": "text", "index": 20, "name": "manufacturer_value", "comment": null}, "model_id_link": {"type": "text", "index": 21, "name": "model_id_link", "comment": null}, "model_id_value": {"type": "text", "index": 22, "name": "model_id_value", "comment": null}, "model_number": {"type": "text", "index": 23, "name": "model_number", "comment": null}, "monitor": {"type": "boolean", "index": 24, "name": "monitor", "comment": null}, "cmdb_ci_service_name": {"type": "text", "index": 25, "name": "cmdb_ci_service_name", "comment": null}, "owned_by_link": {"type": "text", "index": 26, "name": "owned_by_link", "comment": null}, "owned_by_value": {"type": "text", "index": 27, "name": "owned_by_value", "comment": null}, "service_classification": {"type": "text", "index": 28, "name": "service_classification", "comment": null}, "service_level_requirement": {"type": "text", "index": 29, "name": "service_level_requirement", "comment": null}, "short_description": {"type": "text", "index": 30, "name": "short_description", "comment": null}, "sla_link": {"type": "text", "index": 31, "name": "sla_link", "comment": null}, "sla_value": {"type": "text", "index": 32, "name": "sla_value", "comment": null}, "cmdb_ci_service_state": {"type": "text", "index": 33, "name": "cmdb_ci_service_state", "comment": null}, "subcategory": {"type": "text", "index": 34, "name": "subcategory", "comment": null}, "sys_class_name": {"type": "text", "index": 35, "name": "sys_class_name", "comment": null}, "sys_class_path": {"type": "text", "index": 36, "name": "sys_class_path", "comment": null}, "sys_created_by": {"type": "text", "index": 37, "name": "sys_created_by", "comment": null}, "sys_domain_link": {"type": "text", "index": 38, "name": "sys_domain_link", "comment": null}, "sys_domain_path": {"type": "text", "index": 39, "name": "sys_domain_path", "comment": null}, "sys_domain_value": {"type": "text", "index": 40, "name": "sys_domain_value", "comment": null}, "sys_mod_count": {"type": "integer", "index": 41, "name": "sys_mod_count", "comment": null}, "sys_updated_by": {"type": "text", "index": 42, "name": "sys_updated_by", "comment": null}, "vendor_link": {"type": "text", "index": 43, "name": "vendor_link", "comment": null}, "vendor_value": {"type": "text", "index": 44, "name": "vendor_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.servicenow.stg_servicenow__cmdb_ci_service"}, "model.servicenow.stg_servicenow__cmdb_ci_service_base": {"metadata": {"type": "VIEW", "schema": "reddit_ads_integration_tests_3_stg_servicenow", "name": "stg_servicenow__cmdb_ci_service_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_dbt_source_relation": {"type": "text", "index": 1, "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.servicenow.stg_servicenow__cmdb_ci_service_base"}, "model.servicenow.stg_servicenow__core_company": {"metadata": {"type": "VIEW", "schema": "reddit_ads_integration_tests_3_stg_servicenow", "name": "stg_servicenow__core_company", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "core_company_id": {"type": "text", "index": 2, "name": "core_company_id", "comment": null}, "company_city": {"type": "text", "index": 3, "name": "company_city", "comment": null}, "company_country": {"type": "text", "index": 4, "name": "company_country", "comment": null}, "is_customer": {"type": "boolean", "index": 5, "name": "is_customer", "comment": null}, "company_fax_phone": {"type": "text", "index": 6, "name": "company_fax_phone", "comment": null}, "fiscal_year": {"type": "text", "index": 7, "name": "fiscal_year", "comment": null}, "company_name": {"type": "text", "index": 8, "name": "company_name", "comment": null}, "notes": {"type": "text", "index": 9, "name": "notes", "comment": null}, "company_phone": {"type": "text", "index": 10, "name": "company_phone", "comment": null}, "company_state": {"type": "text", "index": 11, "name": "company_state", "comment": null}, "company_street": {"type": "text", "index": 12, "name": "company_street", "comment": null}, "sys_class_name": {"type": "text", "index": 13, "name": "sys_class_name", "comment": null}, "sys_created_by": {"type": "text", "index": 14, "name": "sys_created_by", "comment": null}, "sys_created_on": {"type": "text", "index": 15, "name": "sys_created_on", "comment": null}, "sys_mod_count": {"type": "integer", "index": 16, "name": "sys_mod_count", "comment": null}, "sys_updated_by": {"type": "text", "index": 17, "name": "sys_updated_by", "comment": null}, "sys_updated_on": {"type": "timestamp without time zone", "index": 18, "name": "sys_updated_on", "comment": null}, "is_vendor": {"type": "boolean", "index": 19, "name": "is_vendor", "comment": null}, "vendor_type": {"type": "text", "index": 20, "name": "vendor_type", "comment": null}, "company_website": {"type": "text", "index": 21, "name": "company_website", "comment": null}, "company_zip": {"type": "integer", "index": 22, "name": "company_zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.servicenow.stg_servicenow__core_company"}, "model.servicenow.stg_servicenow__core_company_base": {"metadata": {"type": "VIEW", "schema": "reddit_ads_integration_tests_3_stg_servicenow", "name": "stg_servicenow__core_company_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_dbt_source_relation": {"type": "text", "index": 1, "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.servicenow.stg_servicenow__core_company_base"}, "model.servicenow.stg_servicenow__incident": {"metadata": {"type": "VIEW", "schema": "reddit_ads_integration_tests_3_stg_servicenow", "name": "stg_servicenow__incident", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "incident_id": {"type": "text", "index": 2, "name": "incident_id", "comment": null}, "incident_created_at": {"type": "timestamp without time zone", "index": 3, "name": "incident_created_at", "comment": null}, "incident_updated_at": {"type": "timestamp without time zone", "index": 4, "name": "incident_updated_at", "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}, "business_impact": {"type": "integer", "index": 7, "name": "business_impact", "comment": null}, "business_stc": {"type": "integer", "index": 8, "name": "business_stc", "comment": null}, "calendar_stc": {"type": "integer", "index": 9, "name": "calendar_stc", "comment": null}, "caller_id_link": {"type": "text", "index": 10, "name": "caller_id_link", "comment": null}, "caller_id_value": {"type": "text", "index": 11, "name": "caller_id_value", "comment": null}, "category": {"type": "text", "index": 12, "name": "category", "comment": null}, "cause": {"type": "integer", "index": 13, "name": "cause", "comment": null}, "caused_by_link": {"type": "integer", "index": 14, "name": "caused_by_link", "comment": null}, "caused_by_value": {"type": "text", "index": 15, "name": "caused_by_value", "comment": null}, "child_incidents": {"type": "integer", "index": 16, "name": "child_incidents", "comment": null}, "close_code": {"type": "integer", "index": 17, "name": "close_code", "comment": null}, "hold_reason": {"type": "integer", "index": 18, "name": "hold_reason", "comment": null}, "incident_state": {"type": "integer", "index": 19, "name": "incident_state", "comment": null}, "notify": {"type": "integer", "index": 20, "name": "notify", "comment": null}, "origin_id_link": {"type": "integer", "index": 21, "name": "origin_id_link", "comment": null}, "origin_id_value": {"type": "text", "index": 22, "name": "origin_id_value", "comment": null}, "parent_incident_link": {"type": "integer", "index": 23, "name": "parent_incident_link", "comment": null}, "parent_incident_value": {"type": "text", "index": 24, "name": "parent_incident_value", "comment": null}, "problem_id_link": {"type": "text", "index": 25, "name": "problem_id_link", "comment": null}, "problem_id_value": {"type": "text", "index": 26, "name": "problem_id_value", "comment": null}, "reopen_count": {"type": "integer", "index": 27, "name": "reopen_count", "comment": null}, "reopened_by_link": {"type": "integer", "index": 28, "name": "reopened_by_link", "comment": null}, "reopened_by_value": {"type": "text", "index": 29, "name": "reopened_by_value", "comment": null}, "reopened_time": {"type": "integer", "index": 30, "name": "reopened_time", "comment": null}, "resolved_at": {"type": "timestamp without time zone", "index": 31, "name": "resolved_at", "comment": null}, "resolved_by_link": {"type": "integer", "index": 32, "name": "resolved_by_link", "comment": null}, "resolved_by_value": {"type": "text", "index": 33, "name": "resolved_by_value", "comment": null}, "rfc_link": {"type": "integer", "index": 34, "name": "rfc_link", "comment": null}, "rfc_value": {"type": "text", "index": 35, "name": "rfc_value", "comment": null}, "severity": {"type": "integer", "index": 36, "name": "severity", "comment": null}, "subcategory": {"type": "integer", "index": 37, "name": "subcategory", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.servicenow.stg_servicenow__incident"}, "model.servicenow.stg_servicenow__incident_base": {"metadata": {"type": "VIEW", "schema": "reddit_ads_integration_tests_3_stg_servicenow", "name": "stg_servicenow__incident_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"sys_id": {"type": "character varying", "index": 1, "name": "sys_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}, "business_impact": {"type": "integer", "index": 4, "name": "business_impact", "comment": null}, "business_stc": {"type": "integer", "index": 5, "name": "business_stc", "comment": null}, "calendar_stc": {"type": "integer", "index": 6, "name": "calendar_stc", "comment": null}, "caller_id_link": {"type": "text", "index": 7, "name": "caller_id_link", "comment": null}, "caller_id_value": {"type": "text", "index": 8, "name": "caller_id_value", "comment": null}, "category": {"type": "text", "index": 9, "name": "category", "comment": null}, "cause": {"type": "integer", "index": 10, "name": "cause", "comment": null}, "caused_by_link": {"type": "integer", "index": 11, "name": "caused_by_link", "comment": null}, "caused_by_value": {"type": "integer", "index": 12, "name": "caused_by_value", "comment": null}, "child_incidents": {"type": "integer", "index": 13, "name": "child_incidents", "comment": null}, "close_code": {"type": "integer", "index": 14, "name": "close_code", "comment": null}, "hold_reason": {"type": "integer", "index": 15, "name": "hold_reason", "comment": null}, "incident_state": {"type": "integer", "index": 16, "name": "incident_state", "comment": null}, "notify": {"type": "integer", "index": 17, "name": "notify", "comment": null}, "origin_id_link": {"type": "integer", "index": 18, "name": "origin_id_link", "comment": null}, "origin_id_value": {"type": "integer", "index": 19, "name": "origin_id_value", "comment": null}, "parent_incident_link": {"type": "integer", "index": 20, "name": "parent_incident_link", "comment": null}, "parent_incident_value": {"type": "integer", "index": 21, "name": "parent_incident_value", "comment": null}, "problem_id_link": {"type": "text", "index": 22, "name": "problem_id_link", "comment": null}, "problem_id_value": {"type": "text", "index": 23, "name": "problem_id_value", "comment": null}, "reopen_count": {"type": "integer", "index": 24, "name": "reopen_count", "comment": null}, "reopened_by_link": {"type": "integer", "index": 25, "name": "reopened_by_link", "comment": null}, "reopened_by_value": {"type": "integer", "index": 26, "name": "reopened_by_value", "comment": null}, "reopened_time": {"type": "integer", "index": 27, "name": "reopened_time", "comment": null}, "resolved_at": {"type": "timestamp without time zone", "index": 28, "name": "resolved_at", "comment": null}, "resolved_by_link": {"type": "integer", "index": 29, "name": "resolved_by_link", "comment": null}, "resolved_by_value": {"type": "character varying", "index": 30, "name": "resolved_by_value", "comment": null}, "rfc_link": {"type": "integer", "index": 31, "name": "rfc_link", "comment": null}, "rfc_value": {"type": "integer", "index": 32, "name": "rfc_value", "comment": null}, "severity": {"type": "integer", "index": 33, "name": "severity", "comment": null}, "subcategory": {"type": "integer", "index": 34, "name": "subcategory", "comment": null}, "sys_created_on": {"type": "timestamp without time zone", "index": 35, "name": "sys_created_on", "comment": null}, "sys_updated_on": {"type": "timestamp without time zone", "index": 36, "name": "sys_updated_on", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.servicenow.stg_servicenow__incident_base"}, "model.servicenow.stg_servicenow__problem": {"metadata": {"type": "VIEW", "schema": "reddit_ads_integration_tests_3_stg_servicenow", "name": "stg_servicenow__problem", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "problem_id": {"type": "text", "index": 2, "name": "problem_id", "comment": null}, "problem_created_at": {"type": "timestamp without time zone", "index": 3, "name": "problem_created_at", "comment": null}, "problem_updated_at": {"type": "timestamp without time zone", "index": 4, "name": "problem_updated_at", "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}, "problem_category": {"type": "text", "index": 7, "name": "problem_category", "comment": null}, "cause_notes": {"type": "integer", "index": 8, "name": "cause_notes", "comment": null}, "problem_confirmed_at": {"type": "integer", "index": 9, "name": "problem_confirmed_at", "comment": null}, "problem_confirmed_by_link": {"type": "integer", "index": 10, "name": "problem_confirmed_by_link", "comment": null}, "problem_confirmed_by_value": {"type": "text", "index": 11, "name": "problem_confirmed_by_value", "comment": null}, "duplicate_of_link": {"type": "integer", "index": 12, "name": "duplicate_of_link", "comment": null}, "duplicate_of_value": {"type": "text", "index": 13, "name": "duplicate_of_value", "comment": null}, "problem_first_reported_by_task_link": {"type": "integer", "index": 14, "name": "problem_first_reported_by_task_link", "comment": null}, "problem_first_reported_by_task_value": {"type": "character varying", "index": 15, "name": "problem_first_reported_by_task_value", "comment": null}, "problem_fix_at": {"type": "integer", "index": 16, "name": "problem_fix_at", "comment": null}, "problem_fix_by_link": {"type": "integer", "index": 17, "name": "problem_fix_by_link", "comment": null}, "problem_fix_by_value": {"type": "text", "index": 18, "name": "problem_fix_by_value", "comment": null}, "fix_communicated_at": {"type": "integer", "index": 19, "name": "fix_communicated_at", "comment": null}, "fix_communicated_by_link": {"type": "integer", "index": 20, "name": "fix_communicated_by_link", "comment": null}, "fix_communicated_by_value": {"type": "text", "index": 21, "name": "fix_communicated_by_value", "comment": null}, "problem_fix_notes": {"type": "integer", "index": 22, "name": "problem_fix_notes", "comment": null}, "is_known_error": {"type": "boolean", "index": 23, "name": "is_known_error", "comment": null}, "is_major_problem": {"type": "boolean", "index": 24, "name": "is_major_problem", "comment": null}, "problem_state": {"type": "integer", "index": 25, "name": "problem_state", "comment": null}, "problem_related_incidents": {"type": "integer", "index": 26, "name": "problem_related_incidents", "comment": null}, "reopen_count": {"type": "integer", "index": 27, "name": "reopen_count", "comment": null}, "reopened_at": {"type": "integer", "index": 28, "name": "reopened_at", "comment": null}, "reopened_by_link": {"type": "integer", "index": 29, "name": "reopened_by_link", "comment": null}, "reopened_by_value": {"type": "text", "index": 30, "name": "reopened_by_value", "comment": null}, "problem_resolution_code": {"type": "integer", "index": 31, "name": "problem_resolution_code", "comment": null}, "problem_resolved_at": {"type": "timestamp without time zone", "index": 32, "name": "problem_resolved_at", "comment": null}, "resolved_by_link": {"type": "integer", "index": 33, "name": "resolved_by_link", "comment": null}, "problem_resolved_by_value": {"type": "text", "index": 34, "name": "problem_resolved_by_value", "comment": null}, "review_outcome": {"type": "integer", "index": 35, "name": "review_outcome", "comment": null}, "rfc_link": {"type": "integer", "index": 36, "name": "rfc_link", "comment": null}, "rfc_value": {"type": "text", "index": 37, "name": "rfc_value", "comment": null}, "problem_subcategory": {"type": "text", "index": 38, "name": "problem_subcategory", "comment": null}, "workaround": {"type": "integer", "index": 39, "name": "workaround", "comment": null}, "workaround_applied": {"type": "boolean", "index": 40, "name": "workaround_applied", "comment": null}, "workaround_communicated_at": {"type": "integer", "index": 41, "name": "workaround_communicated_at", "comment": null}, "workaround_communicated_by_link": {"type": "integer", "index": 42, "name": "workaround_communicated_by_link", "comment": null}, "workaround_communicated_by_value": {"type": "text", "index": 43, "name": "workaround_communicated_by_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.servicenow.stg_servicenow__problem"}, "model.servicenow.stg_servicenow__problem_base": {"metadata": {"type": "VIEW", "schema": "reddit_ads_integration_tests_3_stg_servicenow", "name": "stg_servicenow__problem_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"sys_id": {"type": "character varying", "index": 1, "name": "sys_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}, "category": {"type": "text", "index": 4, "name": "category", "comment": null}, "cause_notes": {"type": "integer", "index": 5, "name": "cause_notes", "comment": null}, "confirmed_at": {"type": "integer", "index": 6, "name": "confirmed_at", "comment": null}, "confirmed_by_link": {"type": "integer", "index": 7, "name": "confirmed_by_link", "comment": null}, "confirmed_by_value": {"type": "character varying", "index": 8, "name": "confirmed_by_value", "comment": null}, "duplicate_of_link": {"type": "integer", "index": 9, "name": "duplicate_of_link", "comment": null}, "duplicate_of_value": {"type": "integer", "index": 10, "name": "duplicate_of_value", "comment": null}, "first_reported_by_task_link": {"type": "integer", "index": 11, "name": "first_reported_by_task_link", "comment": null}, "first_reported_by_task_value": {"type": "character varying", "index": 12, "name": "first_reported_by_task_value", "comment": null}, "fix_at": {"type": "integer", "index": 13, "name": "fix_at", "comment": null}, "fix_by_link": {"type": "integer", "index": 14, "name": "fix_by_link", "comment": null}, "fix_by_value": {"type": "character varying", "index": 15, "name": "fix_by_value", "comment": null}, "fix_communicated_at": {"type": "integer", "index": 16, "name": "fix_communicated_at", "comment": null}, "fix_communicated_by_link": {"type": "integer", "index": 17, "name": "fix_communicated_by_link", "comment": null}, "fix_communicated_by_value": {"type": "integer", "index": 18, "name": "fix_communicated_by_value", "comment": null}, "fix_notes": {"type": "integer", "index": 19, "name": "fix_notes", "comment": null}, "known_error": {"type": "boolean", "index": 20, "name": "known_error", "comment": null}, "major_problem": {"type": "boolean", "index": 21, "name": "major_problem", "comment": null}, "problem_state": {"type": "integer", "index": 22, "name": "problem_state", "comment": null}, "related_incidents": {"type": "integer", "index": 23, "name": "related_incidents", "comment": null}, "reopen_count": {"type": "integer", "index": 24, "name": "reopen_count", "comment": null}, "reopened_at": {"type": "integer", "index": 25, "name": "reopened_at", "comment": null}, "reopened_by_link": {"type": "integer", "index": 26, "name": "reopened_by_link", "comment": null}, "reopened_by_value": {"type": "integer", "index": 27, "name": "reopened_by_value", "comment": null}, "resolution_code": {"type": "integer", "index": 28, "name": "resolution_code", "comment": null}, "resolved_at": {"type": "timestamp without time zone", "index": 29, "name": "resolved_at", "comment": null}, "resolved_by_link": {"type": "integer", "index": 30, "name": "resolved_by_link", "comment": null}, "resolved_by_value": {"type": "character varying", "index": 31, "name": "resolved_by_value", "comment": null}, "review_outcome": {"type": "integer", "index": 32, "name": "review_outcome", "comment": null}, "rfc_link": {"type": "integer", "index": 33, "name": "rfc_link", "comment": null}, "rfc_value": {"type": "integer", "index": 34, "name": "rfc_value", "comment": null}, "subcategory": {"type": "text", "index": 35, "name": "subcategory", "comment": null}, "sys_created_on": {"type": "timestamp without time zone", "index": 36, "name": "sys_created_on", "comment": null}, "sys_updated_on": {"type": "timestamp without time zone", "index": 37, "name": "sys_updated_on", "comment": null}, "workaround": {"type": "integer", "index": 38, "name": "workaround", "comment": null}, "workaround_applied": {"type": "boolean", "index": 39, "name": "workaround_applied", "comment": null}, "workaround_communicated_at": {"type": "integer", "index": 40, "name": "workaround_communicated_at", "comment": null}, "workaround_communicated_by_link": {"type": "integer", "index": 41, "name": "workaround_communicated_by_link", "comment": null}, "workaround_communicated_by_value": {"type": "integer", "index": 42, "name": "workaround_communicated_by_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.servicenow.stg_servicenow__problem_base"}, "model.servicenow.stg_servicenow__problem_task": {"metadata": {"type": "VIEW", "schema": "reddit_ads_integration_tests_3_stg_servicenow", "name": "stg_servicenow__problem_task", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "problem_task_id": {"type": "text", "index": 2, "name": "problem_task_id", "comment": null}, "problem_task_created_at": {"type": "timestamp without time zone", "index": 3, "name": "problem_task_created_at", "comment": null}, "problem_task_updated_at": {"type": "timestamp without time zone", "index": 4, "name": "problem_task_updated_at", "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}, "problem_task_cause_code": {"type": "integer", "index": 7, "name": "problem_task_cause_code", "comment": null}, "problem_task_close_code": {"type": "integer", "index": 8, "name": "problem_task_close_code", "comment": null}, "other_reason": {"type": "integer", "index": 9, "name": "other_reason", "comment": null}, "problem_link": {"type": "text", "index": 10, "name": "problem_link", "comment": null}, "problem_task_type": {"type": "text", "index": 11, "name": "problem_task_type", "comment": null}, "problem_value": {"type": "text", "index": 12, "name": "problem_value", "comment": null}, "reopen_count": {"type": "integer", "index": 13, "name": "reopen_count", "comment": null}, "reopened_at": {"type": "timestamp without time zone", "index": 14, "name": "reopened_at", "comment": null}, "reopened_by_link": {"type": "text", "index": 15, "name": "reopened_by_link", "comment": null}, "reopened_by_value": {"type": "text", "index": 16, "name": "reopened_by_value", "comment": null}, "problem_task_started_at": {"type": "timestamp without time zone", "index": 17, "name": "problem_task_started_at", "comment": null}, "started_by_link": {"type": "text", "index": 18, "name": "started_by_link", "comment": null}, "started_by_value": {"type": "text", "index": 19, "name": "started_by_value", "comment": null}, "vendor_link": {"type": "integer", "index": 20, "name": "vendor_link", "comment": null}, "vendor_value": {"type": "text", "index": 21, "name": "vendor_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.servicenow.stg_servicenow__problem_task"}, "model.servicenow.stg_servicenow__problem_task_base": {"metadata": {"type": "VIEW", "schema": "reddit_ads_integration_tests_3_stg_servicenow", "name": "stg_servicenow__problem_task_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"sys_id": {"type": "character varying", "index": 1, "name": "sys_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}, "cause_code": {"type": "integer", "index": 4, "name": "cause_code", "comment": null}, "close_code": {"type": "integer", "index": 5, "name": "close_code", "comment": null}, "other_reason": {"type": "integer", "index": 6, "name": "other_reason", "comment": null}, "problem_link": {"type": "text", "index": 7, "name": "problem_link", "comment": null}, "problem_task_type": {"type": "text", "index": 8, "name": "problem_task_type", "comment": null}, "problem_value": {"type": "character varying", "index": 9, "name": "problem_value", "comment": null}, "reopen_count": {"type": "integer", "index": 10, "name": "reopen_count", "comment": null}, "reopened_at": {"type": "timestamp without time zone", "index": 11, "name": "reopened_at", "comment": null}, "reopened_by_link": {"type": "text", "index": 12, "name": "reopened_by_link", "comment": null}, "reopened_by_value": {"type": "text", "index": 13, "name": "reopened_by_value", "comment": null}, "started_at": {"type": "timestamp without time zone", "index": 14, "name": "started_at", "comment": null}, "started_by_link": {"type": "text", "index": 15, "name": "started_by_link", "comment": null}, "started_by_value": {"type": "character varying", "index": 16, "name": "started_by_value", "comment": null}, "sys_created_on": {"type": "timestamp without time zone", "index": 17, "name": "sys_created_on", "comment": null}, "sys_updated_on": {"type": "timestamp without time zone", "index": 18, "name": "sys_updated_on", "comment": null}, "vendor_link": {"type": "integer", "index": 19, "name": "vendor_link", "comment": null}, "vendor_value": {"type": "integer", "index": 20, "name": "vendor_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.servicenow.stg_servicenow__problem_task_base"}, "model.servicenow.stg_servicenow__sys_user": {"metadata": {"type": "VIEW", "schema": "reddit_ads_integration_tests_3_stg_servicenow", "name": "stg_servicenow__sys_user", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "user_id": {"type": "text", "index": 2, "name": "user_id", "comment": null}, "user_created_at": {"type": "timestamp without time zone", "index": 3, "name": "user_created_at", "comment": null}, "user_updated_at": {"type": "timestamp without time zone", "index": 4, "name": "user_updated_at", "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}, "accumulated_roles": {"type": "integer", "index": 7, "name": "accumulated_roles", "comment": null}, "is_active": {"type": "boolean", "index": 8, "name": "is_active", "comment": null}, "avatar": {"type": "integer", "index": 9, "name": "avatar", "comment": null}, "building_link": {"type": "integer", "index": 10, "name": "building_link", "comment": null}, "building_value": {"type": "text", "index": 11, "name": "building_value", "comment": null}, "calendar_integration": {"type": "integer", "index": 12, "name": "calendar_integration", "comment": null}, "city": {"type": "integer", "index": 13, "name": "city", "comment": null}, "company_link": {"type": "integer", "index": 14, "name": "company_link", "comment": null}, "company_value": {"type": "text", "index": 15, "name": "company_value", "comment": null}, "cost_center_link": {"type": "integer", "index": 16, "name": "cost_center_link", "comment": null}, "cost_center_value": {"type": "text", "index": 17, "name": "cost_center_value", "comment": null}, "country": {"type": "integer", "index": 18, "name": "country", "comment": null}, "date_format": {"type": "integer", "index": 19, "name": "date_format", "comment": null}, "default_perspective_link": {"type": "integer", "index": 20, "name": "default_perspective_link", "comment": null}, "default_perspective_value": {"type": "text", "index": 21, "name": "default_perspective_value", "comment": null}, "department_link": {"type": "integer", "index": 22, "name": "department_link", "comment": null}, "department_value": {"type": "text", "index": 23, "name": "department_value", "comment": null}, "edu_status": {"type": "integer", "index": 24, "name": "edu_status", "comment": null}, "email": {"type": "text", "index": 25, "name": "email", "comment": null}, "employee_number": {"type": "integer", "index": 26, "name": "employee_number", "comment": null}, "enable_multifactor_authn": {"type": "boolean", "index": 27, "name": "enable_multifactor_authn", "comment": null}, "failed_attempts": {"type": "integer", "index": 28, "name": "failed_attempts", "comment": null}, "first_name": {"type": "text", "index": 29, "name": "first_name", "comment": null}, "gender": {"type": "integer", "index": 30, "name": "gender", "comment": null}, "hashed_user_id": {"type": "integer", "index": 31, "name": "hashed_user_id", "comment": null}, "home_phone": {"type": "integer", "index": 32, "name": "home_phone", "comment": null}, "internal_integration_user": {"type": "boolean", "index": 33, "name": "internal_integration_user", "comment": null}, "introduction": {"type": "integer", "index": 34, "name": "introduction", "comment": null}, "last_login_day_date": {"type": "date", "index": 35, "name": "last_login_day_date", "comment": null}, "last_login_device": {"type": "integer", "index": 36, "name": "last_login_device", "comment": null}, "last_login_at": {"type": "timestamp without time zone", "index": 37, "name": "last_login_at", "comment": null}, "last_name": {"type": "text", "index": 38, "name": "last_name", "comment": null}, "last_password": {"type": "integer", "index": 39, "name": "last_password", "comment": null}, "ldap_server_link": {"type": "integer", "index": 40, "name": "ldap_server_link", "comment": null}, "ldap_server_value": {"type": "text", "index": 41, "name": "ldap_server_value", "comment": null}, "location_link": {"type": "integer", "index": 42, "name": "location_link", "comment": null}, "location_value": {"type": "text", "index": 43, "name": "location_value", "comment": null}, "locked_out": {"type": "boolean", "index": 44, "name": "locked_out", "comment": null}, "manager_link": {"type": "integer", "index": 45, "name": "manager_link", "comment": null}, "manager_value": {"type": "text", "index": 46, "name": "manager_value", "comment": null}, "middle_name": {"type": "integer", "index": 47, "name": "middle_name", "comment": null}, "mobile_phone": {"type": "integer", "index": 48, "name": "mobile_phone", "comment": null}, "sys_user_name": {"type": "text", "index": 49, "name": "sys_user_name", "comment": null}, "notification": {"type": "integer", "index": 50, "name": "notification", "comment": null}, "password_needs_reset": {"type": "boolean", "index": 51, "name": "password_needs_reset", "comment": null}, "phone": {"type": "integer", "index": 52, "name": "phone", "comment": null}, "photo": {"type": "integer", "index": 53, "name": "photo", "comment": null}, "preferred_language": {"type": "integer", "index": 54, "name": "preferred_language", "comment": null}, "roles": {"type": "integer", "index": 55, "name": "roles", "comment": null}, "schedule_link": {"type": "integer", "index": 56, "name": "schedule_link", "comment": null}, "schedule_value": {"type": "text", "index": 57, "name": "schedule_value", "comment": null}, "source": {"type": "integer", "index": 58, "name": "source", "comment": null}, "state": {"type": "integer", "index": 59, "name": "state", "comment": null}, "sys_class_name": {"type": "text", "index": 60, "name": "sys_class_name", "comment": null}, "sys_created_by": {"type": "character varying", "index": 61, "name": "sys_created_by", "comment": null}, "sys_domain_link": {"type": "text", "index": 62, "name": "sys_domain_link", "comment": null}, "sys_domain_path": {"type": "text", "index": 63, "name": "sys_domain_path", "comment": null}, "sys_domain_value": {"type": "text", "index": 64, "name": "sys_domain_value", "comment": null}, "sys_mod_count": {"type": "integer", "index": 65, "name": "sys_mod_count", "comment": null}, "sys_updated_by": {"type": "character varying", "index": 66, "name": "sys_updated_by", "comment": null}, "time_format": {"type": "integer", "index": 67, "name": "time_format", "comment": null}, "time_zone": {"type": "integer", "index": 68, "name": "time_zone", "comment": null}, "title": {"type": "integer", "index": 69, "name": "title", "comment": null}, "user_name": {"type": "text", "index": 70, "name": "user_name", "comment": null}, "user_password": {"type": "text", "index": 71, "name": "user_password", "comment": null}, "vip": {"type": "boolean", "index": 72, "name": "vip", "comment": null}, "web_service_access_only": {"type": "boolean", "index": 73, "name": "web_service_access_only", "comment": null}, "zip": {"type": "integer", "index": 74, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.servicenow.stg_servicenow__sys_user"}, "model.servicenow.stg_servicenow__sys_user_base": {"metadata": {"type": "VIEW", "schema": "reddit_ads_integration_tests_3_stg_servicenow", "name": "stg_servicenow__sys_user_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"sys_id": {"type": "character varying", "index": 1, "name": "sys_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}, "accumulated_roles": {"type": "integer", "index": 4, "name": "accumulated_roles", "comment": null}, "active": {"type": "boolean", "index": 5, "name": "active", "comment": null}, "avatar": {"type": "integer", "index": 6, "name": "avatar", "comment": null}, "building_link": {"type": "integer", "index": 7, "name": "building_link", "comment": null}, "building_value": {"type": "integer", "index": 8, "name": "building_value", "comment": null}, "calendar_integration": {"type": "integer", "index": 9, "name": "calendar_integration", "comment": null}, "city": {"type": "integer", "index": 10, "name": "city", "comment": null}, "company_link": {"type": "integer", "index": 11, "name": "company_link", "comment": null}, "company_value": {"type": "integer", "index": 12, "name": "company_value", "comment": null}, "cost_center_link": {"type": "integer", "index": 13, "name": "cost_center_link", "comment": null}, "cost_center_value": {"type": "integer", "index": 14, "name": "cost_center_value", "comment": null}, "country": {"type": "integer", "index": 15, "name": "country", "comment": null}, "date_format": {"type": "integer", "index": 16, "name": "date_format", "comment": null}, "default_perspective_link": {"type": "integer", "index": 17, "name": "default_perspective_link", "comment": null}, "default_perspective_value": {"type": "integer", "index": 18, "name": "default_perspective_value", "comment": null}, "department_link": {"type": "integer", "index": 19, "name": "department_link", "comment": null}, "department_value": {"type": "integer", "index": 20, "name": "department_value", "comment": null}, "edu_status": {"type": "integer", "index": 21, "name": "edu_status", "comment": null}, "email": {"type": "text", "index": 22, "name": "email", "comment": null}, "employee_number": {"type": "integer", "index": 23, "name": "employee_number", "comment": null}, "enable_multifactor_authn": {"type": "boolean", "index": 24, "name": "enable_multifactor_authn", "comment": null}, "failed_attempts": {"type": "integer", "index": 25, "name": "failed_attempts", "comment": null}, "first_name": {"type": "text", "index": 26, "name": "first_name", "comment": null}, "gender": {"type": "integer", "index": 27, "name": "gender", "comment": null}, "hashed_user_id": {"type": "integer", "index": 28, "name": "hashed_user_id", "comment": null}, "home_phone": {"type": "integer", "index": 29, "name": "home_phone", "comment": null}, "internal_integration_user": {"type": "boolean", "index": 30, "name": "internal_integration_user", "comment": null}, "introduction": {"type": "integer", "index": 31, "name": "introduction", "comment": null}, "last_login": {"type": "date", "index": 32, "name": "last_login", "comment": null}, "last_login_device": {"type": "integer", "index": 33, "name": "last_login_device", "comment": null}, "last_login_time": {"type": "timestamp without time zone", "index": 34, "name": "last_login_time", "comment": null}, "last_name": {"type": "text", "index": 35, "name": "last_name", "comment": null}, "last_password": {"type": "integer", "index": 36, "name": "last_password", "comment": null}, "ldap_server_link": {"type": "integer", "index": 37, "name": "ldap_server_link", "comment": null}, "ldap_server_value": {"type": "integer", "index": 38, "name": "ldap_server_value", "comment": null}, "location_link": {"type": "integer", "index": 39, "name": "location_link", "comment": null}, "location_value": {"type": "integer", "index": 40, "name": "location_value", "comment": null}, "locked_out": {"type": "boolean", "index": 41, "name": "locked_out", "comment": null}, "manager_link": {"type": "integer", "index": 42, "name": "manager_link", "comment": null}, "manager_value": {"type": "integer", "index": 43, "name": "manager_value", "comment": null}, "middle_name": {"type": "integer", "index": 44, "name": "middle_name", "comment": null}, "mobile_phone": {"type": "integer", "index": 45, "name": "mobile_phone", "comment": null}, "name": {"type": "text", "index": 46, "name": "name", "comment": null}, "notification": {"type": "integer", "index": 47, "name": "notification", "comment": null}, "password_needs_reset": {"type": "boolean", "index": 48, "name": "password_needs_reset", "comment": null}, "phone": {"type": "integer", "index": 49, "name": "phone", "comment": null}, "photo": {"type": "integer", "index": 50, "name": "photo", "comment": null}, "preferred_language": {"type": "integer", "index": 51, "name": "preferred_language", "comment": null}, "roles": {"type": "integer", "index": 52, "name": "roles", "comment": null}, "schedule_link": {"type": "integer", "index": 53, "name": "schedule_link", "comment": null}, "schedule_value": {"type": "integer", "index": 54, "name": "schedule_value", "comment": null}, "source": {"type": "integer", "index": 55, "name": "source", "comment": null}, "state": {"type": "integer", "index": 56, "name": "state", "comment": null}, "sys_class_name": {"type": "text", "index": 57, "name": "sys_class_name", "comment": null}, "sys_created_by": {"type": "character varying", "index": 58, "name": "sys_created_by", "comment": null}, "sys_created_on": {"type": "timestamp without time zone", "index": 59, "name": "sys_created_on", "comment": null}, "sys_domain_link": {"type": "text", "index": 60, "name": "sys_domain_link", "comment": null}, "sys_domain_path": {"type": "text", "index": 61, "name": "sys_domain_path", "comment": null}, "sys_domain_value": {"type": "text", "index": 62, "name": "sys_domain_value", "comment": null}, "sys_mod_count": {"type": "integer", "index": 63, "name": "sys_mod_count", "comment": null}, "sys_updated_by": {"type": "character varying", "index": 64, "name": "sys_updated_by", "comment": null}, "sys_updated_on": {"type": "timestamp without time zone", "index": 65, "name": "sys_updated_on", "comment": null}, "time_format": {"type": "integer", "index": 66, "name": "time_format", "comment": null}, "time_zone": {"type": "integer", "index": 67, "name": "time_zone", "comment": null}, "title": {"type": "integer", "index": 68, "name": "title", "comment": null}, "user_name": {"type": "text", "index": 69, "name": "user_name", "comment": null}, "user_password": {"type": "text", "index": 70, "name": "user_password", "comment": null}, "vip": {"type": "boolean", "index": 71, "name": "vip", "comment": null}, "web_service_access_only": {"type": "boolean", "index": 72, "name": "web_service_access_only", "comment": null}, "zip": {"type": "integer", "index": 73, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.servicenow.stg_servicenow__sys_user_base"}, "model.servicenow.stg_servicenow__sys_user_group": {"metadata": {"type": "VIEW", "schema": "reddit_ads_integration_tests_3_stg_servicenow", "name": "stg_servicenow__sys_user_group", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "sys_user_group_id": {"type": "text", "index": 2, "name": "sys_user_group_id", "comment": null}, "sys_user_group_created_at": {"type": "timestamp without time zone", "index": 3, "name": "sys_user_group_created_at", "comment": null}, "sys_user_group_updated_at": {"type": "timestamp without time zone", "index": 4, "name": "sys_user_group_updated_at", "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}, "active": {"type": "boolean", "index": 7, "name": "active", "comment": null}, "cost_center_link": {"type": "text", "index": 8, "name": "cost_center_link", "comment": null}, "cost_center_value": {"type": "text", "index": 9, "name": "cost_center_value", "comment": null}, "default_assignee_link": {"type": "text", "index": 10, "name": "default_assignee_link", "comment": null}, "default_assignee_value": {"type": "text", "index": 11, "name": "default_assignee_value", "comment": null}, "description": {"type": "text", "index": 12, "name": "description", "comment": null}, "email": {"type": "text", "index": 13, "name": "email", "comment": null}, "exclude_manager": {"type": "boolean", "index": 14, "name": "exclude_manager", "comment": null}, "include_members": {"type": "boolean", "index": 15, "name": "include_members", "comment": null}, "manager_link": {"type": "text", "index": 16, "name": "manager_link", "comment": null}, "manager_value": {"type": "text", "index": 17, "name": "manager_value", "comment": null}, "sys_user_group_name": {"type": "text", "index": 18, "name": "sys_user_group_name", "comment": null}, "parent_link": {"type": "text", "index": 19, "name": "parent_link", "comment": null}, "parent_value": {"type": "text", "index": 20, "name": "parent_value", "comment": null}, "roles": {"type": "text", "index": 21, "name": "roles", "comment": null}, "source": {"type": "text", "index": 22, "name": "source", "comment": null}, "sys_created_by": {"type": "text", "index": 23, "name": "sys_created_by", "comment": null}, "sys_mod_count": {"type": "integer", "index": 24, "name": "sys_mod_count", "comment": null}, "sys_updated_by": {"type": "text", "index": 25, "name": "sys_updated_by", "comment": null}, "type": {"type": "text", "index": 26, "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.servicenow.stg_servicenow__sys_user_group"}, "model.servicenow.stg_servicenow__sys_user_group_base": {"metadata": {"type": "VIEW", "schema": "reddit_ads_integration_tests_3_stg_servicenow", "name": "stg_servicenow__sys_user_group_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_dbt_source_relation": {"type": "text", "index": 1, "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.servicenow.stg_servicenow__sys_user_group_base"}, "model.servicenow.stg_servicenow__task": {"metadata": {"type": "VIEW", "schema": "reddit_ads_integration_tests_3_stg_servicenow", "name": "stg_servicenow__task", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "task_id": {"type": "text", "index": 2, "name": "task_id", "comment": null}, "task_created_at": {"type": "timestamp without time zone", "index": 3, "name": "task_created_at", "comment": null}, "task_updated_at": {"type": "timestamp without time zone", "index": 4, "name": "task_updated_at", "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}, "is_task_active": {"type": "boolean", "index": 7, "name": "is_task_active", "comment": null}, "activity_due": {"type": "integer", "index": 8, "name": "activity_due", "comment": null}, "additional_assignee_list": {"type": "integer", "index": 9, "name": "additional_assignee_list", "comment": null}, "approval": {"type": "text", "index": 10, "name": "approval", "comment": null}, "approval_history": {"type": "integer", "index": 11, "name": "approval_history", "comment": null}, "approval_set": {"type": "integer", "index": 12, "name": "approval_set", "comment": null}, "assigned_to_link": {"type": "text", "index": 13, "name": "assigned_to_link", "comment": null}, "assigned_to_value": {"type": "text", "index": 14, "name": "assigned_to_value", "comment": null}, "assignment_group_link": {"type": "integer", "index": 15, "name": "assignment_group_link", "comment": null}, "assignment_group_value": {"type": "text", "index": 16, "name": "assignment_group_value", "comment": null}, "business_duration": {"type": "integer", "index": 17, "name": "business_duration", "comment": null}, "business_service_link": {"type": "integer", "index": 18, "name": "business_service_link", "comment": null}, "business_service_value": {"type": "text", "index": 19, "name": "business_service_value", "comment": null}, "calendar_duration": {"type": "integer", "index": 20, "name": "calendar_duration", "comment": null}, "close_notes": {"type": "integer", "index": 21, "name": "close_notes", "comment": null}, "task_closed_at": {"type": "timestamp without time zone", "index": 22, "name": "task_closed_at", "comment": null}, "closed_by_link": {"type": "text", "index": 23, "name": "closed_by_link", "comment": null}, "closed_by_value": {"type": "text", "index": 24, "name": "closed_by_value", "comment": null}, "cmdb_ci_link": {"type": "integer", "index": 25, "name": "cmdb_ci_link", "comment": null}, "cmdb_ci_value": {"type": "text", "index": 26, "name": "cmdb_ci_value", "comment": null}, "comments": {"type": "integer", "index": 27, "name": "comments", "comment": null}, "comments_and_work_notes": {"type": "integer", "index": 28, "name": "comments_and_work_notes", "comment": null}, "company_link": {"type": "integer", "index": 29, "name": "company_link", "comment": null}, "company_value": {"type": "text", "index": 30, "name": "company_value", "comment": null}, "contact_type": {"type": "integer", "index": 31, "name": "contact_type", "comment": null}, "contract_link": {"type": "integer", "index": 32, "name": "contract_link", "comment": null}, "contract_value": {"type": "text", "index": 33, "name": "contract_value", "comment": null}, "correlation_display": {"type": "integer", "index": 34, "name": "correlation_display", "comment": null}, "correlation_id": {"type": "integer", "index": 35, "name": "correlation_id", "comment": null}, "delivery_plan_link": {"type": "integer", "index": 36, "name": "delivery_plan_link", "comment": null}, "delivery_plan_value": {"type": "text", "index": 37, "name": "delivery_plan_value", "comment": null}, "delivery_task_link": {"type": "integer", "index": 38, "name": "delivery_task_link", "comment": null}, "delivery_task_value": {"type": "text", "index": 39, "name": "delivery_task_value", "comment": null}, "task_description": {"type": "text", "index": 40, "name": "task_description", "comment": null}, "task_due_date_at": {"type": "integer", "index": 41, "name": "task_due_date_at", "comment": null}, "escalation": {"type": "integer", "index": 42, "name": "escalation", "comment": null}, "expected_start": {"type": "integer", "index": 43, "name": "expected_start", "comment": null}, "task_follow_up_at": {"type": "integer", "index": 44, "name": "task_follow_up_at", "comment": null}, "group_list": {"type": "integer", "index": 45, "name": "group_list", "comment": null}, "impact": {"type": "integer", "index": 46, "name": "impact", "comment": null}, "knowledge": {"type": "boolean", "index": 47, "name": "knowledge", "comment": null}, "location_link": {"type": "integer", "index": 48, "name": "location_link", "comment": null}, "location_value": {"type": "text", "index": 49, "name": "location_value", "comment": null}, "is_made_sla": {"type": "boolean", "index": 50, "name": "is_made_sla", "comment": null}, "task_number": {"type": "text", "index": 51, "name": "task_number", "comment": null}, "task_opened_at": {"type": "timestamp without time zone", "index": 52, "name": "task_opened_at", "comment": null}, "opened_by_link": {"type": "text", "index": 53, "name": "opened_by_link", "comment": null}, "opened_by_value": {"type": "text", "index": 54, "name": "opened_by_value", "comment": null}, "task_order": {"type": "integer", "index": 55, "name": "task_order", "comment": null}, "parent_link": {"type": "integer", "index": 56, "name": "parent_link", "comment": null}, "parent_value": {"type": "text", "index": 57, "name": "parent_value", "comment": null}, "priority": {"type": "integer", "index": 58, "name": "priority", "comment": null}, "reassignment_count": {"type": "integer", "index": 59, "name": "reassignment_count", "comment": null}, "rejection_goto_link": {"type": "integer", "index": 60, "name": "rejection_goto_link", "comment": null}, "rejection_goto_value": {"type": "text", "index": 61, "name": "rejection_goto_value", "comment": null}, "route_reason": {"type": "integer", "index": 62, "name": "route_reason", "comment": null}, "service_offering_link": {"type": "integer", "index": 63, "name": "service_offering_link", "comment": null}, "service_offering_value": {"type": "text", "index": 64, "name": "service_offering_value", "comment": null}, "short_description": {"type": "text", "index": 65, "name": "short_description", "comment": null}, "sla_due": {"type": "integer", "index": 66, "name": "sla_due", "comment": null}, "task_state": {"type": "integer", "index": 67, "name": "task_state", "comment": null}, "sys_class_name": {"type": "text", "index": 68, "name": "sys_class_name", "comment": null}, "sys_created_by": {"type": "character varying", "index": 69, "name": "sys_created_by", "comment": null}, "sys_domain_link": {"type": "text", "index": 70, "name": "sys_domain_link", "comment": null}, "sys_domain_path": {"type": "text", "index": 71, "name": "sys_domain_path", "comment": null}, "sys_domain_value": {"type": "text", "index": 72, "name": "sys_domain_value", "comment": null}, "sys_mod_count": {"type": "integer", "index": 73, "name": "sys_mod_count", "comment": null}, "sys_updated_by": {"type": "character varying", "index": 74, "name": "sys_updated_by", "comment": null}, "task_effective_number": {"type": "text", "index": 75, "name": "task_effective_number", "comment": null}, "universal_request_link": {"type": "integer", "index": 76, "name": "universal_request_link", "comment": null}, "universal_request_value": {"type": "text", "index": 77, "name": "universal_request_value", "comment": null}, "upon_approval": {"type": "integer", "index": 78, "name": "upon_approval", "comment": null}, "upon_reject": {"type": "integer", "index": 79, "name": "upon_reject", "comment": null}, "urgency": {"type": "integer", "index": 80, "name": "urgency", "comment": null}, "watch_list": {"type": "integer", "index": 81, "name": "watch_list", "comment": null}, "wf_activity_link": {"type": "integer", "index": 82, "name": "wf_activity_link", "comment": null}, "wf_activity_value": {"type": "text", "index": 83, "name": "wf_activity_value", "comment": null}, "work_end": {"type": "integer", "index": 84, "name": "work_end", "comment": null}, "work_notes": {"type": "integer", "index": 85, "name": "work_notes", "comment": null}, "work_notes_list": {"type": "integer", "index": 86, "name": "work_notes_list", "comment": null}, "work_start": {"type": "integer", "index": 87, "name": "work_start", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.servicenow.stg_servicenow__task"}, "model.servicenow.stg_servicenow__task_base": {"metadata": {"type": "VIEW", "schema": "reddit_ads_integration_tests_3_stg_servicenow", "name": "stg_servicenow__task_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"sys_id": {"type": "character varying", "index": 1, "name": "sys_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}, "active": {"type": "boolean", "index": 4, "name": "active", "comment": null}, "activity_due": {"type": "integer", "index": 5, "name": "activity_due", "comment": null}, "additional_assignee_list": {"type": "integer", "index": 6, "name": "additional_assignee_list", "comment": null}, "approval": {"type": "text", "index": 7, "name": "approval", "comment": null}, "approval_history": {"type": "integer", "index": 8, "name": "approval_history", "comment": null}, "approval_set": {"type": "integer", "index": 9, "name": "approval_set", "comment": null}, "assigned_to_link": {"type": "text", "index": 10, "name": "assigned_to_link", "comment": null}, "assigned_to_value": {"type": "character varying", "index": 11, "name": "assigned_to_value", "comment": null}, "assignment_group_link": {"type": "integer", "index": 12, "name": "assignment_group_link", "comment": null}, "assignment_group_value": {"type": "integer", "index": 13, "name": "assignment_group_value", "comment": null}, "business_duration": {"type": "integer", "index": 14, "name": "business_duration", "comment": null}, "business_service_link": {"type": "integer", "index": 15, "name": "business_service_link", "comment": null}, "business_service_value": {"type": "integer", "index": 16, "name": "business_service_value", "comment": null}, "calendar_duration": {"type": "integer", "index": 17, "name": "calendar_duration", "comment": null}, "close_notes": {"type": "integer", "index": 18, "name": "close_notes", "comment": null}, "closed_at": {"type": "timestamp without time zone", "index": 19, "name": "closed_at", "comment": null}, "closed_by_link": {"type": "text", "index": 20, "name": "closed_by_link", "comment": null}, "closed_by_value": {"type": "character varying", "index": 21, "name": "closed_by_value", "comment": null}, "cmdb_ci_link": {"type": "integer", "index": 22, "name": "cmdb_ci_link", "comment": null}, "cmdb_ci_value": {"type": "integer", "index": 23, "name": "cmdb_ci_value", "comment": null}, "comments": {"type": "integer", "index": 24, "name": "comments", "comment": null}, "comments_and_work_notes": {"type": "integer", "index": 25, "name": "comments_and_work_notes", "comment": null}, "company_link": {"type": "integer", "index": 26, "name": "company_link", "comment": null}, "company_value": {"type": "integer", "index": 27, "name": "company_value", "comment": null}, "contact_type": {"type": "integer", "index": 28, "name": "contact_type", "comment": null}, "contract_link": {"type": "integer", "index": 29, "name": "contract_link", "comment": null}, "contract_value": {"type": "integer", "index": 30, "name": "contract_value", "comment": null}, "correlation_display": {"type": "integer", "index": 31, "name": "correlation_display", "comment": null}, "correlation_id": {"type": "integer", "index": 32, "name": "correlation_id", "comment": null}, "delivery_plan_link": {"type": "integer", "index": 33, "name": "delivery_plan_link", "comment": null}, "delivery_plan_value": {"type": "integer", "index": 34, "name": "delivery_plan_value", "comment": null}, "delivery_task_link": {"type": "integer", "index": 35, "name": "delivery_task_link", "comment": null}, "delivery_task_value": {"type": "integer", "index": 36, "name": "delivery_task_value", "comment": null}, "description": {"type": "text", "index": 37, "name": "description", "comment": null}, "due_date": {"type": "integer", "index": 38, "name": "due_date", "comment": null}, "escalation": {"type": "integer", "index": 39, "name": "escalation", "comment": null}, "expected_start": {"type": "integer", "index": 40, "name": "expected_start", "comment": null}, "follow_up": {"type": "integer", "index": 41, "name": "follow_up", "comment": null}, "group_list": {"type": "integer", "index": 42, "name": "group_list", "comment": null}, "impact": {"type": "integer", "index": 43, "name": "impact", "comment": null}, "knowledge": {"type": "boolean", "index": 44, "name": "knowledge", "comment": null}, "location_link": {"type": "integer", "index": 45, "name": "location_link", "comment": null}, "location_value": {"type": "integer", "index": 46, "name": "location_value", "comment": null}, "made_sla": {"type": "boolean", "index": 47, "name": "made_sla", "comment": null}, "number": {"type": "text", "index": 48, "name": "number", "comment": null}, "opened_at": {"type": "timestamp without time zone", "index": 49, "name": "opened_at", "comment": null}, "opened_by_link": {"type": "text", "index": 50, "name": "opened_by_link", "comment": null}, "opened_by_value": {"type": "character varying", "index": 51, "name": "opened_by_value", "comment": null}, "order": {"type": "integer", "index": 52, "name": "order", "comment": null}, "parent_link": {"type": "integer", "index": 53, "name": "parent_link", "comment": null}, "parent_value": {"type": "integer", "index": 54, "name": "parent_value", "comment": null}, "priority": {"type": "integer", "index": 55, "name": "priority", "comment": null}, "reassignment_count": {"type": "integer", "index": 56, "name": "reassignment_count", "comment": null}, "rejection_goto_link": {"type": "integer", "index": 57, "name": "rejection_goto_link", "comment": null}, "rejection_goto_value": {"type": "integer", "index": 58, "name": "rejection_goto_value", "comment": null}, "route_reason": {"type": "integer", "index": 59, "name": "route_reason", "comment": null}, "service_offering_link": {"type": "integer", "index": 60, "name": "service_offering_link", "comment": null}, "service_offering_value": {"type": "integer", "index": 61, "name": "service_offering_value", "comment": null}, "short_description": {"type": "text", "index": 62, "name": "short_description", "comment": null}, "sla_due": {"type": "integer", "index": 63, "name": "sla_due", "comment": null}, "state": {"type": "integer", "index": 64, "name": "state", "comment": null}, "sys_class_name": {"type": "text", "index": 65, "name": "sys_class_name", "comment": null}, "sys_created_by": {"type": "character varying", "index": 66, "name": "sys_created_by", "comment": null}, "sys_created_on": {"type": "timestamp without time zone", "index": 67, "name": "sys_created_on", "comment": null}, "sys_domain_link": {"type": "text", "index": 68, "name": "sys_domain_link", "comment": null}, "sys_domain_path": {"type": "text", "index": 69, "name": "sys_domain_path", "comment": null}, "sys_domain_value": {"type": "text", "index": 70, "name": "sys_domain_value", "comment": null}, "sys_mod_count": {"type": "integer", "index": 71, "name": "sys_mod_count", "comment": null}, "sys_updated_by": {"type": "character varying", "index": 72, "name": "sys_updated_by", "comment": null}, "sys_updated_on": {"type": "timestamp without time zone", "index": 73, "name": "sys_updated_on", "comment": null}, "task_effective_number": {"type": "text", "index": 74, "name": "task_effective_number", "comment": null}, "universal_request_link": {"type": "integer", "index": 75, "name": "universal_request_link", "comment": null}, "universal_request_value": {"type": "integer", "index": 76, "name": "universal_request_value", "comment": null}, "upon_approval": {"type": "integer", "index": 77, "name": "upon_approval", "comment": null}, "upon_reject": {"type": "integer", "index": 78, "name": "upon_reject", "comment": null}, "urgency": {"type": "integer", "index": 79, "name": "urgency", "comment": null}, "watch_list": {"type": "integer", "index": 80, "name": "watch_list", "comment": null}, "wf_activity_link": {"type": "integer", "index": 81, "name": "wf_activity_link", "comment": null}, "wf_activity_value": {"type": "integer", "index": 82, "name": "wf_activity_value", "comment": null}, "work_end": {"type": "integer", "index": 83, "name": "work_end", "comment": null}, "work_notes": {"type": "integer", "index": 84, "name": "work_notes", "comment": null}, "work_notes_list": {"type": "integer", "index": 85, "name": "work_notes_list", "comment": null}, "work_start": {"type": "integer", "index": 86, "name": "work_start", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.servicenow.stg_servicenow__task_base"}, "model.servicenow.stg_servicenow__task_sla": {"metadata": {"type": "VIEW", "schema": "reddit_ads_integration_tests_3_stg_servicenow", "name": "stg_servicenow__task_sla", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "task_sla_id": {"type": "text", "index": 2, "name": "task_sla_id", "comment": null}, "task_sla_created_at": {"type": "timestamp without time zone", "index": 3, "name": "task_sla_created_at", "comment": null}, "task_sla_updated_at": {"type": "timestamp without time zone", "index": 4, "name": "task_sla_updated_at", "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}, "active": {"type": "boolean", "index": 7, "name": "active", "comment": null}, "business_duration": {"type": "timestamp without time zone", "index": 8, "name": "business_duration", "comment": null}, "business_pause_duration": {"type": "integer", "index": 9, "name": "business_pause_duration", "comment": null}, "business_percentage": {"type": "integer", "index": 10, "name": "business_percentage", "comment": null}, "business_time_left": {"type": "timestamp without time zone", "index": 11, "name": "business_time_left", "comment": null}, "duration": {"type": "timestamp without time zone", "index": 12, "name": "duration", "comment": null}, "end_time": {"type": "timestamp without time zone", "index": 13, "name": "end_time", "comment": null}, "has_breached": {"type": "boolean", "index": 14, "name": "has_breached", "comment": null}, "original_breach_time": {"type": "timestamp without time zone", "index": 15, "name": "original_breach_time", "comment": null}, "pause_duration": {"type": "integer", "index": 16, "name": "pause_duration", "comment": null}, "pause_time": {"type": "integer", "index": 17, "name": "pause_time", "comment": null}, "percentage": {"type": "double precision", "index": 18, "name": "percentage", "comment": null}, "planned_end_time": {"type": "timestamp without time zone", "index": 19, "name": "planned_end_time", "comment": null}, "schedule_link": {"type": "text", "index": 20, "name": "schedule_link", "comment": null}, "schedule_value": {"type": "text", "index": 21, "name": "schedule_value", "comment": null}, "sla_link": {"type": "text", "index": 22, "name": "sla_link", "comment": null}, "sla_value": {"type": "text", "index": 23, "name": "sla_value", "comment": null}, "stage": {"type": "text", "index": 24, "name": "stage", "comment": null}, "start_time": {"type": "timestamp without time zone", "index": 25, "name": "start_time", "comment": null}, "sys_created_by": {"type": "character varying", "index": 26, "name": "sys_created_by", "comment": null}, "sys_mod_count": {"type": "integer", "index": 27, "name": "sys_mod_count", "comment": null}, "sys_updated_by": {"type": "character varying", "index": 28, "name": "sys_updated_by", "comment": null}, "task_link": {"type": "text", "index": 29, "name": "task_link", "comment": null}, "task_value": {"type": "text", "index": 30, "name": "task_value", "comment": null}, "time_left": {"type": "timestamp without time zone", "index": 31, "name": "time_left", "comment": null}, "timezone": {"type": "text", "index": 32, "name": "timezone", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.servicenow.stg_servicenow__task_sla"}, "model.servicenow.stg_servicenow__task_sla_base": {"metadata": {"type": "VIEW", "schema": "reddit_ads_integration_tests_3_stg_servicenow", "name": "stg_servicenow__task_sla_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"sys_id": {"type": "character varying", "index": 1, "name": "sys_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}, "active": {"type": "boolean", "index": 4, "name": "active", "comment": null}, "business_duration": {"type": "timestamp without time zone", "index": 5, "name": "business_duration", "comment": null}, "business_pause_duration": {"type": "integer", "index": 6, "name": "business_pause_duration", "comment": null}, "business_percentage": {"type": "integer", "index": 7, "name": "business_percentage", "comment": null}, "business_time_left": {"type": "timestamp without time zone", "index": 8, "name": "business_time_left", "comment": null}, "duration": {"type": "timestamp without time zone", "index": 9, "name": "duration", "comment": null}, "end_time": {"type": "timestamp without time zone", "index": 10, "name": "end_time", "comment": null}, "has_breached": {"type": "boolean", "index": 11, "name": "has_breached", "comment": null}, "original_breach_time": {"type": "timestamp without time zone", "index": 12, "name": "original_breach_time", "comment": null}, "pause_duration": {"type": "integer", "index": 13, "name": "pause_duration", "comment": null}, "pause_time": {"type": "integer", "index": 14, "name": "pause_time", "comment": null}, "percentage": {"type": "double precision", "index": 15, "name": "percentage", "comment": null}, "planned_end_time": {"type": "timestamp without time zone", "index": 16, "name": "planned_end_time", "comment": null}, "schedule_link": {"type": "text", "index": 17, "name": "schedule_link", "comment": null}, "schedule_value": {"type": "text", "index": 18, "name": "schedule_value", "comment": null}, "sla_link": {"type": "text", "index": 19, "name": "sla_link", "comment": null}, "sla_value": {"type": "text", "index": 20, "name": "sla_value", "comment": null}, "stage": {"type": "text", "index": 21, "name": "stage", "comment": null}, "start_time": {"type": "timestamp without time zone", "index": 22, "name": "start_time", "comment": null}, "sys_created_by": {"type": "character varying", "index": 23, "name": "sys_created_by", "comment": null}, "sys_created_on": {"type": "timestamp without time zone", "index": 24, "name": "sys_created_on", "comment": null}, "sys_mod_count": {"type": "integer", "index": 25, "name": "sys_mod_count", "comment": null}, "sys_updated_by": {"type": "character varying", "index": 26, "name": "sys_updated_by", "comment": null}, "sys_updated_on": {"type": "timestamp without time zone", "index": 27, "name": "sys_updated_on", "comment": null}, "task_link": {"type": "text", "index": 28, "name": "task_link", "comment": null}, "task_value": {"type": "text", "index": 29, "name": "task_value", "comment": null}, "time_left": {"type": "timestamp without time zone", "index": 30, "name": "time_left", "comment": null}, "timezone": {"type": "text", "index": 31, "name": "timezone", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.servicenow.stg_servicenow__task_sla_base"}}, "sources": {"source.servicenow.servicenow.change_request": {"metadata": {"type": "BASE TABLE", "schema": "servicenow_integration_tests_3", "name": "change_request_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"sys_id": {"type": "character varying", "index": 1, "name": "sys_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}, "backout_plan": {"type": "text", "index": 4, "name": "backout_plan", "comment": null}, "cab_date": {"type": "integer", "index": 5, "name": "cab_date", "comment": null}, "cab_date_time": {"type": "integer", "index": 6, "name": "cab_date_time", "comment": null}, "cab_delegate_link": {"type": "integer", "index": 7, "name": "cab_delegate_link", "comment": null}, "cab_delegate_value": {"type": "integer", "index": 8, "name": "cab_delegate_value", "comment": null}, "cab_recommendation": {"type": "integer", "index": 9, "name": "cab_recommendation", "comment": null}, "cab_required": {"type": "boolean", "index": 10, "name": "cab_required", "comment": null}, "category": {"type": "text", "index": 11, "name": "category", "comment": null}, "change_plan": {"type": "integer", "index": 12, "name": "change_plan", "comment": null}, "chg_model_link": {"type": "integer", "index": 13, "name": "chg_model_link", "comment": null}, "chg_model_value": {"type": "integer", "index": 14, "name": "chg_model_value", "comment": null}, "close_code": {"type": "integer", "index": 15, "name": "close_code", "comment": null}, "conflict_last_run": {"type": "timestamp without time zone", "index": 16, "name": "conflict_last_run", "comment": null}, "conflict_status": {"type": "text", "index": 17, "name": "conflict_status", "comment": null}, "end_date": {"type": "timestamp without time zone", "index": 18, "name": "end_date", "comment": null}, "implementation_plan": {"type": "text", "index": 19, "name": "implementation_plan", "comment": null}, "justification": {"type": "integer", "index": 20, "name": "justification", "comment": null}, "on_hold": {"type": "boolean", "index": 21, "name": "on_hold", "comment": null}, "on_hold_reason": {"type": "integer", "index": 22, "name": "on_hold_reason", "comment": null}, "on_hold_task": {"type": "integer", "index": 23, "name": "on_hold_task", "comment": null}, "outside_maintenance_schedule": {"type": "boolean", "index": 24, "name": "outside_maintenance_schedule", "comment": null}, "phase": {"type": "integer", "index": 25, "name": "phase", "comment": null}, "phase_state": {"type": "text", "index": 26, "name": "phase_state", "comment": null}, "production_system": {"type": "boolean", "index": 27, "name": "production_system", "comment": null}, "reason": {"type": "integer", "index": 28, "name": "reason", "comment": null}, "requested_by_date": {"type": "integer", "index": 29, "name": "requested_by_date", "comment": null}, "requested_by_link": {"type": "text", "index": 30, "name": "requested_by_link", "comment": null}, "requested_by_value": {"type": "character varying", "index": 31, "name": "requested_by_value", "comment": null}, "review_comments": {"type": "integer", "index": 32, "name": "review_comments", "comment": null}, "review_date": {"type": "integer", "index": 33, "name": "review_date", "comment": null}, "review_status": {"type": "integer", "index": 34, "name": "review_status", "comment": null}, "risk": {"type": "integer", "index": 35, "name": "risk", "comment": null}, "risk_impact_analysis": {"type": "integer", "index": 36, "name": "risk_impact_analysis", "comment": null}, "scope": {"type": "integer", "index": 37, "name": "scope", "comment": null}, "start_date": {"type": "timestamp without time zone", "index": 38, "name": "start_date", "comment": null}, "std_change_producer_version_link": {"type": "integer", "index": 39, "name": "std_change_producer_version_link", "comment": null}, "std_change_producer_version_value": {"type": "integer", "index": 40, "name": "std_change_producer_version_value", "comment": null}, "sys_created_on": {"type": "timestamp without time zone", "index": 41, "name": "sys_created_on", "comment": null}, "sys_updated_on": {"type": "timestamp without time zone", "index": 42, "name": "sys_updated_on", "comment": null}, "test_plan": {"type": "integer", "index": 43, "name": "test_plan", "comment": null}, "type": {"type": "text", "index": 44, "name": "type", "comment": null}, "unauthorized": {"type": "boolean", "index": 45, "name": "unauthorized", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.servicenow.servicenow.change_request"}, "source.servicenow.servicenow.change_task": {"metadata": {"type": "BASE TABLE", "schema": "servicenow_integration_tests_3", "name": "change_task_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"sys_id": {"type": "character varying", "index": 1, "name": "sys_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}, "change_request_link": {"type": "text", "index": 4, "name": "change_request_link", "comment": null}, "change_request_value": {"type": "character varying", "index": 5, "name": "change_request_value", "comment": null}, "change_task_type": {"type": "integer", "index": 6, "name": "change_task_type", "comment": null}, "close_code": {"type": "text", "index": 7, "name": "close_code", "comment": null}, "created_from": {"type": "integer", "index": 8, "name": "created_from", "comment": null}, "on_hold": {"type": "boolean", "index": 9, "name": "on_hold", "comment": null}, "on_hold_reason": {"type": "integer", "index": 10, "name": "on_hold_reason", "comment": null}, "planned_end_date": {"type": "integer", "index": 11, "name": "planned_end_date", "comment": null}, "planned_start_date": {"type": "integer", "index": 12, "name": "planned_start_date", "comment": null}, "sys_created_on": {"type": "timestamp without time zone", "index": 13, "name": "sys_created_on", "comment": null}, "sys_updated_on": {"type": "timestamp without time zone", "index": 14, "name": "sys_updated_on", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.servicenow.servicenow.change_task"}, "source.servicenow.servicenow.incident": {"metadata": {"type": "BASE TABLE", "schema": "servicenow_integration_tests_3", "name": "incident_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"sys_id": {"type": "character varying", "index": 1, "name": "sys_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}, "business_impact": {"type": "integer", "index": 4, "name": "business_impact", "comment": null}, "business_stc": {"type": "integer", "index": 5, "name": "business_stc", "comment": null}, "calendar_stc": {"type": "integer", "index": 6, "name": "calendar_stc", "comment": null}, "caller_id_link": {"type": "text", "index": 7, "name": "caller_id_link", "comment": null}, "caller_id_value": {"type": "text", "index": 8, "name": "caller_id_value", "comment": null}, "category": {"type": "text", "index": 9, "name": "category", "comment": null}, "cause": {"type": "integer", "index": 10, "name": "cause", "comment": null}, "caused_by_link": {"type": "integer", "index": 11, "name": "caused_by_link", "comment": null}, "caused_by_value": {"type": "integer", "index": 12, "name": "caused_by_value", "comment": null}, "child_incidents": {"type": "integer", "index": 13, "name": "child_incidents", "comment": null}, "close_code": {"type": "integer", "index": 14, "name": "close_code", "comment": null}, "hold_reason": {"type": "integer", "index": 15, "name": "hold_reason", "comment": null}, "incident_state": {"type": "integer", "index": 16, "name": "incident_state", "comment": null}, "notify": {"type": "integer", "index": 17, "name": "notify", "comment": null}, "origin_id_link": {"type": "integer", "index": 18, "name": "origin_id_link", "comment": null}, "origin_id_value": {"type": "integer", "index": 19, "name": "origin_id_value", "comment": null}, "parent_incident_link": {"type": "integer", "index": 20, "name": "parent_incident_link", "comment": null}, "parent_incident_value": {"type": "integer", "index": 21, "name": "parent_incident_value", "comment": null}, "problem_id_link": {"type": "text", "index": 22, "name": "problem_id_link", "comment": null}, "problem_id_value": {"type": "text", "index": 23, "name": "problem_id_value", "comment": null}, "reopen_count": {"type": "integer", "index": 24, "name": "reopen_count", "comment": null}, "reopened_by_link": {"type": "integer", "index": 25, "name": "reopened_by_link", "comment": null}, "reopened_by_value": {"type": "integer", "index": 26, "name": "reopened_by_value", "comment": null}, "reopened_time": {"type": "integer", "index": 27, "name": "reopened_time", "comment": null}, "resolved_at": {"type": "timestamp without time zone", "index": 28, "name": "resolved_at", "comment": null}, "resolved_by_link": {"type": "integer", "index": 29, "name": "resolved_by_link", "comment": null}, "resolved_by_value": {"type": "character varying", "index": 30, "name": "resolved_by_value", "comment": null}, "rfc_link": {"type": "integer", "index": 31, "name": "rfc_link", "comment": null}, "rfc_value": {"type": "integer", "index": 32, "name": "rfc_value", "comment": null}, "severity": {"type": "integer", "index": 33, "name": "severity", "comment": null}, "subcategory": {"type": "integer", "index": 34, "name": "subcategory", "comment": null}, "sys_created_on": {"type": "timestamp without time zone", "index": 35, "name": "sys_created_on", "comment": null}, "sys_updated_on": {"type": "timestamp without time zone", "index": 36, "name": "sys_updated_on", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.servicenow.servicenow.incident"}, "source.servicenow.servicenow.problem": {"metadata": {"type": "BASE TABLE", "schema": "servicenow_integration_tests_3", "name": "problem_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"sys_id": {"type": "character varying", "index": 1, "name": "sys_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}, "category": {"type": "text", "index": 4, "name": "category", "comment": null}, "cause_notes": {"type": "integer", "index": 5, "name": "cause_notes", "comment": null}, "confirmed_at": {"type": "integer", "index": 6, "name": "confirmed_at", "comment": null}, "confirmed_by_link": {"type": "integer", "index": 7, "name": "confirmed_by_link", "comment": null}, "confirmed_by_value": {"type": "character varying", "index": 8, "name": "confirmed_by_value", "comment": null}, "duplicate_of_link": {"type": "integer", "index": 9, "name": "duplicate_of_link", "comment": null}, "duplicate_of_value": {"type": "integer", "index": 10, "name": "duplicate_of_value", "comment": null}, "first_reported_by_task_link": {"type": "integer", "index": 11, "name": "first_reported_by_task_link", "comment": null}, "first_reported_by_task_value": {"type": "character varying", "index": 12, "name": "first_reported_by_task_value", "comment": null}, "fix_at": {"type": "integer", "index": 13, "name": "fix_at", "comment": null}, "fix_by_link": {"type": "integer", "index": 14, "name": "fix_by_link", "comment": null}, "fix_by_value": {"type": "character varying", "index": 15, "name": "fix_by_value", "comment": null}, "fix_communicated_at": {"type": "integer", "index": 16, "name": "fix_communicated_at", "comment": null}, "fix_communicated_by_link": {"type": "integer", "index": 17, "name": "fix_communicated_by_link", "comment": null}, "fix_communicated_by_value": {"type": "integer", "index": 18, "name": "fix_communicated_by_value", "comment": null}, "fix_notes": {"type": "integer", "index": 19, "name": "fix_notes", "comment": null}, "known_error": {"type": "boolean", "index": 20, "name": "known_error", "comment": null}, "major_problem": {"type": "boolean", "index": 21, "name": "major_problem", "comment": null}, "problem_state": {"type": "integer", "index": 22, "name": "problem_state", "comment": null}, "related_incidents": {"type": "integer", "index": 23, "name": "related_incidents", "comment": null}, "reopen_count": {"type": "integer", "index": 24, "name": "reopen_count", "comment": null}, "reopened_at": {"type": "integer", "index": 25, "name": "reopened_at", "comment": null}, "reopened_by_link": {"type": "integer", "index": 26, "name": "reopened_by_link", "comment": null}, "reopened_by_value": {"type": "integer", "index": 27, "name": "reopened_by_value", "comment": null}, "resolution_code": {"type": "integer", "index": 28, "name": "resolution_code", "comment": null}, "resolved_at": {"type": "timestamp without time zone", "index": 29, "name": "resolved_at", "comment": null}, "resolved_by_link": {"type": "integer", "index": 30, "name": "resolved_by_link", "comment": null}, "resolved_by_value": {"type": "character varying", "index": 31, "name": "resolved_by_value", "comment": null}, "review_outcome": {"type": "integer", "index": 32, "name": "review_outcome", "comment": null}, "rfc_link": {"type": "integer", "index": 33, "name": "rfc_link", "comment": null}, "rfc_value": {"type": "integer", "index": 34, "name": "rfc_value", "comment": null}, "subcategory": {"type": "text", "index": 35, "name": "subcategory", "comment": null}, "sys_created_on": {"type": "timestamp without time zone", "index": 36, "name": "sys_created_on", "comment": null}, "sys_updated_on": {"type": "timestamp without time zone", "index": 37, "name": "sys_updated_on", "comment": null}, "workaround": {"type": "integer", "index": 38, "name": "workaround", "comment": null}, "workaround_applied": {"type": "boolean", "index": 39, "name": "workaround_applied", "comment": null}, "workaround_communicated_at": {"type": "integer", "index": 40, "name": "workaround_communicated_at", "comment": null}, "workaround_communicated_by_link": {"type": "integer", "index": 41, "name": "workaround_communicated_by_link", "comment": null}, "workaround_communicated_by_value": {"type": "integer", "index": 42, "name": "workaround_communicated_by_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.servicenow.servicenow.problem"}, "source.servicenow.servicenow.problem_task": {"metadata": {"type": "BASE TABLE", "schema": "servicenow_integration_tests_3", "name": "problem_task_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"sys_id": {"type": "character varying", "index": 1, "name": "sys_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}, "cause_code": {"type": "integer", "index": 4, "name": "cause_code", "comment": null}, "close_code": {"type": "integer", "index": 5, "name": "close_code", "comment": null}, "other_reason": {"type": "integer", "index": 6, "name": "other_reason", "comment": null}, "problem_link": {"type": "text", "index": 7, "name": "problem_link", "comment": null}, "problem_task_type": {"type": "text", "index": 8, "name": "problem_task_type", "comment": null}, "problem_value": {"type": "character varying", "index": 9, "name": "problem_value", "comment": null}, "reopen_count": {"type": "integer", "index": 10, "name": "reopen_count", "comment": null}, "reopened_at": {"type": "timestamp without time zone", "index": 11, "name": "reopened_at", "comment": null}, "reopened_by_link": {"type": "text", "index": 12, "name": "reopened_by_link", "comment": null}, "reopened_by_value": {"type": "text", "index": 13, "name": "reopened_by_value", "comment": null}, "started_at": {"type": "timestamp without time zone", "index": 14, "name": "started_at", "comment": null}, "started_by_link": {"type": "text", "index": 15, "name": "started_by_link", "comment": null}, "started_by_value": {"type": "character varying", "index": 16, "name": "started_by_value", "comment": null}, "sys_created_on": {"type": "timestamp without time zone", "index": 17, "name": "sys_created_on", "comment": null}, "sys_updated_on": {"type": "timestamp without time zone", "index": 18, "name": "sys_updated_on", "comment": null}, "vendor_link": {"type": "integer", "index": 19, "name": "vendor_link", "comment": null}, "vendor_value": {"type": "integer", "index": 20, "name": "vendor_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.servicenow.servicenow.problem_task"}, "source.servicenow.servicenow.sys_user": {"metadata": {"type": "BASE TABLE", "schema": "servicenow_integration_tests_3", "name": "sys_user_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"sys_id": {"type": "character varying", "index": 1, "name": "sys_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}, "accumulated_roles": {"type": "integer", "index": 4, "name": "accumulated_roles", "comment": null}, "active": {"type": "boolean", "index": 5, "name": "active", "comment": null}, "avatar": {"type": "integer", "index": 6, "name": "avatar", "comment": null}, "building_link": {"type": "integer", "index": 7, "name": "building_link", "comment": null}, "building_value": {"type": "integer", "index": 8, "name": "building_value", "comment": null}, "calendar_integration": {"type": "integer", "index": 9, "name": "calendar_integration", "comment": null}, "city": {"type": "integer", "index": 10, "name": "city", "comment": null}, "company_link": {"type": "integer", "index": 11, "name": "company_link", "comment": null}, "company_value": {"type": "integer", "index": 12, "name": "company_value", "comment": null}, "cost_center_link": {"type": "integer", "index": 13, "name": "cost_center_link", "comment": null}, "cost_center_value": {"type": "integer", "index": 14, "name": "cost_center_value", "comment": null}, "country": {"type": "integer", "index": 15, "name": "country", "comment": null}, "date_format": {"type": "integer", "index": 16, "name": "date_format", "comment": null}, "default_perspective_link": {"type": "integer", "index": 17, "name": "default_perspective_link", "comment": null}, "default_perspective_value": {"type": "integer", "index": 18, "name": "default_perspective_value", "comment": null}, "department_link": {"type": "integer", "index": 19, "name": "department_link", "comment": null}, "department_value": {"type": "integer", "index": 20, "name": "department_value", "comment": null}, "edu_status": {"type": "integer", "index": 21, "name": "edu_status", "comment": null}, "email": {"type": "text", "index": 22, "name": "email", "comment": null}, "employee_number": {"type": "integer", "index": 23, "name": "employee_number", "comment": null}, "enable_multifactor_authn": {"type": "boolean", "index": 24, "name": "enable_multifactor_authn", "comment": null}, "failed_attempts": {"type": "integer", "index": 25, "name": "failed_attempts", "comment": null}, "first_name": {"type": "text", "index": 26, "name": "first_name", "comment": null}, "gender": {"type": "integer", "index": 27, "name": "gender", "comment": null}, "hashed_user_id": {"type": "integer", "index": 28, "name": "hashed_user_id", "comment": null}, "home_phone": {"type": "integer", "index": 29, "name": "home_phone", "comment": null}, "internal_integration_user": {"type": "boolean", "index": 30, "name": "internal_integration_user", "comment": null}, "introduction": {"type": "integer", "index": 31, "name": "introduction", "comment": null}, "last_login": {"type": "date", "index": 32, "name": "last_login", "comment": null}, "last_login_device": {"type": "integer", "index": 33, "name": "last_login_device", "comment": null}, "last_login_time": {"type": "timestamp without time zone", "index": 34, "name": "last_login_time", "comment": null}, "last_name": {"type": "text", "index": 35, "name": "last_name", "comment": null}, "last_password": {"type": "integer", "index": 36, "name": "last_password", "comment": null}, "ldap_server_link": {"type": "integer", "index": 37, "name": "ldap_server_link", "comment": null}, "ldap_server_value": {"type": "integer", "index": 38, "name": "ldap_server_value", "comment": null}, "location_link": {"type": "integer", "index": 39, "name": "location_link", "comment": null}, "location_value": {"type": "integer", "index": 40, "name": "location_value", "comment": null}, "locked_out": {"type": "boolean", "index": 41, "name": "locked_out", "comment": null}, "manager_link": {"type": "integer", "index": 42, "name": "manager_link", "comment": null}, "manager_value": {"type": "integer", "index": 43, "name": "manager_value", "comment": null}, "middle_name": {"type": "integer", "index": 44, "name": "middle_name", "comment": null}, "mobile_phone": {"type": "integer", "index": 45, "name": "mobile_phone", "comment": null}, "name": {"type": "text", "index": 46, "name": "name", "comment": null}, "notification": {"type": "integer", "index": 47, "name": "notification", "comment": null}, "password_needs_reset": {"type": "boolean", "index": 48, "name": "password_needs_reset", "comment": null}, "phone": {"type": "integer", "index": 49, "name": "phone", "comment": null}, "photo": {"type": "integer", "index": 50, "name": "photo", "comment": null}, "preferred_language": {"type": "integer", "index": 51, "name": "preferred_language", "comment": null}, "roles": {"type": "integer", "index": 52, "name": "roles", "comment": null}, "schedule_link": {"type": "integer", "index": 53, "name": "schedule_link", "comment": null}, "schedule_value": {"type": "integer", "index": 54, "name": "schedule_value", "comment": null}, "source": {"type": "integer", "index": 55, "name": "source", "comment": null}, "state": {"type": "integer", "index": 56, "name": "state", "comment": null}, "sys_class_name": {"type": "text", "index": 57, "name": "sys_class_name", "comment": null}, "sys_created_by": {"type": "character varying", "index": 58, "name": "sys_created_by", "comment": null}, "sys_created_on": {"type": "timestamp without time zone", "index": 59, "name": "sys_created_on", "comment": null}, "sys_domain_link": {"type": "text", "index": 60, "name": "sys_domain_link", "comment": null}, "sys_domain_path": {"type": "text", "index": 61, "name": "sys_domain_path", "comment": null}, "sys_domain_value": {"type": "text", "index": 62, "name": "sys_domain_value", "comment": null}, "sys_mod_count": {"type": "integer", "index": 63, "name": "sys_mod_count", "comment": null}, "sys_updated_by": {"type": "character varying", "index": 64, "name": "sys_updated_by", "comment": null}, "sys_updated_on": {"type": "timestamp without time zone", "index": 65, "name": "sys_updated_on", "comment": null}, "time_format": {"type": "integer", "index": 66, "name": "time_format", "comment": null}, "time_zone": {"type": "integer", "index": 67, "name": "time_zone", "comment": null}, "title": {"type": "integer", "index": 68, "name": "title", "comment": null}, "user_name": {"type": "text", "index": 69, "name": "user_name", "comment": null}, "user_password": {"type": "text", "index": 70, "name": "user_password", "comment": null}, "vip": {"type": "boolean", "index": 71, "name": "vip", "comment": null}, "web_service_access_only": {"type": "boolean", "index": 72, "name": "web_service_access_only", "comment": null}, "zip": {"type": "integer", "index": 73, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.servicenow.servicenow.sys_user"}, "source.servicenow.servicenow.task": {"metadata": {"type": "BASE TABLE", "schema": "servicenow_integration_tests_3", "name": "task_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"sys_id": {"type": "character varying", "index": 1, "name": "sys_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}, "active": {"type": "boolean", "index": 4, "name": "active", "comment": null}, "activity_due": {"type": "integer", "index": 5, "name": "activity_due", "comment": null}, "additional_assignee_list": {"type": "integer", "index": 6, "name": "additional_assignee_list", "comment": null}, "approval": {"type": "text", "index": 7, "name": "approval", "comment": null}, "approval_history": {"type": "integer", "index": 8, "name": "approval_history", "comment": null}, "approval_set": {"type": "integer", "index": 9, "name": "approval_set", "comment": null}, "assigned_to_link": {"type": "text", "index": 10, "name": "assigned_to_link", "comment": null}, "assigned_to_value": {"type": "character varying", "index": 11, "name": "assigned_to_value", "comment": null}, "assignment_group_link": {"type": "integer", "index": 12, "name": "assignment_group_link", "comment": null}, "assignment_group_value": {"type": "integer", "index": 13, "name": "assignment_group_value", "comment": null}, "business_duration": {"type": "integer", "index": 14, "name": "business_duration", "comment": null}, "business_service_link": {"type": "integer", "index": 15, "name": "business_service_link", "comment": null}, "business_service_value": {"type": "integer", "index": 16, "name": "business_service_value", "comment": null}, "calendar_duration": {"type": "integer", "index": 17, "name": "calendar_duration", "comment": null}, "close_notes": {"type": "integer", "index": 18, "name": "close_notes", "comment": null}, "closed_at": {"type": "timestamp without time zone", "index": 19, "name": "closed_at", "comment": null}, "closed_by_link": {"type": "text", "index": 20, "name": "closed_by_link", "comment": null}, "closed_by_value": {"type": "character varying", "index": 21, "name": "closed_by_value", "comment": null}, "cmdb_ci_link": {"type": "integer", "index": 22, "name": "cmdb_ci_link", "comment": null}, "cmdb_ci_value": {"type": "integer", "index": 23, "name": "cmdb_ci_value", "comment": null}, "comments": {"type": "integer", "index": 24, "name": "comments", "comment": null}, "comments_and_work_notes": {"type": "integer", "index": 25, "name": "comments_and_work_notes", "comment": null}, "company_link": {"type": "integer", "index": 26, "name": "company_link", "comment": null}, "company_value": {"type": "integer", "index": 27, "name": "company_value", "comment": null}, "contact_type": {"type": "integer", "index": 28, "name": "contact_type", "comment": null}, "contract_link": {"type": "integer", "index": 29, "name": "contract_link", "comment": null}, "contract_value": {"type": "integer", "index": 30, "name": "contract_value", "comment": null}, "correlation_display": {"type": "integer", "index": 31, "name": "correlation_display", "comment": null}, "correlation_id": {"type": "integer", "index": 32, "name": "correlation_id", "comment": null}, "delivery_plan_link": {"type": "integer", "index": 33, "name": "delivery_plan_link", "comment": null}, "delivery_plan_value": {"type": "integer", "index": 34, "name": "delivery_plan_value", "comment": null}, "delivery_task_link": {"type": "integer", "index": 35, "name": "delivery_task_link", "comment": null}, "delivery_task_value": {"type": "integer", "index": 36, "name": "delivery_task_value", "comment": null}, "description": {"type": "text", "index": 37, "name": "description", "comment": null}, "due_date": {"type": "integer", "index": 38, "name": "due_date", "comment": null}, "escalation": {"type": "integer", "index": 39, "name": "escalation", "comment": null}, "expected_start": {"type": "integer", "index": 40, "name": "expected_start", "comment": null}, "follow_up": {"type": "integer", "index": 41, "name": "follow_up", "comment": null}, "group_list": {"type": "integer", "index": 42, "name": "group_list", "comment": null}, "impact": {"type": "integer", "index": 43, "name": "impact", "comment": null}, "knowledge": {"type": "boolean", "index": 44, "name": "knowledge", "comment": null}, "location_link": {"type": "integer", "index": 45, "name": "location_link", "comment": null}, "location_value": {"type": "integer", "index": 46, "name": "location_value", "comment": null}, "made_sla": {"type": "boolean", "index": 47, "name": "made_sla", "comment": null}, "number": {"type": "text", "index": 48, "name": "number", "comment": null}, "opened_at": {"type": "timestamp without time zone", "index": 49, "name": "opened_at", "comment": null}, "opened_by_link": {"type": "text", "index": 50, "name": "opened_by_link", "comment": null}, "opened_by_value": {"type": "character varying", "index": 51, "name": "opened_by_value", "comment": null}, "order": {"type": "integer", "index": 52, "name": "order", "comment": null}, "parent_link": {"type": "integer", "index": 53, "name": "parent_link", "comment": null}, "parent_value": {"type": "integer", "index": 54, "name": "parent_value", "comment": null}, "priority": {"type": "integer", "index": 55, "name": "priority", "comment": null}, "reassignment_count": {"type": "integer", "index": 56, "name": "reassignment_count", "comment": null}, "rejection_goto_link": {"type": "integer", "index": 57, "name": "rejection_goto_link", "comment": null}, "rejection_goto_value": {"type": "integer", "index": 58, "name": "rejection_goto_value", "comment": null}, "route_reason": {"type": "integer", "index": 59, "name": "route_reason", "comment": null}, "service_offering_link": {"type": "integer", "index": 60, "name": "service_offering_link", "comment": null}, "service_offering_value": {"type": "integer", "index": 61, "name": "service_offering_value", "comment": null}, "short_description": {"type": "text", "index": 62, "name": "short_description", "comment": null}, "sla_due": {"type": "integer", "index": 63, "name": "sla_due", "comment": null}, "state": {"type": "integer", "index": 64, "name": "state", "comment": null}, "sys_class_name": {"type": "text", "index": 65, "name": "sys_class_name", "comment": null}, "sys_created_by": {"type": "character varying", "index": 66, "name": "sys_created_by", "comment": null}, "sys_created_on": {"type": "timestamp without time zone", "index": 67, "name": "sys_created_on", "comment": null}, "sys_domain_link": {"type": "text", "index": 68, "name": "sys_domain_link", "comment": null}, "sys_domain_path": {"type": "text", "index": 69, "name": "sys_domain_path", "comment": null}, "sys_domain_value": {"type": "text", "index": 70, "name": "sys_domain_value", "comment": null}, "sys_mod_count": {"type": "integer", "index": 71, "name": "sys_mod_count", "comment": null}, "sys_updated_by": {"type": "character varying", "index": 72, "name": "sys_updated_by", "comment": null}, "sys_updated_on": {"type": "timestamp without time zone", "index": 73, "name": "sys_updated_on", "comment": null}, "task_effective_number": {"type": "text", "index": 74, "name": "task_effective_number", "comment": null}, "universal_request_link": {"type": "integer", "index": 75, "name": "universal_request_link", "comment": null}, "universal_request_value": {"type": "integer", "index": 76, "name": "universal_request_value", "comment": null}, "upon_approval": {"type": "integer", "index": 77, "name": "upon_approval", "comment": null}, "upon_reject": {"type": "integer", "index": 78, "name": "upon_reject", "comment": null}, "urgency": {"type": "integer", "index": 79, "name": "urgency", "comment": null}, "watch_list": {"type": "integer", "index": 80, "name": "watch_list", "comment": null}, "wf_activity_link": {"type": "integer", "index": 81, "name": "wf_activity_link", "comment": null}, "wf_activity_value": {"type": "integer", "index": 82, "name": "wf_activity_value", "comment": null}, "work_end": {"type": "integer", "index": 83, "name": "work_end", "comment": null}, "work_notes": {"type": "integer", "index": 84, "name": "work_notes", "comment": null}, "work_notes_list": {"type": "integer", "index": 85, "name": "work_notes_list", "comment": null}, "work_start": {"type": "integer", "index": 86, "name": "work_start", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.servicenow.servicenow.task"}, "source.servicenow.servicenow.task_sla": {"metadata": {"type": "BASE TABLE", "schema": "servicenow_integration_tests_3", "name": "task_sla_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"sys_id": {"type": "character varying", "index": 1, "name": "sys_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}, "active": {"type": "boolean", "index": 4, "name": "active", "comment": null}, "business_duration": {"type": "timestamp without time zone", "index": 5, "name": "business_duration", "comment": null}, "business_pause_duration": {"type": "integer", "index": 6, "name": "business_pause_duration", "comment": null}, "business_percentage": {"type": "integer", "index": 7, "name": "business_percentage", "comment": null}, "business_time_left": {"type": "timestamp without time zone", "index": 8, "name": "business_time_left", "comment": null}, "duration": {"type": "timestamp without time zone", "index": 9, "name": "duration", "comment": null}, "end_time": {"type": "timestamp without time zone", "index": 10, "name": "end_time", "comment": null}, "has_breached": {"type": "boolean", "index": 11, "name": "has_breached", "comment": null}, "original_breach_time": {"type": "timestamp without time zone", "index": 12, "name": "original_breach_time", "comment": null}, "pause_duration": {"type": "integer", "index": 13, "name": "pause_duration", "comment": null}, "pause_time": {"type": "integer", "index": 14, "name": "pause_time", "comment": null}, "percentage": {"type": "double precision", "index": 15, "name": "percentage", "comment": null}, "planned_end_time": {"type": "timestamp without time zone", "index": 16, "name": "planned_end_time", "comment": null}, "schedule_link": {"type": "text", "index": 17, "name": "schedule_link", "comment": null}, "schedule_value": {"type": "text", "index": 18, "name": "schedule_value", "comment": null}, "sla_link": {"type": "text", "index": 19, "name": "sla_link", "comment": null}, "sla_value": {"type": "text", "index": 20, "name": "sla_value", "comment": null}, "stage": {"type": "text", "index": 21, "name": "stage", "comment": null}, "start_time": {"type": "timestamp without time zone", "index": 22, "name": "start_time", "comment": null}, "sys_created_by": {"type": "character varying", "index": 23, "name": "sys_created_by", "comment": null}, "sys_created_on": {"type": "timestamp without time zone", "index": 24, "name": "sys_created_on", "comment": null}, "sys_mod_count": {"type": "integer", "index": 25, "name": "sys_mod_count", "comment": null}, "sys_updated_by": {"type": "character varying", "index": 26, "name": "sys_updated_by", "comment": null}, "sys_updated_on": {"type": "timestamp without time zone", "index": 27, "name": "sys_updated_on", "comment": null}, "task_link": {"type": "text", "index": 28, "name": "task_link", "comment": null}, "task_value": {"type": "text", "index": 29, "name": "task_value", "comment": null}, "time_left": {"type": "timestamp without time zone", "index": 30, "name": "time_left", "comment": null}, "timezone": {"type": "text", "index": 31, "name": "timezone", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.servicenow.servicenow.task_sla"}}, "errors": null} \ No newline at end of file +{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/catalog/v1.json", "dbt_version": "1.6.1", "generated_at": "2024-02-22T22:26:44.391746Z", "invocation_id": "7971e914-73f2-4b1f-8950-b1a9debcdda9", "env": {}}, "nodes": {"model.servicenow.servicenow__activity_summary": {"metadata": {"type": "table", "schema": "zz_dbt_renee_servicenow", "name": "servicenow__activity_summary", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"task_updated_date": {"type": "DATE", "index": 1, "name": "task_updated_date", "comment": null}, "task_state": {"type": "INT64", "index": 2, "name": "task_state", "comment": null}, "priority": {"type": "INT64", "index": 3, "name": "priority", "comment": null}, "impact": {"type": "INT64", "index": 4, "name": "impact", "comment": null}, "urgency": {"type": "INT64", "index": 5, "name": "urgency", "comment": null}, "source_relation": {"type": "STRING", "index": 6, "name": "source_relation", "comment": null}, "total_active_tasks": {"type": "INT64", "index": 7, "name": "total_active_tasks", "comment": null}, "total_active_problem_tasks": {"type": "INT64", "index": 8, "name": "total_active_problem_tasks", "comment": null}, "total_active_change_tasks": {"type": "INT64", "index": 9, "name": "total_active_change_tasks", "comment": null}, "total_associated_problems": {"type": "INT64", "index": 10, "name": "total_associated_problems", "comment": null}, "total_incidents_caused_by_problems": {"type": "INT64", "index": 11, "name": "total_incidents_caused_by_problems", "comment": null}, "total_change_requests": {"type": "INT64", "index": 12, "name": "total_change_requests", "comment": null}, "total_closed_tasks": {"type": "INT64", "index": 13, "name": "total_closed_tasks", "comment": null}, "average_minutes_open_to_close": {"type": "FLOAT64", "index": 14, "name": "average_minutes_open_to_close", "comment": null}, "total_tasks_made_slas": {"type": "INT64", "index": 15, "name": "total_tasks_made_slas", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 10660.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 106.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.servicenow.servicenow__activity_summary"}, "model.servicenow.servicenow__task_enhanced": {"metadata": {"type": "table", "schema": "zz_dbt_renee_servicenow", "name": "servicenow__task_enhanced", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"task_id": {"type": "STRING", "index": 1, "name": "task_id", "comment": null}, "is_task_active": {"type": "BOOL", "index": 2, "name": "is_task_active", "comment": null}, "task_description": {"type": "STRING", "index": 3, "name": "task_description", "comment": null}, "activity_due": {"type": "TIMESTAMP", "index": 4, "name": "activity_due", "comment": null}, "priority": {"type": "INT64", "index": 5, "name": "priority", "comment": null}, "impact": {"type": "INT64", "index": 6, "name": "impact", "comment": null}, "urgency": {"type": "INT64", "index": 7, "name": "urgency", "comment": null}, "task_state": {"type": "INT64", "index": 8, "name": "task_state", "comment": null}, "task_number": {"type": "STRING", "index": 9, "name": "task_number", "comment": null}, "task_order": {"type": "INT64", "index": 10, "name": "task_order", "comment": null}, "is_problem_task": {"type": "BOOL", "index": 11, "name": "is_problem_task", "comment": null}, "is_change_task": {"type": "BOOL", "index": 12, "name": "is_change_task", "comment": null}, "task_created_at": {"type": "TIMESTAMP", "index": 13, "name": "task_created_at", "comment": null}, "sys_created_by": {"type": "STRING", "index": 14, "name": "sys_created_by", "comment": null}, "cmdb_ci_link": {"type": "STRING", "index": 15, "name": "cmdb_ci_link", "comment": null}, "cmdb_ci_value": {"type": "STRING", "index": 16, "name": "cmdb_ci_value", "comment": null}, "cmdb_ci_name": {"type": "STRING", "index": 17, "name": "cmdb_ci_name", "comment": null}, "creator_email": {"type": "STRING", "index": 18, "name": "creator_email", "comment": null}, "creator_manager_value": {"type": "STRING", "index": 19, "name": "creator_manager_value", "comment": null}, "creator_department_value": {"type": "STRING", "index": 20, "name": "creator_department_value", "comment": null}, "creator_name": {"type": "STRING", "index": 21, "name": "creator_name", "comment": null}, "creator_roles": {"type": "STRING", "index": 22, "name": "creator_roles", "comment": null}, "task_updated_at": {"type": "TIMESTAMP", "index": 23, "name": "task_updated_at", "comment": null}, "task_updated_date": {"type": "DATE", "index": 24, "name": "task_updated_date", "comment": null}, "sys_updated_by": {"type": "STRING", "index": 25, "name": "sys_updated_by", "comment": null}, "updater_email": {"type": "STRING", "index": 26, "name": "updater_email", "comment": null}, "updater_manager_value": {"type": "STRING", "index": 27, "name": "updater_manager_value", "comment": null}, "updater_department_value": {"type": "STRING", "index": 28, "name": "updater_department_value", "comment": null}, "updater_name": {"type": "STRING", "index": 29, "name": "updater_name", "comment": null}, "updater_roles": {"type": "STRING", "index": 30, "name": "updater_roles", "comment": null}, "task_opened_at": {"type": "TIMESTAMP", "index": 31, "name": "task_opened_at", "comment": null}, "opened_by_link": {"type": "STRING", "index": 32, "name": "opened_by_link", "comment": null}, "opened_by_value": {"type": "STRING", "index": 33, "name": "opened_by_value", "comment": null}, "opener_manager_value": {"type": "STRING", "index": 34, "name": "opener_manager_value", "comment": null}, "opener_email": {"type": "STRING", "index": 35, "name": "opener_email", "comment": null}, "opener_department_value": {"type": "STRING", "index": 36, "name": "opener_department_value", "comment": null}, "opener_name": {"type": "STRING", "index": 37, "name": "opener_name", "comment": null}, "opener_roles": {"type": "STRING", "index": 38, "name": "opener_roles", "comment": null}, "assigned_to_link": {"type": "STRING", "index": 39, "name": "assigned_to_link", "comment": null}, "assigned_to_value": {"type": "STRING", "index": 40, "name": "assigned_to_value", "comment": null}, "assignee_email": {"type": "STRING", "index": 41, "name": "assignee_email", "comment": null}, "assignee_manager_value": {"type": "STRING", "index": 42, "name": "assignee_manager_value", "comment": null}, "assignee_department_value": {"type": "STRING", "index": 43, "name": "assignee_department_value", "comment": null}, "assignee_name": {"type": "STRING", "index": 44, "name": "assignee_name", "comment": null}, "assignee_roles": {"type": "STRING", "index": 45, "name": "assignee_roles", "comment": null}, "task_closed_at": {"type": "TIMESTAMP", "index": 46, "name": "task_closed_at", "comment": null}, "task_minutes_open_to_close": {"type": "INT64", "index": 47, "name": "task_minutes_open_to_close", "comment": null}, "closed_by_link": {"type": "STRING", "index": 48, "name": "closed_by_link", "comment": null}, "closed_by_value": {"type": "STRING", "index": 49, "name": "closed_by_value", "comment": null}, "closer_email": {"type": "STRING", "index": 50, "name": "closer_email", "comment": null}, "closer_manager_value": {"type": "STRING", "index": 51, "name": "closer_manager_value", "comment": null}, "closer_department_value": {"type": "STRING", "index": 52, "name": "closer_department_value", "comment": null}, "closer_name": {"type": "STRING", "index": 53, "name": "closer_name", "comment": null}, "closer_roles": {"type": "STRING", "index": 54, "name": "closer_roles", "comment": null}, "task_effective_number": {"type": "STRING", "index": 55, "name": "task_effective_number", "comment": null}, "additional_assignee_list": {"type": "STRING", "index": 56, "name": "additional_assignee_list", "comment": null}, "approval": {"type": "STRING", "index": 57, "name": "approval", "comment": null}, "approval_history": {"type": "STRING", "index": 58, "name": "approval_history", "comment": null}, "approval_set": {"type": "TIMESTAMP", "index": 59, "name": "approval_set", "comment": null}, "assignment_group_link": {"type": "STRING", "index": 60, "name": "assignment_group_link", "comment": null}, "assignment_group_value": {"type": "STRING", "index": 61, "name": "assignment_group_value", "comment": null}, "assignment_group_name": {"type": "STRING", "index": 62, "name": "assignment_group_name", "comment": null}, "business_duration": {"type": "TIMESTAMP", "index": 63, "name": "business_duration", "comment": null}, "calendar_duration": {"type": "TIMESTAMP", "index": 64, "name": "calendar_duration", "comment": null}, "business_service_link": {"type": "STRING", "index": 65, "name": "business_service_link", "comment": null}, "business_service_value": {"type": "STRING", "index": 66, "name": "business_service_value", "comment": null}, "business_service_name": {"type": "STRING", "index": 67, "name": "business_service_name", "comment": null}, "close_notes": {"type": "STRING", "index": 68, "name": "close_notes", "comment": null}, "comments": {"type": "STRING", "index": 69, "name": "comments", "comment": null}, "comments_and_work_notes": {"type": "STRING", "index": 70, "name": "comments_and_work_notes", "comment": null}, "company_link": {"type": "STRING", "index": 71, "name": "company_link", "comment": null}, "company_value": {"type": "STRING", "index": 72, "name": "company_value", "comment": null}, "company_name": {"type": "STRING", "index": 73, "name": "company_name", "comment": null}, "contact_type": {"type": "STRING", "index": 74, "name": "contact_type", "comment": null}, "task_due_date_at": {"type": "TIMESTAMP", "index": 75, "name": "task_due_date_at", "comment": null}, "expected_start": {"type": "TIMESTAMP", "index": 76, "name": "expected_start", "comment": null}, "task_follow_up_at": {"type": "TIMESTAMP", "index": 77, "name": "task_follow_up_at", "comment": null}, "group_list": {"type": "STRING", "index": 78, "name": "group_list", "comment": null}, "knowledge": {"type": "BOOL", "index": 79, "name": "knowledge", "comment": null}, "is_made_sla": {"type": "BOOL", "index": 80, "name": "is_made_sla", "comment": null}, "sla_due": {"type": "TIMESTAMP", "index": 81, "name": "sla_due", "comment": null}, "parent_link": {"type": "STRING", "index": 82, "name": "parent_link", "comment": null}, "parent_value": {"type": "STRING", "index": 83, "name": "parent_value", "comment": null}, "reassignment_count": {"type": "INT64", "index": 84, "name": "reassignment_count", "comment": null}, "route_reason": {"type": "INT64", "index": 85, "name": "route_reason", "comment": null}, "short_description": {"type": "STRING", "index": 86, "name": "short_description", "comment": null}, "sys_class_name": {"type": "STRING", "index": 87, "name": "sys_class_name", "comment": null}, "sys_domain_link": {"type": "STRING", "index": 88, "name": "sys_domain_link", "comment": null}, "sys_domain_path": {"type": "STRING", "index": 89, "name": "sys_domain_path", "comment": null}, "sys_domain_value": {"type": "STRING", "index": 90, "name": "sys_domain_value", "comment": null}, "upon_approval": {"type": "STRING", "index": 91, "name": "upon_approval", "comment": null}, "upon_reject": {"type": "STRING", "index": 92, "name": "upon_reject", "comment": null}, "watch_list": {"type": "STRING", "index": 93, "name": "watch_list", "comment": null}, "work_start": {"type": "TIMESTAMP", "index": 94, "name": "work_start", "comment": null}, "work_end": {"type": "TIMESTAMP", "index": 95, "name": "work_end", "comment": null}, "work_notes": {"type": "STRING", "index": 96, "name": "work_notes", "comment": null}, "work_notes_list": {"type": "STRING", "index": 97, "name": "work_notes_list", "comment": null}, "problem_task_cause_code": {"type": "STRING", "index": 98, "name": "problem_task_cause_code", "comment": null}, "problem_task_close_code": {"type": "STRING", "index": 99, "name": "problem_task_close_code", "comment": null}, "problem_task_type": {"type": "STRING", "index": 100, "name": "problem_task_type", "comment": null}, "problem_task_started_at": {"type": "TIMESTAMP", "index": 101, "name": "problem_task_started_at", "comment": null}, "started_by_value": {"type": "STRING", "index": 102, "name": "started_by_value", "comment": null}, "problem_task_starter_email": {"type": "STRING", "index": 103, "name": "problem_task_starter_email", "comment": null}, "problem_task_starter_manager_value": {"type": "STRING", "index": 104, "name": "problem_task_starter_manager_value", "comment": null}, "problem_task_starter_department_value": {"type": "STRING", "index": 105, "name": "problem_task_starter_department_value", "comment": null}, "problem_task_starter_name": {"type": "STRING", "index": 106, "name": "problem_task_starter_name", "comment": null}, "problem_task_starter_roles": {"type": "STRING", "index": 107, "name": "problem_task_starter_roles", "comment": null}, "associated_problem_id": {"type": "STRING", "index": 108, "name": "associated_problem_id", "comment": null}, "problem_category": {"type": "STRING", "index": 109, "name": "problem_category", "comment": null}, "cause_notes": {"type": "STRING", "index": 110, "name": "cause_notes", "comment": null}, "problem_confirmed_at": {"type": "TIMESTAMP", "index": 111, "name": "problem_confirmed_at", "comment": null}, "problem_confirmed_by_value": {"type": "STRING", "index": 112, "name": "problem_confirmed_by_value", "comment": null}, "problem_confirmer_email": {"type": "STRING", "index": 113, "name": "problem_confirmer_email", "comment": null}, "problem_confirmer_manager_value": {"type": "STRING", "index": 114, "name": "problem_confirmer_manager_value", "comment": null}, "problem_confirmer_department_value": {"type": "STRING", "index": 115, "name": "problem_confirmer_department_value", "comment": null}, "problem_confirmer_name": {"type": "STRING", "index": 116, "name": "problem_confirmer_name", "comment": null}, "problem_confirmer_roles": {"type": "STRING", "index": 117, "name": "problem_confirmer_roles", "comment": null}, "problem_first_reported_by_task_value": {"type": "STRING", "index": 118, "name": "problem_first_reported_by_task_value", "comment": null}, "problem_reporter_email": {"type": "STRING", "index": 119, "name": "problem_reporter_email", "comment": null}, "problem_reporter_manager_value": {"type": "STRING", "index": 120, "name": "problem_reporter_manager_value", "comment": null}, "problem_reporter_department_value": {"type": "STRING", "index": 121, "name": "problem_reporter_department_value", "comment": null}, "problem_reporter_name": {"type": "STRING", "index": 122, "name": "problem_reporter_name", "comment": null}, "problem_reporter_roles": {"type": "STRING", "index": 123, "name": "problem_reporter_roles", "comment": null}, "problem_fix_at": {"type": "TIMESTAMP", "index": 124, "name": "problem_fix_at", "comment": null}, "problem_fix_by_value": {"type": "STRING", "index": 125, "name": "problem_fix_by_value", "comment": null}, "problem_fixer_email": {"type": "STRING", "index": 126, "name": "problem_fixer_email", "comment": null}, "problem_fixer_manager_value": {"type": "STRING", "index": 127, "name": "problem_fixer_manager_value", "comment": null}, "problem_fixer_department_value": {"type": "STRING", "index": 128, "name": "problem_fixer_department_value", "comment": null}, "problem_fixer_name": {"type": "STRING", "index": 129, "name": "problem_fixer_name", "comment": null}, "problem_fixer_roles": {"type": "STRING", "index": 130, "name": "problem_fixer_roles", "comment": null}, "problem_fix_notes": {"type": "STRING", "index": 131, "name": "problem_fix_notes", "comment": null}, "problem_is_known_error": {"type": "BOOL", "index": 132, "name": "problem_is_known_error", "comment": null}, "is_major_problem": {"type": "BOOL", "index": 133, "name": "is_major_problem", "comment": null}, "problem_state": {"type": "INT64", "index": 134, "name": "problem_state", "comment": null}, "problem_related_incidents": {"type": "INT64", "index": 135, "name": "problem_related_incidents", "comment": null}, "problem_resolution_code": {"type": "STRING", "index": 136, "name": "problem_resolution_code", "comment": null}, "problem_resolved_at": {"type": "TIMESTAMP", "index": 137, "name": "problem_resolved_at", "comment": null}, "problem_resolved_by_value": {"type": "STRING", "index": 138, "name": "problem_resolved_by_value", "comment": null}, "workaround_applied": {"type": "BOOL", "index": 139, "name": "workaround_applied", "comment": null}, "problem_resolver_email": {"type": "STRING", "index": 140, "name": "problem_resolver_email", "comment": null}, "problem_resolver_manager_value": {"type": "STRING", "index": 141, "name": "problem_resolver_manager_value", "comment": null}, "problem_resolver_department_value": {"type": "STRING", "index": 142, "name": "problem_resolver_department_value", "comment": null}, "problem_resolver_name": {"type": "STRING", "index": 143, "name": "problem_resolver_name", "comment": null}, "problem_resolver_roles": {"type": "STRING", "index": 144, "name": "problem_resolver_roles", "comment": null}, "problem_subcategory": {"type": "STRING", "index": 145, "name": "problem_subcategory", "comment": null}, "problem_created_at": {"type": "TIMESTAMP", "index": 146, "name": "problem_created_at", "comment": null}, "problem_updated_at": {"type": "TIMESTAMP", "index": 147, "name": "problem_updated_at", "comment": null}, "change_task_type": {"type": "STRING", "index": 148, "name": "change_task_type", "comment": null}, "change_task_close_code": {"type": "STRING", "index": 149, "name": "change_task_close_code", "comment": null}, "change_task_created_from": {"type": "STRING", "index": 150, "name": "change_task_created_from", "comment": null}, "is_change_on_hold": {"type": "BOOL", "index": 151, "name": "is_change_on_hold", "comment": null}, "change_on_hold_reason": {"type": "STRING", "index": 152, "name": "change_on_hold_reason", "comment": null}, "change_task_planned_end_date": {"type": "TIMESTAMP", "index": 153, "name": "change_task_planned_end_date", "comment": null}, "change_task_planned_start_date": {"type": "TIMESTAMP", "index": 154, "name": "change_task_planned_start_date", "comment": null}, "associated_change_request_id": {"type": "STRING", "index": 155, "name": "associated_change_request_id", "comment": null}, "change_request_created_at": {"type": "TIMESTAMP", "index": 156, "name": "change_request_created_at", "comment": null}, "change_request_updated_at": {"type": "TIMESTAMP", "index": 157, "name": "change_request_updated_at", "comment": null}, "change_request_category": {"type": "STRING", "index": 158, "name": "change_request_category", "comment": null}, "change_plan": {"type": "STRING", "index": 159, "name": "change_plan", "comment": null}, "change_request_close_code": {"type": "STRING", "index": 160, "name": "change_request_close_code", "comment": null}, "change_request_end_date": {"type": "TIMESTAMP", "index": 161, "name": "change_request_end_date", "comment": null}, "change_request_implementation_plan": {"type": "STRING", "index": 162, "name": "change_request_implementation_plan", "comment": null}, "change_request_justification": {"type": "STRING", "index": 163, "name": "change_request_justification", "comment": null}, "is_change_request_on_hold": {"type": "BOOL", "index": 164, "name": "is_change_request_on_hold", "comment": null}, "change_request_on_hold_reason": {"type": "STRING", "index": 165, "name": "change_request_on_hold_reason", "comment": null}, "change_request_phase": {"type": "STRING", "index": 166, "name": "change_request_phase", "comment": null}, "change_request_phase_state": {"type": "STRING", "index": 167, "name": "change_request_phase_state", "comment": null}, "change_request_reason": {"type": "STRING", "index": 168, "name": "change_request_reason", "comment": null}, "change_requested_by_date": {"type": "TIMESTAMP", "index": 169, "name": "change_requested_by_date", "comment": null}, "change_requested_by_value": {"type": "STRING", "index": 170, "name": "change_requested_by_value", "comment": null}, "change_requester_email": {"type": "STRING", "index": 171, "name": "change_requester_email", "comment": null}, "change_requester_manager_value": {"type": "STRING", "index": 172, "name": "change_requester_manager_value", "comment": null}, "change_requester_department_value": {"type": "STRING", "index": 173, "name": "change_requester_department_value", "comment": null}, "change_requester_name": {"type": "STRING", "index": 174, "name": "change_requester_name", "comment": null}, "change_requester_roles": {"type": "STRING", "index": 175, "name": "change_requester_roles", "comment": null}, "change_request_review_date": {"type": "DATE", "index": 176, "name": "change_request_review_date", "comment": null}, "change_request_review_status": {"type": "INT64", "index": 177, "name": "change_request_review_status", "comment": null}, "change_request_risk": {"type": "INT64", "index": 178, "name": "change_request_risk", "comment": null}, "change_request_scope": {"type": "INT64", "index": 179, "name": "change_request_scope", "comment": null}, "change_request_start_date": {"type": "TIMESTAMP", "index": 180, "name": "change_request_start_date", "comment": null}, "change_request_test_plan": {"type": "STRING", "index": 181, "name": "change_request_test_plan", "comment": null}, "change_request_type": {"type": "STRING", "index": 182, "name": "change_request_type", "comment": null}, "is_change_request_unauthorized": {"type": "BOOL", "index": 183, "name": "is_change_request_unauthorized", "comment": null}, "source_relation": {"type": "STRING", "index": 184, "name": "source_relation", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1385955.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 1583.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.servicenow.servicenow__task_enhanced"}, "model.servicenow.stg_servicenow__cmdb_ci_service_base": {"metadata": {"type": "view", "schema": "zz_dbt_renee_stg_servicenow", "name": "stg_servicenow__cmdb_ci_service_base", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_deleted": {"type": "BOOL", "index": 2, "name": "_fivetran_deleted", "comment": null}, "attested": {"type": "BOOL", "index": 15, "name": "attested", "comment": null}, "can_print": {"type": "BOOL", "index": 28, "name": "can_print", "comment": null}, "monitor": {"type": "BOOL", "index": 87, "name": "monitor", "comment": null}, "skip_sync": {"type": "BOOL", "index": 114, "name": "skip_sync", "comment": null}, "unverified": {"type": "BOOL", "index": 139, "name": "unverified", "comment": null}, "purchase_date": {"type": "DATE", "index": 104, "name": "purchase_date", "comment": null}, "warranty_expiration": {"type": "DATE", "index": 146, "name": "warranty_expiration", "comment": null}, "attestation_score": {"type": "INT64", "index": 13, "name": "attestation_score", "comment": null}, "fault_count": {"type": "INT64", "index": 58, "name": "fault_count", "comment": null}, "install_status": {"type": "INT64", "index": 63, "name": "install_status", "comment": null}, "operational_status": {"type": "INT64", "index": 91, "name": "operational_status", "comment": null}, "sys_mod_count": {"type": "INT64", "index": 136, "name": "sys_mod_count", "comment": null}, "sys_id": {"type": "STRING", "index": 1, "name": "sys_id", "comment": null}, "aliases": {"type": "STRING", "index": 4, "name": "aliases", "comment": null}, "asset_link": {"type": "STRING", "index": 5, "name": "asset_link", "comment": null}, "asset_tag": {"type": "STRING", "index": 6, "name": "asset_tag", "comment": null}, "asset_value": {"type": "STRING", "index": 7, "name": "asset_value", "comment": null}, "assigned_to_link": {"type": "STRING", "index": 9, "name": "assigned_to_link", "comment": null}, "assigned_to_value": {"type": "STRING", "index": 10, "name": "assigned_to_value", "comment": null}, "assignment_group_link": {"type": "STRING", "index": 11, "name": "assignment_group_link", "comment": null}, "assignment_group_value": {"type": "STRING", "index": 12, "name": "assignment_group_value", "comment": null}, "attestation_status": {"type": "STRING", "index": 14, "name": "attestation_status", "comment": null}, "attested_by_link": {"type": "STRING", "index": 16, "name": "attested_by_link", "comment": null}, "attested_by_value": {"type": "STRING", "index": 17, "name": "attested_by_value", "comment": null}, "attributes": {"type": "STRING", "index": 19, "name": "attributes", "comment": null}, "busines_criticality": {"type": "STRING", "index": 20, "name": "busines_criticality", "comment": null}, "business_contact_link": {"type": "STRING", "index": 21, "name": "business_contact_link", "comment": null}, "business_contact_value": {"type": "STRING", "index": 22, "name": "business_contact_value", "comment": null}, "business_need": {"type": "STRING", "index": 23, "name": "business_need", "comment": null}, "business_relation_manager_link": {"type": "STRING", "index": 24, "name": "business_relation_manager_link", "comment": null}, "business_relation_manager_value": {"type": "STRING", "index": 25, "name": "business_relation_manager_value", "comment": null}, "business_unit_link": {"type": "STRING", "index": 26, "name": "business_unit_link", "comment": null}, "business_unit_value": {"type": "STRING", "index": 27, "name": "business_unit_value", "comment": null}, "category": {"type": "STRING", "index": 29, "name": "category", "comment": null}, "change_control_link": {"type": "STRING", "index": 30, "name": "change_control_link", "comment": null}, "change_control_value": {"type": "STRING", "index": 31, "name": "change_control_value", "comment": null}, "checkout": {"type": "STRING", "index": 34, "name": "checkout", "comment": null}, "comments": {"type": "STRING", "index": 35, "name": "comments", "comment": null}, "company_link": {"type": "STRING", "index": 36, "name": "company_link", "comment": null}, "company_value": {"type": "STRING", "index": 37, "name": "company_value", "comment": null}, "compatibility_dependencies": {"type": "STRING", "index": 38, "name": "compatibility_dependencies", "comment": null}, "consumer_type": {"type": "STRING", "index": 39, "name": "consumer_type", "comment": null}, "correlation_id": {"type": "STRING", "index": 40, "name": "correlation_id", "comment": null}, "cost_cc": {"type": "STRING", "index": 42, "name": "cost_cc", "comment": null}, "cost_center_link": {"type": "STRING", "index": 43, "name": "cost_center_link", "comment": null}, "cost_center_value": {"type": "STRING", "index": 44, "name": "cost_center_value", "comment": null}, "delivery_manager_link": {"type": "STRING", "index": 46, "name": "delivery_manager_link", "comment": null}, "delivery_manager_value": {"type": "STRING", "index": 47, "name": "delivery_manager_value", "comment": null}, "department_link": {"type": "STRING", "index": 48, "name": "department_link", "comment": null}, "department_value": {"type": "STRING", "index": 49, "name": "department_value", "comment": null}, "discovery_source": {"type": "STRING", "index": 50, "name": "discovery_source", "comment": null}, "dns_domain": {"type": "STRING", "index": 51, "name": "dns_domain", "comment": null}, "due_in": {"type": "STRING", "index": 53, "name": "due_in", "comment": null}, "duplicate_of_link": {"type": "STRING", "index": 54, "name": "duplicate_of_link", "comment": null}, "duplicate_of_value": {"type": "STRING", "index": 55, "name": "duplicate_of_value", "comment": null}, "environment": {"type": "STRING", "index": 57, "name": "environment", "comment": null}, "fqdn": {"type": "STRING", "index": 60, "name": "fqdn", "comment": null}, "gl_account": {"type": "STRING", "index": 61, "name": "gl_account", "comment": null}, "invoice_number": {"type": "STRING", "index": 64, "name": "invoice_number", "comment": null}, "justification": {"type": "STRING", "index": 65, "name": "justification", "comment": null}, "lease_id": {"type": "STRING", "index": 68, "name": "lease_id", "comment": null}, "life_cycle_stage_link": {"type": "STRING", "index": 69, "name": "life_cycle_stage_link", "comment": null}, "life_cycle_stage_status_link": {"type": "STRING", "index": 70, "name": "life_cycle_stage_status_link", "comment": null}, "life_cycle_stage_status_value": {"type": "STRING", "index": 71, "name": "life_cycle_stage_status_value", "comment": null}, "life_cycle_stage_value": {"type": "STRING", "index": 72, "name": "life_cycle_stage_value", "comment": null}, "location_link": {"type": "STRING", "index": 73, "name": "location_link", "comment": null}, "location_value": {"type": "STRING", "index": 74, "name": "location_value", "comment": null}, "mac_address": {"type": "STRING", "index": 75, "name": "mac_address", "comment": null}, "maintenance_schedule_link": {"type": "STRING", "index": 76, "name": "maintenance_schedule_link", "comment": null}, "maintenance_schedule_value": {"type": "STRING", "index": 77, "name": "maintenance_schedule_value", "comment": null}, "managed_by_group_link": {"type": "STRING", "index": 78, "name": "managed_by_group_link", "comment": null}, "managed_by_group_value": {"type": "STRING", "index": 79, "name": "managed_by_group_value", "comment": null}, "managed_by_link": {"type": "STRING", "index": 80, "name": "managed_by_link", "comment": null}, "managed_by_value": {"type": "STRING", "index": 81, "name": "managed_by_value", "comment": null}, "manufacturer_link": {"type": "STRING", "index": 82, "name": "manufacturer_link", "comment": null}, "manufacturer_value": {"type": "STRING", "index": 83, "name": "manufacturer_value", "comment": null}, "model_id_link": {"type": "STRING", "index": 84, "name": "model_id_link", "comment": null}, "model_id_value": {"type": "STRING", "index": 85, "name": "model_id_value", "comment": null}, "model_number": {"type": "STRING", "index": 86, "name": "model_number", "comment": null}, "monitoring_requirements": {"type": "STRING", "index": 88, "name": "monitoring_requirements", "comment": null}, "name": {"type": "STRING", "index": 89, "name": "name", "comment": null}, "number": {"type": "STRING", "index": 90, "name": "number", "comment": null}, "owned_by_link": {"type": "STRING", "index": 93, "name": "owned_by_link", "comment": null}, "owned_by_value": {"type": "STRING", "index": 94, "name": "owned_by_value", "comment": null}, "parent_link": {"type": "STRING", "index": 95, "name": "parent_link", "comment": null}, "parent_value": {"type": "STRING", "index": 96, "name": "parent_value", "comment": null}, "po_number": {"type": "STRING", "index": 97, "name": "po_number", "comment": null}, "portfolio_status": {"type": "STRING", "index": 98, "name": "portfolio_status", "comment": null}, "prerequisites": {"type": "STRING", "index": 99, "name": "prerequisites", "comment": null}, "price_model": {"type": "STRING", "index": 100, "name": "price_model", "comment": null}, "price_unit": {"type": "STRING", "index": 101, "name": "price_unit", "comment": null}, "published_ref_link": {"type": "STRING", "index": 102, "name": "published_ref_link", "comment": null}, "published_ref_value": {"type": "STRING", "index": 103, "name": "published_ref_value", "comment": null}, "schedule_link": {"type": "STRING", "index": 105, "name": "schedule_link", "comment": null}, "schedule_value": {"type": "STRING", "index": 106, "name": "schedule_value", "comment": null}, "serial_number": {"type": "STRING", "index": 107, "name": "serial_number", "comment": null}, "service_classification": {"type": "STRING", "index": 108, "name": "service_classification", "comment": null}, "service_level_requirement": {"type": "STRING", "index": 109, "name": "service_level_requirement", "comment": null}, "service_owner_delegate_link": {"type": "STRING", "index": 110, "name": "service_owner_delegate_link", "comment": null}, "service_owner_delegate_value": {"type": "STRING", "index": 111, "name": "service_owner_delegate_value", "comment": null}, "service_status": {"type": "STRING", "index": 112, "name": "service_status", "comment": null}, "short_description": {"type": "STRING", "index": 113, "name": "short_description", "comment": null}, "sla_link": {"type": "STRING", "index": 115, "name": "sla_link", "comment": null}, "sla_value": {"type": "STRING", "index": 116, "name": "sla_value", "comment": null}, "spm_service_portfolio_link": {"type": "STRING", "index": 117, "name": "spm_service_portfolio_link", "comment": null}, "spm_service_portfolio_value": {"type": "STRING", "index": 118, "name": "spm_service_portfolio_value", "comment": null}, "spm_taxonomy_node_link": {"type": "STRING", "index": 119, "name": "spm_taxonomy_node_link", "comment": null}, "spm_taxonomy_node_value": {"type": "STRING", "index": 120, "name": "spm_taxonomy_node_value", "comment": null}, "stakeholders": {"type": "STRING", "index": 121, "name": "stakeholders", "comment": null}, "state": {"type": "STRING", "index": 123, "name": "state", "comment": null}, "subcategory": {"type": "STRING", "index": 124, "name": "subcategory", "comment": null}, "support_group_link": {"type": "STRING", "index": 125, "name": "support_group_link", "comment": null}, "support_group_value": {"type": "STRING", "index": 126, "name": "support_group_value", "comment": null}, "supported_by_link": {"type": "STRING", "index": 127, "name": "supported_by_link", "comment": null}, "supported_by_value": {"type": "STRING", "index": 128, "name": "supported_by_value", "comment": null}, "sys_class_name": {"type": "STRING", "index": 129, "name": "sys_class_name", "comment": null}, "sys_class_path": {"type": "STRING", "index": 130, "name": "sys_class_path", "comment": null}, "sys_created_by": {"type": "STRING", "index": 131, "name": "sys_created_by", "comment": null}, "sys_domain_link": {"type": "STRING", "index": 133, "name": "sys_domain_link", "comment": null}, "sys_domain_path": {"type": "STRING", "index": 134, "name": "sys_domain_path", "comment": null}, "sys_domain_value": {"type": "STRING", "index": 135, "name": "sys_domain_value", "comment": null}, "sys_updated_by": {"type": "STRING", "index": 137, "name": "sys_updated_by", "comment": null}, "used_for": {"type": "STRING", "index": 140, "name": "used_for", "comment": null}, "user_group_link": {"type": "STRING", "index": 141, "name": "user_group_link", "comment": null}, "user_group_value": {"type": "STRING", "index": 142, "name": "user_group_value", "comment": null}, "vendor_link": {"type": "STRING", "index": 143, "name": "vendor_link", "comment": null}, "vendor_value": {"type": "STRING", "index": 144, "name": "vendor_value", "comment": null}, "version": {"type": "STRING", "index": 145, "name": "version", "comment": null}, "cost": {"type": "FLOAT64", "index": 41, "name": "cost", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 3, "name": "_fivetran_synced", "comment": null}, "assigned": {"type": "TIMESTAMP", "index": 8, "name": "assigned", "comment": null}, "attested_date": {"type": "TIMESTAMP", "index": 18, "name": "attested_date", "comment": null}, "checked_in": {"type": "TIMESTAMP", "index": 32, "name": "checked_in", "comment": null}, "checked_out": {"type": "TIMESTAMP", "index": 33, "name": "checked_out", "comment": null}, "delivery_date": {"type": "TIMESTAMP", "index": 45, "name": "delivery_date", "comment": null}, "due": {"type": "TIMESTAMP", "index": 52, "name": "due", "comment": null}, "end_date": {"type": "TIMESTAMP", "index": 56, "name": "end_date", "comment": null}, "first_discovered": {"type": "TIMESTAMP", "index": 59, "name": "first_discovered", "comment": null}, "install_date": {"type": "TIMESTAMP", "index": 62, "name": "install_date", "comment": null}, "last_discovered": {"type": "TIMESTAMP", "index": 66, "name": "last_discovered", "comment": null}, "last_review_date": {"type": "TIMESTAMP", "index": 67, "name": "last_review_date", "comment": null}, "order_date": {"type": "TIMESTAMP", "index": 92, "name": "order_date", "comment": null}, "start_date": {"type": "TIMESTAMP", "index": 122, "name": "start_date", "comment": null}, "sys_created_on": {"type": "TIMESTAMP", "index": 132, "name": "sys_created_on", "comment": null}, "sys_updated_on": {"type": "TIMESTAMP", "index": 138, "name": "sys_updated_on", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.servicenow.stg_servicenow__cmdb_ci_service_base"}, "model.servicenow.stg_servicenow__sys_user_base": {"metadata": {"type": "view", "schema": "zz_dbt_renee_stg_servicenow", "name": "stg_servicenow__sys_user_base", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_deleted": {"type": "BOOL", "index": 2, "name": "_fivetran_deleted", "comment": null}, "active": {"type": "BOOL", "index": 5, "name": "active", "comment": null}, "enable_multifactor_authn": {"type": "BOOL", "index": 24, "name": "enable_multifactor_authn", "comment": null}, "internal_integration_user": {"type": "BOOL", "index": 30, "name": "internal_integration_user", "comment": null}, "locked_out": {"type": "BOOL", "index": 41, "name": "locked_out", "comment": null}, "password_needs_reset": {"type": "BOOL", "index": 48, "name": "password_needs_reset", "comment": null}, "vip": {"type": "BOOL", "index": 71, "name": "vip", "comment": null}, "web_service_access_only": {"type": "BOOL", "index": 72, "name": "web_service_access_only", "comment": null}, "last_login": {"type": "DATE", "index": 32, "name": "last_login", "comment": null}, "calendar_integration": {"type": "INT64", "index": 9, "name": "calendar_integration", "comment": null}, "failed_attempts": {"type": "INT64", "index": 25, "name": "failed_attempts", "comment": null}, "notification": {"type": "INT64", "index": 47, "name": "notification", "comment": null}, "sys_mod_count": {"type": "INT64", "index": 63, "name": "sys_mod_count", "comment": null}, "sys_id": {"type": "STRING", "index": 1, "name": "sys_id", "comment": null}, "accumulated_roles": {"type": "STRING", "index": 4, "name": "accumulated_roles", "comment": null}, "avatar": {"type": "STRING", "index": 6, "name": "avatar", "comment": null}, "building_link": {"type": "STRING", "index": 7, "name": "building_link", "comment": null}, "building_value": {"type": "STRING", "index": 8, "name": "building_value", "comment": null}, "city": {"type": "STRING", "index": 10, "name": "city", "comment": null}, "company_link": {"type": "STRING", "index": 11, "name": "company_link", "comment": null}, "company_value": {"type": "STRING", "index": 12, "name": "company_value", "comment": null}, "cost_center_link": {"type": "STRING", "index": 13, "name": "cost_center_link", "comment": null}, "cost_center_value": {"type": "STRING", "index": 14, "name": "cost_center_value", "comment": null}, "country": {"type": "STRING", "index": 15, "name": "country", "comment": null}, "date_format": {"type": "STRING", "index": 16, "name": "date_format", "comment": null}, "default_perspective_link": {"type": "STRING", "index": 17, "name": "default_perspective_link", "comment": null}, "default_perspective_value": {"type": "STRING", "index": 18, "name": "default_perspective_value", "comment": null}, "department_link": {"type": "STRING", "index": 19, "name": "department_link", "comment": null}, "department_value": {"type": "STRING", "index": 20, "name": "department_value", "comment": null}, "edu_status": {"type": "STRING", "index": 21, "name": "edu_status", "comment": null}, "email": {"type": "STRING", "index": 22, "name": "email", "comment": null}, "employee_number": {"type": "STRING", "index": 23, "name": "employee_number", "comment": null}, "first_name": {"type": "STRING", "index": 26, "name": "first_name", "comment": null}, "gender": {"type": "STRING", "index": 27, "name": "gender", "comment": null}, "hashed_user_id": {"type": "STRING", "index": 28, "name": "hashed_user_id", "comment": null}, "home_phone": {"type": "STRING", "index": 29, "name": "home_phone", "comment": null}, "introduction": {"type": "STRING", "index": 31, "name": "introduction", "comment": null}, "last_login_device": {"type": "STRING", "index": 33, "name": "last_login_device", "comment": null}, "last_name": {"type": "STRING", "index": 35, "name": "last_name", "comment": null}, "last_password": {"type": "STRING", "index": 36, "name": "last_password", "comment": null}, "ldap_server_link": {"type": "STRING", "index": 37, "name": "ldap_server_link", "comment": null}, "ldap_server_value": {"type": "STRING", "index": 38, "name": "ldap_server_value", "comment": null}, "location_link": {"type": "STRING", "index": 39, "name": "location_link", "comment": null}, "location_value": {"type": "STRING", "index": 40, "name": "location_value", "comment": null}, "manager_link": {"type": "STRING", "index": 42, "name": "manager_link", "comment": null}, "manager_value": {"type": "STRING", "index": 43, "name": "manager_value", "comment": null}, "middle_name": {"type": "STRING", "index": 44, "name": "middle_name", "comment": null}, "mobile_phone": {"type": "STRING", "index": 45, "name": "mobile_phone", "comment": null}, "name": {"type": "STRING", "index": 46, "name": "name", "comment": null}, "phone": {"type": "STRING", "index": 49, "name": "phone", "comment": null}, "photo": {"type": "STRING", "index": 50, "name": "photo", "comment": null}, "preferred_language": {"type": "STRING", "index": 51, "name": "preferred_language", "comment": null}, "roles": {"type": "STRING", "index": 52, "name": "roles", "comment": null}, "schedule_link": {"type": "STRING", "index": 53, "name": "schedule_link", "comment": null}, "schedule_value": {"type": "STRING", "index": 54, "name": "schedule_value", "comment": null}, "source": {"type": "STRING", "index": 55, "name": "source", "comment": null}, "state": {"type": "STRING", "index": 56, "name": "state", "comment": null}, "sys_class_name": {"type": "STRING", "index": 57, "name": "sys_class_name", "comment": null}, "sys_created_by": {"type": "STRING", "index": 58, "name": "sys_created_by", "comment": null}, "sys_domain_link": {"type": "STRING", "index": 60, "name": "sys_domain_link", "comment": null}, "sys_domain_path": {"type": "STRING", "index": 61, "name": "sys_domain_path", "comment": null}, "sys_domain_value": {"type": "STRING", "index": 62, "name": "sys_domain_value", "comment": null}, "sys_updated_by": {"type": "STRING", "index": 64, "name": "sys_updated_by", "comment": null}, "time_format": {"type": "STRING", "index": 66, "name": "time_format", "comment": null}, "time_zone": {"type": "STRING", "index": 67, "name": "time_zone", "comment": null}, "title": {"type": "STRING", "index": 68, "name": "title", "comment": null}, "user_name": {"type": "STRING", "index": 69, "name": "user_name", "comment": null}, "user_password": {"type": "STRING", "index": 70, "name": "user_password", "comment": null}, "zip": {"type": "STRING", "index": 73, "name": "zip", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 3, "name": "_fivetran_synced", "comment": null}, "last_login_time": {"type": "TIMESTAMP", "index": 34, "name": "last_login_time", "comment": null}, "sys_created_on": {"type": "TIMESTAMP", "index": 59, "name": "sys_created_on", "comment": null}, "sys_updated_on": {"type": "TIMESTAMP", "index": 65, "name": "sys_updated_on", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.servicenow.stg_servicenow__sys_user_base"}, "model.servicenow.stg_servicenow__incident": {"metadata": {"type": "view", "schema": "zz_dbt_renee_stg_servicenow", "name": "stg_servicenow__incident", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_deleted": {"type": "BOOL", "index": 5, "name": "_fivetran_deleted", "comment": null}, "business_stc": {"type": "INT64", "index": 8, "name": "business_stc", "comment": null}, "calendar_stc": {"type": "INT64", "index": 9, "name": "calendar_stc", "comment": null}, "child_incidents": {"type": "INT64", "index": 16, "name": "child_incidents", "comment": null}, "hold_reason": {"type": "INT64", "index": 18, "name": "hold_reason", "comment": null}, "incident_state": {"type": "INT64", "index": 19, "name": "incident_state", "comment": null}, "notify": {"type": "INT64", "index": 20, "name": "notify", "comment": null}, "reopen_count": {"type": "INT64", "index": 27, "name": "reopen_count", "comment": null}, "severity": {"type": "INT64", "index": 36, "name": "severity", "comment": null}, "source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "incident_id": {"type": "STRING", "index": 2, "name": "incident_id", "comment": null}, "business_impact": {"type": "STRING", "index": 7, "name": "business_impact", "comment": null}, "caller_id_link": {"type": "STRING", "index": 10, "name": "caller_id_link", "comment": null}, "caller_id_value": {"type": "STRING", "index": 11, "name": "caller_id_value", "comment": null}, "category": {"type": "STRING", "index": 12, "name": "category", "comment": null}, "cause": {"type": "STRING", "index": 13, "name": "cause", "comment": null}, "caused_by_link": {"type": "STRING", "index": 14, "name": "caused_by_link", "comment": null}, "caused_by_value": {"type": "STRING", "index": 15, "name": "caused_by_value", "comment": null}, "close_code": {"type": "STRING", "index": 17, "name": "close_code", "comment": null}, "origin_id_link": {"type": "STRING", "index": 21, "name": "origin_id_link", "comment": null}, "origin_id_value": {"type": "STRING", "index": 22, "name": "origin_id_value", "comment": null}, "parent_incident_link": {"type": "STRING", "index": 23, "name": "parent_incident_link", "comment": null}, "parent_incident_value": {"type": "STRING", "index": 24, "name": "parent_incident_value", "comment": null}, "problem_id_link": {"type": "STRING", "index": 25, "name": "problem_id_link", "comment": null}, "problem_id_value": {"type": "STRING", "index": 26, "name": "problem_id_value", "comment": null}, "reopened_by_link": {"type": "STRING", "index": 28, "name": "reopened_by_link", "comment": null}, "reopened_by_value": {"type": "STRING", "index": 29, "name": "reopened_by_value", "comment": null}, "resolved_by_link": {"type": "STRING", "index": 32, "name": "resolved_by_link", "comment": null}, "resolved_by_value": {"type": "STRING", "index": 33, "name": "resolved_by_value", "comment": null}, "rfc_link": {"type": "STRING", "index": 34, "name": "rfc_link", "comment": null}, "rfc_value": {"type": "STRING", "index": 35, "name": "rfc_value", "comment": null}, "subcategory": {"type": "STRING", "index": 37, "name": "subcategory", "comment": null}, "incident_created_at": {"type": "TIMESTAMP", "index": 3, "name": "incident_created_at", "comment": null}, "incident_updated_at": {"type": "TIMESTAMP", "index": 4, "name": "incident_updated_at", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 6, "name": "_fivetran_synced", "comment": null}, "reopened_time": {"type": "TIMESTAMP", "index": 30, "name": "reopened_time", "comment": null}, "resolved_at": {"type": "TIMESTAMP", "index": 31, "name": "resolved_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.servicenow.stg_servicenow__incident"}, "model.servicenow.stg_servicenow__incident_base": {"metadata": {"type": "view", "schema": "zz_dbt_renee_stg_servicenow", "name": "stg_servicenow__incident_base", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_deleted": {"type": "BOOL", "index": 2, "name": "_fivetran_deleted", "comment": null}, "business_stc": {"type": "INT64", "index": 5, "name": "business_stc", "comment": null}, "calendar_stc": {"type": "INT64", "index": 6, "name": "calendar_stc", "comment": null}, "child_incidents": {"type": "INT64", "index": 13, "name": "child_incidents", "comment": null}, "hold_reason": {"type": "INT64", "index": 15, "name": "hold_reason", "comment": null}, "incident_state": {"type": "INT64", "index": 16, "name": "incident_state", "comment": null}, "notify": {"type": "INT64", "index": 17, "name": "notify", "comment": null}, "reopen_count": {"type": "INT64", "index": 24, "name": "reopen_count", "comment": null}, "severity": {"type": "INT64", "index": 33, "name": "severity", "comment": null}, "sys_id": {"type": "STRING", "index": 1, "name": "sys_id", "comment": null}, "business_impact": {"type": "STRING", "index": 4, "name": "business_impact", "comment": null}, "caller_id_link": {"type": "STRING", "index": 7, "name": "caller_id_link", "comment": null}, "caller_id_value": {"type": "STRING", "index": 8, "name": "caller_id_value", "comment": null}, "category": {"type": "STRING", "index": 9, "name": "category", "comment": null}, "cause": {"type": "STRING", "index": 10, "name": "cause", "comment": null}, "caused_by_link": {"type": "STRING", "index": 11, "name": "caused_by_link", "comment": null}, "caused_by_value": {"type": "STRING", "index": 12, "name": "caused_by_value", "comment": null}, "close_code": {"type": "STRING", "index": 14, "name": "close_code", "comment": null}, "origin_id_link": {"type": "STRING", "index": 18, "name": "origin_id_link", "comment": null}, "origin_id_value": {"type": "STRING", "index": 19, "name": "origin_id_value", "comment": null}, "parent_incident_link": {"type": "STRING", "index": 20, "name": "parent_incident_link", "comment": null}, "parent_incident_value": {"type": "STRING", "index": 21, "name": "parent_incident_value", "comment": null}, "problem_id_link": {"type": "STRING", "index": 22, "name": "problem_id_link", "comment": null}, "problem_id_value": {"type": "STRING", "index": 23, "name": "problem_id_value", "comment": null}, "reopened_by_link": {"type": "STRING", "index": 25, "name": "reopened_by_link", "comment": null}, "reopened_by_value": {"type": "STRING", "index": 26, "name": "reopened_by_value", "comment": null}, "resolved_by_link": {"type": "STRING", "index": 29, "name": "resolved_by_link", "comment": null}, "resolved_by_value": {"type": "STRING", "index": 30, "name": "resolved_by_value", "comment": null}, "rfc_link": {"type": "STRING", "index": 31, "name": "rfc_link", "comment": null}, "rfc_value": {"type": "STRING", "index": 32, "name": "rfc_value", "comment": null}, "subcategory": {"type": "STRING", "index": 34, "name": "subcategory", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 3, "name": "_fivetran_synced", "comment": null}, "reopened_time": {"type": "TIMESTAMP", "index": 27, "name": "reopened_time", "comment": null}, "resolved_at": {"type": "TIMESTAMP", "index": 28, "name": "resolved_at", "comment": null}, "sys_created_on": {"type": "TIMESTAMP", "index": 35, "name": "sys_created_on", "comment": null}, "sys_updated_on": {"type": "TIMESTAMP", "index": 36, "name": "sys_updated_on", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.servicenow.stg_servicenow__incident_base"}, "model.servicenow.stg_servicenow__sys_user_group_base": {"metadata": {"type": "view", "schema": "zz_dbt_renee_stg_servicenow", "name": "stg_servicenow__sys_user_group_base", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_deleted": {"type": "BOOL", "index": 2, "name": "_fivetran_deleted", "comment": null}, "active": {"type": "BOOL", "index": 4, "name": "active", "comment": null}, "exclude_manager": {"type": "BOOL", "index": 11, "name": "exclude_manager", "comment": null}, "include_members": {"type": "BOOL", "index": 12, "name": "include_members", "comment": null}, "sys_mod_count": {"type": "INT64", "index": 22, "name": "sys_mod_count", "comment": null}, "sys_id": {"type": "STRING", "index": 1, "name": "sys_id", "comment": null}, "cost_center_link": {"type": "STRING", "index": 5, "name": "cost_center_link", "comment": null}, "cost_center_value": {"type": "STRING", "index": 6, "name": "cost_center_value", "comment": null}, "default_assignee_link": {"type": "STRING", "index": 7, "name": "default_assignee_link", "comment": null}, "default_assignee_value": {"type": "STRING", "index": 8, "name": "default_assignee_value", "comment": null}, "description": {"type": "STRING", "index": 9, "name": "description", "comment": null}, "email": {"type": "STRING", "index": 10, "name": "email", "comment": null}, "manager_link": {"type": "STRING", "index": 13, "name": "manager_link", "comment": null}, "manager_value": {"type": "STRING", "index": 14, "name": "manager_value", "comment": null}, "name": {"type": "STRING", "index": 15, "name": "name", "comment": null}, "parent_link": {"type": "STRING", "index": 16, "name": "parent_link", "comment": null}, "parent_value": {"type": "STRING", "index": 17, "name": "parent_value", "comment": null}, "roles": {"type": "STRING", "index": 18, "name": "roles", "comment": null}, "source": {"type": "STRING", "index": 19, "name": "source", "comment": null}, "sys_created_by": {"type": "STRING", "index": 20, "name": "sys_created_by", "comment": null}, "sys_updated_by": {"type": "STRING", "index": 23, "name": "sys_updated_by", "comment": null}, "type": {"type": "STRING", "index": 25, "name": "type", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 3, "name": "_fivetran_synced", "comment": null}, "sys_created_on": {"type": "TIMESTAMP", "index": 21, "name": "sys_created_on", "comment": null}, "sys_updated_on": {"type": "TIMESTAMP", "index": 24, "name": "sys_updated_on", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.servicenow.stg_servicenow__sys_user_group_base"}, "model.servicenow.stg_servicenow__problem_base": {"metadata": {"type": "view", "schema": "zz_dbt_renee_stg_servicenow", "name": "stg_servicenow__problem_base", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_deleted": {"type": "BOOL", "index": 2, "name": "_fivetran_deleted", "comment": null}, "known_error": {"type": "BOOL", "index": 20, "name": "known_error", "comment": null}, "major_problem": {"type": "BOOL", "index": 21, "name": "major_problem", "comment": null}, "workaround_applied": {"type": "BOOL", "index": 39, "name": "workaround_applied", "comment": null}, "problem_state": {"type": "INT64", "index": 22, "name": "problem_state", "comment": null}, "related_incidents": {"type": "INT64", "index": 23, "name": "related_incidents", "comment": null}, "reopen_count": {"type": "INT64", "index": 24, "name": "reopen_count", "comment": null}, "sys_id": {"type": "STRING", "index": 1, "name": "sys_id", "comment": null}, "category": {"type": "STRING", "index": 4, "name": "category", "comment": null}, "cause_notes": {"type": "STRING", "index": 5, "name": "cause_notes", "comment": null}, "confirmed_by_link": {"type": "STRING", "index": 7, "name": "confirmed_by_link", "comment": null}, "confirmed_by_value": {"type": "STRING", "index": 8, "name": "confirmed_by_value", "comment": null}, "duplicate_of_link": {"type": "STRING", "index": 9, "name": "duplicate_of_link", "comment": null}, "duplicate_of_value": {"type": "STRING", "index": 10, "name": "duplicate_of_value", "comment": null}, "first_reported_by_task_link": {"type": "STRING", "index": 11, "name": "first_reported_by_task_link", "comment": null}, "first_reported_by_task_value": {"type": "STRING", "index": 12, "name": "first_reported_by_task_value", "comment": null}, "fix_by_link": {"type": "STRING", "index": 14, "name": "fix_by_link", "comment": null}, "fix_by_value": {"type": "STRING", "index": 15, "name": "fix_by_value", "comment": null}, "fix_communicated_by_link": {"type": "STRING", "index": 17, "name": "fix_communicated_by_link", "comment": null}, "fix_communicated_by_value": {"type": "STRING", "index": 18, "name": "fix_communicated_by_value", "comment": null}, "fix_notes": {"type": "STRING", "index": 19, "name": "fix_notes", "comment": null}, "reopened_by_link": {"type": "STRING", "index": 26, "name": "reopened_by_link", "comment": null}, "reopened_by_value": {"type": "STRING", "index": 27, "name": "reopened_by_value", "comment": null}, "resolution_code": {"type": "STRING", "index": 28, "name": "resolution_code", "comment": null}, "resolved_by_link": {"type": "STRING", "index": 30, "name": "resolved_by_link", "comment": null}, "resolved_by_value": {"type": "STRING", "index": 31, "name": "resolved_by_value", "comment": null}, "review_outcome": {"type": "STRING", "index": 32, "name": "review_outcome", "comment": null}, "rfc_link": {"type": "STRING", "index": 33, "name": "rfc_link", "comment": null}, "rfc_value": {"type": "STRING", "index": 34, "name": "rfc_value", "comment": null}, "subcategory": {"type": "STRING", "index": 35, "name": "subcategory", "comment": null}, "workaround": {"type": "STRING", "index": 38, "name": "workaround", "comment": null}, "workaround_communicated_by_link": {"type": "STRING", "index": 41, "name": "workaround_communicated_by_link", "comment": null}, "workaround_communicated_by_value": {"type": "STRING", "index": 42, "name": "workaround_communicated_by_value", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 3, "name": "_fivetran_synced", "comment": null}, "confirmed_at": {"type": "TIMESTAMP", "index": 6, "name": "confirmed_at", "comment": null}, "fix_at": {"type": "TIMESTAMP", "index": 13, "name": "fix_at", "comment": null}, "fix_communicated_at": {"type": "TIMESTAMP", "index": 16, "name": "fix_communicated_at", "comment": null}, "reopened_at": {"type": "TIMESTAMP", "index": 25, "name": "reopened_at", "comment": null}, "resolved_at": {"type": "TIMESTAMP", "index": 29, "name": "resolved_at", "comment": null}, "sys_created_on": {"type": "TIMESTAMP", "index": 36, "name": "sys_created_on", "comment": null}, "sys_updated_on": {"type": "TIMESTAMP", "index": 37, "name": "sys_updated_on", "comment": null}, "workaround_communicated_at": {"type": "TIMESTAMP", "index": 40, "name": "workaround_communicated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.servicenow.stg_servicenow__problem_base"}, "model.servicenow.stg_servicenow__problem": {"metadata": {"type": "view", "schema": "zz_dbt_renee_stg_servicenow", "name": "stg_servicenow__problem", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_deleted": {"type": "BOOL", "index": 5, "name": "_fivetran_deleted", "comment": null}, "is_known_error": {"type": "BOOL", "index": 23, "name": "is_known_error", "comment": null}, "is_major_problem": {"type": "BOOL", "index": 24, "name": "is_major_problem", "comment": null}, "workaround_applied": {"type": "BOOL", "index": 40, "name": "workaround_applied", "comment": null}, "problem_state": {"type": "INT64", "index": 25, "name": "problem_state", "comment": null}, "problem_related_incidents": {"type": "INT64", "index": 26, "name": "problem_related_incidents", "comment": null}, "reopen_count": {"type": "INT64", "index": 27, "name": "reopen_count", "comment": null}, "source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "problem_id": {"type": "STRING", "index": 2, "name": "problem_id", "comment": null}, "problem_category": {"type": "STRING", "index": 7, "name": "problem_category", "comment": null}, "cause_notes": {"type": "STRING", "index": 8, "name": "cause_notes", "comment": null}, "problem_confirmed_by_link": {"type": "STRING", "index": 10, "name": "problem_confirmed_by_link", "comment": null}, "problem_confirmed_by_value": {"type": "STRING", "index": 11, "name": "problem_confirmed_by_value", "comment": null}, "duplicate_of_link": {"type": "STRING", "index": 12, "name": "duplicate_of_link", "comment": null}, "duplicate_of_value": {"type": "STRING", "index": 13, "name": "duplicate_of_value", "comment": null}, "problem_first_reported_by_task_link": {"type": "STRING", "index": 14, "name": "problem_first_reported_by_task_link", "comment": null}, "problem_first_reported_by_task_value": {"type": "STRING", "index": 15, "name": "problem_first_reported_by_task_value", "comment": null}, "problem_fix_by_link": {"type": "STRING", "index": 17, "name": "problem_fix_by_link", "comment": null}, "problem_fix_by_value": {"type": "STRING", "index": 18, "name": "problem_fix_by_value", "comment": null}, "fix_communicated_by_link": {"type": "STRING", "index": 20, "name": "fix_communicated_by_link", "comment": null}, "fix_communicated_by_value": {"type": "STRING", "index": 21, "name": "fix_communicated_by_value", "comment": null}, "problem_fix_notes": {"type": "STRING", "index": 22, "name": "problem_fix_notes", "comment": null}, "reopened_by_link": {"type": "STRING", "index": 29, "name": "reopened_by_link", "comment": null}, "reopened_by_value": {"type": "STRING", "index": 30, "name": "reopened_by_value", "comment": null}, "problem_resolution_code": {"type": "STRING", "index": 31, "name": "problem_resolution_code", "comment": null}, "resolved_by_link": {"type": "STRING", "index": 33, "name": "resolved_by_link", "comment": null}, "problem_resolved_by_value": {"type": "STRING", "index": 34, "name": "problem_resolved_by_value", "comment": null}, "review_outcome": {"type": "STRING", "index": 35, "name": "review_outcome", "comment": null}, "rfc_link": {"type": "STRING", "index": 36, "name": "rfc_link", "comment": null}, "rfc_value": {"type": "STRING", "index": 37, "name": "rfc_value", "comment": null}, "problem_subcategory": {"type": "STRING", "index": 38, "name": "problem_subcategory", "comment": null}, "workaround": {"type": "STRING", "index": 39, "name": "workaround", "comment": null}, "workaround_communicated_by_link": {"type": "STRING", "index": 42, "name": "workaround_communicated_by_link", "comment": null}, "workaround_communicated_by_value": {"type": "STRING", "index": 43, "name": "workaround_communicated_by_value", "comment": null}, "problem_created_at": {"type": "TIMESTAMP", "index": 3, "name": "problem_created_at", "comment": null}, "problem_updated_at": {"type": "TIMESTAMP", "index": 4, "name": "problem_updated_at", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 6, "name": "_fivetran_synced", "comment": null}, "problem_confirmed_at": {"type": "TIMESTAMP", "index": 9, "name": "problem_confirmed_at", "comment": null}, "problem_fix_at": {"type": "TIMESTAMP", "index": 16, "name": "problem_fix_at", "comment": null}, "fix_communicated_at": {"type": "TIMESTAMP", "index": 19, "name": "fix_communicated_at", "comment": null}, "reopened_at": {"type": "TIMESTAMP", "index": 28, "name": "reopened_at", "comment": null}, "problem_resolved_at": {"type": "TIMESTAMP", "index": 32, "name": "problem_resolved_at", "comment": null}, "workaround_communicated_at": {"type": "TIMESTAMP", "index": 41, "name": "workaround_communicated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.servicenow.stg_servicenow__problem"}, "model.servicenow.stg_servicenow__task": {"metadata": {"type": "view", "schema": "zz_dbt_renee_stg_servicenow", "name": "stg_servicenow__task", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_deleted": {"type": "BOOL", "index": 5, "name": "_fivetran_deleted", "comment": null}, "is_task_active": {"type": "BOOL", "index": 7, "name": "is_task_active", "comment": null}, "knowledge": {"type": "BOOL", "index": 47, "name": "knowledge", "comment": null}, "is_made_sla": {"type": "BOOL", "index": 50, "name": "is_made_sla", "comment": null}, "escalation": {"type": "INT64", "index": 42, "name": "escalation", "comment": null}, "impact": {"type": "INT64", "index": 46, "name": "impact", "comment": null}, "task_order": {"type": "INT64", "index": 55, "name": "task_order", "comment": null}, "priority": {"type": "INT64", "index": 58, "name": "priority", "comment": null}, "reassignment_count": {"type": "INT64", "index": 59, "name": "reassignment_count", "comment": null}, "route_reason": {"type": "INT64", "index": 62, "name": "route_reason", "comment": null}, "task_state": {"type": "INT64", "index": 67, "name": "task_state", "comment": null}, "sys_mod_count": {"type": "INT64", "index": 73, "name": "sys_mod_count", "comment": null}, "urgency": {"type": "INT64", "index": 80, "name": "urgency", "comment": null}, "source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "task_id": {"type": "STRING", "index": 2, "name": "task_id", "comment": null}, "additional_assignee_list": {"type": "STRING", "index": 9, "name": "additional_assignee_list", "comment": null}, "approval": {"type": "STRING", "index": 10, "name": "approval", "comment": null}, "approval_history": {"type": "STRING", "index": 11, "name": "approval_history", "comment": null}, "assigned_to_link": {"type": "STRING", "index": 13, "name": "assigned_to_link", "comment": null}, "assigned_to_value": {"type": "STRING", "index": 14, "name": "assigned_to_value", "comment": null}, "assignment_group_link": {"type": "STRING", "index": 15, "name": "assignment_group_link", "comment": null}, "assignment_group_value": {"type": "STRING", "index": 16, "name": "assignment_group_value", "comment": null}, "business_service_link": {"type": "STRING", "index": 18, "name": "business_service_link", "comment": null}, "business_service_value": {"type": "STRING", "index": 19, "name": "business_service_value", "comment": null}, "close_notes": {"type": "STRING", "index": 21, "name": "close_notes", "comment": null}, "closed_by_link": {"type": "STRING", "index": 23, "name": "closed_by_link", "comment": null}, "closed_by_value": {"type": "STRING", "index": 24, "name": "closed_by_value", "comment": null}, "cmdb_ci_link": {"type": "STRING", "index": 25, "name": "cmdb_ci_link", "comment": null}, "cmdb_ci_value": {"type": "STRING", "index": 26, "name": "cmdb_ci_value", "comment": null}, "comments": {"type": "STRING", "index": 27, "name": "comments", "comment": null}, "comments_and_work_notes": {"type": "STRING", "index": 28, "name": "comments_and_work_notes", "comment": null}, "company_link": {"type": "STRING", "index": 29, "name": "company_link", "comment": null}, "company_value": {"type": "STRING", "index": 30, "name": "company_value", "comment": null}, "contact_type": {"type": "STRING", "index": 31, "name": "contact_type", "comment": null}, "contract_link": {"type": "STRING", "index": 32, "name": "contract_link", "comment": null}, "contract_value": {"type": "STRING", "index": 33, "name": "contract_value", "comment": null}, "correlation_display": {"type": "STRING", "index": 34, "name": "correlation_display", "comment": null}, "correlation_id": {"type": "STRING", "index": 35, "name": "correlation_id", "comment": null}, "delivery_plan_link": {"type": "STRING", "index": 36, "name": "delivery_plan_link", "comment": null}, "delivery_plan_value": {"type": "STRING", "index": 37, "name": "delivery_plan_value", "comment": null}, "delivery_task_link": {"type": "STRING", "index": 38, "name": "delivery_task_link", "comment": null}, "delivery_task_value": {"type": "STRING", "index": 39, "name": "delivery_task_value", "comment": null}, "task_description": {"type": "STRING", "index": 40, "name": "task_description", "comment": null}, "group_list": {"type": "STRING", "index": 45, "name": "group_list", "comment": null}, "location_link": {"type": "STRING", "index": 48, "name": "location_link", "comment": null}, "location_value": {"type": "STRING", "index": 49, "name": "location_value", "comment": null}, "task_number": {"type": "STRING", "index": 51, "name": "task_number", "comment": null}, "opened_by_link": {"type": "STRING", "index": 53, "name": "opened_by_link", "comment": null}, "opened_by_value": {"type": "STRING", "index": 54, "name": "opened_by_value", "comment": null}, "parent_link": {"type": "STRING", "index": 56, "name": "parent_link", "comment": null}, "parent_value": {"type": "STRING", "index": 57, "name": "parent_value", "comment": null}, "rejection_goto_link": {"type": "STRING", "index": 60, "name": "rejection_goto_link", "comment": null}, "rejection_goto_value": {"type": "STRING", "index": 61, "name": "rejection_goto_value", "comment": null}, "service_offering_link": {"type": "STRING", "index": 63, "name": "service_offering_link", "comment": null}, "service_offering_value": {"type": "STRING", "index": 64, "name": "service_offering_value", "comment": null}, "short_description": {"type": "STRING", "index": 65, "name": "short_description", "comment": null}, "sys_class_name": {"type": "STRING", "index": 68, "name": "sys_class_name", "comment": null}, "sys_created_by": {"type": "STRING", "index": 69, "name": "sys_created_by", "comment": null}, "sys_domain_link": {"type": "STRING", "index": 70, "name": "sys_domain_link", "comment": null}, "sys_domain_path": {"type": "STRING", "index": 71, "name": "sys_domain_path", "comment": null}, "sys_domain_value": {"type": "STRING", "index": 72, "name": "sys_domain_value", "comment": null}, "sys_updated_by": {"type": "STRING", "index": 74, "name": "sys_updated_by", "comment": null}, "task_effective_number": {"type": "STRING", "index": 75, "name": "task_effective_number", "comment": null}, "universal_request_link": {"type": "STRING", "index": 76, "name": "universal_request_link", "comment": null}, "universal_request_value": {"type": "STRING", "index": 77, "name": "universal_request_value", "comment": null}, "upon_approval": {"type": "STRING", "index": 78, "name": "upon_approval", "comment": null}, "upon_reject": {"type": "STRING", "index": 79, "name": "upon_reject", "comment": null}, "watch_list": {"type": "STRING", "index": 81, "name": "watch_list", "comment": null}, "wf_activity_link": {"type": "STRING", "index": 82, "name": "wf_activity_link", "comment": null}, "wf_activity_value": {"type": "STRING", "index": 83, "name": "wf_activity_value", "comment": null}, "work_notes": {"type": "STRING", "index": 85, "name": "work_notes", "comment": null}, "work_notes_list": {"type": "STRING", "index": 86, "name": "work_notes_list", "comment": null}, "task_created_at": {"type": "TIMESTAMP", "index": 3, "name": "task_created_at", "comment": null}, "task_updated_at": {"type": "TIMESTAMP", "index": 4, "name": "task_updated_at", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 6, "name": "_fivetran_synced", "comment": null}, "activity_due": {"type": "TIMESTAMP", "index": 8, "name": "activity_due", "comment": null}, "approval_set": {"type": "TIMESTAMP", "index": 12, "name": "approval_set", "comment": null}, "business_duration": {"type": "TIMESTAMP", "index": 17, "name": "business_duration", "comment": null}, "calendar_duration": {"type": "TIMESTAMP", "index": 20, "name": "calendar_duration", "comment": null}, "task_closed_at": {"type": "TIMESTAMP", "index": 22, "name": "task_closed_at", "comment": null}, "task_due_date_at": {"type": "TIMESTAMP", "index": 41, "name": "task_due_date_at", "comment": null}, "expected_start": {"type": "TIMESTAMP", "index": 43, "name": "expected_start", "comment": null}, "task_follow_up_at": {"type": "TIMESTAMP", "index": 44, "name": "task_follow_up_at", "comment": null}, "task_opened_at": {"type": "TIMESTAMP", "index": 52, "name": "task_opened_at", "comment": null}, "sla_due": {"type": "TIMESTAMP", "index": 66, "name": "sla_due", "comment": null}, "work_end": {"type": "TIMESTAMP", "index": 84, "name": "work_end", "comment": null}, "work_start": {"type": "TIMESTAMP", "index": 87, "name": "work_start", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.servicenow.stg_servicenow__task"}, "model.servicenow.stg_servicenow__task_sla_base": {"metadata": {"type": "view", "schema": "zz_dbt_renee_stg_servicenow", "name": "stg_servicenow__task_sla_base", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_deleted": {"type": "BOOL", "index": 2, "name": "_fivetran_deleted", "comment": null}, "active": {"type": "BOOL", "index": 4, "name": "active", "comment": null}, "has_breached": {"type": "BOOL", "index": 11, "name": "has_breached", "comment": null}, "sys_mod_count": {"type": "INT64", "index": 25, "name": "sys_mod_count", "comment": null}, "sys_id": {"type": "STRING", "index": 1, "name": "sys_id", "comment": null}, "schedule_link": {"type": "STRING", "index": 17, "name": "schedule_link", "comment": null}, "schedule_value": {"type": "STRING", "index": 18, "name": "schedule_value", "comment": null}, "sla_link": {"type": "STRING", "index": 19, "name": "sla_link", "comment": null}, "sla_value": {"type": "STRING", "index": 20, "name": "sla_value", "comment": null}, "stage": {"type": "STRING", "index": 21, "name": "stage", "comment": null}, "sys_created_by": {"type": "STRING", "index": 23, "name": "sys_created_by", "comment": null}, "sys_updated_by": {"type": "STRING", "index": 26, "name": "sys_updated_by", "comment": null}, "task_link": {"type": "STRING", "index": 28, "name": "task_link", "comment": null}, "task_value": {"type": "STRING", "index": 29, "name": "task_value", "comment": null}, "timezone": {"type": "STRING", "index": 31, "name": "timezone", "comment": null}, "business_percentage": {"type": "FLOAT64", "index": 7, "name": "business_percentage", "comment": null}, "percentage": {"type": "FLOAT64", "index": 15, "name": "percentage", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 3, "name": "_fivetran_synced", "comment": null}, "business_duration": {"type": "TIMESTAMP", "index": 5, "name": "business_duration", "comment": null}, "business_pause_duration": {"type": "TIMESTAMP", "index": 6, "name": "business_pause_duration", "comment": null}, "business_time_left": {"type": "TIMESTAMP", "index": 8, "name": "business_time_left", "comment": null}, "duration": {"type": "TIMESTAMP", "index": 9, "name": "duration", "comment": null}, "end_time": {"type": "TIMESTAMP", "index": 10, "name": "end_time", "comment": null}, "original_breach_time": {"type": "TIMESTAMP", "index": 12, "name": "original_breach_time", "comment": null}, "pause_duration": {"type": "TIMESTAMP", "index": 13, "name": "pause_duration", "comment": null}, "pause_time": {"type": "TIMESTAMP", "index": 14, "name": "pause_time", "comment": null}, "planned_end_time": {"type": "TIMESTAMP", "index": 16, "name": "planned_end_time", "comment": null}, "start_time": {"type": "TIMESTAMP", "index": 22, "name": "start_time", "comment": null}, "sys_created_on": {"type": "TIMESTAMP", "index": 24, "name": "sys_created_on", "comment": null}, "sys_updated_on": {"type": "TIMESTAMP", "index": 27, "name": "sys_updated_on", "comment": null}, "time_left": {"type": "TIMESTAMP", "index": 30, "name": "time_left", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.servicenow.stg_servicenow__task_sla_base"}, "model.servicenow.stg_servicenow__problem_task": {"metadata": {"type": "view", "schema": "zz_dbt_renee_stg_servicenow", "name": "stg_servicenow__problem_task", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_deleted": {"type": "BOOL", "index": 5, "name": "_fivetran_deleted", "comment": null}, "reopen_count": {"type": "INT64", "index": 13, "name": "reopen_count", "comment": null}, "source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "problem_task_id": {"type": "STRING", "index": 2, "name": "problem_task_id", "comment": null}, "problem_task_cause_code": {"type": "STRING", "index": 7, "name": "problem_task_cause_code", "comment": null}, "problem_task_close_code": {"type": "STRING", "index": 8, "name": "problem_task_close_code", "comment": null}, "other_reason": {"type": "STRING", "index": 9, "name": "other_reason", "comment": null}, "problem_link": {"type": "STRING", "index": 10, "name": "problem_link", "comment": null}, "problem_task_type": {"type": "STRING", "index": 11, "name": "problem_task_type", "comment": null}, "problem_value": {"type": "STRING", "index": 12, "name": "problem_value", "comment": null}, "reopened_by_link": {"type": "STRING", "index": 15, "name": "reopened_by_link", "comment": null}, "reopened_by_value": {"type": "STRING", "index": 16, "name": "reopened_by_value", "comment": null}, "started_by_link": {"type": "STRING", "index": 18, "name": "started_by_link", "comment": null}, "started_by_value": {"type": "STRING", "index": 19, "name": "started_by_value", "comment": null}, "vendor_link": {"type": "STRING", "index": 20, "name": "vendor_link", "comment": null}, "vendor_value": {"type": "STRING", "index": 21, "name": "vendor_value", "comment": null}, "problem_task_created_at": {"type": "TIMESTAMP", "index": 3, "name": "problem_task_created_at", "comment": null}, "problem_task_updated_at": {"type": "TIMESTAMP", "index": 4, "name": "problem_task_updated_at", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 6, "name": "_fivetran_synced", "comment": null}, "reopened_at": {"type": "TIMESTAMP", "index": 14, "name": "reopened_at", "comment": null}, "problem_task_started_at": {"type": "TIMESTAMP", "index": 17, "name": "problem_task_started_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.servicenow.stg_servicenow__problem_task"}, "model.servicenow.stg_servicenow__cmdb_ci_base": {"metadata": {"type": "view", "schema": "zz_dbt_renee_stg_servicenow", "name": "stg_servicenow__cmdb_ci_base", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_deleted": {"type": "BOOL", "index": 2, "name": "_fivetran_deleted", "comment": null}, "attested": {"type": "BOOL", "index": 14, "name": "attested", "comment": null}, "can_print": {"type": "BOOL", "index": 21, "name": "can_print", "comment": null}, "monitor": {"type": "BOOL", "index": 74, "name": "monitor", "comment": null}, "skip_sync": {"type": "BOOL", "index": 86, "name": "skip_sync", "comment": null}, "unverified": {"type": "BOOL", "index": 103, "name": "unverified", "comment": null}, "purchase_date": {"type": "DATE", "index": 81, "name": "purchase_date", "comment": null}, "warranty_expiration": {"type": "DATE", "index": 106, "name": "warranty_expiration", "comment": null}, "attestation_score": {"type": "INT64", "index": 12, "name": "attestation_score", "comment": null}, "fault_count": {"type": "INT64", "index": 45, "name": "fault_count", "comment": null}, "install_status": {"type": "INT64", "index": 50, "name": "install_status", "comment": null}, "operational_status": {"type": "INT64", "index": 76, "name": "operational_status", "comment": null}, "sys_mod_count": {"type": "INT64", "index": 100, "name": "sys_mod_count", "comment": null}, "sys_id": {"type": "STRING", "index": 1, "name": "sys_id", "comment": null}, "asset_link": {"type": "STRING", "index": 4, "name": "asset_link", "comment": null}, "asset_tag": {"type": "STRING", "index": 5, "name": "asset_tag", "comment": null}, "asset_value": {"type": "STRING", "index": 6, "name": "asset_value", "comment": null}, "assigned_to_link": {"type": "STRING", "index": 8, "name": "assigned_to_link", "comment": null}, "assigned_to_value": {"type": "STRING", "index": 9, "name": "assigned_to_value", "comment": null}, "assignment_group_link": {"type": "STRING", "index": 10, "name": "assignment_group_link", "comment": null}, "assignment_group_value": {"type": "STRING", "index": 11, "name": "assignment_group_value", "comment": null}, "attestation_status": {"type": "STRING", "index": 13, "name": "attestation_status", "comment": null}, "attested_by_link": {"type": "STRING", "index": 15, "name": "attested_by_link", "comment": null}, "attested_by_value": {"type": "STRING", "index": 16, "name": "attested_by_value", "comment": null}, "attributes": {"type": "STRING", "index": 18, "name": "attributes", "comment": null}, "business_unit_link": {"type": "STRING", "index": 19, "name": "business_unit_link", "comment": null}, "business_unit_value": {"type": "STRING", "index": 20, "name": "business_unit_value", "comment": null}, "category": {"type": "STRING", "index": 22, "name": "category", "comment": null}, "change_control_link": {"type": "STRING", "index": 23, "name": "change_control_link", "comment": null}, "change_control_value": {"type": "STRING", "index": 24, "name": "change_control_value", "comment": null}, "comments": {"type": "STRING", "index": 27, "name": "comments", "comment": null}, "company_link": {"type": "STRING", "index": 28, "name": "company_link", "comment": null}, "company_value": {"type": "STRING", "index": 29, "name": "company_value", "comment": null}, "correlation_id": {"type": "STRING", "index": 30, "name": "correlation_id", "comment": null}, "cost_cc": {"type": "STRING", "index": 32, "name": "cost_cc", "comment": null}, "cost_center_link": {"type": "STRING", "index": 33, "name": "cost_center_link", "comment": null}, "cost_center_value": {"type": "STRING", "index": 34, "name": "cost_center_value", "comment": null}, "department_link": {"type": "STRING", "index": 36, "name": "department_link", "comment": null}, "department_value": {"type": "STRING", "index": 37, "name": "department_value", "comment": null}, "discovery_source": {"type": "STRING", "index": 38, "name": "discovery_source", "comment": null}, "dns_domain": {"type": "STRING", "index": 39, "name": "dns_domain", "comment": null}, "due_in": {"type": "STRING", "index": 41, "name": "due_in", "comment": null}, "duplicate_of_link": {"type": "STRING", "index": 42, "name": "duplicate_of_link", "comment": null}, "duplicate_of_value": {"type": "STRING", "index": 43, "name": "duplicate_of_value", "comment": null}, "environment": {"type": "STRING", "index": 44, "name": "environment", "comment": null}, "fqdn": {"type": "STRING", "index": 47, "name": "fqdn", "comment": null}, "gl_account": {"type": "STRING", "index": 48, "name": "gl_account", "comment": null}, "invoice_number": {"type": "STRING", "index": 51, "name": "invoice_number", "comment": null}, "ip_address": {"type": "STRING", "index": 52, "name": "ip_address", "comment": null}, "justification": {"type": "STRING", "index": 53, "name": "justification", "comment": null}, "lease_id": {"type": "STRING", "index": 55, "name": "lease_id", "comment": null}, "life_cycle_stage_link": {"type": "STRING", "index": 56, "name": "life_cycle_stage_link", "comment": null}, "life_cycle_stage_status_link": {"type": "STRING", "index": 57, "name": "life_cycle_stage_status_link", "comment": null}, "life_cycle_stage_status_value": {"type": "STRING", "index": 58, "name": "life_cycle_stage_status_value", "comment": null}, "life_cycle_stage_value": {"type": "STRING", "index": 59, "name": "life_cycle_stage_value", "comment": null}, "location_link": {"type": "STRING", "index": 60, "name": "location_link", "comment": null}, "location_value": {"type": "STRING", "index": 61, "name": "location_value", "comment": null}, "mac_address": {"type": "STRING", "index": 62, "name": "mac_address", "comment": null}, "maintenance_schedule_link": {"type": "STRING", "index": 63, "name": "maintenance_schedule_link", "comment": null}, "maintenance_schedule_value": {"type": "STRING", "index": 64, "name": "maintenance_schedule_value", "comment": null}, "managed_by_group_link": {"type": "STRING", "index": 65, "name": "managed_by_group_link", "comment": null}, "managed_by_group_value": {"type": "STRING", "index": 66, "name": "managed_by_group_value", "comment": null}, "managed_by_link": {"type": "STRING", "index": 67, "name": "managed_by_link", "comment": null}, "managed_by_value": {"type": "STRING", "index": 68, "name": "managed_by_value", "comment": null}, "manufacturer_link": {"type": "STRING", "index": 69, "name": "manufacturer_link", "comment": null}, "manufacturer_value": {"type": "STRING", "index": 70, "name": "manufacturer_value", "comment": null}, "model_id_link": {"type": "STRING", "index": 71, "name": "model_id_link", "comment": null}, "model_id_value": {"type": "STRING", "index": 72, "name": "model_id_value", "comment": null}, "model_number": {"type": "STRING", "index": 73, "name": "model_number", "comment": null}, "name": {"type": "STRING", "index": 75, "name": "name", "comment": null}, "owned_by_link": {"type": "STRING", "index": 78, "name": "owned_by_link", "comment": null}, "owned_by_value": {"type": "STRING", "index": 79, "name": "owned_by_value", "comment": null}, "po_number": {"type": "STRING", "index": 80, "name": "po_number", "comment": null}, "schedule_link": {"type": "STRING", "index": 82, "name": "schedule_link", "comment": null}, "schedule_value": {"type": "STRING", "index": 83, "name": "schedule_value", "comment": null}, "serial_number": {"type": "STRING", "index": 84, "name": "serial_number", "comment": null}, "short_description": {"type": "STRING", "index": 85, "name": "short_description", "comment": null}, "subcategory": {"type": "STRING", "index": 88, "name": "subcategory", "comment": null}, "support_group_link": {"type": "STRING", "index": 89, "name": "support_group_link", "comment": null}, "support_group_value": {"type": "STRING", "index": 90, "name": "support_group_value", "comment": null}, "supported_by_link": {"type": "STRING", "index": 91, "name": "supported_by_link", "comment": null}, "supported_by_value": {"type": "STRING", "index": 92, "name": "supported_by_value", "comment": null}, "sys_class_name": {"type": "STRING", "index": 93, "name": "sys_class_name", "comment": null}, "sys_class_path": {"type": "STRING", "index": 94, "name": "sys_class_path", "comment": null}, "sys_created_by": {"type": "STRING", "index": 95, "name": "sys_created_by", "comment": null}, "sys_domain_link": {"type": "STRING", "index": 97, "name": "sys_domain_link", "comment": null}, "sys_domain_path": {"type": "STRING", "index": 98, "name": "sys_domain_path", "comment": null}, "sys_domain_value": {"type": "STRING", "index": 99, "name": "sys_domain_value", "comment": null}, "sys_updated_by": {"type": "STRING", "index": 101, "name": "sys_updated_by", "comment": null}, "vendor_link": {"type": "STRING", "index": 104, "name": "vendor_link", "comment": null}, "vendor_value": {"type": "STRING", "index": 105, "name": "vendor_value", "comment": null}, "cost": {"type": "FLOAT64", "index": 31, "name": "cost", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 3, "name": "_fivetran_synced", "comment": null}, "assigned": {"type": "TIMESTAMP", "index": 7, "name": "assigned", "comment": null}, "attested_date": {"type": "TIMESTAMP", "index": 17, "name": "attested_date", "comment": null}, "checked_in": {"type": "TIMESTAMP", "index": 25, "name": "checked_in", "comment": null}, "checked_out": {"type": "TIMESTAMP", "index": 26, "name": "checked_out", "comment": null}, "delivery_date": {"type": "TIMESTAMP", "index": 35, "name": "delivery_date", "comment": null}, "due": {"type": "TIMESTAMP", "index": 40, "name": "due", "comment": null}, "first_discovered": {"type": "TIMESTAMP", "index": 46, "name": "first_discovered", "comment": null}, "install_date": {"type": "TIMESTAMP", "index": 49, "name": "install_date", "comment": null}, "last_discovered": {"type": "TIMESTAMP", "index": 54, "name": "last_discovered", "comment": null}, "order_date": {"type": "TIMESTAMP", "index": 77, "name": "order_date", "comment": null}, "start_date": {"type": "TIMESTAMP", "index": 87, "name": "start_date", "comment": null}, "sys_created_on": {"type": "TIMESTAMP", "index": 96, "name": "sys_created_on", "comment": null}, "sys_updated_on": {"type": "TIMESTAMP", "index": 102, "name": "sys_updated_on", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.servicenow.stg_servicenow__cmdb_ci_base"}, "model.servicenow.stg_servicenow__change_task": {"metadata": {"type": "view", "schema": "zz_dbt_renee_stg_servicenow", "name": "stg_servicenow__change_task", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_deleted": {"type": "BOOL", "index": 5, "name": "_fivetran_deleted", "comment": null}, "is_change_on_hold": {"type": "BOOL", "index": 12, "name": "is_change_on_hold", "comment": null}, "source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "change_task_id": {"type": "STRING", "index": 2, "name": "change_task_id", "comment": null}, "change_request_link": {"type": "STRING", "index": 7, "name": "change_request_link", "comment": null}, "change_request_value": {"type": "STRING", "index": 8, "name": "change_request_value", "comment": null}, "change_task_type": {"type": "STRING", "index": 9, "name": "change_task_type", "comment": null}, "change_task_close_code": {"type": "STRING", "index": 10, "name": "change_task_close_code", "comment": null}, "change_task_created_from": {"type": "STRING", "index": 11, "name": "change_task_created_from", "comment": null}, "change_on_hold_reason": {"type": "STRING", "index": 13, "name": "change_on_hold_reason", "comment": null}, "change_task_created_at": {"type": "TIMESTAMP", "index": 3, "name": "change_task_created_at", "comment": null}, "change_task_updated_at": {"type": "TIMESTAMP", "index": 4, "name": "change_task_updated_at", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 6, "name": "_fivetran_synced", "comment": null}, "change_task_planned_end_date": {"type": "TIMESTAMP", "index": 14, "name": "change_task_planned_end_date", "comment": null}, "change_task_planned_start_date": {"type": "TIMESTAMP", "index": 15, "name": "change_task_planned_start_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.servicenow.stg_servicenow__change_task"}, "model.servicenow.stg_servicenow__task_sla": {"metadata": {"type": "view", "schema": "zz_dbt_renee_stg_servicenow", "name": "stg_servicenow__task_sla", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_deleted": {"type": "BOOL", "index": 5, "name": "_fivetran_deleted", "comment": null}, "active": {"type": "BOOL", "index": 7, "name": "active", "comment": null}, "has_breached": {"type": "BOOL", "index": 14, "name": "has_breached", "comment": null}, "sys_mod_count": {"type": "INT64", "index": 27, "name": "sys_mod_count", "comment": null}, "source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "task_sla_id": {"type": "STRING", "index": 2, "name": "task_sla_id", "comment": null}, "schedule_link": {"type": "STRING", "index": 20, "name": "schedule_link", "comment": null}, "schedule_value": {"type": "STRING", "index": 21, "name": "schedule_value", "comment": null}, "sla_link": {"type": "STRING", "index": 22, "name": "sla_link", "comment": null}, "sla_value": {"type": "STRING", "index": 23, "name": "sla_value", "comment": null}, "stage": {"type": "STRING", "index": 24, "name": "stage", "comment": null}, "sys_created_by": {"type": "STRING", "index": 26, "name": "sys_created_by", "comment": null}, "sys_updated_by": {"type": "STRING", "index": 28, "name": "sys_updated_by", "comment": null}, "task_link": {"type": "STRING", "index": 29, "name": "task_link", "comment": null}, "task_value": {"type": "STRING", "index": 30, "name": "task_value", "comment": null}, "timezone": {"type": "STRING", "index": 32, "name": "timezone", "comment": null}, "business_percentage": {"type": "FLOAT64", "index": 10, "name": "business_percentage", "comment": null}, "percentage": {"type": "FLOAT64", "index": 18, "name": "percentage", "comment": null}, "task_sla_created_at": {"type": "TIMESTAMP", "index": 3, "name": "task_sla_created_at", "comment": null}, "task_sla_updated_at": {"type": "TIMESTAMP", "index": 4, "name": "task_sla_updated_at", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 6, "name": "_fivetran_synced", "comment": null}, "business_duration": {"type": "TIMESTAMP", "index": 8, "name": "business_duration", "comment": null}, "business_pause_duration": {"type": "TIMESTAMP", "index": 9, "name": "business_pause_duration", "comment": null}, "business_time_left": {"type": "TIMESTAMP", "index": 11, "name": "business_time_left", "comment": null}, "duration": {"type": "TIMESTAMP", "index": 12, "name": "duration", "comment": null}, "end_time": {"type": "TIMESTAMP", "index": 13, "name": "end_time", "comment": null}, "original_breach_time": {"type": "TIMESTAMP", "index": 15, "name": "original_breach_time", "comment": null}, "pause_duration": {"type": "TIMESTAMP", "index": 16, "name": "pause_duration", "comment": null}, "pause_time": {"type": "TIMESTAMP", "index": 17, "name": "pause_time", "comment": null}, "planned_end_time": {"type": "TIMESTAMP", "index": 19, "name": "planned_end_time", "comment": null}, "start_time": {"type": "TIMESTAMP", "index": 25, "name": "start_time", "comment": null}, "time_left": {"type": "TIMESTAMP", "index": 31, "name": "time_left", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.servicenow.stg_servicenow__task_sla"}, "model.servicenow.stg_servicenow__cmdb_ci_service": {"metadata": {"type": "view", "schema": "zz_dbt_renee_stg_servicenow", "name": "stg_servicenow__cmdb_ci_service", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_deleted": {"type": "BOOL", "index": 5, "name": "_fivetran_deleted", "comment": null}, "monitor": {"type": "BOOL", "index": 24, "name": "monitor", "comment": null}, "sys_mod_count": {"type": "INT64", "index": 41, "name": "sys_mod_count", "comment": null}, "source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "cmdb_ci_service_id": {"type": "STRING", "index": 2, "name": "cmdb_ci_service_id", "comment": null}, "attributes": {"type": "STRING", "index": 7, "name": "attributes", "comment": null}, "business_unit_link": {"type": "STRING", "index": 8, "name": "business_unit_link", "comment": null}, "business_unit_value": {"type": "STRING", "index": 9, "name": "business_unit_value", "comment": null}, "category": {"type": "STRING", "index": 10, "name": "category", "comment": null}, "company_link": {"type": "STRING", "index": 11, "name": "company_link", "comment": null}, "company_value": {"type": "STRING", "index": 12, "name": "company_value", "comment": null}, "cost_cc": {"type": "STRING", "index": 14, "name": "cost_cc", "comment": null}, "cost_center_link": {"type": "STRING", "index": 15, "name": "cost_center_link", "comment": null}, "cost_center_value": {"type": "STRING", "index": 16, "name": "cost_center_value", "comment": null}, "managed_by_link": {"type": "STRING", "index": 17, "name": "managed_by_link", "comment": null}, "managed_by_value": {"type": "STRING", "index": 18, "name": "managed_by_value", "comment": null}, "manufacturer_link": {"type": "STRING", "index": 19, "name": "manufacturer_link", "comment": null}, "manufacturer_value": {"type": "STRING", "index": 20, "name": "manufacturer_value", "comment": null}, "model_id_link": {"type": "STRING", "index": 21, "name": "model_id_link", "comment": null}, "model_id_value": {"type": "STRING", "index": 22, "name": "model_id_value", "comment": null}, "model_number": {"type": "STRING", "index": 23, "name": "model_number", "comment": null}, "cmdb_ci_service_name": {"type": "STRING", "index": 25, "name": "cmdb_ci_service_name", "comment": null}, "owned_by_link": {"type": "STRING", "index": 26, "name": "owned_by_link", "comment": null}, "owned_by_value": {"type": "STRING", "index": 27, "name": "owned_by_value", "comment": null}, "service_classification": {"type": "STRING", "index": 28, "name": "service_classification", "comment": null}, "service_level_requirement": {"type": "STRING", "index": 29, "name": "service_level_requirement", "comment": null}, "short_description": {"type": "STRING", "index": 30, "name": "short_description", "comment": null}, "sla_link": {"type": "STRING", "index": 31, "name": "sla_link", "comment": null}, "sla_value": {"type": "STRING", "index": 32, "name": "sla_value", "comment": null}, "cmdb_ci_service_state": {"type": "STRING", "index": 33, "name": "cmdb_ci_service_state", "comment": null}, "subcategory": {"type": "STRING", "index": 34, "name": "subcategory", "comment": null}, "sys_class_name": {"type": "STRING", "index": 35, "name": "sys_class_name", "comment": null}, "sys_class_path": {"type": "STRING", "index": 36, "name": "sys_class_path", "comment": null}, "sys_created_by": {"type": "STRING", "index": 37, "name": "sys_created_by", "comment": null}, "sys_domain_link": {"type": "STRING", "index": 38, "name": "sys_domain_link", "comment": null}, "sys_domain_path": {"type": "STRING", "index": 39, "name": "sys_domain_path", "comment": null}, "sys_domain_value": {"type": "STRING", "index": 40, "name": "sys_domain_value", "comment": null}, "sys_updated_by": {"type": "STRING", "index": 42, "name": "sys_updated_by", "comment": null}, "vendor_link": {"type": "STRING", "index": 43, "name": "vendor_link", "comment": null}, "vendor_value": {"type": "STRING", "index": 44, "name": "vendor_value", "comment": null}, "cost": {"type": "FLOAT64", "index": 13, "name": "cost", "comment": null}, "cmdb_ci_service_created_at": {"type": "TIMESTAMP", "index": 3, "name": "cmdb_ci_service_created_at", "comment": null}, "cmdb_ci_service_updated_at": {"type": "TIMESTAMP", "index": 4, "name": "cmdb_ci_service_updated_at", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 6, "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.servicenow.stg_servicenow__cmdb_ci_service"}, "model.servicenow.stg_servicenow__change_request_base": {"metadata": {"type": "view", "schema": "zz_dbt_renee_stg_servicenow", "name": "stg_servicenow__change_request_base", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_deleted": {"type": "BOOL", "index": 2, "name": "_fivetran_deleted", "comment": null}, "cab_required": {"type": "BOOL", "index": 10, "name": "cab_required", "comment": null}, "on_hold": {"type": "BOOL", "index": 21, "name": "on_hold", "comment": null}, "outside_maintenance_schedule": {"type": "BOOL", "index": 24, "name": "outside_maintenance_schedule", "comment": null}, "production_system": {"type": "BOOL", "index": 27, "name": "production_system", "comment": null}, "unauthorized": {"type": "BOOL", "index": 45, "name": "unauthorized", "comment": null}, "cab_date": {"type": "DATE", "index": 5, "name": "cab_date", "comment": null}, "review_date": {"type": "DATE", "index": 33, "name": "review_date", "comment": null}, "review_status": {"type": "INT64", "index": 34, "name": "review_status", "comment": null}, "risk": {"type": "INT64", "index": 35, "name": "risk", "comment": null}, "scope": {"type": "INT64", "index": 37, "name": "scope", "comment": null}, "sys_id": {"type": "STRING", "index": 1, "name": "sys_id", "comment": null}, "backout_plan": {"type": "STRING", "index": 4, "name": "backout_plan", "comment": null}, "cab_delegate_link": {"type": "STRING", "index": 7, "name": "cab_delegate_link", "comment": null}, "cab_delegate_value": {"type": "STRING", "index": 8, "name": "cab_delegate_value", "comment": null}, "cab_recommendation": {"type": "STRING", "index": 9, "name": "cab_recommendation", "comment": null}, "category": {"type": "STRING", "index": 11, "name": "category", "comment": null}, "change_plan": {"type": "STRING", "index": 12, "name": "change_plan", "comment": null}, "chg_model_link": {"type": "STRING", "index": 13, "name": "chg_model_link", "comment": null}, "chg_model_value": {"type": "STRING", "index": 14, "name": "chg_model_value", "comment": null}, "close_code": {"type": "STRING", "index": 15, "name": "close_code", "comment": null}, "conflict_status": {"type": "STRING", "index": 17, "name": "conflict_status", "comment": null}, "implementation_plan": {"type": "STRING", "index": 19, "name": "implementation_plan", "comment": null}, "justification": {"type": "STRING", "index": 20, "name": "justification", "comment": null}, "on_hold_reason": {"type": "STRING", "index": 22, "name": "on_hold_reason", "comment": null}, "on_hold_task": {"type": "STRING", "index": 23, "name": "on_hold_task", "comment": null}, "phase": {"type": "STRING", "index": 25, "name": "phase", "comment": null}, "phase_state": {"type": "STRING", "index": 26, "name": "phase_state", "comment": null}, "reason": {"type": "STRING", "index": 28, "name": "reason", "comment": null}, "requested_by_link": {"type": "STRING", "index": 30, "name": "requested_by_link", "comment": null}, "requested_by_value": {"type": "STRING", "index": 31, "name": "requested_by_value", "comment": null}, "review_comments": {"type": "STRING", "index": 32, "name": "review_comments", "comment": null}, "risk_impact_analysis": {"type": "STRING", "index": 36, "name": "risk_impact_analysis", "comment": null}, "std_change_producer_version_link": {"type": "STRING", "index": 39, "name": "std_change_producer_version_link", "comment": null}, "std_change_producer_version_value": {"type": "STRING", "index": 40, "name": "std_change_producer_version_value", "comment": null}, "test_plan": {"type": "STRING", "index": 43, "name": "test_plan", "comment": null}, "type": {"type": "STRING", "index": 44, "name": "type", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 3, "name": "_fivetran_synced", "comment": null}, "cab_date_time": {"type": "TIMESTAMP", "index": 6, "name": "cab_date_time", "comment": null}, "conflict_last_run": {"type": "TIMESTAMP", "index": 16, "name": "conflict_last_run", "comment": null}, "end_date": {"type": "TIMESTAMP", "index": 18, "name": "end_date", "comment": null}, "requested_by_date": {"type": "TIMESTAMP", "index": 29, "name": "requested_by_date", "comment": null}, "start_date": {"type": "TIMESTAMP", "index": 38, "name": "start_date", "comment": null}, "sys_created_on": {"type": "TIMESTAMP", "index": 41, "name": "sys_created_on", "comment": null}, "sys_updated_on": {"type": "TIMESTAMP", "index": 42, "name": "sys_updated_on", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.servicenow.stg_servicenow__change_request_base"}, "model.servicenow.stg_servicenow__core_company_base": {"metadata": {"type": "view", "schema": "zz_dbt_renee_stg_servicenow", "name": "stg_servicenow__core_company_base", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_deleted": {"type": "BOOL", "index": 2, "name": "_fivetran_deleted", "comment": null}, "customer": {"type": "BOOL", "index": 12, "name": "customer", "comment": null}, "manufacturer": {"type": "BOOL", "index": 19, "name": "manufacturer", "comment": null}, "primary": {"type": "BOOL", "index": 27, "name": "primary", "comment": null}, "publicly_traded": {"type": "BOOL", "index": 29, "name": "publicly_traded", "comment": null}, "vendor": {"type": "BOOL", "index": 44, "name": "vendor", "comment": null}, "fiscal_year": {"type": "DATE", "index": 15, "name": "fiscal_year", "comment": null}, "num_employees": {"type": "INT64", "index": 23, "name": "num_employees", "comment": null}, "sys_mod_count": {"type": "INT64", "index": 39, "name": "sys_mod_count", "comment": null}, "sys_id": {"type": "STRING", "index": 1, "name": "sys_id", "comment": null}, "banner_image": {"type": "STRING", "index": 4, "name": "banner_image", "comment": null}, "banner_image_light": {"type": "STRING", "index": 5, "name": "banner_image_light", "comment": null}, "banner_text": {"type": "STRING", "index": 6, "name": "banner_text", "comment": null}, "city": {"type": "STRING", "index": 7, "name": "city", "comment": null}, "contact_link": {"type": "STRING", "index": 8, "name": "contact_link", "comment": null}, "contact_value": {"type": "STRING", "index": 9, "name": "contact_value", "comment": null}, "country": {"type": "STRING", "index": 11, "name": "country", "comment": null}, "fax_phone": {"type": "STRING", "index": 14, "name": "fax_phone", "comment": null}, "lat_long_error": {"type": "STRING", "index": 16, "name": "lat_long_error", "comment": null}, "name": {"type": "STRING", "index": 21, "name": "name", "comment": null}, "notes": {"type": "STRING", "index": 22, "name": "notes", "comment": null}, "parent_link": {"type": "STRING", "index": 24, "name": "parent_link", "comment": null}, "parent_value": {"type": "STRING", "index": 25, "name": "parent_value", "comment": null}, "phone": {"type": "STRING", "index": 26, "name": "phone", "comment": null}, "rank_tier": {"type": "STRING", "index": 30, "name": "rank_tier", "comment": null}, "state": {"type": "STRING", "index": 32, "name": "state", "comment": null}, "stock_price": {"type": "STRING", "index": 33, "name": "stock_price", "comment": null}, "stock_symbol": {"type": "STRING", "index": 34, "name": "stock_symbol", "comment": null}, "street": {"type": "STRING", "index": 35, "name": "street", "comment": null}, "sys_class_name": {"type": "STRING", "index": 36, "name": "sys_class_name", "comment": null}, "sys_created_by": {"type": "STRING", "index": 37, "name": "sys_created_by", "comment": null}, "sys_updated_by": {"type": "STRING", "index": 40, "name": "sys_updated_by", "comment": null}, "theme_link": {"type": "STRING", "index": 42, "name": "theme_link", "comment": null}, "theme_value": {"type": "STRING", "index": 43, "name": "theme_value", "comment": null}, "vendor_manager": {"type": "STRING", "index": 45, "name": "vendor_manager", "comment": null}, "vendor_type": {"type": "STRING", "index": 46, "name": "vendor_type", "comment": null}, "website": {"type": "STRING", "index": 47, "name": "website", "comment": null}, "zip": {"type": "STRING", "index": 48, "name": "zip", "comment": null}, "discount": {"type": "FLOAT64", "index": 13, "name": "discount", "comment": null}, "latitude": {"type": "FLOAT64", "index": 17, "name": "latitude", "comment": null}, "longitude": {"type": "FLOAT64", "index": 18, "name": "longitude", "comment": null}, "market_cap": {"type": "FLOAT64", "index": 20, "name": "market_cap", "comment": null}, "profits": {"type": "FLOAT64", "index": 28, "name": "profits", "comment": null}, "revenue_per_year": {"type": "FLOAT64", "index": 31, "name": "revenue_per_year", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 3, "name": "_fivetran_synced", "comment": null}, "coordinates_retrieved_on": {"type": "TIMESTAMP", "index": 10, "name": "coordinates_retrieved_on", "comment": null}, "sys_created_on": {"type": "TIMESTAMP", "index": 38, "name": "sys_created_on", "comment": null}, "sys_updated_on": {"type": "TIMESTAMP", "index": 41, "name": "sys_updated_on", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.servicenow.stg_servicenow__core_company_base"}, "model.servicenow.stg_servicenow__problem_task_base": {"metadata": {"type": "view", "schema": "zz_dbt_renee_stg_servicenow", "name": "stg_servicenow__problem_task_base", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_deleted": {"type": "BOOL", "index": 2, "name": "_fivetran_deleted", "comment": null}, "reopen_count": {"type": "INT64", "index": 10, "name": "reopen_count", "comment": null}, "sys_id": {"type": "STRING", "index": 1, "name": "sys_id", "comment": null}, "cause_code": {"type": "STRING", "index": 4, "name": "cause_code", "comment": null}, "close_code": {"type": "STRING", "index": 5, "name": "close_code", "comment": null}, "other_reason": {"type": "STRING", "index": 6, "name": "other_reason", "comment": null}, "problem_link": {"type": "STRING", "index": 7, "name": "problem_link", "comment": null}, "problem_task_type": {"type": "STRING", "index": 8, "name": "problem_task_type", "comment": null}, "problem_value": {"type": "STRING", "index": 9, "name": "problem_value", "comment": null}, "reopened_by_link": {"type": "STRING", "index": 12, "name": "reopened_by_link", "comment": null}, "reopened_by_value": {"type": "STRING", "index": 13, "name": "reopened_by_value", "comment": null}, "started_by_link": {"type": "STRING", "index": 15, "name": "started_by_link", "comment": null}, "started_by_value": {"type": "STRING", "index": 16, "name": "started_by_value", "comment": null}, "vendor_link": {"type": "STRING", "index": 19, "name": "vendor_link", "comment": null}, "vendor_value": {"type": "STRING", "index": 20, "name": "vendor_value", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 3, "name": "_fivetran_synced", "comment": null}, "reopened_at": {"type": "TIMESTAMP", "index": 11, "name": "reopened_at", "comment": null}, "started_at": {"type": "TIMESTAMP", "index": 14, "name": "started_at", "comment": null}, "sys_created_on": {"type": "TIMESTAMP", "index": 17, "name": "sys_created_on", "comment": null}, "sys_updated_on": {"type": "TIMESTAMP", "index": 18, "name": "sys_updated_on", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.servicenow.stg_servicenow__problem_task_base"}, "model.servicenow.stg_servicenow__sys_user": {"metadata": {"type": "view", "schema": "zz_dbt_renee_stg_servicenow", "name": "stg_servicenow__sys_user", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_deleted": {"type": "BOOL", "index": 5, "name": "_fivetran_deleted", "comment": null}, "is_active": {"type": "BOOL", "index": 8, "name": "is_active", "comment": null}, "enable_multifactor_authn": {"type": "BOOL", "index": 27, "name": "enable_multifactor_authn", "comment": null}, "internal_integration_user": {"type": "BOOL", "index": 33, "name": "internal_integration_user", "comment": null}, "locked_out": {"type": "BOOL", "index": 44, "name": "locked_out", "comment": null}, "password_needs_reset": {"type": "BOOL", "index": 51, "name": "password_needs_reset", "comment": null}, "vip": {"type": "BOOL", "index": 72, "name": "vip", "comment": null}, "web_service_access_only": {"type": "BOOL", "index": 73, "name": "web_service_access_only", "comment": null}, "last_login_day_date": {"type": "DATE", "index": 35, "name": "last_login_day_date", "comment": null}, "calendar_integration": {"type": "INT64", "index": 12, "name": "calendar_integration", "comment": null}, "failed_attempts": {"type": "INT64", "index": 28, "name": "failed_attempts", "comment": null}, "notification": {"type": "INT64", "index": 50, "name": "notification", "comment": null}, "sys_mod_count": {"type": "INT64", "index": 65, "name": "sys_mod_count", "comment": null}, "source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "user_id": {"type": "STRING", "index": 2, "name": "user_id", "comment": null}, "accumulated_roles": {"type": "STRING", "index": 7, "name": "accumulated_roles", "comment": null}, "avatar": {"type": "STRING", "index": 9, "name": "avatar", "comment": null}, "building_link": {"type": "STRING", "index": 10, "name": "building_link", "comment": null}, "building_value": {"type": "STRING", "index": 11, "name": "building_value", "comment": null}, "city": {"type": "STRING", "index": 13, "name": "city", "comment": null}, "company_link": {"type": "STRING", "index": 14, "name": "company_link", "comment": null}, "company_value": {"type": "STRING", "index": 15, "name": "company_value", "comment": null}, "cost_center_link": {"type": "STRING", "index": 16, "name": "cost_center_link", "comment": null}, "cost_center_value": {"type": "STRING", "index": 17, "name": "cost_center_value", "comment": null}, "country": {"type": "STRING", "index": 18, "name": "country", "comment": null}, "date_format": {"type": "STRING", "index": 19, "name": "date_format", "comment": null}, "default_perspective_link": {"type": "STRING", "index": 20, "name": "default_perspective_link", "comment": null}, "default_perspective_value": {"type": "STRING", "index": 21, "name": "default_perspective_value", "comment": null}, "department_link": {"type": "STRING", "index": 22, "name": "department_link", "comment": null}, "department_value": {"type": "STRING", "index": 23, "name": "department_value", "comment": null}, "edu_status": {"type": "STRING", "index": 24, "name": "edu_status", "comment": null}, "email": {"type": "STRING", "index": 25, "name": "email", "comment": null}, "employee_number": {"type": "STRING", "index": 26, "name": "employee_number", "comment": null}, "first_name": {"type": "STRING", "index": 29, "name": "first_name", "comment": null}, "gender": {"type": "STRING", "index": 30, "name": "gender", "comment": null}, "hashed_user_id": {"type": "STRING", "index": 31, "name": "hashed_user_id", "comment": null}, "home_phone": {"type": "STRING", "index": 32, "name": "home_phone", "comment": null}, "introduction": {"type": "STRING", "index": 34, "name": "introduction", "comment": null}, "last_login_device": {"type": "STRING", "index": 36, "name": "last_login_device", "comment": null}, "last_name": {"type": "STRING", "index": 38, "name": "last_name", "comment": null}, "last_password": {"type": "STRING", "index": 39, "name": "last_password", "comment": null}, "ldap_server_link": {"type": "STRING", "index": 40, "name": "ldap_server_link", "comment": null}, "ldap_server_value": {"type": "STRING", "index": 41, "name": "ldap_server_value", "comment": null}, "location_link": {"type": "STRING", "index": 42, "name": "location_link", "comment": null}, "location_value": {"type": "STRING", "index": 43, "name": "location_value", "comment": null}, "manager_link": {"type": "STRING", "index": 45, "name": "manager_link", "comment": null}, "manager_value": {"type": "STRING", "index": 46, "name": "manager_value", "comment": null}, "middle_name": {"type": "STRING", "index": 47, "name": "middle_name", "comment": null}, "mobile_phone": {"type": "STRING", "index": 48, "name": "mobile_phone", "comment": null}, "sys_user_name": {"type": "STRING", "index": 49, "name": "sys_user_name", "comment": null}, "phone": {"type": "STRING", "index": 52, "name": "phone", "comment": null}, "photo": {"type": "STRING", "index": 53, "name": "photo", "comment": null}, "preferred_language": {"type": "STRING", "index": 54, "name": "preferred_language", "comment": null}, "roles": {"type": "STRING", "index": 55, "name": "roles", "comment": null}, "schedule_link": {"type": "STRING", "index": 56, "name": "schedule_link", "comment": null}, "schedule_value": {"type": "STRING", "index": 57, "name": "schedule_value", "comment": null}, "source": {"type": "STRING", "index": 58, "name": "source", "comment": null}, "state": {"type": "STRING", "index": 59, "name": "state", "comment": null}, "sys_class_name": {"type": "STRING", "index": 60, "name": "sys_class_name", "comment": null}, "sys_created_by": {"type": "STRING", "index": 61, "name": "sys_created_by", "comment": null}, "sys_domain_link": {"type": "STRING", "index": 62, "name": "sys_domain_link", "comment": null}, "sys_domain_path": {"type": "STRING", "index": 63, "name": "sys_domain_path", "comment": null}, "sys_domain_value": {"type": "STRING", "index": 64, "name": "sys_domain_value", "comment": null}, "sys_updated_by": {"type": "STRING", "index": 66, "name": "sys_updated_by", "comment": null}, "time_format": {"type": "STRING", "index": 67, "name": "time_format", "comment": null}, "time_zone": {"type": "STRING", "index": 68, "name": "time_zone", "comment": null}, "title": {"type": "STRING", "index": 69, "name": "title", "comment": null}, "user_name": {"type": "STRING", "index": 70, "name": "user_name", "comment": null}, "user_password": {"type": "STRING", "index": 71, "name": "user_password", "comment": null}, "zip": {"type": "STRING", "index": 74, "name": "zip", "comment": null}, "user_created_at": {"type": "TIMESTAMP", "index": 3, "name": "user_created_at", "comment": null}, "user_updated_at": {"type": "TIMESTAMP", "index": 4, "name": "user_updated_at", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 6, "name": "_fivetran_synced", "comment": null}, "last_login_at": {"type": "TIMESTAMP", "index": 37, "name": "last_login_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.servicenow.stg_servicenow__sys_user"}, "model.servicenow.stg_servicenow__sys_user_group": {"metadata": {"type": "view", "schema": "zz_dbt_renee_stg_servicenow", "name": "stg_servicenow__sys_user_group", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_deleted": {"type": "BOOL", "index": 5, "name": "_fivetran_deleted", "comment": null}, "active": {"type": "BOOL", "index": 7, "name": "active", "comment": null}, "exclude_manager": {"type": "BOOL", "index": 14, "name": "exclude_manager", "comment": null}, "include_members": {"type": "BOOL", "index": 15, "name": "include_members", "comment": null}, "sys_mod_count": {"type": "INT64", "index": 24, "name": "sys_mod_count", "comment": null}, "source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "sys_user_group_id": {"type": "STRING", "index": 2, "name": "sys_user_group_id", "comment": null}, "cost_center_link": {"type": "STRING", "index": 8, "name": "cost_center_link", "comment": null}, "cost_center_value": {"type": "STRING", "index": 9, "name": "cost_center_value", "comment": null}, "default_assignee_link": {"type": "STRING", "index": 10, "name": "default_assignee_link", "comment": null}, "default_assignee_value": {"type": "STRING", "index": 11, "name": "default_assignee_value", "comment": null}, "description": {"type": "STRING", "index": 12, "name": "description", "comment": null}, "email": {"type": "STRING", "index": 13, "name": "email", "comment": null}, "manager_link": {"type": "STRING", "index": 16, "name": "manager_link", "comment": null}, "manager_value": {"type": "STRING", "index": 17, "name": "manager_value", "comment": null}, "sys_user_group_name": {"type": "STRING", "index": 18, "name": "sys_user_group_name", "comment": null}, "parent_link": {"type": "STRING", "index": 19, "name": "parent_link", "comment": null}, "parent_value": {"type": "STRING", "index": 20, "name": "parent_value", "comment": null}, "roles": {"type": "STRING", "index": 21, "name": "roles", "comment": null}, "source": {"type": "STRING", "index": 22, "name": "source", "comment": null}, "sys_created_by": {"type": "STRING", "index": 23, "name": "sys_created_by", "comment": null}, "sys_updated_by": {"type": "STRING", "index": 25, "name": "sys_updated_by", "comment": null}, "type": {"type": "STRING", "index": 26, "name": "type", "comment": null}, "sys_user_group_created_at": {"type": "TIMESTAMP", "index": 3, "name": "sys_user_group_created_at", "comment": null}, "sys_user_group_updated_at": {"type": "TIMESTAMP", "index": 4, "name": "sys_user_group_updated_at", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 6, "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.servicenow.stg_servicenow__sys_user_group"}, "model.servicenow.stg_servicenow__task_base": {"metadata": {"type": "view", "schema": "zz_dbt_renee_stg_servicenow", "name": "stg_servicenow__task_base", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_deleted": {"type": "BOOL", "index": 2, "name": "_fivetran_deleted", "comment": null}, "active": {"type": "BOOL", "index": 4, "name": "active", "comment": null}, "knowledge": {"type": "BOOL", "index": 44, "name": "knowledge", "comment": null}, "made_sla": {"type": "BOOL", "index": 47, "name": "made_sla", "comment": null}, "escalation": {"type": "INT64", "index": 39, "name": "escalation", "comment": null}, "impact": {"type": "INT64", "index": 43, "name": "impact", "comment": null}, "order": {"type": "INT64", "index": 52, "name": "order", "comment": null}, "priority": {"type": "INT64", "index": 55, "name": "priority", "comment": null}, "reassignment_count": {"type": "INT64", "index": 56, "name": "reassignment_count", "comment": null}, "route_reason": {"type": "INT64", "index": 59, "name": "route_reason", "comment": null}, "state": {"type": "INT64", "index": 64, "name": "state", "comment": null}, "sys_mod_count": {"type": "INT64", "index": 71, "name": "sys_mod_count", "comment": null}, "urgency": {"type": "INT64", "index": 79, "name": "urgency", "comment": null}, "sys_id": {"type": "STRING", "index": 1, "name": "sys_id", "comment": null}, "additional_assignee_list": {"type": "STRING", "index": 6, "name": "additional_assignee_list", "comment": null}, "approval": {"type": "STRING", "index": 7, "name": "approval", "comment": null}, "approval_history": {"type": "STRING", "index": 8, "name": "approval_history", "comment": null}, "assigned_to_link": {"type": "STRING", "index": 10, "name": "assigned_to_link", "comment": null}, "assigned_to_value": {"type": "STRING", "index": 11, "name": "assigned_to_value", "comment": null}, "assignment_group_link": {"type": "STRING", "index": 12, "name": "assignment_group_link", "comment": null}, "assignment_group_value": {"type": "STRING", "index": 13, "name": "assignment_group_value", "comment": null}, "business_service_link": {"type": "STRING", "index": 15, "name": "business_service_link", "comment": null}, "business_service_value": {"type": "STRING", "index": 16, "name": "business_service_value", "comment": null}, "close_notes": {"type": "STRING", "index": 18, "name": "close_notes", "comment": null}, "closed_by_link": {"type": "STRING", "index": 20, "name": "closed_by_link", "comment": null}, "closed_by_value": {"type": "STRING", "index": 21, "name": "closed_by_value", "comment": null}, "cmdb_ci_link": {"type": "STRING", "index": 22, "name": "cmdb_ci_link", "comment": null}, "cmdb_ci_value": {"type": "STRING", "index": 23, "name": "cmdb_ci_value", "comment": null}, "comments": {"type": "STRING", "index": 24, "name": "comments", "comment": null}, "comments_and_work_notes": {"type": "STRING", "index": 25, "name": "comments_and_work_notes", "comment": null}, "company_link": {"type": "STRING", "index": 26, "name": "company_link", "comment": null}, "company_value": {"type": "STRING", "index": 27, "name": "company_value", "comment": null}, "contact_type": {"type": "STRING", "index": 28, "name": "contact_type", "comment": null}, "contract_link": {"type": "STRING", "index": 29, "name": "contract_link", "comment": null}, "contract_value": {"type": "STRING", "index": 30, "name": "contract_value", "comment": null}, "correlation_display": {"type": "STRING", "index": 31, "name": "correlation_display", "comment": null}, "correlation_id": {"type": "STRING", "index": 32, "name": "correlation_id", "comment": null}, "delivery_plan_link": {"type": "STRING", "index": 33, "name": "delivery_plan_link", "comment": null}, "delivery_plan_value": {"type": "STRING", "index": 34, "name": "delivery_plan_value", "comment": null}, "delivery_task_link": {"type": "STRING", "index": 35, "name": "delivery_task_link", "comment": null}, "delivery_task_value": {"type": "STRING", "index": 36, "name": "delivery_task_value", "comment": null}, "description": {"type": "STRING", "index": 37, "name": "description", "comment": null}, "group_list": {"type": "STRING", "index": 42, "name": "group_list", "comment": null}, "location_link": {"type": "STRING", "index": 45, "name": "location_link", "comment": null}, "location_value": {"type": "STRING", "index": 46, "name": "location_value", "comment": null}, "number": {"type": "STRING", "index": 48, "name": "number", "comment": null}, "opened_by_link": {"type": "STRING", "index": 50, "name": "opened_by_link", "comment": null}, "opened_by_value": {"type": "STRING", "index": 51, "name": "opened_by_value", "comment": null}, "parent_link": {"type": "STRING", "index": 53, "name": "parent_link", "comment": null}, "parent_value": {"type": "STRING", "index": 54, "name": "parent_value", "comment": null}, "rejection_goto_link": {"type": "STRING", "index": 57, "name": "rejection_goto_link", "comment": null}, "rejection_goto_value": {"type": "STRING", "index": 58, "name": "rejection_goto_value", "comment": null}, "service_offering_link": {"type": "STRING", "index": 60, "name": "service_offering_link", "comment": null}, "service_offering_value": {"type": "STRING", "index": 61, "name": "service_offering_value", "comment": null}, "short_description": {"type": "STRING", "index": 62, "name": "short_description", "comment": null}, "sys_class_name": {"type": "STRING", "index": 65, "name": "sys_class_name", "comment": null}, "sys_created_by": {"type": "STRING", "index": 66, "name": "sys_created_by", "comment": null}, "sys_domain_link": {"type": "STRING", "index": 68, "name": "sys_domain_link", "comment": null}, "sys_domain_path": {"type": "STRING", "index": 69, "name": "sys_domain_path", "comment": null}, "sys_domain_value": {"type": "STRING", "index": 70, "name": "sys_domain_value", "comment": null}, "sys_updated_by": {"type": "STRING", "index": 72, "name": "sys_updated_by", "comment": null}, "task_effective_number": {"type": "STRING", "index": 74, "name": "task_effective_number", "comment": null}, "universal_request_link": {"type": "STRING", "index": 75, "name": "universal_request_link", "comment": null}, "universal_request_value": {"type": "STRING", "index": 76, "name": "universal_request_value", "comment": null}, "upon_approval": {"type": "STRING", "index": 77, "name": "upon_approval", "comment": null}, "upon_reject": {"type": "STRING", "index": 78, "name": "upon_reject", "comment": null}, "watch_list": {"type": "STRING", "index": 80, "name": "watch_list", "comment": null}, "wf_activity_link": {"type": "STRING", "index": 81, "name": "wf_activity_link", "comment": null}, "wf_activity_value": {"type": "STRING", "index": 82, "name": "wf_activity_value", "comment": null}, "work_notes": {"type": "STRING", "index": 84, "name": "work_notes", "comment": null}, "work_notes_list": {"type": "STRING", "index": 85, "name": "work_notes_list", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 3, "name": "_fivetran_synced", "comment": null}, "activity_due": {"type": "TIMESTAMP", "index": 5, "name": "activity_due", "comment": null}, "approval_set": {"type": "TIMESTAMP", "index": 9, "name": "approval_set", "comment": null}, "business_duration": {"type": "TIMESTAMP", "index": 14, "name": "business_duration", "comment": null}, "calendar_duration": {"type": "TIMESTAMP", "index": 17, "name": "calendar_duration", "comment": null}, "closed_at": {"type": "TIMESTAMP", "index": 19, "name": "closed_at", "comment": null}, "due_date": {"type": "TIMESTAMP", "index": 38, "name": "due_date", "comment": null}, "expected_start": {"type": "TIMESTAMP", "index": 40, "name": "expected_start", "comment": null}, "follow_up": {"type": "TIMESTAMP", "index": 41, "name": "follow_up", "comment": null}, "opened_at": {"type": "TIMESTAMP", "index": 49, "name": "opened_at", "comment": null}, "sla_due": {"type": "TIMESTAMP", "index": 63, "name": "sla_due", "comment": null}, "sys_created_on": {"type": "TIMESTAMP", "index": 67, "name": "sys_created_on", "comment": null}, "sys_updated_on": {"type": "TIMESTAMP", "index": 73, "name": "sys_updated_on", "comment": null}, "work_end": {"type": "TIMESTAMP", "index": 83, "name": "work_end", "comment": null}, "work_start": {"type": "TIMESTAMP", "index": 86, "name": "work_start", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.servicenow.stg_servicenow__task_base"}, "model.servicenow.stg_servicenow__change_request": {"metadata": {"type": "view", "schema": "zz_dbt_renee_stg_servicenow", "name": "stg_servicenow__change_request", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_deleted": {"type": "BOOL", "index": 5, "name": "_fivetran_deleted", "comment": null}, "is_cab_required": {"type": "BOOL", "index": 13, "name": "is_cab_required", "comment": null}, "is_change_request_on_hold": {"type": "BOOL", "index": 24, "name": "is_change_request_on_hold", "comment": null}, "outside_maintenance_schedule": {"type": "BOOL", "index": 27, "name": "outside_maintenance_schedule", "comment": null}, "is_production_system": {"type": "BOOL", "index": 30, "name": "is_production_system", "comment": null}, "is_change_request_unauthorized": {"type": "BOOL", "index": 44, "name": "is_change_request_unauthorized", "comment": null}, "cab_date": {"type": "DATE", "index": 8, "name": "cab_date", "comment": null}, "change_request_review_date": {"type": "DATE", "index": 36, "name": "change_request_review_date", "comment": null}, "change_request_review_status": {"type": "INT64", "index": 37, "name": "change_request_review_status", "comment": null}, "change_request_risk": {"type": "INT64", "index": 38, "name": "change_request_risk", "comment": null}, "change_request_scope": {"type": "INT64", "index": 40, "name": "change_request_scope", "comment": null}, "source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "change_request_id": {"type": "STRING", "index": 2, "name": "change_request_id", "comment": null}, "backout_plan": {"type": "STRING", "index": 7, "name": "backout_plan", "comment": null}, "cab_delegate_link": {"type": "STRING", "index": 10, "name": "cab_delegate_link", "comment": null}, "cab_delegate_value": {"type": "STRING", "index": 11, "name": "cab_delegate_value", "comment": null}, "cab_recommendation": {"type": "STRING", "index": 12, "name": "cab_recommendation", "comment": null}, "change_request_category": {"type": "STRING", "index": 14, "name": "change_request_category", "comment": null}, "change_plan": {"type": "STRING", "index": 15, "name": "change_plan", "comment": null}, "chg_model_link": {"type": "STRING", "index": 16, "name": "chg_model_link", "comment": null}, "chg_model_value": {"type": "STRING", "index": 17, "name": "chg_model_value", "comment": null}, "change_request_close_code": {"type": "STRING", "index": 18, "name": "change_request_close_code", "comment": null}, "conflict_status": {"type": "STRING", "index": 20, "name": "conflict_status", "comment": null}, "change_request_implementation_plan": {"type": "STRING", "index": 22, "name": "change_request_implementation_plan", "comment": null}, "change_request_justification": {"type": "STRING", "index": 23, "name": "change_request_justification", "comment": null}, "change_request_on_hold_reason": {"type": "STRING", "index": 25, "name": "change_request_on_hold_reason", "comment": null}, "on_hold_task": {"type": "STRING", "index": 26, "name": "on_hold_task", "comment": null}, "change_request_phase": {"type": "STRING", "index": 28, "name": "change_request_phase", "comment": null}, "change_request_phase_state": {"type": "STRING", "index": 29, "name": "change_request_phase_state", "comment": null}, "change_request_reason": {"type": "STRING", "index": 31, "name": "change_request_reason", "comment": null}, "change_requested_by_link": {"type": "STRING", "index": 33, "name": "change_requested_by_link", "comment": null}, "change_requested_by_value": {"type": "STRING", "index": 34, "name": "change_requested_by_value", "comment": null}, "review_comments": {"type": "STRING", "index": 35, "name": "review_comments", "comment": null}, "risk_impact_analysis": {"type": "STRING", "index": 39, "name": "risk_impact_analysis", "comment": null}, "change_request_test_plan": {"type": "STRING", "index": 42, "name": "change_request_test_plan", "comment": null}, "change_request_type": {"type": "STRING", "index": 43, "name": "change_request_type", "comment": null}, "change_request_created_at": {"type": "TIMESTAMP", "index": 3, "name": "change_request_created_at", "comment": null}, "change_request_updated_at": {"type": "TIMESTAMP", "index": 4, "name": "change_request_updated_at", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 6, "name": "_fivetran_synced", "comment": null}, "cab_date_time": {"type": "TIMESTAMP", "index": 9, "name": "cab_date_time", "comment": null}, "conflict_last_run": {"type": "TIMESTAMP", "index": 19, "name": "conflict_last_run", "comment": null}, "change_request_end_date": {"type": "TIMESTAMP", "index": 21, "name": "change_request_end_date", "comment": null}, "change_requested_by_date": {"type": "TIMESTAMP", "index": 32, "name": "change_requested_by_date", "comment": null}, "change_request_start_date": {"type": "TIMESTAMP", "index": 41, "name": "change_request_start_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.servicenow.stg_servicenow__change_request"}, "model.servicenow.stg_servicenow__core_company": {"metadata": {"type": "view", "schema": "zz_dbt_renee_stg_servicenow", "name": "stg_servicenow__core_company", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"is_customer": {"type": "BOOL", "index": 5, "name": "is_customer", "comment": null}, "is_vendor": {"type": "BOOL", "index": 19, "name": "is_vendor", "comment": null}, "fiscal_year": {"type": "DATE", "index": 7, "name": "fiscal_year", "comment": null}, "sys_mod_count": {"type": "INT64", "index": 16, "name": "sys_mod_count", "comment": null}, "source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "core_company_id": {"type": "STRING", "index": 2, "name": "core_company_id", "comment": null}, "company_city": {"type": "STRING", "index": 3, "name": "company_city", "comment": null}, "company_country": {"type": "STRING", "index": 4, "name": "company_country", "comment": null}, "company_fax_phone": {"type": "STRING", "index": 6, "name": "company_fax_phone", "comment": null}, "company_name": {"type": "STRING", "index": 8, "name": "company_name", "comment": null}, "notes": {"type": "STRING", "index": 9, "name": "notes", "comment": null}, "company_phone": {"type": "STRING", "index": 10, "name": "company_phone", "comment": null}, "company_state": {"type": "STRING", "index": 11, "name": "company_state", "comment": null}, "company_street": {"type": "STRING", "index": 12, "name": "company_street", "comment": null}, "sys_class_name": {"type": "STRING", "index": 13, "name": "sys_class_name", "comment": null}, "sys_created_by": {"type": "STRING", "index": 14, "name": "sys_created_by", "comment": null}, "sys_updated_by": {"type": "STRING", "index": 17, "name": "sys_updated_by", "comment": null}, "vendor_type": {"type": "STRING", "index": 20, "name": "vendor_type", "comment": null}, "company_website": {"type": "STRING", "index": 21, "name": "company_website", "comment": null}, "company_zip": {"type": "STRING", "index": 22, "name": "company_zip", "comment": null}, "sys_created_on": {"type": "TIMESTAMP", "index": 15, "name": "sys_created_on", "comment": null}, "sys_updated_on": {"type": "TIMESTAMP", "index": 18, "name": "sys_updated_on", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.servicenow.stg_servicenow__core_company"}, "model.servicenow.stg_servicenow__cmdb_ci": {"metadata": {"type": "view", "schema": "zz_dbt_renee_stg_servicenow", "name": "stg_servicenow__cmdb_ci", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_deleted": {"type": "BOOL", "index": 5, "name": "_fivetran_deleted", "comment": null}, "unverified": {"type": "BOOL", "index": 36, "name": "unverified", "comment": null}, "sys_mod_count": {"type": "INT64", "index": 34, "name": "sys_mod_count", "comment": null}, "source_relation": {"type": "STRING", "index": 1, "name": "source_relation", "comment": null}, "cmdb_ci_id": {"type": "STRING", "index": 2, "name": "cmdb_ci_id", "comment": null}, "attributes": {"type": "STRING", "index": 7, "name": "attributes", "comment": null}, "business_unit_link": {"type": "STRING", "index": 8, "name": "business_unit_link", "comment": null}, "business_unit_value": {"type": "STRING", "index": 9, "name": "business_unit_value", "comment": null}, "category": {"type": "STRING", "index": 10, "name": "category", "comment": null}, "company_link": {"type": "STRING", "index": 11, "name": "company_link", "comment": null}, "company_value": {"type": "STRING", "index": 12, "name": "company_value", "comment": null}, "cost_cc": {"type": "STRING", "index": 14, "name": "cost_cc", "comment": null}, "cost_center_link": {"type": "STRING", "index": 15, "name": "cost_center_link", "comment": null}, "cost_center_value": {"type": "STRING", "index": 16, "name": "cost_center_value", "comment": null}, "managed_by_link": {"type": "STRING", "index": 17, "name": "managed_by_link", "comment": null}, "managed_by_value": {"type": "STRING", "index": 18, "name": "managed_by_value", "comment": null}, "manufacturer_link": {"type": "STRING", "index": 19, "name": "manufacturer_link", "comment": null}, "manufacturer_value": {"type": "STRING", "index": 20, "name": "manufacturer_value", "comment": null}, "model_id_link": {"type": "STRING", "index": 21, "name": "model_id_link", "comment": null}, "model_id_value": {"type": "STRING", "index": 22, "name": "model_id_value", "comment": null}, "model_number": {"type": "STRING", "index": 23, "name": "model_number", "comment": null}, "cmdb_ci_name": {"type": "STRING", "index": 24, "name": "cmdb_ci_name", "comment": null}, "owned_by_link": {"type": "STRING", "index": 25, "name": "owned_by_link", "comment": null}, "owned_by_value": {"type": "STRING", "index": 26, "name": "owned_by_value", "comment": null}, "subcategory": {"type": "STRING", "index": 27, "name": "subcategory", "comment": null}, "sys_class_name": {"type": "STRING", "index": 28, "name": "sys_class_name", "comment": null}, "sys_class_path": {"type": "STRING", "index": 29, "name": "sys_class_path", "comment": null}, "sys_created_by": {"type": "STRING", "index": 30, "name": "sys_created_by", "comment": null}, "sys_domain_link": {"type": "STRING", "index": 31, "name": "sys_domain_link", "comment": null}, "sys_domain_path": {"type": "STRING", "index": 32, "name": "sys_domain_path", "comment": null}, "sys_domain_value": {"type": "STRING", "index": 33, "name": "sys_domain_value", "comment": null}, "sys_updated_by": {"type": "STRING", "index": 35, "name": "sys_updated_by", "comment": null}, "vendor_link": {"type": "STRING", "index": 37, "name": "vendor_link", "comment": null}, "vendor_value": {"type": "STRING", "index": 38, "name": "vendor_value", "comment": null}, "cost": {"type": "FLOAT64", "index": 13, "name": "cost", "comment": null}, "cmdb_ci_created_at": {"type": "TIMESTAMP", "index": 3, "name": "cmdb_ci_created_at", "comment": null}, "cmdb_ci_updated_at": {"type": "TIMESTAMP", "index": 4, "name": "cmdb_ci_updated_at", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 6, "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.servicenow.stg_servicenow__cmdb_ci"}, "model.servicenow.stg_servicenow__change_task_base": {"metadata": {"type": "view", "schema": "zz_dbt_renee_stg_servicenow", "name": "stg_servicenow__change_task_base", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_deleted": {"type": "BOOL", "index": 2, "name": "_fivetran_deleted", "comment": null}, "on_hold": {"type": "BOOL", "index": 9, "name": "on_hold", "comment": null}, "sys_id": {"type": "STRING", "index": 1, "name": "sys_id", "comment": null}, "change_request_link": {"type": "STRING", "index": 4, "name": "change_request_link", "comment": null}, "change_request_value": {"type": "STRING", "index": 5, "name": "change_request_value", "comment": null}, "change_task_type": {"type": "STRING", "index": 6, "name": "change_task_type", "comment": null}, "close_code": {"type": "STRING", "index": 7, "name": "close_code", "comment": null}, "created_from": {"type": "STRING", "index": 8, "name": "created_from", "comment": null}, "on_hold_reason": {"type": "STRING", "index": 10, "name": "on_hold_reason", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 3, "name": "_fivetran_synced", "comment": null}, "planned_end_date": {"type": "TIMESTAMP", "index": 11, "name": "planned_end_date", "comment": null}, "planned_start_date": {"type": "TIMESTAMP", "index": 12, "name": "planned_start_date", "comment": null}, "sys_created_on": {"type": "TIMESTAMP", "index": 13, "name": "sys_created_on", "comment": null}, "sys_updated_on": {"type": "TIMESTAMP", "index": 14, "name": "sys_updated_on", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.servicenow.stg_servicenow__change_task_base"}}, "sources": {"source.servicenow.servicenow.cmdb_ci_service": {"metadata": {"type": "table", "schema": "servicenow", "name": "cmdb_ci_service", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"sys_id": {"type": "STRING", "index": 1, "name": "sys_id", "comment": null}, "_fivetran_deleted": {"type": "BOOL", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 3, "name": "_fivetran_synced", "comment": null}, "aliases": {"type": "STRING", "index": 4, "name": "aliases", "comment": null}, "asset_link": {"type": "STRING", "index": 5, "name": "asset_link", "comment": null}, "asset_tag": {"type": "STRING", "index": 6, "name": "asset_tag", "comment": null}, "asset_value": {"type": "STRING", "index": 7, "name": "asset_value", "comment": null}, "assigned": {"type": "TIMESTAMP", "index": 8, "name": "assigned", "comment": null}, "assigned_to_link": {"type": "STRING", "index": 9, "name": "assigned_to_link", "comment": null}, "assigned_to_value": {"type": "STRING", "index": 10, "name": "assigned_to_value", "comment": null}, "assignment_group_link": {"type": "STRING", "index": 11, "name": "assignment_group_link", "comment": null}, "assignment_group_value": {"type": "STRING", "index": 12, "name": "assignment_group_value", "comment": null}, "attestation_score": {"type": "INT64", "index": 13, "name": "attestation_score", "comment": null}, "attestation_status": {"type": "STRING", "index": 14, "name": "attestation_status", "comment": null}, "attested": {"type": "BOOL", "index": 15, "name": "attested", "comment": null}, "attested_by_link": {"type": "STRING", "index": 16, "name": "attested_by_link", "comment": null}, "attested_by_value": {"type": "STRING", "index": 17, "name": "attested_by_value", "comment": null}, "attested_date": {"type": "TIMESTAMP", "index": 18, "name": "attested_date", "comment": null}, "attributes": {"type": "STRING", "index": 19, "name": "attributes", "comment": null}, "busines_criticality": {"type": "STRING", "index": 20, "name": "busines_criticality", "comment": null}, "business_contact_link": {"type": "STRING", "index": 21, "name": "business_contact_link", "comment": null}, "business_contact_value": {"type": "STRING", "index": 22, "name": "business_contact_value", "comment": null}, "business_need": {"type": "STRING", "index": 23, "name": "business_need", "comment": null}, "business_relation_manager_link": {"type": "STRING", "index": 24, "name": "business_relation_manager_link", "comment": null}, "business_relation_manager_value": {"type": "STRING", "index": 25, "name": "business_relation_manager_value", "comment": null}, "business_unit_link": {"type": "STRING", "index": 26, "name": "business_unit_link", "comment": null}, "business_unit_value": {"type": "STRING", "index": 27, "name": "business_unit_value", "comment": null}, "can_print": {"type": "BOOL", "index": 28, "name": "can_print", "comment": null}, "category": {"type": "STRING", "index": 29, "name": "category", "comment": null}, "change_control_link": {"type": "STRING", "index": 30, "name": "change_control_link", "comment": null}, "change_control_value": {"type": "STRING", "index": 31, "name": "change_control_value", "comment": null}, "checked_in": {"type": "TIMESTAMP", "index": 32, "name": "checked_in", "comment": null}, "checked_out": {"type": "TIMESTAMP", "index": 33, "name": "checked_out", "comment": null}, "checkout": {"type": "STRING", "index": 34, "name": "checkout", "comment": null}, "comments": {"type": "STRING", "index": 35, "name": "comments", "comment": null}, "company_link": {"type": "STRING", "index": 36, "name": "company_link", "comment": null}, "company_value": {"type": "STRING", "index": 37, "name": "company_value", "comment": null}, "compatibility_dependencies": {"type": "STRING", "index": 38, "name": "compatibility_dependencies", "comment": null}, "consumer_type": {"type": "STRING", "index": 39, "name": "consumer_type", "comment": null}, "correlation_id": {"type": "STRING", "index": 40, "name": "correlation_id", "comment": null}, "cost": {"type": "FLOAT64", "index": 41, "name": "cost", "comment": null}, "cost_cc": {"type": "STRING", "index": 42, "name": "cost_cc", "comment": null}, "cost_center_link": {"type": "STRING", "index": 43, "name": "cost_center_link", "comment": null}, "cost_center_value": {"type": "STRING", "index": 44, "name": "cost_center_value", "comment": null}, "delivery_date": {"type": "TIMESTAMP", "index": 45, "name": "delivery_date", "comment": null}, "delivery_manager_link": {"type": "STRING", "index": 46, "name": "delivery_manager_link", "comment": null}, "delivery_manager_value": {"type": "STRING", "index": 47, "name": "delivery_manager_value", "comment": null}, "department_link": {"type": "STRING", "index": 48, "name": "department_link", "comment": null}, "department_value": {"type": "STRING", "index": 49, "name": "department_value", "comment": null}, "discovery_source": {"type": "STRING", "index": 50, "name": "discovery_source", "comment": null}, "dns_domain": {"type": "STRING", "index": 51, "name": "dns_domain", "comment": null}, "due": {"type": "TIMESTAMP", "index": 52, "name": "due", "comment": null}, "due_in": {"type": "STRING", "index": 53, "name": "due_in", "comment": null}, "duplicate_of_link": {"type": "STRING", "index": 54, "name": "duplicate_of_link", "comment": null}, "duplicate_of_value": {"type": "STRING", "index": 55, "name": "duplicate_of_value", "comment": null}, "end_date": {"type": "TIMESTAMP", "index": 56, "name": "end_date", "comment": null}, "environment": {"type": "STRING", "index": 57, "name": "environment", "comment": null}, "fault_count": {"type": "INT64", "index": 58, "name": "fault_count", "comment": null}, "first_discovered": {"type": "TIMESTAMP", "index": 59, "name": "first_discovered", "comment": null}, "fqdn": {"type": "STRING", "index": 60, "name": "fqdn", "comment": null}, "gl_account": {"type": "STRING", "index": 61, "name": "gl_account", "comment": null}, "install_date": {"type": "TIMESTAMP", "index": 62, "name": "install_date", "comment": null}, "install_status": {"type": "INT64", "index": 63, "name": "install_status", "comment": null}, "invoice_number": {"type": "STRING", "index": 64, "name": "invoice_number", "comment": null}, "justification": {"type": "STRING", "index": 65, "name": "justification", "comment": null}, "last_discovered": {"type": "TIMESTAMP", "index": 66, "name": "last_discovered", "comment": null}, "last_review_date": {"type": "TIMESTAMP", "index": 67, "name": "last_review_date", "comment": null}, "lease_id": {"type": "STRING", "index": 68, "name": "lease_id", "comment": null}, "life_cycle_stage_link": {"type": "STRING", "index": 69, "name": "life_cycle_stage_link", "comment": null}, "life_cycle_stage_status_link": {"type": "STRING", "index": 70, "name": "life_cycle_stage_status_link", "comment": null}, "life_cycle_stage_status_value": {"type": "STRING", "index": 71, "name": "life_cycle_stage_status_value", "comment": null}, "life_cycle_stage_value": {"type": "STRING", "index": 72, "name": "life_cycle_stage_value", "comment": null}, "location_link": {"type": "STRING", "index": 73, "name": "location_link", "comment": null}, "location_value": {"type": "STRING", "index": 74, "name": "location_value", "comment": null}, "mac_address": {"type": "STRING", "index": 75, "name": "mac_address", "comment": null}, "maintenance_schedule_link": {"type": "STRING", "index": 76, "name": "maintenance_schedule_link", "comment": null}, "maintenance_schedule_value": {"type": "STRING", "index": 77, "name": "maintenance_schedule_value", "comment": null}, "managed_by_group_link": {"type": "STRING", "index": 78, "name": "managed_by_group_link", "comment": null}, "managed_by_group_value": {"type": "STRING", "index": 79, "name": "managed_by_group_value", "comment": null}, "managed_by_link": {"type": "STRING", "index": 80, "name": "managed_by_link", "comment": null}, "managed_by_value": {"type": "STRING", "index": 81, "name": "managed_by_value", "comment": null}, "manufacturer_link": {"type": "STRING", "index": 82, "name": "manufacturer_link", "comment": null}, "manufacturer_value": {"type": "STRING", "index": 83, "name": "manufacturer_value", "comment": null}, "model_id_link": {"type": "STRING", "index": 84, "name": "model_id_link", "comment": null}, "model_id_value": {"type": "STRING", "index": 85, "name": "model_id_value", "comment": null}, "model_number": {"type": "STRING", "index": 86, "name": "model_number", "comment": null}, "monitor": {"type": "BOOL", "index": 87, "name": "monitor", "comment": null}, "monitoring_requirements": {"type": "STRING", "index": 88, "name": "monitoring_requirements", "comment": null}, "name": {"type": "STRING", "index": 89, "name": "name", "comment": null}, "number": {"type": "STRING", "index": 90, "name": "number", "comment": null}, "operational_status": {"type": "INT64", "index": 91, "name": "operational_status", "comment": null}, "order_date": {"type": "TIMESTAMP", "index": 92, "name": "order_date", "comment": null}, "owned_by_link": {"type": "STRING", "index": 93, "name": "owned_by_link", "comment": null}, "owned_by_value": {"type": "STRING", "index": 94, "name": "owned_by_value", "comment": null}, "parent_link": {"type": "STRING", "index": 95, "name": "parent_link", "comment": null}, "parent_value": {"type": "STRING", "index": 96, "name": "parent_value", "comment": null}, "po_number": {"type": "STRING", "index": 97, "name": "po_number", "comment": null}, "portfolio_status": {"type": "STRING", "index": 98, "name": "portfolio_status", "comment": null}, "prerequisites": {"type": "STRING", "index": 99, "name": "prerequisites", "comment": null}, "price_model": {"type": "STRING", "index": 100, "name": "price_model", "comment": null}, "price_unit": {"type": "STRING", "index": 101, "name": "price_unit", "comment": null}, "published_ref_link": {"type": "STRING", "index": 102, "name": "published_ref_link", "comment": null}, "published_ref_value": {"type": "STRING", "index": 103, "name": "published_ref_value", "comment": null}, "purchase_date": {"type": "DATE", "index": 104, "name": "purchase_date", "comment": null}, "schedule_link": {"type": "STRING", "index": 105, "name": "schedule_link", "comment": null}, "schedule_value": {"type": "STRING", "index": 106, "name": "schedule_value", "comment": null}, "serial_number": {"type": "STRING", "index": 107, "name": "serial_number", "comment": null}, "service_classification": {"type": "STRING", "index": 108, "name": "service_classification", "comment": null}, "service_level_requirement": {"type": "STRING", "index": 109, "name": "service_level_requirement", "comment": null}, "service_owner_delegate_link": {"type": "STRING", "index": 110, "name": "service_owner_delegate_link", "comment": null}, "service_owner_delegate_value": {"type": "STRING", "index": 111, "name": "service_owner_delegate_value", "comment": null}, "service_status": {"type": "STRING", "index": 112, "name": "service_status", "comment": null}, "short_description": {"type": "STRING", "index": 113, "name": "short_description", "comment": null}, "skip_sync": {"type": "BOOL", "index": 114, "name": "skip_sync", "comment": null}, "sla_link": {"type": "STRING", "index": 115, "name": "sla_link", "comment": null}, "sla_value": {"type": "STRING", "index": 116, "name": "sla_value", "comment": null}, "spm_service_portfolio_link": {"type": "STRING", "index": 117, "name": "spm_service_portfolio_link", "comment": null}, "spm_service_portfolio_value": {"type": "STRING", "index": 118, "name": "spm_service_portfolio_value", "comment": null}, "spm_taxonomy_node_link": {"type": "STRING", "index": 119, "name": "spm_taxonomy_node_link", "comment": null}, "spm_taxonomy_node_value": {"type": "STRING", "index": 120, "name": "spm_taxonomy_node_value", "comment": null}, "stakeholders": {"type": "STRING", "index": 121, "name": "stakeholders", "comment": null}, "start_date": {"type": "TIMESTAMP", "index": 122, "name": "start_date", "comment": null}, "state": {"type": "STRING", "index": 123, "name": "state", "comment": null}, "subcategory": {"type": "STRING", "index": 124, "name": "subcategory", "comment": null}, "support_group_link": {"type": "STRING", "index": 125, "name": "support_group_link", "comment": null}, "support_group_value": {"type": "STRING", "index": 126, "name": "support_group_value", "comment": null}, "supported_by_link": {"type": "STRING", "index": 127, "name": "supported_by_link", "comment": null}, "supported_by_value": {"type": "STRING", "index": 128, "name": "supported_by_value", "comment": null}, "sys_class_name": {"type": "STRING", "index": 129, "name": "sys_class_name", "comment": null}, "sys_class_path": {"type": "STRING", "index": 130, "name": "sys_class_path", "comment": null}, "sys_created_by": {"type": "STRING", "index": 131, "name": "sys_created_by", "comment": null}, "sys_created_on": {"type": "TIMESTAMP", "index": 132, "name": "sys_created_on", "comment": null}, "sys_domain_link": {"type": "STRING", "index": 133, "name": "sys_domain_link", "comment": null}, "sys_domain_path": {"type": "STRING", "index": 134, "name": "sys_domain_path", "comment": null}, "sys_domain_value": {"type": "STRING", "index": 135, "name": "sys_domain_value", "comment": null}, "sys_mod_count": {"type": "INT64", "index": 136, "name": "sys_mod_count", "comment": null}, "sys_updated_by": {"type": "STRING", "index": 137, "name": "sys_updated_by", "comment": null}, "sys_updated_on": {"type": "TIMESTAMP", "index": 138, "name": "sys_updated_on", "comment": null}, "unverified": {"type": "BOOL", "index": 139, "name": "unverified", "comment": null}, "used_for": {"type": "STRING", "index": 140, "name": "used_for", "comment": null}, "user_group_link": {"type": "STRING", "index": 141, "name": "user_group_link", "comment": null}, "user_group_value": {"type": "STRING", "index": 142, "name": "user_group_value", "comment": null}, "vendor_link": {"type": "STRING", "index": 143, "name": "vendor_link", "comment": null}, "vendor_value": {"type": "STRING", "index": 144, "name": "vendor_value", "comment": null}, "version": {"type": "STRING", "index": 145, "name": "version", "comment": null}, "warranty_expiration": {"type": "DATE", "index": 146, "name": "warranty_expiration", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 40155.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 42.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.servicenow.servicenow.cmdb_ci_service"}, "source.servicenow.servicenow.change_task": {"metadata": {"type": "table", "schema": "servicenow", "name": "change_task", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"sys_id": {"type": "STRING", "index": 1, "name": "sys_id", "comment": null}, "_fivetran_deleted": {"type": "BOOL", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 3, "name": "_fivetran_synced", "comment": null}, "change_request_link": {"type": "STRING", "index": 4, "name": "change_request_link", "comment": null}, "change_request_value": {"type": "STRING", "index": 5, "name": "change_request_value", "comment": null}, "change_task_type": {"type": "STRING", "index": 6, "name": "change_task_type", "comment": null}, "close_code": {"type": "STRING", "index": 7, "name": "close_code", "comment": null}, "created_from": {"type": "STRING", "index": 8, "name": "created_from", "comment": null}, "on_hold": {"type": "BOOL", "index": 9, "name": "on_hold", "comment": null}, "on_hold_reason": {"type": "STRING", "index": 10, "name": "on_hold_reason", "comment": null}, "planned_end_date": {"type": "TIMESTAMP", "index": 11, "name": "planned_end_date", "comment": null}, "planned_start_date": {"type": "TIMESTAMP", "index": 12, "name": "planned_start_date", "comment": null}, "sys_created_on": {"type": "TIMESTAMP", "index": 13, "name": "sys_created_on", "comment": null}, "sys_updated_on": {"type": "TIMESTAMP", "index": 14, "name": "sys_updated_on", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 2060.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.servicenow.servicenow.change_task"}, "source.servicenow.servicenow.task_sla": {"metadata": {"type": "table", "schema": "servicenow", "name": "task_sla", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"sys_id": {"type": "STRING", "index": 1, "name": "sys_id", "comment": null}, "_fivetran_deleted": {"type": "BOOL", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 3, "name": "_fivetran_synced", "comment": null}, "active": {"type": "BOOL", "index": 4, "name": "active", "comment": null}, "business_duration": {"type": "TIMESTAMP", "index": 5, "name": "business_duration", "comment": null}, "business_pause_duration": {"type": "TIMESTAMP", "index": 6, "name": "business_pause_duration", "comment": null}, "business_percentage": {"type": "FLOAT64", "index": 7, "name": "business_percentage", "comment": null}, "business_time_left": {"type": "TIMESTAMP", "index": 8, "name": "business_time_left", "comment": null}, "duration": {"type": "TIMESTAMP", "index": 9, "name": "duration", "comment": null}, "end_time": {"type": "TIMESTAMP", "index": 10, "name": "end_time", "comment": null}, "has_breached": {"type": "BOOL", "index": 11, "name": "has_breached", "comment": null}, "original_breach_time": {"type": "TIMESTAMP", "index": 12, "name": "original_breach_time", "comment": null}, "pause_duration": {"type": "TIMESTAMP", "index": 13, "name": "pause_duration", "comment": null}, "pause_time": {"type": "TIMESTAMP", "index": 14, "name": "pause_time", "comment": null}, "percentage": {"type": "FLOAT64", "index": 15, "name": "percentage", "comment": null}, "planned_end_time": {"type": "TIMESTAMP", "index": 16, "name": "planned_end_time", "comment": null}, "schedule_link": {"type": "STRING", "index": 17, "name": "schedule_link", "comment": null}, "schedule_value": {"type": "STRING", "index": 18, "name": "schedule_value", "comment": null}, "sla_link": {"type": "STRING", "index": 19, "name": "sla_link", "comment": null}, "sla_value": {"type": "STRING", "index": 20, "name": "sla_value", "comment": null}, "stage": {"type": "STRING", "index": 21, "name": "stage", "comment": null}, "start_time": {"type": "TIMESTAMP", "index": 22, "name": "start_time", "comment": null}, "sys_created_by": {"type": "STRING", "index": 23, "name": "sys_created_by", "comment": null}, "sys_created_on": {"type": "TIMESTAMP", "index": 24, "name": "sys_created_on", "comment": null}, "sys_mod_count": {"type": "INT64", "index": 25, "name": "sys_mod_count", "comment": null}, "sys_updated_by": {"type": "STRING", "index": 26, "name": "sys_updated_by", "comment": null}, "sys_updated_on": {"type": "TIMESTAMP", "index": 27, "name": "sys_updated_on", "comment": null}, "task_link": {"type": "STRING", "index": 28, "name": "task_link", "comment": null}, "task_value": {"type": "STRING", "index": 29, "name": "task_value", "comment": null}, "time_left": {"type": "TIMESTAMP", "index": 30, "name": "time_left", "comment": null}, "timezone": {"type": "STRING", "index": 31, "name": "timezone", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 7722.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 15.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.servicenow.servicenow.task_sla"}, "source.servicenow.servicenow.incident": {"metadata": {"type": "table", "schema": "servicenow", "name": "incident", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"sys_id": {"type": "STRING", "index": 1, "name": "sys_id", "comment": null}, "_fivetran_deleted": {"type": "BOOL", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 3, "name": "_fivetran_synced", "comment": null}, "business_impact": {"type": "STRING", "index": 4, "name": "business_impact", "comment": null}, "business_stc": {"type": "INT64", "index": 5, "name": "business_stc", "comment": null}, "calendar_stc": {"type": "INT64", "index": 6, "name": "calendar_stc", "comment": null}, "caller_id_link": {"type": "STRING", "index": 7, "name": "caller_id_link", "comment": null}, "caller_id_value": {"type": "STRING", "index": 8, "name": "caller_id_value", "comment": null}, "category": {"type": "STRING", "index": 9, "name": "category", "comment": null}, "cause": {"type": "STRING", "index": 10, "name": "cause", "comment": null}, "caused_by_link": {"type": "STRING", "index": 11, "name": "caused_by_link", "comment": null}, "caused_by_value": {"type": "STRING", "index": 12, "name": "caused_by_value", "comment": null}, "child_incidents": {"type": "INT64", "index": 13, "name": "child_incidents", "comment": null}, "close_code": {"type": "STRING", "index": 14, "name": "close_code", "comment": null}, "hold_reason": {"type": "INT64", "index": 15, "name": "hold_reason", "comment": null}, "incident_state": {"type": "INT64", "index": 16, "name": "incident_state", "comment": null}, "notify": {"type": "INT64", "index": 17, "name": "notify", "comment": null}, "origin_id_link": {"type": "STRING", "index": 18, "name": "origin_id_link", "comment": null}, "origin_id_value": {"type": "STRING", "index": 19, "name": "origin_id_value", "comment": null}, "parent_incident_link": {"type": "STRING", "index": 20, "name": "parent_incident_link", "comment": null}, "parent_incident_value": {"type": "STRING", "index": 21, "name": "parent_incident_value", "comment": null}, "problem_id_link": {"type": "STRING", "index": 22, "name": "problem_id_link", "comment": null}, "problem_id_value": {"type": "STRING", "index": 23, "name": "problem_id_value", "comment": null}, "reopen_count": {"type": "INT64", "index": 24, "name": "reopen_count", "comment": null}, "reopened_by_link": {"type": "STRING", "index": 25, "name": "reopened_by_link", "comment": null}, "reopened_by_value": {"type": "STRING", "index": 26, "name": "reopened_by_value", "comment": null}, "reopened_time": {"type": "TIMESTAMP", "index": 27, "name": "reopened_time", "comment": null}, "resolved_at": {"type": "TIMESTAMP", "index": 28, "name": "resolved_at", "comment": null}, "resolved_by_link": {"type": "STRING", "index": 29, "name": "resolved_by_link", "comment": null}, "resolved_by_value": {"type": "STRING", "index": 30, "name": "resolved_by_value", "comment": null}, "rfc_link": {"type": "STRING", "index": 31, "name": "rfc_link", "comment": null}, "rfc_value": {"type": "STRING", "index": 32, "name": "rfc_value", "comment": null}, "severity": {"type": "INT64", "index": 33, "name": "severity", "comment": null}, "subcategory": {"type": "STRING", "index": 34, "name": "subcategory", "comment": null}, "sys_created_on": {"type": "TIMESTAMP", "index": 35, "name": "sys_created_on", "comment": null}, "sys_updated_on": {"type": "TIMESTAMP", "index": 36, "name": "sys_updated_on", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 22520.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 67.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.servicenow.servicenow.incident"}, "source.servicenow.servicenow.change_request": {"metadata": {"type": "table", "schema": "servicenow", "name": "change_request", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"sys_id": {"type": "STRING", "index": 1, "name": "sys_id", "comment": null}, "_fivetran_deleted": {"type": "BOOL", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 3, "name": "_fivetran_synced", "comment": null}, "backout_plan": {"type": "STRING", "index": 4, "name": "backout_plan", "comment": null}, "cab_date": {"type": "DATE", "index": 5, "name": "cab_date", "comment": null}, "cab_date_time": {"type": "TIMESTAMP", "index": 6, "name": "cab_date_time", "comment": null}, "cab_delegate_link": {"type": "STRING", "index": 7, "name": "cab_delegate_link", "comment": null}, "cab_delegate_value": {"type": "STRING", "index": 8, "name": "cab_delegate_value", "comment": null}, "cab_recommendation": {"type": "STRING", "index": 9, "name": "cab_recommendation", "comment": null}, "cab_required": {"type": "BOOL", "index": 10, "name": "cab_required", "comment": null}, "category": {"type": "STRING", "index": 11, "name": "category", "comment": null}, "change_plan": {"type": "STRING", "index": 12, "name": "change_plan", "comment": null}, "chg_model_link": {"type": "STRING", "index": 13, "name": "chg_model_link", "comment": null}, "chg_model_value": {"type": "STRING", "index": 14, "name": "chg_model_value", "comment": null}, "close_code": {"type": "STRING", "index": 15, "name": "close_code", "comment": null}, "conflict_last_run": {"type": "TIMESTAMP", "index": 16, "name": "conflict_last_run", "comment": null}, "conflict_status": {"type": "STRING", "index": 17, "name": "conflict_status", "comment": null}, "end_date": {"type": "TIMESTAMP", "index": 18, "name": "end_date", "comment": null}, "implementation_plan": {"type": "STRING", "index": 19, "name": "implementation_plan", "comment": null}, "justification": {"type": "STRING", "index": 20, "name": "justification", "comment": null}, "on_hold": {"type": "BOOL", "index": 21, "name": "on_hold", "comment": null}, "on_hold_reason": {"type": "STRING", "index": 22, "name": "on_hold_reason", "comment": null}, "on_hold_task": {"type": "STRING", "index": 23, "name": "on_hold_task", "comment": null}, "outside_maintenance_schedule": {"type": "BOOL", "index": 24, "name": "outside_maintenance_schedule", "comment": null}, "phase": {"type": "STRING", "index": 25, "name": "phase", "comment": null}, "phase_state": {"type": "STRING", "index": 26, "name": "phase_state", "comment": null}, "production_system": {"type": "BOOL", "index": 27, "name": "production_system", "comment": null}, "reason": {"type": "STRING", "index": 28, "name": "reason", "comment": null}, "requested_by_date": {"type": "TIMESTAMP", "index": 29, "name": "requested_by_date", "comment": null}, "requested_by_link": {"type": "STRING", "index": 30, "name": "requested_by_link", "comment": null}, "requested_by_value": {"type": "STRING", "index": 31, "name": "requested_by_value", "comment": null}, "review_comments": {"type": "STRING", "index": 32, "name": "review_comments", "comment": null}, "review_date": {"type": "DATE", "index": 33, "name": "review_date", "comment": null}, "review_status": {"type": "INT64", "index": 34, "name": "review_status", "comment": null}, "risk": {"type": "INT64", "index": 35, "name": "risk", "comment": null}, "risk_impact_analysis": {"type": "STRING", "index": 36, "name": "risk_impact_analysis", "comment": null}, "scope": {"type": "INT64", "index": 37, "name": "scope", "comment": null}, "start_date": {"type": "TIMESTAMP", "index": 38, "name": "start_date", "comment": null}, "std_change_producer_version_link": {"type": "STRING", "index": 39, "name": "std_change_producer_version_link", "comment": null}, "std_change_producer_version_value": {"type": "STRING", "index": 40, "name": "std_change_producer_version_value", "comment": null}, "sys_created_on": {"type": "TIMESTAMP", "index": 41, "name": "sys_created_on", "comment": null}, "sys_updated_on": {"type": "TIMESTAMP", "index": 42, "name": "sys_updated_on", "comment": null}, "test_plan": {"type": "STRING", "index": 43, "name": "test_plan", "comment": null}, "type": {"type": "STRING", "index": 44, "name": "type", "comment": null}, "unauthorized": {"type": "BOOL", "index": 45, "name": "unauthorized", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 56289.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.servicenow.servicenow.change_request"}, "source.servicenow.servicenow.task": {"metadata": {"type": "table", "schema": "servicenow", "name": "task", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"sys_id": {"type": "STRING", "index": 1, "name": "sys_id", "comment": null}, "_fivetran_deleted": {"type": "BOOL", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 3, "name": "_fivetran_synced", "comment": null}, "active": {"type": "BOOL", "index": 4, "name": "active", "comment": null}, "activity_due": {"type": "TIMESTAMP", "index": 5, "name": "activity_due", "comment": null}, "additional_assignee_list": {"type": "STRING", "index": 6, "name": "additional_assignee_list", "comment": null}, "approval": {"type": "STRING", "index": 7, "name": "approval", "comment": null}, "approval_history": {"type": "STRING", "index": 8, "name": "approval_history", "comment": null}, "approval_set": {"type": "TIMESTAMP", "index": 9, "name": "approval_set", "comment": null}, "assigned_to_link": {"type": "STRING", "index": 10, "name": "assigned_to_link", "comment": null}, "assigned_to_value": {"type": "STRING", "index": 11, "name": "assigned_to_value", "comment": null}, "assignment_group_link": {"type": "STRING", "index": 12, "name": "assignment_group_link", "comment": null}, "assignment_group_value": {"type": "STRING", "index": 13, "name": "assignment_group_value", "comment": null}, "business_duration": {"type": "TIMESTAMP", "index": 14, "name": "business_duration", "comment": null}, "business_service_link": {"type": "STRING", "index": 15, "name": "business_service_link", "comment": null}, "business_service_value": {"type": "STRING", "index": 16, "name": "business_service_value", "comment": null}, "calendar_duration": {"type": "TIMESTAMP", "index": 17, "name": "calendar_duration", "comment": null}, "close_notes": {"type": "STRING", "index": 18, "name": "close_notes", "comment": null}, "closed_at": {"type": "TIMESTAMP", "index": 19, "name": "closed_at", "comment": null}, "closed_by_link": {"type": "STRING", "index": 20, "name": "closed_by_link", "comment": null}, "closed_by_value": {"type": "STRING", "index": 21, "name": "closed_by_value", "comment": null}, "cmdb_ci_link": {"type": "STRING", "index": 22, "name": "cmdb_ci_link", "comment": null}, "cmdb_ci_value": {"type": "STRING", "index": 23, "name": "cmdb_ci_value", "comment": null}, "comments": {"type": "STRING", "index": 24, "name": "comments", "comment": null}, "comments_and_work_notes": {"type": "STRING", "index": 25, "name": "comments_and_work_notes", "comment": null}, "company_link": {"type": "STRING", "index": 26, "name": "company_link", "comment": null}, "company_value": {"type": "STRING", "index": 27, "name": "company_value", "comment": null}, "contact_type": {"type": "STRING", "index": 28, "name": "contact_type", "comment": null}, "contract_link": {"type": "STRING", "index": 29, "name": "contract_link", "comment": null}, "contract_value": {"type": "STRING", "index": 30, "name": "contract_value", "comment": null}, "correlation_display": {"type": "STRING", "index": 31, "name": "correlation_display", "comment": null}, "correlation_id": {"type": "STRING", "index": 32, "name": "correlation_id", "comment": null}, "delivery_plan_link": {"type": "STRING", "index": 33, "name": "delivery_plan_link", "comment": null}, "delivery_plan_value": {"type": "STRING", "index": 34, "name": "delivery_plan_value", "comment": null}, "delivery_task_link": {"type": "STRING", "index": 35, "name": "delivery_task_link", "comment": null}, "delivery_task_value": {"type": "STRING", "index": 36, "name": "delivery_task_value", "comment": null}, "description": {"type": "STRING", "index": 37, "name": "description", "comment": null}, "due_date": {"type": "TIMESTAMP", "index": 38, "name": "due_date", "comment": null}, "escalation": {"type": "INT64", "index": 39, "name": "escalation", "comment": null}, "expected_start": {"type": "TIMESTAMP", "index": 40, "name": "expected_start", "comment": null}, "follow_up": {"type": "TIMESTAMP", "index": 41, "name": "follow_up", "comment": null}, "group_list": {"type": "STRING", "index": 42, "name": "group_list", "comment": null}, "impact": {"type": "INT64", "index": 43, "name": "impact", "comment": null}, "knowledge": {"type": "BOOL", "index": 44, "name": "knowledge", "comment": null}, "location_link": {"type": "STRING", "index": 45, "name": "location_link", "comment": null}, "location_value": {"type": "STRING", "index": 46, "name": "location_value", "comment": null}, "made_sla": {"type": "BOOL", "index": 47, "name": "made_sla", "comment": null}, "number": {"type": "STRING", "index": 48, "name": "number", "comment": null}, "opened_at": {"type": "TIMESTAMP", "index": 49, "name": "opened_at", "comment": null}, "opened_by_link": {"type": "STRING", "index": 50, "name": "opened_by_link", "comment": null}, "opened_by_value": {"type": "STRING", "index": 51, "name": "opened_by_value", "comment": null}, "order": {"type": "INT64", "index": 52, "name": "order", "comment": null}, "parent_link": {"type": "STRING", "index": 53, "name": "parent_link", "comment": null}, "parent_value": {"type": "STRING", "index": 54, "name": "parent_value", "comment": null}, "priority": {"type": "INT64", "index": 55, "name": "priority", "comment": null}, "reassignment_count": {"type": "INT64", "index": 56, "name": "reassignment_count", "comment": null}, "rejection_goto_link": {"type": "STRING", "index": 57, "name": "rejection_goto_link", "comment": null}, "rejection_goto_value": {"type": "STRING", "index": 58, "name": "rejection_goto_value", "comment": null}, "route_reason": {"type": "INT64", "index": 59, "name": "route_reason", "comment": null}, "service_offering_link": {"type": "STRING", "index": 60, "name": "service_offering_link", "comment": null}, "service_offering_value": {"type": "STRING", "index": 61, "name": "service_offering_value", "comment": null}, "short_description": {"type": "STRING", "index": 62, "name": "short_description", "comment": null}, "sla_due": {"type": "TIMESTAMP", "index": 63, "name": "sla_due", "comment": null}, "state": {"type": "INT64", "index": 64, "name": "state", "comment": null}, "sys_class_name": {"type": "STRING", "index": 65, "name": "sys_class_name", "comment": null}, "sys_created_by": {"type": "STRING", "index": 66, "name": "sys_created_by", "comment": null}, "sys_created_on": {"type": "TIMESTAMP", "index": 67, "name": "sys_created_on", "comment": null}, "sys_domain_link": {"type": "STRING", "index": 68, "name": "sys_domain_link", "comment": null}, "sys_domain_path": {"type": "STRING", "index": 69, "name": "sys_domain_path", "comment": null}, "sys_domain_value": {"type": "STRING", "index": 70, "name": "sys_domain_value", "comment": null}, "sys_mod_count": {"type": "INT64", "index": 71, "name": "sys_mod_count", "comment": null}, "sys_updated_by": {"type": "STRING", "index": 72, "name": "sys_updated_by", "comment": null}, "sys_updated_on": {"type": "TIMESTAMP", "index": 73, "name": "sys_updated_on", "comment": null}, "task_effective_number": {"type": "STRING", "index": 74, "name": "task_effective_number", "comment": null}, "universal_request_link": {"type": "STRING", "index": 75, "name": "universal_request_link", "comment": null}, "universal_request_value": {"type": "STRING", "index": 76, "name": "universal_request_value", "comment": null}, "upon_approval": {"type": "STRING", "index": 77, "name": "upon_approval", "comment": null}, "upon_reject": {"type": "STRING", "index": 78, "name": "upon_reject", "comment": null}, "urgency": {"type": "INT64", "index": 79, "name": "urgency", "comment": null}, "watch_list": {"type": "STRING", "index": 80, "name": "watch_list", "comment": null}, "wf_activity_link": {"type": "STRING", "index": 81, "name": "wf_activity_link", "comment": null}, "wf_activity_value": {"type": "STRING", "index": 82, "name": "wf_activity_value", "comment": null}, "work_end": {"type": "TIMESTAMP", "index": 83, "name": "work_end", "comment": null}, "work_notes": {"type": "STRING", "index": 84, "name": "work_notes", "comment": null}, "work_notes_list": {"type": "STRING", "index": 85, "name": "work_notes_list", "comment": null}, "work_start": {"type": "TIMESTAMP", "index": 86, "name": "work_start", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1190895.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 1583.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.servicenow.servicenow.task"}, "source.servicenow.servicenow.core_company": {"metadata": {"type": "table", "schema": "servicenow", "name": "task", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"sys_id": {"type": "STRING", "index": 1, "name": "sys_id", "comment": null}, "_fivetran_deleted": {"type": "BOOL", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 3, "name": "_fivetran_synced", "comment": null}, "active": {"type": "BOOL", "index": 4, "name": "active", "comment": null}, "activity_due": {"type": "TIMESTAMP", "index": 5, "name": "activity_due", "comment": null}, "additional_assignee_list": {"type": "STRING", "index": 6, "name": "additional_assignee_list", "comment": null}, "approval": {"type": "STRING", "index": 7, "name": "approval", "comment": null}, "approval_history": {"type": "STRING", "index": 8, "name": "approval_history", "comment": null}, "approval_set": {"type": "TIMESTAMP", "index": 9, "name": "approval_set", "comment": null}, "assigned_to_link": {"type": "STRING", "index": 10, "name": "assigned_to_link", "comment": null}, "assigned_to_value": {"type": "STRING", "index": 11, "name": "assigned_to_value", "comment": null}, "assignment_group_link": {"type": "STRING", "index": 12, "name": "assignment_group_link", "comment": null}, "assignment_group_value": {"type": "STRING", "index": 13, "name": "assignment_group_value", "comment": null}, "business_duration": {"type": "TIMESTAMP", "index": 14, "name": "business_duration", "comment": null}, "business_service_link": {"type": "STRING", "index": 15, "name": "business_service_link", "comment": null}, "business_service_value": {"type": "STRING", "index": 16, "name": "business_service_value", "comment": null}, "calendar_duration": {"type": "TIMESTAMP", "index": 17, "name": "calendar_duration", "comment": null}, "close_notes": {"type": "STRING", "index": 18, "name": "close_notes", "comment": null}, "closed_at": {"type": "TIMESTAMP", "index": 19, "name": "closed_at", "comment": null}, "closed_by_link": {"type": "STRING", "index": 20, "name": "closed_by_link", "comment": null}, "closed_by_value": {"type": "STRING", "index": 21, "name": "closed_by_value", "comment": null}, "cmdb_ci_link": {"type": "STRING", "index": 22, "name": "cmdb_ci_link", "comment": null}, "cmdb_ci_value": {"type": "STRING", "index": 23, "name": "cmdb_ci_value", "comment": null}, "comments": {"type": "STRING", "index": 24, "name": "comments", "comment": null}, "comments_and_work_notes": {"type": "STRING", "index": 25, "name": "comments_and_work_notes", "comment": null}, "company_link": {"type": "STRING", "index": 26, "name": "company_link", "comment": null}, "company_value": {"type": "STRING", "index": 27, "name": "company_value", "comment": null}, "contact_type": {"type": "STRING", "index": 28, "name": "contact_type", "comment": null}, "contract_link": {"type": "STRING", "index": 29, "name": "contract_link", "comment": null}, "contract_value": {"type": "STRING", "index": 30, "name": "contract_value", "comment": null}, "correlation_display": {"type": "STRING", "index": 31, "name": "correlation_display", "comment": null}, "correlation_id": {"type": "STRING", "index": 32, "name": "correlation_id", "comment": null}, "delivery_plan_link": {"type": "STRING", "index": 33, "name": "delivery_plan_link", "comment": null}, "delivery_plan_value": {"type": "STRING", "index": 34, "name": "delivery_plan_value", "comment": null}, "delivery_task_link": {"type": "STRING", "index": 35, "name": "delivery_task_link", "comment": null}, "delivery_task_value": {"type": "STRING", "index": 36, "name": "delivery_task_value", "comment": null}, "description": {"type": "STRING", "index": 37, "name": "description", "comment": null}, "due_date": {"type": "TIMESTAMP", "index": 38, "name": "due_date", "comment": null}, "escalation": {"type": "INT64", "index": 39, "name": "escalation", "comment": null}, "expected_start": {"type": "TIMESTAMP", "index": 40, "name": "expected_start", "comment": null}, "follow_up": {"type": "TIMESTAMP", "index": 41, "name": "follow_up", "comment": null}, "group_list": {"type": "STRING", "index": 42, "name": "group_list", "comment": null}, "impact": {"type": "INT64", "index": 43, "name": "impact", "comment": null}, "knowledge": {"type": "BOOL", "index": 44, "name": "knowledge", "comment": null}, "location_link": {"type": "STRING", "index": 45, "name": "location_link", "comment": null}, "location_value": {"type": "STRING", "index": 46, "name": "location_value", "comment": null}, "made_sla": {"type": "BOOL", "index": 47, "name": "made_sla", "comment": null}, "number": {"type": "STRING", "index": 48, "name": "number", "comment": null}, "opened_at": {"type": "TIMESTAMP", "index": 49, "name": "opened_at", "comment": null}, "opened_by_link": {"type": "STRING", "index": 50, "name": "opened_by_link", "comment": null}, "opened_by_value": {"type": "STRING", "index": 51, "name": "opened_by_value", "comment": null}, "order": {"type": "INT64", "index": 52, "name": "order", "comment": null}, "parent_link": {"type": "STRING", "index": 53, "name": "parent_link", "comment": null}, "parent_value": {"type": "STRING", "index": 54, "name": "parent_value", "comment": null}, "priority": {"type": "INT64", "index": 55, "name": "priority", "comment": null}, "reassignment_count": {"type": "INT64", "index": 56, "name": "reassignment_count", "comment": null}, "rejection_goto_link": {"type": "STRING", "index": 57, "name": "rejection_goto_link", "comment": null}, "rejection_goto_value": {"type": "STRING", "index": 58, "name": "rejection_goto_value", "comment": null}, "route_reason": {"type": "INT64", "index": 59, "name": "route_reason", "comment": null}, "service_offering_link": {"type": "STRING", "index": 60, "name": "service_offering_link", "comment": null}, "service_offering_value": {"type": "STRING", "index": 61, "name": "service_offering_value", "comment": null}, "short_description": {"type": "STRING", "index": 62, "name": "short_description", "comment": null}, "sla_due": {"type": "TIMESTAMP", "index": 63, "name": "sla_due", "comment": null}, "state": {"type": "INT64", "index": 64, "name": "state", "comment": null}, "sys_class_name": {"type": "STRING", "index": 65, "name": "sys_class_name", "comment": null}, "sys_created_by": {"type": "STRING", "index": 66, "name": "sys_created_by", "comment": null}, "sys_created_on": {"type": "TIMESTAMP", "index": 67, "name": "sys_created_on", "comment": null}, "sys_domain_link": {"type": "STRING", "index": 68, "name": "sys_domain_link", "comment": null}, "sys_domain_path": {"type": "STRING", "index": 69, "name": "sys_domain_path", "comment": null}, "sys_domain_value": {"type": "STRING", "index": 70, "name": "sys_domain_value", "comment": null}, "sys_mod_count": {"type": "INT64", "index": 71, "name": "sys_mod_count", "comment": null}, "sys_updated_by": {"type": "STRING", "index": 72, "name": "sys_updated_by", "comment": null}, "sys_updated_on": {"type": "TIMESTAMP", "index": 73, "name": "sys_updated_on", "comment": null}, "task_effective_number": {"type": "STRING", "index": 74, "name": "task_effective_number", "comment": null}, "universal_request_link": {"type": "STRING", "index": 75, "name": "universal_request_link", "comment": null}, "universal_request_value": {"type": "STRING", "index": 76, "name": "universal_request_value", "comment": null}, "upon_approval": {"type": "STRING", "index": 77, "name": "upon_approval", "comment": null}, "upon_reject": {"type": "STRING", "index": 78, "name": "upon_reject", "comment": null}, "urgency": {"type": "INT64", "index": 79, "name": "urgency", "comment": null}, "watch_list": {"type": "STRING", "index": 80, "name": "watch_list", "comment": null}, "wf_activity_link": {"type": "STRING", "index": 81, "name": "wf_activity_link", "comment": null}, "wf_activity_value": {"type": "STRING", "index": 82, "name": "wf_activity_value", "comment": null}, "work_end": {"type": "TIMESTAMP", "index": 83, "name": "work_end", "comment": null}, "work_notes": {"type": "STRING", "index": 84, "name": "work_notes", "comment": null}, "work_notes_list": {"type": "STRING", "index": 85, "name": "work_notes_list", "comment": null}, "work_start": {"type": "TIMESTAMP", "index": 86, "name": "work_start", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1190895.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 1583.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.servicenow.servicenow.core_company"}, "source.servicenow.servicenow.cmdb_ci": {"metadata": {"type": "table", "schema": "servicenow", "name": "cmdb_ci", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"sys_id": {"type": "STRING", "index": 1, "name": "sys_id", "comment": null}, "_fivetran_deleted": {"type": "BOOL", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 3, "name": "_fivetran_synced", "comment": null}, "asset_link": {"type": "STRING", "index": 4, "name": "asset_link", "comment": null}, "asset_tag": {"type": "STRING", "index": 5, "name": "asset_tag", "comment": null}, "asset_value": {"type": "STRING", "index": 6, "name": "asset_value", "comment": null}, "assigned": {"type": "TIMESTAMP", "index": 7, "name": "assigned", "comment": null}, "assigned_to_link": {"type": "STRING", "index": 8, "name": "assigned_to_link", "comment": null}, "assigned_to_value": {"type": "STRING", "index": 9, "name": "assigned_to_value", "comment": null}, "assignment_group_link": {"type": "STRING", "index": 10, "name": "assignment_group_link", "comment": null}, "assignment_group_value": {"type": "STRING", "index": 11, "name": "assignment_group_value", "comment": null}, "attestation_score": {"type": "INT64", "index": 12, "name": "attestation_score", "comment": null}, "attestation_status": {"type": "STRING", "index": 13, "name": "attestation_status", "comment": null}, "attested": {"type": "BOOL", "index": 14, "name": "attested", "comment": null}, "attested_by_link": {"type": "STRING", "index": 15, "name": "attested_by_link", "comment": null}, "attested_by_value": {"type": "STRING", "index": 16, "name": "attested_by_value", "comment": null}, "attested_date": {"type": "TIMESTAMP", "index": 17, "name": "attested_date", "comment": null}, "attributes": {"type": "STRING", "index": 18, "name": "attributes", "comment": null}, "business_unit_link": {"type": "STRING", "index": 19, "name": "business_unit_link", "comment": null}, "business_unit_value": {"type": "STRING", "index": 20, "name": "business_unit_value", "comment": null}, "can_print": {"type": "BOOL", "index": 21, "name": "can_print", "comment": null}, "category": {"type": "STRING", "index": 22, "name": "category", "comment": null}, "change_control_link": {"type": "STRING", "index": 23, "name": "change_control_link", "comment": null}, "change_control_value": {"type": "STRING", "index": 24, "name": "change_control_value", "comment": null}, "checked_in": {"type": "TIMESTAMP", "index": 25, "name": "checked_in", "comment": null}, "checked_out": {"type": "TIMESTAMP", "index": 26, "name": "checked_out", "comment": null}, "comments": {"type": "STRING", "index": 27, "name": "comments", "comment": null}, "company_link": {"type": "STRING", "index": 28, "name": "company_link", "comment": null}, "company_value": {"type": "STRING", "index": 29, "name": "company_value", "comment": null}, "correlation_id": {"type": "STRING", "index": 30, "name": "correlation_id", "comment": null}, "cost": {"type": "FLOAT64", "index": 31, "name": "cost", "comment": null}, "cost_cc": {"type": "STRING", "index": 32, "name": "cost_cc", "comment": null}, "cost_center_link": {"type": "STRING", "index": 33, "name": "cost_center_link", "comment": null}, "cost_center_value": {"type": "STRING", "index": 34, "name": "cost_center_value", "comment": null}, "delivery_date": {"type": "TIMESTAMP", "index": 35, "name": "delivery_date", "comment": null}, "department_link": {"type": "STRING", "index": 36, "name": "department_link", "comment": null}, "department_value": {"type": "STRING", "index": 37, "name": "department_value", "comment": null}, "discovery_source": {"type": "STRING", "index": 38, "name": "discovery_source", "comment": null}, "dns_domain": {"type": "STRING", "index": 39, "name": "dns_domain", "comment": null}, "due": {"type": "TIMESTAMP", "index": 40, "name": "due", "comment": null}, "due_in": {"type": "STRING", "index": 41, "name": "due_in", "comment": null}, "duplicate_of_link": {"type": "STRING", "index": 42, "name": "duplicate_of_link", "comment": null}, "duplicate_of_value": {"type": "STRING", "index": 43, "name": "duplicate_of_value", "comment": null}, "environment": {"type": "STRING", "index": 44, "name": "environment", "comment": null}, "fault_count": {"type": "INT64", "index": 45, "name": "fault_count", "comment": null}, "first_discovered": {"type": "TIMESTAMP", "index": 46, "name": "first_discovered", "comment": null}, "fqdn": {"type": "STRING", "index": 47, "name": "fqdn", "comment": null}, "gl_account": {"type": "STRING", "index": 48, "name": "gl_account", "comment": null}, "install_date": {"type": "TIMESTAMP", "index": 49, "name": "install_date", "comment": null}, "install_status": {"type": "INT64", "index": 50, "name": "install_status", "comment": null}, "invoice_number": {"type": "STRING", "index": 51, "name": "invoice_number", "comment": null}, "ip_address": {"type": "STRING", "index": 52, "name": "ip_address", "comment": null}, "justification": {"type": "STRING", "index": 53, "name": "justification", "comment": null}, "last_discovered": {"type": "TIMESTAMP", "index": 54, "name": "last_discovered", "comment": null}, "lease_id": {"type": "STRING", "index": 55, "name": "lease_id", "comment": null}, "life_cycle_stage_link": {"type": "STRING", "index": 56, "name": "life_cycle_stage_link", "comment": null}, "life_cycle_stage_status_link": {"type": "STRING", "index": 57, "name": "life_cycle_stage_status_link", "comment": null}, "life_cycle_stage_status_value": {"type": "STRING", "index": 58, "name": "life_cycle_stage_status_value", "comment": null}, "life_cycle_stage_value": {"type": "STRING", "index": 59, "name": "life_cycle_stage_value", "comment": null}, "location_link": {"type": "STRING", "index": 60, "name": "location_link", "comment": null}, "location_value": {"type": "STRING", "index": 61, "name": "location_value", "comment": null}, "mac_address": {"type": "STRING", "index": 62, "name": "mac_address", "comment": null}, "maintenance_schedule_link": {"type": "STRING", "index": 63, "name": "maintenance_schedule_link", "comment": null}, "maintenance_schedule_value": {"type": "STRING", "index": 64, "name": "maintenance_schedule_value", "comment": null}, "managed_by_group_link": {"type": "STRING", "index": 65, "name": "managed_by_group_link", "comment": null}, "managed_by_group_value": {"type": "STRING", "index": 66, "name": "managed_by_group_value", "comment": null}, "managed_by_link": {"type": "STRING", "index": 67, "name": "managed_by_link", "comment": null}, "managed_by_value": {"type": "STRING", "index": 68, "name": "managed_by_value", "comment": null}, "manufacturer_link": {"type": "STRING", "index": 69, "name": "manufacturer_link", "comment": null}, "manufacturer_value": {"type": "STRING", "index": 70, "name": "manufacturer_value", "comment": null}, "model_id_link": {"type": "STRING", "index": 71, "name": "model_id_link", "comment": null}, "model_id_value": {"type": "STRING", "index": 72, "name": "model_id_value", "comment": null}, "model_number": {"type": "STRING", "index": 73, "name": "model_number", "comment": null}, "monitor": {"type": "BOOL", "index": 74, "name": "monitor", "comment": null}, "name": {"type": "STRING", "index": 75, "name": "name", "comment": null}, "operational_status": {"type": "INT64", "index": 76, "name": "operational_status", "comment": null}, "order_date": {"type": "TIMESTAMP", "index": 77, "name": "order_date", "comment": null}, "owned_by_link": {"type": "STRING", "index": 78, "name": "owned_by_link", "comment": null}, "owned_by_value": {"type": "STRING", "index": 79, "name": "owned_by_value", "comment": null}, "po_number": {"type": "STRING", "index": 80, "name": "po_number", "comment": null}, "purchase_date": {"type": "DATE", "index": 81, "name": "purchase_date", "comment": null}, "schedule_link": {"type": "STRING", "index": 82, "name": "schedule_link", "comment": null}, "schedule_value": {"type": "STRING", "index": 83, "name": "schedule_value", "comment": null}, "serial_number": {"type": "STRING", "index": 84, "name": "serial_number", "comment": null}, "short_description": {"type": "STRING", "index": 85, "name": "short_description", "comment": null}, "skip_sync": {"type": "BOOL", "index": 86, "name": "skip_sync", "comment": null}, "start_date": {"type": "TIMESTAMP", "index": 87, "name": "start_date", "comment": null}, "subcategory": {"type": "STRING", "index": 88, "name": "subcategory", "comment": null}, "support_group_link": {"type": "STRING", "index": 89, "name": "support_group_link", "comment": null}, "support_group_value": {"type": "STRING", "index": 90, "name": "support_group_value", "comment": null}, "supported_by_link": {"type": "STRING", "index": 91, "name": "supported_by_link", "comment": null}, "supported_by_value": {"type": "STRING", "index": 92, "name": "supported_by_value", "comment": null}, "sys_class_name": {"type": "STRING", "index": 93, "name": "sys_class_name", "comment": null}, "sys_class_path": {"type": "STRING", "index": 94, "name": "sys_class_path", "comment": null}, "sys_created_by": {"type": "STRING", "index": 95, "name": "sys_created_by", "comment": null}, "sys_created_on": {"type": "TIMESTAMP", "index": 96, "name": "sys_created_on", "comment": null}, "sys_domain_link": {"type": "STRING", "index": 97, "name": "sys_domain_link", "comment": null}, "sys_domain_path": {"type": "STRING", "index": 98, "name": "sys_domain_path", "comment": null}, "sys_domain_value": {"type": "STRING", "index": 99, "name": "sys_domain_value", "comment": null}, "sys_mod_count": {"type": "INT64", "index": 100, "name": "sys_mod_count", "comment": null}, "sys_updated_by": {"type": "STRING", "index": 101, "name": "sys_updated_by", "comment": null}, "sys_updated_on": {"type": "TIMESTAMP", "index": 102, "name": "sys_updated_on", "comment": null}, "unverified": {"type": "BOOL", "index": 103, "name": "unverified", "comment": null}, "vendor_link": {"type": "STRING", "index": 104, "name": "vendor_link", "comment": null}, "vendor_value": {"type": "STRING", "index": 105, "name": "vendor_value", "comment": null}, "warranty_expiration": {"type": "DATE", "index": 106, "name": "warranty_expiration", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 2085696.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 2785.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.servicenow.servicenow.cmdb_ci"}, "source.servicenow.servicenow.problem": {"metadata": {"type": "table", "schema": "servicenow", "name": "problem", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"sys_id": {"type": "STRING", "index": 1, "name": "sys_id", "comment": null}, "_fivetran_deleted": {"type": "BOOL", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 3, "name": "_fivetran_synced", "comment": null}, "category": {"type": "STRING", "index": 4, "name": "category", "comment": null}, "cause_notes": {"type": "STRING", "index": 5, "name": "cause_notes", "comment": null}, "confirmed_at": {"type": "TIMESTAMP", "index": 6, "name": "confirmed_at", "comment": null}, "confirmed_by_link": {"type": "STRING", "index": 7, "name": "confirmed_by_link", "comment": null}, "confirmed_by_value": {"type": "STRING", "index": 8, "name": "confirmed_by_value", "comment": null}, "duplicate_of_link": {"type": "STRING", "index": 9, "name": "duplicate_of_link", "comment": null}, "duplicate_of_value": {"type": "STRING", "index": 10, "name": "duplicate_of_value", "comment": null}, "first_reported_by_task_link": {"type": "STRING", "index": 11, "name": "first_reported_by_task_link", "comment": null}, "first_reported_by_task_value": {"type": "STRING", "index": 12, "name": "first_reported_by_task_value", "comment": null}, "fix_at": {"type": "TIMESTAMP", "index": 13, "name": "fix_at", "comment": null}, "fix_by_link": {"type": "STRING", "index": 14, "name": "fix_by_link", "comment": null}, "fix_by_value": {"type": "STRING", "index": 15, "name": "fix_by_value", "comment": null}, "fix_communicated_at": {"type": "TIMESTAMP", "index": 16, "name": "fix_communicated_at", "comment": null}, "fix_communicated_by_link": {"type": "STRING", "index": 17, "name": "fix_communicated_by_link", "comment": null}, "fix_communicated_by_value": {"type": "STRING", "index": 18, "name": "fix_communicated_by_value", "comment": null}, "fix_notes": {"type": "STRING", "index": 19, "name": "fix_notes", "comment": null}, "known_error": {"type": "BOOL", "index": 20, "name": "known_error", "comment": null}, "major_problem": {"type": "BOOL", "index": 21, "name": "major_problem", "comment": null}, "problem_state": {"type": "INT64", "index": 22, "name": "problem_state", "comment": null}, "related_incidents": {"type": "INT64", "index": 23, "name": "related_incidents", "comment": null}, "reopen_count": {"type": "INT64", "index": 24, "name": "reopen_count", "comment": null}, "reopened_at": {"type": "TIMESTAMP", "index": 25, "name": "reopened_at", "comment": null}, "reopened_by_link": {"type": "STRING", "index": 26, "name": "reopened_by_link", "comment": null}, "reopened_by_value": {"type": "STRING", "index": 27, "name": "reopened_by_value", "comment": null}, "resolution_code": {"type": "STRING", "index": 28, "name": "resolution_code", "comment": null}, "resolved_at": {"type": "TIMESTAMP", "index": 29, "name": "resolved_at", "comment": null}, "resolved_by_link": {"type": "STRING", "index": 30, "name": "resolved_by_link", "comment": null}, "resolved_by_value": {"type": "STRING", "index": 31, "name": "resolved_by_value", "comment": null}, "review_outcome": {"type": "STRING", "index": 32, "name": "review_outcome", "comment": null}, "rfc_link": {"type": "STRING", "index": 33, "name": "rfc_link", "comment": null}, "rfc_value": {"type": "STRING", "index": 34, "name": "rfc_value", "comment": null}, "subcategory": {"type": "STRING", "index": 35, "name": "subcategory", "comment": null}, "sys_created_on": {"type": "TIMESTAMP", "index": 36, "name": "sys_created_on", "comment": null}, "sys_updated_on": {"type": "TIMESTAMP", "index": 37, "name": "sys_updated_on", "comment": null}, "workaround": {"type": "STRING", "index": 38, "name": "workaround", "comment": null}, "workaround_applied": {"type": "BOOL", "index": 39, "name": "workaround_applied", "comment": null}, "workaround_communicated_at": {"type": "TIMESTAMP", "index": 40, "name": "workaround_communicated_at", "comment": null}, "workaround_communicated_by_link": {"type": "STRING", "index": 41, "name": "workaround_communicated_by_link", "comment": null}, "workaround_communicated_by_value": {"type": "STRING", "index": 42, "name": "workaround_communicated_by_value", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 7266.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 24.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.servicenow.servicenow.problem"}, "source.servicenow.servicenow.problem_task": {"metadata": {"type": "table", "schema": "servicenow", "name": "problem_task", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"sys_id": {"type": "STRING", "index": 1, "name": "sys_id", "comment": null}, "_fivetran_deleted": {"type": "BOOL", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 3, "name": "_fivetran_synced", "comment": null}, "cause_code": {"type": "STRING", "index": 4, "name": "cause_code", "comment": null}, "close_code": {"type": "STRING", "index": 5, "name": "close_code", "comment": null}, "other_reason": {"type": "STRING", "index": 6, "name": "other_reason", "comment": null}, "problem_link": {"type": "STRING", "index": 7, "name": "problem_link", "comment": null}, "problem_task_type": {"type": "STRING", "index": 8, "name": "problem_task_type", "comment": null}, "problem_value": {"type": "STRING", "index": 9, "name": "problem_value", "comment": null}, "reopen_count": {"type": "INT64", "index": 10, "name": "reopen_count", "comment": null}, "reopened_at": {"type": "TIMESTAMP", "index": 11, "name": "reopened_at", "comment": null}, "reopened_by_link": {"type": "STRING", "index": 12, "name": "reopened_by_link", "comment": null}, "reopened_by_value": {"type": "STRING", "index": 13, "name": "reopened_by_value", "comment": null}, "started_at": {"type": "TIMESTAMP", "index": 14, "name": "started_at", "comment": null}, "started_by_link": {"type": "STRING", "index": 15, "name": "started_by_link", "comment": null}, "started_by_value": {"type": "STRING", "index": 16, "name": "started_by_value", "comment": null}, "sys_created_on": {"type": "TIMESTAMP", "index": 17, "name": "sys_created_on", "comment": null}, "sys_updated_on": {"type": "TIMESTAMP", "index": 18, "name": "sys_updated_on", "comment": null}, "vendor_link": {"type": "STRING", "index": 19, "name": "vendor_link", "comment": null}, "vendor_value": {"type": "STRING", "index": 20, "name": "vendor_value", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 477.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 1.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.servicenow.servicenow.problem_task"}, "source.servicenow.servicenow.sys_user": {"metadata": {"type": "table", "schema": "servicenow", "name": "sys_user", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"sys_id": {"type": "STRING", "index": 1, "name": "sys_id", "comment": null}, "_fivetran_deleted": {"type": "BOOL", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 3, "name": "_fivetran_synced", "comment": null}, "accumulated_roles": {"type": "STRING", "index": 4, "name": "accumulated_roles", "comment": null}, "active": {"type": "BOOL", "index": 5, "name": "active", "comment": null}, "avatar": {"type": "STRING", "index": 6, "name": "avatar", "comment": null}, "building_link": {"type": "STRING", "index": 7, "name": "building_link", "comment": null}, "building_value": {"type": "STRING", "index": 8, "name": "building_value", "comment": null}, "calendar_integration": {"type": "INT64", "index": 9, "name": "calendar_integration", "comment": null}, "city": {"type": "STRING", "index": 10, "name": "city", "comment": null}, "company_link": {"type": "STRING", "index": 11, "name": "company_link", "comment": null}, "company_value": {"type": "STRING", "index": 12, "name": "company_value", "comment": null}, "cost_center_link": {"type": "STRING", "index": 13, "name": "cost_center_link", "comment": null}, "cost_center_value": {"type": "STRING", "index": 14, "name": "cost_center_value", "comment": null}, "country": {"type": "STRING", "index": 15, "name": "country", "comment": null}, "date_format": {"type": "STRING", "index": 16, "name": "date_format", "comment": null}, "default_perspective_link": {"type": "STRING", "index": 17, "name": "default_perspective_link", "comment": null}, "default_perspective_value": {"type": "STRING", "index": 18, "name": "default_perspective_value", "comment": null}, "department_link": {"type": "STRING", "index": 19, "name": "department_link", "comment": null}, "department_value": {"type": "STRING", "index": 20, "name": "department_value", "comment": null}, "edu_status": {"type": "STRING", "index": 21, "name": "edu_status", "comment": null}, "email": {"type": "STRING", "index": 22, "name": "email", "comment": null}, "employee_number": {"type": "STRING", "index": 23, "name": "employee_number", "comment": null}, "enable_multifactor_authn": {"type": "BOOL", "index": 24, "name": "enable_multifactor_authn", "comment": null}, "failed_attempts": {"type": "INT64", "index": 25, "name": "failed_attempts", "comment": null}, "first_name": {"type": "STRING", "index": 26, "name": "first_name", "comment": null}, "gender": {"type": "STRING", "index": 27, "name": "gender", "comment": null}, "hashed_user_id": {"type": "STRING", "index": 28, "name": "hashed_user_id", "comment": null}, "home_phone": {"type": "STRING", "index": 29, "name": "home_phone", "comment": null}, "internal_integration_user": {"type": "BOOL", "index": 30, "name": "internal_integration_user", "comment": null}, "introduction": {"type": "STRING", "index": 31, "name": "introduction", "comment": null}, "last_login": {"type": "DATE", "index": 32, "name": "last_login", "comment": null}, "last_login_device": {"type": "STRING", "index": 33, "name": "last_login_device", "comment": null}, "last_login_time": {"type": "TIMESTAMP", "index": 34, "name": "last_login_time", "comment": null}, "last_name": {"type": "STRING", "index": 35, "name": "last_name", "comment": null}, "last_password": {"type": "STRING", "index": 36, "name": "last_password", "comment": null}, "ldap_server_link": {"type": "STRING", "index": 37, "name": "ldap_server_link", "comment": null}, "ldap_server_value": {"type": "STRING", "index": 38, "name": "ldap_server_value", "comment": null}, "location_link": {"type": "STRING", "index": 39, "name": "location_link", "comment": null}, "location_value": {"type": "STRING", "index": 40, "name": "location_value", "comment": null}, "locked_out": {"type": "BOOL", "index": 41, "name": "locked_out", "comment": null}, "manager_link": {"type": "STRING", "index": 42, "name": "manager_link", "comment": null}, "manager_value": {"type": "STRING", "index": 43, "name": "manager_value", "comment": null}, "middle_name": {"type": "STRING", "index": 44, "name": "middle_name", "comment": null}, "mobile_phone": {"type": "STRING", "index": 45, "name": "mobile_phone", "comment": null}, "name": {"type": "STRING", "index": 46, "name": "name", "comment": null}, "notification": {"type": "INT64", "index": 47, "name": "notification", "comment": null}, "password_needs_reset": {"type": "BOOL", "index": 48, "name": "password_needs_reset", "comment": null}, "phone": {"type": "STRING", "index": 49, "name": "phone", "comment": null}, "photo": {"type": "STRING", "index": 50, "name": "photo", "comment": null}, "preferred_language": {"type": "STRING", "index": 51, "name": "preferred_language", "comment": null}, "roles": {"type": "STRING", "index": 52, "name": "roles", "comment": null}, "schedule_link": {"type": "STRING", "index": 53, "name": "schedule_link", "comment": null}, "schedule_value": {"type": "STRING", "index": 54, "name": "schedule_value", "comment": null}, "source": {"type": "STRING", "index": 55, "name": "source", "comment": null}, "state": {"type": "STRING", "index": 56, "name": "state", "comment": null}, "sys_class_name": {"type": "STRING", "index": 57, "name": "sys_class_name", "comment": null}, "sys_created_by": {"type": "STRING", "index": 58, "name": "sys_created_by", "comment": null}, "sys_created_on": {"type": "TIMESTAMP", "index": 59, "name": "sys_created_on", "comment": null}, "sys_domain_link": {"type": "STRING", "index": 60, "name": "sys_domain_link", "comment": null}, "sys_domain_path": {"type": "STRING", "index": 61, "name": "sys_domain_path", "comment": null}, "sys_domain_value": {"type": "STRING", "index": 62, "name": "sys_domain_value", "comment": null}, "sys_mod_count": {"type": "INT64", "index": 63, "name": "sys_mod_count", "comment": null}, "sys_updated_by": {"type": "STRING", "index": 64, "name": "sys_updated_by", "comment": null}, "sys_updated_on": {"type": "TIMESTAMP", "index": 65, "name": "sys_updated_on", "comment": null}, "time_format": {"type": "STRING", "index": 66, "name": "time_format", "comment": null}, "time_zone": {"type": "STRING", "index": 67, "name": "time_zone", "comment": null}, "title": {"type": "STRING", "index": 68, "name": "title", "comment": null}, "user_name": {"type": "STRING", "index": 69, "name": "user_name", "comment": null}, "user_password": {"type": "STRING", "index": 70, "name": "user_password", "comment": null}, "vip": {"type": "BOOL", "index": 71, "name": "vip", "comment": null}, "web_service_access_only": {"type": "BOOL", "index": 72, "name": "web_service_access_only", "comment": null}, "zip": {"type": "STRING", "index": 73, "name": "zip", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 520960.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 625.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.servicenow.servicenow.sys_user"}, "source.servicenow.servicenow.sys_user_group": {"metadata": {"type": "table", "schema": "servicenow", "name": "sys_user_group", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"sys_id": {"type": "STRING", "index": 1, "name": "sys_id", "comment": null}, "_fivetran_deleted": {"type": "BOOL", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 3, "name": "_fivetran_synced", "comment": null}, "active": {"type": "BOOL", "index": 4, "name": "active", "comment": null}, "cost_center_link": {"type": "STRING", "index": 5, "name": "cost_center_link", "comment": null}, "cost_center_value": {"type": "STRING", "index": 6, "name": "cost_center_value", "comment": null}, "default_assignee_link": {"type": "STRING", "index": 7, "name": "default_assignee_link", "comment": null}, "default_assignee_value": {"type": "STRING", "index": 8, "name": "default_assignee_value", "comment": null}, "description": {"type": "STRING", "index": 9, "name": "description", "comment": null}, "email": {"type": "STRING", "index": 10, "name": "email", "comment": null}, "exclude_manager": {"type": "BOOL", "index": 11, "name": "exclude_manager", "comment": null}, "include_members": {"type": "BOOL", "index": 12, "name": "include_members", "comment": null}, "manager_link": {"type": "STRING", "index": 13, "name": "manager_link", "comment": null}, "manager_value": {"type": "STRING", "index": 14, "name": "manager_value", "comment": null}, "name": {"type": "STRING", "index": 15, "name": "name", "comment": null}, "parent_link": {"type": "STRING", "index": 16, "name": "parent_link", "comment": null}, "parent_value": {"type": "STRING", "index": 17, "name": "parent_value", "comment": null}, "roles": {"type": "STRING", "index": 18, "name": "roles", "comment": null}, "source": {"type": "STRING", "index": 19, "name": "source", "comment": null}, "sys_created_by": {"type": "STRING", "index": 20, "name": "sys_created_by", "comment": null}, "sys_created_on": {"type": "TIMESTAMP", "index": 21, "name": "sys_created_on", "comment": null}, "sys_mod_count": {"type": "INT64", "index": 22, "name": "sys_mod_count", "comment": null}, "sys_updated_by": {"type": "STRING", "index": 23, "name": "sys_updated_by", "comment": null}, "sys_updated_on": {"type": "TIMESTAMP", "index": 24, "name": "sys_updated_on", "comment": null}, "type": {"type": "STRING", "index": 25, "name": "type", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 8887.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 46.0, "include": true, "description": "Approximate count of rows in this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.servicenow.servicenow.sys_user_group"}}, "errors": null} \ No newline at end of file diff --git a/docs/index.html b/docs/index.html index ca1e6f8..2bcc794 100644 --- a/docs/index.html +++ b/docs/index.html @@ -64,7 +64,7 @@ * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */(function(){var o="Expected a function",a="__lodash_placeholder__",s=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],l="[object Arguments]",c="[object Array]",u="[object Boolean]",d="[object Date]",p="[object Error]",f="[object Function]",h="[object GeneratorFunction]",g="[object Map]",m="[object Number]",v="[object Object]",b="[object RegExp]",y="[object Set]",x="[object String]",w="[object Symbol]",k="[object WeakMap]",A="[object ArrayBuffer]",E="[object DataView]",S="[object Float32Array]",$="[object Float64Array]",C="[object Int8Array]",_="[object Int16Array]",O="[object Int32Array]",T="[object Uint8Array]",j="[object Uint16Array]",P="[object Uint32Array]",D=/\b__p \+= '';/g,R=/\b(__p \+=) '' \+/g,I=/(__e\(.*?\)|\b__t\)) \+\n'';/g,N=/&(?:amp|lt|gt|quot|#39);/g,M=/[&<>"']/g,z=RegExp(N.source),L=RegExp(M.source),B=/<%-([\s\S]+?)%>/g,F=/<%([\s\S]+?)%>/g,q=/<%=([\s\S]+?)%>/g,V=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,U=/^\w*$/,H=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,G=/[\\^$.*+?()[\]{}|]/g,W=RegExp(G.source),Y=/^\s+/,X=/\s/,Z=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Q=/\{\n\/\* \[wrapped with (.+)\] \*/,J=/,? & /,K=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ee=/[()=,{}\[\]\/\s]/,te=/\\(\\)?/g,ne=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,re=/\w*$/,ie=/^[-+]0x[0-9a-f]+$/i,oe=/^0b[01]+$/i,ae=/^\[object .+?Constructor\]$/,se=/^0o[0-7]+$/i,le=/^(?:0|[1-9]\d*)$/,ce=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ue=/($^)/,de=/['\n\r\u2028\u2029\\]/g,pe="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",fe="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",he="[\\ud800-\\udfff]",ge="["+fe+"]",me="["+pe+"]",ve="\\d+",be="[\\u2700-\\u27bf]",ye="[a-z\\xdf-\\xf6\\xf8-\\xff]",xe="[^\\ud800-\\udfff"+fe+ve+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",we="\\ud83c[\\udffb-\\udfff]",ke="[^\\ud800-\\udfff]",Ae="(?:\\ud83c[\\udde6-\\uddff]){2}",Ee="[\\ud800-\\udbff][\\udc00-\\udfff]",Se="[A-Z\\xc0-\\xd6\\xd8-\\xde]",$e="(?:"+ye+"|"+xe+")",Ce="(?:"+Se+"|"+xe+")",_e="(?:"+me+"|"+we+")"+"?",Oe="[\\ufe0e\\ufe0f]?"+_e+("(?:\\u200d(?:"+[ke,Ae,Ee].join("|")+")[\\ufe0e\\ufe0f]?"+_e+")*"),Te="(?:"+[be,Ae,Ee].join("|")+")"+Oe,je="(?:"+[ke+me+"?",me,Ae,Ee,he].join("|")+")",Pe=RegExp("['’]","g"),De=RegExp(me,"g"),Re=RegExp(we+"(?="+we+")|"+je+Oe,"g"),Ie=RegExp([Se+"?"+ye+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[ge,Se,"$"].join("|")+")",Ce+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[ge,Se+$e,"$"].join("|")+")",Se+"?"+$e+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Se+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ve,Te].join("|"),"g"),Ne=RegExp("[\\u200d\\ud800-\\udfff"+pe+"\\ufe0e\\ufe0f]"),Me=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ze=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Le=-1,Be={};Be[S]=Be[$]=Be[C]=Be[_]=Be[O]=Be[T]=Be["[object Uint8ClampedArray]"]=Be[j]=Be[P]=!0,Be[l]=Be[c]=Be[A]=Be[u]=Be[E]=Be[d]=Be[p]=Be[f]=Be[g]=Be[m]=Be[v]=Be[b]=Be[y]=Be[x]=Be[k]=!1;var Fe={};Fe[l]=Fe[c]=Fe[A]=Fe[E]=Fe[u]=Fe[d]=Fe[S]=Fe[$]=Fe[C]=Fe[_]=Fe[O]=Fe[g]=Fe[m]=Fe[v]=Fe[b]=Fe[y]=Fe[x]=Fe[w]=Fe[T]=Fe["[object Uint8ClampedArray]"]=Fe[j]=Fe[P]=!0,Fe[p]=Fe[f]=Fe[k]=!1;var qe={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ve=parseFloat,Ue=parseInt,He="object"==typeof e&&e&&e.Object===Object&&e,Ge="object"==typeof self&&self&&self.Object===Object&&self,We=He||Ge||Function("return this")(),Ye=t&&!t.nodeType&&t,Xe=Ye&&"object"==typeof r&&r&&!r.nodeType&&r,Ze=Xe&&Xe.exports===Ye,Qe=Ze&&He.process,Je=function(){try{var e=Xe&&Xe.require&&Xe.require("util").types;return e||Qe&&Qe.binding&&Qe.binding("util")}catch(e){}}(),Ke=Je&&Je.isArrayBuffer,et=Je&&Je.isDate,tt=Je&&Je.isMap,nt=Je&&Je.isRegExp,rt=Je&&Je.isSet,it=Je&&Je.isTypedArray;function ot(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function at(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i-1}function pt(e,t,n){for(var r=-1,i=null==e?0:e.length;++r-1;);return n}function It(e,t){for(var n=e.length;n--&&wt(t,e[n],0)>-1;);return n}function Nt(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var Mt=$t({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),zt=$t({"&":"&","<":"<",">":">",'"':""","'":"'"});function Lt(e){return"\\"+qe[e]}function Bt(e){return Ne.test(e)}function Ft(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function qt(e,t){return function(n){return e(t(n))}}function Vt(e,t){for(var n=-1,r=e.length,i=0,o=[];++n",""":'"',"'":"'"});var Zt=function e(t){var n,r=(t=null==t?We:Zt.defaults(We.Object(),t,Zt.pick(We,ze))).Array,i=t.Date,X=t.Error,pe=t.Function,fe=t.Math,he=t.Object,ge=t.RegExp,me=t.String,ve=t.TypeError,be=r.prototype,ye=pe.prototype,xe=he.prototype,we=t["__core-js_shared__"],ke=ye.toString,Ae=xe.hasOwnProperty,Ee=0,Se=(n=/[^.]+$/.exec(we&&we.keys&&we.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",$e=xe.toString,Ce=ke.call(he),_e=We._,Oe=ge("^"+ke.call(Ae).replace(G,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Te=Ze?t.Buffer:void 0,je=t.Symbol,Re=t.Uint8Array,Ne=Te?Te.allocUnsafe:void 0,qe=qt(he.getPrototypeOf,he),He=he.create,Ge=xe.propertyIsEnumerable,Ye=be.splice,Xe=je?je.isConcatSpreadable:void 0,Qe=je?je.iterator:void 0,Je=je?je.toStringTag:void 0,bt=function(){try{var e=eo(he,"defineProperty");return e({},"",{}),e}catch(e){}}(),$t=t.clearTimeout!==We.clearTimeout&&t.clearTimeout,Qt=i&&i.now!==We.Date.now&&i.now,Jt=t.setTimeout!==We.setTimeout&&t.setTimeout,Kt=fe.ceil,en=fe.floor,tn=he.getOwnPropertySymbols,nn=Te?Te.isBuffer:void 0,rn=t.isFinite,on=be.join,an=qt(he.keys,he),sn=fe.max,ln=fe.min,cn=i.now,un=t.parseInt,dn=fe.random,pn=be.reverse,fn=eo(t,"DataView"),hn=eo(t,"Map"),gn=eo(t,"Promise"),mn=eo(t,"Set"),vn=eo(t,"WeakMap"),bn=eo(he,"create"),yn=vn&&new vn,xn={},wn=_o(fn),kn=_o(hn),An=_o(gn),En=_o(mn),Sn=_o(vn),$n=je?je.prototype:void 0,Cn=$n?$n.valueOf:void 0,_n=$n?$n.toString:void 0;function On(e){if(Ha(e)&&!Ra(e)&&!(e instanceof Dn)){if(e instanceof Pn)return e;if(Ae.call(e,"__wrapped__"))return Oo(e)}return new Pn(e)}var Tn=function(){function e(){}return function(t){if(!Ua(t))return{};if(He)return He(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function jn(){}function Pn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}function Dn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function Rn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function Qn(e,t,n,r,i,o){var a,s=1&t,c=2&t,p=4&t;if(n&&(a=i?n(e,r,i,o):n(e)),void 0!==a)return a;if(!Ua(e))return e;var k=Ra(e);if(k){if(a=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Ae.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!s)return bi(e,a)}else{var D=ro(e),R=D==f||D==h;if(za(e))return pi(e,s);if(D==v||D==l||R&&!i){if(a=c||R?{}:oo(e),!s)return c?function(e,t){return yi(e,no(e),t)}(e,function(e,t){return e&&yi(t,ks(t),e)}(a,e)):function(e,t){return yi(e,to(e),t)}(e,Wn(a,e))}else{if(!Fe[D])return i?e:{};a=function(e,t,n){var r=e.constructor;switch(t){case A:return fi(e);case u:case d:return new r(+e);case E:return function(e,t){var n=t?fi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case S:case $:case C:case _:case O:case T:case"[object Uint8ClampedArray]":case j:case P:return hi(e,n);case g:return new r;case m:case x:return new r(e);case b:return function(e){var t=new e.constructor(e.source,re.exec(e));return t.lastIndex=e.lastIndex,t}(e);case y:return new r;case w:return i=e,Cn?he(Cn.call(i)):{}}var i}(e,D,s)}}o||(o=new zn);var I=o.get(e);if(I)return I;o.set(e,a),Za(e)?e.forEach((function(r){a.add(Qn(r,t,n,r,e,o))})):Ga(e)&&e.forEach((function(r,i){a.set(i,Qn(r,t,n,i,e,o))}));var N=k?void 0:(p?c?Wi:Gi:c?ks:ws)(e);return st(N||e,(function(r,i){N&&(r=e[i=r]),Un(a,i,Qn(r,t,n,i,e,o))})),a}function Jn(e,t,n){var r=n.length;if(null==e)return!r;for(e=he(e);r--;){var i=n[r],o=t[i],a=e[i];if(void 0===a&&!(i in e)||!o(a))return!1}return!0}function Kn(e,t,n){if("function"!=typeof e)throw new ve(o);return wo((function(){e.apply(void 0,n)}),t)}function er(e,t,n,r){var i=-1,o=dt,a=!0,s=e.length,l=[],c=t.length;if(!s)return l;n&&(t=ft(t,jt(n))),r?(o=pt,a=!1):t.length>=200&&(o=Dt,a=!1,t=new Mn(t));e:for(;++i-1},In.prototype.set=function(e,t){var n=this.__data__,r=Hn(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Nn.prototype.clear=function(){this.size=0,this.__data__={hash:new Rn,map:new(hn||In),string:new Rn}},Nn.prototype.delete=function(e){var t=Ji(this,e).delete(e);return this.size-=t?1:0,t},Nn.prototype.get=function(e){return Ji(this,e).get(e)},Nn.prototype.has=function(e){return Ji(this,e).has(e)},Nn.prototype.set=function(e,t){var n=Ji(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Mn.prototype.add=Mn.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Mn.prototype.has=function(e){return this.__data__.has(e)},zn.prototype.clear=function(){this.__data__=new In,this.size=0},zn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},zn.prototype.get=function(e){return this.__data__.get(e)},zn.prototype.has=function(e){return this.__data__.has(e)},zn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof In){var r=n.__data__;if(!hn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Nn(r)}return n.set(e,t),this.size=n.size,this};var tr=ki(cr),nr=ki(ur,!0);function rr(e,t){var n=!0;return tr(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function ir(e,t,n){for(var r=-1,i=e.length;++r0&&n(s)?t>1?ar(s,t-1,n,r,i):ht(i,s):r||(i[i.length]=s)}return i}var sr=Ai(),lr=Ai(!0);function cr(e,t){return e&&sr(e,t,ws)}function ur(e,t){return e&&lr(e,t,ws)}function dr(e,t){return ut(t,(function(t){return Fa(e[t])}))}function pr(e,t){for(var n=0,r=(t=li(t,e)).length;null!=e&&nt}function mr(e,t){return null!=e&&Ae.call(e,t)}function vr(e,t){return null!=e&&t in he(e)}function br(e,t,n){for(var i=n?pt:dt,o=e[0].length,a=e.length,s=a,l=r(a),c=1/0,u=[];s--;){var d=e[s];s&&t&&(d=ft(d,jt(t))),c=ln(d.length,c),l[s]=!n&&(t||o>=120&&d.length>=120)?new Mn(s&&d):void 0}d=e[0];var p=-1,f=l[0];e:for(;++p=s)return l;var c=n[r];return l*("desc"==c?-1:1)}}return e.index-t.index}(e,t,n)}))}function Rr(e,t,n){for(var r=-1,i=t.length,o={};++r-1;)s!==e&&Ye.call(s,l,1),Ye.call(e,l,1);return e}function Nr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;so(i)?Ye.call(e,i,1):ei(e,i)}}return e}function Mr(e,t){return e+en(dn()*(t-e+1))}function zr(e,t){var n="";if(!e||t<1||t>9007199254740991)return n;do{t%2&&(n+=e),(t=en(t/2))&&(e+=e)}while(t);return n}function Lr(e,t){return ko(mo(e,t,Ws),e+"")}function Br(e){return Bn(Ts(e))}function Fr(e,t){var n=Ts(e);return So(n,Zn(t,0,n.length))}function qr(e,t,n,r){if(!Ua(e))return e;for(var i=-1,o=(t=li(t,e)).length,a=o-1,s=e;null!=s&&++io?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=r(o);++i>>1,a=e[o];null!==a&&!Ja(a)&&(n?a<=t:a=200){var c=t?null:zi(e);if(c)return Ut(c);a=!1,i=Dt,l=new Mn}else l=t?[]:s;e:for(;++r=r?e:Gr(e,t,n)}var di=$t||function(e){return We.clearTimeout(e)};function pi(e,t){if(t)return e.slice();var n=e.length,r=Ne?Ne(n):new e.constructor(n);return e.copy(r),r}function fi(e){var t=new e.constructor(e.byteLength);return new Re(t).set(new Re(e)),t}function hi(e,t){var n=t?fi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function gi(e,t){if(e!==t){var n=void 0!==e,r=null===e,i=e==e,o=Ja(e),a=void 0!==t,s=null===t,l=t==t,c=Ja(t);if(!s&&!c&&!o&&e>t||o&&a&&l&&!s&&!c||r&&a&&l||!n&&l||!i)return 1;if(!r&&!o&&!c&&e1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(i--,o):void 0,a&&lo(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),t=he(t);++r-1?i[o?t[a]:a]:void 0}}function _i(e){return Hi((function(t){var n=t.length,r=n,i=Pn.prototype.thru;for(e&&t.reverse();r--;){var a=t[r];if("function"!=typeof a)throw new ve(o);if(i&&!s&&"wrapper"==Xi(a))var s=new Pn([],!0)}for(r=s?r:n;++r1&&y.reverse(),d&&cs))return!1;var c=o.get(e),u=o.get(t);if(c&&u)return c==t&&u==e;var d=-1,p=!0,f=2&n?new Mn:void 0;for(o.set(e,t),o.set(t,e);++d-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Z,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return st(s,(function(n){var r="_."+n[0];t&n[1]&&!dt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(Q);return t?t[1].split(J):[]}(r),n)))}function Eo(e){var t=0,n=0;return function(){var r=cn(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function So(e,t){var n=-1,r=e.length,i=r-1;for(t=void 0===t?r:t;++n1?e[t-1]:void 0;return n="function"==typeof n?(e.pop(),n):void 0,Xo(e,n)}));function na(e){var t=On(e);return t.__chain__=!0,t}function ra(e,t){return t(e)}var ia=Hi((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return Xn(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Dn&&so(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:ra,args:[i],thisArg:void 0}),new Pn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(void 0),e}))):this.thru(i)}));var oa=xi((function(e,t,n){Ae.call(e,n)?++e[n]:Yn(e,n,1)}));var aa=Ci(Do),sa=Ci(Ro);function la(e,t){return(Ra(e)?st:tr)(e,Qi(t,3))}function ca(e,t){return(Ra(e)?lt:nr)(e,Qi(t,3))}var ua=xi((function(e,t,n){Ae.call(e,n)?e[n].push(t):Yn(e,n,[t])}));var da=Lr((function(e,t,n){var i=-1,o="function"==typeof t,a=Na(e)?r(e.length):[];return tr(e,(function(e){a[++i]=o?ot(t,e,n):yr(e,t,n)})),a})),pa=xi((function(e,t,n){Yn(e,n,t)}));function fa(e,t){return(Ra(e)?ft:_r)(e,Qi(t,3))}var ha=xi((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var ga=Lr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&lo(e,t[0],t[1])?t=[]:n>2&&lo(t[0],t[1],t[2])&&(t=[t[0]]),Dr(e,ar(t,1),[])})),ma=Qt||function(){return We.Date.now()};function va(e,t,n){return t=n?void 0:t,Bi(e,128,void 0,void 0,void 0,void 0,t=e&&null==t?e.length:t)}function ba(e,t){var n;if("function"!=typeof t)throw new ve(o);return e=is(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}var ya=Lr((function(e,t,n){var r=1;if(n.length){var i=Vt(n,Zi(ya));r|=32}return Bi(e,r,t,n,i)})),xa=Lr((function(e,t,n){var r=3;if(n.length){var i=Vt(n,Zi(xa));r|=32}return Bi(t,r,e,n,i)}));function wa(e,t,n){var r,i,a,s,l,c,u=0,d=!1,p=!1,f=!0;if("function"!=typeof e)throw new ve(o);function h(t){var n=r,o=i;return r=i=void 0,u=t,s=e.apply(o,n)}function g(e){return u=e,l=wo(v,t),d?h(e):s}function m(e){var n=e-c;return void 0===c||n>=t||n<0||p&&e-u>=a}function v(){var e=ma();if(m(e))return b(e);l=wo(v,function(e){var n=t-(e-c);return p?ln(n,a-(e-u)):n}(e))}function b(e){return l=void 0,f&&r?h(e):(r=i=void 0,s)}function y(){var e=ma(),n=m(e);if(r=arguments,i=this,c=e,n){if(void 0===l)return g(c);if(p)return di(l),l=wo(v,t),h(c)}return void 0===l&&(l=wo(v,t)),s}return t=as(t)||0,Ua(n)&&(d=!!n.leading,a=(p="maxWait"in n)?sn(as(n.maxWait)||0,t):a,f="trailing"in n?!!n.trailing:f),y.cancel=function(){void 0!==l&&di(l),u=0,r=c=i=l=void 0},y.flush=function(){return void 0===l?s:b(ma())},y}var ka=Lr((function(e,t){return Kn(e,1,t)})),Aa=Lr((function(e,t,n){return Kn(e,as(t)||0,n)}));function Ea(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ve(o);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Ea.Cache||Nn),n}function Sa(e){if("function"!=typeof e)throw new ve(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Ea.Cache=Nn;var $a=ci((function(e,t){var n=(t=1==t.length&&Ra(t[0])?ft(t[0],jt(Qi())):ft(ar(t,1),jt(Qi()))).length;return Lr((function(r){for(var i=-1,o=ln(r.length,n);++i=t})),Da=xr(function(){return arguments}())?xr:function(e){return Ha(e)&&Ae.call(e,"callee")&&!Ge.call(e,"callee")},Ra=r.isArray,Ia=Ke?jt(Ke):function(e){return Ha(e)&&hr(e)==A};function Na(e){return null!=e&&Va(e.length)&&!Fa(e)}function Ma(e){return Ha(e)&&Na(e)}var za=nn||al,La=et?jt(et):function(e){return Ha(e)&&hr(e)==d};function Ba(e){if(!Ha(e))return!1;var t=hr(e);return t==p||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!Ya(e)}function Fa(e){if(!Ua(e))return!1;var t=hr(e);return t==f||t==h||"[object AsyncFunction]"==t||"[object Proxy]"==t}function qa(e){return"number"==typeof e&&e==is(e)}function Va(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function Ua(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ha(e){return null!=e&&"object"==typeof e}var Ga=tt?jt(tt):function(e){return Ha(e)&&ro(e)==g};function Wa(e){return"number"==typeof e||Ha(e)&&hr(e)==m}function Ya(e){if(!Ha(e)||hr(e)!=v)return!1;var t=qe(e);if(null===t)return!0;var n=Ae.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ke.call(n)==Ce}var Xa=nt?jt(nt):function(e){return Ha(e)&&hr(e)==b};var Za=rt?jt(rt):function(e){return Ha(e)&&ro(e)==y};function Qa(e){return"string"==typeof e||!Ra(e)&&Ha(e)&&hr(e)==x}function Ja(e){return"symbol"==typeof e||Ha(e)&&hr(e)==w}var Ka=it?jt(it):function(e){return Ha(e)&&Va(e.length)&&!!Be[hr(e)]};var es=Ii(Cr),ts=Ii((function(e,t){return e<=t}));function ns(e){if(!e)return[];if(Na(e))return Qa(e)?Wt(e):bi(e);if(Qe&&e[Qe])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Qe]());var t=ro(e);return(t==g?Ft:t==y?Ut:Ts)(e)}function rs(e){return e?(e=as(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function is(e){var t=rs(e),n=t%1;return t==t?n?t-n:t:0}function os(e){return e?Zn(is(e),0,4294967295):0}function as(e){if("number"==typeof e)return e;if(Ja(e))return NaN;if(Ua(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Ua(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Tt(e);var n=oe.test(e);return n||se.test(e)?Ue(e.slice(2),n?2:8):ie.test(e)?NaN:+e}function ss(e){return yi(e,ks(e))}function ls(e){return null==e?"":Jr(e)}var cs=wi((function(e,t){if(fo(t)||Na(t))yi(t,ws(t),e);else for(var n in t)Ae.call(t,n)&&Un(e,n,t[n])})),us=wi((function(e,t){yi(t,ks(t),e)})),ds=wi((function(e,t,n,r){yi(t,ks(t),e,r)})),ps=wi((function(e,t,n,r){yi(t,ws(t),e,r)})),fs=Hi(Xn);var hs=Lr((function(e,t){e=he(e);var n=-1,r=t.length,i=r>2?t[2]:void 0;for(i&&lo(t[0],t[1],i)&&(r=1);++n1),t})),yi(e,Wi(e),n),r&&(n=Qn(n,7,Vi));for(var i=t.length;i--;)ei(n,t[i]);return n}));var $s=Hi((function(e,t){return null==e?{}:function(e,t){return Rr(e,t,(function(t,n){return vs(e,n)}))}(e,t)}));function Cs(e,t){if(null==e)return{};var n=ft(Wi(e),(function(e){return[e]}));return t=Qi(t),Rr(e,n,(function(e,n){return t(e,n[0])}))}var _s=Li(ws),Os=Li(ks);function Ts(e){return null==e?[]:Pt(e,ws(e))}var js=Si((function(e,t,n){return t=t.toLowerCase(),e+(n?Ps(t):t)}));function Ps(e){return Bs(ls(e).toLowerCase())}function Ds(e){return(e=ls(e))&&e.replace(ce,Mt).replace(De,"")}var Rs=Si((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Is=Si((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ns=Ei("toLowerCase");var Ms=Si((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var zs=Si((function(e,t,n){return e+(n?" ":"")+Bs(t)}));var Ls=Si((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Bs=Ei("toUpperCase");function Fs(e,t,n){return e=ls(e),void 0===(t=n?void 0:t)?function(e){return Me.test(e)}(e)?function(e){return e.match(Ie)||[]}(e):function(e){return e.match(K)||[]}(e):e.match(t)||[]}var qs=Lr((function(e,t){try{return ot(e,void 0,t)}catch(e){return Ba(e)?e:new X(e)}})),Vs=Hi((function(e,t){return st(t,(function(t){t=Co(t),Yn(e,t,ya(e[t],e))})),e}));function Us(e){return function(){return e}}var Hs=_i(),Gs=_i(!0);function Ws(e){return e}function Ys(e){return Er("function"==typeof e?e:Qn(e,1))}var Xs=Lr((function(e,t){return function(n){return yr(n,e,t)}})),Zs=Lr((function(e,t){return function(n){return yr(e,n,t)}}));function Qs(e,t,n){var r=ws(t),i=dr(t,r);null!=n||Ua(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=dr(t,ws(t)));var o=!(Ua(n)&&"chain"in n&&!n.chain),a=Fa(e);return st(i,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__),i=n.__actions__=bi(this.__actions__);return i.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,ht([this.value()],arguments))})})),e}function Js(){}var Ks=Pi(ft),el=Pi(ct),tl=Pi(vt);function nl(e){return co(e)?St(Co(e)):function(e){return function(t){return pr(t,e)}}(e)}var rl=Ri(),il=Ri(!0);function ol(){return[]}function al(){return!1}var sl=ji((function(e,t){return e+t}),0),ll=Mi("ceil"),cl=ji((function(e,t){return e/t}),1),ul=Mi("floor");var dl,pl=ji((function(e,t){return e*t}),1),fl=Mi("round"),hl=ji((function(e,t){return e-t}),0);return On.after=function(e,t){if("function"!=typeof t)throw new ve(o);return e=is(e),function(){if(--e<1)return t.apply(this,arguments)}},On.ary=va,On.assign=cs,On.assignIn=us,On.assignInWith=ds,On.assignWith=ps,On.at=fs,On.before=ba,On.bind=ya,On.bindAll=Vs,On.bindKey=xa,On.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ra(e)?e:[e]},On.chain=na,On.chunk=function(e,t,n){t=(n?lo(e,t,n):void 0===t)?1:sn(is(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var o=0,a=0,s=r(Kt(i/t));oi?0:i+n),(r=void 0===r||r>i?i:is(r))<0&&(r+=i),r=n>r?0:os(r);n>>0)?(e=ls(e))&&("string"==typeof t||null!=t&&!Xa(t))&&!(t=Jr(t))&&Bt(e)?ui(Wt(e),0,n):e.split(t,n):[]},On.spread=function(e,t){if("function"!=typeof e)throw new ve(o);return t=null==t?0:sn(is(t),0),Lr((function(n){var r=n[t],i=ui(n,0,t);return r&&ht(i,r),ot(e,this,i)}))},On.tail=function(e){var t=null==e?0:e.length;return t?Gr(e,1,t):[]},On.take=function(e,t,n){return e&&e.length?Gr(e,0,(t=n||void 0===t?1:is(t))<0?0:t):[]},On.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?Gr(e,(t=r-(t=n||void 0===t?1:is(t)))<0?0:t,r):[]},On.takeRightWhile=function(e,t){return e&&e.length?ni(e,Qi(t,3),!1,!0):[]},On.takeWhile=function(e,t){return e&&e.length?ni(e,Qi(t,3)):[]},On.tap=function(e,t){return t(e),e},On.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new ve(o);return Ua(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),wa(e,t,{leading:r,maxWait:t,trailing:i})},On.thru=ra,On.toArray=ns,On.toPairs=_s,On.toPairsIn=Os,On.toPath=function(e){return Ra(e)?ft(e,Co):Ja(e)?[e]:bi($o(ls(e)))},On.toPlainObject=ss,On.transform=function(e,t,n){var r=Ra(e),i=r||za(e)||Ka(e);if(t=Qi(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:Ua(e)&&Fa(o)?Tn(qe(e)):{}}return(i?st:cr)(e,(function(e,r,i){return t(n,e,r,i)})),n},On.unary=function(e){return va(e,1)},On.union=Ho,On.unionBy=Go,On.unionWith=Wo,On.uniq=function(e){return e&&e.length?Kr(e):[]},On.uniqBy=function(e,t){return e&&e.length?Kr(e,Qi(t,2)):[]},On.uniqWith=function(e,t){return t="function"==typeof t?t:void 0,e&&e.length?Kr(e,void 0,t):[]},On.unset=function(e,t){return null==e||ei(e,t)},On.unzip=Yo,On.unzipWith=Xo,On.update=function(e,t,n){return null==e?e:ti(e,t,si(n))},On.updateWith=function(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:ti(e,t,si(n),r)},On.values=Ts,On.valuesIn=function(e){return null==e?[]:Pt(e,ks(e))},On.without=Zo,On.words=Fs,On.wrap=function(e,t){return Ca(si(t),e)},On.xor=Qo,On.xorBy=Jo,On.xorWith=Ko,On.zip=ea,On.zipObject=function(e,t){return oi(e||[],t||[],Un)},On.zipObjectDeep=function(e,t){return oi(e||[],t||[],qr)},On.zipWith=ta,On.entries=_s,On.entriesIn=Os,On.extend=us,On.extendWith=ds,Qs(On,On),On.add=sl,On.attempt=qs,On.camelCase=js,On.capitalize=Ps,On.ceil=ll,On.clamp=function(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=as(n))==n?n:0),void 0!==t&&(t=(t=as(t))==t?t:0),Zn(as(e),t,n)},On.clone=function(e){return Qn(e,4)},On.cloneDeep=function(e){return Qn(e,5)},On.cloneDeepWith=function(e,t){return Qn(e,5,t="function"==typeof t?t:void 0)},On.cloneWith=function(e,t){return Qn(e,4,t="function"==typeof t?t:void 0)},On.conformsTo=function(e,t){return null==t||Jn(e,t,ws(t))},On.deburr=Ds,On.defaultTo=function(e,t){return null==e||e!=e?t:e},On.divide=cl,On.endsWith=function(e,t,n){e=ls(e),t=Jr(t);var r=e.length,i=n=void 0===n?r:Zn(is(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},On.eq=Ta,On.escape=function(e){return(e=ls(e))&&L.test(e)?e.replace(M,zt):e},On.escapeRegExp=function(e){return(e=ls(e))&&W.test(e)?e.replace(G,"\\$&"):e},On.every=function(e,t,n){var r=Ra(e)?ct:rr;return n&&lo(e,t,n)&&(t=void 0),r(e,Qi(t,3))},On.find=aa,On.findIndex=Do,On.findKey=function(e,t){return yt(e,Qi(t,3),cr)},On.findLast=sa,On.findLastIndex=Ro,On.findLastKey=function(e,t){return yt(e,Qi(t,3),ur)},On.floor=ul,On.forEach=la,On.forEachRight=ca,On.forIn=function(e,t){return null==e?e:sr(e,Qi(t,3),ks)},On.forInRight=function(e,t){return null==e?e:lr(e,Qi(t,3),ks)},On.forOwn=function(e,t){return e&&cr(e,Qi(t,3))},On.forOwnRight=function(e,t){return e&&ur(e,Qi(t,3))},On.get=ms,On.gt=ja,On.gte=Pa,On.has=function(e,t){return null!=e&&io(e,t,mr)},On.hasIn=vs,On.head=No,On.identity=Ws,On.includes=function(e,t,n,r){e=Na(e)?e:Ts(e),n=n&&!r?is(n):0;var i=e.length;return n<0&&(n=sn(i+n,0)),Qa(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&wt(e,t,n)>-1},On.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:is(n);return i<0&&(i=sn(r+i,0)),wt(e,t,i)},On.inRange=function(e,t,n){return t=rs(t),void 0===n?(n=t,t=0):n=rs(n),function(e,t,n){return e>=ln(t,n)&&e=-9007199254740991&&e<=9007199254740991},On.isSet=Za,On.isString=Qa,On.isSymbol=Ja,On.isTypedArray=Ka,On.isUndefined=function(e){return void 0===e},On.isWeakMap=function(e){return Ha(e)&&ro(e)==k},On.isWeakSet=function(e){return Ha(e)&&"[object WeakSet]"==hr(e)},On.join=function(e,t){return null==e?"":on.call(e,t)},On.kebabCase=Rs,On.last=Bo,On.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return void 0!==n&&(i=(i=is(n))<0?sn(r+i,0):ln(i,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):xt(e,At,i,!0)},On.lowerCase=Is,On.lowerFirst=Ns,On.lt=es,On.lte=ts,On.max=function(e){return e&&e.length?ir(e,Ws,gr):void 0},On.maxBy=function(e,t){return e&&e.length?ir(e,Qi(t,2),gr):void 0},On.mean=function(e){return Et(e,Ws)},On.meanBy=function(e,t){return Et(e,Qi(t,2))},On.min=function(e){return e&&e.length?ir(e,Ws,Cr):void 0},On.minBy=function(e,t){return e&&e.length?ir(e,Qi(t,2),Cr):void 0},On.stubArray=ol,On.stubFalse=al,On.stubObject=function(){return{}},On.stubString=function(){return""},On.stubTrue=function(){return!0},On.multiply=pl,On.nth=function(e,t){return e&&e.length?Pr(e,is(t)):void 0},On.noConflict=function(){return We._===this&&(We._=_e),this},On.noop=Js,On.now=ma,On.pad=function(e,t,n){e=ls(e);var r=(t=is(t))?Gt(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Di(en(i),n)+e+Di(Kt(i),n)},On.padEnd=function(e,t,n){e=ls(e);var r=(t=is(t))?Gt(e):0;return t&&rt){var r=e;e=t,t=r}if(n||e%1||t%1){var i=dn();return ln(e+i*(t-e+Ve("1e-"+((i+"").length-1))),t)}return Mr(e,t)},On.reduce=function(e,t,n){var r=Ra(e)?gt:Ct,i=arguments.length<3;return r(e,Qi(t,4),n,i,tr)},On.reduceRight=function(e,t,n){var r=Ra(e)?mt:Ct,i=arguments.length<3;return r(e,Qi(t,4),n,i,nr)},On.repeat=function(e,t,n){return t=(n?lo(e,t,n):void 0===t)?1:is(t),zr(ls(e),t)},On.replace=function(){var e=arguments,t=ls(e[0]);return e.length<3?t:t.replace(e[1],e[2])},On.result=function(e,t,n){var r=-1,i=(t=li(t,e)).length;for(i||(i=1,e=void 0);++r9007199254740991)return[];var n=4294967295,r=ln(e,4294967295);e-=4294967295;for(var i=Ot(r,t=Qi(t));++n=o)return e;var s=n-Gt(r);if(s<1)return r;var l=a?ui(a,0,s).join(""):e.slice(0,s);if(void 0===i)return l+r;if(a&&(s+=l.length-s),Xa(i)){if(e.slice(s).search(i)){var c,u=l;for(i.global||(i=ge(i.source,ls(re.exec(i))+"g")),i.lastIndex=0;c=i.exec(u);)var d=c.index;l=l.slice(0,void 0===d?s:d)}}else if(e.indexOf(Jr(i),s)!=s){var p=l.lastIndexOf(i);p>-1&&(l=l.slice(0,p))}return l+r},On.unescape=function(e){return(e=ls(e))&&z.test(e)?e.replace(N,Xt):e},On.uniqueId=function(e){var t=++Ee;return ls(e)+t},On.upperCase=Ls,On.upperFirst=Bs,On.each=la,On.eachRight=ca,On.first=No,Qs(On,(dl={},cr(On,(function(e,t){Ae.call(On.prototype,t)||(dl[t]=e)})),dl),{chain:!1}),On.VERSION="4.17.21",st(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){On[e].placeholder=On})),st(["drop","take"],(function(e,t){Dn.prototype[e]=function(n){n=void 0===n?1:sn(is(n),0);var r=this.__filtered__&&!t?new Dn(this):this.clone();return r.__filtered__?r.__takeCount__=ln(n,r.__takeCount__):r.__views__.push({size:ln(n,4294967295),type:e+(r.__dir__<0?"Right":"")}),r},Dn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),st(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Dn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Qi(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),st(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Dn.prototype[e]=function(){return this[n](1).value()[0]}})),st(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Dn.prototype[e]=function(){return this.__filtered__?new Dn(this):this[n](1)}})),Dn.prototype.compact=function(){return this.filter(Ws)},Dn.prototype.find=function(e){return this.filter(e).head()},Dn.prototype.findLast=function(e){return this.reverse().find(e)},Dn.prototype.invokeMap=Lr((function(e,t){return"function"==typeof e?new Dn(this):this.map((function(n){return yr(n,e,t)}))})),Dn.prototype.reject=function(e){return this.filter(Sa(Qi(e)))},Dn.prototype.slice=function(e,t){e=is(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Dn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),void 0!==t&&(n=(t=is(t))<0?n.dropRight(-t):n.take(t-e)),n)},Dn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Dn.prototype.toArray=function(){return this.take(4294967295)},cr(Dn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=On[r?"take"+("last"==t?"Right":""):t],o=r||/^find/.test(t);i&&(On.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,s=t instanceof Dn,l=a[0],c=s||Ra(t),u=function(e){var t=i.apply(On,ht([e],a));return r&&d?t[0]:t};c&&n&&"function"==typeof l&&1!=l.length&&(s=c=!1);var d=this.__chain__,p=!!this.__actions__.length,f=o&&!d,h=s&&!p;if(!o&&c){t=h?t:new Dn(this);var g=e.apply(t,a);return g.__actions__.push({func:ra,args:[u],thisArg:void 0}),new Pn(g,d)}return f&&h?e.apply(this,a):(g=this.thru(u),f?r?g.value()[0]:g.value():g)})})),st(["pop","push","shift","sort","splice","unshift"],(function(e){var t=be[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);On.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Ra(i)?i:[],e)}return this[n]((function(n){return t.apply(Ra(n)?n:[],e)}))}})),cr(Dn.prototype,(function(e,t){var n=On[t];if(n){var r=n.name+"";Ae.call(xn,r)||(xn[r]=[]),xn[r].push({name:t,func:n})}})),xn[Oi(void 0,2).name]=[{name:"wrapper",func:void 0}],Dn.prototype.clone=function(){var e=new Dn(this.__wrapped__);return e.__actions__=bi(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=bi(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=bi(this.__views__),e},Dn.prototype.reverse=function(){if(this.__filtered__){var e=new Dn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Dn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ra(e),r=t<0,i=n?e.length:0,o=function(e,t,n){var r=-1,i=n.length;for(;++r=this.__values__.length;return{done:e,value:e?void 0:this.__values__[this.__index__++]}},On.prototype.plant=function(e){for(var t,n=this;n instanceof jn;){var r=Oo(n);r.__index__=0,r.__values__=void 0,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},On.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Dn){var t=e;return this.__actions__.length&&(t=new Dn(this)),(t=t.reverse()).__actions__.push({func:ra,args:[Uo],thisArg:void 0}),new Pn(t,this.__chain__)}return this.thru(Uo)},On.prototype.toJSON=On.prototype.valueOf=On.prototype.value=function(){return ri(this.__wrapped__,this.__actions__)},On.prototype.first=On.prototype.head,Qe&&(On.prototype[Qe]=function(){return this}),On}();We._=Zt,void 0===(i=function(){return Zt}.call(t,n,t,r))||(r.exports=i)}).call(this)}).call(this,n(35),n(80)(e))},function(e,t,n){const r=n(21);function i(e){return!r.isNull(e)&&!r.isUndefined(e)}function o(e,t,n,a){a||(a=1);var s=e.predecessors(t);if(!s||0==n)return[];var l=s.concat(s.reduce((function(t,r){return a>=n&&i(n)?t:t.concat(o(e,r,n,a+1))}),[]));return r.uniq(l)}function a(e,t,n,o){o||(o=1);var s=e.successors(t);if(!s||0==n)return[];var l=s.concat(s.reduce((function(t,r){return o>=n&&i(n)?t:t.concat(a(e,r,n,o+1))}),[]));return r.uniq(l)}e.exports={selectAt:function(e,t){var n=[t],i=r.union([t],a(e,t));return r.each(i,(function(t){var i=o(e,t);n=r.union(n,i,[t])})),n},ancestorNodes:o,descendentNodes:a}},function(e,t){var n={utf8:{stringToBytes:function(e){return n.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(n.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n\n/* TODO */\n.section-target {\n top: -8em;\n}\n\n.noflex {\n flex: 0 0 160px !important;\n}\n\n.highlight {\n color: #24292e;\n background-color: white;\n}\n\n\n\n
\n \n
\n
\n
\n
\n \n
\n\n
\n
\n
\n
Description
\n
\n
\n
\n
This {{ model.resource_type }} is not currently documented
\n
\n
\n
\n
\n
\n
\n
\n
Columns
\n \n
\n
\n\n
\n
\n
\n
Referenced By
\n \n
\n
\n\n
\n
\n
\n \n
\n
\n
\n
\n
\n')}]),e.exports=n},function(e,t,n){"use strict";n.r(t);var r=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===i}(e)}(e)};var i="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function o(e,t){return!1!==t.clone&&t.isMergeableObject(e)?s((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function a(e,t,n){return e.concat(t).map((function(e){return o(e,n)}))}function s(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||a,n.isMergeableObject=n.isMergeableObject||r;var i=Array.isArray(t);return i===Array.isArray(e)?i?n.arrayMerge(e,t,n):function(e,t,n){var r={};return n.isMergeableObject(e)&&Object.keys(e).forEach((function(t){r[t]=o(e[t],n)})),Object.keys(t).forEach((function(i){n.isMergeableObject(t[i])&&e[i]?r[i]=s(e[i],t[i],n):r[i]=o(t[i],n)})),r}(e,t,n):o(t,n)}s.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return s(e,n,t)}),{})};var l=s;const c=n(9),u=(n(33),n(202)),{getQuoteChar:d}=n(430);c.module("dbt").factory("project",["$q","$http",function(e,t){var n={manifest:"MANIFEST.JSON INLINE DATA",catalog:"CATALOG.JSON INLINE DATA"},r={project:{},tree:{project:[],database:[],sources:[]},files:{manifest:{},catalog:{}},loaded:e.defer()};function i(e,t){return u.each(t.sources,(function(e,n){t.nodes[n]=e})),u.each(e.nodes,(function(e,n){var r=t.nodes[n];if(r){var i,o,a,s=u.keys(r.columns),l=e.columns,c=(i=s,o=l,a={},u.each(o,(function(e,t){var n=u.find(i,(function(e){return e.toLowerCase()==t.toLowerCase()}));n?a[n]=e:a[t]=e})),a);e.columns=c}})),l(t,e)}function o(e,r){return e in n&&"object"==typeof n[e]?{label:e,data:n[e]}:t({method:"GET",url:r}).then((function(t){return{label:e,data:t.data}}),(function(t){console.error(t),alert("dbt Docs was unable to load the "+e+" file at path: \n "+r+"\n\nError: "+t.statusText+" ("+t.status+")\n\nThe dbt Docs site may not work as expected if this file cannot be found.Please try again, and contact support if this error persists.")}))}return r.find_by_id=function(e,t){r.ready((function(){if(e){var n=r.node(e);t(n)}}))},r.node=function(e){return u.find(r.project.nodes,{unique_id:e})},r.loadProject=function(){var t="?cb="+(new Date).getTime(),n=[o("manifest","manifest.json"+t),o("catalog","catalog.json"+t)];e.all(n).then((function(e){u.each(e,(function(e){e?r.files[e.label]=e.data:console.error("FILE FAILED TO LOAD!")})),u.each(r.files.manifest.nodes,(function(e){"model"==e.resource_type&&null!=e.version?e.label=e.name+"_v"+e.version:e.label=e.name})),u.each(r.files.manifest.sources,(function(e){e.label=e.source_name+"."+e.name,r.files.manifest.nodes[e.unique_id]=e})),u.each(r.files.manifest.exposures,(function(e){e.label||(e.label=e.name),r.files.manifest.nodes[e.unique_id]=e})),u.each(r.files.manifest.metrics,(function(e){r.files.manifest.nodes[e.unique_id]=e})),u.each(r.files.manifest.semantic_models,(function(e){r.files.manifest.nodes[e.unique_id]=e,e.label=e.name}));var t=r.files.manifest.metadata.adapter_type,n=function(e,t){var n=e||[],r={};u.each(n,(function(e){r[e.package_name]||(r[e.package_name]={}),r[e.package_name][e.name]=e}));e=[];return u.each(r,(function(n,r){if("dbt"!=r&&r!="dbt_"+t){var i=function(e,t){var n={};u.each(e,(function(e){e.macro_sql.match(/{{\s*adapter_macro\([^)]+\)\s+}}/)&&(e.impls={"Adapter Macro":e.macro_sql},e.is_adapter_macro=!0,n[e.name]=e)}));var r=["postgres","redshift","bigquery","snowflake","spark","presto","default"],i=u.values(n),o=u.filter(e,(function(e){var t=e.name.split("__"),i=t.shift(),o=t.join("__");return!(r.indexOf(i)>=0&&n[o])||(n[o].impls[i]=e.macro_sql,e.is_adapter_macro_impl=!0,!1)}));return i.concat(o)}(n);e=e.concat(i)}})),u.keyBy(e,"unique_id")}(r.files.manifest.macros,t);r.files.manifest.macros=n;var o=i(r.files.manifest,r.files.catalog),a=o.nodes,s=u.keyBy(a,"name"),l=u.filter(o.nodes,{resource_type:"test"});u.each(l,(function(e){if(e.hasOwnProperty("test_metadata")){var t,n={test_name:t=e.test_metadata.namespace?e.test_metadata.namespace+"."+e.test_metadata.name:e.test_metadata.name};if("not_null"==e.test_metadata.name)n.short="N",n.label="Not Null";else if("unique"==e.test_metadata.name)n.short="U",n.label="Unique";else if("relationships"==e.test_metadata.name){var r=e.refs[0],i=s[r];i&&e.test_metadata.kwargs.field&&(n.fk_field=e.test_metadata.kwargs.field,n.fk_model=i),n.short="F",n.label="Foreign Key"}else if("accepted_values"==e.test_metadata.name){if(Array.isArray(e.test_metadata.kwargs.values))var a=e.test_metadata.kwargs.values.join(", ");else a=JSON.stringify(e.test_metadata.kwargs.values);n.short="A",n.label="Accepted Values: "+a}else{var l=u.omit(e.test_metadata.kwargs,"column_name");n.short="+",n.label=t+"("+JSON.stringify(l)+")"}var c=e.depends_on.nodes,p=e.column_name||e.test_metadata.kwargs.column_name||e.test_metadata.kwargs.arg;if(c.length&&p){if("relationships"==e.test_metadata.name)var f=c[c.length-1];else f=c[0];var h=o.nodes[f],g=d(o.metadata),m=u.find(h.columns,(function(e,t){let n=p;return p.startsWith(g)&&p.endsWith(g)&&(n=p.substring(1,p.length-1)),t.toLowerCase()==n.toLowerCase()}));m&&(m.tests=m.tests||[],m.tests.push(n))}}})),r.project=o;var c=u.filter(r.project.macros,(function(e){return!e.is_adapter_macro_impl})),p=u.filter(r.project.nodes,(function(e){return u.includes(["model","source","seed","snapshot","analysis","exposure","metric","semantic_model"],e.resource_type)}));r.project.searchable=u.filter(p.concat(c),(function(e){return!e.docs||e.docs.show})),r.loaded.resolve()}))},r.ready=function(e){r.loaded.promise.then((function(){e(r.project)}))},r.search=function(e){if(0==e.length)return u.map(r.project.searchable,(function(e){return{model:e,matches:[]}}));var t=[];return u.each(r.project.searchable,(function(n){var r=function(e,t){var n=[],r={name:"string",description:"string",raw_code:"string",columns:"object",column_description:"n/a",tags:"array",arguments:"array",label:"string"};let i=u.words(e.toLowerCase());for(var o in r)if("column_description"===o)for(var a in t.columns)null!=t.columns[a].description&&i.every(e=>-1!=t.columns[a].description.toLowerCase().indexOf(e))&&n.push({key:o,value:e});else{if(!t[o])continue;if("string"===r[o]&&i.every(e=>-1!=t[o].toLowerCase().indexOf(e)))n.push({key:o,value:e});else if("object"===r[o])for(var a in t[o])null!=t[o][a].name&&i.every(e=>-1!=t[o][a].name.toLowerCase().indexOf(e))&&n.push({key:o,value:e});else if("array"===r[o])for(var s of t[o])i.every(e=>-1!=JSON.stringify(s).toLowerCase().indexOf(e))&&n.push({key:o,value:e})}return n}(e,n);r.length&&t.push({model:n,matches:r})})),t},r.getModelTree=function(e,t){r.loaded.promise.then((function(){var n=u.values(r.project.macros),i=u.filter(r.project.nodes,(function(e){if("test"==e.resource_type&&!e.hasOwnProperty("test_metadata"))return!0;return u.includes(["snapshot","source","seed","model","analysis","exposure","metric","semantic_model"],e.resource_type)}));r.tree.database=function(e,t){var n={},r=u.filter(e,(function(e){return!!u.get(e,["docs","show"],!0)&&(-1!=u.indexOf(["source","snapshot","seed"],e.resource_type)||("model"==e.resource_type?"ephemeral"!=e.config.materialized:void 0))})),i=u.sortBy(r,(function(e){return e.database+"."+e.schema+"."+(e.identifier||e.alias||e.name)})),o=u.groupBy(i,"database");return u.each(o,(function(e,r){var i={type:"database",name:r,active:!1,items:[]};n[r]=i;var o=u.groupBy(e,"schema");u.each(o,(function(e,n){n={type:"schema",name:n,active:!1,items:[]};i.items.push(n),u.each(e,(function(e){var r=e.unique_id==t;r&&(i.active=!0,n.active=!0),n.items.push({type:"table",name:e.identifier||e.alias||e.name,node:e,active:r,unique_id:e.unique_id,node_type:"model"})}))}))})),n}(i,e),r.tree.groups=function(e,t){var n={};u.each(e,(function(e){const r=u.get(e,["docs","show"],!0);if(!(e.resource_type in["source","exposure","seed","macro"])&&r&&"private"!==e.access){if("model"==e.resource_type&&null!=e.version)var i=e.name+"_v"+e.version;else i=e.name;var o="protected"===e.access?i+" (protected)":i,a=e.group,s=e.unique_id==t;n[a]?s&&(n[a].active=!0):n[a]={type:"group",name:a,active:s,items:[]},n[a].items.push({type:"file",name:o,node:e,active:s,unique_id:e.unique_id,node_type:"model"})}}));n=u.sortBy(u.values(n),"name");return u.each(n,(function(e){e.items=u.sortBy(e.items,"name")})),n}(i,e),r.tree.project=function(e,t,n){var r={};e=e||[],t=t||[];return u.each(e.concat(t),(function(e){var t=u.get(e,["docs","show"],!0);if("source"!=e.resource_type&&"exposure"!=e.resource_type&&"metric"!=e.resource_type&&"semantic_model"!=e.resource_type&&t){if(-1!=e.original_file_path.indexOf("\\"))var i=e.original_file_path.split("\\");else i=e.original_file_path.split("/");var o=[e.package_name].concat(i),a=e.unique_id==n,s=u.initial(o);if("macro"==e.resource_type)var l=e.name;else l=u.last(o);if("model"==e.resource_type&&null!=e.version)var c=e.name+"_v"+e.version;else c=e.name;var d=r;u.each(s,(function(e){d[e]?a&&(d[e].active=!0):d[e]={type:"folder",name:e,active:a,items:{}},d=d[e].items})),d[l]={type:"file",name:c,node:e,active:a,unique_id:e.unique_id,node_type:e.resource_type}}})),function e(t){var n=[],r=u.values(t);return u.each(r,(function(t){if(t.items){var r=e(t.items),i=u.sortBy(r,"name");t.items=i}n.push(t)})),n}(r)}(i,n,e);var o=u.values(r.project.sources);r.tree.sources=function(e,t){var n={};u.each(e,(function(e){var r=e.source_name,i=e.name,o=e.unique_id==t;n[r]?o&&(n[r].active=!0):n[r]={type:"folder",name:r,active:o,items:[]},n[r].items.push({type:"file",name:i,node:e,active:o,unique_id:e.unique_id,node_type:"source"})}));n=u.sortBy(u.values(n),"name");return u.each(n,(function(e){e.items=u.sortBy(e.items,"name")})),n}(o,e);var a=u.values(r.project.exposures);r.tree.exposures=function(e,t){var n={};u.each(e,(function(e){e.name;var r=e.type||"Uncategorized";r=function(e){var t={ml:"ML"};return t.hasOwnProperty(e)?t[e]:e.charAt(0).toUpperCase()+e.slice(1)}(r);var i=e.unique_id==t;n[r]?i&&(n[r].active=!0):n[r]={type:"folder",name:r,active:i,items:[]},n[r].items.push({type:"file",name:e.label,node:e,active:i,unique_id:e.unique_id,node_type:"exposure"})}));n=u.sortBy(u.values(n),"name");return u.each(n,(function(e){e.items=u.sortBy(e.items,"name")})),n}(a,e);var s=u.values(r.project.metrics);r.tree.metrics=function(e,t){var n={};u.each(e,(function(e){e.name;var r=e.package_name,i=e.unique_id==t;n[r]?i&&(n[r].active=!0):n[r]={type:"folder",name:r,active:i,items:[]},n[r].items.push({type:"file",name:e.label,node:e,active:i,unique_id:e.unique_id,node_type:"metric"})}));n=u.sortBy(u.values(n),"name");return u.each(n,(function(e){n.items=u.sortBy(n.items,"name")})),n}(s,e);var l=u.values(r.project.semantic_models);r.tree.semantic_models=function(e,t){var n={};u.each(e,(function(e){e.name;var r=e.package_name,i=e.unique_id==t;n[r]?i&&(n[r].active=!0):n[r]={type:"folder",name:r,active:i,items:[]},n[r].items.push({type:"file",name:e.name,node:e,active:i,unique_id:e.unique_id,node_type:"semantic_model"})}));n=u.sortBy(u.values(n),"name");return u.each(n,(function(e){n.items=u.sortBy(n.items,"name")})),n}(l,e),t(r.tree)}))},r.updateSelectedInTree=function(e,t){var n=!1;return u.each(t,(function(t){if(t.node&&t.node.unique_id==e)t.active=!0,n=!0;else if(t.node&&t.node.unique_id!=e)t.active=!1;else{r.updateSelectedInTree(e,t.items)&&(t.active=!0,n=!0)}})),n},r.updateSelected=function(e){return r.updateSelectedInTree(e,r.tree.project),r.updateSelectedInTree(e,r.tree.database),r.updateSelectedInTree(e,r.tree.groups),r.updateSelectedInTree(e,r.tree.sources),r.updateSelectedInTree(e,r.tree.exposures),r.updateSelectedInTree(e,r.tree.metrics),r.updateSelectedInTree(e,r.tree.semantic_models),r.tree},r.caseColumn=function(e){return"snowflake"==r.project.metadata.adapter_type&&e.toUpperCase()==e?e.toLowerCase():e},r.init=function(){r.loadProject()},r}])},function(e,t,n){const r=n(9);n(209),n(230),n(445),n(458),n(459),n(479),n(480),n(481),r.module("dbt").run(["$rootScope","$state","$stateParams",function(e,t,n){e.$state=t,e.$stateParams=n}])},function(e,t){ + */(function(){var o="Expected a function",a="__lodash_placeholder__",s=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],l="[object Arguments]",c="[object Array]",u="[object Boolean]",d="[object Date]",p="[object Error]",f="[object Function]",h="[object GeneratorFunction]",g="[object Map]",m="[object Number]",v="[object Object]",b="[object RegExp]",y="[object Set]",x="[object String]",w="[object Symbol]",k="[object WeakMap]",A="[object ArrayBuffer]",E="[object DataView]",S="[object Float32Array]",$="[object Float64Array]",C="[object Int8Array]",_="[object Int16Array]",O="[object Int32Array]",T="[object Uint8Array]",j="[object Uint16Array]",P="[object Uint32Array]",D=/\b__p \+= '';/g,R=/\b(__p \+=) '' \+/g,I=/(__e\(.*?\)|\b__t\)) \+\n'';/g,N=/&(?:amp|lt|gt|quot|#39);/g,M=/[&<>"']/g,z=RegExp(N.source),L=RegExp(M.source),B=/<%-([\s\S]+?)%>/g,F=/<%([\s\S]+?)%>/g,q=/<%=([\s\S]+?)%>/g,V=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,U=/^\w*$/,H=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,G=/[\\^$.*+?()[\]{}|]/g,W=RegExp(G.source),Y=/^\s+/,X=/\s/,Z=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Q=/\{\n\/\* \[wrapped with (.+)\] \*/,J=/,? & /,K=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ee=/[()=,{}\[\]\/\s]/,te=/\\(\\)?/g,ne=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,re=/\w*$/,ie=/^[-+]0x[0-9a-f]+$/i,oe=/^0b[01]+$/i,ae=/^\[object .+?Constructor\]$/,se=/^0o[0-7]+$/i,le=/^(?:0|[1-9]\d*)$/,ce=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ue=/($^)/,de=/['\n\r\u2028\u2029\\]/g,pe="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",fe="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",he="[\\ud800-\\udfff]",ge="["+fe+"]",me="["+pe+"]",ve="\\d+",be="[\\u2700-\\u27bf]",ye="[a-z\\xdf-\\xf6\\xf8-\\xff]",xe="[^\\ud800-\\udfff"+fe+ve+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",we="\\ud83c[\\udffb-\\udfff]",ke="[^\\ud800-\\udfff]",Ae="(?:\\ud83c[\\udde6-\\uddff]){2}",Ee="[\\ud800-\\udbff][\\udc00-\\udfff]",Se="[A-Z\\xc0-\\xd6\\xd8-\\xde]",$e="(?:"+ye+"|"+xe+")",Ce="(?:"+Se+"|"+xe+")",_e="(?:"+me+"|"+we+")"+"?",Oe="[\\ufe0e\\ufe0f]?"+_e+("(?:\\u200d(?:"+[ke,Ae,Ee].join("|")+")[\\ufe0e\\ufe0f]?"+_e+")*"),Te="(?:"+[be,Ae,Ee].join("|")+")"+Oe,je="(?:"+[ke+me+"?",me,Ae,Ee,he].join("|")+")",Pe=RegExp("['’]","g"),De=RegExp(me,"g"),Re=RegExp(we+"(?="+we+")|"+je+Oe,"g"),Ie=RegExp([Se+"?"+ye+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[ge,Se,"$"].join("|")+")",Ce+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[ge,Se+$e,"$"].join("|")+")",Se+"?"+$e+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Se+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ve,Te].join("|"),"g"),Ne=RegExp("[\\u200d\\ud800-\\udfff"+pe+"\\ufe0e\\ufe0f]"),Me=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ze=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Le=-1,Be={};Be[S]=Be[$]=Be[C]=Be[_]=Be[O]=Be[T]=Be["[object Uint8ClampedArray]"]=Be[j]=Be[P]=!0,Be[l]=Be[c]=Be[A]=Be[u]=Be[E]=Be[d]=Be[p]=Be[f]=Be[g]=Be[m]=Be[v]=Be[b]=Be[y]=Be[x]=Be[k]=!1;var Fe={};Fe[l]=Fe[c]=Fe[A]=Fe[E]=Fe[u]=Fe[d]=Fe[S]=Fe[$]=Fe[C]=Fe[_]=Fe[O]=Fe[g]=Fe[m]=Fe[v]=Fe[b]=Fe[y]=Fe[x]=Fe[w]=Fe[T]=Fe["[object Uint8ClampedArray]"]=Fe[j]=Fe[P]=!0,Fe[p]=Fe[f]=Fe[k]=!1;var qe={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ve=parseFloat,Ue=parseInt,He="object"==typeof e&&e&&e.Object===Object&&e,Ge="object"==typeof self&&self&&self.Object===Object&&self,We=He||Ge||Function("return this")(),Ye=t&&!t.nodeType&&t,Xe=Ye&&"object"==typeof r&&r&&!r.nodeType&&r,Ze=Xe&&Xe.exports===Ye,Qe=Ze&&He.process,Je=function(){try{var e=Xe&&Xe.require&&Xe.require("util").types;return e||Qe&&Qe.binding&&Qe.binding("util")}catch(e){}}(),Ke=Je&&Je.isArrayBuffer,et=Je&&Je.isDate,tt=Je&&Je.isMap,nt=Je&&Je.isRegExp,rt=Je&&Je.isSet,it=Je&&Je.isTypedArray;function ot(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function at(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i-1}function pt(e,t,n){for(var r=-1,i=null==e?0:e.length;++r-1;);return n}function It(e,t){for(var n=e.length;n--&&wt(t,e[n],0)>-1;);return n}function Nt(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var Mt=$t({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),zt=$t({"&":"&","<":"<",">":">",'"':""","'":"'"});function Lt(e){return"\\"+qe[e]}function Bt(e){return Ne.test(e)}function Ft(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function qt(e,t){return function(n){return e(t(n))}}function Vt(e,t){for(var n=-1,r=e.length,i=0,o=[];++n",""":'"',"'":"'"});var Zt=function e(t){var n,r=(t=null==t?We:Zt.defaults(We.Object(),t,Zt.pick(We,ze))).Array,i=t.Date,X=t.Error,pe=t.Function,fe=t.Math,he=t.Object,ge=t.RegExp,me=t.String,ve=t.TypeError,be=r.prototype,ye=pe.prototype,xe=he.prototype,we=t["__core-js_shared__"],ke=ye.toString,Ae=xe.hasOwnProperty,Ee=0,Se=(n=/[^.]+$/.exec(we&&we.keys&&we.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",$e=xe.toString,Ce=ke.call(he),_e=We._,Oe=ge("^"+ke.call(Ae).replace(G,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Te=Ze?t.Buffer:void 0,je=t.Symbol,Re=t.Uint8Array,Ne=Te?Te.allocUnsafe:void 0,qe=qt(he.getPrototypeOf,he),He=he.create,Ge=xe.propertyIsEnumerable,Ye=be.splice,Xe=je?je.isConcatSpreadable:void 0,Qe=je?je.iterator:void 0,Je=je?je.toStringTag:void 0,bt=function(){try{var e=eo(he,"defineProperty");return e({},"",{}),e}catch(e){}}(),$t=t.clearTimeout!==We.clearTimeout&&t.clearTimeout,Qt=i&&i.now!==We.Date.now&&i.now,Jt=t.setTimeout!==We.setTimeout&&t.setTimeout,Kt=fe.ceil,en=fe.floor,tn=he.getOwnPropertySymbols,nn=Te?Te.isBuffer:void 0,rn=t.isFinite,on=be.join,an=qt(he.keys,he),sn=fe.max,ln=fe.min,cn=i.now,un=t.parseInt,dn=fe.random,pn=be.reverse,fn=eo(t,"DataView"),hn=eo(t,"Map"),gn=eo(t,"Promise"),mn=eo(t,"Set"),vn=eo(t,"WeakMap"),bn=eo(he,"create"),yn=vn&&new vn,xn={},wn=_o(fn),kn=_o(hn),An=_o(gn),En=_o(mn),Sn=_o(vn),$n=je?je.prototype:void 0,Cn=$n?$n.valueOf:void 0,_n=$n?$n.toString:void 0;function On(e){if(Ha(e)&&!Ra(e)&&!(e instanceof Dn)){if(e instanceof Pn)return e;if(Ae.call(e,"__wrapped__"))return Oo(e)}return new Pn(e)}var Tn=function(){function e(){}return function(t){if(!Ua(t))return{};if(He)return He(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function jn(){}function Pn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}function Dn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function Rn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function Qn(e,t,n,r,i,o){var a,s=1&t,c=2&t,p=4&t;if(n&&(a=i?n(e,r,i,o):n(e)),void 0!==a)return a;if(!Ua(e))return e;var k=Ra(e);if(k){if(a=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Ae.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!s)return bi(e,a)}else{var D=ro(e),R=D==f||D==h;if(za(e))return pi(e,s);if(D==v||D==l||R&&!i){if(a=c||R?{}:oo(e),!s)return c?function(e,t){return yi(e,no(e),t)}(e,function(e,t){return e&&yi(t,ks(t),e)}(a,e)):function(e,t){return yi(e,to(e),t)}(e,Wn(a,e))}else{if(!Fe[D])return i?e:{};a=function(e,t,n){var r=e.constructor;switch(t){case A:return fi(e);case u:case d:return new r(+e);case E:return function(e,t){var n=t?fi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case S:case $:case C:case _:case O:case T:case"[object Uint8ClampedArray]":case j:case P:return hi(e,n);case g:return new r;case m:case x:return new r(e);case b:return function(e){var t=new e.constructor(e.source,re.exec(e));return t.lastIndex=e.lastIndex,t}(e);case y:return new r;case w:return i=e,Cn?he(Cn.call(i)):{}}var i}(e,D,s)}}o||(o=new zn);var I=o.get(e);if(I)return I;o.set(e,a),Za(e)?e.forEach((function(r){a.add(Qn(r,t,n,r,e,o))})):Ga(e)&&e.forEach((function(r,i){a.set(i,Qn(r,t,n,i,e,o))}));var N=k?void 0:(p?c?Wi:Gi:c?ks:ws)(e);return st(N||e,(function(r,i){N&&(r=e[i=r]),Un(a,i,Qn(r,t,n,i,e,o))})),a}function Jn(e,t,n){var r=n.length;if(null==e)return!r;for(e=he(e);r--;){var i=n[r],o=t[i],a=e[i];if(void 0===a&&!(i in e)||!o(a))return!1}return!0}function Kn(e,t,n){if("function"!=typeof e)throw new ve(o);return wo((function(){e.apply(void 0,n)}),t)}function er(e,t,n,r){var i=-1,o=dt,a=!0,s=e.length,l=[],c=t.length;if(!s)return l;n&&(t=ft(t,jt(n))),r?(o=pt,a=!1):t.length>=200&&(o=Dt,a=!1,t=new Mn(t));e:for(;++i-1},In.prototype.set=function(e,t){var n=this.__data__,r=Hn(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Nn.prototype.clear=function(){this.size=0,this.__data__={hash:new Rn,map:new(hn||In),string:new Rn}},Nn.prototype.delete=function(e){var t=Ji(this,e).delete(e);return this.size-=t?1:0,t},Nn.prototype.get=function(e){return Ji(this,e).get(e)},Nn.prototype.has=function(e){return Ji(this,e).has(e)},Nn.prototype.set=function(e,t){var n=Ji(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Mn.prototype.add=Mn.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Mn.prototype.has=function(e){return this.__data__.has(e)},zn.prototype.clear=function(){this.__data__=new In,this.size=0},zn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},zn.prototype.get=function(e){return this.__data__.get(e)},zn.prototype.has=function(e){return this.__data__.has(e)},zn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof In){var r=n.__data__;if(!hn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Nn(r)}return n.set(e,t),this.size=n.size,this};var tr=ki(cr),nr=ki(ur,!0);function rr(e,t){var n=!0;return tr(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function ir(e,t,n){for(var r=-1,i=e.length;++r0&&n(s)?t>1?ar(s,t-1,n,r,i):ht(i,s):r||(i[i.length]=s)}return i}var sr=Ai(),lr=Ai(!0);function cr(e,t){return e&&sr(e,t,ws)}function ur(e,t){return e&&lr(e,t,ws)}function dr(e,t){return ut(t,(function(t){return Fa(e[t])}))}function pr(e,t){for(var n=0,r=(t=li(t,e)).length;null!=e&&nt}function mr(e,t){return null!=e&&Ae.call(e,t)}function vr(e,t){return null!=e&&t in he(e)}function br(e,t,n){for(var i=n?pt:dt,o=e[0].length,a=e.length,s=a,l=r(a),c=1/0,u=[];s--;){var d=e[s];s&&t&&(d=ft(d,jt(t))),c=ln(d.length,c),l[s]=!n&&(t||o>=120&&d.length>=120)?new Mn(s&&d):void 0}d=e[0];var p=-1,f=l[0];e:for(;++p=s)return l;var c=n[r];return l*("desc"==c?-1:1)}}return e.index-t.index}(e,t,n)}))}function Rr(e,t,n){for(var r=-1,i=t.length,o={};++r-1;)s!==e&&Ye.call(s,l,1),Ye.call(e,l,1);return e}function Nr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;so(i)?Ye.call(e,i,1):ei(e,i)}}return e}function Mr(e,t){return e+en(dn()*(t-e+1))}function zr(e,t){var n="";if(!e||t<1||t>9007199254740991)return n;do{t%2&&(n+=e),(t=en(t/2))&&(e+=e)}while(t);return n}function Lr(e,t){return ko(mo(e,t,Ws),e+"")}function Br(e){return Bn(Ts(e))}function Fr(e,t){var n=Ts(e);return So(n,Zn(t,0,n.length))}function qr(e,t,n,r){if(!Ua(e))return e;for(var i=-1,o=(t=li(t,e)).length,a=o-1,s=e;null!=s&&++io?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=r(o);++i>>1,a=e[o];null!==a&&!Ja(a)&&(n?a<=t:a=200){var c=t?null:zi(e);if(c)return Ut(c);a=!1,i=Dt,l=new Mn}else l=t?[]:s;e:for(;++r=r?e:Gr(e,t,n)}var di=$t||function(e){return We.clearTimeout(e)};function pi(e,t){if(t)return e.slice();var n=e.length,r=Ne?Ne(n):new e.constructor(n);return e.copy(r),r}function fi(e){var t=new e.constructor(e.byteLength);return new Re(t).set(new Re(e)),t}function hi(e,t){var n=t?fi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function gi(e,t){if(e!==t){var n=void 0!==e,r=null===e,i=e==e,o=Ja(e),a=void 0!==t,s=null===t,l=t==t,c=Ja(t);if(!s&&!c&&!o&&e>t||o&&a&&l&&!s&&!c||r&&a&&l||!n&&l||!i)return 1;if(!r&&!o&&!c&&e1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(i--,o):void 0,a&&lo(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),t=he(t);++r-1?i[o?t[a]:a]:void 0}}function _i(e){return Hi((function(t){var n=t.length,r=n,i=Pn.prototype.thru;for(e&&t.reverse();r--;){var a=t[r];if("function"!=typeof a)throw new ve(o);if(i&&!s&&"wrapper"==Xi(a))var s=new Pn([],!0)}for(r=s?r:n;++r1&&y.reverse(),d&&cs))return!1;var c=o.get(e),u=o.get(t);if(c&&u)return c==t&&u==e;var d=-1,p=!0,f=2&n?new Mn:void 0;for(o.set(e,t),o.set(t,e);++d-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Z,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return st(s,(function(n){var r="_."+n[0];t&n[1]&&!dt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(Q);return t?t[1].split(J):[]}(r),n)))}function Eo(e){var t=0,n=0;return function(){var r=cn(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function So(e,t){var n=-1,r=e.length,i=r-1;for(t=void 0===t?r:t;++n1?e[t-1]:void 0;return n="function"==typeof n?(e.pop(),n):void 0,Xo(e,n)}));function na(e){var t=On(e);return t.__chain__=!0,t}function ra(e,t){return t(e)}var ia=Hi((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return Xn(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Dn&&so(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:ra,args:[i],thisArg:void 0}),new Pn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(void 0),e}))):this.thru(i)}));var oa=xi((function(e,t,n){Ae.call(e,n)?++e[n]:Yn(e,n,1)}));var aa=Ci(Do),sa=Ci(Ro);function la(e,t){return(Ra(e)?st:tr)(e,Qi(t,3))}function ca(e,t){return(Ra(e)?lt:nr)(e,Qi(t,3))}var ua=xi((function(e,t,n){Ae.call(e,n)?e[n].push(t):Yn(e,n,[t])}));var da=Lr((function(e,t,n){var i=-1,o="function"==typeof t,a=Na(e)?r(e.length):[];return tr(e,(function(e){a[++i]=o?ot(t,e,n):yr(e,t,n)})),a})),pa=xi((function(e,t,n){Yn(e,n,t)}));function fa(e,t){return(Ra(e)?ft:_r)(e,Qi(t,3))}var ha=xi((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var ga=Lr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&lo(e,t[0],t[1])?t=[]:n>2&&lo(t[0],t[1],t[2])&&(t=[t[0]]),Dr(e,ar(t,1),[])})),ma=Qt||function(){return We.Date.now()};function va(e,t,n){return t=n?void 0:t,Bi(e,128,void 0,void 0,void 0,void 0,t=e&&null==t?e.length:t)}function ba(e,t){var n;if("function"!=typeof t)throw new ve(o);return e=is(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}var ya=Lr((function(e,t,n){var r=1;if(n.length){var i=Vt(n,Zi(ya));r|=32}return Bi(e,r,t,n,i)})),xa=Lr((function(e,t,n){var r=3;if(n.length){var i=Vt(n,Zi(xa));r|=32}return Bi(t,r,e,n,i)}));function wa(e,t,n){var r,i,a,s,l,c,u=0,d=!1,p=!1,f=!0;if("function"!=typeof e)throw new ve(o);function h(t){var n=r,o=i;return r=i=void 0,u=t,s=e.apply(o,n)}function g(e){return u=e,l=wo(v,t),d?h(e):s}function m(e){var n=e-c;return void 0===c||n>=t||n<0||p&&e-u>=a}function v(){var e=ma();if(m(e))return b(e);l=wo(v,function(e){var n=t-(e-c);return p?ln(n,a-(e-u)):n}(e))}function b(e){return l=void 0,f&&r?h(e):(r=i=void 0,s)}function y(){var e=ma(),n=m(e);if(r=arguments,i=this,c=e,n){if(void 0===l)return g(c);if(p)return di(l),l=wo(v,t),h(c)}return void 0===l&&(l=wo(v,t)),s}return t=as(t)||0,Ua(n)&&(d=!!n.leading,a=(p="maxWait"in n)?sn(as(n.maxWait)||0,t):a,f="trailing"in n?!!n.trailing:f),y.cancel=function(){void 0!==l&&di(l),u=0,r=c=i=l=void 0},y.flush=function(){return void 0===l?s:b(ma())},y}var ka=Lr((function(e,t){return Kn(e,1,t)})),Aa=Lr((function(e,t,n){return Kn(e,as(t)||0,n)}));function Ea(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ve(o);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Ea.Cache||Nn),n}function Sa(e){if("function"!=typeof e)throw new ve(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Ea.Cache=Nn;var $a=ci((function(e,t){var n=(t=1==t.length&&Ra(t[0])?ft(t[0],jt(Qi())):ft(ar(t,1),jt(Qi()))).length;return Lr((function(r){for(var i=-1,o=ln(r.length,n);++i=t})),Da=xr(function(){return arguments}())?xr:function(e){return Ha(e)&&Ae.call(e,"callee")&&!Ge.call(e,"callee")},Ra=r.isArray,Ia=Ke?jt(Ke):function(e){return Ha(e)&&hr(e)==A};function Na(e){return null!=e&&Va(e.length)&&!Fa(e)}function Ma(e){return Ha(e)&&Na(e)}var za=nn||al,La=et?jt(et):function(e){return Ha(e)&&hr(e)==d};function Ba(e){if(!Ha(e))return!1;var t=hr(e);return t==p||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!Ya(e)}function Fa(e){if(!Ua(e))return!1;var t=hr(e);return t==f||t==h||"[object AsyncFunction]"==t||"[object Proxy]"==t}function qa(e){return"number"==typeof e&&e==is(e)}function Va(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function Ua(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ha(e){return null!=e&&"object"==typeof e}var Ga=tt?jt(tt):function(e){return Ha(e)&&ro(e)==g};function Wa(e){return"number"==typeof e||Ha(e)&&hr(e)==m}function Ya(e){if(!Ha(e)||hr(e)!=v)return!1;var t=qe(e);if(null===t)return!0;var n=Ae.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ke.call(n)==Ce}var Xa=nt?jt(nt):function(e){return Ha(e)&&hr(e)==b};var Za=rt?jt(rt):function(e){return Ha(e)&&ro(e)==y};function Qa(e){return"string"==typeof e||!Ra(e)&&Ha(e)&&hr(e)==x}function Ja(e){return"symbol"==typeof e||Ha(e)&&hr(e)==w}var Ka=it?jt(it):function(e){return Ha(e)&&Va(e.length)&&!!Be[hr(e)]};var es=Ii(Cr),ts=Ii((function(e,t){return e<=t}));function ns(e){if(!e)return[];if(Na(e))return Qa(e)?Wt(e):bi(e);if(Qe&&e[Qe])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Qe]());var t=ro(e);return(t==g?Ft:t==y?Ut:Ts)(e)}function rs(e){return e?(e=as(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function is(e){var t=rs(e),n=t%1;return t==t?n?t-n:t:0}function os(e){return e?Zn(is(e),0,4294967295):0}function as(e){if("number"==typeof e)return e;if(Ja(e))return NaN;if(Ua(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Ua(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Tt(e);var n=oe.test(e);return n||se.test(e)?Ue(e.slice(2),n?2:8):ie.test(e)?NaN:+e}function ss(e){return yi(e,ks(e))}function ls(e){return null==e?"":Jr(e)}var cs=wi((function(e,t){if(fo(t)||Na(t))yi(t,ws(t),e);else for(var n in t)Ae.call(t,n)&&Un(e,n,t[n])})),us=wi((function(e,t){yi(t,ks(t),e)})),ds=wi((function(e,t,n,r){yi(t,ks(t),e,r)})),ps=wi((function(e,t,n,r){yi(t,ws(t),e,r)})),fs=Hi(Xn);var hs=Lr((function(e,t){e=he(e);var n=-1,r=t.length,i=r>2?t[2]:void 0;for(i&&lo(t[0],t[1],i)&&(r=1);++n1),t})),yi(e,Wi(e),n),r&&(n=Qn(n,7,Vi));for(var i=t.length;i--;)ei(n,t[i]);return n}));var $s=Hi((function(e,t){return null==e?{}:function(e,t){return Rr(e,t,(function(t,n){return vs(e,n)}))}(e,t)}));function Cs(e,t){if(null==e)return{};var n=ft(Wi(e),(function(e){return[e]}));return t=Qi(t),Rr(e,n,(function(e,n){return t(e,n[0])}))}var _s=Li(ws),Os=Li(ks);function Ts(e){return null==e?[]:Pt(e,ws(e))}var js=Si((function(e,t,n){return t=t.toLowerCase(),e+(n?Ps(t):t)}));function Ps(e){return Bs(ls(e).toLowerCase())}function Ds(e){return(e=ls(e))&&e.replace(ce,Mt).replace(De,"")}var Rs=Si((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Is=Si((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ns=Ei("toLowerCase");var Ms=Si((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var zs=Si((function(e,t,n){return e+(n?" ":"")+Bs(t)}));var Ls=Si((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Bs=Ei("toUpperCase");function Fs(e,t,n){return e=ls(e),void 0===(t=n?void 0:t)?function(e){return Me.test(e)}(e)?function(e){return e.match(Ie)||[]}(e):function(e){return e.match(K)||[]}(e):e.match(t)||[]}var qs=Lr((function(e,t){try{return ot(e,void 0,t)}catch(e){return Ba(e)?e:new X(e)}})),Vs=Hi((function(e,t){return st(t,(function(t){t=Co(t),Yn(e,t,ya(e[t],e))})),e}));function Us(e){return function(){return e}}var Hs=_i(),Gs=_i(!0);function Ws(e){return e}function Ys(e){return Er("function"==typeof e?e:Qn(e,1))}var Xs=Lr((function(e,t){return function(n){return yr(n,e,t)}})),Zs=Lr((function(e,t){return function(n){return yr(e,n,t)}}));function Qs(e,t,n){var r=ws(t),i=dr(t,r);null!=n||Ua(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=dr(t,ws(t)));var o=!(Ua(n)&&"chain"in n&&!n.chain),a=Fa(e);return st(i,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__),i=n.__actions__=bi(this.__actions__);return i.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,ht([this.value()],arguments))})})),e}function Js(){}var Ks=Pi(ft),el=Pi(ct),tl=Pi(vt);function nl(e){return co(e)?St(Co(e)):function(e){return function(t){return pr(t,e)}}(e)}var rl=Ri(),il=Ri(!0);function ol(){return[]}function al(){return!1}var sl=ji((function(e,t){return e+t}),0),ll=Mi("ceil"),cl=ji((function(e,t){return e/t}),1),ul=Mi("floor");var dl,pl=ji((function(e,t){return e*t}),1),fl=Mi("round"),hl=ji((function(e,t){return e-t}),0);return On.after=function(e,t){if("function"!=typeof t)throw new ve(o);return e=is(e),function(){if(--e<1)return t.apply(this,arguments)}},On.ary=va,On.assign=cs,On.assignIn=us,On.assignInWith=ds,On.assignWith=ps,On.at=fs,On.before=ba,On.bind=ya,On.bindAll=Vs,On.bindKey=xa,On.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ra(e)?e:[e]},On.chain=na,On.chunk=function(e,t,n){t=(n?lo(e,t,n):void 0===t)?1:sn(is(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var o=0,a=0,s=r(Kt(i/t));oi?0:i+n),(r=void 0===r||r>i?i:is(r))<0&&(r+=i),r=n>r?0:os(r);n>>0)?(e=ls(e))&&("string"==typeof t||null!=t&&!Xa(t))&&!(t=Jr(t))&&Bt(e)?ui(Wt(e),0,n):e.split(t,n):[]},On.spread=function(e,t){if("function"!=typeof e)throw new ve(o);return t=null==t?0:sn(is(t),0),Lr((function(n){var r=n[t],i=ui(n,0,t);return r&&ht(i,r),ot(e,this,i)}))},On.tail=function(e){var t=null==e?0:e.length;return t?Gr(e,1,t):[]},On.take=function(e,t,n){return e&&e.length?Gr(e,0,(t=n||void 0===t?1:is(t))<0?0:t):[]},On.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?Gr(e,(t=r-(t=n||void 0===t?1:is(t)))<0?0:t,r):[]},On.takeRightWhile=function(e,t){return e&&e.length?ni(e,Qi(t,3),!1,!0):[]},On.takeWhile=function(e,t){return e&&e.length?ni(e,Qi(t,3)):[]},On.tap=function(e,t){return t(e),e},On.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new ve(o);return Ua(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),wa(e,t,{leading:r,maxWait:t,trailing:i})},On.thru=ra,On.toArray=ns,On.toPairs=_s,On.toPairsIn=Os,On.toPath=function(e){return Ra(e)?ft(e,Co):Ja(e)?[e]:bi($o(ls(e)))},On.toPlainObject=ss,On.transform=function(e,t,n){var r=Ra(e),i=r||za(e)||Ka(e);if(t=Qi(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:Ua(e)&&Fa(o)?Tn(qe(e)):{}}return(i?st:cr)(e,(function(e,r,i){return t(n,e,r,i)})),n},On.unary=function(e){return va(e,1)},On.union=Ho,On.unionBy=Go,On.unionWith=Wo,On.uniq=function(e){return e&&e.length?Kr(e):[]},On.uniqBy=function(e,t){return e&&e.length?Kr(e,Qi(t,2)):[]},On.uniqWith=function(e,t){return t="function"==typeof t?t:void 0,e&&e.length?Kr(e,void 0,t):[]},On.unset=function(e,t){return null==e||ei(e,t)},On.unzip=Yo,On.unzipWith=Xo,On.update=function(e,t,n){return null==e?e:ti(e,t,si(n))},On.updateWith=function(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:ti(e,t,si(n),r)},On.values=Ts,On.valuesIn=function(e){return null==e?[]:Pt(e,ks(e))},On.without=Zo,On.words=Fs,On.wrap=function(e,t){return Ca(si(t),e)},On.xor=Qo,On.xorBy=Jo,On.xorWith=Ko,On.zip=ea,On.zipObject=function(e,t){return oi(e||[],t||[],Un)},On.zipObjectDeep=function(e,t){return oi(e||[],t||[],qr)},On.zipWith=ta,On.entries=_s,On.entriesIn=Os,On.extend=us,On.extendWith=ds,Qs(On,On),On.add=sl,On.attempt=qs,On.camelCase=js,On.capitalize=Ps,On.ceil=ll,On.clamp=function(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=as(n))==n?n:0),void 0!==t&&(t=(t=as(t))==t?t:0),Zn(as(e),t,n)},On.clone=function(e){return Qn(e,4)},On.cloneDeep=function(e){return Qn(e,5)},On.cloneDeepWith=function(e,t){return Qn(e,5,t="function"==typeof t?t:void 0)},On.cloneWith=function(e,t){return Qn(e,4,t="function"==typeof t?t:void 0)},On.conformsTo=function(e,t){return null==t||Jn(e,t,ws(t))},On.deburr=Ds,On.defaultTo=function(e,t){return null==e||e!=e?t:e},On.divide=cl,On.endsWith=function(e,t,n){e=ls(e),t=Jr(t);var r=e.length,i=n=void 0===n?r:Zn(is(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},On.eq=Ta,On.escape=function(e){return(e=ls(e))&&L.test(e)?e.replace(M,zt):e},On.escapeRegExp=function(e){return(e=ls(e))&&W.test(e)?e.replace(G,"\\$&"):e},On.every=function(e,t,n){var r=Ra(e)?ct:rr;return n&&lo(e,t,n)&&(t=void 0),r(e,Qi(t,3))},On.find=aa,On.findIndex=Do,On.findKey=function(e,t){return yt(e,Qi(t,3),cr)},On.findLast=sa,On.findLastIndex=Ro,On.findLastKey=function(e,t){return yt(e,Qi(t,3),ur)},On.floor=ul,On.forEach=la,On.forEachRight=ca,On.forIn=function(e,t){return null==e?e:sr(e,Qi(t,3),ks)},On.forInRight=function(e,t){return null==e?e:lr(e,Qi(t,3),ks)},On.forOwn=function(e,t){return e&&cr(e,Qi(t,3))},On.forOwnRight=function(e,t){return e&&ur(e,Qi(t,3))},On.get=ms,On.gt=ja,On.gte=Pa,On.has=function(e,t){return null!=e&&io(e,t,mr)},On.hasIn=vs,On.head=No,On.identity=Ws,On.includes=function(e,t,n,r){e=Na(e)?e:Ts(e),n=n&&!r?is(n):0;var i=e.length;return n<0&&(n=sn(i+n,0)),Qa(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&wt(e,t,n)>-1},On.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:is(n);return i<0&&(i=sn(r+i,0)),wt(e,t,i)},On.inRange=function(e,t,n){return t=rs(t),void 0===n?(n=t,t=0):n=rs(n),function(e,t,n){return e>=ln(t,n)&&e=-9007199254740991&&e<=9007199254740991},On.isSet=Za,On.isString=Qa,On.isSymbol=Ja,On.isTypedArray=Ka,On.isUndefined=function(e){return void 0===e},On.isWeakMap=function(e){return Ha(e)&&ro(e)==k},On.isWeakSet=function(e){return Ha(e)&&"[object WeakSet]"==hr(e)},On.join=function(e,t){return null==e?"":on.call(e,t)},On.kebabCase=Rs,On.last=Bo,On.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return void 0!==n&&(i=(i=is(n))<0?sn(r+i,0):ln(i,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):xt(e,At,i,!0)},On.lowerCase=Is,On.lowerFirst=Ns,On.lt=es,On.lte=ts,On.max=function(e){return e&&e.length?ir(e,Ws,gr):void 0},On.maxBy=function(e,t){return e&&e.length?ir(e,Qi(t,2),gr):void 0},On.mean=function(e){return Et(e,Ws)},On.meanBy=function(e,t){return Et(e,Qi(t,2))},On.min=function(e){return e&&e.length?ir(e,Ws,Cr):void 0},On.minBy=function(e,t){return e&&e.length?ir(e,Qi(t,2),Cr):void 0},On.stubArray=ol,On.stubFalse=al,On.stubObject=function(){return{}},On.stubString=function(){return""},On.stubTrue=function(){return!0},On.multiply=pl,On.nth=function(e,t){return e&&e.length?Pr(e,is(t)):void 0},On.noConflict=function(){return We._===this&&(We._=_e),this},On.noop=Js,On.now=ma,On.pad=function(e,t,n){e=ls(e);var r=(t=is(t))?Gt(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Di(en(i),n)+e+Di(Kt(i),n)},On.padEnd=function(e,t,n){e=ls(e);var r=(t=is(t))?Gt(e):0;return t&&rt){var r=e;e=t,t=r}if(n||e%1||t%1){var i=dn();return ln(e+i*(t-e+Ve("1e-"+((i+"").length-1))),t)}return Mr(e,t)},On.reduce=function(e,t,n){var r=Ra(e)?gt:Ct,i=arguments.length<3;return r(e,Qi(t,4),n,i,tr)},On.reduceRight=function(e,t,n){var r=Ra(e)?mt:Ct,i=arguments.length<3;return r(e,Qi(t,4),n,i,nr)},On.repeat=function(e,t,n){return t=(n?lo(e,t,n):void 0===t)?1:is(t),zr(ls(e),t)},On.replace=function(){var e=arguments,t=ls(e[0]);return e.length<3?t:t.replace(e[1],e[2])},On.result=function(e,t,n){var r=-1,i=(t=li(t,e)).length;for(i||(i=1,e=void 0);++r9007199254740991)return[];var n=4294967295,r=ln(e,4294967295);e-=4294967295;for(var i=Ot(r,t=Qi(t));++n=o)return e;var s=n-Gt(r);if(s<1)return r;var l=a?ui(a,0,s).join(""):e.slice(0,s);if(void 0===i)return l+r;if(a&&(s+=l.length-s),Xa(i)){if(e.slice(s).search(i)){var c,u=l;for(i.global||(i=ge(i.source,ls(re.exec(i))+"g")),i.lastIndex=0;c=i.exec(u);)var d=c.index;l=l.slice(0,void 0===d?s:d)}}else if(e.indexOf(Jr(i),s)!=s){var p=l.lastIndexOf(i);p>-1&&(l=l.slice(0,p))}return l+r},On.unescape=function(e){return(e=ls(e))&&z.test(e)?e.replace(N,Xt):e},On.uniqueId=function(e){var t=++Ee;return ls(e)+t},On.upperCase=Ls,On.upperFirst=Bs,On.each=la,On.eachRight=ca,On.first=No,Qs(On,(dl={},cr(On,(function(e,t){Ae.call(On.prototype,t)||(dl[t]=e)})),dl),{chain:!1}),On.VERSION="4.17.21",st(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){On[e].placeholder=On})),st(["drop","take"],(function(e,t){Dn.prototype[e]=function(n){n=void 0===n?1:sn(is(n),0);var r=this.__filtered__&&!t?new Dn(this):this.clone();return r.__filtered__?r.__takeCount__=ln(n,r.__takeCount__):r.__views__.push({size:ln(n,4294967295),type:e+(r.__dir__<0?"Right":"")}),r},Dn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),st(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Dn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Qi(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),st(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Dn.prototype[e]=function(){return this[n](1).value()[0]}})),st(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Dn.prototype[e]=function(){return this.__filtered__?new Dn(this):this[n](1)}})),Dn.prototype.compact=function(){return this.filter(Ws)},Dn.prototype.find=function(e){return this.filter(e).head()},Dn.prototype.findLast=function(e){return this.reverse().find(e)},Dn.prototype.invokeMap=Lr((function(e,t){return"function"==typeof e?new Dn(this):this.map((function(n){return yr(n,e,t)}))})),Dn.prototype.reject=function(e){return this.filter(Sa(Qi(e)))},Dn.prototype.slice=function(e,t){e=is(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Dn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),void 0!==t&&(n=(t=is(t))<0?n.dropRight(-t):n.take(t-e)),n)},Dn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Dn.prototype.toArray=function(){return this.take(4294967295)},cr(Dn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=On[r?"take"+("last"==t?"Right":""):t],o=r||/^find/.test(t);i&&(On.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,s=t instanceof Dn,l=a[0],c=s||Ra(t),u=function(e){var t=i.apply(On,ht([e],a));return r&&d?t[0]:t};c&&n&&"function"==typeof l&&1!=l.length&&(s=c=!1);var d=this.__chain__,p=!!this.__actions__.length,f=o&&!d,h=s&&!p;if(!o&&c){t=h?t:new Dn(this);var g=e.apply(t,a);return g.__actions__.push({func:ra,args:[u],thisArg:void 0}),new Pn(g,d)}return f&&h?e.apply(this,a):(g=this.thru(u),f?r?g.value()[0]:g.value():g)})})),st(["pop","push","shift","sort","splice","unshift"],(function(e){var t=be[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);On.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Ra(i)?i:[],e)}return this[n]((function(n){return t.apply(Ra(n)?n:[],e)}))}})),cr(Dn.prototype,(function(e,t){var n=On[t];if(n){var r=n.name+"";Ae.call(xn,r)||(xn[r]=[]),xn[r].push({name:t,func:n})}})),xn[Oi(void 0,2).name]=[{name:"wrapper",func:void 0}],Dn.prototype.clone=function(){var e=new Dn(this.__wrapped__);return e.__actions__=bi(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=bi(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=bi(this.__views__),e},Dn.prototype.reverse=function(){if(this.__filtered__){var e=new Dn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Dn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ra(e),r=t<0,i=n?e.length:0,o=function(e,t,n){var r=-1,i=n.length;for(;++r=this.__values__.length;return{done:e,value:e?void 0:this.__values__[this.__index__++]}},On.prototype.plant=function(e){for(var t,n=this;n instanceof jn;){var r=Oo(n);r.__index__=0,r.__values__=void 0,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},On.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Dn){var t=e;return this.__actions__.length&&(t=new Dn(this)),(t=t.reverse()).__actions__.push({func:ra,args:[Uo],thisArg:void 0}),new Pn(t,this.__chain__)}return this.thru(Uo)},On.prototype.toJSON=On.prototype.valueOf=On.prototype.value=function(){return ri(this.__wrapped__,this.__actions__)},On.prototype.first=On.prototype.head,Qe&&(On.prototype[Qe]=function(){return this}),On}();We._=Zt,void 0===(i=function(){return Zt}.call(t,n,t,r))||(r.exports=i)}).call(this)}).call(this,n(35),n(80)(e))},function(e,t,n){const r=n(21);function i(e){return!r.isNull(e)&&!r.isUndefined(e)}function o(e,t,n,a){a||(a=1);var s=e.predecessors(t);if(!s||0==n)return[];var l=s.concat(s.reduce((function(t,r){return a>=n&&i(n)?t:t.concat(o(e,r,n,a+1))}),[]));return r.uniq(l)}function a(e,t,n,o){o||(o=1);var s=e.successors(t);if(!s||0==n)return[];var l=s.concat(s.reduce((function(t,r){return o>=n&&i(n)?t:t.concat(a(e,r,n,o+1))}),[]));return r.uniq(l)}e.exports={selectAt:function(e,t){var n=[t],i=r.union([t],a(e,t));return r.each(i,(function(t){var i=o(e,t);n=r.union(n,i,[t])})),n},ancestorNodes:o,descendentNodes:a}},function(e,t){var n={utf8:{stringToBytes:function(e){return n.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(n.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n\n/* TODO */\n.section-target {\n top: -8em;\n}\n\n.noflex {\n flex: 0 0 160px !important;\n}\n\n.highlight {\n color: #24292e;\n background-color: white;\n}\n\n\n\n
\n \n
\n
\n
\n
\n \n
\n\n
\n
\n
\n
Description
\n
\n
\n
\n
This {{ model.resource_type }} is not currently documented
\n
\n
\n
\n
\n
\n
\n
\n
Columns
\n \n
\n
\n\n
\n
\n
\n
Referenced By
\n \n
\n
\n\n
\n
\n
\n \n
\n
\n
\n
\n
\n')}]),e.exports=n},function(e,t,n){"use strict";n.r(t);var r=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===i}(e)}(e)};var i="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function o(e,t){return!1!==t.clone&&t.isMergeableObject(e)?s((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function a(e,t,n){return e.concat(t).map((function(e){return o(e,n)}))}function s(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||a,n.isMergeableObject=n.isMergeableObject||r;var i=Array.isArray(t);return i===Array.isArray(e)?i?n.arrayMerge(e,t,n):function(e,t,n){var r={};return n.isMergeableObject(e)&&Object.keys(e).forEach((function(t){r[t]=o(e[t],n)})),Object.keys(t).forEach((function(i){n.isMergeableObject(t[i])&&e[i]?r[i]=s(e[i],t[i],n):r[i]=o(t[i],n)})),r}(e,t,n):o(t,n)}s.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return s(e,n,t)}),{})};var l=s;const c=n(9),u=(n(33),n(202)),{getQuoteChar:d}=n(430);c.module("dbt").factory("project",["$q","$http",function(e,t){var n={project:{},tree:{project:[],database:[],sources:[]},files:{manifest:{},catalog:{}},loaded:e.defer()};function r(e,t){return u.each(t.sources,(function(e,n){t.nodes[n]=e})),u.each(e.nodes,(function(e,n){var r=t.nodes[n];if(r){var i,o,a,s=u.keys(r.columns),l=e.columns,c=(i=s,o=l,a={},u.each(o,(function(e,t){var n=u.find(i,(function(e){return e.toLowerCase()==t.toLowerCase()}));n?a[n]=e:a[t]=e})),a);e.columns=c}})),l(t,e)}function i(e,n){return t({method:"GET",url:n}).then((function(t){return{label:e,data:t.data}}),(function(t){console.error(t),alert("dbt Docs was unable to load the "+e+" file at path: \n "+n+"\n\nError: "+t.statusText+" ("+t.status+")\n\nThe dbt Docs site may not work as expected if this file cannot be found.Please try again, and contact support if this error persists.")}))}return n.find_by_id=function(e,t){n.ready((function(){if(e){var r=n.node(e);t(r)}}))},n.node=function(e){return u.find(n.project.nodes,{unique_id:e})},n.loadProject=function(){var t="?cb="+(new Date).getTime(),o=[i("manifest","manifest.json"+t),i("catalog","catalog.json"+t)];e.all(o).then((function(e){u.each(e,(function(e){e?n.files[e.label]=e.data:console.error("FILE FAILED TO LOAD!")})),u.each(n.files.manifest.nodes,(function(e){"model"==e.resource_type&&null!=e.version?e.label=e.name+"_v"+e.version:e.label=e.name})),u.each(n.files.manifest.sources,(function(e){e.label=e.source_name+"."+e.name,n.files.manifest.nodes[e.unique_id]=e})),u.each(n.files.manifest.exposures,(function(e){e.label||(e.label=e.name),n.files.manifest.nodes[e.unique_id]=e})),u.each(n.files.manifest.metrics,(function(e){n.files.manifest.nodes[e.unique_id]=e})),u.each(n.files.manifest.semantic_models,(function(e){n.files.manifest.nodes[e.unique_id]=e,e.label=e.name}));var t=n.files.manifest.metadata.adapter_type,i=function(e,t){var n=e||[],r={};u.each(n,(function(e){r[e.package_name]||(r[e.package_name]={}),r[e.package_name][e.name]=e}));e=[];return u.each(r,(function(n,r){if("dbt"!=r&&r!="dbt_"+t){var i=function(e,t){var n={};u.each(e,(function(e){e.macro_sql.match(/{{\s*adapter_macro\([^)]+\)\s+}}/)&&(e.impls={"Adapter Macro":e.macro_sql},e.is_adapter_macro=!0,n[e.name]=e)}));var r=["postgres","redshift","bigquery","snowflake","spark","presto","default"],i=u.values(n),o=u.filter(e,(function(e){var t=e.name.split("__"),i=t.shift(),o=t.join("__");return!(r.indexOf(i)>=0&&n[o])||(n[o].impls[i]=e.macro_sql,e.is_adapter_macro_impl=!0,!1)}));return i.concat(o)}(n);e=e.concat(i)}})),u.keyBy(e,"unique_id")}(n.files.manifest.macros,t);n.files.manifest.macros=i;var o=r(n.files.manifest,n.files.catalog),a=o.nodes,s=u.keyBy(a,"name"),l=u.filter(o.nodes,{resource_type:"test"});u.each(l,(function(e){if(e.hasOwnProperty("test_metadata")){var t,n={test_name:t=e.test_metadata.namespace?e.test_metadata.namespace+"."+e.test_metadata.name:e.test_metadata.name};if("not_null"==e.test_metadata.name)n.short="N",n.label="Not Null";else if("unique"==e.test_metadata.name)n.short="U",n.label="Unique";else if("relationships"==e.test_metadata.name){var r=e.refs[0],i=s[r];i&&e.test_metadata.kwargs.field&&(n.fk_field=e.test_metadata.kwargs.field,n.fk_model=i),n.short="F",n.label="Foreign Key"}else if("accepted_values"==e.test_metadata.name){if(Array.isArray(e.test_metadata.kwargs.values))var a=e.test_metadata.kwargs.values.join(", ");else a=JSON.stringify(e.test_metadata.kwargs.values);n.short="A",n.label="Accepted Values: "+a}else{var l=u.omit(e.test_metadata.kwargs,"column_name");n.short="+",n.label=t+"("+JSON.stringify(l)+")"}var c=e.depends_on.nodes,p=e.column_name||e.test_metadata.kwargs.column_name||e.test_metadata.kwargs.arg;if(c.length&&p){if("relationships"==e.test_metadata.name)var f=c[c.length-1];else f=c[0];var h=o.nodes[f],g=d(o.metadata),m=u.find(h.columns,(function(e,t){let n=p;return p.startsWith(g)&&p.endsWith(g)&&(n=p.substring(1,p.length-1)),t.toLowerCase()==n.toLowerCase()}));m&&(m.tests=m.tests||[],m.tests.push(n))}}})),n.project=o;var c=u.filter(n.project.macros,(function(e){return!e.is_adapter_macro_impl})),p=u.filter(n.project.nodes,(function(e){return u.includes(["model","source","seed","snapshot","analysis","exposure","metric","semantic_model"],e.resource_type)}));n.project.searchable=u.filter(p.concat(c),(function(e){return!e.docs||e.docs.show})),n.loaded.resolve()}))},n.ready=function(e){n.loaded.promise.then((function(){e(n.project)}))},n.search=function(e){if(0==e.length)return u.map(n.project.searchable,(function(e){return{model:e,matches:[]}}));var t=[];return u.each(n.project.searchable,(function(n){var r=function(e,t){var n=[],r={name:"string",description:"string",raw_code:"string",columns:"object",column_description:"n/a",tags:"array",arguments:"array",label:"string"};let i=u.words(e.toLowerCase());for(var o in r)if("column_description"===o)for(var a in t.columns)null!=t.columns[a].description&&i.every(e=>-1!=t.columns[a].description.toLowerCase().indexOf(e))&&n.push({key:o,value:e});else{if(!t[o])continue;if("string"===r[o]&&i.every(e=>-1!=t[o].toLowerCase().indexOf(e)))n.push({key:o,value:e});else if("object"===r[o])for(var a in t[o])null!=t[o][a].name&&i.every(e=>-1!=t[o][a].name.toLowerCase().indexOf(e))&&n.push({key:o,value:e});else if("array"===r[o])for(var s of t[o])i.every(e=>-1!=JSON.stringify(s).toLowerCase().indexOf(e))&&n.push({key:o,value:e})}return n}(e,n);r.length&&t.push({model:n,matches:r})})),t},n.getModelTree=function(e,t){n.loaded.promise.then((function(){var r=u.values(n.project.macros),i=u.filter(n.project.nodes,(function(e){if("test"==e.resource_type&&!e.hasOwnProperty("test_metadata"))return!0;return u.includes(["snapshot","source","seed","model","analysis","exposure","metric","semantic_model"],e.resource_type)}));n.tree.database=function(e,t){var n={},r=u.filter(e,(function(e){return!!u.get(e,["docs","show"],!0)&&(-1!=u.indexOf(["source","snapshot","seed"],e.resource_type)||("model"==e.resource_type?"ephemeral"!=e.config.materialized:void 0))})),i=u.sortBy(r,(function(e){return e.database+"."+e.schema+"."+(e.identifier||e.alias||e.name)})),o=u.groupBy(i,"database");return u.each(o,(function(e,r){var i={type:"database",name:r,active:!1,items:[]};n[r]=i;var o=u.groupBy(e,"schema");u.each(o,(function(e,n){n={type:"schema",name:n,active:!1,items:[]};i.items.push(n),u.each(e,(function(e){var r=e.unique_id==t;r&&(i.active=!0,n.active=!0),n.items.push({type:"table",name:e.identifier||e.alias||e.name,node:e,active:r,unique_id:e.unique_id,node_type:"model"})}))}))})),n}(i,e),n.tree.groups=function(e,t){var n={};u.each(e,(function(e){const r=u.get(e,["docs","show"],!0);if(!(e.resource_type in["source","exposure","seed","macro"])&&r&&"private"!==e.access){if("model"==e.resource_type&&null!=e.version)var i=e.name+"_v"+e.version;else i=e.name;var o="protected"===e.access?i+" (protected)":i,a=e.group,s=e.unique_id==t;n[a]?s&&(n[a].active=!0):n[a]={type:"group",name:a,active:s,items:[]},n[a].items.push({type:"file",name:o,node:e,active:s,unique_id:e.unique_id,node_type:"model"})}}));n=u.sortBy(u.values(n),"name");return u.each(n,(function(e){e.items=u.sortBy(e.items,"name")})),n}(i,e),n.tree.project=function(e,t,n){var r={};e=e||[],t=t||[];return u.each(e.concat(t),(function(e){var t=u.get(e,["docs","show"],!0);if("source"!=e.resource_type&&"exposure"!=e.resource_type&&"metric"!=e.resource_type&&"semantic_model"!=e.resource_type&&t){if(-1!=e.original_file_path.indexOf("\\"))var i=e.original_file_path.split("\\");else i=e.original_file_path.split("/");var o=[e.package_name].concat(i),a=e.unique_id==n,s=u.initial(o);if("macro"==e.resource_type)var l=e.name;else l=u.last(o);if("model"==e.resource_type&&null!=e.version)var c=e.name+"_v"+e.version;else c=e.name;var d=r;u.each(s,(function(e){d[e]?a&&(d[e].active=!0):d[e]={type:"folder",name:e,active:a,items:{}},d=d[e].items})),d[l]={type:"file",name:c,node:e,active:a,unique_id:e.unique_id,node_type:e.resource_type}}})),function e(t){var n=[],r=u.values(t);return u.each(r,(function(t){if(t.items){var r=e(t.items),i=u.sortBy(r,"name");t.items=i}n.push(t)})),n}(r)}(i,r,e);var o=u.values(n.project.sources);n.tree.sources=function(e,t){var n={};u.each(e,(function(e){var r=e.source_name,i=e.name,o=e.unique_id==t;n[r]?o&&(n[r].active=!0):n[r]={type:"folder",name:r,active:o,items:[]},n[r].items.push({type:"file",name:i,node:e,active:o,unique_id:e.unique_id,node_type:"source"})}));n=u.sortBy(u.values(n),"name");return u.each(n,(function(e){e.items=u.sortBy(e.items,"name")})),n}(o,e);var a=u.values(n.project.exposures);n.tree.exposures=function(e,t){var n={};u.each(e,(function(e){e.name;var r=e.type||"Uncategorized";r=function(e){var t={ml:"ML"};return t.hasOwnProperty(e)?t[e]:e.charAt(0).toUpperCase()+e.slice(1)}(r);var i=e.unique_id==t;n[r]?i&&(n[r].active=!0):n[r]={type:"folder",name:r,active:i,items:[]},n[r].items.push({type:"file",name:e.label,node:e,active:i,unique_id:e.unique_id,node_type:"exposure"})}));n=u.sortBy(u.values(n),"name");return u.each(n,(function(e){e.items=u.sortBy(e.items,"name")})),n}(a,e);var s=u.values(n.project.metrics);n.tree.metrics=function(e,t){var n={};u.each(e,(function(e){e.name;var r=e.package_name,i=e.unique_id==t;n[r]?i&&(n[r].active=!0):n[r]={type:"folder",name:r,active:i,items:[]},n[r].items.push({type:"file",name:e.label,node:e,active:i,unique_id:e.unique_id,node_type:"metric"})}));n=u.sortBy(u.values(n),"name");return u.each(n,(function(e){n.items=u.sortBy(n.items,"name")})),n}(s,e);var l=u.values(n.project.semantic_models);n.tree.semantic_models=function(e,t){var n={};u.each(e,(function(e){e.name;var r=e.package_name,i=e.unique_id==t;n[r]?i&&(n[r].active=!0):n[r]={type:"folder",name:r,active:i,items:[]},n[r].items.push({type:"file",name:e.name,node:e,active:i,unique_id:e.unique_id,node_type:"semantic_model"})}));n=u.sortBy(u.values(n),"name");return u.each(n,(function(e){n.items=u.sortBy(n.items,"name")})),n}(l,e),t(n.tree)}))},n.updateSelectedInTree=function(e,t){var r=!1;return u.each(t,(function(t){if(t.node&&t.node.unique_id==e)t.active=!0,r=!0;else if(t.node&&t.node.unique_id!=e)t.active=!1;else{n.updateSelectedInTree(e,t.items)&&(t.active=!0,r=!0)}})),r},n.updateSelected=function(e){return n.updateSelectedInTree(e,n.tree.project),n.updateSelectedInTree(e,n.tree.database),n.updateSelectedInTree(e,n.tree.groups),n.updateSelectedInTree(e,n.tree.sources),n.updateSelectedInTree(e,n.tree.exposures),n.updateSelectedInTree(e,n.tree.metrics),n.updateSelectedInTree(e,n.tree.semantic_models),n.tree},n.caseColumn=function(e){return"snowflake"==n.project.metadata.adapter_type&&e.toUpperCase()==e?e.toLowerCase():e},n.init=function(){n.loadProject()},n}])},function(e,t,n){const r=n(9);n(209),n(230),n(445),n(458),n(459),n(479),n(480),n(481),r.module("dbt").run(["$rootScope","$state","$stateParams",function(e,t,n){e.$state=t,e.$stateParams=n}])},function(e,t){ /** * @license AngularJS v1.8.2 * (c) 2010-2020 Google LLC. http://angularjs.org @@ -97,6 +97,6 @@ * @author Feross Aboukhadijeh * @license MIT */ -e.exports=function(e){return null!=e&&(n(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&n(e.slice(0,0))}(e)||!!e._isBuffer)}},function(e,t,n){n(9).module("dbt").factory("locationService",["$state",function(e){var t={};return t.parseState=function(e){return function(e){return{selected:{include:e.g_i||"",exclude:e.g_e||""},show_graph:!!e.g_v}}(e)},t.setState=function(t){var n=function(e){var t={g_v:1};return t.g_i=e.include,t.g_e=e.exclude,t}(t),r=e.current.name;e.go(r,n)},t.clearState=function(){var t=e.current.name;e.go(t,{g_i:null,g_e:null,g_v:null})},t}])},function(e,t,n){"use strict";const r=n(9),i=n(202);r.module("dbt").controller("OverviewCtrl",["$scope","$state","project",function(e,t,n){e.overview_md="(loading)",n.ready((function(n){let r=t.params.project_name?t.params.project_name:null;var o=n.docs["doc.dbt.__overview__"],a=i.filter(n.docs,{name:"__overview__"});if(i.each(a,(function(e){"dbt"!=e.package_name&&(o=e)})),null!==r){o=n.docs[`doc.${r}.__${r}__`]||o;let e=i.filter(n.docs,{name:`__${r}__`});i.each(e,e=>{e.package_name!==r&&(o=e)})}e.overview_md=o.block_contents}))}])},function(e,t,n){"use strict";n(9).module("dbt").controller("SourceListCtrl",["$scope","$state","project",function(e,t,n){e.source=t.params.source,e.model={},e.extra_table_fields=[],e.has_more_info=function(e){return(e.description||"").length},e.toggle_source_expanded=function(t){e.has_more_info(t)&&(t.expanded=!t.expanded)},n.ready((function(t){var n=_.filter(t.nodes,(function(t){return t.source_name==e.source}));if(0!=n.length){n.sort((e,t)=>e.name.localeCompare(t.name));var r=n[0];e.model={name:e.source,source_description:r.source_description,sources:n};var i=_.uniq(_.map(n,"metadata.owner")),o=_.uniq(_.map(n,"database")),a=_.uniq(_.map(n,"schema"));e.extra_table_fields=[{name:"Loader",value:r.loader},{name:1==i.length?"Owner":"Owners",value:i.join(", ")},{name:1==o.length?"Database":"Databases",value:o.join(", ")},{name:1==a.length?"Schema":"Schemas",value:a.join(", ")},{name:"Tables",value:n.length}]}}))}])},function(e,t,n){const r=n(9),i={main:n(482),overview:n(483),graph:n(484),source:n(205),source_list:n(485),model:n(486),source:n(205),snapshot:n(487),seed:n(488),test:n(489),analysis:n(490),macro:n(491),exposure:n(492),metric:n(493),semantic_model:n(494),operation:n(495)};r.module("dbt").config(["$stateProvider","$urlRouterProvider",function(e,t){var n="g_v&g_i&g_e&g_p&g_n";t.otherwise("/overview"),e.state("dbt",{url:"/",abstract:!0,controller:"MainController",templateUrl:i.main}).state("dbt.overview",{url:"overview?"+n,controller:"OverviewCtrl",templateUrl:i.overview}).state("dbt.project_overview",{url:"overview/:project_name?"+n,controller:"OverviewCtrl",templateUrl:i.overview,params:{project_name:{type:"string"}}}).state("dbt.graph",{url:"graph",controller:"GraphCtrl",templateUrl:i.graph}).state("dbt.model",{url:"model/:unique_id?section&"+n,controller:"ModelCtrl",templateUrl:i.model,params:{unique_id:{type:"string"}}}).state("dbt.seed",{url:"seed/:unique_id?section&"+n,controller:"SeedCtrl",templateUrl:i.seed,params:{unique_id:{type:"string"}}}).state("dbt.snapshot",{url:"snapshot/:unique_id?section&"+n,controller:"SnapshotCtrl",templateUrl:i.snapshot,params:{unique_id:{type:"string"}}}).state("dbt.test",{url:"test/:unique_id?section&"+n,controller:"TestCtrl",templateUrl:i.test,params:{unique_id:{type:"string"}}}).state("dbt.analysis",{url:"analysis/:unique_id?section&"+n,controller:"AnalysisCtrl",templateUrl:i.analysis,params:{unique_id:{type:"string"}}}).state("dbt.source",{url:"source/:unique_id?section&"+n,controller:"SourceCtrl",templateUrl:i.source,params:{unique_id:{type:"string"}}}).state("dbt.source_list",{url:"source_list/:source?section&"+n,controller:"SourceListCtrl",templateUrl:i.source_list,params:{source:{type:"string"}}}).state("dbt.macro",{url:"macro/:unique_id?section",controller:"MacroCtrl",templateUrl:i.macro,params:{unique_id:{type:"string"}}}).state("dbt.exposure",{url:"exposure/:unique_id?section&"+n,controller:"ExposureCtrl",templateUrl:i.exposure,params:{unique_id:{type:"string"}}}).state("dbt.metric",{url:"metric/:unique_id?section&"+n,controller:"MetricCtrl",templateUrl:i.metric,params:{unique_id:{type:"string"}}}).state("dbt.semantic_model",{url:"semantic_model/:unique_id?section&"+n,controller:"SemanticModelCtrl",templateUrl:i.semantic_model,params:{unique_id:{type:"string"}}}).state("dbt.operation",{url:"operation/:unique_id?section&"+n,controller:"OperationCtrl",templateUrl:i.operation,params:{unique_id:{type:"string"}}})}])},function(e,t){var n="/main/main.html";window.angular.module("ng").run(["$templateCache",function(e){e.put(n,'\n\n
\n \n\n
\n
\n
\n
\n
\n
\n \n
\n
\n
\n
\n
\n \n
\n
\n
\n
\n
\n
\n \n
\n
\n \n
\n
\n
\n
\n \n
\n
\n
\n
\n')}]),e.exports=n},function(e,t){var n="/overview/overview.html";window.angular.module("ng").run(["$templateCache",function(e){e.put(n,'
\n \n
\n
\n

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

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

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

\n
\n {{ source.description }}\n \n View docs\n \n \n \n \n \n \n \n \n \n
\n
\n
\n
Description
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n')}]),e.exports=n},function(e,t){var n="/docs/model.html";window.angular.module("ng").run(["$templateCache",function(e){e.put(n,'\n\n
\n \n
\n
\n
\n
\n \n
\n\n
\n
\n
\n
Description
\n
\n
\n
\n
This {{ model.resource_type }} is not currently documented
\n
\n
\n
\n
\n\n
\n
\n
\n
Columns
\n \n
\n
\n\n
\n
\n
\n
Referenced By
\n \n
\n
\n\n
\n
\n
\n
Depends On
\n \n
\n
\n\n
\n
\n
\n \n
\n
\n
\n
\n
\n')}]),e.exports=n},function(e,t){var n="/docs/snapshot.html";window.angular.module("ng").run(["$templateCache",function(e){e.put(n,'\n\n
\n \n
\n
\n
\n
\n \n
\n\n
\n
\n
\n
Description
\n
\n
\n
\n
This {{ model.resource_type }} is not currently documented
\n
\n
\n
\n
\n\n
\n
\n
\n
Columns
\n \n
\n
\n\n
\n
\n
\n
Referenced By
\n \n
\n
\n\n
\n
\n
\n
Depends On
\n \n
\n
\n\n
\n
\n
\n \n
\n
\n
\n
\n
\n')}]),e.exports=n},function(e,t){var n="/docs/seed.html";window.angular.module("ng").run(["$templateCache",function(e){e.put(n,'\n\n
\n \n
\n
\n
\n
\n \n
\n\n
\n
\n
\n
Description
\n
\n
\n
\n
This {{ model.resource_type }} is not currently documented
\n
\n
\n
\n
\n
\n
\n
\n
Columns
\n \n
\n
\n\n
\n
\n
\n
Referenced By
\n \n
\n
\n\n
\n
\n
\n
Depends On
\n \n
\n
\n\n
\n
\n
\n \n
\n
\n
\n
\n
\n')}]),e.exports=n},function(e,t){var n="/docs/test.html";window.angular.module("ng").run(["$templateCache",function(e){e.put(n,'\n\n
\n \n
\n
\n
\n
\n
\n
Description
\n
\n
\n
\n
This {{ model.resource_type }} is not currently documented
\n
\n
\n
\n
\n\n
\n
\n
\n
Depends On
\n \n
\n
\n\n
\n
\n
\n \n
\n
\n
\n
\n
\n')}]),e.exports=n},function(e,t){var n="/docs/analysis.html";window.angular.module("ng").run(["$templateCache",function(e){e.put(n,'\n\n
\n \n
\n
\n\n
\n
\n
\n
Description
\n
\n
\n
\n
This {{ model.resource_type }} is not currently documented
\n
\n
\n
\n
\n\n
\n
\n
\n
Depends On
\n \n
\n
\n\n
\n
\n
\n \n
\n
\n
\n
\n
\n')}]),e.exports=n},function(e,t){var n="/docs/macro.html";window.angular.module("ng").run(["$templateCache",function(e){e.put(n,'\n\n
\n \n
\n
\n
\n
\n
\n
Description
\n
\n
\n
\n
This {{ macro.resource_type }} is not currently documented
\n
\n
\n
\n
\n\n
\n
\n
\n
Arguments
\n \n
\n
\n\n
\n
\n
\n
Referenced By
\n \n
\n
\n\n
\n
\n
\n
Depends On
\n \n
\n
\n\n
\n
\n
\n \n
\n
\n
\n
\n
\n')}]),e.exports=n},function(e,t){var n="/docs/exposure.html";window.angular.module("ng").run(["$templateCache",function(e){e.put(n,'\n\n
\n \n
\n
\n\n
\n
\n \n
\n\n
\n
\n
\n
Description
\n
\n
\n
\n
This {{ exposure.resource_type }} is not currently documented
\n
\n
\n
\n
\n\n
\n
\n
\n
Depends On
\n \n
\n
\n\n
\n
\n
\n')}]),e.exports=n},function(e,t){var n="/docs/metric.html";window.angular.module("ng").run(["$templateCache",function(e){e.put(n,'\n\n
\n \n
\n
\n\n
\n
\n \n
\n\n
\n
\n
\n
Description
\n
\n
\n
\n
This {{ metric.resource_type }} is not currently documented
\n
\n
\n
\n
\n\n
\n
\n
\n
Depends On
\n \n
\n
\n\n
\n
\n
\n')}]),e.exports=n},function(e,t){var n="/docs/semantic_model.html";window.angular.module("ng").run(["$templateCache",function(e){e.put(n,'\n\n
\n \n
\n
\n\n
\n
\n \n
\n\n
\n
\n
\n
Description
\n
\n
\n
\n
This {{ semantic_model.resource_type }} is not currently documented
\n
\n
\n
\n
\n\n
\n
\n
\n
Entities
\n\n
\n
\n
\n
\n
Name
\n
{{ entity.name }}
\n
None
\n
Type
\n
{{ entity.type }}
\n
None
\n
Expression
\n
{{ entity.expr }}
\n
None
\n
\n
\n
\n
\n
\n
\n\n
\n
\n
\n
Depends On
\n \n
\n
\n\n
\n
\n
\n')}]),e.exports=n},function(e,t){var n="/docs/operation.html";window.angular.module("ng").run(["$templateCache",function(e){e.put(n,'\n\n
\n \n
\n
\n
\n
\n
\n
Description
\n
\n
\n
\n
This {{ model.resource_type }} is not currently documented
\n
\n
\n
\n
\n\n
\n
\n
\n
Depends On
\n \n
\n
\n\n
\n
\n
\n \n
\n
\n
\n
\n
\n')}]),e.exports=n}]); //# sourceMappingURL=main.js.map diff --git a/docs/manifest.json b/docs/manifest.json index f5182a1..f2c36ed 100644 --- a/docs/manifest.json +++ b/docs/manifest.json @@ -1 +1 @@ -{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/manifest/v11.json", "dbt_version": "1.7.4", "generated_at": "2024-01-18T19:41:42.956341Z", "invocation_id": "a6c6f095-5c56-4d80-b9ea-baf4b7420184", "env": {}, "project_name": "servicenow_integration_tests", "project_id": "7eeda3c97af5718f6096b96e532d24cc", "user_id": "8929baf0-9bc1-477e-9a57-eb8b0db4da62", "send_anonymous_usage_stats": true, "adapter_type": "postgres"}, "nodes": {"seed.servicenow_integration_tests.change_task_data": {"database": "postgres", "schema": "reddit_ads_integration_tests_3", "name": "change_task_data", "resource_type": "seed", "package_name": "servicenow_integration_tests", "path": "change_task_data.csv", "original_file_path": "seeds/change_task_data.csv", "unique_id": "seed.servicenow_integration_tests.change_task_data", "fqn": ["servicenow_integration_tests", "change_task_data"], "alias": "change_task_data", "checksum": {"name": "sha256", "checksum": "80a68f08577934396d185f34c3c8d586bf8f5b89bcb3b8fe9834d5ea997d305b"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"sys_id": "varchar", "sys_created_on": "timestamp", "resolved_at": "timestamp", "closed_at": "timestamp", "confirmed_by_value": "varchar", "first_reported_by_task_value": "varchar", "requested_by_value": "varchar", "fix_by_value": "varchar", "started_by_value": "varchar", "problem_value": "varchar", "resolved_by_value": "varchar", "change_request_value": "varchar", "assigned_to_value": "varchar", "closed_by_value": "varchar", "opened_by_value": "varchar", "sys_created_by": "varchar", "sys_updated_by": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"sys_id": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "sys_created_on": "timestamp", "resolved_at": "timestamp", "closed_at": "timestamp", "confirmed_by_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "first_reported_by_task_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "requested_by_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "fix_by_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "started_by_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "problem_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "resolved_by_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "change_request_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "assigned_to_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "closed_by_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "opened_by_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "sys_created_by": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "sys_updated_by": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}"}}, "created_at": 1705606887.9087, "relation_name": "\"postgres\".\"reddit_ads_integration_tests_3\".\"change_task_data\"", "raw_code": "", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/servicenow/dbt_servicenow/integration_tests", "depends_on": {"macros": []}}, "seed.servicenow_integration_tests.problem_task_data": {"database": "postgres", "schema": "reddit_ads_integration_tests_3", "name": "problem_task_data", "resource_type": "seed", "package_name": "servicenow_integration_tests", "path": "problem_task_data.csv", "original_file_path": "seeds/problem_task_data.csv", "unique_id": "seed.servicenow_integration_tests.problem_task_data", "fqn": ["servicenow_integration_tests", "problem_task_data"], "alias": "problem_task_data", "checksum": {"name": "sha256", "checksum": "147f9ebf1339efed7c3d7b94d954fe450db786ca80b888662abee9c0b9d7fc03"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"sys_id": "varchar", "sys_created_on": "timestamp", "resolved_at": "timestamp", "closed_at": "timestamp", "confirmed_by_value": "varchar", "first_reported_by_task_value": "varchar", "requested_by_value": "varchar", "fix_by_value": "varchar", "started_by_value": "varchar", "problem_value": "varchar", "resolved_by_value": "varchar", "change_request_value": "varchar", "assigned_to_value": "varchar", "closed_by_value": "varchar", "opened_by_value": "varchar", "sys_created_by": "varchar", "sys_updated_by": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"sys_id": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "sys_created_on": "timestamp", "resolved_at": "timestamp", "closed_at": "timestamp", "confirmed_by_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "first_reported_by_task_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "requested_by_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "fix_by_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "started_by_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "problem_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "resolved_by_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "change_request_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "assigned_to_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "closed_by_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "opened_by_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "sys_created_by": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "sys_updated_by": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}"}}, "created_at": 1705606887.9208279, "relation_name": "\"postgres\".\"reddit_ads_integration_tests_3\".\"problem_task_data\"", "raw_code": "", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/servicenow/dbt_servicenow/integration_tests", "depends_on": {"macros": []}}, "seed.servicenow_integration_tests.sys_user_data": {"database": "postgres", "schema": "reddit_ads_integration_tests_3", "name": "sys_user_data", "resource_type": "seed", "package_name": "servicenow_integration_tests", "path": "sys_user_data.csv", "original_file_path": "seeds/sys_user_data.csv", "unique_id": "seed.servicenow_integration_tests.sys_user_data", "fqn": ["servicenow_integration_tests", "sys_user_data"], "alias": "sys_user_data", "checksum": {"name": "sha256", "checksum": "6750bddc4f1ba23bde9befa990fbee8c39eb75e32314bc5f4996f3a2be4092e1"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"sys_id": "varchar", "sys_created_on": "timestamp", "resolved_at": "timestamp", "closed_at": "timestamp", "confirmed_by_value": "varchar", "first_reported_by_task_value": "varchar", "requested_by_value": "varchar", "fix_by_value": "varchar", "started_by_value": "varchar", "problem_value": "varchar", "resolved_by_value": "varchar", "change_request_value": "varchar", "assigned_to_value": "varchar", "closed_by_value": "varchar", "opened_by_value": "varchar", "sys_created_by": "varchar", "sys_updated_by": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"sys_id": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "sys_created_on": "timestamp", "resolved_at": "timestamp", "closed_at": "timestamp", "confirmed_by_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "first_reported_by_task_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "requested_by_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "fix_by_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "started_by_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "problem_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "resolved_by_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "change_request_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "assigned_to_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "closed_by_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "opened_by_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "sys_created_by": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "sys_updated_by": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}"}}, "created_at": 1705606887.922251, "relation_name": "\"postgres\".\"reddit_ads_integration_tests_3\".\"sys_user_data\"", "raw_code": "", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/servicenow/dbt_servicenow/integration_tests", "depends_on": {"macros": []}}, "seed.servicenow_integration_tests.task_sla_data": {"database": "postgres", "schema": "reddit_ads_integration_tests_3", "name": "task_sla_data", "resource_type": "seed", "package_name": "servicenow_integration_tests", "path": "task_sla_data.csv", "original_file_path": "seeds/task_sla_data.csv", "unique_id": "seed.servicenow_integration_tests.task_sla_data", "fqn": ["servicenow_integration_tests", "task_sla_data"], "alias": "task_sla_data", "checksum": {"name": "sha256", "checksum": "3c68f4e836a348deab955426c54fc3918e1024e1abcdc6869bbe5452d0e63495"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"sys_id": "varchar", "sys_created_on": "timestamp", "resolved_at": "timestamp", "closed_at": "timestamp", "confirmed_by_value": "varchar", "first_reported_by_task_value": "varchar", "requested_by_value": "varchar", "fix_by_value": "varchar", "started_by_value": "varchar", "problem_value": "varchar", "resolved_by_value": "varchar", "change_request_value": "varchar", "assigned_to_value": "varchar", "closed_by_value": "varchar", "opened_by_value": "varchar", "sys_created_by": "varchar", "sys_updated_by": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"sys_id": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "sys_created_on": "timestamp", "resolved_at": "timestamp", "closed_at": "timestamp", "confirmed_by_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "first_reported_by_task_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "requested_by_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "fix_by_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "started_by_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "problem_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "resolved_by_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "change_request_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "assigned_to_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "closed_by_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "opened_by_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "sys_created_by": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "sys_updated_by": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}"}}, "created_at": 1705606887.923816, "relation_name": "\"postgres\".\"reddit_ads_integration_tests_3\".\"task_sla_data\"", "raw_code": "", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/servicenow/dbt_servicenow/integration_tests", "depends_on": {"macros": []}}, "seed.servicenow_integration_tests.task_data": {"database": "postgres", "schema": "reddit_ads_integration_tests_3", "name": "task_data", "resource_type": "seed", "package_name": "servicenow_integration_tests", "path": "task_data.csv", "original_file_path": "seeds/task_data.csv", "unique_id": "seed.servicenow_integration_tests.task_data", "fqn": ["servicenow_integration_tests", "task_data"], "alias": "task_data", "checksum": {"name": "sha256", "checksum": "dbf937656792e38d3612643c033c5597e0f1ae747f00951b0c0232226f4b1c55"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"sys_id": "varchar", "sys_created_on": "timestamp", "resolved_at": "timestamp", "closed_at": "timestamp", "confirmed_by_value": "varchar", "first_reported_by_task_value": "varchar", "requested_by_value": "varchar", "fix_by_value": "varchar", "started_by_value": "varchar", "problem_value": "varchar", "resolved_by_value": "varchar", "change_request_value": "varchar", "assigned_to_value": "varchar", "closed_by_value": "varchar", "opened_by_value": "varchar", "sys_created_by": "varchar", "sys_updated_by": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"sys_id": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "sys_created_on": "timestamp", "resolved_at": "timestamp", "closed_at": "timestamp", "confirmed_by_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "first_reported_by_task_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "requested_by_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "fix_by_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "started_by_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "problem_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "resolved_by_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "change_request_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "assigned_to_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "closed_by_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "opened_by_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "sys_created_by": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "sys_updated_by": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}"}, "enabled": "{{ true if target.type != 'snowflake' else false }}"}, "created_at": 1705606887.926071, "relation_name": "\"postgres\".\"reddit_ads_integration_tests_3\".\"task_data\"", "raw_code": "", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/servicenow/dbt_servicenow/integration_tests", "depends_on": {"macros": []}}, "seed.servicenow_integration_tests.change_request_data": {"database": "postgres", "schema": "reddit_ads_integration_tests_3", "name": "change_request_data", "resource_type": "seed", "package_name": "servicenow_integration_tests", "path": "change_request_data.csv", "original_file_path": "seeds/change_request_data.csv", "unique_id": "seed.servicenow_integration_tests.change_request_data", "fqn": ["servicenow_integration_tests", "change_request_data"], "alias": "change_request_data", "checksum": {"name": "sha256", "checksum": "0cb91934c41d7fbd8b960e47cb39dfabd227b43493a63ae36e6f64913752e5e2"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"sys_id": "varchar", "sys_created_on": "timestamp", "resolved_at": "timestamp", "closed_at": "timestamp", "confirmed_by_value": "varchar", "first_reported_by_task_value": "varchar", "requested_by_value": "varchar", "fix_by_value": "varchar", "started_by_value": "varchar", "problem_value": "varchar", "resolved_by_value": "varchar", "change_request_value": "varchar", "assigned_to_value": "varchar", "closed_by_value": "varchar", "opened_by_value": "varchar", "sys_created_by": "varchar", "sys_updated_by": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"sys_id": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "sys_created_on": "timestamp", "resolved_at": "timestamp", "closed_at": "timestamp", "confirmed_by_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "first_reported_by_task_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "requested_by_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "fix_by_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "started_by_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "problem_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "resolved_by_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "change_request_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "assigned_to_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "closed_by_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "opened_by_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "sys_created_by": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "sys_updated_by": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}"}}, "created_at": 1705606887.92816, "relation_name": "\"postgres\".\"reddit_ads_integration_tests_3\".\"change_request_data\"", "raw_code": "", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/servicenow/dbt_servicenow/integration_tests", "depends_on": {"macros": []}}, "seed.servicenow_integration_tests.incident_data": {"database": "postgres", "schema": "reddit_ads_integration_tests_3", "name": "incident_data", "resource_type": "seed", "package_name": "servicenow_integration_tests", "path": "incident_data.csv", "original_file_path": "seeds/incident_data.csv", "unique_id": "seed.servicenow_integration_tests.incident_data", "fqn": ["servicenow_integration_tests", "incident_data"], "alias": "incident_data", "checksum": {"name": "sha256", "checksum": "c089b3e4389275f9be4e915a11af733b70fe7b66747595f942617f123cfffb37"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"sys_id": "varchar", "sys_created_on": "timestamp", "resolved_at": "timestamp", "closed_at": "timestamp", "confirmed_by_value": "varchar", "first_reported_by_task_value": "varchar", "requested_by_value": "varchar", "fix_by_value": "varchar", "started_by_value": "varchar", "problem_value": "varchar", "resolved_by_value": "varchar", "change_request_value": "varchar", "assigned_to_value": "varchar", "closed_by_value": "varchar", "opened_by_value": "varchar", "sys_created_by": "varchar", "sys_updated_by": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"sys_id": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "sys_created_on": "timestamp", "resolved_at": "timestamp", "closed_at": "timestamp", "confirmed_by_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "first_reported_by_task_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "requested_by_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "fix_by_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "started_by_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "problem_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "resolved_by_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "change_request_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "assigned_to_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "closed_by_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "opened_by_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "sys_created_by": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "sys_updated_by": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}"}}, "created_at": 1705606887.9299788, "relation_name": "\"postgres\".\"reddit_ads_integration_tests_3\".\"incident_data\"", "raw_code": "", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/servicenow/dbt_servicenow/integration_tests", "depends_on": {"macros": []}}, "seed.servicenow_integration_tests.problem_data": {"database": "postgres", "schema": "reddit_ads_integration_tests_3", "name": "problem_data", "resource_type": "seed", "package_name": "servicenow_integration_tests", "path": "problem_data.csv", "original_file_path": "seeds/problem_data.csv", "unique_id": "seed.servicenow_integration_tests.problem_data", "fqn": ["servicenow_integration_tests", "problem_data"], "alias": "problem_data", "checksum": {"name": "sha256", "checksum": "d7f564ad63a27c2cf41e14a3ffaed76d357eac2d7174d7bd96177f4b93585bd8"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"sys_id": "varchar", "sys_created_on": "timestamp", "resolved_at": "timestamp", "closed_at": "timestamp", "confirmed_by_value": "varchar", "first_reported_by_task_value": "varchar", "requested_by_value": "varchar", "fix_by_value": "varchar", "started_by_value": "varchar", "problem_value": "varchar", "resolved_by_value": "varchar", "change_request_value": "varchar", "assigned_to_value": "varchar", "closed_by_value": "varchar", "opened_by_value": "varchar", "sys_created_by": "varchar", "sys_updated_by": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"sys_id": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "sys_created_on": "timestamp", "resolved_at": "timestamp", "closed_at": "timestamp", "confirmed_by_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "first_reported_by_task_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "requested_by_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "fix_by_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "started_by_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "problem_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "resolved_by_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "change_request_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "assigned_to_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "closed_by_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "opened_by_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "sys_created_by": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "sys_updated_by": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}"}}, "created_at": 1705606887.931788, "relation_name": "\"postgres\".\"reddit_ads_integration_tests_3\".\"problem_data\"", "raw_code": "", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/servicenow/dbt_servicenow/integration_tests", "depends_on": {"macros": []}}, "model.servicenow.servicenow__activity_summary": {"database": "postgres", "schema": "reddit_ads_integration_tests_3_servicenow", "name": "servicenow__activity_summary", "resource_type": "model", "package_name": "servicenow", "path": "servicenow__activity_summary.sql", "original_file_path": "models/servicenow__activity_summary.sql", "unique_id": "model.servicenow.servicenow__activity_summary", "fqn": ["servicenow", "servicenow__activity_summary"], "alias": "servicenow__activity_summary", "checksum": {"name": "sha256", "checksum": "d137560990ff822307a61910c8d58d029a5d03891c48aac450139b561081bca6"}, "config": {"enabled": true, "alias": null, "schema": "servicenow", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents aggregate task, problem, change, incident, and change request data by varying grains including update date, status, priority, impact, and urgency.", "columns": {"task_updated_date": {"name": "task_updated_date", "description": "The day the task last got updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "task_state": {"name": "task_state", "description": "Current state or status of the task (e.g., in progress, on hold, closed).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "priority": {"name": "priority", "description": "Priority level assigned to the task. The priority field is automatically calculated based on the values of impact and urgency. This determines the sequence in which the record should be resolved.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impact": {"name": "impact", "description": "Assessment of the impact that completing or not completing the task may have. This is the business loss and potential damage (for example, financial, customer, regulation, security, reputation, brand) caused by the incident", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "urgency": {"name": "urgency", "description": "Level of urgency associated with the record. Speed at which the business expects the record to be resolved.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "Indicates the schema which the field originated. This is especially important when leveraging the union schema feature.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_active_tasks": {"name": "total_active_tasks", "description": "Total number of active tasks", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_active_problem_tasks": {"name": "total_active_problem_tasks", "description": "Total number of active problem tasks", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_active_change_tasks": {"name": "total_active_change_tasks", "description": "Total number of active change tasks", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_associated_problems": {"name": "total_associated_problems", "description": "Total number of problems", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_incidents_caused_by_problems": {"name": "total_incidents_caused_by_problems", "description": "Total number of incidents caused by associated problems", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_change_requests": {"name": "total_change_requests", "description": "Total number of change requests", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_closed_tasks": {"name": "total_closed_tasks", "description": "Total number of closed tasks", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "average_minutes_open_to_close": {"name": "average_minutes_open_to_close", "description": "Average number of minutes between the time that the task was opened to the time that the task was closed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_tasks_made_slas": {"name": "total_tasks_made_slas", "description": "The count of total tasks where is_made_sla = True", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "servicenow://models/servicenow.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "servicenow", "materialized": "table"}, "created_at": 1705606888.9335308, "relation_name": "\"postgres\".\"reddit_ads_integration_tests_3_servicenow\".\"servicenow__activity_summary\"", "raw_code": "with ticket_enhanced as (\n\n select * \n from {{ ref('servicenow__task_enhanced') }}\n)\n\nselect \n task_updated_date,\n task_state,\n priority,\n impact,\n urgency,\n source_relation,\n count(distinct case when is_task_active then task_id end) as total_active_tasks,\n count(distinct case when is_problem_task and is_task_active then task_id end) as total_active_problem_tasks,\n count(distinct case when is_change_task and is_task_active then task_id end) as total_active_change_tasks,\n count(distinct associated_problem_id) as total_associated_problems, \n sum(problem_related_incidents) as total_incidents_caused_by_problems,\n count(distinct associated_change_request_id) as total_change_requests,\n count(distinct case when task_closed_at is not null then task_id end) as total_closed_tasks,\n avg(task_minutes_open_to_close) as average_minutes_open_to_close,\n count(case when is_made_sla then 1 end) as total_tasks_made_slas\n\nfrom ticket_enhanced\ngroup by 1,2,3,4,5,6", "language": "sql", "refs": [{"name": "servicenow__task_enhanced", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.servicenow.servicenow__task_enhanced"]}, "compiled_path": "target/compiled/servicenow/models/servicenow__activity_summary.sql", "compiled": true, "compiled_code": "with ticket_enhanced as (\n\n select * \n from \"postgres\".\"reddit_ads_integration_tests_3_servicenow\".\"servicenow__task_enhanced\"\n)\n\nselect \n task_updated_date,\n task_state,\n priority,\n impact,\n urgency,\n source_relation,\n count(distinct case when is_task_active then task_id end) as total_active_tasks,\n count(distinct case when is_problem_task and is_task_active then task_id end) as total_active_problem_tasks,\n count(distinct case when is_change_task and is_task_active then task_id end) as total_active_change_tasks,\n count(distinct associated_problem_id) as total_associated_problems, \n sum(problem_related_incidents) as total_incidents_caused_by_problems,\n count(distinct associated_change_request_id) as total_change_requests,\n count(distinct case when task_closed_at is not null then task_id end) as total_closed_tasks,\n avg(task_minutes_open_to_close) as average_minutes_open_to_close,\n count(case when is_made_sla then 1 end) as total_tasks_made_slas\n\nfrom ticket_enhanced\ngroup by 1,2,3,4,5,6", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.servicenow.servicenow__task_enhanced": {"database": "postgres", "schema": "reddit_ads_integration_tests_3_servicenow", "name": "servicenow__task_enhanced", "resource_type": "model", "package_name": "servicenow", "path": "servicenow__task_enhanced.sql", "original_file_path": "models/servicenow__task_enhanced.sql", "unique_id": "model.servicenow.servicenow__task_enhanced", "fqn": ["servicenow", "servicenow__task_enhanced"], "alias": "servicenow__task_enhanced", "checksum": {"name": "sha256", "checksum": "c8424356200ec09e56febf1ae746e0b99de30f93e7b3a653bbf84125835a73ac"}, "config": {"enabled": true, "alias": null, "schema": "servicenow", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a task with additional information about its associated problem, incident, or change request. Finally, it contains user information for who opened, started, updated, reported, fixed, closed, requested, reported, or confirmed the task.", "columns": {"task_id": {"name": "task_id", "description": "Unique identifier for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "Indicates the schema which the field originated. This is especially important when leveraging the union schema feature.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_task_active": {"name": "is_task_active", "description": "Flag indicating whether the task is currently active or completed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "activity_due": {"name": "activity_due", "description": "The due date or time for completing the activity associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_assignee_list": {"name": "additional_assignee_list", "description": "List of additional users or assignees associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "approval": {"name": "approval", "description": "Information related to the approval status and process for the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "approval_history": {"name": "approval_history", "description": "History of approvals associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "approval_set": {"name": "approval_set", "description": "Set of approvals linked to the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "assigned_to_link": {"name": "assigned_to_link", "description": "Link to the user or group assigned to the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "assigned_to_value": {"name": "assigned_to_value", "description": "Value representing the user or group assigned to the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "assignment_group_link": {"name": "assignment_group_link", "description": "Link to the assignment group associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "assignment_group_value": {"name": "assignment_group_value", "description": "Value representing the assignment group associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_duration": {"name": "business_duration", "description": "The duration of the task in terms of business hours.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_service_link": {"name": "business_service_link", "description": "Link to the business service associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_service_value": {"name": "business_service_value", "description": "Value representing the business service associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "calendar_duration": {"name": "calendar_duration", "description": "The duration of the task in terms of calendar time.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "close_notes": {"name": "close_notes", "description": "Additional notes or comments recorded upon task closure.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "task_closed_at": {"name": "task_closed_at", "description": "Date and time when the task was closed or completed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "task_minutes_open_to_close": {"name": "task_minutes_open_to_close", "description": "The number of minutes from time that the task was opened to the time that the task was closed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "closed_by_link": {"name": "closed_by_link", "description": "Link to the user who closed or completed the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "closed_by_value": {"name": "closed_by_value", "description": "Value representing the user who closed or completed the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "comments": {"name": "comments", "description": "General comments or notes related to the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "comments_and_work_notes": {"name": "comments_and_work_notes", "description": "Combined information of comments and work notes recorded during the record's lifecycle.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_link": {"name": "company_link", "description": "Link to the company associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_value": {"name": "company_value", "description": "Value representing the company associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_name": {"name": "company_name", "description": "The full name of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contact_type": {"name": "contact_type", "description": "Type of contact associated with the record (e.g., customer, vendor).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "task_description": {"name": "task_description", "description": "Detailed description or information about the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "task_due_date_at": {"name": "task_due_date_at", "description": "The date by which the task is expected to be completed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_start": {"name": "expected_start", "description": "The expected start date or time for the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "task_follow_up_at": {"name": "task_follow_up_at", "description": "Timestamp of when follow up was applied to the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "group_list": {"name": "group_list", "description": "List of groups associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impact": {"name": "impact", "description": "Assessment of the impact that completing or not completing the task may have. This is the business loss and potential damage (for example, financial, customer, regulation, security, reputation, brand) caused by the incident", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "knowledge": {"name": "knowledge", "description": "Indication of whether the task is associated with knowledge or documentation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_made_sla": {"name": "is_made_sla", "description": "Indicates whether the task was completed within the agreed-upon Service Level Agreement (SLA).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "task_number": {"name": "task_number", "description": "Unique identifier or reference number assigned to the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "task_opened_at": {"name": "task_opened_at", "description": "Date and time when the task was initially opened.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "opened_by_link": {"name": "opened_by_link", "description": "Link to the user who initially opened the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "opened_by_value": {"name": "opened_by_value", "description": "Value representing the user who initially opened the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "task_order": {"name": "task_order", "description": "Order or sequence number associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "parent_link": {"name": "parent_link", "description": "Link to the parent task or record associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "parent_value": {"name": "parent_value", "description": "Value representing the parent task or record associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "priority": {"name": "priority", "description": "Priority level assigned to the task. The priority field is automatically calculated based on the values of impact and urgency. This determines the sequence in which the record should be resolved.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reassignment_count": {"name": "reassignment_count", "description": "Count of how many times the task has been reassigned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "route_reason": {"name": "route_reason", "description": "Reason or criteria for routing the task to a particular user or group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "short_description": {"name": "short_description", "description": "Brief or concise summary of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sla_due": {"name": "sla_due", "description": "Date and time by which the record is expected to meet the Service Level Agreement (SLA).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "task_state": {"name": "task_state", "description": "Current state or status of the task (e.g., in progress, on hold, closed).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_class_name": {"name": "sys_class_name", "description": "Name of the table in which the record is stored.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_created_by": {"name": "sys_created_by", "description": "User who initially created the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "task_created_at": {"name": "task_created_at", "description": "Date and time when the task record was initially created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_domain_link": {"name": "sys_domain_link", "description": "Link to the system domain associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_domain_path": {"name": "sys_domain_path", "description": "Path of the system domain associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_domain_value": {"name": "sys_domain_value", "description": "Value representing the system domain associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_updated_by": {"name": "sys_updated_by", "description": "User who last updated or modified the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "task_updated_at": {"name": "task_updated_at", "description": "Date and time when the task record was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "task_updated_date": {"name": "task_updated_date", "description": "The day the task last got updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "task_effective_number": {"name": "task_effective_number", "description": "Effective number or identifier associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "upon_approval": {"name": "upon_approval", "description": "Actions or steps to be taken upon the approval of the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "upon_reject": {"name": "upon_reject", "description": "Actions or steps to be taken upon the rejection of the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "urgency": {"name": "urgency", "description": "Level of urgency associated with the record. Speed at which the business expects the record to be resolved.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "watch_list": {"name": "watch_list", "description": "List of users or groups who are monitoring or \"watching\" the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_end": {"name": "work_end", "description": "Date and time when the work on the task is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_notes": {"name": "work_notes", "description": "Notes or comments recorded during the work on the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_notes_list": {"name": "work_notes_list", "description": "List of work notes recorded during the task's lifecycle.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_start": {"name": "work_start", "description": "Date and time when the work on the task is scheduled to start.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_category": {"name": "problem_category", "description": "The category of the problem.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cause_notes": {"name": "cause_notes", "description": "Additional notes or details about the cause of a particular issue or incident.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_confirmed_at": {"name": "problem_confirmed_at", "description": "The timestamp indicating when the problem was confirmed or acknowledged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_confirmed_by_value": {"name": "problem_confirmed_by_value", "description": "The name or identifier of the person or entity who confirmed or acknowledged the problem.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_first_reported_by_task_value": {"name": "problem_first_reported_by_task_value", "description": "Value representing the related task record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_fix_at": {"name": "problem_fix_at", "description": "The timestamp indicating when the problem is scheduled or planned to be fixed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_fix_by_value": {"name": "problem_fix_by_value", "description": "The name or identifier of the person or entity responsible for fixing the problem.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_fix_notes": {"name": "problem_fix_notes", "description": "Additional notes or details related to the fix for the problem.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_major_problem": {"name": "is_major_problem", "description": "Indicates whether the issue is categorized as a major problem.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_state": {"name": "problem_state", "description": "The current state or status of the problem or issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_related_incidents": {"name": "problem_related_incidents", "description": "Number of incidents that are related to the current problem.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_resolution_code": {"name": "problem_resolution_code", "description": "The code or identifier associated with the resolution of the problem.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_resolved_at": {"name": "problem_resolved_at", "description": "The timestamp indicating when the problem was resolved.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_resolved_by_value": {"name": "problem_resolved_by_value", "description": "The name or identifier of the person or entity who resolved the problem.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_subcategory": {"name": "problem_subcategory", "description": "The specific subcategory or classification of the issue, providing more detailed information about its nature.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_created_at": {"name": "problem_created_at", "description": "Date and time when the problem record was initially created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_updated_at": {"name": "problem_updated_at", "description": "Date and time when the problem record was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "workaround_applied": {"name": "workaround_applied", "description": "Indicates whether a workaround has been applied to address the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_task_cause_code": {"name": "problem_task_cause_code", "description": "The code or identifier associated with the cause of the issue or problem.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_task_close_code": {"name": "problem_task_close_code", "description": "The code or identifier associated with the closure or resolution of the problem task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_task_type": {"name": "problem_task_type", "description": "The type or category of the task associated with the problem or issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_task_started_at": {"name": "problem_task_started_at", "description": "The timestamp indicating when the issue or incident was initiated or started.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "started_by_value": {"name": "started_by_value", "description": "The name or identifier of the person or entity who initiated or started the issue or incident.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_task_type": {"name": "change_task_type", "description": "The type or category of the task associated with the change request or change record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_task_close_code": {"name": "change_task_close_code", "description": "The code or identifier associated with the closure or resolution of the change task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_task_created_from": {"name": "change_task_created_from", "description": "Information about the source or origin of the current record, indicating how it was created or generated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_change_on_hold": {"name": "is_change_on_hold", "description": "Indicates whether the change task is currently on hold or paused.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_on_hold_reason": {"name": "change_on_hold_reason", "description": "The reason or rationale for placing the associated record on hold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_task_planned_end_date": {"name": "change_task_planned_end_date", "description": "The planned or scheduled end date for the change request or change record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_task_planned_start_date": {"name": "change_task_planned_start_date", "description": "The planned or scheduled start date for the change request or change record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_request_category": {"name": "change_request_category", "description": "The category of the change.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_plan": {"name": "change_plan", "description": "Information about the plan or process for implementing the changes associated with the current record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_request_close_code": {"name": "change_request_close_code", "description": "The code or identifier associated with the closure or resolution.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_request_end_date": {"name": "change_request_end_date", "description": "The end date for the implementation or execution associated with the current record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_request_implementation_plan": {"name": "change_request_implementation_plan", "description": "Information about the plan or process for implementing the changes associated with the current record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_request_justification": {"name": "change_request_justification", "description": "The reasoning or justification behind the changes associated with the current record, providing context or explanation for the modifications made.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_change_request_on_hold": {"name": "is_change_request_on_hold", "description": "Indicates whether the change is currently on hold or paused.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_request_on_hold_reason": {"name": "change_request_on_hold_reason", "description": "The reason or rationale for placing the change on hold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_request_phase": {"name": "change_request_phase", "description": "The phase or stage of the change request or change record within the change management process, indicating its progress or status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_request_phase_state": {"name": "change_request_phase_state", "description": "The current state or status of the phase associated with the change request or change record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_request_reason": {"name": "change_request_reason", "description": "The reason or rationale behind the changes associated with the current record, providing context or explanation for the modifications made.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_requested_by_value": {"name": "change_requested_by_value", "description": "The name or identifier of the person or entity who requested or initiated the changes associated with the current record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_requested_by_date": {"name": "change_requested_by_date", "description": "The date when the changes associated with the current record were requested or initiated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_request_review_date": {"name": "change_request_review_date", "description": "The date when the change request was reviewed or evaluated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_request_review_status": {"name": "change_request_review_status", "description": "The status or outcome of the review process for the change request associated with the current record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_request_risk": {"name": "change_request_risk", "description": "The level of risk associated with the changes, indicating the potential impact or consequences of implementing the modifications outlined in the current record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_request_scope": {"name": "change_request_scope", "description": "The scope or extent of the changes outlined in the current record, specifying the areas or components affected by the modifications.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_request_start_date": {"name": "change_request_start_date", "description": "The requested start date for the implementation or execution of the changes associated with the current record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_request_created_at": {"name": "change_request_created_at", "description": "Date and time when the record was initially created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_request_updated_at": {"name": "change_request_updated_at", "description": "Date and time when the record was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_request_test_plan": {"name": "change_request_test_plan", "description": "Information about the plan or process for testing the changes requested by the change request of this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_request_type": {"name": "change_request_type", "description": "The type or category of the changes outlined in the current record, indicating the nature or purpose of the modifications.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_change_request_unauthorized": {"name": "is_change_request_unauthorized", "description": "Indicates whether the changes associated with the current record were made without proper authorization or approval.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_problem_task": {"name": "is_problem_task", "description": "A boolean of whether the task is a problem task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_change_task": {"name": "is_change_task", "description": "A boolean of whether the task is a change task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "creator_email": {"name": "creator_email", "description": "Email address associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "creator_manager_value": {"name": "creator_manager_value", "description": "The name or identifier of the user's manager or supervisor.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "creator_department_value": {"name": "creator_department_value", "description": "Value representing the department associated with the system user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "creator_name": {"name": "creator_name", "description": "The system username or identifier for the user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "creator_roles": {"name": "creator_roles", "description": "The roles assigned to the user in the system or organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updater_email": {"name": "updater_email", "description": "Email address associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updater_manager_value": {"name": "updater_manager_value", "description": "The name or identifier of the user's manager or supervisor.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updater_department_value": {"name": "updater_department_value", "description": "Value representing the department associated with the system user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updater_name": {"name": "updater_name", "description": "The system username or identifier for the user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updater_roles": {"name": "updater_roles", "description": "The roles assigned to the user in the system or organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "opener_manager_value": {"name": "opener_manager_value", "description": "The name or identifier of the user's manager or supervisor.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "opener_email": {"name": "opener_email", "description": "Email address associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "opener_department_value": {"name": "opener_department_value", "description": "Value representing the department associated with the system user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "opener_name": {"name": "opener_name", "description": "The system username or identifier for the user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "opener_roles": {"name": "opener_roles", "description": "The roles assigned to the user in the system or organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "assignee_email": {"name": "assignee_email", "description": "Email address associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "assignee_manager_value": {"name": "assignee_manager_value", "description": "The name or identifier of the user's manager or supervisor.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "assignee_department_value": {"name": "assignee_department_value", "description": "Value representing the department associated with the system user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "assignee_name": {"name": "assignee_name", "description": "The system username or identifier for the user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "assignee_roles": {"name": "assignee_roles", "description": "The roles assigned to the user in the system or organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "closer_email": {"name": "closer_email", "description": "Email address associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "closer_manager_value": {"name": "closer_manager_value", "description": "The name or identifier of the user's manager or supervisor.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "closer_department_value": {"name": "closer_department_value", "description": "Value representing the department associated with the system user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "closer_name": {"name": "closer_name", "description": "The system username or identifier for the user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "closer_roles": {"name": "closer_roles", "description": "The roles assigned to the user in the system or organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_task_starter_email": {"name": "problem_task_starter_email", "description": "Email address associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_task_starter_manager_value": {"name": "problem_task_starter_manager_value", "description": "The name or identifier of the user's manager or supervisor.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_task_starter_department_value": {"name": "problem_task_starter_department_value", "description": "Value representing the department associated with the system user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_task_starter_name": {"name": "problem_task_starter_name", "description": "The system username or identifier for the user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_task_starter_roles": {"name": "problem_task_starter_roles", "description": "The roles assigned to the user in the system or organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "associated_problem_id": {"name": "associated_problem_id", "description": "The associated problem with this task; the sys_id from the problem object.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_confirmer_email": {"name": "problem_confirmer_email", "description": "Email address associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_confirmer_manager_value": {"name": "problem_confirmer_manager_value", "description": "The name or identifier of the user's manager or supervisor.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_confirmer_department_value": {"name": "problem_confirmer_department_value", "description": "Value representing the department associated with the system user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_confirmer_name": {"name": "problem_confirmer_name", "description": "The system username or identifier for the user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_confirmer_roles": {"name": "problem_confirmer_roles", "description": "The roles assigned to the user in the system or organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_reporter_email": {"name": "problem_reporter_email", "description": "Email address associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_reporter_manager_value": {"name": "problem_reporter_manager_value", "description": "The name or identifier of the user's manager or supervisor.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_reporter_department_value": {"name": "problem_reporter_department_value", "description": "Value representing the department associated with the system user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_reporter_name": {"name": "problem_reporter_name", "description": "The system username or identifier for the user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_reporter_roles": {"name": "problem_reporter_roles", "description": "The roles assigned to the user in the system or organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_fixer_email": {"name": "problem_fixer_email", "description": "Email address associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_fixer_manager_value": {"name": "problem_fixer_manager_value", "description": "The name or identifier of the user's manager or supervisor.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_fixer_department_value": {"name": "problem_fixer_department_value", "description": "Value representing the department associated with the system user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_fixer_name": {"name": "problem_fixer_name", "description": "The system username or identifier for the user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_fixer_roles": {"name": "problem_fixer_roles", "description": "The roles assigned to the user in the system or organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_is_known_error": {"name": "problem_is_known_error", "description": "Indicates whether the issue is a known error with a documented resolution.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_resolver_email": {"name": "problem_resolver_email", "description": "Email address associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_resolver_manager_value": {"name": "problem_resolver_manager_value", "description": "The name or identifier of the user's manager or supervisor.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_resolver_department_value": {"name": "problem_resolver_department_value", "description": "Value representing the department associated with the system user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_resolver_name": {"name": "problem_resolver_name", "description": "The system username or identifier for the user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_resolver_roles": {"name": "problem_resolver_roles", "description": "The roles assigned to the user in the system or organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_requester_email": {"name": "change_requester_email", "description": "Email address associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_requester_manager_value": {"name": "change_requester_manager_value", "description": "The name or identifier of the user's manager or supervisor.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_requester_department_value": {"name": "change_requester_department_value", "description": "Value representing the department associated with the system user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_requester_name": {"name": "change_requester_name", "description": "The system username or identifier for the user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_requester_roles": {"name": "change_requester_roles", "description": "The roles assigned to the user in the system or organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "associated_change_request_id": {"name": "associated_change_request_id", "description": "The associated change request with this task; the sys_id from the change request object.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cmdb_ci_link": {"name": "cmdb_ci_link", "description": "Value representing the configuration item (CI) associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cmdb_ci_value": {"name": "cmdb_ci_value", "description": "Value representing the configuration item (CI) associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cmdb_ci_name": {"name": "cmdb_ci_name", "description": "Value representing the configuration item (CI) associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "assignment_group_name": {"name": "assignment_group_name", "description": "Value representing the configuration item (CI) associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_service_name": {"name": "business_service_name", "description": "Value representing the configuration item (CI) associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "servicenow://models/servicenow.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "servicenow", "materialized": "table"}, "created_at": 1705606888.931434, "relation_name": "\"postgres\".\"reddit_ads_integration_tests_3_servicenow\".\"servicenow__task_enhanced\"", "raw_code": "with task as (\n\n select *\n from {{ ref('stg_servicenow__task') }}\n),\n\nproblem_task as (\n \n select *\n from {{ ref('stg_servicenow__problem_task') }}\n),\n\nproblem as (\n \n select *\n from {{ ref('stg_servicenow__problem') }}\n),\n\nchange_task as (\n \n select *\n from {{ ref('stg_servicenow__change_task') }}\n),\n\nchange_request as (\n \n select *\n from {{ ref('stg_servicenow__change_request') }}\n),\n\nsys_user as (\n \n select *\n from {{ ref('stg_servicenow__sys_user') }}\n),\n\nsys_user_group as (\n \n select *\n from {{ ref('stg_servicenow__sys_user_group') }}\n),\n\ncore_company as (\n \n select *\n from {{ ref('stg_servicenow__core_company') }}\n),\n\ncmdb_ci as (\n\n select *\n from {{ ref('stg_servicenow__cmdb_ci') }}\n),\n\ncmdb_ci_service as (\n\n select *\n from {{ ref('stg_servicenow__cmdb_ci_service') }}\n),\n\ntask_enhanced as (\n\nselect \n\n task.task_id,\n task.is_task_active,\n task.task_description,\n task.activity_due,\n task.priority,\n task.impact,\n task.urgency,\n task.task_state,\n task.task_number,\n task.task_order,\n case when problem_task.problem_task_id is not null \n then true \n else false \n end as is_problem_task,\n case when change_task.change_task_id is not null \n then true \n else false \n end as is_change_task,\n task.task_created_at,\n task.sys_created_by,\n task.cmdb_ci_link,\n task.cmdb_ci_value,\n cmdb_ci.cmdb_ci_name,\n creator.email as creator_email,\n creator.manager_value as creator_manager_value,\n creator.department_value as creator_department_value,\n creator.sys_user_name as creator_name,\n creator.roles as creator_roles,\n task.task_updated_at,\n cast ({{ dbt.date_trunc('day', 'task.task_updated_at') }} as date) as task_updated_date,\n task.sys_updated_by,\n updater.email as updater_email,\n updater.manager_value as updater_manager_value,\n updater.department_value as updater_department_value,\n updater.sys_user_name as updater_name,\n updater.roles as updater_roles,\n task.task_opened_at,\n task.opened_by_link,\n task.opened_by_value, \n opener.manager_value as opener_manager_value,\n opener.email as opener_email,\n opener.department_value as opener_department_value,\n opener.sys_user_name as opener_name,\n opener.roles as opener_roles,\n task.assigned_to_link, \n task.assigned_to_value,\n assignee.email as assignee_email,\n assignee.manager_value as assignee_manager_value,\n assignee.department_value as assignee_department_value,\n assignee.sys_user_name as assignee_name,\n assignee.roles as assignee_roles,\n task.task_closed_at,\n {{ dbt.datediff(\"task.task_opened_at\", \"task.task_closed_at\", 'minute') }} as task_minutes_open_to_close,\n task.closed_by_link,\n task.closed_by_value,\n closer.email as closer_email,\n closer.manager_value as closer_manager_value,\n closer.department_value as closer_department_value,\n closer.sys_user_name as closer_name,\n closer.roles as closer_roles,\n task.task_effective_number,\n task.additional_assignee_list,\n task.approval,\n task.approval_history,\n task.approval_set,\n task.assignment_group_link,\n task.assignment_group_value,\n assignment_group.sys_user_group_name as assignment_group_name,\n task.business_duration,\n task.calendar_duration,\n task.business_service_link,\n task.business_service_value,\n business_service.cmdb_ci_service_name as business_service_name,\n task.close_notes,\n task.comments,\n task.comments_and_work_notes,\n task.company_link,\n task.company_value, \n core_company.company_name,\n task.contact_type, \n task.task_due_date_at,\n task.expected_start,\n task.task_follow_up_at,\n task.group_list,\n task.knowledge,\n task.is_made_sla,\n task.sla_due,\n task.parent_link, \n task.parent_value,\n task.reassignment_count,\n task.route_reason,\n task.short_description,\n task.sys_class_name,\n task.sys_domain_link,\n task.sys_domain_path,\n task.sys_domain_value,\n task.upon_approval,\n task.upon_reject,\n task.watch_list,\n task.work_start,\n task.work_end,\n task.work_notes,\n task.work_notes_list,\n problem_task.problem_task_cause_code,\n problem_task.problem_task_close_code,\n problem_task.problem_task_type,\n problem_task.problem_task_started_at,\n problem_task.started_by_value,\n problem_task_starter.email as problem_task_starter_email,\n problem_task_starter.manager_value as problem_task_starter_manager_value,\n problem_task_starter.department_value as problem_task_starter_department_value,\n problem_task_starter.sys_user_name as problem_task_starter_name,\n problem_task_starter.roles as problem_task_starter_roles, \n problem.problem_id as associated_problem_id,\n problem.problem_category,\n problem.cause_notes,\n problem.problem_confirmed_at,\n problem.problem_confirmed_by_value,\n problem_confirmer.email as problem_confirmer_email,\n problem_confirmer.manager_value as problem_confirmer_manager_value,\n problem_confirmer.department_value as problem_confirmer_department_value,\n problem_confirmer.sys_user_name as problem_confirmer_name,\n problem_confirmer.roles as problem_confirmer_roles,\n problem.problem_first_reported_by_task_value,\n problem_reporter.email as problem_reporter_email,\n problem_reporter.manager_value as problem_reporter_manager_value,\n problem_reporter.department_value as problem_reporter_department_value,\n problem_reporter.sys_user_name as problem_reporter_name,\n problem_reporter.roles as problem_reporter_roles,\n problem.problem_fix_at,\n problem.problem_fix_by_value,\n problem_fixer.email as problem_fixer_email,\n problem_fixer.manager_value as problem_fixer_manager_value,\n problem_fixer.department_value as problem_fixer_department_value,\n problem_fixer.sys_user_name as problem_fixer_name,\n problem_fixer.roles as problem_fixer_roles,\n problem.problem_fix_notes,\n problem.is_known_error as problem_is_known_error,\n problem.is_major_problem,\n problem.problem_state,\n problem.problem_related_incidents,\n problem.problem_resolution_code,\n problem.problem_resolved_at,\n problem.problem_resolved_by_value,\n problem.workaround_applied,\n problem_resolver.email as problem_resolver_email,\n problem_resolver.manager_value as problem_resolver_manager_value,\n problem_resolver.department_value as problem_resolver_department_value,\n problem_resolver.sys_user_name as problem_resolver_name,\n problem_resolver.roles as problem_resolver_roles,\n problem.problem_subcategory,\n problem.problem_created_at,\n problem.problem_updated_at,\n change_task.change_task_type,\n change_task.change_task_close_code,\n change_task.change_task_created_from,\n change_task.is_change_on_hold,\n change_task.change_on_hold_reason,\n change_task.change_task_planned_end_date,\n change_task.change_task_planned_start_date,\n change_request.change_request_id as associated_change_request_id,\n change_request.change_request_created_at,\n change_request.change_request_updated_at,\n change_request.change_request_category,\n change_request.change_plan,\n change_request.change_request_close_code,\n change_request.change_request_end_date,\n change_request.change_request_implementation_plan,\n change_request.change_request_justification,\n change_request.is_change_request_on_hold,\n change_request.change_request_on_hold_reason,\n change_request.change_request_phase,\n change_request.change_request_phase_state,\n change_request.change_request_reason,\n change_request.change_requested_by_date,\n change_request.change_requested_by_value,\n change_requester.email as change_requester_email,\n change_requester.manager_value as change_requester_manager_value,\n change_requester.department_value as change_requester_department_value,\n change_requester.sys_user_name as change_requester_name,\n change_requester.roles as change_requester_roles,\n change_request.change_request_review_date,\n change_request.change_request_review_status,\n change_request.change_request_risk,\n change_request.change_request_scope,\n change_request.change_request_start_date,\n change_request.change_request_test_plan,\n change_request.change_request_type,\n change_request.is_change_request_unauthorized,\n task.source_relation\n\nfrom task\nleft join core_company\n on task.company_value = core_company.core_company_id\nleft join problem_task\n on task.task_id = problem_task.problem_task_id\nleft join sys_user problem_task_starter\n on problem_task.started_by_value = problem_task_starter.user_id\nleft join problem\n on problem_task.problem_value = problem.problem_id\nleft join sys_user problem_confirmer\n on problem.problem_confirmed_by_value = problem_confirmer.user_id\nleft join sys_user problem_reporter\n on problem.problem_first_reported_by_task_value = problem_reporter.user_id\nleft join sys_user problem_fixer\n on problem.problem_fix_by_value = problem_fixer.user_id\nleft join sys_user problem_resolver\n on problem.problem_resolved_by_value = problem_resolver.user_id\nleft join change_task\n on task.task_id = change_task.change_task_id\nleft join change_request\n on change_task.change_request_value = change_request.change_request_id\nleft join sys_user change_requester\n on change_request.change_requested_by_value = change_requester.user_id\nleft join sys_user assignee\n on task.assigned_to_value = assignee.user_id\nleft join sys_user closer \n on task.closed_by_value = closer.user_id\nleft join sys_user opener\n on task.opened_by_value = opener.user_id\nleft join sys_user creator\n on task.sys_created_by = creator.user_id\nleft join sys_user updater\n on task.sys_updated_by = updater.user_id\nleft join sys_user_group assignment_group\n on task.assignment_group_value = assignment_group.sys_user_group_id\nleft join cmdb_ci\n on task.cmdb_ci_value = cmdb_ci.cmdb_ci_id\nleft join cmdb_ci_service business_service\n on task.business_service_value = business_service.cmdb_ci_service_id\n)\n\nselect *\nfrom task_enhanced", "language": "sql", "refs": [{"name": "stg_servicenow__task", "package": null, "version": null}, {"name": "stg_servicenow__problem_task", "package": null, "version": null}, {"name": "stg_servicenow__problem", "package": null, "version": null}, {"name": "stg_servicenow__change_task", "package": null, "version": null}, {"name": "stg_servicenow__change_request", "package": null, "version": null}, {"name": "stg_servicenow__sys_user", "package": null, "version": null}, {"name": "stg_servicenow__sys_user_group", "package": null, "version": null}, {"name": "stg_servicenow__core_company", "package": null, "version": null}, {"name": "stg_servicenow__cmdb_ci", "package": null, "version": null}, {"name": "stg_servicenow__cmdb_ci_service", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc", "macro.dbt.datediff"], "nodes": ["model.servicenow.stg_servicenow__task", "model.servicenow.stg_servicenow__problem_task", "model.servicenow.stg_servicenow__problem", "model.servicenow.stg_servicenow__change_task", "model.servicenow.stg_servicenow__change_request", "model.servicenow.stg_servicenow__sys_user", "model.servicenow.stg_servicenow__sys_user_group", "model.servicenow.stg_servicenow__core_company", "model.servicenow.stg_servicenow__cmdb_ci", "model.servicenow.stg_servicenow__cmdb_ci_service"]}, "compiled_path": "target/compiled/servicenow/models/servicenow__task_enhanced.sql", "compiled": true, "compiled_code": "with task as (\n\n select *\n from \"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__task\"\n),\n\nproblem_task as (\n \n select *\n from \"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__problem_task\"\n),\n\nproblem as (\n \n select *\n from \"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__problem\"\n),\n\nchange_task as (\n \n select *\n from \"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__change_task\"\n),\n\nchange_request as (\n \n select *\n from \"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__change_request\"\n),\n\nsys_user as (\n \n select *\n from \"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__sys_user\"\n),\n\nsys_user_group as (\n \n select *\n from \"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__sys_user_group\"\n),\n\ncore_company as (\n \n select *\n from \"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__core_company\"\n),\n\ncmdb_ci as (\n\n select *\n from \"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__cmdb_ci\"\n),\n\ncmdb_ci_service as (\n\n select *\n from \"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__cmdb_ci_service\"\n),\n\ntask_enhanced as (\n\nselect \n\n task.task_id,\n task.is_task_active,\n task.task_description,\n task.activity_due,\n task.priority,\n task.impact,\n task.urgency,\n task.task_state,\n task.task_number,\n task.task_order,\n case when problem_task.problem_task_id is not null \n then true \n else false \n end as is_problem_task,\n case when change_task.change_task_id is not null \n then true \n else false \n end as is_change_task,\n task.task_created_at,\n task.sys_created_by,\n task.cmdb_ci_link,\n task.cmdb_ci_value,\n cmdb_ci.cmdb_ci_name,\n creator.email as creator_email,\n creator.manager_value as creator_manager_value,\n creator.department_value as creator_department_value,\n creator.sys_user_name as creator_name,\n creator.roles as creator_roles,\n task.task_updated_at,\n cast (date_trunc('day', task.task_updated_at) as date) as task_updated_date,\n task.sys_updated_by,\n updater.email as updater_email,\n updater.manager_value as updater_manager_value,\n updater.department_value as updater_department_value,\n updater.sys_user_name as updater_name,\n updater.roles as updater_roles,\n task.task_opened_at,\n task.opened_by_link,\n task.opened_by_value, \n opener.manager_value as opener_manager_value,\n opener.email as opener_email,\n opener.department_value as opener_department_value,\n opener.sys_user_name as opener_name,\n opener.roles as opener_roles,\n task.assigned_to_link, \n task.assigned_to_value,\n assignee.email as assignee_email,\n assignee.manager_value as assignee_manager_value,\n assignee.department_value as assignee_department_value,\n assignee.sys_user_name as assignee_name,\n assignee.roles as assignee_roles,\n task.task_closed_at,\n \n (\n (\n ((task.task_closed_at)::date - (task.task_opened_at)::date)\n * 24 + date_part('hour', (task.task_closed_at)::timestamp) - date_part('hour', (task.task_opened_at)::timestamp))\n * 60 + date_part('minute', (task.task_closed_at)::timestamp) - date_part('minute', (task.task_opened_at)::timestamp))\n as task_minutes_open_to_close,\n task.closed_by_link,\n task.closed_by_value,\n closer.email as closer_email,\n closer.manager_value as closer_manager_value,\n closer.department_value as closer_department_value,\n closer.sys_user_name as closer_name,\n closer.roles as closer_roles,\n task.task_effective_number,\n task.additional_assignee_list,\n task.approval,\n task.approval_history,\n task.approval_set,\n task.assignment_group_link,\n task.assignment_group_value,\n assignment_group.sys_user_group_name as assignment_group_name,\n task.business_duration,\n task.calendar_duration,\n task.business_service_link,\n task.business_service_value,\n business_service.cmdb_ci_service_name as business_service_name,\n task.close_notes,\n task.comments,\n task.comments_and_work_notes,\n task.company_link,\n task.company_value, \n core_company.company_name,\n task.contact_type, \n task.task_due_date_at,\n task.expected_start,\n task.task_follow_up_at,\n task.group_list,\n task.knowledge,\n task.is_made_sla,\n task.sla_due,\n task.parent_link, \n task.parent_value,\n task.reassignment_count,\n task.route_reason,\n task.short_description,\n task.sys_class_name,\n task.sys_domain_link,\n task.sys_domain_path,\n task.sys_domain_value,\n task.upon_approval,\n task.upon_reject,\n task.watch_list,\n task.work_start,\n task.work_end,\n task.work_notes,\n task.work_notes_list,\n problem_task.problem_task_cause_code,\n problem_task.problem_task_close_code,\n problem_task.problem_task_type,\n problem_task.problem_task_started_at,\n problem_task.started_by_value,\n problem_task_starter.email as problem_task_starter_email,\n problem_task_starter.manager_value as problem_task_starter_manager_value,\n problem_task_starter.department_value as problem_task_starter_department_value,\n problem_task_starter.sys_user_name as problem_task_starter_name,\n problem_task_starter.roles as problem_task_starter_roles, \n problem.problem_id as associated_problem_id,\n problem.problem_category,\n problem.cause_notes,\n problem.problem_confirmed_at,\n problem.problem_confirmed_by_value,\n problem_confirmer.email as problem_confirmer_email,\n problem_confirmer.manager_value as problem_confirmer_manager_value,\n problem_confirmer.department_value as problem_confirmer_department_value,\n problem_confirmer.sys_user_name as problem_confirmer_name,\n problem_confirmer.roles as problem_confirmer_roles,\n problem.problem_first_reported_by_task_value,\n problem_reporter.email as problem_reporter_email,\n problem_reporter.manager_value as problem_reporter_manager_value,\n problem_reporter.department_value as problem_reporter_department_value,\n problem_reporter.sys_user_name as problem_reporter_name,\n problem_reporter.roles as problem_reporter_roles,\n problem.problem_fix_at,\n problem.problem_fix_by_value,\n problem_fixer.email as problem_fixer_email,\n problem_fixer.manager_value as problem_fixer_manager_value,\n problem_fixer.department_value as problem_fixer_department_value,\n problem_fixer.sys_user_name as problem_fixer_name,\n problem_fixer.roles as problem_fixer_roles,\n problem.problem_fix_notes,\n problem.is_known_error as problem_is_known_error,\n problem.is_major_problem,\n problem.problem_state,\n problem.problem_related_incidents,\n problem.problem_resolution_code,\n problem.problem_resolved_at,\n problem.problem_resolved_by_value,\n problem.workaround_applied,\n problem_resolver.email as problem_resolver_email,\n problem_resolver.manager_value as problem_resolver_manager_value,\n problem_resolver.department_value as problem_resolver_department_value,\n problem_resolver.sys_user_name as problem_resolver_name,\n problem_resolver.roles as problem_resolver_roles,\n problem.problem_subcategory,\n problem.problem_created_at,\n problem.problem_updated_at,\n change_task.change_task_type,\n change_task.change_task_close_code,\n change_task.change_task_created_from,\n change_task.is_change_on_hold,\n change_task.change_on_hold_reason,\n change_task.change_task_planned_end_date,\n change_task.change_task_planned_start_date,\n change_request.change_request_id as associated_change_request_id,\n change_request.change_request_created_at,\n change_request.change_request_updated_at,\n change_request.change_request_category,\n change_request.change_plan,\n change_request.change_request_close_code,\n change_request.change_request_end_date,\n change_request.change_request_implementation_plan,\n change_request.change_request_justification,\n change_request.is_change_request_on_hold,\n change_request.change_request_on_hold_reason,\n change_request.change_request_phase,\n change_request.change_request_phase_state,\n change_request.change_request_reason,\n change_request.change_requested_by_date,\n change_request.change_requested_by_value,\n change_requester.email as change_requester_email,\n change_requester.manager_value as change_requester_manager_value,\n change_requester.department_value as change_requester_department_value,\n change_requester.sys_user_name as change_requester_name,\n change_requester.roles as change_requester_roles,\n change_request.change_request_review_date,\n change_request.change_request_review_status,\n change_request.change_request_risk,\n change_request.change_request_scope,\n change_request.change_request_start_date,\n change_request.change_request_test_plan,\n change_request.change_request_type,\n change_request.is_change_request_unauthorized,\n task.source_relation\n\nfrom task\nleft join core_company\n on task.company_value = core_company.core_company_id\nleft join problem_task\n on task.task_id = problem_task.problem_task_id\nleft join sys_user problem_task_starter\n on problem_task.started_by_value = problem_task_starter.user_id\nleft join problem\n on problem_task.problem_value = problem.problem_id\nleft join sys_user problem_confirmer\n on problem.problem_confirmed_by_value = problem_confirmer.user_id\nleft join sys_user problem_reporter\n on problem.problem_first_reported_by_task_value = problem_reporter.user_id\nleft join sys_user problem_fixer\n on problem.problem_fix_by_value = problem_fixer.user_id\nleft join sys_user problem_resolver\n on problem.problem_resolved_by_value = problem_resolver.user_id\nleft join change_task\n on task.task_id = change_task.change_task_id\nleft join change_request\n on change_task.change_request_value = change_request.change_request_id\nleft join sys_user change_requester\n on change_request.change_requested_by_value = change_requester.user_id\nleft join sys_user assignee\n on task.assigned_to_value = assignee.user_id\nleft join sys_user closer \n on task.closed_by_value = closer.user_id\nleft join sys_user opener\n on task.opened_by_value = opener.user_id\nleft join sys_user creator\n on task.sys_created_by = creator.user_id\nleft join sys_user updater\n on task.sys_updated_by = updater.user_id\nleft join sys_user_group assignment_group\n on task.assignment_group_value = assignment_group.sys_user_group_id\nleft join cmdb_ci\n on task.cmdb_ci_value = cmdb_ci.cmdb_ci_id\nleft join cmdb_ci_service business_service\n on task.business_service_value = business_service.cmdb_ci_service_id\n)\n\nselect *\nfrom task_enhanced", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.servicenow.stg_servicenow__task": {"database": "postgres", "schema": "reddit_ads_integration_tests_3_stg_servicenow", "name": "stg_servicenow__task", "resource_type": "model", "package_name": "servicenow", "path": "staging/stg_servicenow__task.sql", "original_file_path": "models/staging/stg_servicenow__task.sql", "unique_id": "model.servicenow.stg_servicenow__task", "fqn": ["servicenow", "staging", "stg_servicenow__task"], "alias": "stg_servicenow__task", "checksum": {"name": "sha256", "checksum": "b5144212b436ffaa76dbd98cea781631129813683c57fb011cc4d187f95db145"}, "config": {"enabled": true, "alias": null, "schema": "stg_servicenow", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Staging table containing all tasks related information. A task represents a unit of work that needs to be accomplished or tracked within the ServiceNow system. It can be related to various processes, such as incident resolution, change management, or other workflows.", "columns": {"task_id": {"name": "task_id", "description": "Unique identifier for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "Indicates the schema which the field originated. This is especially important when leveraging the union schema feature.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates whether the task record has been marked as deleted by the Fivetran connector.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Indicates whether the task record has been synchronized by the Fivetran connector.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_task_active": {"name": "is_task_active", "description": "Flag indicating whether the task is currently active or completed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "activity_due": {"name": "activity_due", "description": "The due date or time for completing the activity associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_assignee_list": {"name": "additional_assignee_list", "description": "List of additional users or assignees associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "approval": {"name": "approval", "description": "Information related to the approval status and process for the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "approval_history": {"name": "approval_history", "description": "History of approvals associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "approval_set": {"name": "approval_set", "description": "Set of approvals linked to the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "assigned_to_link": {"name": "assigned_to_link", "description": "Link to the user or group assigned to the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "assigned_to_value": {"name": "assigned_to_value", "description": "Value representing the user or group assigned to the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "assignment_group_link": {"name": "assignment_group_link", "description": "Link to the assignment group associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "assignment_group_value": {"name": "assignment_group_value", "description": "Value representing the assignment group associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_duration": {"name": "business_duration", "description": "The duration of the task in terms of business hours.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_service_link": {"name": "business_service_link", "description": "Link to the business service associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_service_value": {"name": "business_service_value", "description": "Value representing the business service associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "calendar_duration": {"name": "calendar_duration", "description": "The duration of the task in terms of calendar time.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "close_notes": {"name": "close_notes", "description": "Additional notes or comments recorded upon task closure.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "task_closed_at": {"name": "task_closed_at", "description": "Date and time when the task was closed or completed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "closed_by_link": {"name": "closed_by_link", "description": "Link to the user who closed or completed the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "closed_by_value": {"name": "closed_by_value", "description": "Value representing the user who closed or completed the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cmdb_ci_link": {"name": "cmdb_ci_link", "description": "Link to the configuration item (CI) associated with the record in the Configuration Management Database (CMDB).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cmdb_ci_value": {"name": "cmdb_ci_value", "description": "Value representing the configuration item (CI) associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "comments": {"name": "comments", "description": "General comments or notes related to the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "comments_and_work_notes": {"name": "comments_and_work_notes", "description": "Combined information of comments and work notes recorded during the record's lifecycle.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_link": {"name": "company_link", "description": "Link to the company associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_value": {"name": "company_value", "description": "Value representing the company associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contact_type": {"name": "contact_type", "description": "Type of contact associated with the record (e.g., customer, vendor).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_link": {"name": "contract_link", "description": "Link to the contract associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_value": {"name": "contract_value", "description": "Value representing the contract associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "correlation_display": {"name": "correlation_display", "description": "Display information related to correlation of the record with other records.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "correlation_id": {"name": "correlation_id", "description": "Identifier used for correlating the record with related records.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "delivery_plan_link": {"name": "delivery_plan_link", "description": "Link to the delivery plan associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "delivery_plan_value": {"name": "delivery_plan_value", "description": "Value representing the delivery plan associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "delivery_task_link": {"name": "delivery_task_link", "description": "Link to the delivery task associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "delivery_task_value": {"name": "delivery_task_value", "description": "Value representing the delivery task associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "task_description": {"name": "task_description", "description": "Detailed description or information about the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "task_due_date_at": {"name": "task_due_date_at", "description": "The date by which the task is expected to be completed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "escalation": {"name": "escalation", "description": "Information about any escalation procedures or steps related to the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_start": {"name": "expected_start", "description": "The expected start date or time for the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "task_follow_up_at": {"name": "task_follow_up_at", "description": "Timestamp of when follow up was applied to the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "group_list": {"name": "group_list", "description": "List of groups associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impact": {"name": "impact", "description": "Assessment of the impact that completing or not completing the task may have. This is the business loss and potential damage (for example, financial, customer, regulation, security, reputation, brand) caused by the incident", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "knowledge": {"name": "knowledge", "description": "Indication of whether the task is associated with knowledge or documentation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "location_link": {"name": "location_link", "description": "Link to the location associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "location_value": {"name": "location_value", "description": "Value representing the location associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_made_sla": {"name": "is_made_sla", "description": "Indicates whether the task was completed within the agreed-upon Service Level Agreement (SLA).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "task_number": {"name": "task_number", "description": "Unique identifier or reference number assigned to the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "task_opened_at": {"name": "task_opened_at", "description": "Date and time when the task was initially opened.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "opened_by_link": {"name": "opened_by_link", "description": "Link to the user who initially opened the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "opened_by_value": {"name": "opened_by_value", "description": "Value representing the user who initially opened the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "task_order": {"name": "task_order", "description": "Order or sequence number associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "parent_link": {"name": "parent_link", "description": "Link to the parent task or record associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "parent_value": {"name": "parent_value", "description": "Value representing the parent task or record associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "priority": {"name": "priority", "description": "Priority level assigned to the task. The priority field is automatically calculated based on the values of impact and urgency. This determines the sequence in which the record should be resolved.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reassignment_count": {"name": "reassignment_count", "description": "Count of how many times the task has been reassigned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "rejection_goto_link": {"name": "rejection_goto_link", "description": "Link to the record or step to be followed in case of task rejection.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "rejection_goto_value": {"name": "rejection_goto_value", "description": "Value representing the record or step to be followed in case of task rejection.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "route_reason": {"name": "route_reason", "description": "Reason or criteria for routing the task to a particular user or group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "service_offering_link": {"name": "service_offering_link", "description": "Link to the service offering associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "service_offering_value": {"name": "service_offering_value", "description": "Value representing the service offering associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "short_description": {"name": "short_description", "description": "Brief or concise summary of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sla_due": {"name": "sla_due", "description": "Date and time by which the record is expected to meet the Service Level Agreement (SLA).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "task_state": {"name": "task_state", "description": "Current state or status of the task (e.g., in progress, on hold, closed).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_class_name": {"name": "sys_class_name", "description": "Name of the table in which the record is stored.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_created_by": {"name": "sys_created_by", "description": "User who initially created the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "task_created_at": {"name": "task_created_at", "description": "Date and time when the task record was initially created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_domain_link": {"name": "sys_domain_link", "description": "Link to the system domain associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_domain_path": {"name": "sys_domain_path", "description": "Path of the system domain associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_domain_value": {"name": "sys_domain_value", "description": "Value representing the system domain associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_mod_count": {"name": "sys_mod_count", "description": "Number of times the record has been modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_updated_by": {"name": "sys_updated_by", "description": "User who last updated or modified the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "task_updated_at": {"name": "task_updated_at", "description": "Date and time when the task record was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "task_effective_number": {"name": "task_effective_number", "description": "Effective number or identifier associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "universal_request_link": {"name": "universal_request_link", "description": "Link to the universal request associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "universal_request_value": {"name": "universal_request_value", "description": "Value representing the universal request associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "upon_approval": {"name": "upon_approval", "description": "Actions or steps to be taken upon the approval of the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "upon_reject": {"name": "upon_reject", "description": "Actions or steps to be taken upon the rejection of the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "urgency": {"name": "urgency", "description": "Level of urgency associated with the record. Speed at which the business expects the record to be resolved.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "watch_list": {"name": "watch_list", "description": "List of users or groups who are monitoring or \"watching\" the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "wf_activity_link": {"name": "wf_activity_link", "description": "Link to the workflow activity associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "wf_activity_value": {"name": "wf_activity_value", "description": "Value representing the workflow activity associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_end": {"name": "work_end", "description": "Date and time when the work on the task is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_notes": {"name": "work_notes", "description": "Notes or comments recorded during the work on the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_notes_list": {"name": "work_notes_list", "description": "List of work notes recorded during the task's lifecycle.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_start": {"name": "work_start", "description": "Date and time when the work on the task is scheduled to start.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "servicenow://models/staging/stg_servicenow.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_servicenow", "materialized": "view"}, "created_at": 1705606889.120489, "relation_name": "\"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__task\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_servicenow__task_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_servicenow__task_base')),\n staging_columns=get_task_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='servicenow_union_schemas', \n union_database_variable='servicenow_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n cast(sys_id as {{ dbt.type_string() }}) as task_id,\n cast(sys_created_on as {{ dbt.type_timestamp() }}) as task_created_at,\n cast(sys_updated_on as {{ dbt.type_timestamp() }}) as task_updated_at,\n _fivetran_deleted,\n _fivetran_synced,\n active as is_task_active,\n activity_due,\n additional_assignee_list,\n approval,\n approval_history,\n approval_set,\n assigned_to_link,\n cast(assigned_to_value as {{ dbt.type_string() }}) as assigned_to_value,\n assignment_group_link,\n cast(assignment_group_value as {{ dbt.type_string() }}) as assignment_group_value,\n business_duration,\n business_service_link,\n cast(business_service_value as {{ dbt.type_string() }}) as business_service_value,\n calendar_duration,\n close_notes,\n closed_at as task_closed_at,\n closed_by_link,\n cast(closed_by_value as {{ dbt.type_string() }}) as closed_by_value,\n cmdb_ci_link,\n cast(cmdb_ci_value as {{ dbt.type_string() }}) as cmdb_ci_value,\n comments,\n comments_and_work_notes,\n company_link,\n cast(company_value as {{ dbt.type_string() }}) as company_value,\n contact_type,\n contract_link,\n cast(contract_value as {{ dbt.type_string() }}) as contract_value,\n correlation_display,\n correlation_id,\n delivery_plan_link,\n cast(delivery_plan_value as {{ dbt.type_string() }}) as delivery_plan_value,\n delivery_task_link,\n cast(delivery_task_value as {{ dbt.type_string() }}) as delivery_task_value,\n description as task_description,\n due_date as task_due_date_at,\n escalation,\n expected_start,\n follow_up as task_follow_up_at,\n group_list,\n impact,\n knowledge,\n location_link,\n cast(location_value as {{ dbt.type_string() }}) as location_value,\n made_sla as is_made_sla,\n number as task_number,\n opened_at as task_opened_at,\n opened_by_link,\n cast(opened_by_value as {{ dbt.type_string() }}) as opened_by_value,\n task_order, -- Renamed within the get_task_columns() macro.\n parent_link,\n cast(parent_value as {{ dbt.type_string() }}) as parent_value,\n priority,\n reassignment_count,\n rejection_goto_link,\n cast(rejection_goto_value as {{ dbt.type_string() }}) as rejection_goto_value,\n route_reason,\n service_offering_link,\n cast(service_offering_value as {{ dbt.type_string() }}) as service_offering_value,\n short_description,\n sla_due,\n state as task_state,\n sys_class_name,\n sys_created_by,\n sys_domain_link,\n sys_domain_path,\n cast(sys_domain_value as {{ dbt.type_string() }}) as sys_domain_value,\n sys_mod_count,\n sys_updated_by,\n task_effective_number,\n universal_request_link,\n cast(universal_request_value as {{ dbt.type_string() }}) as universal_request_value,\n upon_approval,\n upon_reject,\n urgency,\n watch_list,\n wf_activity_link,\n cast(wf_activity_value as {{ dbt.type_string() }}) as wf_activity_value,\n work_end,\n work_notes,\n work_notes_list,\n work_start\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_servicenow__task_base", "package": null, "version": null}, {"name": "stg_servicenow__task_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.servicenow.get_task_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string", "macro.dbt.type_timestamp"], "nodes": ["model.servicenow.stg_servicenow__task_base"]}, "compiled_path": "target/compiled/servicenow/models/staging/stg_servicenow__task.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__task_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n activity_due\n \n as \n \n activity_due\n \n, \n \n \n additional_assignee_list\n \n as \n \n additional_assignee_list\n \n, \n \n \n approval\n \n as \n \n approval\n \n, \n \n \n approval_history\n \n as \n \n approval_history\n \n, \n \n \n approval_set\n \n as \n \n approval_set\n \n, \n \n \n assigned_to_link\n \n as \n \n assigned_to_link\n \n, \n \n \n assigned_to_value\n \n as \n \n assigned_to_value\n \n, \n \n \n assignment_group_link\n \n as \n \n assignment_group_link\n \n, \n \n \n assignment_group_value\n \n as \n \n assignment_group_value\n \n, \n \n \n business_duration\n \n as \n \n business_duration\n \n, \n \n \n business_service_link\n \n as \n \n business_service_link\n \n, \n \n \n business_service_value\n \n as \n \n business_service_value\n \n, \n \n \n calendar_duration\n \n as \n \n calendar_duration\n \n, \n \n \n close_notes\n \n as \n \n close_notes\n \n, \n \n \n closed_at\n \n as \n \n closed_at\n \n, \n \n \n closed_by_link\n \n as \n \n closed_by_link\n \n, \n \n \n closed_by_value\n \n as \n \n closed_by_value\n \n, \n \n \n cmdb_ci_link\n \n as \n \n cmdb_ci_link\n \n, \n \n \n cmdb_ci_value\n \n as \n \n cmdb_ci_value\n \n, \n \n \n comments\n \n as \n \n comments\n \n, \n \n \n comments_and_work_notes\n \n as \n \n comments_and_work_notes\n \n, \n \n \n company_link\n \n as \n \n company_link\n \n, \n \n \n company_value\n \n as \n \n company_value\n \n, \n \n \n contact_type\n \n as \n \n contact_type\n \n, \n \n \n contract_link\n \n as \n \n contract_link\n \n, \n \n \n contract_value\n \n as \n \n contract_value\n \n, \n \n \n correlation_display\n \n as \n \n correlation_display\n \n, \n \n \n correlation_id\n \n as \n \n correlation_id\n \n, \n \n \n delivery_plan_link\n \n as \n \n delivery_plan_link\n \n, \n \n \n delivery_plan_value\n \n as \n \n delivery_plan_value\n \n, \n \n \n delivery_task_link\n \n as \n \n delivery_task_link\n \n, \n \n \n delivery_task_value\n \n as \n \n delivery_task_value\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n due_date\n \n as \n \n due_date\n \n, \n \n \n escalation\n \n as \n \n escalation\n \n, \n \n \n expected_start\n \n as \n \n expected_start\n \n, \n \n \n follow_up\n \n as \n \n follow_up\n \n, \n \n \n group_list\n \n as \n \n group_list\n \n, \n \n \n impact\n \n as \n \n impact\n \n, \n \n \n knowledge\n \n as \n \n knowledge\n \n, \n \n \n location_link\n \n as \n \n location_link\n \n, \n \n \n location_value\n \n as \n \n location_value\n \n, \n \n \n made_sla\n \n as \n \n made_sla\n \n, \n \n \n number\n \n as \n \n number\n \n, \n \n \n opened_at\n \n as \n \n opened_at\n \n, \n \n \n opened_by_link\n \n as \n \n opened_by_link\n \n, \n \n \n opened_by_value\n \n as \n \n opened_by_value\n \n, \n \n \n \n \n \"order\"\n \n \n \n as task_order , \n \n \n parent_link\n \n as \n \n parent_link\n \n, \n \n \n parent_value\n \n as \n \n parent_value\n \n, \n \n \n priority\n \n as \n \n priority\n \n, \n \n \n reassignment_count\n \n as \n \n reassignment_count\n \n, \n \n \n rejection_goto_link\n \n as \n \n rejection_goto_link\n \n, \n \n \n rejection_goto_value\n \n as \n \n rejection_goto_value\n \n, \n \n \n route_reason\n \n as \n \n route_reason\n \n, \n \n \n service_offering_link\n \n as \n \n service_offering_link\n \n, \n \n \n service_offering_value\n \n as \n \n service_offering_value\n \n, \n \n \n short_description\n \n as \n \n short_description\n \n, \n \n \n sla_due\n \n as \n \n sla_due\n \n, \n \n \n state\n \n as \n \n state\n \n, \n \n \n sys_class_name\n \n as \n \n sys_class_name\n \n, \n \n \n sys_created_by\n \n as \n \n sys_created_by\n \n, \n \n \n sys_created_on\n \n as \n \n sys_created_on\n \n, \n \n \n sys_domain_link\n \n as \n \n sys_domain_link\n \n, \n \n \n sys_domain_path\n \n as \n \n sys_domain_path\n \n, \n \n \n sys_domain_value\n \n as \n \n sys_domain_value\n \n, \n \n \n sys_id\n \n as \n \n sys_id\n \n, \n \n \n sys_mod_count\n \n as \n \n sys_mod_count\n \n, \n \n \n sys_updated_by\n \n as \n \n sys_updated_by\n \n, \n \n \n sys_updated_on\n \n as \n \n sys_updated_on\n \n, \n \n \n task_effective_number\n \n as \n \n task_effective_number\n \n, \n \n \n universal_request_link\n \n as \n \n universal_request_link\n \n, \n \n \n universal_request_value\n \n as \n \n universal_request_value\n \n, \n \n \n upon_approval\n \n as \n \n upon_approval\n \n, \n \n \n upon_reject\n \n as \n \n upon_reject\n \n, \n \n \n urgency\n \n as \n \n urgency\n \n, \n \n \n watch_list\n \n as \n \n watch_list\n \n, \n \n \n wf_activity_link\n \n as \n \n wf_activity_link\n \n, \n \n \n wf_activity_value\n \n as \n \n wf_activity_value\n \n, \n \n \n work_end\n \n as \n \n work_end\n \n, \n \n \n work_notes\n \n as \n \n work_notes\n \n, \n \n \n work_notes_list\n \n as \n \n work_notes_list\n \n, \n \n \n work_start\n \n as \n \n work_start\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n cast(sys_id as TEXT) as task_id,\n cast(sys_created_on as timestamp) as task_created_at,\n cast(sys_updated_on as timestamp) as task_updated_at,\n _fivetran_deleted,\n _fivetran_synced,\n active as is_task_active,\n activity_due,\n additional_assignee_list,\n approval,\n approval_history,\n approval_set,\n assigned_to_link,\n cast(assigned_to_value as TEXT) as assigned_to_value,\n assignment_group_link,\n cast(assignment_group_value as TEXT) as assignment_group_value,\n business_duration,\n business_service_link,\n cast(business_service_value as TEXT) as business_service_value,\n calendar_duration,\n close_notes,\n closed_at as task_closed_at,\n closed_by_link,\n cast(closed_by_value as TEXT) as closed_by_value,\n cmdb_ci_link,\n cast(cmdb_ci_value as TEXT) as cmdb_ci_value,\n comments,\n comments_and_work_notes,\n company_link,\n cast(company_value as TEXT) as company_value,\n contact_type,\n contract_link,\n cast(contract_value as TEXT) as contract_value,\n correlation_display,\n correlation_id,\n delivery_plan_link,\n cast(delivery_plan_value as TEXT) as delivery_plan_value,\n delivery_task_link,\n cast(delivery_task_value as TEXT) as delivery_task_value,\n description as task_description,\n due_date as task_due_date_at,\n escalation,\n expected_start,\n follow_up as task_follow_up_at,\n group_list,\n impact,\n knowledge,\n location_link,\n cast(location_value as TEXT) as location_value,\n made_sla as is_made_sla,\n number as task_number,\n opened_at as task_opened_at,\n opened_by_link,\n cast(opened_by_value as TEXT) as opened_by_value,\n task_order, -- Renamed within the get_task_columns() macro.\n parent_link,\n cast(parent_value as TEXT) as parent_value,\n priority,\n reassignment_count,\n rejection_goto_link,\n cast(rejection_goto_value as TEXT) as rejection_goto_value,\n route_reason,\n service_offering_link,\n cast(service_offering_value as TEXT) as service_offering_value,\n short_description,\n sla_due,\n state as task_state,\n sys_class_name,\n sys_created_by,\n sys_domain_link,\n sys_domain_path,\n cast(sys_domain_value as TEXT) as sys_domain_value,\n sys_mod_count,\n sys_updated_by,\n task_effective_number,\n universal_request_link,\n cast(universal_request_value as TEXT) as universal_request_value,\n upon_approval,\n upon_reject,\n urgency,\n watch_list,\n wf_activity_link,\n cast(wf_activity_value as TEXT) as wf_activity_value,\n work_end,\n work_notes,\n work_notes_list,\n work_start\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.servicenow.stg_servicenow__cmdb_ci": {"database": "postgres", "schema": "reddit_ads_integration_tests_3_stg_servicenow", "name": "stg_servicenow__cmdb_ci", "resource_type": "model", "package_name": "servicenow", "path": "staging/stg_servicenow__cmdb_ci.sql", "original_file_path": "models/staging/stg_servicenow__cmdb_ci.sql", "unique_id": "model.servicenow.stg_servicenow__cmdb_ci", "fqn": ["servicenow", "staging", "stg_servicenow__cmdb_ci"], "alias": "stg_servicenow__cmdb_ci", "checksum": {"name": "sha256", "checksum": "daf7764075778b71123b0edadf4f514beb7a2445af4e5b5cef9c6a7b381df0a4"}, "config": {"enabled": true, "alias": null, "schema": "stg_servicenow", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Staging table containing all records relating to CI(Configuration Item) tables in the CMDB (Configuration Management Database)", "columns": {"cmdb_ci_id": {"name": "cmdb_ci_id", "description": "Unique identifier for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates whether the task record has been marked as deleted by the Fivetran connector.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Indicates whether the task record has been synchronized by the Fivetran connector.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "attributes": {"name": "attributes", "description": "Data elements which describe the characteristics of CIs", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_unit_link": {"name": "business_unit_link", "description": "Link to business unit. Business units usually comprise departments and are associated with a company", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_unit_value": {"name": "business_unit_value", "description": "The ID of the business unit.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "category": {"name": "category", "description": "The category of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_link": {"name": "company_link", "description": "Link to the company associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_value": {"name": "company_value", "description": "Value representing the company associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost": {"name": "cost", "description": "The cost related to the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost_cc": {"name": "cost_cc", "description": "The cost center that the record belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost_center_link": {"name": "cost_center_link", "description": "Link to the cost center associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost_center_value": {"name": "cost_center_value", "description": "Value representing the cost center associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "managed_by_link": {"name": "managed_by_link", "description": "The link to the user profile that manages this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "managed_by_value": {"name": "managed_by_value", "description": "The ID of the user profile that manages this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "manufacturer_link": {"name": "manufacturer_link", "description": "The link to the manufacturer that manages this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "manufacturer_value": {"name": "manufacturer_value", "description": "The ID of the manufacturer that manages this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "model_id_link": {"name": "model_id_link", "description": "The link to the model related to the CI.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "model_id_value": {"name": "model_id_value", "description": "The ID to the model related to the CI.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "model_number": {"name": "model_number", "description": "The number of the model related to the IC.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cmdb_ci_name": {"name": "cmdb_ci_name", "description": "The full name of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "owned_by_link": {"name": "owned_by_link", "description": "The link to the owner of the CI related to this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "owned_by_value": {"name": "owned_by_value", "description": "The ID to the owner of the CI related to this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "subcategory": {"name": "subcategory", "description": "The specific subcategory or classification of the record, providing more detailed information about its nature.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_class_name": {"name": "sys_class_name", "description": "Name of the table in which the record is stored.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_class_path": {"name": "sys_class_path", "description": "Where a particular CI class is within the overall hierarchy of classes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_created_by": {"name": "sys_created_by", "description": "User who initially created the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cmdb_ci_created_at": {"name": "cmdb_ci_created_at", "description": "Date and time when the record was initially created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_domain_link": {"name": "sys_domain_link", "description": "Link to the system domain associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_domain_path": {"name": "sys_domain_path", "description": "Path of the system domain associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_domain_value": {"name": "sys_domain_value", "description": "Value representing the system domain associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_mod_count": {"name": "sys_mod_count", "description": "Number of times the record has been modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_updated_by": {"name": "sys_updated_by", "description": "User who last updated or modified the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cmdb_ci_updated_at": {"name": "cmdb_ci_updated_at", "description": "Date and time when the record was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vendor_link": {"name": "vendor_link", "description": "A link to the vendor or external entity associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vendor_value": {"name": "vendor_value", "description": "The name or identifier of the vendor or external entity linked to the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "Indicates the schema which the field originated. This is especially important when leveraging the union schema feature.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "unverified": {"name": "unverified", "description": "Boolean indicating if the change task is unverified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "servicenow://models/staging/stg_servicenow.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_servicenow", "materialized": "view"}, "created_at": 1705606889.135031, "relation_name": "\"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__cmdb_ci\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_servicenow__cmdb_ci_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_servicenow__cmdb_ci_base')),\n staging_columns=get_cmdb_ci_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='servicenow_union_schemas', \n union_database_variable='servicenow_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation, \n cast(sys_id as {{ dbt.type_string() }}) as cmdb_ci_id,\n cast(sys_created_on as {{ dbt.type_timestamp() }}) as cmdb_ci_created_at,\n cast(sys_updated_on as {{ dbt.type_timestamp() }}) as cmdb_ci_updated_at,\n _fivetran_deleted,\n _fivetran_synced,\n attributes,\n business_unit_link,\n cast(business_unit_value as {{ dbt.type_string() }}) as business_unit_value,\n category,\n company_link,\n cast(company_value as {{ dbt.type_string() }}) as company_value,\n cost,\n cost_cc,\n cost_center_link,\n cast(cost_center_value as {{ dbt.type_string() }}) as cost_center_value,\n managed_by_link,\n cast(managed_by_value as {{ dbt.type_string() }}) as managed_by_value,\n manufacturer_link,\n cast(manufacturer_value as {{ dbt.type_string() }}) as manufacturer_value,\n model_id_link,\n cast(model_id_value as {{ dbt.type_string() }}) as model_id_value,\n model_number,\n name as cmdb_ci_name,\n owned_by_link,\n cast(owned_by_value as {{ dbt.type_string() }}) as owned_by_value,\n subcategory,\n sys_class_name,\n sys_class_path,\n sys_created_by,\n sys_domain_link,\n sys_domain_path,\n cast(sys_domain_value as {{ dbt.type_string() }}) as sys_domain_value,\n sys_mod_count,\n sys_updated_by,\n unverified,\n vendor_link,\n cast(vendor_value as {{ dbt.type_string() }}) as vendor_value\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_servicenow__cmdb_ci_base", "package": null, "version": null}, {"name": "stg_servicenow__cmdb_ci_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.servicenow.get_cmdb_ci_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string", "macro.dbt.type_timestamp"], "nodes": ["model.servicenow.stg_servicenow__cmdb_ci_base"]}, "compiled_path": "target/compiled/servicenow/models/staging/stg_servicenow__cmdb_ci.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__cmdb_ci_base\"\n),\n\nfields as (\n\n select\n \n cast(null as boolean) as \n \n _fivetran_deleted\n \n , \n cast(null as timestamp) as \n \n _fivetran_synced\n \n , \n cast(null as TEXT) as \n \n attributes\n \n , \n cast(null as TEXT) as \n \n business_unit_link\n \n , \n cast(null as TEXT) as \n \n business_unit_value\n \n , \n cast(null as TEXT) as \n \n category\n \n , \n cast(null as TEXT) as \n \n company_link\n \n , \n cast(null as TEXT) as \n \n company_value\n \n , \n cast(null as float) as \n \n cost\n \n , \n cast(null as TEXT) as \n \n cost_cc\n \n , \n cast(null as TEXT) as \n \n cost_center_link\n \n , \n cast(null as TEXT) as \n \n cost_center_value\n \n , \n cast(null as TEXT) as \n \n managed_by_link\n \n , \n cast(null as TEXT) as \n \n managed_by_value\n \n , \n cast(null as TEXT) as \n \n manufacturer_link\n \n , \n cast(null as TEXT) as \n \n manufacturer_value\n \n , \n cast(null as TEXT) as \n \n model_id_link\n \n , \n cast(null as TEXT) as \n \n model_id_value\n \n , \n cast(null as TEXT) as \n \n model_number\n \n , \n cast(null as TEXT) as \n \n name\n \n , \n cast(null as TEXT) as \n \n owned_by_link\n \n , \n cast(null as TEXT) as \n \n owned_by_value\n \n , \n cast(null as TEXT) as \n \n subcategory\n \n , \n cast(null as TEXT) as \n \n sys_class_name\n \n , \n cast(null as TEXT) as \n \n sys_class_path\n \n , \n cast(null as TEXT) as \n \n sys_created_by\n \n , \n cast(null as timestamp) as \n \n sys_created_on\n \n , \n cast(null as TEXT) as \n \n sys_domain_link\n \n , \n cast(null as TEXT) as \n \n sys_domain_path\n \n , \n cast(null as TEXT) as \n \n sys_domain_value\n \n , \n cast(null as TEXT) as \n \n sys_id\n \n , \n cast(null as integer) as \n \n sys_mod_count\n \n , \n cast(null as TEXT) as \n \n sys_updated_by\n \n , \n cast(null as timestamp) as \n \n sys_updated_on\n \n , \n cast(null as boolean) as \n \n unverified\n \n , \n cast(null as TEXT) as \n \n vendor_link\n \n , \n cast(null as TEXT) as \n \n vendor_value\n \n \n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation, \n cast(sys_id as TEXT) as cmdb_ci_id,\n cast(sys_created_on as timestamp) as cmdb_ci_created_at,\n cast(sys_updated_on as timestamp) as cmdb_ci_updated_at,\n _fivetran_deleted,\n _fivetran_synced,\n attributes,\n business_unit_link,\n cast(business_unit_value as TEXT) as business_unit_value,\n category,\n company_link,\n cast(company_value as TEXT) as company_value,\n cost,\n cost_cc,\n cost_center_link,\n cast(cost_center_value as TEXT) as cost_center_value,\n managed_by_link,\n cast(managed_by_value as TEXT) as managed_by_value,\n manufacturer_link,\n cast(manufacturer_value as TEXT) as manufacturer_value,\n model_id_link,\n cast(model_id_value as TEXT) as model_id_value,\n model_number,\n name as cmdb_ci_name,\n owned_by_link,\n cast(owned_by_value as TEXT) as owned_by_value,\n subcategory,\n sys_class_name,\n sys_class_path,\n sys_created_by,\n sys_domain_link,\n sys_domain_path,\n cast(sys_domain_value as TEXT) as sys_domain_value,\n sys_mod_count,\n sys_updated_by,\n unverified,\n vendor_link,\n cast(vendor_value as TEXT) as vendor_value\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.servicenow.stg_servicenow__cmdb_ci_service": {"database": "postgres", "schema": "reddit_ads_integration_tests_3_stg_servicenow", "name": "stg_servicenow__cmdb_ci_service", "resource_type": "model", "package_name": "servicenow", "path": "staging/stg_servicenow__cmdb_ci_service.sql", "original_file_path": "models/staging/stg_servicenow__cmdb_ci_service.sql", "unique_id": "model.servicenow.stg_servicenow__cmdb_ci_service", "fqn": ["servicenow", "staging", "stg_servicenow__cmdb_ci_service"], "alias": "stg_servicenow__cmdb_ci_service", "checksum": {"name": "sha256", "checksum": "a0ad2a1195a62691662b0ed457a89eb3586069bedf3cb9d3b151f77fa14f5fdb"}, "config": {"enabled": true, "alias": null, "schema": "stg_servicenow", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Staging table containing all records related to CMDB CI service areas.", "columns": {"cmdb_ci_service_id": {"name": "cmdb_ci_service_id", "description": "Unique identifier for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates whether the task record has been marked as deleted by the Fivetran connector.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Indicates whether the task record has been synchronized by the Fivetran connector.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "attributes": {"name": "attributes", "description": "Data elements which describe the characteristics of CIs", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_unit_link": {"name": "business_unit_link", "description": "Link to business unit. Business units usually comprise departments and are associated with a company", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_unit_value": {"name": "business_unit_value", "description": "The ID of the business unit.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "category": {"name": "category", "description": "The category of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_link": {"name": "company_link", "description": "Link to the company associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_value": {"name": "company_value", "description": "Value representing the company associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost": {"name": "cost", "description": "The cost related to the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost_cc": {"name": "cost_cc", "description": "The cost center that the record belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "managed_by_link": {"name": "managed_by_link", "description": "The link to the user profile that manages this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "managed_by_value": {"name": "managed_by_value", "description": "The ID of the user profile that manages this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "manufacturer_link": {"name": "manufacturer_link", "description": "The link to the manufacturer that manages this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "manufacturer_value": {"name": "manufacturer_value", "description": "The ID of the manufacturer that manages this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "model_id_link": {"name": "model_id_link", "description": "The link to the model related to the CI.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "model_id_value": {"name": "model_id_value", "description": "The ID to the model related to the CI.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "model_number": {"name": "model_number", "description": "The number of the model related to the IC.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cmdb_ci_service_name": {"name": "cmdb_ci_service_name", "description": "The full name of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "owned_by_link": {"name": "owned_by_link", "description": "The link to the owner of the CI related to this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "owned_by_value": {"name": "owned_by_value", "description": "The ID to the owner of the CI related to this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "service_classification": {"name": "service_classification", "description": "The type of service. Each type contains groups of CI services that share attributes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "service_level_requirement": {"name": "service_level_requirement", "description": "Requirement specified to maintain service commitments between parties.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "short_description": {"name": "short_description", "description": "Brief or concise summary of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sla_link": {"name": "sla_link", "description": "Link to the Service Level Agreement (SLA) associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sla_value": {"name": "sla_value", "description": "Value representing the Service Level Agreement (SLA) associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cmdb_ci_service_state": {"name": "cmdb_ci_service_state", "description": "Current state or status of the record (e.g., in progress, on hold, closed).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "subcategory": {"name": "subcategory", "description": "The specific subcategory or classification of the record, providing more detailed information about its nature.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_class_name": {"name": "sys_class_name", "description": "Name of the table in which the record is stored.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_class_path": {"name": "sys_class_path", "description": "Where a particular CI class is within the overall hierarchy of classes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_created_by": {"name": "sys_created_by", "description": "User who initially created the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cmdb_ci_service_created_at": {"name": "cmdb_ci_service_created_at", "description": "Date and time when the record was initially created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_domain_link": {"name": "sys_domain_link", "description": "Link to the system domain associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_domain_path": {"name": "sys_domain_path", "description": "Path of the system domain associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_domain_value": {"name": "sys_domain_value", "description": "Value representing the system domain associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_mod_count": {"name": "sys_mod_count", "description": "Number of times the record has been modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_updated_by": {"name": "sys_updated_by", "description": "User who last updated or modified the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cmdb_ci_service_updated_at": {"name": "cmdb_ci_service_updated_at", "description": "Date and time when the record was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vendor_link": {"name": "vendor_link", "description": "A link to the vendor or external entity associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vendor_value": {"name": "vendor_value", "description": "The name or identifier of the vendor or external entity linked to the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "Indicates the schema which the field originated. This is especially important when leveraging the union schema feature.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost_center_link": {"name": "cost_center_link", "description": "Link to the cost center associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost_center_value": {"name": "cost_center_value", "description": "Value representing the cost center associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "monitor": {"name": "monitor", "description": "Monitor in relation to the cmdb_ci_service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "servicenow://models/staging/stg_servicenow.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_servicenow", "materialized": "view"}, "created_at": 1705606889.137117, "relation_name": "\"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__cmdb_ci_service\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_servicenow__cmdb_ci_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_servicenow__cmdb_ci_service_base')),\n staging_columns=get_cmdb_ci_service_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='servicenow_union_schemas', \n union_database_variable='servicenow_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select\n source_relation,\n cast(sys_id as {{ dbt.type_string() }}) as cmdb_ci_service_id,\n cast(sys_created_on as {{ dbt.type_timestamp() }}) as cmdb_ci_service_created_at,\n cast(sys_updated_on as {{ dbt.type_timestamp() }}) as cmdb_ci_service_updated_at,\n _fivetran_deleted,\n _fivetran_synced,\n attributes,\n business_unit_link,\n cast(business_unit_value as {{ dbt.type_string() }}) as business_unit_value,\n category,\n company_link,\n cast(company_value as {{ dbt.type_string() }}) as company_value,\n cost,\n cost_cc,\n cost_center_link,\n cast(cost_center_value as {{ dbt.type_string() }}) as cost_center_value,\n managed_by_link,\n cast(managed_by_value as {{ dbt.type_string() }}) as managed_by_value,\n manufacturer_link,\n cast(manufacturer_value as {{ dbt.type_string() }}) as manufacturer_value,\n model_id_link,\n cast(model_id_value as {{ dbt.type_string() }}) as model_id_value,\n model_number,\n monitor,\n name as cmdb_ci_service_name,\n owned_by_link,\n cast(owned_by_value as {{ dbt.type_string() }}) as owned_by_value,\n service_classification,\n service_level_requirement,\n short_description,\n sla_link,\n cast(sla_value as {{ dbt.type_string() }}) as sla_value,\n state as cmdb_ci_service_state,\n subcategory,\n sys_class_name,\n sys_class_path,\n sys_created_by,\n sys_domain_link,\n sys_domain_path,\n cast(sys_domain_value as {{ dbt.type_string() }}) as sys_domain_value,\n sys_mod_count,\n sys_updated_by,\n vendor_link,\n cast(vendor_value as {{ dbt.type_string() }}) as vendor_value\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_servicenow__cmdb_ci_service_base", "package": null, "version": null}, {"name": "stg_servicenow__cmdb_ci_service_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.servicenow.get_cmdb_ci_service_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string", "macro.dbt.type_timestamp"], "nodes": ["model.servicenow.stg_servicenow__cmdb_ci_service_base"]}, "compiled_path": "target/compiled/servicenow/models/staging/stg_servicenow__cmdb_ci_service.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__cmdb_ci_service_base\"\n),\n\nfields as (\n\n select\n \n cast(null as boolean) as \n \n _fivetran_deleted\n \n , \n cast(null as timestamp) as \n \n _fivetran_synced\n \n , \n cast(null as TEXT) as \n \n attributes\n \n , \n cast(null as TEXT) as \n \n business_unit_link\n \n , \n cast(null as TEXT) as \n \n business_unit_value\n \n , \n cast(null as TEXT) as \n \n category\n \n , \n cast(null as TEXT) as \n \n company_link\n \n , \n cast(null as TEXT) as \n \n company_value\n \n , \n cast(null as float) as \n \n cost\n \n , \n cast(null as TEXT) as \n \n cost_cc\n \n , \n cast(null as TEXT) as \n \n cost_center_link\n \n , \n cast(null as TEXT) as \n \n cost_center_value\n \n , \n cast(null as TEXT) as \n \n managed_by_link\n \n , \n cast(null as TEXT) as \n \n managed_by_value\n \n , \n cast(null as TEXT) as \n \n manufacturer_link\n \n , \n cast(null as TEXT) as \n \n manufacturer_value\n \n , \n cast(null as TEXT) as \n \n model_id_link\n \n , \n cast(null as TEXT) as \n \n model_id_value\n \n , \n cast(null as TEXT) as \n \n model_number\n \n , \n cast(null as boolean) as \n \n monitor\n \n , \n cast(null as TEXT) as \n \n name\n \n , \n cast(null as TEXT) as \n \n owned_by_link\n \n , \n cast(null as TEXT) as \n \n owned_by_value\n \n , \n cast(null as TEXT) as \n \n service_classification\n \n , \n cast(null as TEXT) as \n \n service_level_requirement\n \n , \n cast(null as TEXT) as \n \n service_owner_delegate_link\n \n , \n cast(null as TEXT) as \n \n service_owner_delegate_value\n \n , \n cast(null as TEXT) as \n \n short_description\n \n , \n cast(null as TEXT) as \n \n sla_link\n \n , \n cast(null as TEXT) as \n \n sla_value\n \n , \n cast(null as TEXT) as \n \n state\n \n , \n cast(null as TEXT) as \n \n subcategory\n \n , \n cast(null as TEXT) as \n \n sys_class_name\n \n , \n cast(null as TEXT) as \n \n sys_class_path\n \n , \n cast(null as TEXT) as \n \n sys_created_by\n \n , \n cast(null as timestamp) as \n \n sys_created_on\n \n , \n cast(null as TEXT) as \n \n sys_domain_link\n \n , \n cast(null as TEXT) as \n \n sys_domain_path\n \n , \n cast(null as TEXT) as \n \n sys_domain_value\n \n , \n cast(null as TEXT) as \n \n sys_id\n \n , \n cast(null as integer) as \n \n sys_mod_count\n \n , \n cast(null as TEXT) as \n \n sys_updated_by\n \n , \n cast(null as timestamp) as \n \n sys_updated_on\n \n , \n cast(null as TEXT) as \n \n vendor_link\n \n , \n cast(null as TEXT) as \n \n vendor_value\n \n \n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n source_relation,\n cast(sys_id as TEXT) as cmdb_ci_service_id,\n cast(sys_created_on as timestamp) as cmdb_ci_service_created_at,\n cast(sys_updated_on as timestamp) as cmdb_ci_service_updated_at,\n _fivetran_deleted,\n _fivetran_synced,\n attributes,\n business_unit_link,\n cast(business_unit_value as TEXT) as business_unit_value,\n category,\n company_link,\n cast(company_value as TEXT) as company_value,\n cost,\n cost_cc,\n cost_center_link,\n cast(cost_center_value as TEXT) as cost_center_value,\n managed_by_link,\n cast(managed_by_value as TEXT) as managed_by_value,\n manufacturer_link,\n cast(manufacturer_value as TEXT) as manufacturer_value,\n model_id_link,\n cast(model_id_value as TEXT) as model_id_value,\n model_number,\n monitor,\n name as cmdb_ci_service_name,\n owned_by_link,\n cast(owned_by_value as TEXT) as owned_by_value,\n service_classification,\n service_level_requirement,\n short_description,\n sla_link,\n cast(sla_value as TEXT) as sla_value,\n state as cmdb_ci_service_state,\n subcategory,\n sys_class_name,\n sys_class_path,\n sys_created_by,\n sys_domain_link,\n sys_domain_path,\n cast(sys_domain_value as TEXT) as sys_domain_value,\n sys_mod_count,\n sys_updated_by,\n vendor_link,\n cast(vendor_value as TEXT) as vendor_value\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.servicenow.stg_servicenow__change_task": {"database": "postgres", "schema": "reddit_ads_integration_tests_3_stg_servicenow", "name": "stg_servicenow__change_task", "resource_type": "model", "package_name": "servicenow", "path": "staging/stg_servicenow__change_task.sql", "original_file_path": "models/staging/stg_servicenow__change_task.sql", "unique_id": "model.servicenow.stg_servicenow__change_task", "fqn": ["servicenow", "staging", "stg_servicenow__change_task"], "alias": "stg_servicenow__change_task", "checksum": {"name": "sha256", "checksum": "8afb138ea6ef549f41667a021af47d7af8dca3f88eeb99eaab5a06280048c2df"}, "config": {"enabled": true, "alias": null, "schema": "stg_servicenow", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Staging table containing all information related to change tasks.", "columns": {"change_task_id": {"name": "change_task_id", "description": "Unique identifier for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "Indicates the schema which the field originated. This is especially important when leveraging the union schema feature.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates whether the task record has been marked as deleted by the Fivetran connector.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Indicates whether the task record has been synchronized by the Fivetran connector.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_request_link": {"name": "change_request_link", "description": "A link to the change request record associated with the issue or incident.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_request_value": {"name": "change_request_value", "description": "The unique identifier or name associated with the change request record linked to the issue or incident.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_task_type": {"name": "change_task_type", "description": "The type or category of the task associated with the change request or change record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_task_close_code": {"name": "change_task_close_code", "description": "The code or identifier associated with the closure or resolution of the change task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_task_created_from": {"name": "change_task_created_from", "description": "Information about the source or origin of the current record, indicating how it was created or generated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_change_on_hold": {"name": "is_change_on_hold", "description": "Indicates whether the change task is currently on hold or paused.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_on_hold_reason": {"name": "change_on_hold_reason", "description": "The reason or rationale for placing the associated record on hold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_task_planned_end_date": {"name": "change_task_planned_end_date", "description": "The planned or scheduled end date for the change request or change record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_task_planned_start_date": {"name": "change_task_planned_start_date", "description": "The planned or scheduled start date for the change request or change record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_task_created_at": {"name": "change_task_created_at", "description": "Date and time when the change task record was initially created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_task_updated_at": {"name": "change_task_updated_at", "description": "Date and time when the change task record was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "servicenow://models/staging/stg_servicenow.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_servicenow", "materialized": "view"}, "created_at": 1705606889.129774, "relation_name": "\"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__change_task\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_servicenow__change_task_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_servicenow__change_task_base')),\n staging_columns=get_change_task_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='servicenow_union_schemas', \n union_database_variable='servicenow_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation, \n cast(sys_id as {{ dbt.type_string() }}) as change_task_id,\n cast(sys_created_on as {{ dbt.type_timestamp() }}) as change_task_created_at,\n cast(sys_updated_on as {{ dbt.type_timestamp() }}) as change_task_updated_at,\n _fivetran_deleted,\n _fivetran_synced,\n change_request_link,\n cast(change_request_value as {{ dbt.type_string() }}) as change_request_value,\n change_task_type,\n close_code as change_task_close_code,\n created_from as change_task_created_from,\n on_hold as is_change_on_hold,\n on_hold_reason as change_on_hold_reason,\n planned_end_date as change_task_planned_end_date,\n planned_start_date as change_task_planned_start_date\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_servicenow__change_task_base", "package": null, "version": null}, {"name": "stg_servicenow__change_task_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.servicenow.get_change_task_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string", "macro.dbt.type_timestamp"], "nodes": ["model.servicenow.stg_servicenow__change_task_base"]}, "compiled_path": "target/compiled/servicenow/models/staging/stg_servicenow__change_task.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__change_task_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n change_request_link\n \n as \n \n change_request_link\n \n, \n \n \n change_request_value\n \n as \n \n change_request_value\n \n, \n \n \n change_task_type\n \n as \n \n change_task_type\n \n, \n \n \n close_code\n \n as \n \n close_code\n \n, \n \n \n created_from\n \n as \n \n created_from\n \n, \n \n \n on_hold\n \n as \n \n on_hold\n \n, \n \n \n on_hold_reason\n \n as \n \n on_hold_reason\n \n, \n \n \n planned_end_date\n \n as \n \n planned_end_date\n \n, \n \n \n planned_start_date\n \n as \n \n planned_start_date\n \n, \n \n \n sys_created_on\n \n as \n \n sys_created_on\n \n, \n \n \n sys_id\n \n as \n \n sys_id\n \n, \n \n \n sys_updated_on\n \n as \n \n sys_updated_on\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation, \n cast(sys_id as TEXT) as change_task_id,\n cast(sys_created_on as timestamp) as change_task_created_at,\n cast(sys_updated_on as timestamp) as change_task_updated_at,\n _fivetran_deleted,\n _fivetran_synced,\n change_request_link,\n cast(change_request_value as TEXT) as change_request_value,\n change_task_type,\n close_code as change_task_close_code,\n created_from as change_task_created_from,\n on_hold as is_change_on_hold,\n on_hold_reason as change_on_hold_reason,\n planned_end_date as change_task_planned_end_date,\n planned_start_date as change_task_planned_start_date\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.servicenow.stg_servicenow__sys_user_group": {"database": "postgres", "schema": "reddit_ads_integration_tests_3_stg_servicenow", "name": "stg_servicenow__sys_user_group", "resource_type": "model", "package_name": "servicenow", "path": "staging/stg_servicenow__sys_user_group.sql", "original_file_path": "models/staging/stg_servicenow__sys_user_group.sql", "unique_id": "model.servicenow.stg_servicenow__sys_user_group", "fqn": ["servicenow", "staging", "stg_servicenow__sys_user_group"], "alias": "stg_servicenow__sys_user_group", "checksum": {"name": "sha256", "checksum": "9a7a16f19642d456bfe142e764c310d9c42f3bee859a368cc533ed73a4ebaf40"}, "config": {"enabled": true, "alias": null, "schema": "stg_servicenow", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Staging table containing all information related to user groups.", "columns": {"sys_user_group_id": {"name": "sys_user_group_id", "description": "Unique identifier for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates whether the task record has been marked as deleted by the Fivetran connector.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Indicates whether the task record has been synchronized by the Fivetran connector.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active": {"name": "active", "description": "Flag indicating whether the record is currently active or completed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost_center_link": {"name": "cost_center_link", "description": "Link to the cost center associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost_center_value": {"name": "cost_center_value", "description": "Value representing the cost center associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "default_assignee_link": {"name": "default_assignee_link", "description": "Link to the user that is the default assignee for this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "default_assignee_value": {"name": "default_assignee_value", "description": "ID of the user that is the default assignee for this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "description": {"name": "description", "description": "Detailed description or information about the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email": {"name": "email", "description": "Email address associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "exclude_manager": {"name": "exclude_manager", "description": "Boolean of whether the group manager receives email notifications.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "include_members": {"name": "include_members", "description": "Boolean of whether the group members receive individual emails when someone sends an email to the Group Email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "manager_link": {"name": "manager_link", "description": "A link to the user's manager or supervisor in the organizational hierarchy.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "manager_value": {"name": "manager_value", "description": "The name or identifier of the user's manager or supervisor.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_user_group_name": {"name": "sys_user_group_name", "description": "The full name of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "parent_link": {"name": "parent_link", "description": "Link to the other group of which this group is a member. If a group has a parent, the child group inherits the roles of the parent group. The members of the child group are not members of the parent group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "parent_value": {"name": "parent_value", "description": "ID of the other group of which this group is a member. If a group has a parent, the child group inherits the roles of the parent group. The members of the child group are not members of the parent group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "roles": {"name": "roles", "description": "The roles assigned to the user in the system or organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source": {"name": "source", "description": "The source or origin of the user's or user group's profile information.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_created_by": {"name": "sys_created_by", "description": "User who initially created the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_user_group_created_at": {"name": "sys_user_group_created_at", "description": "Date and time when the record was initially created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_mod_count": {"name": "sys_mod_count", "description": "Number of times the record has been modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_updated_by": {"name": "sys_updated_by", "description": "User who last updated or modified the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_user_group_updated_at": {"name": "sys_user_group_updated_at", "description": "Date and time when the record was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "The type or category regarding the current record", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "Indicates the schema which the field originated. This is especially important when leveraging the union schema feature.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "servicenow://models/staging/stg_servicenow.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_servicenow", "materialized": "view"}, "created_at": 1705606889.1384478, "relation_name": "\"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__sys_user_group\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_servicenow__sys_user_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_servicenow__sys_user_group_base')),\n staging_columns=get_sys_user_group_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='servicenow_union_schemas', \n union_database_variable='servicenow_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select\n source_relation, \n cast(sys_id as {{ dbt.type_string() }}) as sys_user_group_id,\n cast(sys_created_on as {{ dbt.type_timestamp() }}) as sys_user_group_created_at,\n cast(sys_updated_on as {{ dbt.type_timestamp() }}) as sys_user_group_updated_at,\n _fivetran_deleted,\n _fivetran_synced,\n active,\n cost_center_link,\n cast(cost_center_value as {{ dbt.type_string() }}) as cost_center_value,\n default_assignee_link,\n cast(default_assignee_value as {{ dbt.type_string() }}) as default_assignee_value,\n description,\n email,\n exclude_manager,\n include_members,\n manager_link,\n cast(manager_value as {{ dbt.type_string() }}) as manager_value,\n name as sys_user_group_name,\n parent_link,\n cast(parent_value as {{ dbt.type_string() }}) as parent_value,\n roles,\n source,\n sys_created_by,\n sys_mod_count,\n sys_updated_by,\n type\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_servicenow__sys_user_group_base", "package": null, "version": null}, {"name": "stg_servicenow__sys_user_group_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.servicenow.get_sys_user_group_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string", "macro.dbt.type_timestamp"], "nodes": ["model.servicenow.stg_servicenow__sys_user_group_base"]}, "compiled_path": "target/compiled/servicenow/models/staging/stg_servicenow__sys_user_group.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__sys_user_group_base\"\n),\n\nfields as (\n\n select\n \n cast(null as boolean) as \n \n _fivetran_deleted\n \n , \n cast(null as timestamp) as \n \n _fivetran_synced\n \n , \n cast(null as boolean) as \n \n active\n \n , \n cast(null as TEXT) as \n \n cost_center_link\n \n , \n cast(null as TEXT) as \n \n cost_center_value\n \n , \n cast(null as TEXT) as \n \n default_assignee_link\n \n , \n cast(null as TEXT) as \n \n default_assignee_value\n \n , \n cast(null as TEXT) as \n \n description\n \n , \n cast(null as TEXT) as \n \n email\n \n , \n cast(null as boolean) as \n \n exclude_manager\n \n , \n cast(null as boolean) as \n \n include_members\n \n , \n cast(null as TEXT) as \n \n manager_link\n \n , \n cast(null as TEXT) as \n \n manager_value\n \n , \n cast(null as TEXT) as \n \n name\n \n , \n cast(null as TEXT) as \n \n parent_link\n \n , \n cast(null as TEXT) as \n \n parent_value\n \n , \n cast(null as TEXT) as \n \n roles\n \n , \n cast(null as TEXT) as \n \n source\n \n , \n cast(null as TEXT) as \n \n sys_created_by\n \n , \n cast(null as timestamp) as \n \n sys_created_on\n \n , \n cast(null as TEXT) as \n \n sys_id\n \n , \n cast(null as integer) as \n \n sys_mod_count\n \n , \n cast(null as TEXT) as \n \n sys_updated_by\n \n , \n cast(null as timestamp) as \n \n sys_updated_on\n \n , \n cast(null as TEXT) as \n \n type\n \n \n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n source_relation, \n cast(sys_id as TEXT) as sys_user_group_id,\n cast(sys_created_on as timestamp) as sys_user_group_created_at,\n cast(sys_updated_on as timestamp) as sys_user_group_updated_at,\n _fivetran_deleted,\n _fivetran_synced,\n active,\n cost_center_link,\n cast(cost_center_value as TEXT) as cost_center_value,\n default_assignee_link,\n cast(default_assignee_value as TEXT) as default_assignee_value,\n description,\n email,\n exclude_manager,\n include_members,\n manager_link,\n cast(manager_value as TEXT) as manager_value,\n name as sys_user_group_name,\n parent_link,\n cast(parent_value as TEXT) as parent_value,\n roles,\n source,\n sys_created_by,\n sys_mod_count,\n sys_updated_by,\n type\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.servicenow.stg_servicenow__incident": {"database": "postgres", "schema": "reddit_ads_integration_tests_3_stg_servicenow", "name": "stg_servicenow__incident", "resource_type": "model", "package_name": "servicenow", "path": "staging/stg_servicenow__incident.sql", "original_file_path": "models/staging/stg_servicenow__incident.sql", "unique_id": "model.servicenow.stg_servicenow__incident", "fqn": ["servicenow", "staging", "stg_servicenow__incident"], "alias": "stg_servicenow__incident", "checksum": {"name": "sha256", "checksum": "00ab09a5f17d70daaf5be078767f52ebc9bfe048a2a4946296351c29feaf85b0"}, "config": {"enabled": true, "alias": null, "schema": "stg_servicenow", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Staging table containing all information related to incidents.", "columns": {"incident_id": {"name": "incident_id", "description": "Unique identifier for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "Indicates the schema which the field originated. This is especially important when leveraging the union schema feature.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates whether the task record has been marked as deleted by the Fivetran connector.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Indicates whether the task record has been synchronized by the Fivetran connector.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_impact": {"name": "business_impact", "description": "Information about the impact of the issue on business operations or services.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_stc": {"name": "business_stc", "description": "The business service that is impacted by the issue or incident.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "calendar_stc": {"name": "calendar_stc", "description": "The calendar or schedule associated with the business service impacted by the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "caller_id_link": {"name": "caller_id_link", "description": "A link to the person or entity identified as the caller or reporter of the issue or incident.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "caller_id_value": {"name": "caller_id_value", "description": "The name or identifier of the person or entity identified as the caller or reporter of the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "category": {"name": "category", "description": "The category of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cause": {"name": "cause", "description": "A description or explanation of the root cause of the issue or incident.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "caused_by_link": {"name": "caused_by_link", "description": "A link to the record or entity that caused or triggered the issue or incident.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "caused_by_value": {"name": "caused_by_value", "description": "The name or identifier of the record or entity that caused or triggered the issue or incident.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "child_incidents": {"name": "child_incidents", "description": "Information about other incidents that are identified as child incidents linked to the current incident.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "close_code": {"name": "close_code", "description": "The code or identifier associated with the closure or resolution.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hold_reason": {"name": "hold_reason", "description": "The reason or rationale for placing the issue or incident on hold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "incident_state": {"name": "incident_state", "description": "The current state or status of the incident.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "notify": {"name": "notify", "description": "Indicates whether notifications or alerts have been configured for the issue or incident.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "origin_id_link": {"name": "origin_id_link", "description": "A link to the original or source record from which the current record originated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "origin_id_value": {"name": "origin_id_value", "description": "The unique identifier or name associated with the original or source record linked to the current record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "parent_incident_link": {"name": "parent_incident_link", "description": "A link to the parent incident record, indicating the incident from which the current incident is derived or related.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "parent_incident_value": {"name": "parent_incident_value", "description": "The unique identifier or name associated with the parent incident record linked to the current incident.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_id_link": {"name": "problem_id_link", "description": "A link to the problem record associated with the current issue or incident.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_id_value": {"name": "problem_id_value", "description": "The unique identifier or name associated with the problem record linked to the current issue or incident.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reopen_count": {"name": "reopen_count", "description": "The count of how many times the issue has been reopened.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reopened_by_link": {"name": "reopened_by_link", "description": "A link to the person or entity who reopened the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reopened_by_value": {"name": "reopened_by_value", "description": "The name or identifier of the person or entity who reopened the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reopened_time": {"name": "reopened_time", "description": "The timestamp indicating when the issue or incident was reopened after being previously resolved.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "resolved_at": {"name": "resolved_at", "description": "The timestamp indicating when the issue was resolved.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "resolved_by_link": {"name": "resolved_by_link", "description": "A link to the person or entity who resolved the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "resolved_by_value": {"name": "resolved_by_value", "description": "The name or identifier of the person or entity who resolved the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "rfc_link": {"name": "rfc_link", "description": "A link to the Request for Change (RFC) associated with the issue or incident.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "rfc_value": {"name": "rfc_value", "description": "The unique identifier or name associated with the Request for Change (RFC) linked to the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "severity": {"name": "severity", "description": "The level of impact or seriousness assigned to the issue or incident.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "subcategory": {"name": "subcategory", "description": "The specific subcategory or classification of the record, providing more detailed information about its nature.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "incident_created_at": {"name": "incident_created_at", "description": "Date and time when the incident record was initially created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "incident_updated_at": {"name": "incident_updated_at", "description": "Date and time when the incident record was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "servicenow://models/staging/stg_servicenow.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_servicenow", "materialized": "view"}, "created_at": 1705606889.128843, "relation_name": "\"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__incident\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_servicenow__incident_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_servicenow__incident_base')),\n staging_columns=get_incident_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='servicenow_union_schemas', \n union_database_variable='servicenow_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation, \n cast(sys_id as {{ dbt.type_string() }}) as incident_id,\n cast(sys_created_on as {{ dbt.type_timestamp() }}) as incident_created_at,\n cast(sys_updated_on as {{ dbt.type_timestamp() }}) as incident_updated_at,\n _fivetran_deleted,\n _fivetran_synced,\n business_impact,\n business_stc,\n calendar_stc,\n caller_id_link,\n cast(caller_id_value as {{ dbt.type_string() }}) as caller_id_value,\n category,\n cause,\n caused_by_link,\n cast(caused_by_value as {{ dbt.type_string() }}) as caused_by_value,\n child_incidents,\n close_code,\n hold_reason,\n incident_state,\n notify,\n origin_id_link,\n cast(origin_id_value as {{ dbt.type_string() }}) as origin_id_value,\n parent_incident_link,\n cast(parent_incident_value as {{ dbt.type_string() }}) as parent_incident_value,\n problem_id_link,\n cast(problem_id_value as {{ dbt.type_string() }}) as problem_id_value,\n reopen_count,\n reopened_by_link,\n cast(reopened_by_value as {{ dbt.type_string() }}) as reopened_by_value,\n reopened_time,\n resolved_at,\n resolved_by_link,\n cast(resolved_by_value as {{ dbt.type_string() }}) as resolved_by_value,\n rfc_link,\n cast(rfc_value as {{ dbt.type_string() }}) as rfc_value,\n severity,\n subcategory\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_servicenow__incident_base", "package": null, "version": null}, {"name": "stg_servicenow__incident_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.servicenow.get_incident_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string", "macro.dbt.type_timestamp"], "nodes": ["model.servicenow.stg_servicenow__incident_base"]}, "compiled_path": "target/compiled/servicenow/models/staging/stg_servicenow__incident.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__incident_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n business_impact\n \n as \n \n business_impact\n \n, \n \n \n business_stc\n \n as \n \n business_stc\n \n, \n \n \n calendar_stc\n \n as \n \n calendar_stc\n \n, \n \n \n caller_id_link\n \n as \n \n caller_id_link\n \n, \n \n \n caller_id_value\n \n as \n \n caller_id_value\n \n, \n \n \n category\n \n as \n \n category\n \n, \n \n \n cause\n \n as \n \n cause\n \n, \n \n \n caused_by_link\n \n as \n \n caused_by_link\n \n, \n \n \n caused_by_value\n \n as \n \n caused_by_value\n \n, \n \n \n child_incidents\n \n as \n \n child_incidents\n \n, \n \n \n close_code\n \n as \n \n close_code\n \n, \n \n \n hold_reason\n \n as \n \n hold_reason\n \n, \n \n \n incident_state\n \n as \n \n incident_state\n \n, \n \n \n notify\n \n as \n \n notify\n \n, \n \n \n origin_id_link\n \n as \n \n origin_id_link\n \n, \n \n \n origin_id_value\n \n as \n \n origin_id_value\n \n, \n \n \n parent_incident_link\n \n as \n \n parent_incident_link\n \n, \n \n \n parent_incident_value\n \n as \n \n parent_incident_value\n \n, \n \n \n problem_id_link\n \n as \n \n problem_id_link\n \n, \n \n \n problem_id_value\n \n as \n \n problem_id_value\n \n, \n \n \n reopen_count\n \n as \n \n reopen_count\n \n, \n \n \n reopened_by_link\n \n as \n \n reopened_by_link\n \n, \n \n \n reopened_by_value\n \n as \n \n reopened_by_value\n \n, \n \n \n reopened_time\n \n as \n \n reopened_time\n \n, \n \n \n resolved_at\n \n as \n \n resolved_at\n \n, \n \n \n resolved_by_link\n \n as \n \n resolved_by_link\n \n, \n \n \n resolved_by_value\n \n as \n \n resolved_by_value\n \n, \n \n \n rfc_link\n \n as \n \n rfc_link\n \n, \n \n \n rfc_value\n \n as \n \n rfc_value\n \n, \n \n \n severity\n \n as \n \n severity\n \n, \n \n \n subcategory\n \n as \n \n subcategory\n \n, \n \n \n sys_created_on\n \n as \n \n sys_created_on\n \n, \n \n \n sys_id\n \n as \n \n sys_id\n \n, \n \n \n sys_updated_on\n \n as \n \n sys_updated_on\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation, \n cast(sys_id as TEXT) as incident_id,\n cast(sys_created_on as timestamp) as incident_created_at,\n cast(sys_updated_on as timestamp) as incident_updated_at,\n _fivetran_deleted,\n _fivetran_synced,\n business_impact,\n business_stc,\n calendar_stc,\n caller_id_link,\n cast(caller_id_value as TEXT) as caller_id_value,\n category,\n cause,\n caused_by_link,\n cast(caused_by_value as TEXT) as caused_by_value,\n child_incidents,\n close_code,\n hold_reason,\n incident_state,\n notify,\n origin_id_link,\n cast(origin_id_value as TEXT) as origin_id_value,\n parent_incident_link,\n cast(parent_incident_value as TEXT) as parent_incident_value,\n problem_id_link,\n cast(problem_id_value as TEXT) as problem_id_value,\n reopen_count,\n reopened_by_link,\n cast(reopened_by_value as TEXT) as reopened_by_value,\n reopened_time,\n resolved_at,\n resolved_by_link,\n cast(resolved_by_value as TEXT) as resolved_by_value,\n rfc_link,\n cast(rfc_value as TEXT) as rfc_value,\n severity,\n subcategory\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.servicenow.stg_servicenow__task_sla": {"database": "postgres", "schema": "reddit_ads_integration_tests_3_stg_servicenow", "name": "stg_servicenow__task_sla", "resource_type": "model", "package_name": "servicenow", "path": "staging/stg_servicenow__task_sla.sql", "original_file_path": "models/staging/stg_servicenow__task_sla.sql", "unique_id": "model.servicenow.stg_servicenow__task_sla", "fqn": ["servicenow", "staging", "stg_servicenow__task_sla"], "alias": "stg_servicenow__task_sla", "checksum": {"name": "sha256", "checksum": "c9a9d405492e82fd905f5bd8231e06e21ff551361561d4da7a3cbb3870e227ba"}, "config": {"enabled": true, "alias": null, "schema": "stg_servicenow", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Staging table containing all Service Level Agreement (SLA) information related to the task.", "columns": {"task_sla_id": {"name": "task_sla_id", "description": "Unique identifier for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "Indicates the schema which the field originated. This is especially important when leveraging the union schema feature.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates whether the task record has been marked as deleted by the Fivetran connector.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Indicates whether the task record has been synchronized by the Fivetran connector.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active": {"name": "active", "description": "Flag indicating whether the record is currently active or completed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_duration": {"name": "business_duration", "description": "The duration of the task in terms of business hours.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_pause_duration": {"name": "business_pause_duration", "description": "Duration of business pause associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_percentage": {"name": "business_percentage", "description": "Percentage of business time completed for the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_time_left": {"name": "business_time_left", "description": "Remaining business time for the completion of the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "duration": {"name": "duration", "description": "Total duration of the task, including both business and non-business time.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_time": {"name": "end_time", "description": "The scheduled or expected end time for the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "has_breached": {"name": "has_breached", "description": "Indicates whether the task has breached the defined SLA or time limits.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "original_breach_time": {"name": "original_breach_time", "description": "Original time when the SLA breach for the task was detected.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pause_duration": {"name": "pause_duration", "description": "Duration of the pause associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pause_time": {"name": "pause_time", "description": "Time when the task was paused or put on hold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "percentage": {"name": "percentage", "description": "Percentage of total time completed for the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "planned_end_time": {"name": "planned_end_time", "description": "The originally planned or expected end time for the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "schedule_link": {"name": "schedule_link", "description": "Link to the schedule associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "schedule_value": {"name": "schedule_value", "description": "Value representing the schedule associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sla_link": {"name": "sla_link", "description": "Link to the Service Level Agreement (SLA) associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sla_value": {"name": "sla_value", "description": "Value representing the Service Level Agreement (SLA) associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "stage": {"name": "stage", "description": "Current stage or phase of the record's lifecycle.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_time": {"name": "start_time", "description": "The scheduled or expected start time for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_created_by": {"name": "sys_created_by", "description": "User who initially created the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "task_sla_created_at": {"name": "task_sla_created_at", "description": "Date and time when the task sla record was initially created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_mod_count": {"name": "sys_mod_count", "description": "Number of times the record has been modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_updated_by": {"name": "sys_updated_by", "description": "User who last updated or modified the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "task_sla_updated_at": {"name": "task_sla_updated_at", "description": "Date and time when the task sla record was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "task_link": {"name": "task_link", "description": "Link to the related task record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "task_value": {"name": "task_value", "description": "Value representing the related task record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "time_left": {"name": "time_left", "description": "Remaining time for the completion of the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "timezone": {"name": "timezone", "description": "Timezone information associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "servicenow://models/staging/stg_servicenow.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_servicenow", "materialized": "view"}, "created_at": 1705606889.12187, "relation_name": "\"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__task_sla\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_servicenow__task_sla_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_servicenow__task_sla_base')),\n staging_columns=get_task_sla_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='servicenow_union_schemas', \n union_database_variable='servicenow_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation, \n cast(sys_id as {{ dbt.type_string() }}) as task_sla_id,\n cast(sys_created_on as {{ dbt.type_timestamp() }}) as task_sla_created_at,\n cast(sys_updated_on as {{ dbt.type_timestamp() }}) as task_sla_updated_at,\n _fivetran_deleted,\n _fivetran_synced,\n active,\n business_duration,\n business_pause_duration,\n business_percentage,\n business_time_left,\n duration,\n end_time,\n has_breached,\n original_breach_time,\n pause_duration,\n pause_time,\n percentage,\n planned_end_time,\n schedule_link,\n cast(schedule_value as {{ dbt.type_string() }}) as schedule_value,\n sla_link,\n cast(sla_value as {{ dbt.type_string() }}) as sla_value,\n stage,\n start_time,\n sys_created_by,\n sys_mod_count,\n sys_updated_by,\n task_link,\n cast(task_value as {{ dbt.type_string() }}) as task_value,\n time_left,\n timezone\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_servicenow__task_sla_base", "package": null, "version": null}, {"name": "stg_servicenow__task_sla_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.servicenow.get_task_sla_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string", "macro.dbt.type_timestamp"], "nodes": ["model.servicenow.stg_servicenow__task_sla_base"]}, "compiled_path": "target/compiled/servicenow/models/staging/stg_servicenow__task_sla.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__task_sla_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n business_duration\n \n as \n \n business_duration\n \n, \n \n \n business_pause_duration\n \n as \n \n business_pause_duration\n \n, \n \n \n business_percentage\n \n as \n \n business_percentage\n \n, \n \n \n business_time_left\n \n as \n \n business_time_left\n \n, \n \n \n duration\n \n as \n \n duration\n \n, \n \n \n end_time\n \n as \n \n end_time\n \n, \n \n \n has_breached\n \n as \n \n has_breached\n \n, \n \n \n original_breach_time\n \n as \n \n original_breach_time\n \n, \n \n \n pause_duration\n \n as \n \n pause_duration\n \n, \n \n \n pause_time\n \n as \n \n pause_time\n \n, \n \n \n percentage\n \n as \n \n percentage\n \n, \n \n \n planned_end_time\n \n as \n \n planned_end_time\n \n, \n \n \n schedule_link\n \n as \n \n schedule_link\n \n, \n \n \n schedule_value\n \n as \n \n schedule_value\n \n, \n \n \n sla_link\n \n as \n \n sla_link\n \n, \n \n \n sla_value\n \n as \n \n sla_value\n \n, \n \n \n stage\n \n as \n \n stage\n \n, \n \n \n start_time\n \n as \n \n start_time\n \n, \n \n \n sys_created_by\n \n as \n \n sys_created_by\n \n, \n \n \n sys_created_on\n \n as \n \n sys_created_on\n \n, \n \n \n sys_id\n \n as \n \n sys_id\n \n, \n \n \n sys_mod_count\n \n as \n \n sys_mod_count\n \n, \n \n \n sys_updated_by\n \n as \n \n sys_updated_by\n \n, \n \n \n sys_updated_on\n \n as \n \n sys_updated_on\n \n, \n \n \n task_link\n \n as \n \n task_link\n \n, \n \n \n task_value\n \n as \n \n task_value\n \n, \n \n \n time_left\n \n as \n \n time_left\n \n, \n \n \n timezone\n \n as \n \n timezone\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation, \n cast(sys_id as TEXT) as task_sla_id,\n cast(sys_created_on as timestamp) as task_sla_created_at,\n cast(sys_updated_on as timestamp) as task_sla_updated_at,\n _fivetran_deleted,\n _fivetran_synced,\n active,\n business_duration,\n business_pause_duration,\n business_percentage,\n business_time_left,\n duration,\n end_time,\n has_breached,\n original_breach_time,\n pause_duration,\n pause_time,\n percentage,\n planned_end_time,\n schedule_link,\n cast(schedule_value as TEXT) as schedule_value,\n sla_link,\n cast(sla_value as TEXT) as sla_value,\n stage,\n start_time,\n sys_created_by,\n sys_mod_count,\n sys_updated_by,\n task_link,\n cast(task_value as TEXT) as task_value,\n time_left,\n timezone\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.servicenow.stg_servicenow__core_company": {"database": "postgres", "schema": "reddit_ads_integration_tests_3_stg_servicenow", "name": "stg_servicenow__core_company", "resource_type": "model", "package_name": "servicenow", "path": "staging/stg_servicenow__core_company.sql", "original_file_path": "models/staging/stg_servicenow__core_company.sql", "unique_id": "model.servicenow.stg_servicenow__core_company", "fqn": ["servicenow", "staging", "stg_servicenow__core_company"], "alias": "stg_servicenow__core_company", "checksum": {"name": "sha256", "checksum": "81048850729ebccbed15efdf990aaa669c644f300502128fad62761d1681d920"}, "config": {"enabled": true, "alias": null, "schema": "stg_servicenow", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Staging table containing all records relating to companies.", "columns": {"core_company_id": {"name": "core_company_id", "description": "Unique identifier for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "Indicates the schema which the field originated. This is especially important when leveraging the union schema feature.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_city": {"name": "company_city", "description": "City information associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_country": {"name": "company_country", "description": "Country information associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_customer": {"name": "is_customer", "description": "Boolean of whether the company is a customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_fax_phone": {"name": "company_fax_phone", "description": "Fax phone number of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fiscal_year": {"name": "fiscal_year", "description": "Company's fiscal year", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_name": {"name": "company_name", "description": "The full name of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "notes": {"name": "notes", "description": "Notes about the record", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_phone": {"name": "company_phone", "description": "The contact number belonging to this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_state": {"name": "company_state", "description": "Current state or status of the record (e.g., in progress, on hold, closed).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_street": {"name": "company_street", "description": "The street to which the record belongs", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_class_name": {"name": "sys_class_name", "description": "Name of the table in which the record is stored.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_created_by": {"name": "sys_created_by", "description": "User who initially created the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_created_on": {"name": "sys_created_on", "description": "Date and time when the record was initially created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_mod_count": {"name": "sys_mod_count", "description": "Number of times the record has been modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_updated_by": {"name": "sys_updated_by", "description": "User who last updated or modified the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_updated_on": {"name": "sys_updated_on", "description": "Date and time when the record was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_vendor": {"name": "is_vendor", "description": "Boolean of whether the company is a vendor", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vendor_type": {"name": "vendor_type", "description": "Vendor types group vendors that offer similar goods and services, and are useful for reporting and comparing vendor performance. Example: Hardware, Services", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_website": {"name": "company_website", "description": "Company website", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_zip": {"name": "company_zip", "description": "The postal code or ZIP code associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "servicenow://models/staging/stg_servicenow.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_servicenow", "materialized": "view"}, "created_at": 1705606889.1332421, "relation_name": "\"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__core_company\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_servicenow__core_company_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_servicenow__core_company_base')),\n staging_columns=get_core_company_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='servicenow_union_schemas', \n union_database_variable='servicenow_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n cast(sys_id as {{ dbt.type_string() }}) as core_company_id,\n city as company_city,\n country as company_country,\n customer as is_customer,\n fax_phone as company_fax_phone,\n fiscal_year,\n name as company_name,\n notes,\n phone as company_phone,\n state as company_state,\n street as company_street,\n sys_class_name,\n sys_created_by,\n sys_created_on,\n sys_mod_count,\n sys_updated_by,\n sys_updated_on,\n vendor as is_vendor,\n vendor_type,\n website as company_website,\n zip as company_zip\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_servicenow__core_company_base", "package": null, "version": null}, {"name": "stg_servicenow__core_company_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.servicenow.get_core_company_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.servicenow.stg_servicenow__core_company_base"]}, "compiled_path": "target/compiled/servicenow/models/staging/stg_servicenow__core_company.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__core_company_base\"\n),\n\nfields as (\n\n select\n \n cast(null as boolean) as \n \n _fivetran_deleted\n \n , \n cast(null as timestamp) as \n \n _fivetran_synced\n \n , \n cast(null as TEXT) as \n \n sys_id\n \n , \n cast(null as TEXT) as \n \n city\n \n , \n cast(null as TEXT) as \n \n country\n \n , \n cast(null as boolean) as \n \n customer\n \n , \n cast(null as TEXT) as \n \n fax_phone\n \n , \n cast(null as TEXT) as \n \n fiscal_year\n \n , \n cast(null as TEXT) as \n \n name\n \n , \n cast(null as TEXT) as \n \n notes\n \n , \n cast(null as TEXT) as \n \n phone\n \n , \n cast(null as TEXT) as \n \n state\n \n , \n cast(null as TEXT) as \n \n street\n \n , \n cast(null as TEXT) as \n \n sys_class_name\n \n , \n cast(null as TEXT) as \n \n sys_created_by\n \n , \n cast(null as TEXT) as \n \n sys_created_on\n \n , \n cast(null as integer) as \n \n sys_mod_count\n \n , \n cast(null as TEXT) as \n \n sys_updated_by\n \n , \n cast(null as timestamp) as \n \n sys_updated_on\n \n , \n cast(null as boolean) as \n \n vendor\n \n , \n cast(null as TEXT) as \n \n vendor_type\n \n , \n cast(null as TEXT) as \n \n website\n \n , \n cast(null as integer) as \n \n zip\n \n \n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n cast(sys_id as TEXT) as core_company_id,\n city as company_city,\n country as company_country,\n customer as is_customer,\n fax_phone as company_fax_phone,\n fiscal_year,\n name as company_name,\n notes,\n phone as company_phone,\n state as company_state,\n street as company_street,\n sys_class_name,\n sys_created_by,\n sys_created_on,\n sys_mod_count,\n sys_updated_by,\n sys_updated_on,\n vendor as is_vendor,\n vendor_type,\n website as company_website,\n zip as company_zip\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.servicenow.stg_servicenow__sys_user": {"database": "postgres", "schema": "reddit_ads_integration_tests_3_stg_servicenow", "name": "stg_servicenow__sys_user", "resource_type": "model", "package_name": "servicenow", "path": "staging/stg_servicenow__sys_user.sql", "original_file_path": "models/staging/stg_servicenow__sys_user.sql", "unique_id": "model.servicenow.stg_servicenow__sys_user", "fqn": ["servicenow", "staging", "stg_servicenow__sys_user"], "alias": "stg_servicenow__sys_user", "checksum": {"name": "sha256", "checksum": "e5cb29eed1e00be9385ab7df77e10c1e23b82046c94d129bf84fd3f47899723c"}, "config": {"enabled": true, "alias": null, "schema": "stg_servicenow", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Staging table containing all information related to the system user associated with the task.", "columns": {"user_id": {"name": "user_id", "description": "Unique identifier for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "Indicates the schema which the field originated. This is especially important when leveraging the union schema feature.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates whether the task record has been marked as deleted by the Fivetran connector.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Indicates whether the task record has been synchronized by the Fivetran connector.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "accumulated_roles": {"name": "accumulated_roles", "description": "Roles accumulated or associated with the system user over time.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Flag indicating whether the record is currently active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "avatar": {"name": "avatar", "description": "Avatar or profile picture associated with the system user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "building_link": {"name": "building_link", "description": "Link to the building associated with the system user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "building_value": {"name": "building_value", "description": "Value representing the building associated with the system user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "calendar_integration": {"name": "calendar_integration", "description": "Information about the integration of the user's calendar with the ServiceNow system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city": {"name": "city", "description": "City information associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_link": {"name": "company_link", "description": "Link to the company associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_value": {"name": "company_value", "description": "Value representing the company associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost_center_link": {"name": "cost_center_link", "description": "Link to the cost center associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost_center_value": {"name": "cost_center_value", "description": "Value representing the cost center associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country": {"name": "country", "description": "Country information associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_format": {"name": "date_format", "description": "The format in which dates are displayed or recorded for the system user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "default_perspective_link": {"name": "default_perspective_link", "description": "Link to the default perspective associated with the system user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "default_perspective_value": {"name": "default_perspective_value", "description": "Value representing the default perspective associated with the system user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "department_link": {"name": "department_link", "description": "Link to the department associated with the system user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "department_value": {"name": "department_value", "description": "Value representing the department associated with the system user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "edu_status": {"name": "edu_status", "description": "Education status or level associated with the system user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email": {"name": "email", "description": "Email address associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_number": {"name": "employee_number", "description": "Employee number or identifier associated with the system user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "enable_multifactor_authn": {"name": "enable_multifactor_authn", "description": "Indication of whether multifactor authentication is enabled for the system user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "failed_attempts": {"name": "failed_attempts", "description": "Number of failed login attempts for the system user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_name": {"name": "first_name", "description": "First name of the system user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "gender": {"name": "gender", "description": "Gender information associated with the system user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hashed_user_id": {"name": "hashed_user_id", "description": "Hashed identifier associated with the system user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "home_phone": {"name": "home_phone", "description": "Home phone number associated with the system user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "internal_integration_user": {"name": "internal_integration_user", "description": "Indication of whether the system user is an internal integration user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "introduction": {"name": "introduction", "description": "Introduction or bio information associated with the system user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_login_day_date": {"name": "last_login_day_date", "description": "Date and time of the last login.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_login_device": {"name": "last_login_device", "description": "The device used for the user's last login to the system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_login_at": {"name": "last_login_at", "description": "The specific time when the user last logged in to the system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_name": {"name": "last_name", "description": "The family name or surname of the user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_password": {"name": "last_password", "description": "The timestamp or information related to the user's last password update.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ldap_server_link": {"name": "ldap_server_link", "description": "A link to the LDAP (Lightweight Directory Access Protocol) server associated with the user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ldap_server_value": {"name": "ldap_server_value", "description": "The value or name of the LDAP server associated with the user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "location_link": {"name": "location_link", "description": "Link to the location associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "location_value": {"name": "location_value", "description": "Value representing the location associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "locked_out": {"name": "locked_out", "description": "Information about whether the user account is currently locked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "manager_link": {"name": "manager_link", "description": "A link to the user's manager or supervisor in the organizational hierarchy.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "manager_value": {"name": "manager_value", "description": "The name or identifier of the user's manager or supervisor.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "middle_name": {"name": "middle_name", "description": "The middle name or initial of the user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_phone": {"name": "mobile_phone", "description": "The contact number for the user's mobile phone.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_user_name": {"name": "sys_user_name", "description": "The system username or identifier for the user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "notification": {"name": "notification", "description": "Information related to user notifications or alerts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "password_needs_reset": {"name": "password_needs_reset", "description": "Indicates whether the user needs to reset their password.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "phone": {"name": "phone", "description": "The contact number belonging to this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "photo": {"name": "photo", "description": "A link or reference to the user's profile photo.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "preferred_language": {"name": "preferred_language", "description": "The language preference set by the user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "roles": {"name": "roles", "description": "The roles assigned to the user in the system or organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "schedule_link": {"name": "schedule_link", "description": "Link to the schedule associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "schedule_value": {"name": "schedule_value", "description": "Value representing the schedule associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source": {"name": "source", "description": "The source or origin of the user's or user group's profile information.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "state": {"name": "state", "description": "Current state or status of the record (e.g., in progress, on hold, closed).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_class_name": {"name": "sys_class_name", "description": "Name of the table in which the record is stored.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_created_by": {"name": "sys_created_by", "description": "User who initially created the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_created_at": {"name": "user_created_at", "description": "Date and time when the user record was initially created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_domain_link": {"name": "sys_domain_link", "description": "Link to the system domain associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_domain_path": {"name": "sys_domain_path", "description": "Path of the system domain associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_domain_value": {"name": "sys_domain_value", "description": "Value representing the system domain associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_mod_count": {"name": "sys_mod_count", "description": "Number of times the record has been modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_updated_by": {"name": "sys_updated_by", "description": "User who last updated or modified the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_updated_at": {"name": "user_updated_at", "description": "Date and time when the user record was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "time_format": {"name": "time_format", "description": "The preferred time format for the user (e.g., 12-hour or 24-hour).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "time_zone": {"name": "time_zone", "description": "The time zone configured for the user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "title": {"name": "title", "description": "The job title or position of the user within the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_name": {"name": "user_name", "description": "The username used by the user to log in to the system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_password": {"name": "user_password", "description": "The user's current password information or status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vip": {"name": "vip", "description": "Indicates whether the user has VIP (Very Important Person) status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "web_service_access_only": {"name": "web_service_access_only", "description": "Indicates whether the user has access only through web services.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "zip": {"name": "zip", "description": "The postal code or ZIP code associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "servicenow://models/staging/stg_servicenow.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_servicenow", "materialized": "view"}, "created_at": 1705606889.124786, "relation_name": "\"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__sys_user\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_servicenow__sys_user_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_servicenow__sys_user_base')),\n staging_columns=get_sys_user_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='servicenow_union_schemas', \n union_database_variable='servicenow_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n cast(sys_id as {{ dbt.type_string() }}) as user_id,\n cast(sys_created_on as {{ dbt.type_timestamp() }}) as user_created_at,\n cast(sys_updated_on as {{ dbt.type_timestamp() }}) as user_updated_at,\n _fivetran_deleted,\n _fivetran_synced,\n accumulated_roles,\n active as is_active,\n avatar,\n building_link,\n cast(building_value as {{ dbt.type_string() }}) as building_value,\n calendar_integration,\n city,\n company_link,\n cast(company_value as {{ dbt.type_string() }}) as company_value,\n cost_center_link,\n cast(cost_center_value as {{ dbt.type_string() }}) as cost_center_value,\n country,\n date_format,\n default_perspective_link,\n cast(default_perspective_value as {{ dbt.type_string() }}) as default_perspective_value,\n department_link,\n cast(department_value as {{ dbt.type_string() }}) as department_value,\n edu_status,\n email,\n employee_number,\n enable_multifactor_authn,\n failed_attempts,\n first_name,\n gender,\n hashed_user_id,\n home_phone,\n internal_integration_user,\n introduction,\n last_login as last_login_day_date,\n last_login_device,\n last_login_time as last_login_at,\n last_name,\n last_password,\n ldap_server_link,\n cast(ldap_server_value as {{ dbt.type_string() }}) as ldap_server_value,\n location_link,\n cast(location_value as {{ dbt.type_string() }}) as location_value,\n locked_out,\n manager_link,\n cast(manager_value as {{ dbt.type_string() }}) as manager_value,\n middle_name,\n mobile_phone,\n name as sys_user_name,\n notification,\n password_needs_reset,\n phone,\n photo,\n preferred_language,\n roles,\n schedule_link,\n cast(schedule_value as {{ dbt.type_string() }}) as schedule_value,\n source,\n state,\n sys_class_name,\n sys_created_by,\n sys_domain_link,\n sys_domain_path,\n cast(sys_domain_value as {{ dbt.type_string() }}) as sys_domain_value,\n sys_mod_count,\n sys_updated_by,\n time_format,\n time_zone,\n title,\n user_name,\n user_password,\n vip,\n web_service_access_only,\n zip\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_servicenow__sys_user_base", "package": null, "version": null}, {"name": "stg_servicenow__sys_user_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.servicenow.get_sys_user_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string", "macro.dbt.type_timestamp"], "nodes": ["model.servicenow.stg_servicenow__sys_user_base"]}, "compiled_path": "target/compiled/servicenow/models/staging/stg_servicenow__sys_user.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__sys_user_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n accumulated_roles\n \n as \n \n accumulated_roles\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n avatar\n \n as \n \n avatar\n \n, \n \n \n building_link\n \n as \n \n building_link\n \n, \n \n \n building_value\n \n as \n \n building_value\n \n, \n \n \n calendar_integration\n \n as \n \n calendar_integration\n \n, \n \n \n city\n \n as \n \n city\n \n, \n \n \n company_link\n \n as \n \n company_link\n \n, \n \n \n company_value\n \n as \n \n company_value\n \n, \n \n \n cost_center_link\n \n as \n \n cost_center_link\n \n, \n \n \n cost_center_value\n \n as \n \n cost_center_value\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n date_format\n \n as \n \n date_format\n \n, \n \n \n default_perspective_link\n \n as \n \n default_perspective_link\n \n, \n \n \n default_perspective_value\n \n as \n \n default_perspective_value\n \n, \n \n \n department_link\n \n as \n \n department_link\n \n, \n \n \n department_value\n \n as \n \n department_value\n \n, \n \n \n edu_status\n \n as \n \n edu_status\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n employee_number\n \n as \n \n employee_number\n \n, \n \n \n enable_multifactor_authn\n \n as \n \n enable_multifactor_authn\n \n, \n \n \n failed_attempts\n \n as \n \n failed_attempts\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hashed_user_id\n \n as \n \n hashed_user_id\n \n, \n \n \n home_phone\n \n as \n \n home_phone\n \n, \n \n \n internal_integration_user\n \n as \n \n internal_integration_user\n \n, \n \n \n introduction\n \n as \n \n introduction\n \n, \n \n \n last_login\n \n as \n \n last_login\n \n, \n \n \n last_login_device\n \n as \n \n last_login_device\n \n, \n \n \n last_login_time\n \n as \n \n last_login_time\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n last_password\n \n as \n \n last_password\n \n, \n \n \n ldap_server_link\n \n as \n \n ldap_server_link\n \n, \n \n \n ldap_server_value\n \n as \n \n ldap_server_value\n \n, \n \n \n location_link\n \n as \n \n location_link\n \n, \n \n \n location_value\n \n as \n \n location_value\n \n, \n \n \n locked_out\n \n as \n \n locked_out\n \n, \n \n \n manager_link\n \n as \n \n manager_link\n \n, \n \n \n manager_value\n \n as \n \n manager_value\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n mobile_phone\n \n as \n \n mobile_phone\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n notification\n \n as \n \n notification\n \n, \n \n \n password_needs_reset\n \n as \n \n password_needs_reset\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n photo\n \n as \n \n photo\n \n, \n \n \n preferred_language\n \n as \n \n preferred_language\n \n, \n \n \n roles\n \n as \n \n roles\n \n, \n \n \n schedule_link\n \n as \n \n schedule_link\n \n, \n \n \n schedule_value\n \n as \n \n schedule_value\n \n, \n \n \n source\n \n as \n \n source\n \n, \n \n \n state\n \n as \n \n state\n \n, \n \n \n sys_class_name\n \n as \n \n sys_class_name\n \n, \n \n \n sys_created_by\n \n as \n \n sys_created_by\n \n, \n \n \n sys_created_on\n \n as \n \n sys_created_on\n \n, \n \n \n sys_domain_link\n \n as \n \n sys_domain_link\n \n, \n \n \n sys_domain_path\n \n as \n \n sys_domain_path\n \n, \n \n \n sys_domain_value\n \n as \n \n sys_domain_value\n \n, \n \n \n sys_id\n \n as \n \n sys_id\n \n, \n \n \n sys_mod_count\n \n as \n \n sys_mod_count\n \n, \n \n \n sys_updated_by\n \n as \n \n sys_updated_by\n \n, \n \n \n sys_updated_on\n \n as \n \n sys_updated_on\n \n, \n \n \n time_format\n \n as \n \n time_format\n \n, \n \n \n time_zone\n \n as \n \n time_zone\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n user_name\n \n as \n \n user_name\n \n, \n \n \n user_password\n \n as \n \n user_password\n \n, \n \n \n vip\n \n as \n \n vip\n \n, \n \n \n web_service_access_only\n \n as \n \n web_service_access_only\n \n, \n \n \n zip\n \n as \n \n zip\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n cast(sys_id as TEXT) as user_id,\n cast(sys_created_on as timestamp) as user_created_at,\n cast(sys_updated_on as timestamp) as user_updated_at,\n _fivetran_deleted,\n _fivetran_synced,\n accumulated_roles,\n active as is_active,\n avatar,\n building_link,\n cast(building_value as TEXT) as building_value,\n calendar_integration,\n city,\n company_link,\n cast(company_value as TEXT) as company_value,\n cost_center_link,\n cast(cost_center_value as TEXT) as cost_center_value,\n country,\n date_format,\n default_perspective_link,\n cast(default_perspective_value as TEXT) as default_perspective_value,\n department_link,\n cast(department_value as TEXT) as department_value,\n edu_status,\n email,\n employee_number,\n enable_multifactor_authn,\n failed_attempts,\n first_name,\n gender,\n hashed_user_id,\n home_phone,\n internal_integration_user,\n introduction,\n last_login as last_login_day_date,\n last_login_device,\n last_login_time as last_login_at,\n last_name,\n last_password,\n ldap_server_link,\n cast(ldap_server_value as TEXT) as ldap_server_value,\n location_link,\n cast(location_value as TEXT) as location_value,\n locked_out,\n manager_link,\n cast(manager_value as TEXT) as manager_value,\n middle_name,\n mobile_phone,\n name as sys_user_name,\n notification,\n password_needs_reset,\n phone,\n photo,\n preferred_language,\n roles,\n schedule_link,\n cast(schedule_value as TEXT) as schedule_value,\n source,\n state,\n sys_class_name,\n sys_created_by,\n sys_domain_link,\n sys_domain_path,\n cast(sys_domain_value as TEXT) as sys_domain_value,\n sys_mod_count,\n sys_updated_by,\n time_format,\n time_zone,\n title,\n user_name,\n user_password,\n vip,\n web_service_access_only,\n zip\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.servicenow.stg_servicenow__change_request": {"database": "postgres", "schema": "reddit_ads_integration_tests_3_stg_servicenow", "name": "stg_servicenow__change_request", "resource_type": "model", "package_name": "servicenow", "path": "staging/stg_servicenow__change_request.sql", "original_file_path": "models/staging/stg_servicenow__change_request.sql", "unique_id": "model.servicenow.stg_servicenow__change_request", "fqn": ["servicenow", "staging", "stg_servicenow__change_request"], "alias": "stg_servicenow__change_request", "checksum": {"name": "sha256", "checksum": "98a2579b847e59672875e11e79510bfe9fd40eaedfb3d6bb921bb4b9502f6c5e"}, "config": {"enabled": true, "alias": null, "schema": "stg_servicenow", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Staging table that contains all information related to change requests.", "columns": {"change_request_id": {"name": "change_request_id", "description": "Unique identifier for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates whether the task record has been marked as deleted by the Fivetran connector.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Indicates whether the task record has been synchronized by the Fivetran connector.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "backout_plan": {"name": "backout_plan", "description": "Information about the plan or process for backing out or undoing the changes associated with the current record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cab_date": {"name": "cab_date", "description": "The date of the Change Advisory Board (CAB) meeting associated with the change request or change record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cab_date_time": {"name": "cab_date_time", "description": "The date and time of the Change Advisory Board (CAB) meeting associated with the change request or change record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cab_delegate_link": {"name": "cab_delegate_link", "description": "A link to the person or entity delegated to represent or act on behalf of the Change Advisory Board (CAB) in relation \nto the change request.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cab_delegate_value": {"name": "cab_delegate_value", "description": "The name or identifier of the person or entity delegated to represent or act on behalf of the Change Advisory Board (CAB) \nin relation to the change request.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cab_recommendation": {"name": "cab_recommendation", "description": "The recommendation or decision made by the Change Advisory Board (CAB) regarding the change request.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_cab_required": {"name": "is_cab_required", "description": "Indicates whether the Change Advisory Board (CAB) approval is required for the change request.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_request_category": {"name": "change_request_category", "description": "The category of the change.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_plan": {"name": "change_plan", "description": "Information about the plan or process for implementing the changes associated with the current record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "chg_model_link": {"name": "chg_model_link", "description": "A link to the change model or template associated with the change request or change record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "chg_model_value": {"name": "chg_model_value", "description": "The name or identifier of the change model or template linked to the change request or change record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_request_close_code": {"name": "change_request_close_code", "description": "The code or identifier associated with the closure or resolution.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conflict_last_run": {"name": "conflict_last_run", "description": "The timestamp indicating when the conflict detection was last run for the change request or change record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conflict_status": {"name": "conflict_status", "description": "The status or outcome of the conflict detection process for the change request or change record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_request_end_date": {"name": "change_request_end_date", "description": "The end date for the implementation or execution associated with the current record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_request_implementation_plan": {"name": "change_request_implementation_plan", "description": "Information about the plan or process for implementing the changes associated with the current record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_request_justification": {"name": "change_request_justification", "description": "The reasoning or justification behind the changes associated with the current record, providing context or explanation for the modifications made.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_change_request_on_hold": {"name": "is_change_request_on_hold", "description": "Indicates whether the change is currently on hold or paused.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_request_on_hold_reason": {"name": "change_request_on_hold_reason", "description": "The reason or rationale for placing the change on hold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "on_hold_task": {"name": "on_hold_task", "description": "A link to the task or activity that indicates the current record is on hold, specifying the task associated with the \nhold status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "outside_maintenance_schedule": {"name": "outside_maintenance_schedule", "description": "Indicates whether the changes associated with the current record fall outside the regular maintenance schedule or window.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_request_phase": {"name": "change_request_phase", "description": "The phase or stage of the change request or change record within the change management process, indicating its progress or status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_request_phase_state": {"name": "change_request_phase_state", "description": "The current state or status of the phase associated with the change request or change record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_production_system": {"name": "is_production_system", "description": "Indicates whether the changes associated with the current record are intended for the production environment or system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_request_reason": {"name": "change_request_reason", "description": "The reason or rationale behind the changes associated with the current record, providing context or explanation for the modifications made.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_requested_by_date": {"name": "change_requested_by_date", "description": "The date when the changes associated with the current record were requested or initiated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_requested_by_link": {"name": "change_requested_by_link", "description": "A link to the person or entity who requested or initiated the changes associated with the current record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_requested_by_value": {"name": "change_requested_by_value", "description": "The name or identifier of the person or entity who requested or initiated the changes associated with the current record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "review_comments": {"name": "review_comments", "description": "Comments or feedback provided during the review process for the changes associated with the current record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_request_review_date": {"name": "change_request_review_date", "description": "The date when the change request was reviewed or evaluated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_request_review_status": {"name": "change_request_review_status", "description": "The status or outcome of the review process for the change request associated with the current record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_request_risk": {"name": "change_request_risk", "description": "The level of risk associated with the changes, indicating the potential impact or consequences of implementing the modifications outlined in the current record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "risk_impact_analysis": {"name": "risk_impact_analysis", "description": "An analysis or assessment of the impact or consequences of the changes outlined in the current record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_request_scope": {"name": "change_request_scope", "description": "The scope or extent of the changes outlined in the current record, specifying the areas or components affected by the modifications.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_request_start_date": {"name": "change_request_start_date", "description": "The requested start date for the implementation or execution of the changes associated with the current record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_request_created_at": {"name": "change_request_created_at", "description": "Date and time when the record was initially created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_request_updated_at": {"name": "change_request_updated_at", "description": "Date and time when the record was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_request_test_plan": {"name": "change_request_test_plan", "description": "Information about the plan or process for testing the changes requested by the change request of this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_request_type": {"name": "change_request_type", "description": "The type or category of the changes outlined in the current record, indicating the nature or purpose of the modifications.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_change_request_unauthorized": {"name": "is_change_request_unauthorized", "description": "Indicates whether the changes associated with the current record were made without proper authorization or approval.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "Indicates the schema which the field originated. This is especially important when leveraging the union schema feature.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "servicenow://models/staging/stg_servicenow.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_servicenow", "materialized": "view"}, "created_at": 1705606889.1312919, "relation_name": "\"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__change_request\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_servicenow__change_request_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_servicenow__change_request_base')),\n staging_columns=get_change_request_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='servicenow_union_schemas', \n union_database_variable='servicenow_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation, \n cast(sys_id as {{ dbt.type_string() }}) as change_request_id,\n cast(sys_created_on as {{ dbt.type_timestamp() }}) as change_request_created_at,\n cast(sys_updated_on as {{ dbt.type_timestamp() }}) as change_request_updated_at,\n _fivetran_deleted,\n _fivetran_synced,\n backout_plan,\n cab_date,\n cab_date_time,\n cab_delegate_link,\n cast(cab_delegate_value as {{ dbt.type_string() }}) as cab_delegate_value,\n cab_recommendation,\n cab_required as is_cab_required,\n category as change_request_category,\n change_plan,\n chg_model_link,\n cast(chg_model_value as {{ dbt.type_string() }}) as chg_model_value,\n close_code as change_request_close_code,\n conflict_last_run,\n conflict_status,\n end_date as change_request_end_date, -- sometimes the actual change and the change request timelines don't line up, so let's specify this is pertaining to the change request.\n implementation_plan as change_request_implementation_plan,\n justification as change_request_justification,\n on_hold as is_change_request_on_hold,\n on_hold_reason as change_request_on_hold_reason,\n on_hold_task,\n outside_maintenance_schedule,\n phase as change_request_phase,\n phase_state as change_request_phase_state,\n production_system as is_production_system,\n reason as change_request_reason,\n requested_by_date as change_requested_by_date,\n requested_by_link as change_requested_by_link,\n cast(requested_by_value as {{ dbt.type_string() }}) as change_requested_by_value,\n review_comments,\n review_date as change_request_review_date,\n review_status as change_request_review_status,\n risk as change_request_risk,\n risk_impact_analysis,\n scope as change_request_scope,\n start_date as change_request_start_date,\n test_plan as change_request_test_plan,\n type as change_request_type,\n unauthorized as is_change_request_unauthorized\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_servicenow__change_request_base", "package": null, "version": null}, {"name": "stg_servicenow__change_request_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.servicenow.get_change_request_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string", "macro.dbt.type_timestamp"], "nodes": ["model.servicenow.stg_servicenow__change_request_base"]}, "compiled_path": "target/compiled/servicenow/models/staging/stg_servicenow__change_request.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__change_request_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n backout_plan\n \n as \n \n backout_plan\n \n, \n \n \n cab_date\n \n as \n \n cab_date\n \n, \n \n \n cab_date_time\n \n as \n \n cab_date_time\n \n, \n \n \n cab_delegate_link\n \n as \n \n cab_delegate_link\n \n, \n \n \n cab_delegate_value\n \n as \n \n cab_delegate_value\n \n, \n \n \n cab_recommendation\n \n as \n \n cab_recommendation\n \n, \n \n \n cab_required\n \n as \n \n cab_required\n \n, \n \n \n category\n \n as \n \n category\n \n, \n \n \n change_plan\n \n as \n \n change_plan\n \n, \n \n \n chg_model_link\n \n as \n \n chg_model_link\n \n, \n \n \n chg_model_value\n \n as \n \n chg_model_value\n \n, \n \n \n close_code\n \n as \n \n close_code\n \n, \n \n \n conflict_last_run\n \n as \n \n conflict_last_run\n \n, \n \n \n conflict_status\n \n as \n \n conflict_status\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n implementation_plan\n \n as \n \n implementation_plan\n \n, \n \n \n justification\n \n as \n \n justification\n \n, \n \n \n on_hold\n \n as \n \n on_hold\n \n, \n \n \n on_hold_reason\n \n as \n \n on_hold_reason\n \n, \n \n \n on_hold_task\n \n as \n \n on_hold_task\n \n, \n \n \n outside_maintenance_schedule\n \n as \n \n outside_maintenance_schedule\n \n, \n \n \n phase\n \n as \n \n phase\n \n, \n \n \n phase_state\n \n as \n \n phase_state\n \n, \n \n \n production_system\n \n as \n \n production_system\n \n, \n \n \n reason\n \n as \n \n reason\n \n, \n \n \n requested_by_date\n \n as \n \n requested_by_date\n \n, \n \n \n requested_by_link\n \n as \n \n requested_by_link\n \n, \n \n \n requested_by_value\n \n as \n \n requested_by_value\n \n, \n \n \n review_comments\n \n as \n \n review_comments\n \n, \n \n \n review_date\n \n as \n \n review_date\n \n, \n \n \n review_status\n \n as \n \n review_status\n \n, \n \n \n risk\n \n as \n \n risk\n \n, \n \n \n risk_impact_analysis\n \n as \n \n risk_impact_analysis\n \n, \n \n \n scope\n \n as \n \n scope\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n std_change_producer_version_link\n \n as \n \n std_change_producer_version_link\n \n, \n \n \n std_change_producer_version_value\n \n as \n \n std_change_producer_version_value\n \n, \n \n \n sys_created_on\n \n as \n \n sys_created_on\n \n, \n \n \n sys_id\n \n as \n \n sys_id\n \n, \n \n \n sys_updated_on\n \n as \n \n sys_updated_on\n \n, \n \n \n test_plan\n \n as \n \n test_plan\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n unauthorized\n \n as \n \n unauthorized\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation, \n cast(sys_id as TEXT) as change_request_id,\n cast(sys_created_on as timestamp) as change_request_created_at,\n cast(sys_updated_on as timestamp) as change_request_updated_at,\n _fivetran_deleted,\n _fivetran_synced,\n backout_plan,\n cab_date,\n cab_date_time,\n cab_delegate_link,\n cast(cab_delegate_value as TEXT) as cab_delegate_value,\n cab_recommendation,\n cab_required as is_cab_required,\n category as change_request_category,\n change_plan,\n chg_model_link,\n cast(chg_model_value as TEXT) as chg_model_value,\n close_code as change_request_close_code,\n conflict_last_run,\n conflict_status,\n end_date as change_request_end_date, -- sometimes the actual change and the change request timelines don't line up, so let's specify this is pertaining to the change request.\n implementation_plan as change_request_implementation_plan,\n justification as change_request_justification,\n on_hold as is_change_request_on_hold,\n on_hold_reason as change_request_on_hold_reason,\n on_hold_task,\n outside_maintenance_schedule,\n phase as change_request_phase,\n phase_state as change_request_phase_state,\n production_system as is_production_system,\n reason as change_request_reason,\n requested_by_date as change_requested_by_date,\n requested_by_link as change_requested_by_link,\n cast(requested_by_value as TEXT) as change_requested_by_value,\n review_comments,\n review_date as change_request_review_date,\n review_status as change_request_review_status,\n risk as change_request_risk,\n risk_impact_analysis,\n scope as change_request_scope,\n start_date as change_request_start_date,\n test_plan as change_request_test_plan,\n type as change_request_type,\n unauthorized as is_change_request_unauthorized\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.servicenow.stg_servicenow__problem_task": {"database": "postgres", "schema": "reddit_ads_integration_tests_3_stg_servicenow", "name": "stg_servicenow__problem_task", "resource_type": "model", "package_name": "servicenow", "path": "staging/stg_servicenow__problem_task.sql", "original_file_path": "models/staging/stg_servicenow__problem_task.sql", "unique_id": "model.servicenow.stg_servicenow__problem_task", "fqn": ["servicenow", "staging", "stg_servicenow__problem_task"], "alias": "stg_servicenow__problem_task", "checksum": {"name": "sha256", "checksum": "6cc90b7b52838ee46cb8ec8fe10014401745dafd7f1c0f0eae30e75ea3b1aac1"}, "config": {"enabled": true, "alias": null, "schema": "stg_servicenow", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Staging table containing all the information related to the problem tasks.", "columns": {"problem_task_id": {"name": "problem_task_id", "description": "Unique identifier for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "Indicates the schema which the field originated. This is especially important when leveraging the union schema feature.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates whether the task record has been marked as deleted by the Fivetran connector.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Indicates whether the task record has been synchronized by the Fivetran connector.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_task_cause_code": {"name": "problem_task_cause_code", "description": "The code or identifier associated with the cause of the issue or problem.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_task_close_code": {"name": "problem_task_close_code", "description": "The code or identifier associated with the closure or resolution of the problem task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "other_reason": {"name": "other_reason", "description": "Additional information or reasons associated with the issue, especially if it falls outside standard categories.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_link": {"name": "problem_link", "description": "A link to the problem record associated with the issue or incident.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_task_type": {"name": "problem_task_type", "description": "The type or category of the task associated with the problem or issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_value": {"name": "problem_value", "description": "The unique identifier or name associated with the problem record linked to the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reopen_count": {"name": "reopen_count", "description": "The count of how many times the issue has been reopened.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reopened_at": {"name": "reopened_at", "description": "The timestamp indicating when the issue was last reopened.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reopened_by_link": {"name": "reopened_by_link", "description": "A link to the person or entity who reopened the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reopened_by_value": {"name": "reopened_by_value", "description": "The name or identifier of the person or entity who reopened the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_task_started_at": {"name": "problem_task_started_at", "description": "The timestamp indicating when the issue or incident was initiated or started.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "started_by_link": {"name": "started_by_link", "description": "A link to the person or entity who initiated or started the issue or incident.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "started_by_value": {"name": "started_by_value", "description": "The name or identifier of the person or entity who initiated or started the issue or incident.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_task_created_at": {"name": "problem_task_created_at", "description": "Date and time when the problem task record was initially created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_task_updated_at": {"name": "problem_task_updated_at", "description": "Date and time when the problem task record was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vendor_link": {"name": "vendor_link", "description": "A link to the vendor or external entity associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vendor_value": {"name": "vendor_value", "description": "The name or identifier of the vendor or external entity linked to the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "servicenow://models/staging/stg_servicenow.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_servicenow", "materialized": "view"}, "created_at": 1705606889.1275709, "relation_name": "\"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__problem_task\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_servicenow__problem_task_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_servicenow__problem_task_base')),\n staging_columns=get_problem_task_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='servicenow_union_schemas', \n union_database_variable='servicenow_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation, \n cast(sys_id as {{ dbt.type_string() }}) as problem_task_id,\n cast(sys_created_on as {{ dbt.type_timestamp() }}) as problem_task_created_at,\n cast(sys_updated_on as {{ dbt.type_timestamp() }}) as problem_task_updated_at,\n _fivetran_deleted,\n _fivetran_synced,\n cause_code as problem_task_cause_code,\n close_code as problem_task_close_code,\n other_reason,\n problem_link,\n problem_task_type,\n cast(problem_value as {{ dbt.type_string() }}) as problem_value,\n reopen_count,\n reopened_at,\n reopened_by_link,\n cast(reopened_by_value as {{ dbt.type_string() }}) as reopened_by_value,\n started_at as problem_task_started_at,\n started_by_link,\n cast(started_by_value as {{ dbt.type_string() }}) as started_by_value,\n vendor_link,\n cast(vendor_value as {{ dbt.type_string() }}) as vendor_value \n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_servicenow__problem_task_base", "package": null, "version": null}, {"name": "stg_servicenow__problem_task_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.servicenow.get_problem_task_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string", "macro.dbt.type_timestamp"], "nodes": ["model.servicenow.stg_servicenow__problem_task_base"]}, "compiled_path": "target/compiled/servicenow/models/staging/stg_servicenow__problem_task.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__problem_task_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n cause_code\n \n as \n \n cause_code\n \n, \n \n \n close_code\n \n as \n \n close_code\n \n, \n \n \n other_reason\n \n as \n \n other_reason\n \n, \n \n \n problem_link\n \n as \n \n problem_link\n \n, \n \n \n problem_task_type\n \n as \n \n problem_task_type\n \n, \n \n \n problem_value\n \n as \n \n problem_value\n \n, \n \n \n reopen_count\n \n as \n \n reopen_count\n \n, \n \n \n reopened_at\n \n as \n \n reopened_at\n \n, \n \n \n reopened_by_link\n \n as \n \n reopened_by_link\n \n, \n \n \n reopened_by_value\n \n as \n \n reopened_by_value\n \n, \n \n \n started_at\n \n as \n \n started_at\n \n, \n \n \n started_by_link\n \n as \n \n started_by_link\n \n, \n \n \n started_by_value\n \n as \n \n started_by_value\n \n, \n \n \n sys_created_on\n \n as \n \n sys_created_on\n \n, \n \n \n sys_id\n \n as \n \n sys_id\n \n, \n \n \n sys_updated_on\n \n as \n \n sys_updated_on\n \n, \n \n \n vendor_link\n \n as \n \n vendor_link\n \n, \n \n \n vendor_value\n \n as \n \n vendor_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation, \n cast(sys_id as TEXT) as problem_task_id,\n cast(sys_created_on as timestamp) as problem_task_created_at,\n cast(sys_updated_on as timestamp) as problem_task_updated_at,\n _fivetran_deleted,\n _fivetran_synced,\n cause_code as problem_task_cause_code,\n close_code as problem_task_close_code,\n other_reason,\n problem_link,\n problem_task_type,\n cast(problem_value as TEXT) as problem_value,\n reopen_count,\n reopened_at,\n reopened_by_link,\n cast(reopened_by_value as TEXT) as reopened_by_value,\n started_at as problem_task_started_at,\n started_by_link,\n cast(started_by_value as TEXT) as started_by_value,\n vendor_link,\n cast(vendor_value as TEXT) as vendor_value \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.servicenow.stg_servicenow__problem": {"database": "postgres", "schema": "reddit_ads_integration_tests_3_stg_servicenow", "name": "stg_servicenow__problem", "resource_type": "model", "package_name": "servicenow", "path": "staging/stg_servicenow__problem.sql", "original_file_path": "models/staging/stg_servicenow__problem.sql", "unique_id": "model.servicenow.stg_servicenow__problem", "fqn": ["servicenow", "staging", "stg_servicenow__problem"], "alias": "stg_servicenow__problem", "checksum": {"name": "sha256", "checksum": "f26514e4af3db48247aa1e8e29ee8d2ea2dc5329a237990bdd620f31b7e3b7b2"}, "config": {"enabled": true, "alias": null, "schema": "stg_servicenow", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Staging table containing all problem information.", "columns": {"problem_id": {"name": "problem_id", "description": "Unique identifier for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "Indicates the schema which the field originated. This is especially important when leveraging the union schema feature.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates whether the task record has been marked as deleted by the Fivetran connector.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Indicates whether the task record has been synchronized by the Fivetran connector.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_category": {"name": "problem_category", "description": "The category of the problem.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cause_notes": {"name": "cause_notes", "description": "Additional notes or details about the cause of a particular issue or incident.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_confirmed_at": {"name": "problem_confirmed_at", "description": "The timestamp indicating when the problem was confirmed or acknowledged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_confirmed_by_link": {"name": "problem_confirmed_by_link", "description": "A link to the person or entity who confirmed or acknowledged the problem.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_confirmed_by_value": {"name": "problem_confirmed_by_value", "description": "The name or identifier of the person or entity who confirmed or acknowledged the problem.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "duplicate_of_link": {"name": "duplicate_of_link", "description": "A link to the related issue that is identified as a duplicate of the current one.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "duplicate_of_value": {"name": "duplicate_of_value", "description": "The name or identifier of the related issue that is identified as a duplicate.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_first_reported_by_task_link": {"name": "problem_first_reported_by_task_link", "description": "A link to the task or activity that first reported the problem.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_first_reported_by_task_value": {"name": "problem_first_reported_by_task_value", "description": "The name or identifier of the task or activity that first reported the problem.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_fix_at": {"name": "problem_fix_at", "description": "The timestamp indicating when the problem is scheduled or planned to be fixed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_fix_by_link": {"name": "problem_fix_by_link", "description": "A link to the person or entity responsible for fixing the problem.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_fix_by_value": {"name": "problem_fix_by_value", "description": "The name or identifier of the person or entity responsible for fixing the problem.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fix_communicated_at": {"name": "fix_communicated_at", "description": "The timestamp indicating when the fix for the issue was communicated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fix_communicated_by_link": {"name": "fix_communicated_by_link", "description": "A link to the person or entity who communicated the fix for the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fix_communicated_by_value": {"name": "fix_communicated_by_value", "description": "The name or identifier of the person or entity who communicated the fix for the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_fix_notes": {"name": "problem_fix_notes", "description": "Additional notes or details related to the fix for the problem.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_known_error": {"name": "is_known_error", "description": "Indicates whether the issue is a known error with a documented resolution.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_major_problem": {"name": "is_major_problem", "description": "Indicates whether the issue is categorized as a major problem.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_state": {"name": "problem_state", "description": "The current state or status of the problem or issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_related_incidents": {"name": "problem_related_incidents", "description": "Number of incidents that are related to the current problem.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reopen_count": {"name": "reopen_count", "description": "The count of how many times the issue has been reopened.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reopened_at": {"name": "reopened_at", "description": "The timestamp indicating when the issue was last reopened.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reopened_by_link": {"name": "reopened_by_link", "description": "A link to the person or entity who reopened the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reopened_by_value": {"name": "reopened_by_value", "description": "The name or identifier of the person or entity who reopened the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_resolution_code": {"name": "problem_resolution_code", "description": "The code or identifier associated with the resolution of the problem.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_resolved_at": {"name": "problem_resolved_at", "description": "The timestamp indicating when the problem was resolved.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "resolved_by_link": {"name": "resolved_by_link", "description": "A link to the person or entity who resolved the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_resolved_by_value": {"name": "problem_resolved_by_value", "description": "The name or identifier of the person or entity who resolved the problem.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "review_outcome": {"name": "review_outcome", "description": "The outcome or result of the review process for the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "rfc_link": {"name": "rfc_link", "description": "A link to the Request for Change (RFC) associated with the issue or incident.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "rfc_value": {"name": "rfc_value", "description": "The unique identifier or name associated with the Request for Change (RFC) linked to the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_subcategory": {"name": "problem_subcategory", "description": "The specific subcategory or classification of the issue, providing more detailed information about its nature.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_created_at": {"name": "problem_created_at", "description": "Date and time when the problem record was initially created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_updated_at": {"name": "problem_updated_at", "description": "Date and time when the problem record was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "workaround": {"name": "workaround", "description": "A description of a temporary or alternative solution that can be applied to address the issue before a permanent fix \nis implemented.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "workaround_applied": {"name": "workaround_applied", "description": "Indicates whether a workaround has been applied to address the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "workaround_communicated_at": {"name": "workaround_communicated_at", "description": "The timestamp indicating when the workaround for the issue was communicated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "workaround_communicated_by_link": {"name": "workaround_communicated_by_link", "description": "A link to the person or entity who communicated the workaround for the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "workaround_communicated_by_value": {"name": "workaround_communicated_by_value", "description": "The name or identifier of the person or entity who communicated the workaround for the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "servicenow://models/staging/stg_servicenow.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_servicenow", "materialized": "view"}, "created_at": 1705606889.1265512, "relation_name": "\"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__problem\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_servicenow__problem_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_servicenow__problem_base')),\n staging_columns=get_problem_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='servicenow_union_schemas', \n union_database_variable='servicenow_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n cast(sys_id as {{ dbt.type_string() }}) as problem_id,\n cast(sys_created_on as {{ dbt.type_timestamp() }}) as problem_created_at,\n cast(sys_updated_on as {{ dbt.type_timestamp() }}) as problem_updated_at,\n _fivetran_deleted,\n _fivetran_synced,\n category as problem_category,\n cause_notes,\n confirmed_at as problem_confirmed_at,\n confirmed_by_link as problem_confirmed_by_link,\n cast(confirmed_by_value as {{ dbt.type_string() }}) as problem_confirmed_by_value,\n duplicate_of_link,\n cast(duplicate_of_value as {{ dbt.type_string() }}) as duplicate_of_value,\n first_reported_by_task_link as problem_first_reported_by_task_link,\n first_reported_by_task_value as problem_first_reported_by_task_value,\n fix_at as problem_fix_at,\n fix_by_link as problem_fix_by_link,\n cast(fix_by_value as {{ dbt.type_string() }}) as problem_fix_by_value,\n fix_communicated_at,\n fix_communicated_by_link,\n cast(fix_communicated_by_value as {{ dbt.type_string() }}) as fix_communicated_by_value,\n fix_notes as problem_fix_notes,\n known_error as is_known_error,\n major_problem as is_major_problem,\n problem_state,\n related_incidents as problem_related_incidents,\n reopen_count,\n reopened_at,\n reopened_by_link,\n cast(reopened_by_value as {{ dbt.type_string() }}) as reopened_by_value,\n resolution_code as problem_resolution_code,\n resolved_at as problem_resolved_at,\n resolved_by_link,\n cast(resolved_by_value as {{ dbt.type_string() }}) as problem_resolved_by_value,\n review_outcome,\n rfc_link,\n cast(rfc_value as {{ dbt.type_string() }}) as rfc_value,\n subcategory as problem_subcategory,\n workaround,\n workaround_applied,\n workaround_communicated_at,\n workaround_communicated_by_link,\n cast(workaround_communicated_by_value as {{ dbt.type_string() }}) as workaround_communicated_by_value \n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_servicenow__problem_base", "package": null, "version": null}, {"name": "stg_servicenow__problem_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.servicenow.get_problem_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string", "macro.dbt.type_timestamp"], "nodes": ["model.servicenow.stg_servicenow__problem_base"]}, "compiled_path": "target/compiled/servicenow/models/staging/stg_servicenow__problem.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__problem_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n category\n \n as \n \n category\n \n, \n \n \n cause_notes\n \n as \n \n cause_notes\n \n, \n \n \n confirmed_at\n \n as \n \n confirmed_at\n \n, \n \n \n confirmed_by_link\n \n as \n \n confirmed_by_link\n \n, \n \n \n confirmed_by_value\n \n as \n \n confirmed_by_value\n \n, \n \n \n duplicate_of_link\n \n as \n \n duplicate_of_link\n \n, \n \n \n duplicate_of_value\n \n as \n \n duplicate_of_value\n \n, \n \n \n first_reported_by_task_link\n \n as \n \n first_reported_by_task_link\n \n, \n \n \n first_reported_by_task_value\n \n as \n \n first_reported_by_task_value\n \n, \n \n \n fix_at\n \n as \n \n fix_at\n \n, \n \n \n fix_by_link\n \n as \n \n fix_by_link\n \n, \n \n \n fix_by_value\n \n as \n \n fix_by_value\n \n, \n \n \n fix_communicated_at\n \n as \n \n fix_communicated_at\n \n, \n \n \n fix_communicated_by_link\n \n as \n \n fix_communicated_by_link\n \n, \n \n \n fix_communicated_by_value\n \n as \n \n fix_communicated_by_value\n \n, \n \n \n fix_notes\n \n as \n \n fix_notes\n \n, \n \n \n known_error\n \n as \n \n known_error\n \n, \n \n \n major_problem\n \n as \n \n major_problem\n \n, \n \n \n problem_state\n \n as \n \n problem_state\n \n, \n \n \n related_incidents\n \n as \n \n related_incidents\n \n, \n \n \n reopen_count\n \n as \n \n reopen_count\n \n, \n \n \n reopened_at\n \n as \n \n reopened_at\n \n, \n \n \n reopened_by_link\n \n as \n \n reopened_by_link\n \n, \n \n \n reopened_by_value\n \n as \n \n reopened_by_value\n \n, \n \n \n resolution_code\n \n as \n \n resolution_code\n \n, \n \n \n resolved_at\n \n as \n \n resolved_at\n \n, \n \n \n resolved_by_link\n \n as \n \n resolved_by_link\n \n, \n \n \n resolved_by_value\n \n as \n \n resolved_by_value\n \n, \n \n \n review_outcome\n \n as \n \n review_outcome\n \n, \n \n \n rfc_link\n \n as \n \n rfc_link\n \n, \n \n \n rfc_value\n \n as \n \n rfc_value\n \n, \n \n \n subcategory\n \n as \n \n subcategory\n \n, \n \n \n sys_created_on\n \n as \n \n sys_created_on\n \n, \n \n \n sys_id\n \n as \n \n sys_id\n \n, \n \n \n sys_updated_on\n \n as \n \n sys_updated_on\n \n, \n \n \n workaround\n \n as \n \n workaround\n \n, \n \n \n workaround_applied\n \n as \n \n workaround_applied\n \n, \n \n \n workaround_communicated_at\n \n as \n \n workaround_communicated_at\n \n, \n \n \n workaround_communicated_by_link\n \n as \n \n workaround_communicated_by_link\n \n, \n \n \n workaround_communicated_by_value\n \n as \n \n workaround_communicated_by_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n cast(sys_id as TEXT) as problem_id,\n cast(sys_created_on as timestamp) as problem_created_at,\n cast(sys_updated_on as timestamp) as problem_updated_at,\n _fivetran_deleted,\n _fivetran_synced,\n category as problem_category,\n cause_notes,\n confirmed_at as problem_confirmed_at,\n confirmed_by_link as problem_confirmed_by_link,\n cast(confirmed_by_value as TEXT) as problem_confirmed_by_value,\n duplicate_of_link,\n cast(duplicate_of_value as TEXT) as duplicate_of_value,\n first_reported_by_task_link as problem_first_reported_by_task_link,\n first_reported_by_task_value as problem_first_reported_by_task_value,\n fix_at as problem_fix_at,\n fix_by_link as problem_fix_by_link,\n cast(fix_by_value as TEXT) as problem_fix_by_value,\n fix_communicated_at,\n fix_communicated_by_link,\n cast(fix_communicated_by_value as TEXT) as fix_communicated_by_value,\n fix_notes as problem_fix_notes,\n known_error as is_known_error,\n major_problem as is_major_problem,\n problem_state,\n related_incidents as problem_related_incidents,\n reopen_count,\n reopened_at,\n reopened_by_link,\n cast(reopened_by_value as TEXT) as reopened_by_value,\n resolution_code as problem_resolution_code,\n resolved_at as problem_resolved_at,\n resolved_by_link,\n cast(resolved_by_value as TEXT) as problem_resolved_by_value,\n review_outcome,\n rfc_link,\n cast(rfc_value as TEXT) as rfc_value,\n subcategory as problem_subcategory,\n workaround,\n workaround_applied,\n workaround_communicated_at,\n workaround_communicated_by_link,\n cast(workaround_communicated_by_value as TEXT) as workaround_communicated_by_value \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.servicenow.stg_servicenow__task_base": {"database": "postgres", "schema": "reddit_ads_integration_tests_3_stg_servicenow", "name": "stg_servicenow__task_base", "resource_type": "model", "package_name": "servicenow", "path": "staging/base/stg_servicenow__task_base.sql", "original_file_path": "models/staging/base/stg_servicenow__task_base.sql", "unique_id": "model.servicenow.stg_servicenow__task_base", "fqn": ["servicenow", "staging", "base", "stg_servicenow__task_base"], "alias": "stg_servicenow__task_base", "checksum": {"name": "sha256", "checksum": "0cad1dc09fc59c7135204091694f30b217b693fb637510d071625d33d9ff3d3e"}, "config": {"enabled": true, "alias": null, "schema": "stg_servicenow", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_servicenow", "materialized": "view"}, "created_at": 1705606888.359731, "relation_name": "\"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__task_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='task', \n database_variable='servicenow_database', \n schema_variable='servicenow_schema', \n default_database=target.database,\n default_schema='servicenow',\n default_variable='task',\n union_schema_variable='servicenow_union_schemas',\n union_database_variable='servicenow_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["servicenow", "task"], ["servicenow", "task"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.servicenow.servicenow.task"]}, "compiled_path": "target/compiled/servicenow/models/staging/base/stg_servicenow__task_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"servicenow_integration_tests_3\".\"task_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.servicenow.stg_servicenow__incident_base": {"database": "postgres", "schema": "reddit_ads_integration_tests_3_stg_servicenow", "name": "stg_servicenow__incident_base", "resource_type": "model", "package_name": "servicenow", "path": "staging/base/stg_servicenow__incident_base.sql", "original_file_path": "models/staging/base/stg_servicenow__incident_base.sql", "unique_id": "model.servicenow.stg_servicenow__incident_base", "fqn": ["servicenow", "staging", "base", "stg_servicenow__incident_base"], "alias": "stg_servicenow__incident_base", "checksum": {"name": "sha256", "checksum": "04b876e9b11899525dc3488a251bc315d59454740a3b652f84d8604da2184151"}, "config": {"enabled": true, "alias": null, "schema": "stg_servicenow", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_servicenow", "materialized": "view"}, "created_at": 1705606888.378146, "relation_name": "\"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__incident_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='incident', \n database_variable='servicenow_database', \n schema_variable='servicenow_schema', \n default_database=target.database,\n default_schema='servicenow',\n default_variable='incident',\n union_schema_variable='servicenow_union_schemas',\n union_database_variable='servicenow_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["servicenow", "incident"], ["servicenow", "incident"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.servicenow.servicenow.incident"]}, "compiled_path": "target/compiled/servicenow/models/staging/base/stg_servicenow__incident_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"servicenow_integration_tests_3\".\"incident_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.servicenow.stg_servicenow__cmdb_ci_service_base": {"database": "postgres", "schema": "reddit_ads_integration_tests_3_stg_servicenow", "name": "stg_servicenow__cmdb_ci_service_base", "resource_type": "model", "package_name": "servicenow", "path": "staging/base/stg_servicenow__cmdb_ci_service_base.sql", "original_file_path": "models/staging/base/stg_servicenow__cmdb_ci_service_base.sql", "unique_id": "model.servicenow.stg_servicenow__cmdb_ci_service_base", "fqn": ["servicenow", "staging", "base", "stg_servicenow__cmdb_ci_service_base"], "alias": "stg_servicenow__cmdb_ci_service_base", "checksum": {"name": "sha256", "checksum": "1f6d14fdc89271bcd14730d78980201e5b757f7ccb6559d83b343fa311f78df9"}, "config": {"enabled": true, "alias": null, "schema": "stg_servicenow", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_servicenow", "materialized": "view"}, "created_at": 1705606888.382504, "relation_name": "\"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__cmdb_ci_service_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='cmdb_ci_service', \n database_variable='servicenow_database', \n schema_variable='servicenow_schema', \n default_database=target.database,\n default_schema='servicenow',\n default_variable='cmdb_ci_service',\n union_schema_variable='servicenow_union_schemas',\n union_database_variable='servicenow_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["servicenow", "cmdb_ci_service"], ["servicenow", "cmdb_ci_service"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.servicenow.servicenow.cmdb_ci_service"]}, "compiled_path": "target/compiled/servicenow/models/staging/base/stg_servicenow__cmdb_ci_service_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n select \n cast(null as TEXT) as _dbt_source_relation\n limit 0", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.servicenow.stg_servicenow__problem_base": {"database": "postgres", "schema": "reddit_ads_integration_tests_3_stg_servicenow", "name": "stg_servicenow__problem_base", "resource_type": "model", "package_name": "servicenow", "path": "staging/base/stg_servicenow__problem_base.sql", "original_file_path": "models/staging/base/stg_servicenow__problem_base.sql", "unique_id": "model.servicenow.stg_servicenow__problem_base", "fqn": ["servicenow", "staging", "base", "stg_servicenow__problem_base"], "alias": "stg_servicenow__problem_base", "checksum": {"name": "sha256", "checksum": "306c4bcde69f312ed509c7760f18f69d4e7315fc60f0523ea888c36921e49459"}, "config": {"enabled": true, "alias": null, "schema": "stg_servicenow", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_servicenow", "materialized": "view"}, "created_at": 1705606888.3871539, "relation_name": "\"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__problem_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='problem', \n database_variable='servicenow_database', \n schema_variable='servicenow_schema', \n default_database=target.database,\n default_schema='servicenow',\n default_variable='problem',\n union_schema_variable='servicenow_union_schemas',\n union_database_variable='servicenow_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["servicenow", "problem"], ["servicenow", "problem"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.servicenow.servicenow.problem"]}, "compiled_path": "target/compiled/servicenow/models/staging/base/stg_servicenow__problem_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"servicenow_integration_tests_3\".\"problem_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.servicenow.stg_servicenow__cmdb_ci_base": {"database": "postgres", "schema": "reddit_ads_integration_tests_3_stg_servicenow", "name": "stg_servicenow__cmdb_ci_base", "resource_type": "model", "package_name": "servicenow", "path": "staging/base/stg_servicenow__cmdb_ci_base.sql", "original_file_path": "models/staging/base/stg_servicenow__cmdb_ci_base.sql", "unique_id": "model.servicenow.stg_servicenow__cmdb_ci_base", "fqn": ["servicenow", "staging", "base", "stg_servicenow__cmdb_ci_base"], "alias": "stg_servicenow__cmdb_ci_base", "checksum": {"name": "sha256", "checksum": "7f7635b116aa50890cfaad157477ab040436c4041a5a429f112280441749f742"}, "config": {"enabled": true, "alias": null, "schema": "stg_servicenow", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_servicenow", "materialized": "view"}, "created_at": 1705606888.392433, "relation_name": "\"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__cmdb_ci_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='cmdb_ci', \n database_variable='servicenow_database', \n schema_variable='servicenow_schema', \n default_database=target.database,\n default_schema='servicenow',\n default_variable='cmdb_ci',\n union_schema_variable='servicenow_union_schemas',\n union_database_variable='servicenow_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["servicenow", "cmdb_ci"], ["servicenow", "cmdb_ci"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.servicenow.servicenow.cmdb_ci"]}, "compiled_path": "target/compiled/servicenow/models/staging/base/stg_servicenow__cmdb_ci_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n select \n cast(null as TEXT) as _dbt_source_relation\n limit 0", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.servicenow.stg_servicenow__sys_user_group_base": {"database": "postgres", "schema": "reddit_ads_integration_tests_3_stg_servicenow", "name": "stg_servicenow__sys_user_group_base", "resource_type": "model", "package_name": "servicenow", "path": "staging/base/stg_servicenow__sys_user_group_base.sql", "original_file_path": "models/staging/base/stg_servicenow__sys_user_group_base.sql", "unique_id": "model.servicenow.stg_servicenow__sys_user_group_base", "fqn": ["servicenow", "staging", "base", "stg_servicenow__sys_user_group_base"], "alias": "stg_servicenow__sys_user_group_base", "checksum": {"name": "sha256", "checksum": "3e16e0e6828d0db33e6903ff1a2f7c245b251378aec5d43438ab4024d47a88bc"}, "config": {"enabled": true, "alias": null, "schema": "stg_servicenow", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_servicenow", "materialized": "view"}, "created_at": 1705606888.3968441, "relation_name": "\"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__sys_user_group_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='sys_user_group', \n database_variable='servicenow_database', \n schema_variable='servicenow_schema', \n default_database=target.database,\n default_schema='servicenow',\n default_variable='sys_user_group',\n union_schema_variable='servicenow_union_schemas',\n union_database_variable='servicenow_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["servicenow", "sys_user_group"], ["servicenow", "sys_user_group"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.servicenow.servicenow.sys_user_group"]}, "compiled_path": "target/compiled/servicenow/models/staging/base/stg_servicenow__sys_user_group_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n select \n cast(null as TEXT) as _dbt_source_relation\n limit 0", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.servicenow.stg_servicenow__problem_task_base": {"database": "postgres", "schema": "reddit_ads_integration_tests_3_stg_servicenow", "name": "stg_servicenow__problem_task_base", "resource_type": "model", "package_name": "servicenow", "path": "staging/base/stg_servicenow__problem_task_base.sql", "original_file_path": "models/staging/base/stg_servicenow__problem_task_base.sql", "unique_id": "model.servicenow.stg_servicenow__problem_task_base", "fqn": ["servicenow", "staging", "base", "stg_servicenow__problem_task_base"], "alias": "stg_servicenow__problem_task_base", "checksum": {"name": "sha256", "checksum": "09f7c5207c5838fd6f1e064cd7862e97b8363787ad3bcda6a0f47fcc2bb8485b"}, "config": {"enabled": true, "alias": null, "schema": "stg_servicenow", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_servicenow", "materialized": "view"}, "created_at": 1705606888.4007769, "relation_name": "\"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__problem_task_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='problem_task', \n database_variable='servicenow_database', \n schema_variable='servicenow_schema', \n default_database=target.database,\n default_schema='servicenow',\n default_variable='problem_task',\n union_schema_variable='servicenow_union_schemas',\n union_database_variable='servicenow_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["servicenow", "problem_task"], ["servicenow", "problem_task"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.servicenow.servicenow.problem_task"]}, "compiled_path": "target/compiled/servicenow/models/staging/base/stg_servicenow__problem_task_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"servicenow_integration_tests_3\".\"problem_task_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.servicenow.stg_servicenow__change_request_base": {"database": "postgres", "schema": "reddit_ads_integration_tests_3_stg_servicenow", "name": "stg_servicenow__change_request_base", "resource_type": "model", "package_name": "servicenow", "path": "staging/base/stg_servicenow__change_request_base.sql", "original_file_path": "models/staging/base/stg_servicenow__change_request_base.sql", "unique_id": "model.servicenow.stg_servicenow__change_request_base", "fqn": ["servicenow", "staging", "base", "stg_servicenow__change_request_base"], "alias": "stg_servicenow__change_request_base", "checksum": {"name": "sha256", "checksum": "5aeede689fdb26bb00060cafa335ed0a2f96735ff2030c4e89dbbc18c06a419b"}, "config": {"enabled": true, "alias": null, "schema": "stg_servicenow", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_servicenow", "materialized": "view"}, "created_at": 1705606888.4051142, "relation_name": "\"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__change_request_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='change_request', \n database_variable='servicenow_database', \n schema_variable='servicenow_schema', \n default_database=target.database,\n default_schema='servicenow',\n default_variable='change_request',\n union_schema_variable='servicenow_union_schemas',\n union_database_variable='servicenow_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["servicenow", "change_request"], ["servicenow", "change_request"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.servicenow.servicenow.change_request"]}, "compiled_path": "target/compiled/servicenow/models/staging/base/stg_servicenow__change_request_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"servicenow_integration_tests_3\".\"change_request_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.servicenow.stg_servicenow__task_sla_base": {"database": "postgres", "schema": "reddit_ads_integration_tests_3_stg_servicenow", "name": "stg_servicenow__task_sla_base", "resource_type": "model", "package_name": "servicenow", "path": "staging/base/stg_servicenow__task_sla_base.sql", "original_file_path": "models/staging/base/stg_servicenow__task_sla_base.sql", "unique_id": "model.servicenow.stg_servicenow__task_sla_base", "fqn": ["servicenow", "staging", "base", "stg_servicenow__task_sla_base"], "alias": "stg_servicenow__task_sla_base", "checksum": {"name": "sha256", "checksum": "505dd0e4fbd5f66bfdd1a982c3bdc3b66eaede5f0855730683734fdeaaf363a1"}, "config": {"enabled": true, "alias": null, "schema": "stg_servicenow", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_servicenow", "materialized": "view"}, "created_at": 1705606888.4092338, "relation_name": "\"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__task_sla_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='task_sla', \n database_variable='servicenow_database', \n schema_variable='servicenow_schema', \n default_database=target.database,\n default_schema='servicenow',\n default_variable='task_sla',\n union_schema_variable='servicenow_union_schemas',\n union_database_variable='servicenow_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["servicenow", "task_sla"], ["servicenow", "task_sla"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.servicenow.servicenow.task_sla"]}, "compiled_path": "target/compiled/servicenow/models/staging/base/stg_servicenow__task_sla_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"servicenow_integration_tests_3\".\"task_sla_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.servicenow.stg_servicenow__core_company_base": {"database": "postgres", "schema": "reddit_ads_integration_tests_3_stg_servicenow", "name": "stg_servicenow__core_company_base", "resource_type": "model", "package_name": "servicenow", "path": "staging/base/stg_servicenow__core_company_base.sql", "original_file_path": "models/staging/base/stg_servicenow__core_company_base.sql", "unique_id": "model.servicenow.stg_servicenow__core_company_base", "fqn": ["servicenow", "staging", "base", "stg_servicenow__core_company_base"], "alias": "stg_servicenow__core_company_base", "checksum": {"name": "sha256", "checksum": "769500f7d337f2991f51ff8780e05557121876daf9610e6562f28350f615a705"}, "config": {"enabled": true, "alias": null, "schema": "stg_servicenow", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_servicenow", "materialized": "view"}, "created_at": 1705606888.414665, "relation_name": "\"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__core_company_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='core_company', \n database_variable='servicenow_database', \n schema_variable='servicenow_schema', \n default_database=target.database,\n default_schema='servicenow',\n default_variable='core_company',\n union_schema_variable='servicenow_union_schemas',\n union_database_variable='servicenow_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["servicenow", "core_company"], ["servicenow", "core_company"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.servicenow.servicenow.core_company"]}, "compiled_path": "target/compiled/servicenow/models/staging/base/stg_servicenow__core_company_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n select \n cast(null as TEXT) as _dbt_source_relation\n limit 0", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.servicenow.stg_servicenow__change_task_base": {"database": "postgres", "schema": "reddit_ads_integration_tests_3_stg_servicenow", "name": "stg_servicenow__change_task_base", "resource_type": "model", "package_name": "servicenow", "path": "staging/base/stg_servicenow__change_task_base.sql", "original_file_path": "models/staging/base/stg_servicenow__change_task_base.sql", "unique_id": "model.servicenow.stg_servicenow__change_task_base", "fqn": ["servicenow", "staging", "base", "stg_servicenow__change_task_base"], "alias": "stg_servicenow__change_task_base", "checksum": {"name": "sha256", "checksum": "91be1a25c14831a17d6db9a00474534df60e447a8d9f76989b6268714f4f5ffc"}, "config": {"enabled": true, "alias": null, "schema": "stg_servicenow", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_servicenow", "materialized": "view"}, "created_at": 1705606888.4189272, "relation_name": "\"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__change_task_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='change_task', \n database_variable='servicenow_database', \n schema_variable='servicenow_schema', \n default_database=target.database,\n default_schema='servicenow',\n default_variable='change_task',\n union_schema_variable='servicenow_union_schemas',\n union_database_variable='servicenow_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["servicenow", "change_task"], ["servicenow", "change_task"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.servicenow.servicenow.change_task"]}, "compiled_path": "target/compiled/servicenow/models/staging/base/stg_servicenow__change_task_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"servicenow_integration_tests_3\".\"change_task_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.servicenow.stg_servicenow__sys_user_base": {"database": "postgres", "schema": "reddit_ads_integration_tests_3_stg_servicenow", "name": "stg_servicenow__sys_user_base", "resource_type": "model", "package_name": "servicenow", "path": "staging/base/stg_servicenow__sys_user_base.sql", "original_file_path": "models/staging/base/stg_servicenow__sys_user_base.sql", "unique_id": "model.servicenow.stg_servicenow__sys_user_base", "fqn": ["servicenow", "staging", "base", "stg_servicenow__sys_user_base"], "alias": "stg_servicenow__sys_user_base", "checksum": {"name": "sha256", "checksum": "0663be281ab1122b286a10c1ff38597fd4eee537d10df3e27b7df42207b2825a"}, "config": {"enabled": true, "alias": null, "schema": "stg_servicenow", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_servicenow", "materialized": "view"}, "created_at": 1705606888.423359, "relation_name": "\"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__sys_user_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='sys_user', \n database_variable='servicenow_database', \n schema_variable='servicenow_schema', \n default_database=target.database,\n default_schema='servicenow',\n default_variable='sys_user',\n union_schema_variable='servicenow_union_schemas',\n union_database_variable='servicenow_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["servicenow", "sys_user"], ["servicenow", "sys_user"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.servicenow.servicenow.sys_user"]}, "compiled_path": "target/compiled/servicenow/models/staging/base/stg_servicenow__sys_user_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"servicenow_integration_tests_3\".\"sys_user_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "test.servicenow.unique_servicenow__task_enhanced_task_id.a974c4dbbc": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "task_id", "model": "{{ get_where_subquery(ref('servicenow__task_enhanced')) }}"}, "namespace": null}, "database": "postgres", "schema": "reddit_ads_integration_tests_3_dbt_test__audit", "name": "unique_servicenow__task_enhanced_task_id", "resource_type": "test", "package_name": "servicenow", "path": "unique_servicenow__task_enhanced_task_id.sql", "original_file_path": "models/servicenow.yml", "unique_id": "test.servicenow.unique_servicenow__task_enhanced_task_id.a974c4dbbc", "fqn": ["servicenow", "unique_servicenow__task_enhanced_task_id"], "alias": "unique_servicenow__task_enhanced_task_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1705606889.025693, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "servicenow__task_enhanced", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.servicenow.servicenow__task_enhanced"]}, "compiled_path": "target/compiled/servicenow/models/servicenow.yml/unique_servicenow__task_enhanced_task_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n task_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"reddit_ads_integration_tests_3_servicenow\".\"servicenow__task_enhanced\"\nwhere task_id is not null\ngroup by task_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "task_id", "file_key_name": "models.servicenow__task_enhanced", "attached_node": "model.servicenow.servicenow__task_enhanced"}, "test.servicenow.not_null_servicenow__task_enhanced_task_id.76cea62cda": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "task_id", "model": "{{ get_where_subquery(ref('servicenow__task_enhanced')) }}"}, "namespace": null}, "database": "postgres", "schema": "reddit_ads_integration_tests_3_dbt_test__audit", "name": "not_null_servicenow__task_enhanced_task_id", "resource_type": "test", "package_name": "servicenow", "path": "not_null_servicenow__task_enhanced_task_id.sql", "original_file_path": "models/servicenow.yml", "unique_id": "test.servicenow.not_null_servicenow__task_enhanced_task_id.76cea62cda", "fqn": ["servicenow", "not_null_servicenow__task_enhanced_task_id"], "alias": "not_null_servicenow__task_enhanced_task_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1705606889.027039, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "servicenow__task_enhanced", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.servicenow.servicenow__task_enhanced"]}, "compiled_path": "target/compiled/servicenow/models/servicenow.yml/not_null_servicenow__task_enhanced_task_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect task_id\nfrom \"postgres\".\"reddit_ads_integration_tests_3_servicenow\".\"servicenow__task_enhanced\"\nwhere task_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "task_id", "file_key_name": "models.servicenow__task_enhanced", "attached_node": "model.servicenow.servicenow__task_enhanced"}, "test.servicenow.dbt_utils_unique_combination_of_columns_servicenow__activity_summary_task_updated_date__task_state__priority__impact__urgency__source_relation.8ca2665c4e": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["task_updated_date", "task_state", "priority", "impact", "urgency", "source_relation"], "model": "{{ get_where_subquery(ref('servicenow__activity_summary')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "reddit_ads_integration_tests_3_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_servicenow__activity_summary_task_updated_date__task_state__priority__impact__urgency__source_relation", "resource_type": "test", "package_name": "servicenow", "path": "dbt_utils_unique_combination_o_cbdfbd9559b8d3f7fb7b2b3034ae9ec9.sql", "original_file_path": "models/servicenow.yml", "unique_id": "test.servicenow.dbt_utils_unique_combination_of_columns_servicenow__activity_summary_task_updated_date__task_state__priority__impact__urgency__source_relation.8ca2665c4e", "fqn": ["servicenow", "dbt_utils_unique_combination_of_columns_servicenow__activity_summary_task_updated_date__task_state__priority__impact__urgency__source_relation"], "alias": "dbt_utils_unique_combination_o_cbdfbd9559b8d3f7fb7b2b3034ae9ec9", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_cbdfbd9559b8d3f7fb7b2b3034ae9ec9", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_cbdfbd9559b8d3f7fb7b2b3034ae9ec9"}, "created_at": 1705606889.028277, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_cbdfbd9559b8d3f7fb7b2b3034ae9ec9\") }}", "language": "sql", "refs": [{"name": "servicenow__activity_summary", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.servicenow.servicenow__activity_summary"]}, "compiled_path": "target/compiled/servicenow/models/servicenow.yml/dbt_utils_unique_combination_o_cbdfbd9559b8d3f7fb7b2b3034ae9ec9.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n task_updated_date, task_state, priority, impact, urgency, source_relation\n from \"postgres\".\"reddit_ads_integration_tests_3_servicenow\".\"servicenow__activity_summary\"\n group by task_updated_date, task_state, priority, impact, urgency, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.servicenow__activity_summary", "attached_node": "model.servicenow.servicenow__activity_summary"}, "test.servicenow.not_null_stg_servicenow__task_task_id.7a50a91303": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "task_id", "model": "{{ get_where_subquery(ref('stg_servicenow__task')) }}"}, "namespace": null}, "database": "postgres", "schema": "reddit_ads_integration_tests_3_dbt_test__audit", "name": "not_null_stg_servicenow__task_task_id", "resource_type": "test", "package_name": "servicenow", "path": "not_null_stg_servicenow__task_task_id.sql", "original_file_path": "models/staging/stg_servicenow.yml", "unique_id": "test.servicenow.not_null_stg_servicenow__task_task_id.7a50a91303", "fqn": ["servicenow", "staging", "not_null_stg_servicenow__task_task_id"], "alias": "not_null_stg_servicenow__task_task_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1705606889.139055, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_servicenow__task", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.servicenow.stg_servicenow__task"]}, "compiled_path": "target/compiled/servicenow/models/staging/stg_servicenow.yml/not_null_stg_servicenow__task_task_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect task_id\nfrom \"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__task\"\nwhere task_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "task_id", "file_key_name": "models.stg_servicenow__task", "attached_node": "model.servicenow.stg_servicenow__task"}, "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__task_task_id__source_relation.4b5ec4b727": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["task_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_servicenow__task')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "reddit_ads_integration_tests_3_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_servicenow__task_task_id__source_relation", "resource_type": "test", "package_name": "servicenow", "path": "dbt_utils_unique_combination_o_8167db2a4eccf7739dd11d1e87dcc167.sql", "original_file_path": "models/staging/stg_servicenow.yml", "unique_id": "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__task_task_id__source_relation.4b5ec4b727", "fqn": ["servicenow", "staging", "dbt_utils_unique_combination_of_columns_stg_servicenow__task_task_id__source_relation"], "alias": "dbt_utils_unique_combination_o_8167db2a4eccf7739dd11d1e87dcc167", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_8167db2a4eccf7739dd11d1e87dcc167", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_8167db2a4eccf7739dd11d1e87dcc167"}, "created_at": 1705606889.140225, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_8167db2a4eccf7739dd11d1e87dcc167\") }}", "language": "sql", "refs": [{"name": "stg_servicenow__task", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.servicenow.stg_servicenow__task"]}, "compiled_path": "target/compiled/servicenow/models/staging/stg_servicenow.yml/dbt_utils_unique_combination_o_8167db2a4eccf7739dd11d1e87dcc167.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n task_id, source_relation\n from \"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__task\"\n group by task_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_servicenow__task", "attached_node": "model.servicenow.stg_servicenow__task"}, "test.servicenow.not_null_stg_servicenow__task_sla_task_sla_id.c67b0e6fdf": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "task_sla_id", "model": "{{ get_where_subquery(ref('stg_servicenow__task_sla')) }}"}, "namespace": null}, "database": "postgres", "schema": "reddit_ads_integration_tests_3_dbt_test__audit", "name": "not_null_stg_servicenow__task_sla_task_sla_id", "resource_type": "test", "package_name": "servicenow", "path": "not_null_stg_servicenow__task_sla_task_sla_id.sql", "original_file_path": "models/staging/stg_servicenow.yml", "unique_id": "test.servicenow.not_null_stg_servicenow__task_sla_task_sla_id.c67b0e6fdf", "fqn": ["servicenow", "staging", "not_null_stg_servicenow__task_sla_task_sla_id"], "alias": "not_null_stg_servicenow__task_sla_task_sla_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1705606889.14306, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_servicenow__task_sla", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.servicenow.stg_servicenow__task_sla"]}, "compiled_path": "target/compiled/servicenow/models/staging/stg_servicenow.yml/not_null_stg_servicenow__task_sla_task_sla_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect task_sla_id\nfrom \"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__task_sla\"\nwhere task_sla_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "task_sla_id", "file_key_name": "models.stg_servicenow__task_sla", "attached_node": "model.servicenow.stg_servicenow__task_sla"}, "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__task_sla_task_sla_id__source_relation.e9939b7a70": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["task_sla_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_servicenow__task_sla')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "reddit_ads_integration_tests_3_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_servicenow__task_sla_task_sla_id__source_relation", "resource_type": "test", "package_name": "servicenow", "path": "dbt_utils_unique_combination_o_9a6ae426a268d8c3aa1c380edff453d0.sql", "original_file_path": "models/staging/stg_servicenow.yml", "unique_id": "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__task_sla_task_sla_id__source_relation.e9939b7a70", "fqn": ["servicenow", "staging", "dbt_utils_unique_combination_of_columns_stg_servicenow__task_sla_task_sla_id__source_relation"], "alias": "dbt_utils_unique_combination_o_9a6ae426a268d8c3aa1c380edff453d0", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_9a6ae426a268d8c3aa1c380edff453d0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_9a6ae426a268d8c3aa1c380edff453d0"}, "created_at": 1705606889.144245, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_9a6ae426a268d8c3aa1c380edff453d0\") }}", "language": "sql", "refs": [{"name": "stg_servicenow__task_sla", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.servicenow.stg_servicenow__task_sla"]}, "compiled_path": "target/compiled/servicenow/models/staging/stg_servicenow.yml/dbt_utils_unique_combination_o_9a6ae426a268d8c3aa1c380edff453d0.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n task_sla_id, source_relation\n from \"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__task_sla\"\n group by task_sla_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_servicenow__task_sla", "attached_node": "model.servicenow.stg_servicenow__task_sla"}, "test.servicenow.not_null_stg_servicenow__sys_user_user_id.90a8733b9d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "user_id", "model": "{{ get_where_subquery(ref('stg_servicenow__sys_user')) }}"}, "namespace": null}, "database": "postgres", "schema": "reddit_ads_integration_tests_3_dbt_test__audit", "name": "not_null_stg_servicenow__sys_user_user_id", "resource_type": "test", "package_name": "servicenow", "path": "not_null_stg_servicenow__sys_user_user_id.sql", "original_file_path": "models/staging/stg_servicenow.yml", "unique_id": "test.servicenow.not_null_stg_servicenow__sys_user_user_id.90a8733b9d", "fqn": ["servicenow", "staging", "not_null_stg_servicenow__sys_user_user_id"], "alias": "not_null_stg_servicenow__sys_user_user_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1705606889.147126, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_servicenow__sys_user", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.servicenow.stg_servicenow__sys_user"]}, "compiled_path": "target/compiled/servicenow/models/staging/stg_servicenow.yml/not_null_stg_servicenow__sys_user_user_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect user_id\nfrom \"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__sys_user\"\nwhere user_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "user_id", "file_key_name": "models.stg_servicenow__sys_user", "attached_node": "model.servicenow.stg_servicenow__sys_user"}, "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__sys_user_user_id__source_relation.2a8836be3c": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["user_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_servicenow__sys_user')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "reddit_ads_integration_tests_3_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_servicenow__sys_user_user_id__source_relation", "resource_type": "test", "package_name": "servicenow", "path": "dbt_utils_unique_combination_o_9cb06bc90565019231d3d89413e0ac4d.sql", "original_file_path": "models/staging/stg_servicenow.yml", "unique_id": "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__sys_user_user_id__source_relation.2a8836be3c", "fqn": ["servicenow", "staging", "dbt_utils_unique_combination_of_columns_stg_servicenow__sys_user_user_id__source_relation"], "alias": "dbt_utils_unique_combination_o_9cb06bc90565019231d3d89413e0ac4d", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_9cb06bc90565019231d3d89413e0ac4d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_9cb06bc90565019231d3d89413e0ac4d"}, "created_at": 1705606889.148155, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_9cb06bc90565019231d3d89413e0ac4d\") }}", "language": "sql", "refs": [{"name": "stg_servicenow__sys_user", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.servicenow.stg_servicenow__sys_user"]}, "compiled_path": "target/compiled/servicenow/models/staging/stg_servicenow.yml/dbt_utils_unique_combination_o_9cb06bc90565019231d3d89413e0ac4d.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n user_id, source_relation\n from \"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__sys_user\"\n group by user_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_servicenow__sys_user", "attached_node": "model.servicenow.stg_servicenow__sys_user"}, "test.servicenow.not_null_stg_servicenow__problem_problem_id.2b0f45ffad": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "problem_id", "model": "{{ get_where_subquery(ref('stg_servicenow__problem')) }}"}, "namespace": null}, "database": "postgres", "schema": "reddit_ads_integration_tests_3_dbt_test__audit", "name": "not_null_stg_servicenow__problem_problem_id", "resource_type": "test", "package_name": "servicenow", "path": "not_null_stg_servicenow__problem_problem_id.sql", "original_file_path": "models/staging/stg_servicenow.yml", "unique_id": "test.servicenow.not_null_stg_servicenow__problem_problem_id.2b0f45ffad", "fqn": ["servicenow", "staging", "not_null_stg_servicenow__problem_problem_id"], "alias": "not_null_stg_servicenow__problem_problem_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1705606889.150792, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_servicenow__problem", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.servicenow.stg_servicenow__problem"]}, "compiled_path": "target/compiled/servicenow/models/staging/stg_servicenow.yml/not_null_stg_servicenow__problem_problem_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect problem_id\nfrom \"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__problem\"\nwhere problem_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "problem_id", "file_key_name": "models.stg_servicenow__problem", "attached_node": "model.servicenow.stg_servicenow__problem"}, "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__problem_problem_id__source_relation.135d98438b": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["problem_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_servicenow__problem')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "reddit_ads_integration_tests_3_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_servicenow__problem_problem_id__source_relation", "resource_type": "test", "package_name": "servicenow", "path": "dbt_utils_unique_combination_o_82249ad0290a130e288af5a17d1ec87e.sql", "original_file_path": "models/staging/stg_servicenow.yml", "unique_id": "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__problem_problem_id__source_relation.135d98438b", "fqn": ["servicenow", "staging", "dbt_utils_unique_combination_of_columns_stg_servicenow__problem_problem_id__source_relation"], "alias": "dbt_utils_unique_combination_o_82249ad0290a130e288af5a17d1ec87e", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_82249ad0290a130e288af5a17d1ec87e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_82249ad0290a130e288af5a17d1ec87e"}, "created_at": 1705606889.1518831, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_82249ad0290a130e288af5a17d1ec87e\") }}", "language": "sql", "refs": [{"name": "stg_servicenow__problem", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.servicenow.stg_servicenow__problem"]}, "compiled_path": "target/compiled/servicenow/models/staging/stg_servicenow.yml/dbt_utils_unique_combination_o_82249ad0290a130e288af5a17d1ec87e.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n problem_id, source_relation\n from \"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__problem\"\n group by problem_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_servicenow__problem", "attached_node": "model.servicenow.stg_servicenow__problem"}, "test.servicenow.not_null_stg_servicenow__problem_task_problem_task_id.2d07d24f54": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "problem_task_id", "model": "{{ get_where_subquery(ref('stg_servicenow__problem_task')) }}"}, "namespace": null}, "database": "postgres", "schema": "reddit_ads_integration_tests_3_dbt_test__audit", "name": "not_null_stg_servicenow__problem_task_problem_task_id", "resource_type": "test", "package_name": "servicenow", "path": "not_null_stg_servicenow__problem_task_problem_task_id.sql", "original_file_path": "models/staging/stg_servicenow.yml", "unique_id": "test.servicenow.not_null_stg_servicenow__problem_task_problem_task_id.2d07d24f54", "fqn": ["servicenow", "staging", "not_null_stg_servicenow__problem_task_problem_task_id"], "alias": "not_null_stg_servicenow__problem_task_problem_task_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1705606889.154408, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_servicenow__problem_task", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.servicenow.stg_servicenow__problem_task"]}, "compiled_path": "target/compiled/servicenow/models/staging/stg_servicenow.yml/not_null_stg_servicenow__problem_task_problem_task_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect problem_task_id\nfrom \"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__problem_task\"\nwhere problem_task_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "problem_task_id", "file_key_name": "models.stg_servicenow__problem_task", "attached_node": "model.servicenow.stg_servicenow__problem_task"}, "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__problem_task_problem_task_id__source_relation.e59f50cae6": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["problem_task_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_servicenow__problem_task')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "reddit_ads_integration_tests_3_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_servicenow__problem_task_problem_task_id__source_relation", "resource_type": "test", "package_name": "servicenow", "path": "dbt_utils_unique_combination_o_4b0b06f6181eb4745dadebceb15254b9.sql", "original_file_path": "models/staging/stg_servicenow.yml", "unique_id": "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__problem_task_problem_task_id__source_relation.e59f50cae6", "fqn": ["servicenow", "staging", "dbt_utils_unique_combination_of_columns_stg_servicenow__problem_task_problem_task_id__source_relation"], "alias": "dbt_utils_unique_combination_o_4b0b06f6181eb4745dadebceb15254b9", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_4b0b06f6181eb4745dadebceb15254b9", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_4b0b06f6181eb4745dadebceb15254b9"}, "created_at": 1705606889.156131, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_4b0b06f6181eb4745dadebceb15254b9\") }}", "language": "sql", "refs": [{"name": "stg_servicenow__problem_task", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.servicenow.stg_servicenow__problem_task"]}, "compiled_path": "target/compiled/servicenow/models/staging/stg_servicenow.yml/dbt_utils_unique_combination_o_4b0b06f6181eb4745dadebceb15254b9.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n problem_task_id, source_relation\n from \"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__problem_task\"\n group by problem_task_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_servicenow__problem_task", "attached_node": "model.servicenow.stg_servicenow__problem_task"}, "test.servicenow.not_null_stg_servicenow__incident_incident_id.b01cee4a78": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "incident_id", "model": "{{ get_where_subquery(ref('stg_servicenow__incident')) }}"}, "namespace": null}, "database": "postgres", "schema": "reddit_ads_integration_tests_3_dbt_test__audit", "name": "not_null_stg_servicenow__incident_incident_id", "resource_type": "test", "package_name": "servicenow", "path": "not_null_stg_servicenow__incident_incident_id.sql", "original_file_path": "models/staging/stg_servicenow.yml", "unique_id": "test.servicenow.not_null_stg_servicenow__incident_incident_id.b01cee4a78", "fqn": ["servicenow", "staging", "not_null_stg_servicenow__incident_incident_id"], "alias": "not_null_stg_servicenow__incident_incident_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1705606889.1587598, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_servicenow__incident", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.servicenow.stg_servicenow__incident"]}, "compiled_path": "target/compiled/servicenow/models/staging/stg_servicenow.yml/not_null_stg_servicenow__incident_incident_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect incident_id\nfrom \"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__incident\"\nwhere incident_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "incident_id", "file_key_name": "models.stg_servicenow__incident", "attached_node": "model.servicenow.stg_servicenow__incident"}, "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__incident_incident_id__source_relation.4383616e6a": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["incident_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_servicenow__incident')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "reddit_ads_integration_tests_3_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_servicenow__incident_incident_id__source_relation", "resource_type": "test", "package_name": "servicenow", "path": "dbt_utils_unique_combination_o_8be0af367faef4490979e29aa876f3c1.sql", "original_file_path": "models/staging/stg_servicenow.yml", "unique_id": "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__incident_incident_id__source_relation.4383616e6a", "fqn": ["servicenow", "staging", "dbt_utils_unique_combination_of_columns_stg_servicenow__incident_incident_id__source_relation"], "alias": "dbt_utils_unique_combination_o_8be0af367faef4490979e29aa876f3c1", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_8be0af367faef4490979e29aa876f3c1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_8be0af367faef4490979e29aa876f3c1"}, "created_at": 1705606889.160046, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_8be0af367faef4490979e29aa876f3c1\") }}", "language": "sql", "refs": [{"name": "stg_servicenow__incident", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.servicenow.stg_servicenow__incident"]}, "compiled_path": "target/compiled/servicenow/models/staging/stg_servicenow.yml/dbt_utils_unique_combination_o_8be0af367faef4490979e29aa876f3c1.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n incident_id, source_relation\n from \"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__incident\"\n group by incident_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_servicenow__incident", "attached_node": "model.servicenow.stg_servicenow__incident"}, "test.servicenow.not_null_stg_servicenow__change_task_change_task_id.2d5ae34a7b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "change_task_id", "model": "{{ get_where_subquery(ref('stg_servicenow__change_task')) }}"}, "namespace": null}, "database": "postgres", "schema": "reddit_ads_integration_tests_3_dbt_test__audit", "name": "not_null_stg_servicenow__change_task_change_task_id", "resource_type": "test", "package_name": "servicenow", "path": "not_null_stg_servicenow__change_task_change_task_id.sql", "original_file_path": "models/staging/stg_servicenow.yml", "unique_id": "test.servicenow.not_null_stg_servicenow__change_task_change_task_id.2d5ae34a7b", "fqn": ["servicenow", "staging", "not_null_stg_servicenow__change_task_change_task_id"], "alias": "not_null_stg_servicenow__change_task_change_task_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1705606889.1625228, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_servicenow__change_task", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.servicenow.stg_servicenow__change_task"]}, "compiled_path": "target/compiled/servicenow/models/staging/stg_servicenow.yml/not_null_stg_servicenow__change_task_change_task_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect change_task_id\nfrom \"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__change_task\"\nwhere change_task_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "change_task_id", "file_key_name": "models.stg_servicenow__change_task", "attached_node": "model.servicenow.stg_servicenow__change_task"}, "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__change_task_change_task_id__source_relation.11bf5182ff": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["change_task_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_servicenow__change_task')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "reddit_ads_integration_tests_3_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_servicenow__change_task_change_task_id__source_relation", "resource_type": "test", "package_name": "servicenow", "path": "dbt_utils_unique_combination_o_758ec134186d8ce4db1a6153ebd05bdc.sql", "original_file_path": "models/staging/stg_servicenow.yml", "unique_id": "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__change_task_change_task_id__source_relation.11bf5182ff", "fqn": ["servicenow", "staging", "dbt_utils_unique_combination_of_columns_stg_servicenow__change_task_change_task_id__source_relation"], "alias": "dbt_utils_unique_combination_o_758ec134186d8ce4db1a6153ebd05bdc", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_758ec134186d8ce4db1a6153ebd05bdc", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_758ec134186d8ce4db1a6153ebd05bdc"}, "created_at": 1705606889.163696, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_758ec134186d8ce4db1a6153ebd05bdc\") }}", "language": "sql", "refs": [{"name": "stg_servicenow__change_task", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.servicenow.stg_servicenow__change_task"]}, "compiled_path": "target/compiled/servicenow/models/staging/stg_servicenow.yml/dbt_utils_unique_combination_o_758ec134186d8ce4db1a6153ebd05bdc.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n change_task_id, source_relation\n from \"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__change_task\"\n group by change_task_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_servicenow__change_task", "attached_node": "model.servicenow.stg_servicenow__change_task"}, "test.servicenow.not_null_stg_servicenow__change_request_change_request_id.0f2ee81c5f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "change_request_id", "model": "{{ get_where_subquery(ref('stg_servicenow__change_request')) }}"}, "namespace": null}, "database": "postgres", "schema": "reddit_ads_integration_tests_3_dbt_test__audit", "name": "not_null_stg_servicenow__change_request_change_request_id", "resource_type": "test", "package_name": "servicenow", "path": "not_null_stg_servicenow__change_request_change_request_id.sql", "original_file_path": "models/staging/stg_servicenow.yml", "unique_id": "test.servicenow.not_null_stg_servicenow__change_request_change_request_id.0f2ee81c5f", "fqn": ["servicenow", "staging", "not_null_stg_servicenow__change_request_change_request_id"], "alias": "not_null_stg_servicenow__change_request_change_request_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1705606889.166013, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_servicenow__change_request", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.servicenow.stg_servicenow__change_request"]}, "compiled_path": "target/compiled/servicenow/models/staging/stg_servicenow.yml/not_null_stg_servicenow__change_request_change_request_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect change_request_id\nfrom \"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__change_request\"\nwhere change_request_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "change_request_id", "file_key_name": "models.stg_servicenow__change_request", "attached_node": "model.servicenow.stg_servicenow__change_request"}, "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__change_request_change_request_id__source_relation.f8d65569ae": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["change_request_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_servicenow__change_request')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "reddit_ads_integration_tests_3_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_servicenow__change_request_change_request_id__source_relation", "resource_type": "test", "package_name": "servicenow", "path": "dbt_utils_unique_combination_o_2bf4c25162ab05fcec1fd4cde281ae0f.sql", "original_file_path": "models/staging/stg_servicenow.yml", "unique_id": "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__change_request_change_request_id__source_relation.f8d65569ae", "fqn": ["servicenow", "staging", "dbt_utils_unique_combination_of_columns_stg_servicenow__change_request_change_request_id__source_relation"], "alias": "dbt_utils_unique_combination_o_2bf4c25162ab05fcec1fd4cde281ae0f", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_2bf4c25162ab05fcec1fd4cde281ae0f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_2bf4c25162ab05fcec1fd4cde281ae0f"}, "created_at": 1705606889.167066, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_2bf4c25162ab05fcec1fd4cde281ae0f\") }}", "language": "sql", "refs": [{"name": "stg_servicenow__change_request", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.servicenow.stg_servicenow__change_request"]}, "compiled_path": "target/compiled/servicenow/models/staging/stg_servicenow.yml/dbt_utils_unique_combination_o_2bf4c25162ab05fcec1fd4cde281ae0f.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n change_request_id, source_relation\n from \"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__change_request\"\n group by change_request_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_servicenow__change_request", "attached_node": "model.servicenow.stg_servicenow__change_request"}, "test.servicenow.not_null_stg_servicenow__core_company_core_company_id.e8ef462897": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "core_company_id", "model": "{{ get_where_subquery(ref('stg_servicenow__core_company')) }}"}, "namespace": null}, "database": "postgres", "schema": "reddit_ads_integration_tests_3_dbt_test__audit", "name": "not_null_stg_servicenow__core_company_core_company_id", "resource_type": "test", "package_name": "servicenow", "path": "not_null_stg_servicenow__core_company_core_company_id.sql", "original_file_path": "models/staging/stg_servicenow.yml", "unique_id": "test.servicenow.not_null_stg_servicenow__core_company_core_company_id.e8ef462897", "fqn": ["servicenow", "staging", "not_null_stg_servicenow__core_company_core_company_id"], "alias": "not_null_stg_servicenow__core_company_core_company_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1705606889.1696708, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_servicenow__core_company", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.servicenow.stg_servicenow__core_company"]}, "compiled_path": "target/compiled/servicenow/models/staging/stg_servicenow.yml/not_null_stg_servicenow__core_company_core_company_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect core_company_id\nfrom \"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__core_company\"\nwhere core_company_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "core_company_id", "file_key_name": "models.stg_servicenow__core_company", "attached_node": "model.servicenow.stg_servicenow__core_company"}, "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__core_company_core_company_id__source_relation.85b30d325b": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["core_company_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_servicenow__core_company')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "reddit_ads_integration_tests_3_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_servicenow__core_company_core_company_id__source_relation", "resource_type": "test", "package_name": "servicenow", "path": "dbt_utils_unique_combination_o_f612d1e13877c6192a8e340f8feda8ae.sql", "original_file_path": "models/staging/stg_servicenow.yml", "unique_id": "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__core_company_core_company_id__source_relation.85b30d325b", "fqn": ["servicenow", "staging", "dbt_utils_unique_combination_of_columns_stg_servicenow__core_company_core_company_id__source_relation"], "alias": "dbt_utils_unique_combination_o_f612d1e13877c6192a8e340f8feda8ae", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_f612d1e13877c6192a8e340f8feda8ae", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_f612d1e13877c6192a8e340f8feda8ae"}, "created_at": 1705606889.170788, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_f612d1e13877c6192a8e340f8feda8ae\") }}", "language": "sql", "refs": [{"name": "stg_servicenow__core_company", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.servicenow.stg_servicenow__core_company"]}, "compiled_path": "target/compiled/servicenow/models/staging/stg_servicenow.yml/dbt_utils_unique_combination_o_f612d1e13877c6192a8e340f8feda8ae.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n core_company_id, source_relation\n from \"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__core_company\"\n group by core_company_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_servicenow__core_company", "attached_node": "model.servicenow.stg_servicenow__core_company"}, "test.servicenow.not_null_stg_servicenow__cmdb_ci_cmdb_ci_id.83f2c6d37c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "cmdb_ci_id", "model": "{{ get_where_subquery(ref('stg_servicenow__cmdb_ci')) }}"}, "namespace": null}, "database": "postgres", "schema": "reddit_ads_integration_tests_3_dbt_test__audit", "name": "not_null_stg_servicenow__cmdb_ci_cmdb_ci_id", "resource_type": "test", "package_name": "servicenow", "path": "not_null_stg_servicenow__cmdb_ci_cmdb_ci_id.sql", "original_file_path": "models/staging/stg_servicenow.yml", "unique_id": "test.servicenow.not_null_stg_servicenow__cmdb_ci_cmdb_ci_id.83f2c6d37c", "fqn": ["servicenow", "staging", "not_null_stg_servicenow__cmdb_ci_cmdb_ci_id"], "alias": "not_null_stg_servicenow__cmdb_ci_cmdb_ci_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1705606889.1734881, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_servicenow__cmdb_ci", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.servicenow.stg_servicenow__cmdb_ci"]}, "compiled_path": "target/compiled/servicenow/models/staging/stg_servicenow.yml/not_null_stg_servicenow__cmdb_ci_cmdb_ci_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect cmdb_ci_id\nfrom \"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__cmdb_ci\"\nwhere cmdb_ci_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "cmdb_ci_id", "file_key_name": "models.stg_servicenow__cmdb_ci", "attached_node": "model.servicenow.stg_servicenow__cmdb_ci"}, "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__cmdb_ci_cmdb_ci_id__source_relation.4d25f1839d": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["cmdb_ci_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_servicenow__cmdb_ci')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "reddit_ads_integration_tests_3_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_servicenow__cmdb_ci_cmdb_ci_id__source_relation", "resource_type": "test", "package_name": "servicenow", "path": "dbt_utils_unique_combination_o_b3e2b49df95b8af51abe3839b59cbd3a.sql", "original_file_path": "models/staging/stg_servicenow.yml", "unique_id": "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__cmdb_ci_cmdb_ci_id__source_relation.4d25f1839d", "fqn": ["servicenow", "staging", "dbt_utils_unique_combination_of_columns_stg_servicenow__cmdb_ci_cmdb_ci_id__source_relation"], "alias": "dbt_utils_unique_combination_o_b3e2b49df95b8af51abe3839b59cbd3a", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_b3e2b49df95b8af51abe3839b59cbd3a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_b3e2b49df95b8af51abe3839b59cbd3a"}, "created_at": 1705606889.1745012, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_b3e2b49df95b8af51abe3839b59cbd3a\") }}", "language": "sql", "refs": [{"name": "stg_servicenow__cmdb_ci", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.servicenow.stg_servicenow__cmdb_ci"]}, "compiled_path": "target/compiled/servicenow/models/staging/stg_servicenow.yml/dbt_utils_unique_combination_o_b3e2b49df95b8af51abe3839b59cbd3a.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n cmdb_ci_id, source_relation\n from \"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__cmdb_ci\"\n group by cmdb_ci_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_servicenow__cmdb_ci", "attached_node": "model.servicenow.stg_servicenow__cmdb_ci"}, "test.servicenow.not_null_stg_servicenow__cmdb_ci_service_cmdb_ci_service_id.f7770250de": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "cmdb_ci_service_id", "model": "{{ get_where_subquery(ref('stg_servicenow__cmdb_ci_service')) }}"}, "namespace": null}, "database": "postgres", "schema": "reddit_ads_integration_tests_3_dbt_test__audit", "name": "not_null_stg_servicenow__cmdb_ci_service_cmdb_ci_service_id", "resource_type": "test", "package_name": "servicenow", "path": "not_null_stg_servicenow__cmdb_ci_service_cmdb_ci_service_id.sql", "original_file_path": "models/staging/stg_servicenow.yml", "unique_id": "test.servicenow.not_null_stg_servicenow__cmdb_ci_service_cmdb_ci_service_id.f7770250de", "fqn": ["servicenow", "staging", "not_null_stg_servicenow__cmdb_ci_service_cmdb_ci_service_id"], "alias": "not_null_stg_servicenow__cmdb_ci_service_cmdb_ci_service_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1705606889.177043, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_servicenow__cmdb_ci_service", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.servicenow.stg_servicenow__cmdb_ci_service"]}, "compiled_path": "target/compiled/servicenow/models/staging/stg_servicenow.yml/not_null_stg_servicenow__cmdb_ci_service_cmdb_ci_service_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect cmdb_ci_service_id\nfrom \"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__cmdb_ci_service\"\nwhere cmdb_ci_service_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "cmdb_ci_service_id", "file_key_name": "models.stg_servicenow__cmdb_ci_service", "attached_node": "model.servicenow.stg_servicenow__cmdb_ci_service"}, "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__cmdb_ci_service_cmdb_ci_service_id__source_relation.e596372710": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["cmdb_ci_service_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_servicenow__cmdb_ci_service')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "reddit_ads_integration_tests_3_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_servicenow__cmdb_ci_service_cmdb_ci_service_id__source_relation", "resource_type": "test", "package_name": "servicenow", "path": "dbt_utils_unique_combination_o_c19143a81dd4519e61d067410ae2c4b5.sql", "original_file_path": "models/staging/stg_servicenow.yml", "unique_id": "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__cmdb_ci_service_cmdb_ci_service_id__source_relation.e596372710", "fqn": ["servicenow", "staging", "dbt_utils_unique_combination_of_columns_stg_servicenow__cmdb_ci_service_cmdb_ci_service_id__source_relation"], "alias": "dbt_utils_unique_combination_o_c19143a81dd4519e61d067410ae2c4b5", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_c19143a81dd4519e61d067410ae2c4b5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_c19143a81dd4519e61d067410ae2c4b5"}, "created_at": 1705606889.1781251, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_c19143a81dd4519e61d067410ae2c4b5\") }}", "language": "sql", "refs": [{"name": "stg_servicenow__cmdb_ci_service", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.servicenow.stg_servicenow__cmdb_ci_service"]}, "compiled_path": "target/compiled/servicenow/models/staging/stg_servicenow.yml/dbt_utils_unique_combination_o_c19143a81dd4519e61d067410ae2c4b5.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n cmdb_ci_service_id, source_relation\n from \"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__cmdb_ci_service\"\n group by cmdb_ci_service_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_servicenow__cmdb_ci_service", "attached_node": "model.servicenow.stg_servicenow__cmdb_ci_service"}, "test.servicenow.not_null_stg_servicenow__sys_user_group_sys_user_group_id.a4600fb5c8": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "sys_user_group_id", "model": "{{ get_where_subquery(ref('stg_servicenow__sys_user_group')) }}"}, "namespace": null}, "database": "postgres", "schema": "reddit_ads_integration_tests_3_dbt_test__audit", "name": "not_null_stg_servicenow__sys_user_group_sys_user_group_id", "resource_type": "test", "package_name": "servicenow", "path": "not_null_stg_servicenow__sys_user_group_sys_user_group_id.sql", "original_file_path": "models/staging/stg_servicenow.yml", "unique_id": "test.servicenow.not_null_stg_servicenow__sys_user_group_sys_user_group_id.a4600fb5c8", "fqn": ["servicenow", "staging", "not_null_stg_servicenow__sys_user_group_sys_user_group_id"], "alias": "not_null_stg_servicenow__sys_user_group_sys_user_group_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1705606889.180877, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_servicenow__sys_user_group", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.servicenow.stg_servicenow__sys_user_group"]}, "compiled_path": "target/compiled/servicenow/models/staging/stg_servicenow.yml/not_null_stg_servicenow__sys_user_group_sys_user_group_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect sys_user_group_id\nfrom \"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__sys_user_group\"\nwhere sys_user_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "sys_user_group_id", "file_key_name": "models.stg_servicenow__sys_user_group", "attached_node": "model.servicenow.stg_servicenow__sys_user_group"}, "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__sys_user_group_sys_user_group_id__source_relation.6fd66f39ed": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["sys_user_group_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_servicenow__sys_user_group')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "reddit_ads_integration_tests_3_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_servicenow__sys_user_group_sys_user_group_id__source_relation", "resource_type": "test", "package_name": "servicenow", "path": "dbt_utils_unique_combination_o_afc9ae021fc2631c67d2be6f71fc25ef.sql", "original_file_path": "models/staging/stg_servicenow.yml", "unique_id": "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__sys_user_group_sys_user_group_id__source_relation.6fd66f39ed", "fqn": ["servicenow", "staging", "dbt_utils_unique_combination_of_columns_stg_servicenow__sys_user_group_sys_user_group_id__source_relation"], "alias": "dbt_utils_unique_combination_o_afc9ae021fc2631c67d2be6f71fc25ef", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_afc9ae021fc2631c67d2be6f71fc25ef", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_afc9ae021fc2631c67d2be6f71fc25ef"}, "created_at": 1705606889.181888, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_afc9ae021fc2631c67d2be6f71fc25ef\") }}", "language": "sql", "refs": [{"name": "stg_servicenow__sys_user_group", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.servicenow.stg_servicenow__sys_user_group"]}, "compiled_path": "target/compiled/servicenow/models/staging/stg_servicenow.yml/dbt_utils_unique_combination_o_afc9ae021fc2631c67d2be6f71fc25ef.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n sys_user_group_id, source_relation\n from \"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__sys_user_group\"\n group by sys_user_group_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_servicenow__sys_user_group", "attached_node": "model.servicenow.stg_servicenow__sys_user_group"}}, "sources": {"source.servicenow.servicenow.task": {"database": "postgres", "schema": "servicenow_integration_tests_3", "name": "task", "resource_type": "source", "package_name": "servicenow", "path": "models/staging/src_servicenow.yml", "original_file_path": "models/staging/src_servicenow.yml", "unique_id": "source.servicenow.servicenow.task", "fqn": ["servicenow", "staging", "servicenow", "task"], "source_name": "servicenow", "source_description": "", "loader": "", "identifier": "task_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table containing all tasks related information. A task represents a unit of work that needs to be accomplished or tracked within the ServiceNow system. It can be related to various processes, such as incident resolution, change management, or other workflows.", "columns": {"sys_id": {"name": "sys_id", "description": "Unique identifier for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates whether the task record has been marked as deleted by the Fivetran connector.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Indicates whether the task record has been synchronized by the Fivetran connector.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active": {"name": "active", "description": "Flag indicating whether the record is currently active or completed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "activity_due": {"name": "activity_due", "description": "The due date or time for completing the activity associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_assignee_list": {"name": "additional_assignee_list", "description": "List of additional users or assignees associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "approval": {"name": "approval", "description": "Information related to the approval status and process for the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "approval_history": {"name": "approval_history", "description": "History of approvals associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "approval_set": {"name": "approval_set", "description": "Set of approvals linked to the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "assigned_to_link": {"name": "assigned_to_link", "description": "Link to the user or group assigned to the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "assigned_to_value": {"name": "assigned_to_value", "description": "Value representing the user or group assigned to the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "assignment_group_link": {"name": "assignment_group_link", "description": "Link to the assignment group associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "assignment_group_value": {"name": "assignment_group_value", "description": "Value representing the assignment group associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_duration": {"name": "business_duration", "description": "The duration of the task in terms of business hours.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_service_link": {"name": "business_service_link", "description": "Link to the business service associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_service_value": {"name": "business_service_value", "description": "Value representing the business service associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "calendar_duration": {"name": "calendar_duration", "description": "The duration of the task in terms of calendar time.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "close_notes": {"name": "close_notes", "description": "Additional notes or comments recorded upon task closure.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "closed_at": {"name": "closed_at", "description": "Date and time when the task was closed or completed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "closed_by_link": {"name": "closed_by_link", "description": "Link to the user who closed or completed the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "closed_by_value": {"name": "closed_by_value", "description": "Value representing the user who closed or completed the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cmdb_ci_link": {"name": "cmdb_ci_link", "description": "Link to the configuration item (CI) associated with the record in the Configuration Management Database (CMDB).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cmdb_ci_value": {"name": "cmdb_ci_value", "description": "Value representing the configuration item (CI) associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "comments": {"name": "comments", "description": "General comments or notes related to the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "comments_and_work_notes": {"name": "comments_and_work_notes", "description": "Combined information of comments and work notes recorded during the record's lifecycle.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_link": {"name": "company_link", "description": "Link to the company associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_value": {"name": "company_value", "description": "Value representing the company associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contact_type": {"name": "contact_type", "description": "Type of contact associated with the record (e.g., customer, vendor).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_link": {"name": "contract_link", "description": "Link to the contract associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_value": {"name": "contract_value", "description": "Value representing the contract associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "correlation_display": {"name": "correlation_display", "description": "Display information related to correlation of the record with other records.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "correlation_id": {"name": "correlation_id", "description": "Identifier used for correlating the record with related records.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "delivery_plan_link": {"name": "delivery_plan_link", "description": "Link to the delivery plan associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "delivery_plan_value": {"name": "delivery_plan_value", "description": "Value representing the delivery plan associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "delivery_task_link": {"name": "delivery_task_link", "description": "Link to the delivery task associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "delivery_task_value": {"name": "delivery_task_value", "description": "Value representing the delivery task associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "description": {"name": "description", "description": "Detailed description or information about the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "due_date": {"name": "due_date", "description": "The date by which the task is expected to be completed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "escalation": {"name": "escalation", "description": "Information about any escalation procedures or steps related to the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_start": {"name": "expected_start", "description": "The expected start date or time for the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "follow_up": {"name": "follow_up", "description": "Timestamp of when follow up was applied to the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "group_list": {"name": "group_list", "description": "List of groups associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impact": {"name": "impact", "description": "Assessment of the impact that completing or not completing the task may have. This is the business loss and potential damage (for example, financial, customer, regulation, security, reputation, brand) caused by the incident", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "knowledge": {"name": "knowledge", "description": "Indication of whether the task is associated with knowledge or documentation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "location_link": {"name": "location_link", "description": "Link to the location associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "location_value": {"name": "location_value", "description": "Value representing the location associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "made_sla": {"name": "made_sla", "description": "Indicates whether the task was completed within the agreed-upon Service Level Agreement (SLA).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number": {"name": "number", "description": "Unique identifier or reference number assigned to the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "opened_at": {"name": "opened_at", "description": "Date and time when the task was initially opened.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "opened_by_link": {"name": "opened_by_link", "description": "Link to the user who initially opened the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "opened_by_value": {"name": "opened_by_value", "description": "Value representing the user who initially opened the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "order": {"name": "order", "description": "Order or sequence number associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "parent_link": {"name": "parent_link", "description": "Link to the parent task or record associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "parent_value": {"name": "parent_value", "description": "Value representing the parent task or record associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "priority": {"name": "priority", "description": "Priority level assigned to the task. The priority field is automatically calculated based on the values of impact and urgency. This determines the sequence in which the record should be resolved.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reassignment_count": {"name": "reassignment_count", "description": "Count of how many times the task has been reassigned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "rejection_goto_link": {"name": "rejection_goto_link", "description": "Link to the record or step to be followed in case of task rejection.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "rejection_goto_value": {"name": "rejection_goto_value", "description": "Value representing the record or step to be followed in case of task rejection.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "route_reason": {"name": "route_reason", "description": "Reason or criteria for routing the task to a particular user or group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "service_offering_link": {"name": "service_offering_link", "description": "Link to the service offering associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "service_offering_value": {"name": "service_offering_value", "description": "Value representing the service offering associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "short_description": {"name": "short_description", "description": "Brief or concise summary of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sla_due": {"name": "sla_due", "description": "Date and time by which the record is expected to meet the Service Level Agreement (SLA).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "state": {"name": "state", "description": "Current state or status of the record (e.g., in progress, on hold, closed).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_class_name": {"name": "sys_class_name", "description": "Name of the table in which the record is stored.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_created_by": {"name": "sys_created_by", "description": "User who initially created the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_created_on": {"name": "sys_created_on", "description": "Date and time when the record was initially created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_domain_link": {"name": "sys_domain_link", "description": "Link to the system domain associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_domain_path": {"name": "sys_domain_path", "description": "Path of the system domain associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_domain_value": {"name": "sys_domain_value", "description": "Value representing the system domain associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_mod_count": {"name": "sys_mod_count", "description": "Number of times the record has been modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_updated_by": {"name": "sys_updated_by", "description": "User who last updated or modified the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_updated_on": {"name": "sys_updated_on", "description": "Date and time when the record was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "task_effective_number": {"name": "task_effective_number", "description": "Effective number or identifier associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "universal_request_link": {"name": "universal_request_link", "description": "Link to the universal request associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "universal_request_value": {"name": "universal_request_value", "description": "Value representing the universal request associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "upon_approval": {"name": "upon_approval", "description": "Actions or steps to be taken upon the approval of the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "upon_reject": {"name": "upon_reject", "description": "Actions or steps to be taken upon the rejection of the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "urgency": {"name": "urgency", "description": "Level of urgency associated with the record. Speed at which the business expects the record to be resolved.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "watch_list": {"name": "watch_list", "description": "List of users or groups who are monitoring or \"watching\" the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "wf_activity_link": {"name": "wf_activity_link", "description": "Link to the workflow activity associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "wf_activity_value": {"name": "wf_activity_value", "description": "Value representing the workflow activity associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_end": {"name": "work_end", "description": "Date and time when the work on the task is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_notes": {"name": "work_notes", "description": "Notes or comments recorded during the work on the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_notes_list": {"name": "work_notes_list", "description": "List of work notes recorded during the task's lifecycle.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_start": {"name": "work_start", "description": "Date and time when the work on the task is scheduled to start.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"servicenow_integration_tests_3\".\"task_data\"", "created_at": 1705606889.185555}, "source.servicenow.servicenow.task_sla": {"database": "postgres", "schema": "servicenow_integration_tests_3", "name": "task_sla", "resource_type": "source", "package_name": "servicenow", "path": "models/staging/src_servicenow.yml", "original_file_path": "models/staging/src_servicenow.yml", "unique_id": "source.servicenow.servicenow.task_sla", "fqn": ["servicenow", "staging", "servicenow", "task_sla"], "source_name": "servicenow", "source_description": "", "loader": "", "identifier": "task_sla_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table containing all Service Level Agreement (SLA) information related to the task.", "columns": {"sys_id": {"name": "sys_id", "description": "Unique identifier for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates whether the task record has been marked as deleted by the Fivetran connector.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Indicates whether the task record has been synchronized by the Fivetran connector.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active": {"name": "active", "description": "Flag indicating whether the record is currently active or completed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_duration": {"name": "business_duration", "description": "The duration of the task in terms of business hours.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_pause_duration": {"name": "business_pause_duration", "description": "Duration of business pause associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_percentage": {"name": "business_percentage", "description": "Percentage of business time completed for the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_time_left": {"name": "business_time_left", "description": "Remaining business time for the completion of the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "duration": {"name": "duration", "description": "Total duration of the task, including both business and non-business time.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_time": {"name": "end_time", "description": "The scheduled or expected end time for the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "has_breached": {"name": "has_breached", "description": "Indicates whether the task has breached the defined SLA or time limits.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "original_breach_time": {"name": "original_breach_time", "description": "Original time when the SLA breach for the task was detected.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pause_duration": {"name": "pause_duration", "description": "Duration of the pause associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pause_time": {"name": "pause_time", "description": "Time when the task was paused or put on hold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "percentage": {"name": "percentage", "description": "Percentage of total time completed for the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "planned_end_time": {"name": "planned_end_time", "description": "The originally planned or expected end time for the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "schedule_link": {"name": "schedule_link", "description": "Link to the schedule associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "schedule_value": {"name": "schedule_value", "description": "Value representing the schedule associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sla_link": {"name": "sla_link", "description": "Link to the Service Level Agreement (SLA) associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sla_value": {"name": "sla_value", "description": "Value representing the Service Level Agreement (SLA) associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "stage": {"name": "stage", "description": "Current stage or phase of the record's lifecycle.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_time": {"name": "start_time", "description": "The scheduled or expected start time for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_created_by": {"name": "sys_created_by", "description": "User who initially created the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_created_on": {"name": "sys_created_on", "description": "Date and time when the record was initially created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_mod_count": {"name": "sys_mod_count", "description": "Number of times the record has been modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_updated_by": {"name": "sys_updated_by", "description": "User who last updated or modified the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_updated_on": {"name": "sys_updated_on", "description": "Date and time when the record was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "task_link": {"name": "task_link", "description": "Link to the related task record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "task_value": {"name": "task_value", "description": "Value representing the related task record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "time_left": {"name": "time_left", "description": "Remaining time for the completion of the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "timezone": {"name": "timezone", "description": "Timezone information associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"servicenow_integration_tests_3\".\"task_sla_data\"", "created_at": 1705606889.1857111}, "source.servicenow.servicenow.sys_user": {"database": "postgres", "schema": "servicenow_integration_tests_3", "name": "sys_user", "resource_type": "source", "package_name": "servicenow", "path": "models/staging/src_servicenow.yml", "original_file_path": "models/staging/src_servicenow.yml", "unique_id": "source.servicenow.servicenow.sys_user", "fqn": ["servicenow", "staging", "servicenow", "sys_user"], "source_name": "servicenow", "source_description": "", "loader": "", "identifier": "sys_user_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table containing all information related to the system user associated with the task.", "columns": {"sys_id": {"name": "sys_id", "description": "Unique identifier for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates whether the task record has been marked as deleted by the Fivetran connector.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Indicates whether the task record has been synchronized by the Fivetran connector.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "accumulated_roles": {"name": "accumulated_roles", "description": "Roles accumulated or associated with the system user over time.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active": {"name": "active", "description": "Flag indicating whether the record is currently active or completed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "avatar": {"name": "avatar", "description": "Avatar or profile picture associated with the system user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "building_link": {"name": "building_link", "description": "Link to the building associated with the system user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "building_value": {"name": "building_value", "description": "Value representing the building associated with the system user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "calendar_integration": {"name": "calendar_integration", "description": "Information about the integration of the user's calendar with the ServiceNow system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city": {"name": "city", "description": "City information associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_link": {"name": "company_link", "description": "Link to the company associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_value": {"name": "company_value", "description": "Value representing the company associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost_center_link": {"name": "cost_center_link", "description": "Link to the cost center associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost_center_value": {"name": "cost_center_value", "description": "Value representing the cost center associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country": {"name": "country", "description": "Country information associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_format": {"name": "date_format", "description": "The format in which dates are displayed or recorded for the system user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "default_perspective_link": {"name": "default_perspective_link", "description": "Link to the default perspective associated with the system user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "default_perspective_value": {"name": "default_perspective_value", "description": "Value representing the default perspective associated with the system user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "department_link": {"name": "department_link", "description": "Link to the department associated with the system user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "department_value": {"name": "department_value", "description": "Value representing the department associated with the system user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "edu_status": {"name": "edu_status", "description": "Education status or level associated with the system user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email": {"name": "email", "description": "Email address associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_number": {"name": "employee_number", "description": "Employee number or identifier associated with the system user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "enable_multifactor_authn": {"name": "enable_multifactor_authn", "description": "Indication of whether multifactor authentication is enabled for the system user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "failed_attempts": {"name": "failed_attempts", "description": "Number of failed login attempts for the system user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_name": {"name": "first_name", "description": "First name of the system user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "gender": {"name": "gender", "description": "Gender information associated with the system user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hashed_user_id": {"name": "hashed_user_id", "description": "Hashed identifier associated with the system user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "home_phone": {"name": "home_phone", "description": "Home phone number associated with the system user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "internal_integration_user": {"name": "internal_integration_user", "description": "Indication of whether the system user is an internal integration user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "introduction": {"name": "introduction", "description": "Introduction or bio information associated with the system user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_login": {"name": "last_login", "description": "Date and time of the last login.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_login_device": {"name": "last_login_device", "description": "The device used for the user's last login to the system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_login_time": {"name": "last_login_time", "description": "The specific time when the user last logged in to the system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_name": {"name": "last_name", "description": "The family name or surname of the user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_password": {"name": "last_password", "description": "The timestamp or information related to the user's last password update.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ldap_server_link": {"name": "ldap_server_link", "description": "A link to the LDAP (Lightweight Directory Access Protocol) server associated with the user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ldap_server_value": {"name": "ldap_server_value", "description": "The value or name of the LDAP server associated with the user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "location_link": {"name": "location_link", "description": "Link to the location associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "location_value": {"name": "location_value", "description": "Value representing the location associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "locked_out": {"name": "locked_out", "description": "Information about whether the user account is currently locked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "manager_link": {"name": "manager_link", "description": "A link to the user's manager or supervisor in the organizational hierarchy.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "manager_value": {"name": "manager_value", "description": "The name or identifier of the user's manager or supervisor.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "middle_name": {"name": "middle_name", "description": "The middle name or initial of the user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_phone": {"name": "mobile_phone", "description": "The contact number for the user's mobile phone.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "The full name of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "notification": {"name": "notification", "description": "Information related to user notifications or alerts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "password_needs_reset": {"name": "password_needs_reset", "description": "Indicates whether the user needs to reset their password.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "phone": {"name": "phone", "description": "The contact number belonging to this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "photo": {"name": "photo", "description": "A link or reference to the user's profile photo.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "preferred_language": {"name": "preferred_language", "description": "The language preference set by the user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "roles": {"name": "roles", "description": "The roles assigned to the user in the system or organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "schedule_link": {"name": "schedule_link", "description": "Link to the schedule associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "schedule_value": {"name": "schedule_value", "description": "Value representing the schedule associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source": {"name": "source", "description": "The source or origin of the user's or user group's profile information.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "state": {"name": "state", "description": "Current state or status of the record (e.g., in progress, on hold, closed).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_class_name": {"name": "sys_class_name", "description": "Name of the table in which the record is stored.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_created_by": {"name": "sys_created_by", "description": "User who initially created the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_created_on": {"name": "sys_created_on", "description": "Date and time when the record was initially created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_domain_link": {"name": "sys_domain_link", "description": "Link to the system domain associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_domain_path": {"name": "sys_domain_path", "description": "Path of the system domain associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_domain_value": {"name": "sys_domain_value", "description": "Value representing the system domain associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_mod_count": {"name": "sys_mod_count", "description": "Number of times the record has been modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_updated_by": {"name": "sys_updated_by", "description": "User who last updated or modified the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_updated_on": {"name": "sys_updated_on", "description": "Date and time when the record was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "time_format": {"name": "time_format", "description": "The preferred time format for the user (e.g., 12-hour or 24-hour).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "time_zone": {"name": "time_zone", "description": "The time zone configured for the user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "title": {"name": "title", "description": "The job title or position of the user within the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_name": {"name": "user_name", "description": "The username used by the user to log in to the system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_password": {"name": "user_password", "description": "The user's current password information or status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vip": {"name": "vip", "description": "Indicates whether the user has VIP (Very Important Person) status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "web_service_access_only": {"name": "web_service_access_only", "description": "Indicates whether the user has access only through web services.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "zip": {"name": "zip", "description": "The postal code or ZIP code associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"servicenow_integration_tests_3\".\"sys_user_data\"", "created_at": 1705606889.1859999}, "source.servicenow.servicenow.problem": {"database": "postgres", "schema": "servicenow_integration_tests_3", "name": "problem", "resource_type": "source", "package_name": "servicenow", "path": "models/staging/src_servicenow.yml", "original_file_path": "models/staging/src_servicenow.yml", "unique_id": "source.servicenow.servicenow.problem", "fqn": ["servicenow", "staging", "servicenow", "problem"], "source_name": "servicenow", "source_description": "", "loader": "", "identifier": "problem_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table containing all problem information.", "columns": {"sys_id": {"name": "sys_id", "description": "Unique identifier for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates whether the task record has been marked as deleted by the Fivetran connector.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Indicates whether the task record has been synchronized by the Fivetran connector.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "category": {"name": "category", "description": "The category of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cause_notes": {"name": "cause_notes", "description": "Additional notes or details about the cause of a particular issue or incident.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "confirmed_at": {"name": "confirmed_at", "description": "The timestamp indicating when an issue or incident was confirmed or acknowledged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "confirmed_by_link": {"name": "confirmed_by_link", "description": "A link to the person or entity who confirmed or acknowledged the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "confirmed_by_value": {"name": "confirmed_by_value", "description": "The name or identifier of the person or entity who confirmed or acknowledged the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "duplicate_of_link": {"name": "duplicate_of_link", "description": "A link to the related issue that is identified as a duplicate of the current one.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "duplicate_of_value": {"name": "duplicate_of_value", "description": "The name or identifier of the related issue that is identified as a duplicate.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_reported_by_task_link": {"name": "first_reported_by_task_link", "description": "A link to the task or activity that first reported the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_reported_by_task_value": {"name": "first_reported_by_task_value", "description": "The name or identifier of the task or activity that first reported the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fix_at": {"name": "fix_at", "description": "The timestamp indicating when the issue is scheduled or planned to be fixed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fix_by_link": {"name": "fix_by_link", "description": "A link to the person or entity responsible for fixing the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fix_by_value": {"name": "fix_by_value", "description": "The name or identifier of the person or entity responsible for fixing the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fix_communicated_at": {"name": "fix_communicated_at", "description": "The timestamp indicating when the fix for the issue was communicated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fix_communicated_by_link": {"name": "fix_communicated_by_link", "description": "A link to the person or entity who communicated the fix for the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fix_communicated_by_value": {"name": "fix_communicated_by_value", "description": "The name or identifier of the person or entity who communicated the fix for the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fix_notes": {"name": "fix_notes", "description": "Additional notes or details related to the fix for the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "known_error": {"name": "known_error", "description": "Indicates whether the issue is a known error with a documented resolution.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "major_problem": {"name": "major_problem", "description": "Indicates whether the issue is categorized as a major problem.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_state": {"name": "problem_state", "description": "The current state or status of the problem or issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "related_incidents": {"name": "related_incidents", "description": "Information about other incidents that are related to the current issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reopen_count": {"name": "reopen_count", "description": "The count of how many times the issue has been reopened.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reopened_at": {"name": "reopened_at", "description": "The timestamp indicating when the issue was last reopened.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reopened_by_link": {"name": "reopened_by_link", "description": "A link to the person or entity who reopened the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reopened_by_value": {"name": "reopened_by_value", "description": "The name or identifier of the person or entity who reopened the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "resolution_code": {"name": "resolution_code", "description": "The code or identifier associated with the resolution of the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "resolved_at": {"name": "resolved_at", "description": "The timestamp indicating when the issue was resolved.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "resolved_by_link": {"name": "resolved_by_link", "description": "A link to the person or entity who resolved the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "resolved_by_value": {"name": "resolved_by_value", "description": "The name or identifier of the person or entity who resolved the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "review_outcome": {"name": "review_outcome", "description": "The outcome or result of the review process for the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "rfc_link": {"name": "rfc_link", "description": "A link to the Request for Change (RFC) associated with the issue or incident.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "rfc_value": {"name": "rfc_value", "description": "The unique identifier or name associated with the Request for Change (RFC) linked to the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "subcategory": {"name": "subcategory", "description": "The specific subcategory or classification of the record, providing more detailed information about its nature.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_created_on": {"name": "sys_created_on", "description": "Date and time when the record was initially created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_updated_on": {"name": "sys_updated_on", "description": "Date and time when the record was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "workaround": {"name": "workaround", "description": "A description of a temporary or alternative solution that can be applied to address the issue before a permanent fix \nis implemented.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "workaround_applied": {"name": "workaround_applied", "description": "Indicates whether a workaround has been applied to address the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "workaround_communicated_at": {"name": "workaround_communicated_at", "description": "The timestamp indicating when the workaround for the issue was communicated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "workaround_communicated_by_link": {"name": "workaround_communicated_by_link", "description": "A link to the person or entity who communicated the workaround for the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "workaround_communicated_by_value": {"name": "workaround_communicated_by_value", "description": "The name or identifier of the person or entity who communicated the workaround for the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"servicenow_integration_tests_3\".\"problem_data\"", "created_at": 1705606889.186132}, "source.servicenow.servicenow.problem_task": {"database": "postgres", "schema": "servicenow_integration_tests_3", "name": "problem_task", "resource_type": "source", "package_name": "servicenow", "path": "models/staging/src_servicenow.yml", "original_file_path": "models/staging/src_servicenow.yml", "unique_id": "source.servicenow.servicenow.problem_task", "fqn": ["servicenow", "staging", "servicenow", "problem_task"], "source_name": "servicenow", "source_description": "", "loader": "", "identifier": "problem_task_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table containing all the information related to the problem tasks.", "columns": {"sys_id": {"name": "sys_id", "description": "Unique identifier for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates whether the task record has been marked as deleted by the Fivetran connector.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Indicates whether the task record has been synchronized by the Fivetran connector.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cause_code": {"name": "cause_code", "description": "The code or identifier associated with the cause of the issue or problem.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "close_code": {"name": "close_code", "description": "The code or identifier associated with the closure or resolution.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "other_reason": {"name": "other_reason", "description": "Additional information or reasons associated with the issue, especially if it falls outside standard categories.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_link": {"name": "problem_link", "description": "A link to the problem record associated with the issue or incident.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_task_type": {"name": "problem_task_type", "description": "The type or category of the task associated with the problem or issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_value": {"name": "problem_value", "description": "The unique identifier or name associated with the problem record linked to the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reopen_count": {"name": "reopen_count", "description": "The count of how many times the issue has been reopened.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reopened_at": {"name": "reopened_at", "description": "The timestamp indicating when the issue was last reopened.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reopened_by_link": {"name": "reopened_by_link", "description": "A link to the person or entity who reopened the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reopened_by_value": {"name": "reopened_by_value", "description": "The name or identifier of the person or entity who reopened the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "started_at": {"name": "started_at", "description": "The timestamp indicating when the issue or incident was initiated or started.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "started_by_link": {"name": "started_by_link", "description": "A link to the person or entity who initiated or started the issue or incident.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "started_by_value": {"name": "started_by_value", "description": "The name or identifier of the person or entity who initiated or started the issue or incident.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_created_on": {"name": "sys_created_on", "description": "Date and time when the record was initially created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_updated_on": {"name": "sys_updated_on", "description": "Date and time when the record was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vendor_link": {"name": "vendor_link", "description": "A link to the vendor or external entity associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vendor_value": {"name": "vendor_value", "description": "The name or identifier of the vendor or external entity linked to the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"servicenow_integration_tests_3\".\"problem_task_data\"", "created_at": 1705606889.186236}, "source.servicenow.servicenow.incident": {"database": "postgres", "schema": "servicenow_integration_tests_3", "name": "incident", "resource_type": "source", "package_name": "servicenow", "path": "models/staging/src_servicenow.yml", "original_file_path": "models/staging/src_servicenow.yml", "unique_id": "source.servicenow.servicenow.incident", "fqn": ["servicenow", "staging", "servicenow", "incident"], "source_name": "servicenow", "source_description": "", "loader": "", "identifier": "incident_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table containing all information related to incidents.", "columns": {"sys_id": {"name": "sys_id", "description": "Unique identifier for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates whether the task record has been marked as deleted by the Fivetran connector.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Indicates whether the task record has been synchronized by the Fivetran connector.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_impact": {"name": "business_impact", "description": "Information about the impact of the issue on business operations or services.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_stc": {"name": "business_stc", "description": "The business service that is impacted by the issue or incident.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "calendar_stc": {"name": "calendar_stc", "description": "The calendar or schedule associated with the business service impacted by the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "caller_id_link": {"name": "caller_id_link", "description": "A link to the person or entity identified as the caller or reporter of the issue or incident.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "caller_id_value": {"name": "caller_id_value", "description": "The name or identifier of the person or entity identified as the caller or reporter of the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "category": {"name": "category", "description": "The category of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cause": {"name": "cause", "description": "A description or explanation of the root cause of the issue or incident.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "caused_by_link": {"name": "caused_by_link", "description": "A link to the record or entity that caused or triggered the issue or incident.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "caused_by_value": {"name": "caused_by_value", "description": "The name or identifier of the record or entity that caused or triggered the issue or incident.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "child_incidents": {"name": "child_incidents", "description": "Information about other incidents that are identified as child incidents linked to the current incident.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "close_code": {"name": "close_code", "description": "The code or identifier associated with the closure or resolution.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hold_reason": {"name": "hold_reason", "description": "The reason or rationale for placing the issue or incident on hold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "incident_state": {"name": "incident_state", "description": "The current state or status of the incident.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "notify": {"name": "notify", "description": "Indicates whether notifications or alerts have been configured for the issue or incident.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "origin_id_link": {"name": "origin_id_link", "description": "A link to the original or source record from which the current record originated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "origin_id_value": {"name": "origin_id_value", "description": "The unique identifier or name associated with the original or source record linked to the current record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "parent_incident_link": {"name": "parent_incident_link", "description": "A link to the parent incident record, indicating the incident from which the current incident is derived or related.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "parent_incident_value": {"name": "parent_incident_value", "description": "The unique identifier or name associated with the parent incident record linked to the current incident.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_id_link": {"name": "problem_id_link", "description": "A link to the problem record associated with the current issue or incident.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_id_value": {"name": "problem_id_value", "description": "The unique identifier or name associated with the problem record linked to the current issue or incident.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reopen_count": {"name": "reopen_count", "description": "The count of how many times the issue has been reopened.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reopened_by_link": {"name": "reopened_by_link", "description": "A link to the person or entity who reopened the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reopened_by_value": {"name": "reopened_by_value", "description": "The name or identifier of the person or entity who reopened the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reopened_time": {"name": "reopened_time", "description": "The timestamp indicating when the issue or incident was reopened after being previously resolved.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "resolved_at": {"name": "resolved_at", "description": "The timestamp indicating when the issue was resolved.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "resolved_by_link": {"name": "resolved_by_link", "description": "A link to the person or entity who resolved the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "resolved_by_value": {"name": "resolved_by_value", "description": "The name or identifier of the person or entity who resolved the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "rfc_link": {"name": "rfc_link", "description": "A link to the Request for Change (RFC) associated with the issue or incident.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "rfc_value": {"name": "rfc_value", "description": "The unique identifier or name associated with the Request for Change (RFC) linked to the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "severity": {"name": "severity", "description": "The level of impact or seriousness assigned to the issue or incident.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "subcategory": {"name": "subcategory", "description": "The specific subcategory or classification of the record, providing more detailed information about its nature.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_created_on": {"name": "sys_created_on", "description": "Date and time when the record was initially created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_updated_on": {"name": "sys_updated_on", "description": "Date and time when the record was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"servicenow_integration_tests_3\".\"incident_data\"", "created_at": 1705606889.186359}, "source.servicenow.servicenow.change_task": {"database": "postgres", "schema": "servicenow_integration_tests_3", "name": "change_task", "resource_type": "source", "package_name": "servicenow", "path": "models/staging/src_servicenow.yml", "original_file_path": "models/staging/src_servicenow.yml", "unique_id": "source.servicenow.servicenow.change_task", "fqn": ["servicenow", "staging", "servicenow", "change_task"], "source_name": "servicenow", "source_description": "", "loader": "", "identifier": "change_task_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table containing all information related to change tasks.", "columns": {"sys_id": {"name": "sys_id", "description": "Unique identifier for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates whether the task record has been marked as deleted by the Fivetran connector.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Indicates whether the task record has been synchronized by the Fivetran connector.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_request_link": {"name": "change_request_link", "description": "A link to the change request record associated with the issue or incident.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_request_value": {"name": "change_request_value", "description": "The unique identifier or name associated with the change request record linked to the issue or incident.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_task_type": {"name": "change_task_type", "description": "The type or category of the task associated with the change request or change record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "close_code": {"name": "close_code", "description": "The code or identifier associated with the closure or resolution.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_from": {"name": "created_from", "description": "Information about the source or origin of the current record, indicating how it was created or generated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "on_hold": {"name": "on_hold", "description": "Indicates whether the issue or incident is currently on hold or paused.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "on_hold_reason": {"name": "on_hold_reason", "description": "The reason or rationale for placing the associated record on hold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "planned_end_date": {"name": "planned_end_date", "description": "The planned or scheduled end date for the change request or change record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "planned_start_date": {"name": "planned_start_date", "description": "The planned or scheduled start date for the change request or change record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_created_on": {"name": "sys_created_on", "description": "Date and time when the record was initially created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_updated_on": {"name": "sys_updated_on", "description": "Date and time when the record was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"servicenow_integration_tests_3\".\"change_task_data\"", "created_at": 1705606889.186455}, "source.servicenow.servicenow.change_request": {"database": "postgres", "schema": "servicenow_integration_tests_3", "name": "change_request", "resource_type": "source", "package_name": "servicenow", "path": "models/staging/src_servicenow.yml", "original_file_path": "models/staging/src_servicenow.yml", "unique_id": "source.servicenow.servicenow.change_request", "fqn": ["servicenow", "staging", "servicenow", "change_request"], "source_name": "servicenow", "source_description": "", "loader": "", "identifier": "change_request_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table that contains all information related to change requests.", "columns": {"sys_id": {"name": "sys_id", "description": "Unique identifier for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates whether the task record has been marked as deleted by the Fivetran connector.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Indicates whether the task record has been synchronized by the Fivetran connector.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "backout_plan": {"name": "backout_plan", "description": "Information about the plan or process for backing out or undoing the changes associated with the current record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cab_date": {"name": "cab_date", "description": "The date of the Change Advisory Board (CAB) meeting associated with the change request or change record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cab_date_time": {"name": "cab_date_time", "description": "The date and time of the Change Advisory Board (CAB) meeting associated with the change request or change record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cab_delegate_link": {"name": "cab_delegate_link", "description": "A link to the person or entity delegated to represent or act on behalf of the Change Advisory Board (CAB) in relation \nto the change request.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cab_delegate_value": {"name": "cab_delegate_value", "description": "The name or identifier of the person or entity delegated to represent or act on behalf of the Change Advisory Board (CAB) \nin relation to the change request.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cab_recommendation": {"name": "cab_recommendation", "description": "The recommendation or decision made by the Change Advisory Board (CAB) regarding the change request.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cab_required": {"name": "cab_required", "description": "Indicates whether the Change Advisory Board (CAB) approval is required for the change request.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "category": {"name": "category", "description": "The category of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_plan": {"name": "change_plan", "description": "Information about the plan or process for implementing the changes associated with the current record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "chg_model_link": {"name": "chg_model_link", "description": "A link to the change model or template associated with the change request or change record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "chg_model_value": {"name": "chg_model_value", "description": "The name or identifier of the change model or template linked to the change request or change record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "close_code": {"name": "close_code", "description": "The code or identifier associated with the closure or resolution.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conflict_last_run": {"name": "conflict_last_run", "description": "The timestamp indicating when the conflict detection was last run for the change request or change record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conflict_status": {"name": "conflict_status", "description": "The status or outcome of the conflict detection process for the change request or change record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_date": {"name": "end_date", "description": "The end date for the implementation or execution associated with the current record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "implementation_plan": {"name": "implementation_plan", "description": "Information about the plan or process for implementing the changes associated with the current record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "justification": {"name": "justification", "description": "The reasoning or justification behind the changes associated with the current record, providing context or explanation for the modifications made.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "on_hold": {"name": "on_hold", "description": "Indicates whether the issue or incident is currently on hold or paused.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "on_hold_reason": {"name": "on_hold_reason", "description": "The reason or rationale for placing the associated record on hold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "on_hold_task": {"name": "on_hold_task", "description": "A link to the task or activity that indicates the current record is on hold, specifying the task associated with the \nhold status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "outside_maintenance_schedule": {"name": "outside_maintenance_schedule", "description": "Indicates whether the changes associated with the current record fall outside the regular maintenance schedule or window.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "phase": {"name": "phase", "description": "The phase or stage of the change request or change record within the change management process, indicating its progress or status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "phase_state": {"name": "phase_state", "description": "The current state or status of the phase associated with the change request or change record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "production_system": {"name": "production_system", "description": "Indicates whether the changes associated with the current record are intended for the production environment or system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reason": {"name": "reason", "description": "The reason or rationale behind the changes requested by the current record, providing context or explanation for the modifications made.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "requested_by_date": {"name": "requested_by_date", "description": "The date when the changes associated with the current record were requested or initiated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "requested_by_link": {"name": "requested_by_link", "description": "A link to the person or entity who requested or initiated the changes associated with the current record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "requested_by_value": {"name": "requested_by_value", "description": "The name or identifier of the person or entity who requested or initiated the changes associated with the current record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "review_comments": {"name": "review_comments", "description": "Comments or feedback provided during the review process for the changes associated with the current record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "review_date": {"name": "review_date", "description": "The date when the record was reviewed or evaluated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "review_status": {"name": "review_status", "description": "The status or outcome of the review process associated with the current record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "risk": {"name": "risk", "description": "The level of risk associated with the changes, indicating the potential impact or consequences of implementing the modifications outlined in the current record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "risk_impact_analysis": {"name": "risk_impact_analysis", "description": "An analysis or assessment of the impact or consequences of the changes outlined in the current record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "scope": {"name": "scope", "description": "The scope or extent of the changes outlined in the current record, specifying the areas or components affected by the modifications.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_date": {"name": "start_date", "description": "The start date associated with the current record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "std_change_producer_version_link": {"name": "std_change_producer_version_link", "description": "A link to the version of the standard change producer associated with the current record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "std_change_producer_version_value": {"name": "std_change_producer_version_value", "description": "The name or identifier of the version of the standard change producer linked to the current record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_created_on": {"name": "sys_created_on", "description": "Date and time when the record was initially created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_updated_on": {"name": "sys_updated_on", "description": "Date and time when the record was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "test_plan": {"name": "test_plan", "description": "Information about the plan or process for testing the changes associated with the current record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "The type or category regarding the current record", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "unauthorized": {"name": "unauthorized", "description": "Indicates whether the changes associated with the current record were made without proper authorization or approval.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"servicenow_integration_tests_3\".\"change_request_data\"", "created_at": 1705606889.1866171}, "source.servicenow.servicenow.core_company": {"database": "postgres", "schema": "servicenow_integration_tests_3", "name": "core_company", "resource_type": "source", "package_name": "servicenow", "path": "models/staging/src_servicenow.yml", "original_file_path": "models/staging/src_servicenow.yml", "unique_id": "source.servicenow.servicenow.core_company", "fqn": ["servicenow", "staging", "servicenow", "core_company"], "source_name": "servicenow", "source_description": "", "loader": "", "identifier": "core_company_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table containing all company related information.", "columns": {"sys_id": {"name": "sys_id", "description": "Unique identifier for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates whether the task record has been marked as deleted by the Fivetran connector.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Indicates whether the task record has been synchronized by the Fivetran connector.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city": {"name": "city", "description": "City information associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country": {"name": "country", "description": "Country information associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "customer": {"name": "customer", "description": "Boolean of whether the company is a customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fax_phone": {"name": "fax_phone", "description": "Fax phone number of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fiscal_year": {"name": "fiscal_year", "description": "Company's fiscal year", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "The full name of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "notes": {"name": "notes", "description": "Notes about the record", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "phone": {"name": "phone", "description": "The contact number belonging to this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "state": {"name": "state", "description": "The geographical state to which the record belongs", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "street": {"name": "street", "description": "The street to which the record belongs", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_class_name": {"name": "sys_class_name", "description": "Name of the table in which the record is stored.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_created_by": {"name": "sys_created_by", "description": "User who initially created the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_created_on": {"name": "sys_created_on", "description": "Date and time when the record was initially created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_mod_count": {"name": "sys_mod_count", "description": "Number of times the record has been modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_updated_by": {"name": "sys_updated_by", "description": "User who last updated or modified the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_updated_on": {"name": "sys_updated_on", "description": "Date and time when the record was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vendor": {"name": "vendor", "description": "Boolean of whether the company is a vendor", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vendor_type": {"name": "vendor_type", "description": "Vendor types group vendors that offer similar goods and services, and are useful for reporting and comparing vendor performance. Example: Hardware, Services", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "website": {"name": "website", "description": "Company website", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "zip": {"name": "zip", "description": "The postal code or ZIP code associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"servicenow_integration_tests_3\".\"core_company_data\"", "created_at": 1705606889.18672}, "source.servicenow.servicenow.cmdb_ci": {"database": "postgres", "schema": "servicenow_integration_tests_3", "name": "cmdb_ci", "resource_type": "source", "package_name": "servicenow", "path": "models/staging/src_servicenow.yml", "original_file_path": "models/staging/src_servicenow.yml", "unique_id": "source.servicenow.servicenow.cmdb_ci", "fqn": ["servicenow", "staging", "servicenow", "cmdb_ci"], "source_name": "servicenow", "source_description": "", "loader": "", "identifier": "cmdb_ci", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "The base table for all CI (Configuration Item) tables in the CMDB (Configuration Management Database)", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates whether the task record has been marked as deleted by the Fivetran connector.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Indicates whether the task record has been synchronized by the Fivetran connector.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "attributes": {"name": "attributes", "description": "Data elements which describe the characteristics of CIs", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_unit_link": {"name": "business_unit_link", "description": "Link to business unit. Business units usually comprise departments and are associated with a company", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_unit_value": {"name": "business_unit_value", "description": "The ID of the business unit.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "category": {"name": "category", "description": "The category of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_link": {"name": "company_link", "description": "Link to the company associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_value": {"name": "company_value", "description": "Value representing the company associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost": {"name": "cost", "description": "The cost related to the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost_cc": {"name": "cost_cc", "description": "The cost center that the record belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost_center_link": {"name": "cost_center_link", "description": "Link to the cost center associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost_center_value": {"name": "cost_center_value", "description": "Value representing the cost center associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "managed_by_link": {"name": "managed_by_link", "description": "The link to the user profile that manages this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "managed_by_value": {"name": "managed_by_value", "description": "The ID of the user profile that manages this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "manufacturer_link": {"name": "manufacturer_link", "description": "The link to the manufacturer that manages this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "manufacturer_value": {"name": "manufacturer_value", "description": "The ID of the manufacturer that manages this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "model_id_link": {"name": "model_id_link", "description": "The link to the model related to the CI.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "model_id_value": {"name": "model_id_value", "description": "The ID to the model related to the CI.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "model_number": {"name": "model_number", "description": "The number of the model related to the IC.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "The full name of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "owned_by_link": {"name": "owned_by_link", "description": "The link to the owner of the CI related to this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "owned_by_value": {"name": "owned_by_value", "description": "The ID to the owner of the CI related to this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "subcategory": {"name": "subcategory", "description": "The specific subcategory or classification of the record, providing more detailed information about its nature.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_class_name": {"name": "sys_class_name", "description": "Name of the table in which the record is stored.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_class_path": {"name": "sys_class_path", "description": "Where a particular CI class is within the overall hierarchy of classes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_created_by": {"name": "sys_created_by", "description": "User who initially created the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_created_on": {"name": "sys_created_on", "description": "Date and time when the record was initially created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_domain_link": {"name": "sys_domain_link", "description": "Link to the system domain associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_domain_path": {"name": "sys_domain_path", "description": "Path of the system domain associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_domain_value": {"name": "sys_domain_value", "description": "Value representing the system domain associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_id": {"name": "sys_id", "description": "Unique identifier for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_mod_count": {"name": "sys_mod_count", "description": "Number of times the record has been modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_updated_by": {"name": "sys_updated_by", "description": "User who last updated or modified the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_updated_on": {"name": "sys_updated_on", "description": "Date and time when the record was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vendor_link": {"name": "vendor_link", "description": "A link to the vendor or external entity associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vendor_value": {"name": "vendor_value", "description": "The name or identifier of the vendor or external entity linked to the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"servicenow_integration_tests_3\".\"cmdb_ci\"", "created_at": 1705606889.186846}, "source.servicenow.servicenow.cmdb_ci_service": {"database": "postgres", "schema": "servicenow_integration_tests_3", "name": "cmdb_ci_service", "resource_type": "source", "package_name": "servicenow", "path": "models/staging/src_servicenow.yml", "original_file_path": "models/staging/src_servicenow.yml", "unique_id": "source.servicenow.servicenow.cmdb_ci_service", "fqn": ["servicenow", "staging", "servicenow", "cmdb_ci_service"], "source_name": "servicenow", "source_description": "", "loader": "", "identifier": "cmdb_ci_service", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table containing all information related to application service areas. An application service is work or goods that are supported by an IT infrastructure. For example, delivering email service to an employee can require services such as email servers, web servers, and the work to configure the user's account. An application service management map graphically displays the configuration items (CI) that support an application service and the relationships between the CIs.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates whether the task record has been marked as deleted by the Fivetran connector.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Indicates whether the task record has been synchronized by the Fivetran connector.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "attributes": {"name": "attributes", "description": "Data elements which describe the characteristics of CIs", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_unit_link": {"name": "business_unit_link", "description": "Link to business unit. Business units usually comprise departments and are associated with a company", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_unit_value": {"name": "business_unit_value", "description": "The ID of the business unit.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "category": {"name": "category", "description": "The category of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_link": {"name": "company_link", "description": "Link to the company associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_value": {"name": "company_value", "description": "Value representing the company associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost": {"name": "cost", "description": "The cost related to the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost_cc": {"name": "cost_cc", "description": "The cost center that the record belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "managed_by_link": {"name": "managed_by_link", "description": "The link to the user profile that manages this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "managed_by_value": {"name": "managed_by_value", "description": "The ID of the user profile that manages this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "manufacturer_link": {"name": "manufacturer_link", "description": "The link to the manufacturer that manages this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "manufacturer_value": {"name": "manufacturer_value", "description": "The ID of the manufacturer that manages this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "model_id_link": {"name": "model_id_link", "description": "The link to the model related to the CI.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "model_id_value": {"name": "model_id_value", "description": "The ID to the model related to the CI.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "model_number": {"name": "model_number", "description": "The number of the model related to the IC.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "The full name of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "owned_by_link": {"name": "owned_by_link", "description": "The link to the owner of the CI related to this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "owned_by_value": {"name": "owned_by_value", "description": "The ID to the owner of the CI related to this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "service_classification": {"name": "service_classification", "description": "The type of service. Each type contains groups of CI services that share attributes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "service_level_requirement": {"name": "service_level_requirement", "description": "Requirement specified to maintain service commitments between parties.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "short_description": {"name": "short_description", "description": "Brief or concise summary of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sla_link": {"name": "sla_link", "description": "Link to the Service Level Agreement (SLA) associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sla_value": {"name": "sla_value", "description": "Value representing the Service Level Agreement (SLA) associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "state": {"name": "state", "description": "Current state or status of the record (e.g., in progress, on hold, closed).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "subcategory": {"name": "subcategory", "description": "The specific subcategory or classification of the record, providing more detailed information about its nature.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_class_name": {"name": "sys_class_name", "description": "Name of the table in which the record is stored.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_class_path": {"name": "sys_class_path", "description": "Where a particular CI class is within the overall hierarchy of classes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_created_by": {"name": "sys_created_by", "description": "User who initially created the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_created_on": {"name": "sys_created_on", "description": "Date and time when the record was initially created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_domain_link": {"name": "sys_domain_link", "description": "Link to the system domain associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_domain_path": {"name": "sys_domain_path", "description": "Path of the system domain associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_domain_value": {"name": "sys_domain_value", "description": "Value representing the system domain associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_id": {"name": "sys_id", "description": "Unique identifier for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_mod_count": {"name": "sys_mod_count", "description": "Number of times the record has been modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_updated_by": {"name": "sys_updated_by", "description": "User who last updated or modified the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_updated_on": {"name": "sys_updated_on", "description": "Date and time when the record was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vendor_link": {"name": "vendor_link", "description": "A link to the vendor or external entity associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vendor_value": {"name": "vendor_value", "description": "The name or identifier of the vendor or external entity linked to the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"servicenow_integration_tests_3\".\"cmdb_ci_service\"", "created_at": 1705606889.186977}, "source.servicenow.servicenow.sys_user_group": {"database": "postgres", "schema": "servicenow_integration_tests_3", "name": "sys_user_group", "resource_type": "source", "package_name": "servicenow", "path": "models/staging/src_servicenow.yml", "original_file_path": "models/staging/src_servicenow.yml", "unique_id": "source.servicenow.servicenow.sys_user_group", "fqn": ["servicenow", "staging", "servicenow", "sys_user_group"], "source_name": "servicenow", "source_description": "", "loader": "", "identifier": "sys_user_group", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table containing all information related to user groups.", "columns": {"sys_id": {"name": "sys_id", "description": "Unique identifier for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates whether the task record has been marked as deleted by the Fivetran connector.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Indicates whether the task record has been synchronized by the Fivetran connector.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active": {"name": "active", "description": "Flag indicating whether the record is currently active or completed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost_center_link": {"name": "cost_center_link", "description": "Link to the cost center associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost_center_value": {"name": "cost_center_value", "description": "Value representing the cost center associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "default_assignee_link": {"name": "default_assignee_link", "description": "Link to the user that is the default assignee for this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "default_assignee_value": {"name": "default_assignee_value", "description": "ID of the user that is the default assignee for this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "description": {"name": "description", "description": "Detailed description or information about the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email": {"name": "email", "description": "Email address associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "exclude_manager": {"name": "exclude_manager", "description": "Boolean of whether the group manager receives email notifications.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "include_members": {"name": "include_members", "description": "Boolean of whether the group members receive individual emails when someone sends an email to the Group Email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "manager_link": {"name": "manager_link", "description": "A link to the user's manager or supervisor in the organizational hierarchy.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "manager_value": {"name": "manager_value", "description": "The name or identifier of the user's manager or supervisor.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "The full name of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "parent_link": {"name": "parent_link", "description": "Link to the other group of which this group is a member. If a group has a parent, the child group inherits the roles of the parent group. The members of the child group are not members of the parent group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "parent_value": {"name": "parent_value", "description": "ID of the other group of which this group is a member. If a group has a parent, the child group inherits the roles of the parent group. The members of the child group are not members of the parent group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "roles": {"name": "roles", "description": "The roles assigned to the user in the system or organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source": {"name": "source", "description": "The source or origin of the user's or user group's profile information.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_created_by": {"name": "sys_created_by", "description": "User who initially created the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_created_on": {"name": "sys_created_on", "description": "Date and time when the record was initially created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_mod_count": {"name": "sys_mod_count", "description": "Number of times the record has been modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_updated_by": {"name": "sys_updated_by", "description": "User who last updated or modified the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_updated_on": {"name": "sys_updated_on", "description": "Date and time when the record was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "The type or category regarding the current record", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"servicenow_integration_tests_3\".\"sys_user_group\"", "created_at": 1705606889.187084}}, "macros": {"macro.dbt_postgres.postgres__current_timestamp": {"name": "postgres__current_timestamp", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__current_timestamp", "macro_sql": "{% macro postgres__current_timestamp() -%}\n now()\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.173857, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_string_as_time": {"name": "postgres__snapshot_string_as_time", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__snapshot_string_as_time", "macro_sql": "{% macro postgres__snapshot_string_as_time(timestamp) -%}\n {%- set result = \"'\" ~ timestamp ~ \"'::timestamp without time zone\" -%}\n {{ return(result) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.174083, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_get_time": {"name": "postgres__snapshot_get_time", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__snapshot_get_time", "macro_sql": "{% macro postgres__snapshot_get_time() -%}\n {{ current_timestamp() }}::timestamp without time zone\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.1741922, "supported_languages": null}, "macro.dbt_postgres.postgres__current_timestamp_backcompat": {"name": "postgres__current_timestamp_backcompat", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__current_timestamp_backcompat", "macro_sql": "{% macro postgres__current_timestamp_backcompat() %}\n current_timestamp::{{ type_timestamp() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.174295, "supported_languages": null}, "macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat": {"name": "postgres__current_timestamp_in_utc_backcompat", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat", "macro_sql": "{% macro postgres__current_timestamp_in_utc_backcompat() %}\n (current_timestamp at time zone 'utc')::{{ type_timestamp() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.174399, "supported_languages": null}, "macro.dbt_postgres.postgres__get_catalog_relations": {"name": "postgres__get_catalog_relations", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/catalog.sql", "original_file_path": "macros/catalog.sql", "unique_id": "macro.dbt_postgres.postgres__get_catalog_relations", "macro_sql": "{% macro postgres__get_catalog_relations(information_schema, relations) -%}\n {%- call statement('catalog', fetch_result=True) -%}\n\n {#\n If the user has multiple databases set and the first one is wrong, this will fail.\n But we won't fail in the case where there are multiple quoting-difference-only dbs, which is better.\n #}\n {% set database = information_schema.database %}\n {{ adapter.verify_database(database) }}\n\n select\n '{{ database }}' as table_database,\n sch.nspname as table_schema,\n tbl.relname as table_name,\n case tbl.relkind\n when 'v' then 'VIEW'\n when 'm' then 'MATERIALIZED VIEW'\n else 'BASE TABLE'\n end as table_type,\n tbl_desc.description as table_comment,\n col.attname as column_name,\n col.attnum as column_index,\n pg_catalog.format_type(col.atttypid, col.atttypmod) as column_type,\n col_desc.description as column_comment,\n pg_get_userbyid(tbl.relowner) as table_owner\n\n from pg_catalog.pg_namespace sch\n join pg_catalog.pg_class tbl on tbl.relnamespace = sch.oid\n join pg_catalog.pg_attribute col on col.attrelid = tbl.oid\n left outer join pg_catalog.pg_description tbl_desc on (tbl_desc.objoid = tbl.oid and tbl_desc.objsubid = 0)\n left outer join pg_catalog.pg_description col_desc on (col_desc.objoid = tbl.oid and col_desc.objsubid = col.attnum)\n where (\n {%- for relation in relations -%}\n {%- if relation.identifier -%}\n (upper(sch.nspname) = upper('{{ relation.schema }}') and\n upper(tbl.relname) = upper('{{ relation.identifier }}'))\n {%- else-%}\n upper(sch.nspname) = upper('{{ relation.schema }}')\n {%- endif -%}\n {%- if not loop.last %} or {% endif -%}\n {%- endfor -%}\n )\n and not pg_is_other_temp_schema(sch.oid) -- not a temporary schema belonging to another session\n and tbl.relpersistence in ('p', 'u') -- [p]ermanent table or [u]nlogged table. Exclude [t]emporary tables\n and tbl.relkind in ('r', 'v', 'f', 'p', 'm') -- o[r]dinary table, [v]iew, [f]oreign table, [p]artitioned table, [m]aterialized view. Other values are [i]ndex, [S]equence, [c]omposite type, [t]OAST table\n and col.attnum > 0 -- negative numbers are used for system columns such as oid\n and not col.attisdropped -- column as not been dropped\n\n order by\n sch.nspname,\n tbl.relname,\n col.attnum\n\n {%- endcall -%}\n\n {{ return(load_result('catalog').table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.175832, "supported_languages": null}, "macro.dbt_postgres.postgres__get_catalog": {"name": "postgres__get_catalog", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/catalog.sql", "original_file_path": "macros/catalog.sql", "unique_id": "macro.dbt_postgres.postgres__get_catalog", "macro_sql": "{% macro postgres__get_catalog(information_schema, schemas) -%}\n {%- set relations = [] -%}\n {%- for schema in schemas -%}\n {%- set dummy = relations.append({'schema': schema}) -%}\n {%- endfor -%}\n {{ return(postgres__get_catalog_relations(information_schema, relations)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_catalog_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.176168, "supported_languages": null}, "macro.dbt_postgres.postgres__get_relations": {"name": "postgres__get_relations", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations.sql", "original_file_path": "macros/relations.sql", "unique_id": "macro.dbt_postgres.postgres__get_relations", "macro_sql": "{% macro postgres__get_relations() -%}\n\n {#\n -- in pg_depend, objid is the dependent, refobjid is the referenced object\n -- > a pg_depend entry indicates that the referenced object cannot be\n -- > dropped without also dropping the dependent object.\n #}\n\n {%- call statement('relations', fetch_result=True) -%}\n with relation as (\n select\n pg_rewrite.ev_class as class,\n pg_rewrite.oid as id\n from pg_rewrite\n ),\n class as (\n select\n oid as id,\n relname as name,\n relnamespace as schema,\n relkind as kind\n from pg_class\n ),\n dependency as (\n select distinct\n pg_depend.objid as id,\n pg_depend.refobjid as ref\n from pg_depend\n ),\n schema as (\n select\n pg_namespace.oid as id,\n pg_namespace.nspname as name\n from pg_namespace\n where nspname != 'information_schema' and nspname not like 'pg\\_%'\n ),\n referenced as (\n select\n relation.id AS id,\n referenced_class.name ,\n referenced_class.schema ,\n referenced_class.kind\n from relation\n join class as referenced_class on relation.class=referenced_class.id\n where referenced_class.kind in ('r', 'v', 'm')\n ),\n relationships as (\n select\n referenced.name as referenced_name,\n referenced.schema as referenced_schema_id,\n dependent_class.name as dependent_name,\n dependent_class.schema as dependent_schema_id,\n referenced.kind as kind\n from referenced\n join dependency on referenced.id=dependency.id\n join class as dependent_class on dependency.ref=dependent_class.id\n where\n (referenced.name != dependent_class.name or\n referenced.schema != dependent_class.schema)\n )\n\n select\n referenced_schema.name as referenced_schema,\n relationships.referenced_name as referenced_name,\n dependent_schema.name as dependent_schema,\n relationships.dependent_name as dependent_name\n from relationships\n join schema as dependent_schema on relationships.dependent_schema_id=dependent_schema.id\n join schema as referenced_schema on relationships.referenced_schema_id=referenced_schema.id\n group by referenced_schema, referenced_name, dependent_schema, dependent_name\n order by referenced_schema, referenced_name, dependent_schema, dependent_name;\n\n {%- endcall -%}\n\n {{ return(load_result('relations').table) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.17678, "supported_languages": null}, "macro.dbt_postgres.postgres_get_relations": {"name": "postgres_get_relations", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations.sql", "original_file_path": "macros/relations.sql", "unique_id": "macro.dbt_postgres.postgres_get_relations", "macro_sql": "{% macro postgres_get_relations() %}\n {{ return(postgres__get_relations()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.176904, "supported_languages": null}, "macro.dbt_postgres.postgres__create_table_as": {"name": "postgres__create_table_as", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__create_table_as", "macro_sql": "{% macro postgres__create_table_as(temporary, relation, sql) -%}\n {%- set unlogged = config.get('unlogged', default=false) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create {% if temporary -%}\n temporary\n {%- elif unlogged -%}\n unlogged\n {%- endif %} table {{ relation }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {% endif -%}\n {% if contract_config.enforced and (not temporary) -%}\n {{ get_table_columns_and_constraints() }} ;\n insert into {{ relation }} (\n {{ adapter.dispatch('get_column_names', 'dbt')() }}\n )\n {%- set sql = get_select_subquery(sql) %}\n {% else %}\n as\n {% endif %}\n (\n {{ sql }}\n );\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent", "macro.dbt.get_table_columns_and_constraints", "macro.dbt.default__get_column_names", "macro.dbt.get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.1849332, "supported_languages": null}, "macro.dbt_postgres.postgres__get_create_index_sql": {"name": "postgres__get_create_index_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_create_index_sql", "macro_sql": "{% macro postgres__get_create_index_sql(relation, index_dict) -%}\n {%- set index_config = adapter.parse_index(index_dict) -%}\n {%- set comma_separated_columns = \", \".join(index_config.columns) -%}\n {%- set index_name = index_config.render(relation) -%}\n\n create {% if index_config.unique -%}\n unique\n {%- endif %} index if not exists\n \"{{ index_name }}\"\n on {{ relation }} {% if index_config.type -%}\n using {{ index_config.type }}\n {%- endif %}\n ({{ comma_separated_columns }});\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.185421, "supported_languages": null}, "macro.dbt_postgres.postgres__create_schema": {"name": "postgres__create_schema", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__create_schema", "macro_sql": "{% macro postgres__create_schema(relation) -%}\n {% if relation.database -%}\n {{ adapter.verify_database(relation.database) }}\n {%- endif -%}\n {%- call statement('create_schema') -%}\n create schema if not exists {{ relation.without_identifier().include(database=False) }}\n {%- endcall -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.185728, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_schema": {"name": "postgres__drop_schema", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__drop_schema", "macro_sql": "{% macro postgres__drop_schema(relation) -%}\n {% if relation.database -%}\n {{ adapter.verify_database(relation.database) }}\n {%- endif -%}\n {%- call statement('drop_schema') -%}\n drop schema if exists {{ relation.without_identifier().include(database=False) }} cascade\n {%- endcall -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.186021, "supported_languages": null}, "macro.dbt_postgres.postgres__get_columns_in_relation": {"name": "postgres__get_columns_in_relation", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_columns_in_relation", "macro_sql": "{% macro postgres__get_columns_in_relation(relation) -%}\n {% call statement('get_columns_in_relation', fetch_result=True) %}\n select\n column_name,\n data_type,\n character_maximum_length,\n numeric_precision,\n numeric_scale\n\n from {{ relation.information_schema('columns') }}\n where table_name = '{{ relation.identifier }}'\n {% if relation.schema %}\n and table_schema = '{{ relation.schema }}'\n {% endif %}\n order by ordinal_position\n\n {% endcall %}\n {% set table = load_result('get_columns_in_relation').table %}\n {{ return(sql_convert_columns_in_relation(table)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.sql_convert_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.1864479, "supported_languages": null}, "macro.dbt_postgres.postgres__list_relations_without_caching": {"name": "postgres__list_relations_without_caching", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__list_relations_without_caching", "macro_sql": "{% macro postgres__list_relations_without_caching(schema_relation) %}\n {% call statement('list_relations_without_caching', fetch_result=True) -%}\n select\n '{{ schema_relation.database }}' as database,\n tablename as name,\n schemaname as schema,\n 'table' as type\n from pg_tables\n where schemaname ilike '{{ schema_relation.schema }}'\n union all\n select\n '{{ schema_relation.database }}' as database,\n viewname as name,\n schemaname as schema,\n 'view' as type\n from pg_views\n where schemaname ilike '{{ schema_relation.schema }}'\n union all\n select\n '{{ schema_relation.database }}' as database,\n matviewname as name,\n schemaname as schema,\n 'materialized_view' as type\n from pg_matviews\n where schemaname ilike '{{ schema_relation.schema }}'\n {% endcall %}\n {{ return(load_result('list_relations_without_caching').table) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.186979, "supported_languages": null}, "macro.dbt_postgres.postgres__information_schema_name": {"name": "postgres__information_schema_name", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__information_schema_name", "macro_sql": "{% macro postgres__information_schema_name(database) -%}\n {% if database_name -%}\n {{ adapter.verify_database(database_name) }}\n {%- endif -%}\n information_schema\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.1871638, "supported_languages": null}, "macro.dbt_postgres.postgres__list_schemas": {"name": "postgres__list_schemas", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__list_schemas", "macro_sql": "{% macro postgres__list_schemas(database) %}\n {% if database -%}\n {{ adapter.verify_database(database) }}\n {%- endif -%}\n {% call statement('list_schemas', fetch_result=True, auto_begin=False) %}\n select distinct nspname from pg_namespace\n {% endcall %}\n {{ return(load_result('list_schemas').table) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.1875, "supported_languages": null}, "macro.dbt_postgres.postgres__check_schema_exists": {"name": "postgres__check_schema_exists", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__check_schema_exists", "macro_sql": "{% macro postgres__check_schema_exists(information_schema, schema) -%}\n {% if information_schema.database -%}\n {{ adapter.verify_database(information_schema.database) }}\n {%- endif -%}\n {% call statement('check_schema_exists', fetch_result=True, auto_begin=False) %}\n select count(*) from pg_namespace where nspname = '{{ schema }}'\n {% endcall %}\n {{ return(load_result('check_schema_exists').table) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.187894, "supported_languages": null}, "macro.dbt_postgres.postgres__make_relation_with_suffix": {"name": "postgres__make_relation_with_suffix", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__make_relation_with_suffix", "macro_sql": "{% macro postgres__make_relation_with_suffix(base_relation, suffix, dstring) %}\n {% if dstring %}\n {% set dt = modules.datetime.datetime.now() %}\n {% set dtstring = dt.strftime(\"%H%M%S%f\") %}\n {% set suffix = suffix ~ dtstring %}\n {% endif %}\n {% set suffix_length = suffix|length %}\n {% set relation_max_name_length = base_relation.relation_max_name_length() %}\n {% if suffix_length > relation_max_name_length %}\n {% do exceptions.raise_compiler_error('Relation suffix is too long (' ~ suffix_length ~ ' characters). Maximum length is ' ~ relation_max_name_length ~ ' characters.') %}\n {% endif %}\n {% set identifier = base_relation.identifier[:relation_max_name_length - suffix_length] ~ suffix %}\n\n {{ return(base_relation.incorporate(path={\"identifier\": identifier })) }}\n\n {% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.1887171, "supported_languages": null}, "macro.dbt_postgres.postgres__make_intermediate_relation": {"name": "postgres__make_intermediate_relation", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__make_intermediate_relation", "macro_sql": "{% macro postgres__make_intermediate_relation(base_relation, suffix) %}\n {{ return(postgres__make_relation_with_suffix(base_relation, suffix, dstring=False)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.1889238, "supported_languages": null}, "macro.dbt_postgres.postgres__make_temp_relation": {"name": "postgres__make_temp_relation", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__make_temp_relation", "macro_sql": "{% macro postgres__make_temp_relation(base_relation, suffix) %}\n {% set temp_relation = postgres__make_relation_with_suffix(base_relation, suffix, dstring=True) %}\n {{ return(temp_relation.incorporate(path={\"schema\": none,\n \"database\": none})) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.189227, "supported_languages": null}, "macro.dbt_postgres.postgres__make_backup_relation": {"name": "postgres__make_backup_relation", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__make_backup_relation", "macro_sql": "{% macro postgres__make_backup_relation(base_relation, backup_relation_type, suffix) %}\n {% set backup_relation = postgres__make_relation_with_suffix(base_relation, suffix, dstring=False) %}\n {{ return(backup_relation.incorporate(type=backup_relation_type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.189485, "supported_languages": null}, "macro.dbt_postgres.postgres_escape_comment": {"name": "postgres_escape_comment", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres_escape_comment", "macro_sql": "{% macro postgres_escape_comment(comment) -%}\n {% if comment is not string %}\n {% do exceptions.raise_compiler_error('cannot escape a non-string: ' ~ comment) %}\n {% endif %}\n {%- set magic = '$dbt_comment_literal_block$' -%}\n {%- if magic in comment -%}\n {%- do exceptions.raise_compiler_error('The string ' ~ magic ~ ' is not allowed in comments.') -%}\n {%- endif -%}\n {{ magic }}{{ comment }}{{ magic }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.189878, "supported_languages": null}, "macro.dbt_postgres.postgres__alter_relation_comment": {"name": "postgres__alter_relation_comment", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__alter_relation_comment", "macro_sql": "{% macro postgres__alter_relation_comment(relation, comment) %}\n {% set escaped_comment = postgres_escape_comment(comment) %}\n comment on {{ relation.type }} {{ relation }} is {{ escaped_comment }};\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres_escape_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.190086, "supported_languages": null}, "macro.dbt_postgres.postgres__alter_column_comment": {"name": "postgres__alter_column_comment", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__alter_column_comment", "macro_sql": "{% macro postgres__alter_column_comment(relation, column_dict) %}\n {% set existing_columns = adapter.get_columns_in_relation(relation) | map(attribute=\"name\") | list %}\n {% for column_name in column_dict if (column_name in existing_columns) %}\n {% set comment = column_dict[column_name]['description'] %}\n {% set escaped_comment = postgres_escape_comment(comment) %}\n comment on column {{ relation }}.{{ adapter.quote(column_name) if column_dict[column_name]['quote'] else column_name }} is {{ escaped_comment }};\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres_escape_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.190634, "supported_languages": null}, "macro.dbt_postgres.postgres__get_show_grant_sql": {"name": "postgres__get_show_grant_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_show_grant_sql", "macro_sql": "\n\n{%- macro postgres__get_show_grant_sql(relation) -%}\n select grantee, privilege_type\n from {{ relation.information_schema('role_table_grants') }}\n where grantor = current_role\n and grantee != current_role\n and table_schema = '{{ relation.schema }}'\n and table_name = '{{ relation.identifier }}'\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.190828, "supported_languages": null}, "macro.dbt_postgres.postgres__copy_grants": {"name": "postgres__copy_grants", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__copy_grants", "macro_sql": "{% macro postgres__copy_grants() %}\n {{ return(False) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.190936, "supported_languages": null}, "macro.dbt_postgres.postgres__get_show_indexes_sql": {"name": "postgres__get_show_indexes_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_show_indexes_sql", "macro_sql": "{% macro postgres__get_show_indexes_sql(relation) %}\n select\n i.relname as name,\n m.amname as method,\n ix.indisunique as \"unique\",\n array_to_string(array_agg(a.attname), ',') as column_names\n from pg_index ix\n join pg_class i\n on i.oid = ix.indexrelid\n join pg_am m\n on m.oid=i.relam\n join pg_class t\n on t.oid = ix.indrelid\n join pg_namespace n\n on n.oid = t.relnamespace\n join pg_attribute a\n on a.attrelid = t.oid\n and a.attnum = ANY(ix.indkey)\n where t.relname = '{{ relation.identifier }}'\n and n.nspname = '{{ relation.schema }}'\n and t.relkind in ('r', 'm')\n group by 1, 2, 3\n order by 1, 2, 3\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.191107, "supported_languages": null}, "macro.dbt_postgres.postgres__get_drop_index_sql": {"name": "postgres__get_drop_index_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_drop_index_sql", "macro_sql": "\n\n\n{%- macro postgres__get_drop_index_sql(relation, index_name) -%}\n drop index if exists \"{{ relation.schema }}\".\"{{ index_name }}\"\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.191241, "supported_languages": null}, "macro.dbt_postgres.postgres__get_incremental_default_sql": {"name": "postgres__get_incremental_default_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/materializations/incremental_strategies.sql", "original_file_path": "macros/materializations/incremental_strategies.sql", "unique_id": "macro.dbt_postgres.postgres__get_incremental_default_sql", "macro_sql": "{% macro postgres__get_incremental_default_sql(arg_dict) %}\n\n {% if arg_dict[\"unique_key\"] %}\n {% do return(get_incremental_delete_insert_sql(arg_dict)) %}\n {% else %}\n {% do return(get_incremental_append_sql(arg_dict)) %}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_incremental_delete_insert_sql", "macro.dbt.get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.191614, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_merge_sql": {"name": "postgres__snapshot_merge_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/materializations/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshot_merge.sql", "unique_id": "macro.dbt_postgres.postgres__snapshot_merge_sql", "macro_sql": "{% macro postgres__snapshot_merge_sql(target, source, insert_cols) -%}\n {%- set insert_cols_csv = insert_cols | join(', ') -%}\n\n update {{ target }}\n set dbt_valid_to = DBT_INTERNAL_SOURCE.dbt_valid_to\n from {{ source }} as DBT_INTERNAL_SOURCE\n where DBT_INTERNAL_SOURCE.dbt_scd_id::text = {{ target }}.dbt_scd_id::text\n and DBT_INTERNAL_SOURCE.dbt_change_type::text in ('update'::text, 'delete'::text)\n and {{ target }}.dbt_valid_to is null;\n\n insert into {{ target }} ({{ insert_cols_csv }})\n select {% for column in insert_cols -%}\n DBT_INTERNAL_SOURCE.{{ column }} {%- if not loop.last %}, {%- endif %}\n {%- endfor %}\n from {{ source }} as DBT_INTERNAL_SOURCE\n where DBT_INTERNAL_SOURCE.dbt_change_type::text = 'insert'::text;\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.1922681, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_materialized_view": {"name": "postgres__drop_materialized_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/drop.sql", "original_file_path": "macros/relations/materialized_view/drop.sql", "unique_id": "macro.dbt_postgres.postgres__drop_materialized_view", "macro_sql": "{% macro postgres__drop_materialized_view(relation) -%}\n drop materialized view if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.1924071, "supported_languages": null}, "macro.dbt_postgres.postgres__describe_materialized_view": {"name": "postgres__describe_materialized_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/describe.sql", "original_file_path": "macros/relations/materialized_view/describe.sql", "unique_id": "macro.dbt_postgres.postgres__describe_materialized_view", "macro_sql": "{% macro postgres__describe_materialized_view(relation) %}\n -- for now just get the indexes, we don't need the name or the query yet\n {% set _indexes = run_query(get_show_indexes_sql(relation)) %}\n {% do return({'indexes': _indexes}) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.get_show_indexes_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.192678, "supported_languages": null}, "macro.dbt_postgres.postgres__refresh_materialized_view": {"name": "postgres__refresh_materialized_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/refresh.sql", "original_file_path": "macros/relations/materialized_view/refresh.sql", "unique_id": "macro.dbt_postgres.postgres__refresh_materialized_view", "macro_sql": "{% macro postgres__refresh_materialized_view(relation) %}\n refresh materialized view {{ relation }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.192805, "supported_languages": null}, "macro.dbt_postgres.postgres__get_rename_materialized_view_sql": {"name": "postgres__get_rename_materialized_view_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/rename.sql", "original_file_path": "macros/relations/materialized_view/rename.sql", "unique_id": "macro.dbt_postgres.postgres__get_rename_materialized_view_sql", "macro_sql": "{% macro postgres__get_rename_materialized_view_sql(relation, new_name) %}\n alter materialized view {{ relation }} rename to {{ new_name }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.192961, "supported_languages": null}, "macro.dbt_postgres.postgres__get_alter_materialized_view_as_sql": {"name": "postgres__get_alter_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt_postgres.postgres__get_alter_materialized_view_as_sql", "macro_sql": "{% macro postgres__get_alter_materialized_view_as_sql(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n) %}\n\n -- apply a full refresh immediately if needed\n {% if configuration_changes.requires_full_refresh %}\n\n {{ get_replace_sql(existing_relation, relation, sql) }}\n\n -- otherwise apply individual changes as needed\n {% else %}\n\n {{ postgres__update_indexes_on_materialized_view(relation, configuration_changes.indexes) }}\n\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_replace_sql", "macro.dbt_postgres.postgres__update_indexes_on_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.193834, "supported_languages": null}, "macro.dbt_postgres.postgres__update_indexes_on_materialized_view": {"name": "postgres__update_indexes_on_materialized_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt_postgres.postgres__update_indexes_on_materialized_view", "macro_sql": "\n\n\n{%- macro postgres__update_indexes_on_materialized_view(relation, index_changes) -%}\n {{- log(\"Applying UPDATE INDEXES to: \" ~ relation) -}}\n\n {%- for _index_change in index_changes -%}\n {%- set _index = _index_change.context -%}\n\n {%- if _index_change.action == \"drop\" -%}\n\n {{ postgres__get_drop_index_sql(relation, _index.name) }};\n\n {%- elif _index_change.action == \"create\" -%}\n\n {{ postgres__get_create_index_sql(relation, _index.as_node_config) }}\n\n {%- endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_drop_index_sql", "macro.dbt_postgres.postgres__get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.194266, "supported_languages": null}, "macro.dbt_postgres.postgres__get_materialized_view_configuration_changes": {"name": "postgres__get_materialized_view_configuration_changes", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt_postgres.postgres__get_materialized_view_configuration_changes", "macro_sql": "{% macro postgres__get_materialized_view_configuration_changes(existing_relation, new_config) %}\n {% set _existing_materialized_view = postgres__describe_materialized_view(existing_relation) %}\n {% set _configuration_changes = existing_relation.get_materialized_view_config_change_collection(_existing_materialized_view, new_config) %}\n {% do return(_configuration_changes) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__describe_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.1945338, "supported_languages": null}, "macro.dbt_postgres.postgres__get_create_materialized_view_as_sql": {"name": "postgres__get_create_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/create.sql", "original_file_path": "macros/relations/materialized_view/create.sql", "unique_id": "macro.dbt_postgres.postgres__get_create_materialized_view_as_sql", "macro_sql": "{% macro postgres__get_create_materialized_view_as_sql(relation, sql) %}\n create materialized view if not exists {{ relation }} as {{ sql }};\n\n {% for _index_dict in config.get('indexes', []) -%}\n {{- get_create_index_sql(relation, _index_dict) -}}\n {%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.1949031, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_table": {"name": "postgres__drop_table", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/table/drop.sql", "original_file_path": "macros/relations/table/drop.sql", "unique_id": "macro.dbt_postgres.postgres__drop_table", "macro_sql": "{% macro postgres__drop_table(relation) -%}\n drop table if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.195039, "supported_languages": null}, "macro.dbt_postgres.postgres__get_replace_table_sql": {"name": "postgres__get_replace_table_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/table/replace.sql", "original_file_path": "macros/relations/table/replace.sql", "unique_id": "macro.dbt_postgres.postgres__get_replace_table_sql", "macro_sql": "{% macro postgres__get_replace_table_sql(relation, sql) -%}\n\n {%- set sql_header = config.get('sql_header', none) -%}\n {{ sql_header if sql_header is not none }}\n\n create or replace table {{ relation }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {{ get_table_columns_and_constraints() }}\n {%- set sql = get_select_subquery(sql) %}\n {% endif %}\n as (\n {{ sql }}\n );\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent", "macro.dbt.get_table_columns_and_constraints", "macro.dbt.get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.195712, "supported_languages": null}, "macro.dbt_postgres.postgres__get_rename_table_sql": {"name": "postgres__get_rename_table_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/table/rename.sql", "original_file_path": "macros/relations/table/rename.sql", "unique_id": "macro.dbt_postgres.postgres__get_rename_table_sql", "macro_sql": "{% macro postgres__get_rename_table_sql(relation, new_name) %}\n alter table {{ relation }} rename to {{ new_name }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.195887, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_view": {"name": "postgres__drop_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/view/drop.sql", "original_file_path": "macros/relations/view/drop.sql", "unique_id": "macro.dbt_postgres.postgres__drop_view", "macro_sql": "{% macro postgres__drop_view(relation) -%}\n drop view if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.196012, "supported_languages": null}, "macro.dbt_postgres.postgres__get_replace_view_sql": {"name": "postgres__get_replace_view_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt_postgres.postgres__get_replace_view_sql", "macro_sql": "{% macro postgres__get_replace_view_sql(relation, sql) -%}\n\n {%- set sql_header = config.get('sql_header', none) -%}\n {{ sql_header if sql_header is not none }}\n\n create or replace view {{ relation }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {%- endif %}\n as (\n {{ sql }}\n );\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.1965199, "supported_languages": null}, "macro.dbt_postgres.postgres__get_rename_view_sql": {"name": "postgres__get_rename_view_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/view/rename.sql", "original_file_path": "macros/relations/view/rename.sql", "unique_id": "macro.dbt_postgres.postgres__get_rename_view_sql", "macro_sql": "{% macro postgres__get_rename_view_sql(relation, new_name) %}\n alter view {{ relation }} rename to {{ new_name }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.1966789, "supported_languages": null}, "macro.dbt_postgres.postgres__dateadd": {"name": "postgres__dateadd", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "unique_id": "macro.dbt_postgres.postgres__dateadd", "macro_sql": "{% macro postgres__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n {{ from_date_or_timestamp }} + ((interval '1 {{ datepart }}') * ({{ interval }}))\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.196877, "supported_languages": null}, "macro.dbt_postgres.postgres__listagg": {"name": "postgres__listagg", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "unique_id": "macro.dbt_postgres.postgres__listagg", "macro_sql": "{% macro postgres__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n {% if limit_num -%}\n array_to_string(\n (array_agg(\n {{ measure }}\n {% if order_by_clause -%}\n {{ order_by_clause }}\n {%- endif %}\n ))[1:{{ limit_num }}],\n {{ delimiter_text }}\n )\n {%- else %}\n string_agg(\n {{ measure }},\n {{ delimiter_text }}\n {% if order_by_clause -%}\n {{ order_by_clause }}\n {%- endif %}\n )\n {%- endif %}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.197438, "supported_languages": null}, "macro.dbt_postgres.postgres__datediff": {"name": "postgres__datediff", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "unique_id": "macro.dbt_postgres.postgres__datediff", "macro_sql": "{% macro postgres__datediff(first_date, second_date, datepart) -%}\n\n {% if datepart == 'year' %}\n (date_part('year', ({{second_date}})::date) - date_part('year', ({{first_date}})::date))\n {% elif datepart == 'quarter' %}\n ({{ datediff(first_date, second_date, 'year') }} * 4 + date_part('quarter', ({{second_date}})::date) - date_part('quarter', ({{first_date}})::date))\n {% elif datepart == 'month' %}\n ({{ datediff(first_date, second_date, 'year') }} * 12 + date_part('month', ({{second_date}})::date) - date_part('month', ({{first_date}})::date))\n {% elif datepart == 'day' %}\n (({{second_date}})::date - ({{first_date}})::date)\n {% elif datepart == 'week' %}\n ({{ datediff(first_date, second_date, 'day') }} / 7 + case\n when date_part('dow', ({{first_date}})::timestamp) <= date_part('dow', ({{second_date}})::timestamp) then\n case when {{first_date}} <= {{second_date}} then 0 else -1 end\n else\n case when {{first_date}} <= {{second_date}} then 1 else 0 end\n end)\n {% elif datepart == 'hour' %}\n ({{ datediff(first_date, second_date, 'day') }} * 24 + date_part('hour', ({{second_date}})::timestamp) - date_part('hour', ({{first_date}})::timestamp))\n {% elif datepart == 'minute' %}\n ({{ datediff(first_date, second_date, 'hour') }} * 60 + date_part('minute', ({{second_date}})::timestamp) - date_part('minute', ({{first_date}})::timestamp))\n {% elif datepart == 'second' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60 + floor(date_part('second', ({{second_date}})::timestamp)) - floor(date_part('second', ({{first_date}})::timestamp)))\n {% elif datepart == 'millisecond' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60000 + floor(date_part('millisecond', ({{second_date}})::timestamp)) - floor(date_part('millisecond', ({{first_date}})::timestamp)))\n {% elif datepart == 'microsecond' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60000000 + floor(date_part('microsecond', ({{second_date}})::timestamp)) - floor(date_part('microsecond', ({{first_date}})::timestamp)))\n {% else %}\n {{ exceptions.raise_compiler_error(\"Unsupported datepart for macro datediff in postgres: {!r}\".format(datepart)) }}\n {% endif %}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.200417, "supported_languages": null}, "macro.dbt_postgres.postgres__any_value": {"name": "postgres__any_value", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "unique_id": "macro.dbt_postgres.postgres__any_value", "macro_sql": "{% macro postgres__any_value(expression) -%}\n\n min({{ expression }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.2005692, "supported_languages": null}, "macro.dbt_postgres.postgres__last_day": {"name": "postgres__last_day", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt_postgres.postgres__last_day", "macro_sql": "{% macro postgres__last_day(date, datepart) -%}\n\n {%- if datepart == 'quarter' -%}\n -- postgres dateadd does not support quarter interval.\n cast(\n {{dbt.dateadd('day', '-1',\n dbt.dateadd('month', '3', dbt.date_trunc(datepart, date))\n )}}\n as date)\n {%- else -%}\n {{dbt.default_last_day(date, datepart)}}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.date_trunc", "macro.dbt.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.20105, "supported_languages": null}, "macro.dbt_postgres.postgres__split_part": {"name": "postgres__split_part", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt_postgres.postgres__split_part", "macro_sql": "{% macro postgres__split_part(string_text, delimiter_text, part_number) %}\n\n {% if part_number >= 0 %}\n {{ dbt.default__split_part(string_text, delimiter_text, part_number) }}\n {% else %}\n {{ dbt._split_part_negative(string_text, delimiter_text, part_number) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__split_part", "macro.dbt._split_part_negative"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.20151, "supported_languages": null}, "macro.dbt.run_hooks": {"name": "run_hooks", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.run_hooks", "macro_sql": "{% macro run_hooks(hooks, inside_transaction=True) %}\n {% for hook in hooks | selectattr('transaction', 'equalto', inside_transaction) %}\n {% if not inside_transaction and loop.first %}\n {% call statement(auto_begin=inside_transaction) %}\n commit;\n {% endcall %}\n {% endif %}\n {% set rendered = render(hook.get('sql')) | trim %}\n {% if (rendered | length) > 0 %}\n {% call statement(auto_begin=inside_transaction) %}\n {{ rendered }}\n {% endcall %}\n {% endif %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.202555, "supported_languages": null}, "macro.dbt.make_hook_config": {"name": "make_hook_config", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.make_hook_config", "macro_sql": "{% macro make_hook_config(sql, inside_transaction) %}\n {{ tojson({\"sql\": sql, \"transaction\": inside_transaction}) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.2027452, "supported_languages": null}, "macro.dbt.before_begin": {"name": "before_begin", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.before_begin", "macro_sql": "{% macro before_begin(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.20288, "supported_languages": null}, "macro.dbt.in_transaction": {"name": "in_transaction", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.in_transaction", "macro_sql": "{% macro in_transaction(sql) %}\n {{ make_hook_config(sql, inside_transaction=True) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.203016, "supported_languages": null}, "macro.dbt.after_commit": {"name": "after_commit", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.after_commit", "macro_sql": "{% macro after_commit(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.203146, "supported_languages": null}, "macro.dbt.set_sql_header": {"name": "set_sql_header", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "unique_id": "macro.dbt.set_sql_header", "macro_sql": "{% macro set_sql_header(config) -%}\n {{ config.set('sql_header', caller()) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.203511, "supported_languages": null}, "macro.dbt.should_full_refresh": {"name": "should_full_refresh", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "unique_id": "macro.dbt.should_full_refresh", "macro_sql": "{% macro should_full_refresh() %}\n {% set config_full_refresh = config.get('full_refresh') %}\n {% if config_full_refresh is none %}\n {% set config_full_refresh = flags.FULL_REFRESH %}\n {% endif %}\n {% do return(config_full_refresh) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.203893, "supported_languages": null}, "macro.dbt.should_store_failures": {"name": "should_store_failures", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "unique_id": "macro.dbt.should_store_failures", "macro_sql": "{% macro should_store_failures() %}\n {% set config_store_failures = config.get('store_failures') %}\n {% if config_store_failures is none %}\n {% set config_store_failures = flags.STORE_FAILURES %}\n {% endif %}\n {% do return(config_store_failures) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.2042398, "supported_languages": null}, "macro.dbt.snapshot_merge_sql": {"name": "snapshot_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "unique_id": "macro.dbt.snapshot_merge_sql", "macro_sql": "{% macro snapshot_merge_sql(target, source, insert_cols) -%}\n {{ adapter.dispatch('snapshot_merge_sql', 'dbt')(target, source, insert_cols) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.2047129, "supported_languages": null}, "macro.dbt.default__snapshot_merge_sql": {"name": "default__snapshot_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "unique_id": "macro.dbt.default__snapshot_merge_sql", "macro_sql": "{% macro default__snapshot_merge_sql(target, source, insert_cols) -%}\n {%- set insert_cols_csv = insert_cols | join(', ') -%}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on DBT_INTERNAL_SOURCE.dbt_scd_id = DBT_INTERNAL_DEST.dbt_scd_id\n\n when matched\n and DBT_INTERNAL_DEST.dbt_valid_to is null\n and DBT_INTERNAL_SOURCE.dbt_change_type in ('update', 'delete')\n then update\n set dbt_valid_to = DBT_INTERNAL_SOURCE.dbt_valid_to\n\n when not matched\n and DBT_INTERNAL_SOURCE.dbt_change_type = 'insert'\n then insert ({{ insert_cols_csv }})\n values ({{ insert_cols_csv }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.204986, "supported_languages": null}, "macro.dbt.strategy_dispatch": {"name": "strategy_dispatch", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.strategy_dispatch", "macro_sql": "{% macro strategy_dispatch(name) -%}\n{% set original_name = name %}\n {% if '.' in name %}\n {% set package_name, name = name.split(\".\", 1) %}\n {% else %}\n {% set package_name = none %}\n {% endif %}\n\n {% if package_name is none %}\n {% set package_context = context %}\n {% elif package_name in context %}\n {% set package_context = context[package_name] %}\n {% else %}\n {% set error_msg %}\n Could not find package '{{package_name}}', called with '{{original_name}}'\n {% endset %}\n {{ exceptions.raise_compiler_error(error_msg | trim) }}\n {% endif %}\n\n {%- set search_name = 'snapshot_' ~ name ~ '_strategy' -%}\n\n {% if search_name not in package_context %}\n {% set error_msg %}\n The specified strategy macro '{{name}}' was not found in package '{{ package_name }}'\n {% endset %}\n {{ exceptions.raise_compiler_error(error_msg | trim) }}\n {% endif %}\n {{ return(package_context[search_name]) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.2083, "supported_languages": null}, "macro.dbt.snapshot_hash_arguments": {"name": "snapshot_hash_arguments", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_hash_arguments", "macro_sql": "{% macro snapshot_hash_arguments(args) -%}\n {{ adapter.dispatch('snapshot_hash_arguments', 'dbt')(args) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.208483, "supported_languages": null}, "macro.dbt.default__snapshot_hash_arguments": {"name": "default__snapshot_hash_arguments", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.default__snapshot_hash_arguments", "macro_sql": "{% macro default__snapshot_hash_arguments(args) -%}\n md5({%- for arg in args -%}\n coalesce(cast({{ arg }} as varchar ), '')\n {% if not loop.last %} || '|' || {% endif %}\n {%- endfor -%})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.208705, "supported_languages": null}, "macro.dbt.snapshot_timestamp_strategy": {"name": "snapshot_timestamp_strategy", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_timestamp_strategy", "macro_sql": "{% macro snapshot_timestamp_strategy(node, snapshotted_rel, current_rel, config, target_exists) %}\n {% set primary_key = config['unique_key'] %}\n {% set updated_at = config['updated_at'] %}\n {% set invalidate_hard_deletes = config.get('invalidate_hard_deletes', false) %}\n\n {#/*\n The snapshot relation might not have an {{ updated_at }} value if the\n snapshot strategy is changed from `check` to `timestamp`. We\n should use a dbt-created column for the comparison in the snapshot\n table instead of assuming that the user-supplied {{ updated_at }}\n will be present in the historical data.\n\n See https://github.com/dbt-labs/dbt-core/issues/2350\n */ #}\n {% set row_changed_expr -%}\n ({{ snapshotted_rel }}.dbt_valid_from < {{ current_rel }}.{{ updated_at }})\n {%- endset %}\n\n {% set scd_id_expr = snapshot_hash_arguments([primary_key, updated_at]) %}\n\n {% do return({\n \"unique_key\": primary_key,\n \"updated_at\": updated_at,\n \"row_changed\": row_changed_expr,\n \"scd_id\": scd_id_expr,\n \"invalidate_hard_deletes\": invalidate_hard_deletes\n }) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.209515, "supported_languages": null}, "macro.dbt.snapshot_string_as_time": {"name": "snapshot_string_as_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_string_as_time", "macro_sql": "{% macro snapshot_string_as_time(timestamp) -%}\n {{ adapter.dispatch('snapshot_string_as_time', 'dbt')(timestamp) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_string_as_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.2097201, "supported_languages": null}, "macro.dbt.default__snapshot_string_as_time": {"name": "default__snapshot_string_as_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.default__snapshot_string_as_time", "macro_sql": "{% macro default__snapshot_string_as_time(timestamp) %}\n {% do exceptions.raise_not_implemented(\n 'snapshot_string_as_time macro not implemented for adapter '+adapter.type()\n ) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.209889, "supported_languages": null}, "macro.dbt.snapshot_check_all_get_existing_columns": {"name": "snapshot_check_all_get_existing_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_check_all_get_existing_columns", "macro_sql": "{% macro snapshot_check_all_get_existing_columns(node, target_exists, check_cols_config) -%}\n {%- if not target_exists -%}\n {#-- no table yet -> return whatever the query does --#}\n {{ return((false, query_columns)) }}\n {%- endif -%}\n\n {#-- handle any schema changes --#}\n {%- set target_relation = adapter.get_relation(database=node.database, schema=node.schema, identifier=node.alias) -%}\n\n {% if check_cols_config == 'all' %}\n {%- set query_columns = get_columns_in_query(node['compiled_code']) -%}\n\n {% elif check_cols_config is iterable and (check_cols_config | length) > 0 %}\n {#-- query for proper casing/quoting, to support comparison below --#}\n {%- set select_check_cols_from_target -%}\n {#-- N.B. The whitespace below is necessary to avoid edge case issue with comments --#}\n {#-- See: https://github.com/dbt-labs/dbt-core/issues/6781 --#}\n select {{ check_cols_config | join(', ') }} from (\n {{ node['compiled_code'] }}\n ) subq\n {%- endset -%}\n {% set query_columns = get_columns_in_query(select_check_cols_from_target) %}\n\n {% else %}\n {% do exceptions.raise_compiler_error(\"Invalid value for 'check_cols': \" ~ check_cols_config) %}\n {% endif %}\n\n {%- set existing_cols = adapter.get_columns_in_relation(target_relation) | map(attribute = 'name') | list -%}\n {%- set ns = namespace() -%} {#-- handle for-loop scoping with a namespace --#}\n {%- set ns.column_added = false -%}\n\n {%- set intersection = [] -%}\n {%- for col in query_columns -%}\n {%- if col in existing_cols -%}\n {%- do intersection.append(adapter.quote(col)) -%}\n {%- else -%}\n {% set ns.column_added = true %}\n {%- endif -%}\n {%- endfor -%}\n {{ return((ns.column_added, intersection)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.2111738, "supported_languages": null}, "macro.dbt.snapshot_check_strategy": {"name": "snapshot_check_strategy", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_check_strategy", "macro_sql": "{% macro snapshot_check_strategy(node, snapshotted_rel, current_rel, config, target_exists) %}\n {% set check_cols_config = config['check_cols'] %}\n {% set primary_key = config['unique_key'] %}\n {% set invalidate_hard_deletes = config.get('invalidate_hard_deletes', false) %}\n {% set updated_at = config.get('updated_at', snapshot_get_time()) %}\n\n {% set column_added = false %}\n\n {% set column_added, check_cols = snapshot_check_all_get_existing_columns(node, target_exists, check_cols_config) %}\n\n {%- set row_changed_expr -%}\n (\n {%- if column_added -%}\n {{ get_true_sql() }}\n {%- else -%}\n {%- for col in check_cols -%}\n {{ snapshotted_rel }}.{{ col }} != {{ current_rel }}.{{ col }}\n or\n (\n (({{ snapshotted_rel }}.{{ col }} is null) and not ({{ current_rel }}.{{ col }} is null))\n or\n ((not {{ snapshotted_rel }}.{{ col }} is null) and ({{ current_rel }}.{{ col }} is null))\n )\n {%- if not loop.last %} or {% endif -%}\n {%- endfor -%}\n {%- endif -%}\n )\n {%- endset %}\n\n {% set scd_id_expr = snapshot_hash_arguments([primary_key, updated_at]) %}\n\n {% do return({\n \"unique_key\": primary_key,\n \"updated_at\": updated_at,\n \"row_changed\": row_changed_expr,\n \"scd_id\": scd_id_expr,\n \"invalidate_hard_deletes\": invalidate_hard_deletes\n }) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.snapshot_get_time", "macro.dbt.snapshot_check_all_get_existing_columns", "macro.dbt.get_true_sql", "macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.212501, "supported_languages": null}, "macro.dbt.create_columns": {"name": "create_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.create_columns", "macro_sql": "{% macro create_columns(relation, columns) %}\n {{ adapter.dispatch('create_columns', 'dbt')(relation, columns) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.216015, "supported_languages": null}, "macro.dbt.default__create_columns": {"name": "default__create_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__create_columns", "macro_sql": "{% macro default__create_columns(relation, columns) %}\n {% for column in columns %}\n {% call statement() %}\n alter table {{ relation }} add column \"{{ column.name }}\" {{ column.data_type }};\n {% endcall %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.2162712, "supported_languages": null}, "macro.dbt.post_snapshot": {"name": "post_snapshot", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.post_snapshot", "macro_sql": "{% macro post_snapshot(staging_relation) %}\n {{ adapter.dispatch('post_snapshot', 'dbt')(staging_relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__post_snapshot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.2164228, "supported_languages": null}, "macro.dbt.default__post_snapshot": {"name": "default__post_snapshot", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__post_snapshot", "macro_sql": "{% macro default__post_snapshot(staging_relation) %}\n {# no-op #}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.216506, "supported_languages": null}, "macro.dbt.get_true_sql": {"name": "get_true_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.get_true_sql", "macro_sql": "{% macro get_true_sql() %}\n {{ adapter.dispatch('get_true_sql', 'dbt')() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_true_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.216641, "supported_languages": null}, "macro.dbt.default__get_true_sql": {"name": "default__get_true_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__get_true_sql", "macro_sql": "{% macro default__get_true_sql() %}\n {{ return('TRUE') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.216745, "supported_languages": null}, "macro.dbt.snapshot_staging_table": {"name": "snapshot_staging_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.snapshot_staging_table", "macro_sql": "{% macro snapshot_staging_table(strategy, source_sql, target_relation) -%}\n {{ adapter.dispatch('snapshot_staging_table', 'dbt')(strategy, source_sql, target_relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__snapshot_staging_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.216928, "supported_languages": null}, "macro.dbt.default__snapshot_staging_table": {"name": "default__snapshot_staging_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__snapshot_staging_table", "macro_sql": "{% macro default__snapshot_staging_table(strategy, source_sql, target_relation) -%}\n\n with snapshot_query as (\n\n {{ source_sql }}\n\n ),\n\n snapshotted_data as (\n\n select *,\n {{ strategy.unique_key }} as dbt_unique_key\n\n from {{ target_relation }}\n where dbt_valid_to is null\n\n ),\n\n insertions_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}) as dbt_valid_to,\n {{ strategy.scd_id }} as dbt_scd_id\n\n from snapshot_query\n ),\n\n updates_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n {{ strategy.updated_at }} as dbt_valid_to\n\n from snapshot_query\n ),\n\n {%- if strategy.invalidate_hard_deletes %}\n\n deletes_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key\n from snapshot_query\n ),\n {% endif %}\n\n insertions as (\n\n select\n 'insert' as dbt_change_type,\n source_data.*\n\n from insertions_source_data as source_data\n left outer join snapshotted_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where snapshotted_data.dbt_unique_key is null\n or (\n snapshotted_data.dbt_unique_key is not null\n and (\n {{ strategy.row_changed }}\n )\n )\n\n ),\n\n updates as (\n\n select\n 'update' as dbt_change_type,\n source_data.*,\n snapshotted_data.dbt_scd_id\n\n from updates_source_data as source_data\n join snapshotted_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where (\n {{ strategy.row_changed }}\n )\n )\n\n {%- if strategy.invalidate_hard_deletes -%}\n ,\n\n deletes as (\n\n select\n 'delete' as dbt_change_type,\n source_data.*,\n {{ snapshot_get_time() }} as dbt_valid_from,\n {{ snapshot_get_time() }} as dbt_updated_at,\n {{ snapshot_get_time() }} as dbt_valid_to,\n snapshotted_data.dbt_scd_id\n\n from snapshotted_data\n left join deletes_source_data as source_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where source_data.dbt_unique_key is null\n )\n {%- endif %}\n\n select * from insertions\n union all\n select * from updates\n {%- if strategy.invalidate_hard_deletes %}\n union all\n select * from deletes\n {%- endif %}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.217707, "supported_languages": null}, "macro.dbt.build_snapshot_table": {"name": "build_snapshot_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.build_snapshot_table", "macro_sql": "{% macro build_snapshot_table(strategy, sql) -%}\n {{ adapter.dispatch('build_snapshot_table', 'dbt')(strategy, sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__build_snapshot_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.217879, "supported_languages": null}, "macro.dbt.default__build_snapshot_table": {"name": "default__build_snapshot_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__build_snapshot_table", "macro_sql": "{% macro default__build_snapshot_table(strategy, sql) %}\n\n select *,\n {{ strategy.scd_id }} as dbt_scd_id,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}) as dbt_valid_to\n from (\n {{ sql }}\n ) sbq\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.2180989, "supported_languages": null}, "macro.dbt.build_snapshot_staging_table": {"name": "build_snapshot_staging_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.build_snapshot_staging_table", "macro_sql": "{% macro build_snapshot_staging_table(strategy, sql, target_relation) %}\n {% set temp_relation = make_temp_relation(target_relation) %}\n\n {% set select = snapshot_staging_table(strategy, sql, target_relation) %}\n\n {% call statement('build_snapshot_staging_relation') %}\n {{ create_table_as(True, temp_relation, select) }}\n {% endcall %}\n\n {% do return(temp_relation) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_temp_relation", "macro.dbt.snapshot_staging_table", "macro.dbt.statement", "macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.21848, "supported_languages": null}, "macro.dbt.materialization_snapshot_default": {"name": "materialization_snapshot_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/snapshot.sql", "original_file_path": "macros/materializations/snapshots/snapshot.sql", "unique_id": "macro.dbt.materialization_snapshot_default", "macro_sql": "{% materialization snapshot, default %}\n {%- set config = model['config'] -%}\n\n {%- set target_table = model.get('alias', model.get('name')) -%}\n\n {%- set strategy_name = config.get('strategy') -%}\n {%- set unique_key = config.get('unique_key') %}\n -- grab current tables grants config for comparision later on\n {%- set grant_config = config.get('grants') -%}\n\n {% set target_relation_exists, target_relation = get_or_create_relation(\n database=model.database,\n schema=model.schema,\n identifier=target_table,\n type='table') -%}\n\n {%- if not target_relation.is_table -%}\n {% do exceptions.relation_wrong_type(target_relation, 'table') %}\n {%- endif -%}\n\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set strategy_macro = strategy_dispatch(strategy_name) %}\n {% set strategy = strategy_macro(model, \"snapshotted_data\", \"source_data\", config, target_relation_exists) %}\n\n {% if not target_relation_exists %}\n\n {% set build_sql = build_snapshot_table(strategy, model['compiled_code']) %}\n {% set final_sql = create_table_as(False, target_relation, build_sql) %}\n\n {% else %}\n\n {{ adapter.valid_snapshot_target(target_relation) }}\n\n {% set staging_table = build_snapshot_staging_table(strategy, sql, target_relation) %}\n\n -- this may no-op if the database does not require column expansion\n {% do adapter.expand_target_column_types(from_relation=staging_table,\n to_relation=target_relation) %}\n\n {% set missing_columns = adapter.get_missing_columns(staging_table, target_relation)\n | rejectattr('name', 'equalto', 'dbt_change_type')\n | rejectattr('name', 'equalto', 'DBT_CHANGE_TYPE')\n | rejectattr('name', 'equalto', 'dbt_unique_key')\n | rejectattr('name', 'equalto', 'DBT_UNIQUE_KEY')\n | list %}\n\n {% do create_columns(target_relation, missing_columns) %}\n\n {% set source_columns = adapter.get_columns_in_relation(staging_table)\n | rejectattr('name', 'equalto', 'dbt_change_type')\n | rejectattr('name', 'equalto', 'DBT_CHANGE_TYPE')\n | rejectattr('name', 'equalto', 'dbt_unique_key')\n | rejectattr('name', 'equalto', 'DBT_UNIQUE_KEY')\n | list %}\n\n {% set quoted_source_columns = [] %}\n {% for column in source_columns %}\n {% do quoted_source_columns.append(adapter.quote(column.name)) %}\n {% endfor %}\n\n {% set final_sql = snapshot_merge_sql(\n target = target_relation,\n source = staging_table,\n insert_cols = quoted_source_columns\n )\n %}\n\n {% endif %}\n\n {% call statement('main') %}\n {{ final_sql }}\n {% endcall %}\n\n {% set should_revoke = should_revoke(target_relation_exists, full_refresh_mode=False) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if not target_relation_exists %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {% if staging_table is defined %}\n {% do post_snapshot(staging_table) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.get_or_create_relation", "macro.dbt.run_hooks", "macro.dbt.strategy_dispatch", "macro.dbt.build_snapshot_table", "macro.dbt.create_table_as", "macro.dbt.build_snapshot_staging_table", "macro.dbt.create_columns", "macro.dbt.snapshot_merge_sql", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes", "macro.dbt.post_snapshot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.223938, "supported_languages": ["sql"]}, "macro.dbt.materialization_test_default": {"name": "materialization_test_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/test.sql", "original_file_path": "macros/materializations/tests/test.sql", "unique_id": "macro.dbt.materialization_test_default", "macro_sql": "{%- materialization test, default -%}\n\n {% set relations = [] %}\n\n {% if should_store_failures() %}\n\n {% set identifier = model['alias'] %}\n {% set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) %}\n\n {% set store_failures_as = config.get('store_failures_as') %}\n -- if `--store-failures` is invoked via command line and `store_failures_as` is not set,\n -- config.get('store_failures_as', 'table') returns None, not 'table'\n {% if store_failures_as == none %}{% set store_failures_as = 'table' %}{% endif %}\n {% if store_failures_as not in ['table', 'view'] %}\n {{ exceptions.raise_compiler_error(\n \"'\" ~ store_failures_as ~ \"' is not a valid value for `store_failures_as`. \"\n \"Accepted values are: ['ephemeral', 'table', 'view']\"\n ) }}\n {% endif %}\n\n {% set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database, type=store_failures_as) -%} %}\n\n {% if old_relation %}\n {% do adapter.drop_relation(old_relation) %}\n {% endif %}\n\n {% call statement(auto_begin=True) %}\n {{ get_create_sql(target_relation, sql) }}\n {% endcall %}\n\n {% do relations.append(target_relation) %}\n\n {% set main_sql %}\n select *\n from {{ target_relation }}\n {% endset %}\n\n {{ adapter.commit() }}\n\n {% else %}\n\n {% set main_sql = sql %}\n\n {% endif %}\n\n {% set limit = config.get('limit') %}\n {% set fail_calc = config.get('fail_calc') %}\n {% set warn_if = config.get('warn_if') %}\n {% set error_if = config.get('error_if') %}\n\n {% call statement('main', fetch_result=True) -%}\n\n {{ get_test_sql(main_sql, fail_calc, warn_if, error_if, limit)}}\n\n {%- endcall %}\n\n {{ return({'relations': relations}) }}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.should_store_failures", "macro.dbt.statement", "macro.dbt.get_create_sql", "macro.dbt.get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.2263129, "supported_languages": ["sql"]}, "macro.dbt.get_test_sql": {"name": "get_test_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "unique_id": "macro.dbt.get_test_sql", "macro_sql": "{% macro get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}\n {{ adapter.dispatch('get_test_sql', 'dbt')(main_sql, fail_calc, warn_if, error_if, limit) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.2267258, "supported_languages": null}, "macro.dbt.default__get_test_sql": {"name": "default__get_test_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "unique_id": "macro.dbt.default__get_test_sql", "macro_sql": "{% macro default__get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}\n select\n {{ fail_calc }} as failures,\n {{ fail_calc }} {{ warn_if }} as should_warn,\n {{ fail_calc }} {{ error_if }} as should_error\n from (\n {{ main_sql }}\n {{ \"limit \" ~ limit if limit != none }}\n ) dbt_internal_test\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.2270012, "supported_languages": null}, "macro.dbt.get_where_subquery": {"name": "get_where_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "unique_id": "macro.dbt.get_where_subquery", "macro_sql": "{% macro get_where_subquery(relation) -%}\n {% do return(adapter.dispatch('get_where_subquery', 'dbt')(relation)) %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_where_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.227328, "supported_languages": null}, "macro.dbt.default__get_where_subquery": {"name": "default__get_where_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "unique_id": "macro.dbt.default__get_where_subquery", "macro_sql": "{% macro default__get_where_subquery(relation) -%}\n {% set where = config.get('where', '') %}\n {% if where %}\n {%- set filtered -%}\n (select * from {{ relation }} where {{ where }}) dbt_subquery\n {%- endset -%}\n {% do return(filtered) %}\n {%- else -%}\n {% do return(relation) %}\n {%- endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.227673, "supported_languages": null}, "macro.dbt.materialization_materialized_view_default": {"name": "materialization_materialized_view_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialization_materialized_view_default", "macro_sql": "{% materialization materialized_view, default %}\n {% set existing_relation = load_cached_relation(this) %}\n {% set target_relation = this.incorporate(type=this.MaterializedView) %}\n {% set intermediate_relation = make_intermediate_relation(target_relation) %}\n {% set backup_relation_type = target_relation.MaterializedView if existing_relation is none else existing_relation.type %}\n {% set backup_relation = make_backup_relation(target_relation, backup_relation_type) %}\n\n {{ materialized_view_setup(backup_relation, intermediate_relation, pre_hooks) }}\n\n {% set build_sql = materialized_view_get_build_sql(existing_relation, target_relation, backup_relation, intermediate_relation) %}\n\n {% if build_sql == '' %}\n {{ materialized_view_execute_no_op(target_relation) }}\n {% else %}\n {{ materialized_view_execute_build_sql(build_sql, existing_relation, target_relation, post_hooks) }}\n {% endif %}\n\n {{ materialized_view_teardown(backup_relation, intermediate_relation, post_hooks) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.materialized_view_setup", "macro.dbt.materialized_view_get_build_sql", "macro.dbt.materialized_view_execute_no_op", "macro.dbt.materialized_view_execute_build_sql", "macro.dbt.materialized_view_teardown"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.232142, "supported_languages": ["sql"]}, "macro.dbt.materialized_view_setup": {"name": "materialized_view_setup", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_setup", "macro_sql": "{% macro materialized_view_setup(backup_relation, intermediate_relation, pre_hooks) %}\n\n -- backup_relation and intermediate_relation should not already exist in the database\n -- it's possible these exist because of a previous run that exited unexpectedly\n {% set preexisting_backup_relation = load_cached_relation(backup_relation) %}\n {% set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) %}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.23255, "supported_languages": null}, "macro.dbt.materialized_view_teardown": {"name": "materialized_view_teardown", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_teardown", "macro_sql": "{% macro materialized_view_teardown(backup_relation, intermediate_relation, post_hooks) %}\n\n -- drop the temp relations if they exist to leave the database clean for the next run\n {{ drop_relation_if_exists(backup_relation) }}\n {{ drop_relation_if_exists(intermediate_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.232806, "supported_languages": null}, "macro.dbt.materialized_view_get_build_sql": {"name": "materialized_view_get_build_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_get_build_sql", "macro_sql": "{% macro materialized_view_get_build_sql(existing_relation, target_relation, backup_relation, intermediate_relation) %}\n\n {% set full_refresh_mode = should_full_refresh() %}\n\n -- determine the scenario we're in: create, full_refresh, alter, refresh data\n {% if existing_relation is none %}\n {% set build_sql = get_create_materialized_view_as_sql(target_relation, sql) %}\n {% elif full_refresh_mode or not existing_relation.is_materialized_view %}\n {% set build_sql = get_replace_sql(existing_relation, target_relation, sql) %}\n {% else %}\n\n -- get config options\n {% set on_configuration_change = config.get('on_configuration_change') %}\n {% set configuration_changes = get_materialized_view_configuration_changes(existing_relation, config) %}\n\n {% if configuration_changes is none %}\n {% set build_sql = refresh_materialized_view(target_relation) %}\n\n {% elif on_configuration_change == 'apply' %}\n {% set build_sql = get_alter_materialized_view_as_sql(target_relation, configuration_changes, sql, existing_relation, backup_relation, intermediate_relation) %}\n {% elif on_configuration_change == 'continue' %}\n {% set build_sql = '' %}\n {{ exceptions.warn(\"Configuration changes were identified and `on_configuration_change` was set to `continue` for `\" ~ target_relation ~ \"`\") }}\n {% elif on_configuration_change == 'fail' %}\n {{ exceptions.raise_fail_fast_error(\"Configuration changes were identified and `on_configuration_change` was set to `fail` for `\" ~ target_relation ~ \"`\") }}\n\n {% else %}\n -- this only happens if the user provides a value other than `apply`, 'skip', 'fail'\n {{ exceptions.raise_compiler_error(\"Unexpected configuration scenario\") }}\n\n {% endif %}\n\n {% endif %}\n\n {% do return(build_sql) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_full_refresh", "macro.dbt.get_create_materialized_view_as_sql", "macro.dbt.get_replace_sql", "macro.dbt.get_materialized_view_configuration_changes", "macro.dbt.refresh_materialized_view", "macro.dbt.get_alter_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.234144, "supported_languages": null}, "macro.dbt.materialized_view_execute_no_op": {"name": "materialized_view_execute_no_op", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_execute_no_op", "macro_sql": "{% macro materialized_view_execute_no_op(target_relation) %}\n {% do store_raw_result(\n name=\"main\",\n message=\"skip \" ~ target_relation,\n code=\"skip\",\n rows_affected=\"-1\"\n ) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.234389, "supported_languages": null}, "macro.dbt.materialized_view_execute_build_sql": {"name": "materialized_view_execute_build_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_execute_build_sql", "macro_sql": "{% macro materialized_view_execute_build_sql(build_sql, existing_relation, target_relation, post_hooks) %}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set grant_config = config.get('grants') %}\n\n {% call statement(name=\"main\") %}\n {{ build_sql }}\n {% endcall %}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.235025, "supported_languages": null}, "macro.dbt.materialization_view_default": {"name": "materialization_view_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/view.sql", "original_file_path": "macros/materializations/models/view.sql", "unique_id": "macro.dbt.materialization_view_default", "macro_sql": "{%- materialization view, default -%}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='view') -%}\n {%- set intermediate_relation = make_intermediate_relation(target_relation) -%}\n\n -- the intermediate_relation should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) -%}\n /*\n This relation (probably) doesn't exist yet. If it does exist, it's a leftover from\n a previous run, and we're going to try to drop it immediately. At the end of this\n materialization, we're going to rename the \"existing_relation\" to this identifier,\n and then we're going to drop it. In order to make sure we run the correct one of:\n - drop view ...\n - drop table ...\n\n We need to set the type of this relation to be the type of the existing_relation, if it exists,\n or else \"view\" as a sane default if it does not. Note that if the existing_relation does not\n exist, then there is nothing to move out of the way and subsequentally drop. In that case,\n this relation will be effectively unused.\n */\n {%- set backup_relation_type = 'view' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n -- as above, the backup_relation should not already exist\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_view_as_sql(intermediate_relation, sql) }}\n {%- endcall %}\n\n -- cleanup\n -- move the existing view out of the way\n {% if existing_relation is not none %}\n /* Do the equivalent of rename_if_exists. 'existing_relation' could have been dropped\n since the variable was first set. */\n {% set existing_relation = load_cached_relation(existing_relation) %}\n {% if existing_relation is not none %}\n {{ adapter.rename_relation(existing_relation, backup_relation) }}\n {% endif %}\n {% endif %}\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {{ drop_relation_if_exists(backup_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.run_hooks", "macro.dbt.drop_relation_if_exists", "macro.dbt.statement", "macro.dbt.get_create_view_as_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.237804, "supported_languages": ["sql"]}, "macro.dbt.materialization_table_default": {"name": "materialization_table_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table.sql", "original_file_path": "macros/materializations/models/table.sql", "unique_id": "macro.dbt.materialization_table_default", "macro_sql": "{% materialization table, default %}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='table') %}\n {%- set intermediate_relation = make_intermediate_relation(target_relation) -%}\n -- the intermediate_relation should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) -%}\n /*\n See ../view/view.sql for more information about this relation.\n */\n {%- set backup_relation_type = 'table' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n -- as above, the backup_relation should not already exist\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_table_as_sql(False, intermediate_relation, sql) }}\n {%- endcall %}\n\n -- cleanup\n {% if existing_relation is not none %}\n /* Do the equivalent of rename_if_exists. 'existing_relation' could have been dropped\n since the variable was first set. */\n {% set existing_relation = load_cached_relation(existing_relation) %}\n {% if existing_relation is not none %}\n {{ adapter.rename_relation(existing_relation, backup_relation) }}\n {% endif %}\n {% endif %}\n\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {% do create_indexes(target_relation) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n -- `COMMIT` happens here\n {{ adapter.commit() }}\n\n -- finally, drop the existing/backup relation after the commit\n {{ drop_relation_if_exists(backup_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.get_create_table_as_sql", "macro.dbt.create_indexes", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.240439, "supported_languages": ["sql"]}, "macro.dbt.get_quoted_csv": {"name": "get_quoted_csv", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.get_quoted_csv", "macro_sql": "{% macro get_quoted_csv(column_names) %}\n\n {% set quoted = [] %}\n {% for col in column_names -%}\n {%- do quoted.append(adapter.quote(col)) -%}\n {%- endfor %}\n\n {%- set dest_cols_csv = quoted | join(', ') -%}\n {{ return(dest_cols_csv) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.242014, "supported_languages": null}, "macro.dbt.diff_columns": {"name": "diff_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.diff_columns", "macro_sql": "{% macro diff_columns(source_columns, target_columns) %}\n\n {% set result = [] %}\n {% set source_names = source_columns | map(attribute = 'column') | list %}\n {% set target_names = target_columns | map(attribute = 'column') | list %}\n\n {# --check whether the name attribute exists in the target - this does not perform a data type check #}\n {% for sc in source_columns %}\n {% if sc.name not in target_names %}\n {{ result.append(sc) }}\n {% endif %}\n {% endfor %}\n\n {{ return(result) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.242559, "supported_languages": null}, "macro.dbt.diff_column_data_types": {"name": "diff_column_data_types", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.diff_column_data_types", "macro_sql": "{% macro diff_column_data_types(source_columns, target_columns) %}\n\n {% set result = [] %}\n {% for sc in source_columns %}\n {% set tc = target_columns | selectattr(\"name\", \"equalto\", sc.name) | list | first %}\n {% if tc %}\n {% if sc.data_type != tc.data_type and not sc.can_expand_to(other_column=tc) %}\n {{ result.append( { 'column_name': tc.name, 'new_type': sc.data_type } ) }}\n {% endif %}\n {% endif %}\n {% endfor %}\n\n {{ return(result) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.2433841, "supported_languages": null}, "macro.dbt.get_merge_update_columns": {"name": "get_merge_update_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.get_merge_update_columns", "macro_sql": "{% macro get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) %}\n {{ return(adapter.dispatch('get_merge_update_columns', 'dbt')(merge_update_columns, merge_exclude_columns, dest_columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_merge_update_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.243701, "supported_languages": null}, "macro.dbt.default__get_merge_update_columns": {"name": "default__get_merge_update_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.default__get_merge_update_columns", "macro_sql": "{% macro default__get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) %}\n {%- set default_cols = dest_columns | map(attribute=\"quoted\") | list -%}\n\n {%- if merge_update_columns and merge_exclude_columns -%}\n {{ exceptions.raise_compiler_error(\n 'Model cannot specify merge_update_columns and merge_exclude_columns. Please update model to use only one config'\n )}}\n {%- elif merge_update_columns -%}\n {%- set update_columns = merge_update_columns -%}\n {%- elif merge_exclude_columns -%}\n {%- set update_columns = [] -%}\n {%- for column in dest_columns -%}\n {% if column.column | lower not in merge_exclude_columns | map(\"lower\") | list %}\n {%- do update_columns.append(column.quoted) -%}\n {% endif %}\n {%- endfor -%}\n {%- else -%}\n {%- set update_columns = default_cols -%}\n {%- endif -%}\n\n {{ return(update_columns) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.244422, "supported_languages": null}, "macro.dbt.get_merge_sql": {"name": "get_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.get_merge_sql", "macro_sql": "{% macro get_merge_sql(target, source, unique_key, dest_columns, incremental_predicates=none) -%}\n -- back compat for old kwarg name\n {% set incremental_predicates = kwargs.get('predicates', incremental_predicates) %}\n {{ adapter.dispatch('get_merge_sql', 'dbt')(target, source, unique_key, dest_columns, incremental_predicates) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.249592, "supported_languages": null}, "macro.dbt.default__get_merge_sql": {"name": "default__get_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.default__get_merge_sql", "macro_sql": "{% macro default__get_merge_sql(target, source, unique_key, dest_columns, incremental_predicates=none) -%}\n {%- set predicates = [] if incremental_predicates is none else [] + incremental_predicates -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n {%- set merge_update_columns = config.get('merge_update_columns') -%}\n {%- set merge_exclude_columns = config.get('merge_exclude_columns') -%}\n {%- set update_columns = get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {% if unique_key %}\n {% if unique_key is sequence and unique_key is not mapping and unique_key is not string %}\n {% for key in unique_key %}\n {% set this_key_match %}\n DBT_INTERNAL_SOURCE.{{ key }} = DBT_INTERNAL_DEST.{{ key }}\n {% endset %}\n {% do predicates.append(this_key_match) %}\n {% endfor %}\n {% else %}\n {% set unique_key_match %}\n DBT_INTERNAL_SOURCE.{{ unique_key }} = DBT_INTERNAL_DEST.{{ unique_key }}\n {% endset %}\n {% do predicates.append(unique_key_match) %}\n {% endif %}\n {% else %}\n {% do predicates.append('FALSE') %}\n {% endif %}\n\n {{ sql_header if sql_header is not none }}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on {{\"(\" ~ predicates | join(\") and (\") ~ \")\"}}\n\n {% if unique_key %}\n when matched then update set\n {% for column_name in update_columns -%}\n {{ column_name }} = DBT_INTERNAL_SOURCE.{{ column_name }}\n {%- if not loop.last %}, {%- endif %}\n {%- endfor %}\n {% endif %}\n\n when not matched then insert\n ({{ dest_cols_csv }})\n values\n ({{ dest_cols_csv }})\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv", "macro.dbt.get_merge_update_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.251022, "supported_languages": null}, "macro.dbt.get_delete_insert_merge_sql": {"name": "get_delete_insert_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.get_delete_insert_merge_sql", "macro_sql": "{% macro get_delete_insert_merge_sql(target, source, unique_key, dest_columns, incremental_predicates) -%}\n {{ adapter.dispatch('get_delete_insert_merge_sql', 'dbt')(target, source, unique_key, dest_columns, incremental_predicates) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.2512598, "supported_languages": null}, "macro.dbt.default__get_delete_insert_merge_sql": {"name": "default__get_delete_insert_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.default__get_delete_insert_merge_sql", "macro_sql": "{% macro default__get_delete_insert_merge_sql(target, source, unique_key, dest_columns, incremental_predicates) -%}\n\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n {% if unique_key %}\n {% if unique_key is sequence and unique_key is not string %}\n delete from {{target }}\n using {{ source }}\n where (\n {% for key in unique_key %}\n {{ source }}.{{ key }} = {{ target }}.{{ key }}\n {{ \"and \" if not loop.last}}\n {% endfor %}\n {% if incremental_predicates %}\n {% for predicate in incremental_predicates %}\n and {{ predicate }}\n {% endfor %}\n {% endif %}\n );\n {% else %}\n delete from {{ target }}\n where (\n {{ unique_key }}) in (\n select ({{ unique_key }})\n from {{ source }}\n )\n {%- if incremental_predicates %}\n {% for predicate in incremental_predicates %}\n and {{ predicate }}\n {% endfor %}\n {%- endif -%};\n\n {% endif %}\n {% endif %}\n\n insert into {{ target }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ source }}\n )\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.252341, "supported_languages": null}, "macro.dbt.get_insert_overwrite_merge_sql": {"name": "get_insert_overwrite_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.get_insert_overwrite_merge_sql", "macro_sql": "{% macro get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header=false) -%}\n {{ adapter.dispatch('get_insert_overwrite_merge_sql', 'dbt')(target, source, dest_columns, predicates, include_sql_header) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.252645, "supported_languages": null}, "macro.dbt.default__get_insert_overwrite_merge_sql": {"name": "default__get_insert_overwrite_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.default__get_insert_overwrite_merge_sql", "macro_sql": "{% macro default__get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header) -%}\n {#-- The only time include_sql_header is True: --#}\n {#-- BigQuery + insert_overwrite strategy + \"static\" partitions config --#}\n {#-- We should consider including the sql header at the materialization level instead --#}\n\n {%- set predicates = [] if predicates is none else [] + predicates -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none and include_sql_header }}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on FALSE\n\n when not matched by source\n {% if predicates %} and {{ predicates | join(' and ') }} {% endif %}\n then delete\n\n when not matched then insert\n ({{ dest_cols_csv }})\n values\n ({{ dest_cols_csv }})\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.253262, "supported_languages": null}, "macro.dbt.is_incremental": {"name": "is_incremental", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/is_incremental.sql", "original_file_path": "macros/materializations/models/incremental/is_incremental.sql", "unique_id": "macro.dbt.is_incremental", "macro_sql": "{% macro is_incremental() %}\n {#-- do not run introspective queries in parsing #}\n {% if not execute %}\n {{ return(False) }}\n {% else %}\n {% set relation = adapter.get_relation(this.database, this.schema, this.table) %}\n {{ return(relation is not none\n and relation.type == 'table'\n and model.config.materialized == 'incremental'\n and not should_full_refresh()) }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_full_refresh"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.253883, "supported_languages": null}, "macro.dbt.get_incremental_append_sql": {"name": "get_incremental_append_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_append_sql", "macro_sql": "{% macro get_incremental_append_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_append_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.2546911, "supported_languages": null}, "macro.dbt.default__get_incremental_append_sql": {"name": "default__get_incremental_append_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_append_sql", "macro_sql": "{% macro default__get_incremental_append_sql(arg_dict) %}\n\n {% do return(get_insert_into_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"dest_columns\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_insert_into_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.254922, "supported_languages": null}, "macro.dbt.get_incremental_delete_insert_sql": {"name": "get_incremental_delete_insert_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_delete_insert_sql", "macro_sql": "{% macro get_incremental_delete_insert_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_delete_insert_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_delete_insert_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.255106, "supported_languages": null}, "macro.dbt.default__get_incremental_delete_insert_sql": {"name": "default__get_incremental_delete_insert_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_delete_insert_sql", "macro_sql": "{% macro default__get_incremental_delete_insert_sql(arg_dict) %}\n\n {% do return(get_delete_insert_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"unique_key\"], arg_dict[\"dest_columns\"], arg_dict[\"incremental_predicates\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.2553868, "supported_languages": null}, "macro.dbt.get_incremental_merge_sql": {"name": "get_incremental_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_merge_sql", "macro_sql": "{% macro get_incremental_merge_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_merge_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.255681, "supported_languages": null}, "macro.dbt.default__get_incremental_merge_sql": {"name": "default__get_incremental_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_merge_sql", "macro_sql": "{% macro default__get_incremental_merge_sql(arg_dict) %}\n\n {% do return(get_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"unique_key\"], arg_dict[\"dest_columns\"], arg_dict[\"incremental_predicates\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.2559512, "supported_languages": null}, "macro.dbt.get_incremental_insert_overwrite_sql": {"name": "get_incremental_insert_overwrite_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_insert_overwrite_sql", "macro_sql": "{% macro get_incremental_insert_overwrite_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_insert_overwrite_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_insert_overwrite_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.256128, "supported_languages": null}, "macro.dbt.default__get_incremental_insert_overwrite_sql": {"name": "default__get_incremental_insert_overwrite_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_insert_overwrite_sql", "macro_sql": "{% macro default__get_incremental_insert_overwrite_sql(arg_dict) %}\n\n {% do return(get_insert_overwrite_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"dest_columns\"], arg_dict[\"incremental_predicates\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.2563698, "supported_languages": null}, "macro.dbt.get_incremental_default_sql": {"name": "get_incremental_default_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_default_sql", "macro_sql": "{% macro get_incremental_default_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_default_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_incremental_default_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.256542, "supported_languages": null}, "macro.dbt.default__get_incremental_default_sql": {"name": "default__get_incremental_default_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_default_sql", "macro_sql": "{% macro default__get_incremental_default_sql(arg_dict) %}\n\n {% do return(get_incremental_append_sql(arg_dict)) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.256688, "supported_languages": null}, "macro.dbt.get_insert_into_sql": {"name": "get_insert_into_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_insert_into_sql", "macro_sql": "{% macro get_insert_into_sql(target_relation, temp_relation, dest_columns) %}\n\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n insert into {{ target_relation }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ temp_relation }}\n )\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.256942, "supported_languages": null}, "macro.dbt.materialization_incremental_default": {"name": "materialization_incremental_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/incremental.sql", "original_file_path": "macros/materializations/models/incremental/incremental.sql", "unique_id": "macro.dbt.materialization_incremental_default", "macro_sql": "{% materialization incremental, default -%}\n\n -- relations\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='table') -%}\n {%- set temp_relation = make_temp_relation(target_relation)-%}\n {%- set intermediate_relation = make_intermediate_relation(target_relation)-%}\n {%- set backup_relation_type = 'table' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n\n -- configs\n {%- set unique_key = config.get('unique_key') -%}\n {%- set full_refresh_mode = (should_full_refresh() or existing_relation.is_view) -%}\n {%- set on_schema_change = incremental_validate_on_schema_change(config.get('on_schema_change'), default='ignore') -%}\n\n -- the temp_ and backup_ relations should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation. This has to happen before\n -- BEGIN, in a separate transaction\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation)-%}\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set to_drop = [] %}\n\n {% if existing_relation is none %}\n {% set build_sql = get_create_table_as_sql(False, target_relation, sql) %}\n {% elif full_refresh_mode %}\n {% set build_sql = get_create_table_as_sql(False, intermediate_relation, sql) %}\n {% set need_swap = true %}\n {% else %}\n {% do run_query(get_create_table_as_sql(True, temp_relation, sql)) %}\n {% do adapter.expand_target_column_types(\n from_relation=temp_relation,\n to_relation=target_relation) %}\n {#-- Process schema changes. Returns dict of changes if successful. Use source columns for upserting/merging --#}\n {% set dest_columns = process_schema_changes(on_schema_change, temp_relation, existing_relation) %}\n {% if not dest_columns %}\n {% set dest_columns = adapter.get_columns_in_relation(existing_relation) %}\n {% endif %}\n\n {#-- Get the incremental_strategy, the macro to use for the strategy, and build the sql --#}\n {% set incremental_strategy = config.get('incremental_strategy') or 'default' %}\n {% set incremental_predicates = config.get('predicates', none) or config.get('incremental_predicates', none) %}\n {% set strategy_sql_macro_func = adapter.get_incremental_strategy_macro(context, incremental_strategy) %}\n {% set strategy_arg_dict = ({'target_relation': target_relation, 'temp_relation': temp_relation, 'unique_key': unique_key, 'dest_columns': dest_columns, 'incremental_predicates': incremental_predicates }) %}\n {% set build_sql = strategy_sql_macro_func(strategy_arg_dict) %}\n\n {% endif %}\n\n {% call statement(\"main\") %}\n {{ build_sql }}\n {% endcall %}\n\n {% if need_swap %}\n {% do adapter.rename_relation(target_relation, backup_relation) %}\n {% do adapter.rename_relation(intermediate_relation, target_relation) %}\n {% do to_drop.append(backup_relation) %}\n {% endif %}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if existing_relation is none or existing_relation.is_view or should_full_refresh() %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n -- `COMMIT` happens here\n {% do adapter.commit() %}\n\n {% for rel in to_drop %}\n {% do adapter.drop_relation(rel) %}\n {% endfor %}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_temp_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.should_full_refresh", "macro.dbt.incremental_validate_on_schema_change", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks", "macro.dbt.get_create_table_as_sql", "macro.dbt.run_query", "macro.dbt.process_schema_changes", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.2616751, "supported_languages": ["sql"]}, "macro.dbt.incremental_validate_on_schema_change": {"name": "incremental_validate_on_schema_change", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.incremental_validate_on_schema_change", "macro_sql": "{% macro incremental_validate_on_schema_change(on_schema_change, default='ignore') %}\n\n {% if on_schema_change not in ['sync_all_columns', 'append_new_columns', 'fail', 'ignore'] %}\n\n {% set log_message = 'Invalid value for on_schema_change (%s) specified. Setting default value of %s.' % (on_schema_change, default) %}\n {% do log(log_message) %}\n\n {{ return(default) }}\n\n {% else %}\n\n {{ return(on_schema_change) }}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.26656, "supported_languages": null}, "macro.dbt.check_for_schema_changes": {"name": "check_for_schema_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.check_for_schema_changes", "macro_sql": "{% macro check_for_schema_changes(source_relation, target_relation) %}\n\n {% set schema_changed = False %}\n\n {%- set source_columns = adapter.get_columns_in_relation(source_relation) -%}\n {%- set target_columns = adapter.get_columns_in_relation(target_relation) -%}\n {%- set source_not_in_target = diff_columns(source_columns, target_columns) -%}\n {%- set target_not_in_source = diff_columns(target_columns, source_columns) -%}\n\n {% set new_target_types = diff_column_data_types(source_columns, target_columns) %}\n\n {% if source_not_in_target != [] %}\n {% set schema_changed = True %}\n {% elif target_not_in_source != [] or new_target_types != [] %}\n {% set schema_changed = True %}\n {% elif new_target_types != [] %}\n {% set schema_changed = True %}\n {% endif %}\n\n {% set changes_dict = {\n 'schema_changed': schema_changed,\n 'source_not_in_target': source_not_in_target,\n 'target_not_in_source': target_not_in_source,\n 'source_columns': source_columns,\n 'target_columns': target_columns,\n 'new_target_types': new_target_types\n } %}\n\n {% set msg %}\n In {{ target_relation }}:\n Schema changed: {{ schema_changed }}\n Source columns not in target: {{ source_not_in_target }}\n Target columns not in source: {{ target_not_in_source }}\n New column types: {{ new_target_types }}\n {% endset %}\n\n {% do log(msg) %}\n\n {{ return(changes_dict) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.diff_columns", "macro.dbt.diff_column_data_types"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.2677498, "supported_languages": null}, "macro.dbt.sync_column_schemas": {"name": "sync_column_schemas", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.sync_column_schemas", "macro_sql": "{% macro sync_column_schemas(on_schema_change, target_relation, schema_changes_dict) %}\n\n {%- set add_to_target_arr = schema_changes_dict['source_not_in_target'] -%}\n\n {%- if on_schema_change == 'append_new_columns'-%}\n {%- if add_to_target_arr | length > 0 -%}\n {%- do alter_relation_add_remove_columns(target_relation, add_to_target_arr, none) -%}\n {%- endif -%}\n\n {% elif on_schema_change == 'sync_all_columns' %}\n {%- set remove_from_target_arr = schema_changes_dict['target_not_in_source'] -%}\n {%- set new_target_types = schema_changes_dict['new_target_types'] -%}\n\n {% if add_to_target_arr | length > 0 or remove_from_target_arr | length > 0 %}\n {%- do alter_relation_add_remove_columns(target_relation, add_to_target_arr, remove_from_target_arr) -%}\n {% endif %}\n\n {% if new_target_types != [] %}\n {% for ntt in new_target_types %}\n {% set column_name = ntt['column_name'] %}\n {% set new_type = ntt['new_type'] %}\n {% do alter_column_type(target_relation, column_name, new_type) %}\n {% endfor %}\n {% endif %}\n\n {% endif %}\n\n {% set schema_change_message %}\n In {{ target_relation }}:\n Schema change approach: {{ on_schema_change }}\n Columns added: {{ add_to_target_arr }}\n Columns removed: {{ remove_from_target_arr }}\n Data types changed: {{ new_target_types }}\n {% endset %}\n\n {% do log(schema_change_message) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.alter_relation_add_remove_columns", "macro.dbt.alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.268832, "supported_languages": null}, "macro.dbt.process_schema_changes": {"name": "process_schema_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.process_schema_changes", "macro_sql": "{% macro process_schema_changes(on_schema_change, source_relation, target_relation) %}\n\n {% if on_schema_change == 'ignore' %}\n\n {{ return({}) }}\n\n {% else %}\n\n {% set schema_changes_dict = check_for_schema_changes(source_relation, target_relation) %}\n\n {% if schema_changes_dict['schema_changed'] %}\n\n {% if on_schema_change == 'fail' %}\n\n {% set fail_msg %}\n The source and target schemas on this incremental model are out of sync!\n They can be reconciled in several ways:\n - set the `on_schema_change` config to either append_new_columns or sync_all_columns, depending on your situation.\n - Re-run the incremental model with `full_refresh: True` to update the target schema.\n - update the schema manually and re-run the process.\n\n Additional troubleshooting context:\n Source columns not in target: {{ schema_changes_dict['source_not_in_target'] }}\n Target columns not in source: {{ schema_changes_dict['target_not_in_source'] }}\n New column types: {{ schema_changes_dict['new_target_types'] }}\n {% endset %}\n\n {% do exceptions.raise_compiler_error(fail_msg) %}\n\n {# -- unless we ignore, run the sync operation per the config #}\n {% else %}\n\n {% do sync_column_schemas(on_schema_change, target_relation, schema_changes_dict) %}\n\n {% endif %}\n\n {% endif %}\n\n {{ return(schema_changes_dict['source_columns']) }}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.check_for_schema_changes", "macro.dbt.sync_column_schemas"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.269591, "supported_languages": null}, "macro.dbt.can_clone_table": {"name": "can_clone_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/can_clone_table.sql", "original_file_path": "macros/materializations/models/clone/can_clone_table.sql", "unique_id": "macro.dbt.can_clone_table", "macro_sql": "{% macro can_clone_table() %}\n {{ return(adapter.dispatch('can_clone_table', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__can_clone_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.269832, "supported_languages": null}, "macro.dbt.default__can_clone_table": {"name": "default__can_clone_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/can_clone_table.sql", "original_file_path": "macros/materializations/models/clone/can_clone_table.sql", "unique_id": "macro.dbt.default__can_clone_table", "macro_sql": "{% macro default__can_clone_table() %}\n {{ return(False) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.269942, "supported_languages": null}, "macro.dbt.create_or_replace_clone": {"name": "create_or_replace_clone", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/create_or_replace_clone.sql", "original_file_path": "macros/materializations/models/clone/create_or_replace_clone.sql", "unique_id": "macro.dbt.create_or_replace_clone", "macro_sql": "{% macro create_or_replace_clone(this_relation, defer_relation) %}\n {{ return(adapter.dispatch('create_or_replace_clone', 'dbt')(this_relation, defer_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_or_replace_clone"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.270207, "supported_languages": null}, "macro.dbt.default__create_or_replace_clone": {"name": "default__create_or_replace_clone", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/create_or_replace_clone.sql", "original_file_path": "macros/materializations/models/clone/create_or_replace_clone.sql", "unique_id": "macro.dbt.default__create_or_replace_clone", "macro_sql": "{% macro default__create_or_replace_clone(this_relation, defer_relation) %}\n create or replace table {{ this_relation }} clone {{ defer_relation }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.2703319, "supported_languages": null}, "macro.dbt.materialization_clone_default": {"name": "materialization_clone_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/clone.sql", "original_file_path": "macros/materializations/models/clone/clone.sql", "unique_id": "macro.dbt.materialization_clone_default", "macro_sql": "{%- materialization clone, default -%}\n\n {%- set relations = {'relations': []} -%}\n\n {%- if not defer_relation -%}\n -- nothing to do\n {{ log(\"No relation found in state manifest for \" ~ model.unique_id, info=True) }}\n {{ return(relations) }}\n {%- endif -%}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n\n {%- if existing_relation and not flags.FULL_REFRESH -%}\n -- noop!\n {{ log(\"Relation \" ~ existing_relation ~ \" already exists\", info=True) }}\n {{ return(relations) }}\n {%- endif -%}\n\n {%- set other_existing_relation = load_cached_relation(defer_relation) -%}\n\n -- If this is a database that can do zero-copy cloning of tables, and the other relation is a table, then this will be a table\n -- Otherwise, this will be a view\n\n {% set can_clone_table = can_clone_table() %}\n\n {%- if other_existing_relation and other_existing_relation.type == 'table' and can_clone_table -%}\n\n {%- set target_relation = this.incorporate(type='table') -%}\n {% if existing_relation is not none and not existing_relation.is_table %}\n {{ log(\"Dropping relation \" ~ existing_relation ~ \" because it is of type \" ~ existing_relation.type) }}\n {{ drop_relation_if_exists(existing_relation) }}\n {% endif %}\n\n -- as a general rule, data platforms that can clone tables can also do atomic 'create or replace'\n {% call statement('main') %}\n {% if target_relation and defer_relation and target_relation == defer_relation %}\n {{ log(\"Target relation and defer relation are the same, skipping clone for relation: \" ~ target_relation) }}\n {% else %}\n {{ create_or_replace_clone(target_relation, defer_relation) }}\n {% endif %}\n\n {% endcall %}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n {% do persist_docs(target_relation, model) %}\n\n {{ return({'relations': [target_relation]}) }}\n\n {%- else -%}\n\n {%- set target_relation = this.incorporate(type='view') -%}\n\n -- reuse the view materialization\n -- TODO: support actual dispatch for materialization macros\n -- Tracking ticket: https://github.com/dbt-labs/dbt-core/issues/7799\n {% set search_name = \"materialization_view_\" ~ adapter.type() %}\n {% if not search_name in context %}\n {% set search_name = \"materialization_view_default\" %}\n {% endif %}\n {% set materialization_macro = context[search_name] %}\n {% set relations = materialization_macro() %}\n {{ return(relations) }}\n\n {%- endif -%}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.can_clone_table", "macro.dbt.drop_relation_if_exists", "macro.dbt.statement", "macro.dbt.create_or_replace_clone", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.273463, "supported_languages": ["sql"]}, "macro.dbt.materialization_seed_default": {"name": "materialization_seed_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/seed.sql", "original_file_path": "macros/materializations/seeds/seed.sql", "unique_id": "macro.dbt.materialization_seed_default", "macro_sql": "{% materialization seed, default %}\n\n {%- set identifier = model['alias'] -%}\n {%- set full_refresh_mode = (should_full_refresh()) -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n\n {%- set exists_as_table = (old_relation is not none and old_relation.is_table) -%}\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {%- set grant_config = config.get('grants') -%}\n {%- set agate_table = load_agate_table() -%}\n -- grab current tables grants config for comparison later on\n\n {%- do store_result('agate_table', response='OK', agate_table=agate_table) -%}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% set create_table_sql = \"\" %}\n {% if exists_as_view %}\n {{ exceptions.raise_compiler_error(\"Cannot seed to '{}', it is a view\".format(old_relation)) }}\n {% elif exists_as_table %}\n {% set create_table_sql = reset_csv_table(model, full_refresh_mode, old_relation, agate_table) %}\n {% else %}\n {% set create_table_sql = create_csv_table(model, agate_table) %}\n {% endif %}\n\n {% set code = 'CREATE' if full_refresh_mode else 'INSERT' %}\n {% set rows_affected = (agate_table.rows | length) %}\n {% set sql = load_csv_rows(model, agate_table) %}\n\n {% call noop_statement('main', code ~ ' ' ~ rows_affected, code, rows_affected) %}\n {{ get_csv_sql(create_table_sql, sql) }};\n {% endcall %}\n\n {% set target_relation = this.incorporate(type='table') %}\n\n {% set should_revoke = should_revoke(old_relation, full_refresh_mode) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if full_refresh_mode or not exists_as_table %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n -- `COMMIT` happens here\n {{ adapter.commit() }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.should_full_refresh", "macro.dbt.run_hooks", "macro.dbt.reset_csv_table", "macro.dbt.create_csv_table", "macro.dbt.load_csv_rows", "macro.dbt.noop_statement", "macro.dbt.get_csv_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.2762592, "supported_languages": ["sql"]}, "macro.dbt.create_csv_table": {"name": "create_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.create_csv_table", "macro_sql": "{% macro create_csv_table(model, agate_table) -%}\n {{ adapter.dispatch('create_csv_table', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.280721, "supported_languages": null}, "macro.dbt.default__create_csv_table": {"name": "default__create_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__create_csv_table", "macro_sql": "{% macro default__create_csv_table(model, agate_table) %}\n {%- set column_override = model['config'].get('column_types', {}) -%}\n {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n\n {% set sql %}\n create table {{ this.render() }} (\n {%- for col_name in agate_table.column_names -%}\n {%- set inferred_type = adapter.convert_type(agate_table, loop.index0) -%}\n {%- set type = column_override.get(col_name, inferred_type) -%}\n {%- set column_name = (col_name | string) -%}\n {{ adapter.quote_seed_column(column_name, quote_seed_column) }} {{ type }} {%- if not loop.last -%}, {%- endif -%}\n {%- endfor -%}\n )\n {% endset %}\n\n {% call statement('_') -%}\n {{ sql }}\n {%- endcall %}\n\n {{ return(sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.2815979, "supported_languages": null}, "macro.dbt.reset_csv_table": {"name": "reset_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.reset_csv_table", "macro_sql": "{% macro reset_csv_table(model, full_refresh, old_relation, agate_table) -%}\n {{ adapter.dispatch('reset_csv_table', 'dbt')(model, full_refresh, old_relation, agate_table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__reset_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.281836, "supported_languages": null}, "macro.dbt.default__reset_csv_table": {"name": "default__reset_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__reset_csv_table", "macro_sql": "{% macro default__reset_csv_table(model, full_refresh, old_relation, agate_table) %}\n {% set sql = \"\" %}\n {% if full_refresh %}\n {{ adapter.drop_relation(old_relation) }}\n {% set sql = create_csv_table(model, agate_table) %}\n {% else %}\n {{ adapter.truncate_relation(old_relation) }}\n {% set sql = \"truncate table \" ~ old_relation %}\n {% endif %}\n\n {{ return(sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.2822568, "supported_languages": null}, "macro.dbt.get_csv_sql": {"name": "get_csv_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_csv_sql", "macro_sql": "{% macro get_csv_sql(create_or_truncate_sql, insert_sql) %}\n {{ adapter.dispatch('get_csv_sql', 'dbt')(create_or_truncate_sql, insert_sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_csv_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.282432, "supported_languages": null}, "macro.dbt.default__get_csv_sql": {"name": "default__get_csv_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__get_csv_sql", "macro_sql": "{% macro default__get_csv_sql(create_or_truncate_sql, insert_sql) %}\n {{ create_or_truncate_sql }};\n -- dbt seed --\n {{ insert_sql }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.282593, "supported_languages": null}, "macro.dbt.get_binding_char": {"name": "get_binding_char", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_binding_char", "macro_sql": "{% macro get_binding_char() -%}\n {{ adapter.dispatch('get_binding_char', 'dbt')() }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.282754, "supported_languages": null}, "macro.dbt.default__get_binding_char": {"name": "default__get_binding_char", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__get_binding_char", "macro_sql": "{% macro default__get_binding_char() %}\n {{ return('%s') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.282869, "supported_languages": null}, "macro.dbt.get_batch_size": {"name": "get_batch_size", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_batch_size", "macro_sql": "{% macro get_batch_size() -%}\n {{ return(adapter.dispatch('get_batch_size', 'dbt')()) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_batch_size"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.283036, "supported_languages": null}, "macro.dbt.default__get_batch_size": {"name": "default__get_batch_size", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__get_batch_size", "macro_sql": "{% macro default__get_batch_size() %}\n {{ return(10000) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.2831511, "supported_languages": null}, "macro.dbt.get_seed_column_quoted_csv": {"name": "get_seed_column_quoted_csv", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_seed_column_quoted_csv", "macro_sql": "{% macro get_seed_column_quoted_csv(model, column_names) %}\n {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n {% set quoted = [] %}\n {% for col in column_names -%}\n {%- do quoted.append(adapter.quote_seed_column(col, quote_seed_column)) -%}\n {%- endfor %}\n\n {%- set dest_cols_csv = quoted | join(', ') -%}\n {{ return(dest_cols_csv) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.283625, "supported_languages": null}, "macro.dbt.load_csv_rows": {"name": "load_csv_rows", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.load_csv_rows", "macro_sql": "{% macro load_csv_rows(model, agate_table) -%}\n {{ adapter.dispatch('load_csv_rows', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__load_csv_rows"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.2838101, "supported_languages": null}, "macro.dbt.default__load_csv_rows": {"name": "default__load_csv_rows", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__load_csv_rows", "macro_sql": "{% macro default__load_csv_rows(model, agate_table) %}\n\n {% set batch_size = get_batch_size() %}\n\n {% set cols_sql = get_seed_column_quoted_csv(model, agate_table.column_names) %}\n {% set bindings = [] %}\n\n {% set statements = [] %}\n\n {% for chunk in agate_table.rows | batch(batch_size) %}\n {% set bindings = [] %}\n\n {% for row in chunk %}\n {% do bindings.extend(row) %}\n {% endfor %}\n\n {% set sql %}\n insert into {{ this.render() }} ({{ cols_sql }}) values\n {% for row in chunk -%}\n ({%- for column in agate_table.column_names -%}\n {{ get_binding_char() }}\n {%- if not loop.last%},{%- endif %}\n {%- endfor -%})\n {%- if not loop.last%},{%- endif %}\n {%- endfor %}\n {% endset %}\n\n {% do adapter.add_query(sql, bindings=bindings, abridge_sql_log=True) %}\n\n {% if loop.index0 == 0 %}\n {% do statements.append(sql) %}\n {% endif %}\n {% endfor %}\n\n {# Return SQL so we can render it out into the compiled files #}\n {{ return(statements[0]) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_batch_size", "macro.dbt.get_seed_column_quoted_csv", "macro.dbt.get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.285082, "supported_languages": null}, "macro.dbt.generate_alias_name": {"name": "generate_alias_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "unique_id": "macro.dbt.generate_alias_name", "macro_sql": "{% macro generate_alias_name(custom_alias_name=none, node=none) -%}\n {% do return(adapter.dispatch('generate_alias_name', 'dbt')(custom_alias_name, node)) %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_alias_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.2854872, "supported_languages": null}, "macro.dbt.default__generate_alias_name": {"name": "default__generate_alias_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "unique_id": "macro.dbt.default__generate_alias_name", "macro_sql": "{% macro default__generate_alias_name(custom_alias_name=none, node=none) -%}\n\n {%- if custom_alias_name -%}\n\n {{ custom_alias_name | trim }}\n\n {%- elif node.version -%}\n\n {{ return(node.name ~ \"_v\" ~ (node.version | replace(\".\", \"_\"))) }}\n\n {%- else -%}\n\n {{ node.name }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.285825, "supported_languages": null}, "macro.dbt.generate_schema_name": {"name": "generate_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "unique_id": "macro.dbt.generate_schema_name", "macro_sql": "{% macro generate_schema_name(custom_schema_name=none, node=none) -%}\n {{ return(adapter.dispatch('generate_schema_name', 'dbt')(custom_schema_name, node)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.2862961, "supported_languages": null}, "macro.dbt.default__generate_schema_name": {"name": "default__generate_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "unique_id": "macro.dbt.default__generate_schema_name", "macro_sql": "{% macro default__generate_schema_name(custom_schema_name, node) -%}\n\n {%- set default_schema = target.schema -%}\n {%- if custom_schema_name is none -%}\n\n {{ default_schema }}\n\n {%- else -%}\n\n {{ default_schema }}_{{ custom_schema_name | trim }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.286531, "supported_languages": null}, "macro.dbt.generate_schema_name_for_env": {"name": "generate_schema_name_for_env", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "unique_id": "macro.dbt.generate_schema_name_for_env", "macro_sql": "{% macro generate_schema_name_for_env(custom_schema_name, node) -%}\n\n {%- set default_schema = target.schema -%}\n {%- if target.name == 'prod' and custom_schema_name is not none -%}\n\n {{ custom_schema_name | trim }}\n\n {%- else -%}\n\n {{ default_schema }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.28691, "supported_languages": null}, "macro.dbt.generate_database_name": {"name": "generate_database_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "unique_id": "macro.dbt.generate_database_name", "macro_sql": "{% macro generate_database_name(custom_database_name=none, node=none) -%}\n {% do return(adapter.dispatch('generate_database_name', 'dbt')(custom_database_name, node)) %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_database_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.287346, "supported_languages": null}, "macro.dbt.default__generate_database_name": {"name": "default__generate_database_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "unique_id": "macro.dbt.default__generate_database_name", "macro_sql": "{% macro default__generate_database_name(custom_database_name=none, node=none) -%}\n {%- set default_database = target.database -%}\n {%- if custom_database_name is none -%}\n\n {{ default_database }}\n\n {%- else -%}\n\n {{ custom_database_name }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.287595, "supported_languages": null}, "macro.dbt.get_drop_sql": {"name": "get_drop_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.get_drop_sql", "macro_sql": "{%- macro get_drop_sql(relation) -%}\n {{- log('Applying DROP to: ' ~ relation) -}}\n {{- adapter.dispatch('get_drop_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_drop_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.288234, "supported_languages": null}, "macro.dbt.default__get_drop_sql": {"name": "default__get_drop_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.default__get_drop_sql", "macro_sql": "{%- macro default__get_drop_sql(relation) -%}\n\n {%- if relation.is_view -%}\n {{ drop_view(relation) }}\n\n {%- elif relation.is_table -%}\n {{ drop_table(relation) }}\n\n {%- elif relation.is_materialized_view -%}\n {{ drop_materialized_view(relation) }}\n\n {%- else -%}\n drop {{ relation.type }} if exists {{ relation }} cascade\n\n {%- endif -%}\n\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.drop_view", "macro.dbt.drop_table", "macro.dbt.drop_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.288604, "supported_languages": null}, "macro.dbt.drop_relation": {"name": "drop_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.drop_relation", "macro_sql": "{% macro drop_relation(relation) -%}\n {{ return(adapter.dispatch('drop_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__drop_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.288785, "supported_languages": null}, "macro.dbt.default__drop_relation": {"name": "default__drop_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.default__drop_relation", "macro_sql": "{% macro default__drop_relation(relation) -%}\n {% call statement('drop_relation', auto_begin=False) -%}\n {{ get_drop_sql(relation) }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.get_drop_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.2889721, "supported_languages": null}, "macro.dbt.drop_relation_if_exists": {"name": "drop_relation_if_exists", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.drop_relation_if_exists", "macro_sql": "{% macro drop_relation_if_exists(relation) %}\n {% if relation is not none %}\n {{ adapter.drop_relation(relation) }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.289163, "supported_languages": null}, "macro.dbt.get_replace_sql": {"name": "get_replace_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/replace.sql", "original_file_path": "macros/relations/replace.sql", "unique_id": "macro.dbt.get_replace_sql", "macro_sql": "{% macro get_replace_sql(existing_relation, target_relation, sql) %}\n {{- log('Applying REPLACE to: ' ~ existing_relation) -}}\n {{- adapter.dispatch('get_replace_sql', 'dbt')(existing_relation, target_relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_replace_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.289911, "supported_languages": null}, "macro.dbt.default__get_replace_sql": {"name": "default__get_replace_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/replace.sql", "original_file_path": "macros/relations/replace.sql", "unique_id": "macro.dbt.default__get_replace_sql", "macro_sql": "{% macro default__get_replace_sql(existing_relation, target_relation, sql) %}\n\n {# /* use a create or replace statement if possible */ #}\n\n {% set is_replaceable = existing_relation.type == target_relation_type and existing_relation.can_be_replaced %}\n\n {% if is_replaceable and existing_relation.is_view %}\n {{ get_replace_view_sql(target_relation, sql) }}\n\n {% elif is_replaceable and existing_relation.is_table %}\n {{ get_replace_table_sql(target_relation, sql) }}\n\n {% elif is_replaceable and existing_relation.is_materialized_view %}\n {{ get_replace_materialized_view_sql(target_relation, sql) }}\n\n {# /* a create or replace statement is not possible, so try to stage and/or backup to be safe */ #}\n\n {# /* create target_relation as an intermediate relation, then swap it out with the existing one using a backup */ #}\n {%- elif target_relation.can_be_renamed and existing_relation.can_be_renamed -%}\n {{ get_create_intermediate_sql(target_relation, sql) }};\n {{ get_create_backup_sql(existing_relation) }};\n {{ get_rename_intermediate_sql(target_relation) }};\n {{ get_drop_backup_sql(existing_relation) }}\n\n {# /* create target_relation as an intermediate relation, then swap it out with the existing one without using a backup */ #}\n {%- elif target_relation.can_be_renamed -%}\n {{ get_create_intermediate_sql(target_relation, sql) }};\n {{ get_drop_sql(existing_relation) }};\n {{ get_rename_intermediate_sql(target_relation) }}\n\n {# /* create target_relation in place by first backing up the existing relation */ #}\n {%- elif existing_relation.can_be_renamed -%}\n {{ get_create_backup_sql(existing_relation) }};\n {{ get_create_sql(target_relation, sql) }};\n {{ get_drop_backup_sql(existing_relation) }}\n\n {# /* no renaming is allowed, so just drop and create */ #}\n {%- else -%}\n {{ get_drop_sql(existing_relation) }};\n {{ get_create_sql(target_relation, sql) }}\n\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_replace_view_sql", "macro.dbt.get_replace_table_sql", "macro.dbt.get_replace_materialized_view_sql", "macro.dbt.get_create_intermediate_sql", "macro.dbt.get_create_backup_sql", "macro.dbt.get_rename_intermediate_sql", "macro.dbt.get_drop_backup_sql", "macro.dbt.get_drop_sql", "macro.dbt.get_create_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.29112, "supported_languages": null}, "macro.dbt.get_create_intermediate_sql": {"name": "get_create_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_intermediate.sql", "original_file_path": "macros/relations/create_intermediate.sql", "unique_id": "macro.dbt.get_create_intermediate_sql", "macro_sql": "{%- macro get_create_intermediate_sql(relation, sql) -%}\n {{- log('Applying CREATE INTERMEDIATE to: ' ~ relation) -}}\n {{- adapter.dispatch('get_create_intermediate_sql', 'dbt')(relation, sql) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_create_intermediate_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.291501, "supported_languages": null}, "macro.dbt.default__get_create_intermediate_sql": {"name": "default__get_create_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_intermediate.sql", "original_file_path": "macros/relations/create_intermediate.sql", "unique_id": "macro.dbt.default__get_create_intermediate_sql", "macro_sql": "{%- macro default__get_create_intermediate_sql(relation, sql) -%}\n\n -- get the standard intermediate name\n {% set intermediate_relation = make_intermediate_relation(relation) %}\n\n -- drop any pre-existing intermediate\n {{ get_drop_sql(intermediate_relation) }};\n\n {{ get_create_sql(intermediate_relation, sql) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_intermediate_relation", "macro.dbt.get_drop_sql", "macro.dbt.get_create_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.291734, "supported_languages": null}, "macro.dbt.get_drop_backup_sql": {"name": "get_drop_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop_backup.sql", "original_file_path": "macros/relations/drop_backup.sql", "unique_id": "macro.dbt.get_drop_backup_sql", "macro_sql": "{%- macro get_drop_backup_sql(relation) -%}\n {{- log('Applying DROP BACKUP to: ' ~ relation) -}}\n {{- adapter.dispatch('get_drop_backup_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_drop_backup_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.2920241, "supported_languages": null}, "macro.dbt.default__get_drop_backup_sql": {"name": "default__get_drop_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop_backup.sql", "original_file_path": "macros/relations/drop_backup.sql", "unique_id": "macro.dbt.default__get_drop_backup_sql", "macro_sql": "{%- macro default__get_drop_backup_sql(relation) -%}\n\n -- get the standard backup name\n {% set backup_relation = make_backup_relation(relation, relation.type) %}\n\n {{ get_drop_sql(backup_relation) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_backup_relation", "macro.dbt.get_drop_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.292217, "supported_languages": null}, "macro.dbt.get_rename_sql": {"name": "get_rename_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.get_rename_sql", "macro_sql": "{%- macro get_rename_sql(relation, new_name) -%}\n {{- log('Applying RENAME to: ' ~ relation) -}}\n {{- adapter.dispatch('get_rename_sql', 'dbt')(relation, new_name) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_rename_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.292852, "supported_languages": null}, "macro.dbt.default__get_rename_sql": {"name": "default__get_rename_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.default__get_rename_sql", "macro_sql": "{%- macro default__get_rename_sql(relation, new_name) -%}\n\n {%- if relation.is_view -%}\n {{ get_rename_view_sql(relation, new_name) }}\n\n {%- elif relation.is_table -%}\n {{ get_rename_table_sql(relation, new_name) }}\n\n {%- elif relation.is_materialized_view -%}\n {{ get_rename_materialized_view_sql(relation, new_name) }}\n\n {%- else -%}\n {{- exceptions.raise_compiler_error(\"`get_rename_sql` has not been implemented for: \" ~ relation.type ) -}}\n\n {%- endif -%}\n\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.get_rename_view_sql", "macro.dbt.get_rename_table_sql", "macro.dbt.get_rename_materialized_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.293248, "supported_languages": null}, "macro.dbt.rename_relation": {"name": "rename_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.rename_relation", "macro_sql": "{% macro rename_relation(from_relation, to_relation) -%}\n {{ return(adapter.dispatch('rename_relation', 'dbt')(from_relation, to_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__rename_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.293438, "supported_languages": null}, "macro.dbt.default__rename_relation": {"name": "default__rename_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.default__rename_relation", "macro_sql": "{% macro default__rename_relation(from_relation, to_relation) -%}\n {% set target_name = adapter.quote_as_configured(to_relation.identifier, 'identifier') %}\n {% call statement('rename_relation') -%}\n alter table {{ from_relation }} rename to {{ target_name }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.2937028, "supported_languages": null}, "macro.dbt.get_create_backup_sql": {"name": "get_create_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_backup.sql", "original_file_path": "macros/relations/create_backup.sql", "unique_id": "macro.dbt.get_create_backup_sql", "macro_sql": "{%- macro get_create_backup_sql(relation) -%}\n {{- log('Applying CREATE BACKUP to: ' ~ relation) -}}\n {{- adapter.dispatch('get_create_backup_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_create_backup_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.294026, "supported_languages": null}, "macro.dbt.default__get_create_backup_sql": {"name": "default__get_create_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_backup.sql", "original_file_path": "macros/relations/create_backup.sql", "unique_id": "macro.dbt.default__get_create_backup_sql", "macro_sql": "{%- macro default__get_create_backup_sql(relation) -%}\n\n -- get the standard backup name\n {% set backup_relation = make_backup_relation(relation, relation.type) %}\n\n -- drop any pre-existing backup\n {{ get_drop_sql(backup_relation) }};\n\n {{ get_rename_sql(relation, backup_relation.identifier) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_backup_relation", "macro.dbt.get_drop_sql", "macro.dbt.get_rename_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.29428, "supported_languages": null}, "macro.dbt.get_create_sql": {"name": "get_create_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create.sql", "original_file_path": "macros/relations/create.sql", "unique_id": "macro.dbt.get_create_sql", "macro_sql": "{%- macro get_create_sql(relation, sql) -%}\n {{- log('Applying CREATE to: ' ~ relation) -}}\n {{- adapter.dispatch('get_create_sql', 'dbt')(relation, sql) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_create_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.294707, "supported_languages": null}, "macro.dbt.default__get_create_sql": {"name": "default__get_create_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create.sql", "original_file_path": "macros/relations/create.sql", "unique_id": "macro.dbt.default__get_create_sql", "macro_sql": "{%- macro default__get_create_sql(relation, sql) -%}\n\n {%- if relation.is_view -%}\n {{ get_create_view_as_sql(relation, sql) }}\n\n {%- elif relation.is_table -%}\n {{ get_create_table_as_sql(False, relation, sql) }}\n\n {%- elif relation.is_materialized_view -%}\n {{ get_create_materialized_view_as_sql(relation, sql) }}\n\n {%- else -%}\n {{- exceptions.raise_compiler_error(\"`get_create_sql` has not been implemented for: \" ~ relation.type ) -}}\n\n {%- endif -%}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.get_create_view_as_sql", "macro.dbt.get_create_table_as_sql", "macro.dbt.get_create_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.295112, "supported_languages": null}, "macro.dbt.get_rename_intermediate_sql": {"name": "get_rename_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename_intermediate.sql", "original_file_path": "macros/relations/rename_intermediate.sql", "unique_id": "macro.dbt.get_rename_intermediate_sql", "macro_sql": "{%- macro get_rename_intermediate_sql(relation) -%}\n {{- log('Applying RENAME INTERMEDIATE to: ' ~ relation) -}}\n {{- adapter.dispatch('get_rename_intermediate_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_rename_intermediate_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.295414, "supported_languages": null}, "macro.dbt.default__get_rename_intermediate_sql": {"name": "default__get_rename_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename_intermediate.sql", "original_file_path": "macros/relations/rename_intermediate.sql", "unique_id": "macro.dbt.default__get_rename_intermediate_sql", "macro_sql": "{%- macro default__get_rename_intermediate_sql(relation) -%}\n\n -- get the standard intermediate name\n {% set intermediate_relation = make_intermediate_relation(relation) %}\n\n {{ get_rename_sql(intermediate_relation, relation.identifier) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_intermediate_relation", "macro.dbt.get_rename_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.295604, "supported_languages": null}, "macro.dbt.drop_materialized_view": {"name": "drop_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/drop.sql", "original_file_path": "macros/relations/materialized_view/drop.sql", "unique_id": "macro.dbt.drop_materialized_view", "macro_sql": "{% macro drop_materialized_view(relation) -%}\n {{ return(adapter.dispatch('drop_materialized_view', 'dbt')(relation)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.295851, "supported_languages": null}, "macro.dbt.default__drop_materialized_view": {"name": "default__drop_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/drop.sql", "original_file_path": "macros/relations/materialized_view/drop.sql", "unique_id": "macro.dbt.default__drop_materialized_view", "macro_sql": "{% macro default__drop_materialized_view(relation) -%}\n drop materialized view if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.295948, "supported_languages": null}, "macro.dbt.get_replace_materialized_view_sql": {"name": "get_replace_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/replace.sql", "original_file_path": "macros/relations/materialized_view/replace.sql", "unique_id": "macro.dbt.get_replace_materialized_view_sql", "macro_sql": "{% macro get_replace_materialized_view_sql(relation, sql) %}\n {{- adapter.dispatch('get_replace_materialized_view_sql', 'dbt')(relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_replace_materialized_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.296206, "supported_languages": null}, "macro.dbt.default__get_replace_materialized_view_sql": {"name": "default__get_replace_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/replace.sql", "original_file_path": "macros/relations/materialized_view/replace.sql", "unique_id": "macro.dbt.default__get_replace_materialized_view_sql", "macro_sql": "{% macro default__get_replace_materialized_view_sql(relation, sql) %}\n {{ exceptions.raise_compiler_error(\n \"`get_replace_materialized_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.296351, "supported_languages": null}, "macro.dbt.refresh_materialized_view": {"name": "refresh_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/refresh.sql", "original_file_path": "macros/relations/materialized_view/refresh.sql", "unique_id": "macro.dbt.refresh_materialized_view", "macro_sql": "{% macro refresh_materialized_view(relation) %}\n {{- log('Applying REFRESH to: ' ~ relation) -}}\n {{- adapter.dispatch('refresh_materialized_view', 'dbt')(relation) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__refresh_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.296704, "supported_languages": null}, "macro.dbt.default__refresh_materialized_view": {"name": "default__refresh_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/refresh.sql", "original_file_path": "macros/relations/materialized_view/refresh.sql", "unique_id": "macro.dbt.default__refresh_materialized_view", "macro_sql": "{% macro default__refresh_materialized_view(relation) %}\n {{ exceptions.raise_compiler_error(\"`refresh_materialized_view` has not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.296937, "supported_languages": null}, "macro.dbt.get_rename_materialized_view_sql": {"name": "get_rename_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/rename.sql", "original_file_path": "macros/relations/materialized_view/rename.sql", "unique_id": "macro.dbt.get_rename_materialized_view_sql", "macro_sql": "{% macro get_rename_materialized_view_sql(relation, new_name) %}\n {{- adapter.dispatch('get_rename_materialized_view_sql', 'dbt')(relation, new_name) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_rename_materialized_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.2972128, "supported_languages": null}, "macro.dbt.default__get_rename_materialized_view_sql": {"name": "default__get_rename_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/rename.sql", "original_file_path": "macros/relations/materialized_view/rename.sql", "unique_id": "macro.dbt.default__get_rename_materialized_view_sql", "macro_sql": "{% macro default__get_rename_materialized_view_sql(relation, new_name) %}\n {{ exceptions.raise_compiler_error(\n \"`get_rename_materialized_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.29735, "supported_languages": null}, "macro.dbt.get_alter_materialized_view_as_sql": {"name": "get_alter_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.get_alter_materialized_view_as_sql", "macro_sql": "{% macro get_alter_materialized_view_as_sql(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n) %}\n {{- log('Applying ALTER to: ' ~ relation) -}}\n {{- adapter.dispatch('get_alter_materialized_view_as_sql', 'dbt')(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n ) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_alter_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.297903, "supported_languages": null}, "macro.dbt.default__get_alter_materialized_view_as_sql": {"name": "default__get_alter_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.default__get_alter_materialized_view_as_sql", "macro_sql": "{% macro default__get_alter_materialized_view_as_sql(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n) %}\n {{ exceptions.raise_compiler_error(\"Materialized views have not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.2980711, "supported_languages": null}, "macro.dbt.get_materialized_view_configuration_changes": {"name": "get_materialized_view_configuration_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.get_materialized_view_configuration_changes", "macro_sql": "{% macro get_materialized_view_configuration_changes(existing_relation, new_config) %}\n /* {#\n It's recommended that configuration changes be formatted as follows:\n {\"\": [{\"action\": \"\", \"context\": ...}]}\n\n For example:\n {\n \"indexes\": [\n {\"action\": \"drop\", \"context\": \"index_abc\"},\n {\"action\": \"create\", \"context\": {\"columns\": [\"column_1\", \"column_2\"], \"type\": \"hash\", \"unique\": True}},\n ],\n }\n\n Either way, `get_materialized_view_configuration_changes` needs to align with `get_alter_materialized_view_as_sql`.\n #} */\n {{- log('Determining configuration changes on: ' ~ existing_relation) -}}\n {%- do return(adapter.dispatch('get_materialized_view_configuration_changes', 'dbt')(existing_relation, new_config)) -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_materialized_view_configuration_changes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.298333, "supported_languages": null}, "macro.dbt.default__get_materialized_view_configuration_changes": {"name": "default__get_materialized_view_configuration_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.default__get_materialized_view_configuration_changes", "macro_sql": "{% macro default__get_materialized_view_configuration_changes(existing_relation, new_config) %}\n {{ exceptions.raise_compiler_error(\"Materialized views have not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.298466, "supported_languages": null}, "macro.dbt.get_create_materialized_view_as_sql": {"name": "get_create_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/create.sql", "original_file_path": "macros/relations/materialized_view/create.sql", "unique_id": "macro.dbt.get_create_materialized_view_as_sql", "macro_sql": "{% macro get_create_materialized_view_as_sql(relation, sql) -%}\n {{- adapter.dispatch('get_create_materialized_view_as_sql', 'dbt')(relation, sql) -}}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_create_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.298712, "supported_languages": null}, "macro.dbt.default__get_create_materialized_view_as_sql": {"name": "default__get_create_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/create.sql", "original_file_path": "macros/relations/materialized_view/create.sql", "unique_id": "macro.dbt.default__get_create_materialized_view_as_sql", "macro_sql": "{% macro default__get_create_materialized_view_as_sql(relation, sql) -%}\n {{ exceptions.raise_compiler_error(\n \"`get_create_materialized_view_as_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.2988422, "supported_languages": null}, "macro.dbt.get_table_columns_and_constraints": {"name": "get_table_columns_and_constraints", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.get_table_columns_and_constraints", "macro_sql": "{%- macro get_table_columns_and_constraints() -%}\n {{ adapter.dispatch('get_table_columns_and_constraints', 'dbt')() }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__get_table_columns_and_constraints"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.299756, "supported_languages": null}, "macro.dbt.default__get_table_columns_and_constraints": {"name": "default__get_table_columns_and_constraints", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.default__get_table_columns_and_constraints", "macro_sql": "{% macro default__get_table_columns_and_constraints() -%}\n {{ return(table_columns_and_constraints()) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.table_columns_and_constraints"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.299865, "supported_languages": null}, "macro.dbt.table_columns_and_constraints": {"name": "table_columns_and_constraints", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.table_columns_and_constraints", "macro_sql": "{% macro table_columns_and_constraints() %}\n {# loop through user_provided_columns to create DDL with data types and constraints #}\n {%- set raw_column_constraints = adapter.render_raw_columns_constraints(raw_columns=model['columns']) -%}\n {%- set raw_model_constraints = adapter.render_raw_model_constraints(raw_constraints=model['constraints']) -%}\n (\n {% for c in raw_column_constraints -%}\n {{ c }}{{ \",\" if not loop.last or raw_model_constraints }}\n {% endfor %}\n {% for c in raw_model_constraints -%}\n {{ c }}{{ \",\" if not loop.last }}\n {% endfor -%}\n )\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.3003771, "supported_languages": null}, "macro.dbt.get_assert_columns_equivalent": {"name": "get_assert_columns_equivalent", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.get_assert_columns_equivalent", "macro_sql": "\n\n{%- macro get_assert_columns_equivalent(sql) -%}\n {{ adapter.dispatch('get_assert_columns_equivalent', 'dbt')(sql) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__get_assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.300541, "supported_languages": null}, "macro.dbt.default__get_assert_columns_equivalent": {"name": "default__get_assert_columns_equivalent", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.default__get_assert_columns_equivalent", "macro_sql": "{% macro default__get_assert_columns_equivalent(sql) -%}\n {{ return(assert_columns_equivalent(sql)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.300672, "supported_languages": null}, "macro.dbt.assert_columns_equivalent": {"name": "assert_columns_equivalent", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.assert_columns_equivalent", "macro_sql": "{% macro assert_columns_equivalent(sql) %}\n\n {#-- First ensure the user has defined 'columns' in yaml specification --#}\n {%- set user_defined_columns = model['columns'] -%}\n {%- if not user_defined_columns -%}\n {{ exceptions.raise_contract_error([], []) }}\n {%- endif -%}\n\n {#-- Obtain the column schema provided by sql file. #}\n {%- set sql_file_provided_columns = get_column_schema_from_query(sql, config.get('sql_header', none)) -%}\n {#--Obtain the column schema provided by the schema file by generating an 'empty schema' query from the model's columns. #}\n {%- set schema_file_provided_columns = get_column_schema_from_query(get_empty_schema_sql(user_defined_columns)) -%}\n\n {#-- create dictionaries with name and formatted data type and strings for exception #}\n {%- set sql_columns = format_columns(sql_file_provided_columns) -%}\n {%- set yaml_columns = format_columns(schema_file_provided_columns) -%}\n\n {%- if sql_columns|length != yaml_columns|length -%}\n {%- do exceptions.raise_contract_error(yaml_columns, sql_columns) -%}\n {%- endif -%}\n\n {%- for sql_col in sql_columns -%}\n {%- set yaml_col = [] -%}\n {%- for this_col in yaml_columns -%}\n {%- if this_col['name'] == sql_col['name'] -%}\n {%- do yaml_col.append(this_col) -%}\n {%- break -%}\n {%- endif -%}\n {%- endfor -%}\n {%- if not yaml_col -%}\n {#-- Column with name not found in yaml #}\n {%- do exceptions.raise_contract_error(yaml_columns, sql_columns) -%}\n {%- endif -%}\n {%- if sql_col['formatted'] != yaml_col[0]['formatted'] -%}\n {#-- Column data types don't match #}\n {%- do exceptions.raise_contract_error(yaml_columns, sql_columns) -%}\n {%- endif -%}\n {%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_column_schema_from_query", "macro.dbt.get_empty_schema_sql", "macro.dbt.format_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.301942, "supported_languages": null}, "macro.dbt.format_columns": {"name": "format_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.format_columns", "macro_sql": "{% macro format_columns(columns) %}\n {% set formatted_columns = [] %}\n {% for column in columns %}\n {%- set formatted_column = adapter.dispatch('format_column', 'dbt')(column) -%}\n {%- do formatted_columns.append(formatted_column) -%}\n {% endfor %}\n {{ return(formatted_columns) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__format_column"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.302302, "supported_languages": null}, "macro.dbt.default__format_column": {"name": "default__format_column", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.default__format_column", "macro_sql": "{% macro default__format_column(column) -%}\n {% set data_type = column.dtype %}\n {% set formatted = column.column.lower() ~ \" \" ~ data_type %}\n {{ return({'name': column.name, 'data_type': data_type, 'formatted': formatted}) }}\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.30262, "supported_languages": null}, "macro.dbt.drop_table": {"name": "drop_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/drop.sql", "original_file_path": "macros/relations/table/drop.sql", "unique_id": "macro.dbt.drop_table", "macro_sql": "{% macro drop_table(relation) -%}\n {{ return(adapter.dispatch('drop_table', 'dbt')(relation)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.3028748, "supported_languages": null}, "macro.dbt.default__drop_table": {"name": "default__drop_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/drop.sql", "original_file_path": "macros/relations/table/drop.sql", "unique_id": "macro.dbt.default__drop_table", "macro_sql": "{% macro default__drop_table(relation) -%}\n drop table if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.302973, "supported_languages": null}, "macro.dbt.get_replace_table_sql": {"name": "get_replace_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/replace.sql", "original_file_path": "macros/relations/table/replace.sql", "unique_id": "macro.dbt.get_replace_table_sql", "macro_sql": "{% macro get_replace_table_sql(relation, sql) %}\n {{- adapter.dispatch('get_replace_table_sql', 'dbt')(relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_replace_table_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.30323, "supported_languages": null}, "macro.dbt.default__get_replace_table_sql": {"name": "default__get_replace_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/replace.sql", "original_file_path": "macros/relations/table/replace.sql", "unique_id": "macro.dbt.default__get_replace_table_sql", "macro_sql": "{% macro default__get_replace_table_sql(relation, sql) %}\n {{ exceptions.raise_compiler_error(\n \"`get_replace_table_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.303363, "supported_languages": null}, "macro.dbt.get_rename_table_sql": {"name": "get_rename_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/rename.sql", "original_file_path": "macros/relations/table/rename.sql", "unique_id": "macro.dbt.get_rename_table_sql", "macro_sql": "{% macro get_rename_table_sql(relation, new_name) %}\n {{- adapter.dispatch('get_rename_table_sql', 'dbt')(relation, new_name) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_rename_table_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.303607, "supported_languages": null}, "macro.dbt.default__get_rename_table_sql": {"name": "default__get_rename_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/rename.sql", "original_file_path": "macros/relations/table/rename.sql", "unique_id": "macro.dbt.default__get_rename_table_sql", "macro_sql": "{% macro default__get_rename_table_sql(relation, new_name) %}\n {{ exceptions.raise_compiler_error(\n \"`get_rename_table_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.303743, "supported_languages": null}, "macro.dbt.get_create_table_as_sql": {"name": "get_create_table_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.get_create_table_as_sql", "macro_sql": "{% macro get_create_table_as_sql(temporary, relation, sql) -%}\n {{ adapter.dispatch('get_create_table_as_sql', 'dbt')(temporary, relation, sql) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_create_table_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.304519, "supported_languages": null}, "macro.dbt.default__get_create_table_as_sql": {"name": "default__get_create_table_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__get_create_table_as_sql", "macro_sql": "{% macro default__get_create_table_as_sql(temporary, relation, sql) -%}\n {{ return(create_table_as(temporary, relation, sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.3046951, "supported_languages": null}, "macro.dbt.create_table_as": {"name": "create_table_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.create_table_as", "macro_sql": "{% macro create_table_as(temporary, relation, compiled_code, language='sql') -%}\n {# backward compatibility for create_table_as that does not support language #}\n {% if language == \"sql\" %}\n {{ adapter.dispatch('create_table_as', 'dbt')(temporary, relation, compiled_code)}}\n {% else %}\n {{ adapter.dispatch('create_table_as', 'dbt')(temporary, relation, compiled_code, language) }}\n {% endif %}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.305098, "supported_languages": null}, "macro.dbt.default__create_table_as": {"name": "default__create_table_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__create_table_as", "macro_sql": "{% macro default__create_table_as(temporary, relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create {% if temporary: -%}temporary{%- endif %} table\n {{ relation.include(database=(not temporary), schema=(not temporary)) }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced and (not temporary) %}\n {{ get_assert_columns_equivalent(sql) }}\n {{ get_table_columns_and_constraints() }}\n {%- set sql = get_select_subquery(sql) %}\n {% endif %}\n as (\n {{ sql }}\n );\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent", "macro.dbt.get_table_columns_and_constraints", "macro.dbt.get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.30572, "supported_languages": null}, "macro.dbt.default__get_column_names": {"name": "default__get_column_names", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__get_column_names", "macro_sql": "{% macro default__get_column_names() %}\n {#- loop through user_provided_columns to get column names -#}\n {%- set user_provided_columns = model['columns'] -%}\n {%- for i in user_provided_columns %}\n {%- set col = user_provided_columns[i] -%}\n {%- set col_name = adapter.quote(col['name']) if col.get('quote') else col['name'] -%}\n {{ col_name }}{{ \", \" if not loop.last }}\n {%- endfor -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.30614, "supported_languages": null}, "macro.dbt.get_select_subquery": {"name": "get_select_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.get_select_subquery", "macro_sql": "{% macro get_select_subquery(sql) %}\n {{ return(adapter.dispatch('get_select_subquery', 'dbt')(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.306311, "supported_languages": null}, "macro.dbt.default__get_select_subquery": {"name": "default__get_select_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__get_select_subquery", "macro_sql": "{% macro default__get_select_subquery(sql) %}\n select {{ adapter.dispatch('get_column_names', 'dbt')() }}\n from (\n {{ sql }}\n ) as model_subq\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_column_names"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.3064802, "supported_languages": null}, "macro.dbt.drop_view": {"name": "drop_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/drop.sql", "original_file_path": "macros/relations/view/drop.sql", "unique_id": "macro.dbt.drop_view", "macro_sql": "{% macro drop_view(relation) -%}\n {{ return(adapter.dispatch('drop_view', 'dbt')(relation)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.3067362, "supported_languages": null}, "macro.dbt.default__drop_view": {"name": "default__drop_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/drop.sql", "original_file_path": "macros/relations/view/drop.sql", "unique_id": "macro.dbt.default__drop_view", "macro_sql": "{% macro default__drop_view(relation) -%}\n drop view if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.3068318, "supported_languages": null}, "macro.dbt.get_replace_view_sql": {"name": "get_replace_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.get_replace_view_sql", "macro_sql": "{% macro get_replace_view_sql(relation, sql) %}\n {{- adapter.dispatch('get_replace_view_sql', 'dbt')(relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_replace_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.3075762, "supported_languages": null}, "macro.dbt.default__get_replace_view_sql": {"name": "default__get_replace_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.default__get_replace_view_sql", "macro_sql": "{% macro default__get_replace_view_sql(relation, sql) %}\n {{ exceptions.raise_compiler_error(\n \"`get_replace_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.307711, "supported_languages": null}, "macro.dbt.create_or_replace_view": {"name": "create_or_replace_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.create_or_replace_view", "macro_sql": "{% macro create_or_replace_view() %}\n {%- set identifier = model['alias'] -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {%- set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database,\n type='view') -%}\n {% set grant_config = config.get('grants') %}\n\n {{ run_hooks(pre_hooks) }}\n\n -- If there's a table with the same name and we weren't told to full refresh,\n -- that's an error. If we were told to full refresh, drop it. This behavior differs\n -- for Snowflake and BigQuery, so multiple dispatch is used.\n {%- if old_relation is not none and old_relation.is_table -%}\n {{ handle_existing_table(should_full_refresh(), old_relation) }}\n {%- endif -%}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_view_as_sql(target_relation, sql) }}\n {%- endcall %}\n\n {% set should_revoke = should_revoke(exists_as_view, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {{ run_hooks(post_hooks) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.handle_existing_table", "macro.dbt.should_full_refresh", "macro.dbt.statement", "macro.dbt.get_create_view_as_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.308794, "supported_languages": null}, "macro.dbt.handle_existing_table": {"name": "handle_existing_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.handle_existing_table", "macro_sql": "{% macro handle_existing_table(full_refresh, old_relation) %}\n {{ adapter.dispatch('handle_existing_table', 'dbt')(full_refresh, old_relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__handle_existing_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.3089669, "supported_languages": null}, "macro.dbt.default__handle_existing_table": {"name": "default__handle_existing_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.default__handle_existing_table", "macro_sql": "{% macro default__handle_existing_table(full_refresh, old_relation) %}\n {{ log(\"Dropping relation \" ~ old_relation ~ \" because it is of type \" ~ old_relation.type) }}\n {{ adapter.drop_relation(old_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.3091662, "supported_languages": null}, "macro.dbt.get_rename_view_sql": {"name": "get_rename_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/rename.sql", "original_file_path": "macros/relations/view/rename.sql", "unique_id": "macro.dbt.get_rename_view_sql", "macro_sql": "{% macro get_rename_view_sql(relation, new_name) %}\n {{- adapter.dispatch('get_rename_view_sql', 'dbt')(relation, new_name) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_rename_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.309408, "supported_languages": null}, "macro.dbt.default__get_rename_view_sql": {"name": "default__get_rename_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/rename.sql", "original_file_path": "macros/relations/view/rename.sql", "unique_id": "macro.dbt.default__get_rename_view_sql", "macro_sql": "{% macro default__get_rename_view_sql(relation, new_name) %}\n {{ exceptions.raise_compiler_error(\n \"`get_rename_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.309542, "supported_languages": null}, "macro.dbt.get_create_view_as_sql": {"name": "get_create_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.get_create_view_as_sql", "macro_sql": "{% macro get_create_view_as_sql(relation, sql) -%}\n {{ adapter.dispatch('get_create_view_as_sql', 'dbt')(relation, sql) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_create_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.3099, "supported_languages": null}, "macro.dbt.default__get_create_view_as_sql": {"name": "default__get_create_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.default__get_create_view_as_sql", "macro_sql": "{% macro default__get_create_view_as_sql(relation, sql) -%}\n {{ return(create_view_as(relation, sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.310045, "supported_languages": null}, "macro.dbt.create_view_as": {"name": "create_view_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.create_view_as", "macro_sql": "{% macro create_view_as(relation, sql) -%}\n {{ adapter.dispatch('create_view_as', 'dbt')(relation, sql) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.3102121, "supported_languages": null}, "macro.dbt.default__create_view_as": {"name": "default__create_view_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.default__create_view_as", "macro_sql": "{% macro default__create_view_as(relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n create view {{ relation }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {%- endif %}\n as (\n {{ sql }}\n );\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.310605, "supported_languages": null}, "macro.dbt.default__test_relationships": {"name": "default__test_relationships", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/relationships.sql", "original_file_path": "macros/generic_test_sql/relationships.sql", "unique_id": "macro.dbt.default__test_relationships", "macro_sql": "{% macro default__test_relationships(model, column_name, to, field) %}\n\nwith child as (\n select {{ column_name }} as from_field\n from {{ model }}\n where {{ column_name }} is not null\n),\n\nparent as (\n select {{ field }} as to_field\n from {{ to }}\n)\n\nselect\n from_field\n\nfrom child\nleft join parent\n on child.from_field = parent.to_field\n\nwhere parent.to_field is null\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.3109381, "supported_languages": null}, "macro.dbt.default__test_not_null": {"name": "default__test_not_null", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/not_null.sql", "original_file_path": "macros/generic_test_sql/not_null.sql", "unique_id": "macro.dbt.default__test_not_null", "macro_sql": "{% macro default__test_not_null(model, column_name) %}\n\n{% set column_list = '*' if should_store_failures() else column_name %}\n\nselect {{ column_list }}\nfrom {{ model }}\nwhere {{ column_name }} is null\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_store_failures"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.31122, "supported_languages": null}, "macro.dbt.default__test_unique": {"name": "default__test_unique", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/unique.sql", "original_file_path": "macros/generic_test_sql/unique.sql", "unique_id": "macro.dbt.default__test_unique", "macro_sql": "{% macro default__test_unique(model, column_name) %}\n\nselect\n {{ column_name }} as unique_field,\n count(*) as n_records\n\nfrom {{ model }}\nwhere {{ column_name }} is not null\ngroup by {{ column_name }}\nhaving count(*) > 1\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.3114429, "supported_languages": null}, "macro.dbt.default__test_accepted_values": {"name": "default__test_accepted_values", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/accepted_values.sql", "original_file_path": "macros/generic_test_sql/accepted_values.sql", "unique_id": "macro.dbt.default__test_accepted_values", "macro_sql": "{% macro default__test_accepted_values(model, column_name, values, quote=True) %}\n\nwith all_values as (\n\n select\n {{ column_name }} as value_field,\n count(*) as n_records\n\n from {{ model }}\n group by {{ column_name }}\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n {% for value in values -%}\n {% if quote -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {%- endfor %}\n)\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.311934, "supported_languages": null}, "macro.dbt.statement": {"name": "statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "unique_id": "macro.dbt.statement", "macro_sql": "\n{%- macro statement(name=None, fetch_result=False, auto_begin=True, language='sql') -%}\n {%- if execute: -%}\n {%- set compiled_code = caller() -%}\n\n {%- if name == 'main' -%}\n {{ log('Writing runtime {} for node \"{}\"'.format(language, model['unique_id'])) }}\n {{ write(compiled_code) }}\n {%- endif -%}\n {%- if language == 'sql'-%}\n {%- set res, table = adapter.execute(compiled_code, auto_begin=auto_begin, fetch=fetch_result) -%}\n {%- elif language == 'python' -%}\n {%- set res = submit_python_job(model, compiled_code) -%}\n {#-- TODO: What should table be for python models? --#}\n {%- set table = None -%}\n {%- else -%}\n {% do exceptions.raise_compiler_error(\"statement macro didn't get supported language\") %}\n {%- endif -%}\n\n {%- if name is not none -%}\n {{ store_result(name, response=res, agate_table=table) }}\n {%- endif -%}\n\n {%- endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.313219, "supported_languages": null}, "macro.dbt.noop_statement": {"name": "noop_statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "unique_id": "macro.dbt.noop_statement", "macro_sql": "{% macro noop_statement(name=None, message=None, code=None, rows_affected=None, res=None) -%}\n {%- set sql = caller() -%}\n\n {%- if name == 'main' -%}\n {{ log('Writing runtime SQL for node \"{}\"'.format(model['unique_id'])) }}\n {{ write(sql) }}\n {%- endif -%}\n\n {%- if name is not none -%}\n {{ store_raw_result(name, message=message, code=code, rows_affected=rows_affected, agate_table=res) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.3137228, "supported_languages": null}, "macro.dbt.run_query": {"name": "run_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "unique_id": "macro.dbt.run_query", "macro_sql": "{% macro run_query(sql) %}\n {% call statement(\"run_query_statement\", fetch_result=true, auto_begin=false) %}\n {{ sql }}\n {% endcall %}\n\n {% do return(load_result(\"run_query_statement\").table) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.313985, "supported_languages": null}, "macro.dbt.convert_datetime": {"name": "convert_datetime", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.convert_datetime", "macro_sql": "{% macro convert_datetime(date_str, date_fmt) %}\n\n {% set error_msg -%}\n The provided partition date '{{ date_str }}' does not match the expected format '{{ date_fmt }}'\n {%- endset %}\n\n {% set res = try_or_compiler_error(error_msg, modules.datetime.datetime.strptime, date_str.strip(), date_fmt) %}\n {{ return(res) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.315592, "supported_languages": null}, "macro.dbt.dates_in_range": {"name": "dates_in_range", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.dates_in_range", "macro_sql": "{% macro dates_in_range(start_date_str, end_date_str=none, in_fmt=\"%Y%m%d\", out_fmt=\"%Y%m%d\") %}\n {% set end_date_str = start_date_str if end_date_str is none else end_date_str %}\n\n {% set start_date = convert_datetime(start_date_str, in_fmt) %}\n {% set end_date = convert_datetime(end_date_str, in_fmt) %}\n\n {% set day_count = (end_date - start_date).days %}\n {% if day_count < 0 %}\n {% set msg -%}\n Partition start date is after the end date ({{ start_date }}, {{ end_date }})\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg, model) }}\n {% endif %}\n\n {% set date_list = [] %}\n {% for i in range(0, day_count + 1) %}\n {% set the_date = (modules.datetime.timedelta(days=i) + start_date) %}\n {% if not out_fmt %}\n {% set _ = date_list.append(the_date) %}\n {% else %}\n {% set _ = date_list.append(the_date.strftime(out_fmt)) %}\n {% endif %}\n {% endfor %}\n\n {{ return(date_list) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.convert_datetime"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.316976, "supported_languages": null}, "macro.dbt.partition_range": {"name": "partition_range", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.partition_range", "macro_sql": "{% macro partition_range(raw_partition_date, date_fmt='%Y%m%d') %}\n {% set partition_range = (raw_partition_date | string).split(\",\") %}\n\n {% if (partition_range | length) == 1 %}\n {% set start_date = partition_range[0] %}\n {% set end_date = none %}\n {% elif (partition_range | length) == 2 %}\n {% set start_date = partition_range[0] %}\n {% set end_date = partition_range[1] %}\n {% else %}\n {{ exceptions.raise_compiler_error(\"Invalid partition time. Expected format: {Start Date}[,{End Date}]. Got: \" ~ raw_partition_date) }}\n {% endif %}\n\n {{ return(dates_in_range(start_date, end_date, in_fmt=date_fmt)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dates_in_range"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.317661, "supported_languages": null}, "macro.dbt.py_current_timestring": {"name": "py_current_timestring", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.py_current_timestring", "macro_sql": "{% macro py_current_timestring() %}\n {% set dt = modules.datetime.datetime.now() %}\n {% do return(dt.strftime(\"%Y%m%d%H%M%S%f\")) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.317884, "supported_languages": null}, "macro.dbt.except": {"name": "except", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "unique_id": "macro.dbt.except", "macro_sql": "{% macro except() %}\n {{ return(adapter.dispatch('except', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.3181078, "supported_languages": null}, "macro.dbt.default__except": {"name": "default__except", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "unique_id": "macro.dbt.default__except", "macro_sql": "{% macro default__except() %}\n\n except\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.318177, "supported_languages": null}, "macro.dbt.get_intervals_between": {"name": "get_intervals_between", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.get_intervals_between", "macro_sql": "{% macro get_intervals_between(start_date, end_date, datepart) -%}\n {{ return(adapter.dispatch('get_intervals_between', 'dbt')(start_date, end_date, datepart)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_intervals_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.3188548, "supported_languages": null}, "macro.dbt.default__get_intervals_between": {"name": "default__get_intervals_between", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.default__get_intervals_between", "macro_sql": "{% macro default__get_intervals_between(start_date, end_date, datepart) -%}\n {%- call statement('get_intervals_between', fetch_result=True) %}\n\n select {{ dbt.datediff(start_date, end_date, datepart) }}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_intervals_between') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values[0]) }}\n {%- else -%}\n {{ return(1) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.319384, "supported_languages": null}, "macro.dbt.date_spine": {"name": "date_spine", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.date_spine", "macro_sql": "{% macro date_spine(datepart, start_date, end_date) %}\n {{ return(adapter.dispatch('date_spine', 'dbt')(datepart, start_date, end_date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.319596, "supported_languages": null}, "macro.dbt.default__date_spine": {"name": "default__date_spine", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.default__date_spine", "macro_sql": "{% macro default__date_spine(datepart, start_date, end_date) %}\n\n\n {# call as follows:\n\n date_spine(\n \"day\",\n \"to_date('01/01/2016', 'mm/dd/yyyy')\",\n \"dbt.dateadd(week, 1, current_date)\"\n ) #}\n\n\n with rawdata as (\n\n {{dbt.generate_series(\n dbt.get_intervals_between(start_date, end_date, datepart)\n )}}\n\n ),\n\n all_periods as (\n\n select (\n {{\n dbt.dateadd(\n datepart,\n \"row_number() over (order by 1) - 1\",\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n\n ),\n\n filtered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n )\n\n select * from filtered\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.generate_series", "macro.dbt.get_intervals_between", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.319938, "supported_languages": null}, "macro.dbt.replace": {"name": "replace", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/replace.sql", "original_file_path": "macros/utils/replace.sql", "unique_id": "macro.dbt.replace", "macro_sql": "{% macro replace(field, old_chars, new_chars) -%}\n {{ return(adapter.dispatch('replace', 'dbt') (field, old_chars, new_chars)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__replace"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.320245, "supported_languages": null}, "macro.dbt.default__replace": {"name": "default__replace", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/replace.sql", "original_file_path": "macros/utils/replace.sql", "unique_id": "macro.dbt.default__replace", "macro_sql": "{% macro default__replace(field, old_chars, new_chars) %}\n\n replace(\n {{ field }},\n {{ old_chars }},\n {{ new_chars }}\n )\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.320404, "supported_languages": null}, "macro.dbt.concat": {"name": "concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/concat.sql", "original_file_path": "macros/utils/concat.sql", "unique_id": "macro.dbt.concat", "macro_sql": "{% macro concat(fields) -%}\n {{ return(adapter.dispatch('concat', 'dbt')(fields)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.320632, "supported_languages": null}, "macro.dbt.default__concat": {"name": "default__concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/concat.sql", "original_file_path": "macros/utils/concat.sql", "unique_id": "macro.dbt.default__concat", "macro_sql": "{% macro default__concat(fields) -%}\n {{ fields|join(' || ') }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.3207512, "supported_languages": null}, "macro.dbt.get_powers_of_two": {"name": "get_powers_of_two", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.get_powers_of_two", "macro_sql": "{% macro get_powers_of_two(upper_bound) %}\n {{ return(adapter.dispatch('get_powers_of_two', 'dbt')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.32147, "supported_languages": null}, "macro.dbt.default__get_powers_of_two": {"name": "default__get_powers_of_two", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.default__get_powers_of_two", "macro_sql": "{% macro default__get_powers_of_two(upper_bound) %}\n\n {% if upper_bound <= 0 %}\n {{ exceptions.raise_compiler_error(\"upper bound must be positive\") }}\n {% endif %}\n\n {% for _ in range(1, 100) %}\n {% if upper_bound <= 2 ** loop.index %}{{ return(loop.index) }}{% endif %}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.321845, "supported_languages": null}, "macro.dbt.generate_series": {"name": "generate_series", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.generate_series", "macro_sql": "{% macro generate_series(upper_bound) %}\n {{ return(adapter.dispatch('generate_series', 'dbt')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_series"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.322019, "supported_languages": null}, "macro.dbt.default__generate_series": {"name": "default__generate_series", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.default__generate_series", "macro_sql": "{% macro default__generate_series(upper_bound) %}\n\n {% set n = dbt.get_powers_of_two(upper_bound) %}\n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n {% for i in range(n) %}\n p{{i}}.generated_number * power(2, {{i}})\n {% if not loop.last %} + {% endif %}\n {% endfor %}\n + 1\n as generated_number\n\n from\n\n {% for i in range(n) %}\n p as p{{i}}\n {% if not loop.last %} cross join {% endif %}\n {% endfor %}\n\n )\n\n select *\n from unioned\n where generated_number <= {{upper_bound}}\n order by generated_number\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.322481, "supported_languages": null}, "macro.dbt.length": {"name": "length", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/length.sql", "original_file_path": "macros/utils/length.sql", "unique_id": "macro.dbt.length", "macro_sql": "{% macro length(expression) -%}\n {{ return(adapter.dispatch('length', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__length"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.322709, "supported_languages": null}, "macro.dbt.default__length": {"name": "default__length", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/length.sql", "original_file_path": "macros/utils/length.sql", "unique_id": "macro.dbt.default__length", "macro_sql": "{% macro default__length(expression) %}\n\n length(\n {{ expression }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.322804, "supported_languages": null}, "macro.dbt.dateadd": {"name": "dateadd", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "unique_id": "macro.dbt.dateadd", "macro_sql": "{% macro dateadd(datepart, interval, from_date_or_timestamp) %}\n {{ return(adapter.dispatch('dateadd', 'dbt')(datepart, interval, from_date_or_timestamp)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.323099, "supported_languages": null}, "macro.dbt.default__dateadd": {"name": "default__dateadd", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "unique_id": "macro.dbt.default__dateadd", "macro_sql": "{% macro default__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n dateadd(\n {{ datepart }},\n {{ interval }},\n {{ from_date_or_timestamp }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.323253, "supported_languages": null}, "macro.dbt.intersect": {"name": "intersect", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "unique_id": "macro.dbt.intersect", "macro_sql": "{% macro intersect() %}\n {{ return(adapter.dispatch('intersect', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__intersect"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.323458, "supported_languages": null}, "macro.dbt.default__intersect": {"name": "default__intersect", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "unique_id": "macro.dbt.default__intersect", "macro_sql": "{% macro default__intersect() %}\n\n intersect\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.323601, "supported_languages": null}, "macro.dbt.escape_single_quotes": {"name": "escape_single_quotes", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "unique_id": "macro.dbt.escape_single_quotes", "macro_sql": "{% macro escape_single_quotes(expression) %}\n {{ return(adapter.dispatch('escape_single_quotes', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__escape_single_quotes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.323841, "supported_languages": null}, "macro.dbt.default__escape_single_quotes": {"name": "default__escape_single_quotes", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "unique_id": "macro.dbt.default__escape_single_quotes", "macro_sql": "{% macro default__escape_single_quotes(expression) -%}\n{{ expression | replace(\"'\",\"''\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.323971, "supported_languages": null}, "macro.dbt.right": {"name": "right", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "unique_id": "macro.dbt.right", "macro_sql": "{% macro right(string_text, length_expression) -%}\n {{ return(adapter.dispatch('right', 'dbt') (string_text, length_expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__right"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.324235, "supported_languages": null}, "macro.dbt.default__right": {"name": "default__right", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "unique_id": "macro.dbt.default__right", "macro_sql": "{% macro default__right(string_text, length_expression) %}\n\n right(\n {{ string_text }},\n {{ length_expression }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.324363, "supported_languages": null}, "macro.dbt.listagg": {"name": "listagg", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "unique_id": "macro.dbt.listagg", "macro_sql": "{% macro listagg(measure, delimiter_text=\"','\", order_by_clause=none, limit_num=none) -%}\n {{ return(adapter.dispatch('listagg', 'dbt') (measure, delimiter_text, order_by_clause, limit_num)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__listagg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.324939, "supported_languages": null}, "macro.dbt.default__listagg": {"name": "default__listagg", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "unique_id": "macro.dbt.default__listagg", "macro_sql": "{% macro default__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n {% if limit_num -%}\n array_to_string(\n array_slice(\n array_agg(\n {{ measure }}\n ){% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n ,0\n ,{{ limit_num }}\n ),\n {{ delimiter_text }}\n )\n {%- else %}\n listagg(\n {{ measure }},\n {{ delimiter_text }}\n )\n {% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n {%- endif %}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.32531, "supported_languages": null}, "macro.dbt.datediff": {"name": "datediff", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "unique_id": "macro.dbt.datediff", "macro_sql": "{% macro datediff(first_date, second_date, datepart) %}\n {{ return(adapter.dispatch('datediff', 'dbt')(first_date, second_date, datepart)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.3256168, "supported_languages": null}, "macro.dbt.default__datediff": {"name": "default__datediff", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "unique_id": "macro.dbt.default__datediff", "macro_sql": "{% macro default__datediff(first_date, second_date, datepart) -%}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.325771, "supported_languages": null}, "macro.dbt.safe_cast": {"name": "safe_cast", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "unique_id": "macro.dbt.safe_cast", "macro_sql": "{% macro safe_cast(field, type) %}\n {{ return(adapter.dispatch('safe_cast', 'dbt') (field, type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__safe_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.326041, "supported_languages": null}, "macro.dbt.default__safe_cast": {"name": "default__safe_cast", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "unique_id": "macro.dbt.default__safe_cast", "macro_sql": "{% macro default__safe_cast(field, type) %}\n {# most databases don't support this function yet\n so we just need to use cast #}\n cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.326178, "supported_languages": null}, "macro.dbt.hash": {"name": "hash", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "unique_id": "macro.dbt.hash", "macro_sql": "{% macro hash(field) -%}\n {{ return(adapter.dispatch('hash', 'dbt') (field)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__hash"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.326423, "supported_languages": null}, "macro.dbt.default__hash": {"name": "default__hash", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "unique_id": "macro.dbt.default__hash", "macro_sql": "{% macro default__hash(field) -%}\n md5(cast({{ field }} as {{ api.Column.translate_type('string') }}))\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.326575, "supported_languages": null}, "macro.dbt.cast_bool_to_text": {"name": "cast_bool_to_text", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/cast_bool_to_text.sql", "original_file_path": "macros/utils/cast_bool_to_text.sql", "unique_id": "macro.dbt.cast_bool_to_text", "macro_sql": "{% macro cast_bool_to_text(field) %}\n {{ adapter.dispatch('cast_bool_to_text', 'dbt') (field) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.3267999, "supported_languages": null}, "macro.dbt.default__cast_bool_to_text": {"name": "default__cast_bool_to_text", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/cast_bool_to_text.sql", "original_file_path": "macros/utils/cast_bool_to_text.sql", "unique_id": "macro.dbt.default__cast_bool_to_text", "macro_sql": "{% macro default__cast_bool_to_text(field) %}\n cast({{ field }} as {{ api.Column.translate_type('string') }})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.3269491, "supported_languages": null}, "macro.dbt.any_value": {"name": "any_value", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "unique_id": "macro.dbt.any_value", "macro_sql": "{% macro any_value(expression) -%}\n {{ return(adapter.dispatch('any_value', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__any_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.327177, "supported_languages": null}, "macro.dbt.default__any_value": {"name": "default__any_value", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "unique_id": "macro.dbt.default__any_value", "macro_sql": "{% macro default__any_value(expression) -%}\n\n any_value({{ expression }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.327277, "supported_languages": null}, "macro.dbt.position": {"name": "position", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "unique_id": "macro.dbt.position", "macro_sql": "{% macro position(substring_text, string_text) -%}\n {{ return(adapter.dispatch('position', 'dbt') (substring_text, string_text)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__position"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.327533, "supported_languages": null}, "macro.dbt.default__position": {"name": "default__position", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "unique_id": "macro.dbt.default__position", "macro_sql": "{% macro default__position(substring_text, string_text) %}\n\n position(\n {{ substring_text }} in {{ string_text }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.327657, "supported_languages": null}, "macro.dbt.string_literal": {"name": "string_literal", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/literal.sql", "original_file_path": "macros/utils/literal.sql", "unique_id": "macro.dbt.string_literal", "macro_sql": "{%- macro string_literal(value) -%}\n {{ return(adapter.dispatch('string_literal', 'dbt') (value)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__string_literal"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.327879, "supported_languages": null}, "macro.dbt.default__string_literal": {"name": "default__string_literal", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/literal.sql", "original_file_path": "macros/utils/literal.sql", "unique_id": "macro.dbt.default__string_literal", "macro_sql": "{% macro default__string_literal(value) -%}\n '{{ value }}'\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.3280482, "supported_languages": null}, "macro.dbt.type_string": {"name": "type_string", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_string", "macro_sql": "\n\n{%- macro type_string() -%}\n {{ return(adapter.dispatch('type_string', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.328922, "supported_languages": null}, "macro.dbt.default__type_string": {"name": "default__type_string", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_string", "macro_sql": "{% macro default__type_string() %}\n {{ return(api.Column.translate_type(\"string\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.3290722, "supported_languages": null}, "macro.dbt.type_timestamp": {"name": "type_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_timestamp", "macro_sql": "\n\n{%- macro type_timestamp() -%}\n {{ return(adapter.dispatch('type_timestamp', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.329227, "supported_languages": null}, "macro.dbt.default__type_timestamp": {"name": "default__type_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_timestamp", "macro_sql": "{% macro default__type_timestamp() %}\n {{ return(api.Column.translate_type(\"timestamp\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.329368, "supported_languages": null}, "macro.dbt.type_float": {"name": "type_float", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_float", "macro_sql": "\n\n{%- macro type_float() -%}\n {{ return(adapter.dispatch('type_float', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.329519, "supported_languages": null}, "macro.dbt.default__type_float": {"name": "default__type_float", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_float", "macro_sql": "{% macro default__type_float() %}\n {{ return(api.Column.translate_type(\"float\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.3296561, "supported_languages": null}, "macro.dbt.type_numeric": {"name": "type_numeric", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_numeric", "macro_sql": "\n\n{%- macro type_numeric() -%}\n {{ return(adapter.dispatch('type_numeric', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.32981, "supported_languages": null}, "macro.dbt.default__type_numeric": {"name": "default__type_numeric", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_numeric", "macro_sql": "{% macro default__type_numeric() %}\n {{ return(api.Column.numeric_type(\"numeric\", 28, 6)) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.32998, "supported_languages": null}, "macro.dbt.type_bigint": {"name": "type_bigint", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_bigint", "macro_sql": "\n\n{%- macro type_bigint() -%}\n {{ return(adapter.dispatch('type_bigint', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.330132, "supported_languages": null}, "macro.dbt.default__type_bigint": {"name": "default__type_bigint", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_bigint", "macro_sql": "{% macro default__type_bigint() %}\n {{ return(api.Column.translate_type(\"bigint\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.330274, "supported_languages": null}, "macro.dbt.type_int": {"name": "type_int", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_int", "macro_sql": "\n\n{%- macro type_int() -%}\n {{ return(adapter.dispatch('type_int', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.330425, "supported_languages": null}, "macro.dbt.default__type_int": {"name": "default__type_int", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_int", "macro_sql": "{%- macro default__type_int() -%}\n {{ return(api.Column.translate_type(\"integer\")) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.330563, "supported_languages": null}, "macro.dbt.type_boolean": {"name": "type_boolean", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_boolean", "macro_sql": "\n\n{%- macro type_boolean() -%}\n {{ return(adapter.dispatch('type_boolean', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_boolean"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.33071, "supported_languages": null}, "macro.dbt.default__type_boolean": {"name": "default__type_boolean", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_boolean", "macro_sql": "{%- macro default__type_boolean() -%}\n {{ return(api.Column.translate_type(\"boolean\")) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.330843, "supported_languages": null}, "macro.dbt.array_concat": {"name": "array_concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_concat.sql", "original_file_path": "macros/utils/array_concat.sql", "unique_id": "macro.dbt.array_concat", "macro_sql": "{% macro array_concat(array_1, array_2) -%}\n {{ return(adapter.dispatch('array_concat', 'dbt')(array_1, array_2)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__array_concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.331111, "supported_languages": null}, "macro.dbt.default__array_concat": {"name": "default__array_concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_concat.sql", "original_file_path": "macros/utils/array_concat.sql", "unique_id": "macro.dbt.default__array_concat", "macro_sql": "{% macro default__array_concat(array_1, array_2) -%}\n array_cat({{ array_1 }}, {{ array_2 }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.331239, "supported_languages": null}, "macro.dbt.bool_or": {"name": "bool_or", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "unique_id": "macro.dbt.bool_or", "macro_sql": "{% macro bool_or(expression) -%}\n {{ return(adapter.dispatch('bool_or', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__bool_or"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.331472, "supported_languages": null}, "macro.dbt.default__bool_or": {"name": "default__bool_or", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "unique_id": "macro.dbt.default__bool_or", "macro_sql": "{% macro default__bool_or(expression) -%}\n\n bool_or({{ expression }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.3315709, "supported_languages": null}, "macro.dbt.last_day": {"name": "last_day", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt.last_day", "macro_sql": "{% macro last_day(date, datepart) %}\n {{ return(adapter.dispatch('last_day', 'dbt') (date, datepart)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.3319528, "supported_languages": null}, "macro.dbt.default_last_day": {"name": "default_last_day", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt.default_last_day", "macro_sql": "\n\n{%- macro default_last_day(date, datepart) -%}\n cast(\n {{dbt.dateadd('day', '-1',\n dbt.dateadd(datepart, '1', dbt.date_trunc(datepart, date))\n )}}\n as date)\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.332203, "supported_languages": null}, "macro.dbt.default__last_day": {"name": "default__last_day", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt.default__last_day", "macro_sql": "{% macro default__last_day(date, datepart) -%}\n {{dbt.default_last_day(date, datepart)}}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.332347, "supported_languages": null}, "macro.dbt.split_part": {"name": "split_part", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt.split_part", "macro_sql": "{% macro split_part(string_text, delimiter_text, part_number) %}\n {{ return(adapter.dispatch('split_part', 'dbt') (string_text, delimiter_text, part_number)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.332816, "supported_languages": null}, "macro.dbt.default__split_part": {"name": "default__split_part", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt.default__split_part", "macro_sql": "{% macro default__split_part(string_text, delimiter_text, part_number) %}\n\n split_part(\n {{ string_text }},\n {{ delimiter_text }},\n {{ part_number }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.3329742, "supported_languages": null}, "macro.dbt._split_part_negative": {"name": "_split_part_negative", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt._split_part_negative", "macro_sql": "{% macro _split_part_negative(string_text, delimiter_text, part_number) %}\n\n split_part(\n {{ string_text }},\n {{ delimiter_text }},\n length({{ string_text }})\n - length(\n replace({{ string_text }}, {{ delimiter_text }}, '')\n ) + 2 + {{ part_number }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.33318, "supported_languages": null}, "macro.dbt.date_trunc": {"name": "date_trunc", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "unique_id": "macro.dbt.date_trunc", "macro_sql": "{% macro date_trunc(datepart, date) -%}\n {{ return(adapter.dispatch('date_trunc', 'dbt') (datepart, date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.3334389, "supported_languages": null}, "macro.dbt.default__date_trunc": {"name": "default__date_trunc", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "unique_id": "macro.dbt.default__date_trunc", "macro_sql": "{% macro default__date_trunc(datepart, date) -%}\n date_trunc('{{datepart}}', {{date}})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.333565, "supported_languages": null}, "macro.dbt.array_construct": {"name": "array_construct", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "unique_id": "macro.dbt.array_construct", "macro_sql": "{% macro array_construct(inputs=[], data_type=api.Column.translate_type('integer')) -%}\n {{ return(adapter.dispatch('array_construct', 'dbt')(inputs, data_type)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__array_construct"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.333921, "supported_languages": null}, "macro.dbt.default__array_construct": {"name": "default__array_construct", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "unique_id": "macro.dbt.default__array_construct", "macro_sql": "{% macro default__array_construct(inputs, data_type) -%}\n {% if inputs|length > 0 %}\n array[ {{ inputs|join(' , ') }} ]\n {% else %}\n array[]::{{data_type}}[]\n {% endif %}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.334165, "supported_languages": null}, "macro.dbt.array_append": {"name": "array_append", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_append.sql", "original_file_path": "macros/utils/array_append.sql", "unique_id": "macro.dbt.array_append", "macro_sql": "{% macro array_append(array, new_element) -%}\n {{ return(adapter.dispatch('array_append', 'dbt')(array, new_element)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__array_append"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.334435, "supported_languages": null}, "macro.dbt.default__array_append": {"name": "default__array_append", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_append.sql", "original_file_path": "macros/utils/array_append.sql", "unique_id": "macro.dbt.default__array_append", "macro_sql": "{% macro default__array_append(array, new_element) -%}\n array_append({{ array }}, {{ new_element }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.3345642, "supported_languages": null}, "macro.dbt.create_schema": {"name": "create_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.create_schema", "macro_sql": "{% macro create_schema(relation) -%}\n {{ adapter.dispatch('create_schema', 'dbt')(relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__create_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.334985, "supported_languages": null}, "macro.dbt.default__create_schema": {"name": "default__create_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.default__create_schema", "macro_sql": "{% macro default__create_schema(relation) -%}\n {%- call statement('create_schema') -%}\n create schema if not exists {{ relation.without_identifier() }}\n {% endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.3351932, "supported_languages": null}, "macro.dbt.drop_schema": {"name": "drop_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.drop_schema", "macro_sql": "{% macro drop_schema(relation) -%}\n {{ adapter.dispatch('drop_schema', 'dbt')(relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.335364, "supported_languages": null}, "macro.dbt.default__drop_schema": {"name": "default__drop_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.default__drop_schema", "macro_sql": "{% macro default__drop_schema(relation) -%}\n {%- call statement('drop_schema') -%}\n drop schema if exists {{ relation.without_identifier() }} cascade\n {% endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.335538, "supported_languages": null}, "macro.dbt.current_timestamp": {"name": "current_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.current_timestamp", "macro_sql": "{%- macro current_timestamp() -%}\n {{ adapter.dispatch('current_timestamp', 'dbt')() }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.3360069, "supported_languages": null}, "macro.dbt.default__current_timestamp": {"name": "default__current_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__current_timestamp", "macro_sql": "{% macro default__current_timestamp() -%}\n {{ exceptions.raise_not_implemented(\n 'current_timestamp macro not implemented for adapter ' + adapter.type()) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.33616, "supported_languages": null}, "macro.dbt.snapshot_get_time": {"name": "snapshot_get_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.snapshot_get_time", "macro_sql": "\n\n{%- macro snapshot_get_time() -%}\n {{ adapter.dispatch('snapshot_get_time', 'dbt')() }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.3363001, "supported_languages": null}, "macro.dbt.default__snapshot_get_time": {"name": "default__snapshot_get_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__snapshot_get_time", "macro_sql": "{% macro default__snapshot_get_time() %}\n {{ current_timestamp() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.336406, "supported_languages": null}, "macro.dbt.current_timestamp_backcompat": {"name": "current_timestamp_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.current_timestamp_backcompat", "macro_sql": "{% macro current_timestamp_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_backcompat', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.33674, "supported_languages": null}, "macro.dbt.default__current_timestamp_backcompat": {"name": "default__current_timestamp_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__current_timestamp_backcompat", "macro_sql": "{% macro default__current_timestamp_backcompat() %}\n current_timestamp::timestamp\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.336844, "supported_languages": null}, "macro.dbt.current_timestamp_in_utc_backcompat": {"name": "current_timestamp_in_utc_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.current_timestamp_in_utc_backcompat", "macro_sql": "{% macro current_timestamp_in_utc_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_in_utc_backcompat', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.337016, "supported_languages": null}, "macro.dbt.default__current_timestamp_in_utc_backcompat": {"name": "default__current_timestamp_in_utc_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__current_timestamp_in_utc_backcompat", "macro_sql": "{% macro default__current_timestamp_in_utc_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_backcompat', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.current_timestamp_backcompat", "macro.dbt_postgres.postgres__current_timestamp_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.337172, "supported_languages": null}, "macro.dbt.get_create_index_sql": {"name": "get_create_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.get_create_index_sql", "macro_sql": "{% macro get_create_index_sql(relation, index_dict) -%}\n {{ return(adapter.dispatch('get_create_index_sql', 'dbt')(relation, index_dict)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.337945, "supported_languages": null}, "macro.dbt.default__get_create_index_sql": {"name": "default__get_create_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__get_create_index_sql", "macro_sql": "{% macro default__get_create_index_sql(relation, index_dict) -%}\n {% do return(None) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.338079, "supported_languages": null}, "macro.dbt.create_indexes": {"name": "create_indexes", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.create_indexes", "macro_sql": "{% macro create_indexes(relation) -%}\n {{ adapter.dispatch('create_indexes', 'dbt')(relation) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.338229, "supported_languages": null}, "macro.dbt.default__create_indexes": {"name": "default__create_indexes", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__create_indexes", "macro_sql": "{% macro default__create_indexes(relation) -%}\n {%- set _indexes = config.get('indexes', default=[]) -%}\n\n {% for _index_dict in _indexes %}\n {% set create_index_sql = get_create_index_sql(relation, _index_dict) %}\n {% if create_index_sql %}\n {% do run_query(create_index_sql) %}\n {% endif %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_create_index_sql", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.338599, "supported_languages": null}, "macro.dbt.get_drop_index_sql": {"name": "get_drop_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.get_drop_index_sql", "macro_sql": "{% macro get_drop_index_sql(relation, index_name) -%}\n {{ adapter.dispatch('get_drop_index_sql', 'dbt')(relation, index_name) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_drop_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.338772, "supported_languages": null}, "macro.dbt.default__get_drop_index_sql": {"name": "default__get_drop_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__get_drop_index_sql", "macro_sql": "{% macro default__get_drop_index_sql(relation, index_name) -%}\n {{ exceptions.raise_compiler_error(\"`get_drop_index_sql has not been implemented for this adapter.\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.338897, "supported_languages": null}, "macro.dbt.get_show_indexes_sql": {"name": "get_show_indexes_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.get_show_indexes_sql", "macro_sql": "{% macro get_show_indexes_sql(relation) -%}\n {{ adapter.dispatch('get_show_indexes_sql', 'dbt')(relation) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_show_indexes_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.339038, "supported_languages": null}, "macro.dbt.default__get_show_indexes_sql": {"name": "default__get_show_indexes_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__get_show_indexes_sql", "macro_sql": "{% macro default__get_show_indexes_sql(relation) -%}\n {{ exceptions.raise_compiler_error(\"`get_show_indexes_sql has not been implemented for this adapter.\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.3391519, "supported_languages": null}, "macro.dbt.make_intermediate_relation": {"name": "make_intermediate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.make_intermediate_relation", "macro_sql": "{% macro make_intermediate_relation(base_relation, suffix='__dbt_tmp') %}\n {{ return(adapter.dispatch('make_intermediate_relation', 'dbt')(base_relation, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_intermediate_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.340895, "supported_languages": null}, "macro.dbt.default__make_intermediate_relation": {"name": "default__make_intermediate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__make_intermediate_relation", "macro_sql": "{% macro default__make_intermediate_relation(base_relation, suffix) %}\n {{ return(default__make_temp_relation(base_relation, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.3410492, "supported_languages": null}, "macro.dbt.make_temp_relation": {"name": "make_temp_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.make_temp_relation", "macro_sql": "{% macro make_temp_relation(base_relation, suffix='__dbt_tmp') %}\n {{ return(adapter.dispatch('make_temp_relation', 'dbt')(base_relation, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.34125, "supported_languages": null}, "macro.dbt.default__make_temp_relation": {"name": "default__make_temp_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__make_temp_relation", "macro_sql": "{% macro default__make_temp_relation(base_relation, suffix) %}\n {%- set temp_identifier = base_relation.identifier ~ suffix -%}\n {%- set temp_relation = base_relation.incorporate(\n path={\"identifier\": temp_identifier}) -%}\n\n {{ return(temp_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.341522, "supported_languages": null}, "macro.dbt.make_backup_relation": {"name": "make_backup_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.make_backup_relation", "macro_sql": "{% macro make_backup_relation(base_relation, backup_relation_type, suffix='__dbt_backup') %}\n {{ return(adapter.dispatch('make_backup_relation', 'dbt')(base_relation, backup_relation_type, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_backup_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.34175, "supported_languages": null}, "macro.dbt.default__make_backup_relation": {"name": "default__make_backup_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__make_backup_relation", "macro_sql": "{% macro default__make_backup_relation(base_relation, backup_relation_type, suffix) %}\n {%- set backup_identifier = base_relation.identifier ~ suffix -%}\n {%- set backup_relation = base_relation.incorporate(\n path={\"identifier\": backup_identifier},\n type=backup_relation_type\n ) -%}\n {{ return(backup_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.342047, "supported_languages": null}, "macro.dbt.truncate_relation": {"name": "truncate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.truncate_relation", "macro_sql": "{% macro truncate_relation(relation) -%}\n {{ return(adapter.dispatch('truncate_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__truncate_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.342222, "supported_languages": null}, "macro.dbt.default__truncate_relation": {"name": "default__truncate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__truncate_relation", "macro_sql": "{% macro default__truncate_relation(relation) -%}\n {% call statement('truncate_relation') -%}\n truncate table {{ relation }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.3424551, "supported_languages": null}, "macro.dbt.get_or_create_relation": {"name": "get_or_create_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.get_or_create_relation", "macro_sql": "{% macro get_or_create_relation(database, schema, identifier, type) -%}\n {{ return(adapter.dispatch('get_or_create_relation', 'dbt')(database, schema, identifier, type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_or_create_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.342689, "supported_languages": null}, "macro.dbt.default__get_or_create_relation": {"name": "default__get_or_create_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__get_or_create_relation", "macro_sql": "{% macro default__get_or_create_relation(database, schema, identifier, type) %}\n {%- set target_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) %}\n\n {% if target_relation %}\n {% do return([true, target_relation]) %}\n {% endif %}\n\n {%- set new_relation = api.Relation.create(\n database=database,\n schema=schema,\n identifier=identifier,\n type=type\n ) -%}\n {% do return([false, new_relation]) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.343215, "supported_languages": null}, "macro.dbt.load_cached_relation": {"name": "load_cached_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.load_cached_relation", "macro_sql": "{% macro load_cached_relation(relation) %}\n {% do return(adapter.get_relation(\n database=relation.database,\n schema=relation.schema,\n identifier=relation.identifier\n )) -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.3434381, "supported_languages": null}, "macro.dbt.load_relation": {"name": "load_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.load_relation", "macro_sql": "{% macro load_relation(relation) %}\n {{ return(load_cached_relation(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.343574, "supported_languages": null}, "macro.dbt.collect_freshness": {"name": "collect_freshness", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "unique_id": "macro.dbt.collect_freshness", "macro_sql": "{% macro collect_freshness(source, loaded_at_field, filter) %}\n {{ return(adapter.dispatch('collect_freshness', 'dbt')(source, loaded_at_field, filter))}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.343968, "supported_languages": null}, "macro.dbt.default__collect_freshness": {"name": "default__collect_freshness", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "unique_id": "macro.dbt.default__collect_freshness", "macro_sql": "{% macro default__collect_freshness(source, loaded_at_field, filter) %}\n {% call statement('collect_freshness', fetch_result=True, auto_begin=False) -%}\n select\n max({{ loaded_at_field }}) as max_loaded_at,\n {{ current_timestamp() }} as snapshotted_at\n from {{ source }}\n {% if filter %}\n where {{ filter }}\n {% endif %}\n {% endcall %}\n {{ return(load_result('collect_freshness')) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.344341, "supported_languages": null}, "macro.dbt.validate_sql": {"name": "validate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/validate_sql.sql", "original_file_path": "macros/adapters/validate_sql.sql", "unique_id": "macro.dbt.validate_sql", "macro_sql": "{% macro validate_sql(sql) -%}\n {{ return(adapter.dispatch('validate_sql', 'dbt')(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__validate_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.3446, "supported_languages": null}, "macro.dbt.default__validate_sql": {"name": "default__validate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/validate_sql.sql", "original_file_path": "macros/adapters/validate_sql.sql", "unique_id": "macro.dbt.default__validate_sql", "macro_sql": "{% macro default__validate_sql(sql) -%}\n {% call statement('validate_sql') -%}\n explain {{ sql }}\n {% endcall %}\n {{ return(load_result('validate_sql')) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.344845, "supported_languages": null}, "macro.dbt.copy_grants": {"name": "copy_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.copy_grants", "macro_sql": "{% macro copy_grants() %}\n {{ return(adapter.dispatch('copy_grants', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.346463, "supported_languages": null}, "macro.dbt.default__copy_grants": {"name": "default__copy_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__copy_grants", "macro_sql": "{% macro default__copy_grants() %}\n {{ return(True) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.346578, "supported_languages": null}, "macro.dbt.support_multiple_grantees_per_dcl_statement": {"name": "support_multiple_grantees_per_dcl_statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.support_multiple_grantees_per_dcl_statement", "macro_sql": "{% macro support_multiple_grantees_per_dcl_statement() %}\n {{ return(adapter.dispatch('support_multiple_grantees_per_dcl_statement', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__support_multiple_grantees_per_dcl_statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.346741, "supported_languages": null}, "macro.dbt.default__support_multiple_grantees_per_dcl_statement": {"name": "default__support_multiple_grantees_per_dcl_statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__support_multiple_grantees_per_dcl_statement", "macro_sql": "\n\n{%- macro default__support_multiple_grantees_per_dcl_statement() -%}\n {{ return(True) }}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.346853, "supported_languages": null}, "macro.dbt.should_revoke": {"name": "should_revoke", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.should_revoke", "macro_sql": "{% macro should_revoke(existing_relation, full_refresh_mode=True) %}\n\n {% if not existing_relation %}\n {#-- The table doesn't already exist, so no grants to copy over --#}\n {{ return(False) }}\n {% elif full_refresh_mode %}\n {#-- The object is being REPLACED -- whether grants are copied over depends on the value of user config --#}\n {{ return(copy_grants()) }}\n {% else %}\n {#-- The table is being merged/upserted/inserted -- grants will be carried over --#}\n {{ return(True) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.347172, "supported_languages": null}, "macro.dbt.get_show_grant_sql": {"name": "get_show_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_show_grant_sql", "macro_sql": "{% macro get_show_grant_sql(relation) %}\n {{ return(adapter.dispatch(\"get_show_grant_sql\", \"dbt\")(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_show_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.34734, "supported_languages": null}, "macro.dbt.default__get_show_grant_sql": {"name": "default__get_show_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_show_grant_sql", "macro_sql": "{% macro default__get_show_grant_sql(relation) %}\n show grants on {{ relation }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.347436, "supported_languages": null}, "macro.dbt.get_grant_sql": {"name": "get_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_grant_sql", "macro_sql": "{% macro get_grant_sql(relation, privilege, grantees) %}\n {{ return(adapter.dispatch('get_grant_sql', 'dbt')(relation, privilege, grantees)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.347645, "supported_languages": null}, "macro.dbt.default__get_grant_sql": {"name": "default__get_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_grant_sql", "macro_sql": "\n\n{%- macro default__get_grant_sql(relation, privilege, grantees) -%}\n grant {{ privilege }} on {{ relation }} to {{ grantees | join(', ') }}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.347832, "supported_languages": null}, "macro.dbt.get_revoke_sql": {"name": "get_revoke_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_revoke_sql", "macro_sql": "{% macro get_revoke_sql(relation, privilege, grantees) %}\n {{ return(adapter.dispatch('get_revoke_sql', 'dbt')(relation, privilege, grantees)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_revoke_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.348046, "supported_languages": null}, "macro.dbt.default__get_revoke_sql": {"name": "default__get_revoke_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_revoke_sql", "macro_sql": "\n\n{%- macro default__get_revoke_sql(relation, privilege, grantees) -%}\n revoke {{ privilege }} on {{ relation }} from {{ grantees | join(', ') }}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.3483021, "supported_languages": null}, "macro.dbt.get_dcl_statement_list": {"name": "get_dcl_statement_list", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_dcl_statement_list", "macro_sql": "{% macro get_dcl_statement_list(relation, grant_config, get_dcl_macro) %}\n {{ return(adapter.dispatch('get_dcl_statement_list', 'dbt')(relation, grant_config, get_dcl_macro)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_dcl_statement_list"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.348507, "supported_languages": null}, "macro.dbt.default__get_dcl_statement_list": {"name": "default__get_dcl_statement_list", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_dcl_statement_list", "macro_sql": "\n\n{%- macro default__get_dcl_statement_list(relation, grant_config, get_dcl_macro) -%}\n {#\n -- Unpack grant_config into specific privileges and the set of users who need them granted/revoked.\n -- Depending on whether this database supports multiple grantees per statement, pass in the list of\n -- all grantees per privilege, or (if not) template one statement per privilege-grantee pair.\n -- `get_dcl_macro` will be either `get_grant_sql` or `get_revoke_sql`\n #}\n {%- set dcl_statements = [] -%}\n {%- for privilege, grantees in grant_config.items() %}\n {%- if support_multiple_grantees_per_dcl_statement() and grantees -%}\n {%- set dcl = get_dcl_macro(relation, privilege, grantees) -%}\n {%- do dcl_statements.append(dcl) -%}\n {%- else -%}\n {%- for grantee in grantees -%}\n {% set dcl = get_dcl_macro(relation, privilege, [grantee]) %}\n {%- do dcl_statements.append(dcl) -%}\n {% endfor -%}\n {%- endif -%}\n {%- endfor -%}\n {{ return(dcl_statements) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.support_multiple_grantees_per_dcl_statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.349117, "supported_languages": null}, "macro.dbt.call_dcl_statements": {"name": "call_dcl_statements", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.call_dcl_statements", "macro_sql": "{% macro call_dcl_statements(dcl_statement_list) %}\n {{ return(adapter.dispatch(\"call_dcl_statements\", \"dbt\")(dcl_statement_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__call_dcl_statements"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.34929, "supported_languages": null}, "macro.dbt.default__call_dcl_statements": {"name": "default__call_dcl_statements", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__call_dcl_statements", "macro_sql": "{% macro default__call_dcl_statements(dcl_statement_list) %}\n {#\n -- By default, supply all grant + revoke statements in a single semicolon-separated block,\n -- so that they're all processed together.\n\n -- Some databases do not support this. Those adapters will need to override this macro\n -- to run each statement individually.\n #}\n {% call statement('grants') %}\n {% for dcl_statement in dcl_statement_list %}\n {{ dcl_statement }};\n {% endfor %}\n {% endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.3495119, "supported_languages": null}, "macro.dbt.apply_grants": {"name": "apply_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.apply_grants", "macro_sql": "{% macro apply_grants(relation, grant_config, should_revoke) %}\n {{ return(adapter.dispatch(\"apply_grants\", \"dbt\")(relation, grant_config, should_revoke)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.3497238, "supported_languages": null}, "macro.dbt.default__apply_grants": {"name": "default__apply_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__apply_grants", "macro_sql": "{% macro default__apply_grants(relation, grant_config, should_revoke=True) %}\n {#-- If grant_config is {} or None, this is a no-op --#}\n {% if grant_config %}\n {% if should_revoke %}\n {#-- We think previous grants may have carried over --#}\n {#-- Show current grants and calculate diffs --#}\n {% set current_grants_table = run_query(get_show_grant_sql(relation)) %}\n {% set current_grants_dict = adapter.standardize_grants_dict(current_grants_table) %}\n {% set needs_granting = diff_of_two_dicts(grant_config, current_grants_dict) %}\n {% set needs_revoking = diff_of_two_dicts(current_grants_dict, grant_config) %}\n {% if not (needs_granting or needs_revoking) %}\n {{ log('On ' ~ relation ~': All grants are in place, no revocation or granting needed.')}}\n {% endif %}\n {% else %}\n {#-- We don't think there's any chance of previous grants having carried over. --#}\n {#-- Jump straight to granting what the user has configured. --#}\n {% set needs_revoking = {} %}\n {% set needs_granting = grant_config %}\n {% endif %}\n {% if needs_granting or needs_revoking %}\n {% set revoke_statement_list = get_dcl_statement_list(relation, needs_revoking, get_revoke_sql) %}\n {% set grant_statement_list = get_dcl_statement_list(relation, needs_granting, get_grant_sql) %}\n {% set dcl_statement_list = revoke_statement_list + grant_statement_list %}\n {% if dcl_statement_list %}\n {{ call_dcl_statements(dcl_statement_list) }}\n {% endif %}\n {% endif %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.get_show_grant_sql", "macro.dbt.get_dcl_statement_list", "macro.dbt.call_dcl_statements"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.350772, "supported_languages": null}, "macro.dbt.get_show_sql": {"name": "get_show_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/show.sql", "original_file_path": "macros/adapters/show.sql", "unique_id": "macro.dbt.get_show_sql", "macro_sql": "{% macro get_show_sql(compiled_code, sql_header, limit) -%}\n {%- if sql_header -%}\n {{ sql_header }}\n {%- endif -%}\n {%- if limit is not none -%}\n {{ get_limit_subquery_sql(compiled_code, limit) }}\n {%- else -%}\n {{ compiled_code }}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_limit_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.351288, "supported_languages": null}, "macro.dbt.get_limit_subquery_sql": {"name": "get_limit_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/show.sql", "original_file_path": "macros/adapters/show.sql", "unique_id": "macro.dbt.get_limit_subquery_sql", "macro_sql": "{% macro get_limit_subquery_sql(sql, limit) %}\n {{ adapter.dispatch('get_limit_subquery_sql', 'dbt')(sql, limit) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_limit_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.3514712, "supported_languages": null}, "macro.dbt.default__get_limit_subquery_sql": {"name": "default__get_limit_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/show.sql", "original_file_path": "macros/adapters/show.sql", "unique_id": "macro.dbt.default__get_limit_subquery_sql", "macro_sql": "{% macro default__get_limit_subquery_sql(sql, limit) %}\n select *\n from (\n {{ sql }}\n ) as model_limit_subq\n limit {{ limit }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.351597, "supported_languages": null}, "macro.dbt.alter_column_comment": {"name": "alter_column_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.alter_column_comment", "macro_sql": "{% macro alter_column_comment(relation, column_dict) -%}\n {{ return(adapter.dispatch('alter_column_comment', 'dbt')(relation, column_dict)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.3522391, "supported_languages": null}, "macro.dbt.default__alter_column_comment": {"name": "default__alter_column_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.default__alter_column_comment", "macro_sql": "{% macro default__alter_column_comment(relation, column_dict) -%}\n {{ exceptions.raise_not_implemented(\n 'alter_column_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.352402, "supported_languages": null}, "macro.dbt.alter_relation_comment": {"name": "alter_relation_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.alter_relation_comment", "macro_sql": "{% macro alter_relation_comment(relation, relation_comment) -%}\n {{ return(adapter.dispatch('alter_relation_comment', 'dbt')(relation, relation_comment)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__alter_relation_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.352594, "supported_languages": null}, "macro.dbt.default__alter_relation_comment": {"name": "default__alter_relation_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.default__alter_relation_comment", "macro_sql": "{% macro default__alter_relation_comment(relation, relation_comment) -%}\n {{ exceptions.raise_not_implemented(\n 'alter_relation_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.35275, "supported_languages": null}, "macro.dbt.persist_docs": {"name": "persist_docs", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.persist_docs", "macro_sql": "{% macro persist_docs(relation, model, for_relation=true, for_columns=true) -%}\n {{ return(adapter.dispatch('persist_docs', 'dbt')(relation, model, for_relation, for_columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.353, "supported_languages": null}, "macro.dbt.default__persist_docs": {"name": "default__persist_docs", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.default__persist_docs", "macro_sql": "{% macro default__persist_docs(relation, model, for_relation, for_columns) -%}\n {% if for_relation and config.persist_relation_docs() and model.description %}\n {% do run_query(alter_relation_comment(relation, model.description)) %}\n {% endif %}\n\n {% if for_columns and config.persist_column_docs() and model.columns %}\n {% do run_query(alter_column_comment(relation, model.columns)) %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.alter_relation_comment", "macro.dbt.alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.3534431, "supported_languages": null}, "macro.dbt.get_catalog_relations": {"name": "get_catalog_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_catalog_relations", "macro_sql": "{% macro get_catalog_relations(information_schema, relations) -%}\n {{ return(adapter.dispatch('get_catalog_relations', 'dbt')(information_schema, relations)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_catalog_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.356006, "supported_languages": null}, "macro.dbt.default__get_catalog_relations": {"name": "default__get_catalog_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_catalog_relations", "macro_sql": "{% macro default__get_catalog_relations(information_schema, relations) -%}\n {% set typename = adapter.type() %}\n {% set msg -%}\n get_catalog_relations not implemented for {{ typename }}\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.356241, "supported_languages": null}, "macro.dbt.get_catalog": {"name": "get_catalog", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_catalog", "macro_sql": "{% macro get_catalog(information_schema, schemas) -%}\n {{ return(adapter.dispatch('get_catalog', 'dbt')(information_schema, schemas)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_catalog"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.356433, "supported_languages": null}, "macro.dbt.default__get_catalog": {"name": "default__get_catalog", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_catalog", "macro_sql": "{% macro default__get_catalog(information_schema, schemas) -%}\n\n {% set typename = adapter.type() %}\n {% set msg -%}\n get_catalog not implemented for {{ typename }}\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.356769, "supported_languages": null}, "macro.dbt.information_schema_name": {"name": "information_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.information_schema_name", "macro_sql": "{% macro information_schema_name(database) %}\n {{ return(adapter.dispatch('information_schema_name', 'dbt')(database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__information_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.356941, "supported_languages": null}, "macro.dbt.default__information_schema_name": {"name": "default__information_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__information_schema_name", "macro_sql": "{% macro default__information_schema_name(database) -%}\n {%- if database -%}\n {{ database }}.INFORMATION_SCHEMA\n {%- else -%}\n INFORMATION_SCHEMA\n {%- endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.357086, "supported_languages": null}, "macro.dbt.list_schemas": {"name": "list_schemas", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.list_schemas", "macro_sql": "{% macro list_schemas(database) -%}\n {{ return(adapter.dispatch('list_schemas', 'dbt')(database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__list_schemas"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.3572521, "supported_languages": null}, "macro.dbt.default__list_schemas": {"name": "default__list_schemas", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__list_schemas", "macro_sql": "{% macro default__list_schemas(database) -%}\n {% set sql %}\n select distinct schema_name\n from {{ information_schema_name(database) }}.SCHEMATA\n where catalog_name ilike '{{ database }}'\n {% endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.information_schema_name", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.3574789, "supported_languages": null}, "macro.dbt.check_schema_exists": {"name": "check_schema_exists", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.check_schema_exists", "macro_sql": "{% macro check_schema_exists(information_schema, schema) -%}\n {{ return(adapter.dispatch('check_schema_exists', 'dbt')(information_schema, schema)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__check_schema_exists"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.357675, "supported_languages": null}, "macro.dbt.default__check_schema_exists": {"name": "default__check_schema_exists", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__check_schema_exists", "macro_sql": "{% macro default__check_schema_exists(information_schema, schema) -%}\n {% set sql -%}\n select count(*)\n from {{ information_schema.replace(information_schema_view='SCHEMATA') }}\n where catalog_name='{{ information_schema.database }}'\n and schema_name='{{ schema }}'\n {%- endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.replace", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.3579562, "supported_languages": null}, "macro.dbt.list_relations_without_caching": {"name": "list_relations_without_caching", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.list_relations_without_caching", "macro_sql": "{% macro list_relations_without_caching(schema_relation) %}\n {{ return(adapter.dispatch('list_relations_without_caching', 'dbt')(schema_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__list_relations_without_caching"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.358133, "supported_languages": null}, "macro.dbt.default__list_relations_without_caching": {"name": "default__list_relations_without_caching", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__list_relations_without_caching", "macro_sql": "{% macro default__list_relations_without_caching(schema_relation) %}\n {{ exceptions.raise_not_implemented(\n 'list_relations_without_caching macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.3582861, "supported_languages": null}, "macro.dbt.get_relations": {"name": "get_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_relations", "macro_sql": "{% macro get_relations() %}\n {{ return(adapter.dispatch('get_relations', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.358447, "supported_languages": null}, "macro.dbt.default__get_relations": {"name": "default__get_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_relations", "macro_sql": "{% macro default__get_relations() %}\n {{ exceptions.raise_not_implemented(\n 'get_relations macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.3585951, "supported_languages": null}, "macro.dbt.get_relation_last_modified": {"name": "get_relation_last_modified", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_relation_last_modified", "macro_sql": "{% macro get_relation_last_modified(information_schema, relations) %}\n {{ return(adapter.dispatch('get_relation_last_modified', 'dbt')(information_schema, relations)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_relation_last_modified"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.358793, "supported_languages": null}, "macro.dbt.default__get_relation_last_modified": {"name": "default__get_relation_last_modified", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_relation_last_modified", "macro_sql": "{% macro default__get_relation_last_modified(information_schema, relations) %}\n {{ exceptions.raise_not_implemented(\n 'get_relation_last_modified macro not implemented for adapter ' + adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.3589592, "supported_languages": null}, "macro.dbt.get_columns_in_relation": {"name": "get_columns_in_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_columns_in_relation", "macro_sql": "{% macro get_columns_in_relation(relation) -%}\n {{ return(adapter.dispatch('get_columns_in_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.360992, "supported_languages": null}, "macro.dbt.default__get_columns_in_relation": {"name": "default__get_columns_in_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_columns_in_relation", "macro_sql": "{% macro default__get_columns_in_relation(relation) -%}\n {{ exceptions.raise_not_implemented(\n 'get_columns_in_relation macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.361143, "supported_languages": null}, "macro.dbt.sql_convert_columns_in_relation": {"name": "sql_convert_columns_in_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.sql_convert_columns_in_relation", "macro_sql": "{% macro sql_convert_columns_in_relation(table) -%}\n {% set columns = [] %}\n {% for row in table %}\n {% do columns.append(api.Column(*row)) %}\n {% endfor %}\n {{ return(columns) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.3614342, "supported_languages": null}, "macro.dbt.get_empty_subquery_sql": {"name": "get_empty_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_empty_subquery_sql", "macro_sql": "{% macro get_empty_subquery_sql(select_sql, select_sql_header=none) -%}\n {{ return(adapter.dispatch('get_empty_subquery_sql', 'dbt')(select_sql, select_sql_header)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_empty_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.361635, "supported_languages": null}, "macro.dbt.default__get_empty_subquery_sql": {"name": "default__get_empty_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_empty_subquery_sql", "macro_sql": "{% macro default__get_empty_subquery_sql(select_sql, select_sql_header=none) %}\n {%- if select_sql_header is not none -%}\n {{ select_sql_header }}\n {%- endif -%}\n select * from (\n {{ select_sql }}\n ) as __dbt_sbq\n where false\n limit 0\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.3618271, "supported_languages": null}, "macro.dbt.get_empty_schema_sql": {"name": "get_empty_schema_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_empty_schema_sql", "macro_sql": "{% macro get_empty_schema_sql(columns) -%}\n {{ return(adapter.dispatch('get_empty_schema_sql', 'dbt')(columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_empty_schema_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.361994, "supported_languages": null}, "macro.dbt.default__get_empty_schema_sql": {"name": "default__get_empty_schema_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_empty_schema_sql", "macro_sql": "{% macro default__get_empty_schema_sql(columns) %}\n {%- set col_err = [] -%}\n {%- set col_naked_numeric = [] -%}\n select\n {% for i in columns %}\n {%- set col = columns[i] -%}\n {%- if col['data_type'] is not defined -%}\n {%- do col_err.append(col['name']) -%}\n {#-- If this column's type is just 'numeric' then it is missing precision/scale, raise a warning --#}\n {%- elif col['data_type'].strip().lower() in ('numeric', 'decimal', 'number') -%}\n {%- do col_naked_numeric.append(col['name']) -%}\n {%- endif -%}\n {% set col_name = adapter.quote(col['name']) if col.get('quote') else col['name'] %}\n cast(null as {{ col['data_type'] }}) as {{ col_name }}{{ \", \" if not loop.last }}\n {%- endfor -%}\n {%- if (col_err | length) > 0 -%}\n {{ exceptions.column_type_missing(column_names=col_err) }}\n {%- elif (col_naked_numeric | length) > 0 -%}\n {{ exceptions.warn(\"Detected columns with numeric type and unspecified precision/scale, this can lead to unintended rounding: \" ~ col_naked_numeric ~ \"`\") }}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.363155, "supported_languages": null}, "macro.dbt.get_column_schema_from_query": {"name": "get_column_schema_from_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_column_schema_from_query", "macro_sql": "{% macro get_column_schema_from_query(select_sql, select_sql_header=none) -%}\n {% set columns = [] %}\n {# -- Using an 'empty subquery' here to get the same schema as the given select_sql statement, without necessitating a data scan.#}\n {% set sql = get_empty_subquery_sql(select_sql, select_sql_header) %}\n {% set column_schema = adapter.get_column_schema_from_query(sql) %}\n {{ return(column_schema) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_empty_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.363483, "supported_languages": null}, "macro.dbt.get_columns_in_query": {"name": "get_columns_in_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_columns_in_query", "macro_sql": "{% macro get_columns_in_query(select_sql) -%}\n {{ return(adapter.dispatch('get_columns_in_query', 'dbt')(select_sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.3636532, "supported_languages": null}, "macro.dbt.default__get_columns_in_query": {"name": "default__get_columns_in_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_columns_in_query", "macro_sql": "{% macro default__get_columns_in_query(select_sql) %}\n {% call statement('get_columns_in_query', fetch_result=True, auto_begin=False) -%}\n {{ get_empty_subquery_sql(select_sql) }}\n {% endcall %}\n {{ return(load_result('get_columns_in_query').table.columns | map(attribute='name') | list) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.get_empty_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.3639748, "supported_languages": null}, "macro.dbt.alter_column_type": {"name": "alter_column_type", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.alter_column_type", "macro_sql": "{% macro alter_column_type(relation, column_name, new_column_type) -%}\n {{ return(adapter.dispatch('alter_column_type', 'dbt')(relation, column_name, new_column_type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.364191, "supported_languages": null}, "macro.dbt.default__alter_column_type": {"name": "default__alter_column_type", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__alter_column_type", "macro_sql": "{% macro default__alter_column_type(relation, column_name, new_column_type) -%}\n {#\n 1. Create a new column (w/ temp name and correct type)\n 2. Copy data over to it\n 3. Drop the existing column (cascade!)\n 4. Rename the new column to existing column\n #}\n {%- set tmp_column = column_name + \"__dbt_alter\" -%}\n\n {% call statement('alter_column_type') %}\n alter table {{ relation }} add column {{ adapter.quote(tmp_column) }} {{ new_column_type }};\n update {{ relation }} set {{ adapter.quote(tmp_column) }} = {{ adapter.quote(column_name) }};\n alter table {{ relation }} drop column {{ adapter.quote(column_name) }} cascade;\n alter table {{ relation }} rename column {{ adapter.quote(tmp_column) }} to {{ adapter.quote(column_name) }}\n {% endcall %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.3647318, "supported_languages": null}, "macro.dbt.alter_relation_add_remove_columns": {"name": "alter_relation_add_remove_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.alter_relation_add_remove_columns", "macro_sql": "{% macro alter_relation_add_remove_columns(relation, add_columns = none, remove_columns = none) -%}\n {{ return(adapter.dispatch('alter_relation_add_remove_columns', 'dbt')(relation, add_columns, remove_columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__alter_relation_add_remove_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.364969, "supported_languages": null}, "macro.dbt.default__alter_relation_add_remove_columns": {"name": "default__alter_relation_add_remove_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__alter_relation_add_remove_columns", "macro_sql": "{% macro default__alter_relation_add_remove_columns(relation, add_columns, remove_columns) %}\n\n {% if add_columns is none %}\n {% set add_columns = [] %}\n {% endif %}\n {% if remove_columns is none %}\n {% set remove_columns = [] %}\n {% endif %}\n\n {% set sql -%}\n\n alter {{ relation.type }} {{ relation }}\n\n {% for column in add_columns %}\n add column {{ column.name }} {{ column.data_type }}{{ ',' if not loop.last }}\n {% endfor %}{{ ',' if add_columns and remove_columns }}\n\n {% for column in remove_columns %}\n drop column {{ column.name }}{{ ',' if not loop.last }}\n {% endfor %}\n\n {%- endset -%}\n\n {% do run_query(sql) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.365695, "supported_languages": null}, "macro.dbt.resolve_model_name": {"name": "resolve_model_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.resolve_model_name", "macro_sql": "{% macro resolve_model_name(input_model_name) %}\n {{ return(adapter.dispatch('resolve_model_name', 'dbt')(input_model_name)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__resolve_model_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.3671591, "supported_languages": null}, "macro.dbt.default__resolve_model_name": {"name": "default__resolve_model_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.default__resolve_model_name", "macro_sql": "\n\n{%- macro default__resolve_model_name(input_model_name) -%}\n {{ input_model_name | string | replace('\"', '\\\"') }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.36736, "supported_languages": null}, "macro.dbt.build_ref_function": {"name": "build_ref_function", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.build_ref_function", "macro_sql": "{% macro build_ref_function(model) %}\n\n {%- set ref_dict = {} -%}\n {%- for _ref in model.refs -%}\n {% set _ref_args = [_ref.get('package'), _ref['name']] if _ref.get('package') else [_ref['name'],] %}\n {%- set resolved = ref(*_ref_args, v=_ref.get('version')) -%}\n {%- if _ref.get('version') -%}\n {% do _ref_args.extend([\"v\" ~ _ref['version']]) %}\n {%- endif -%}\n {%- do ref_dict.update({_ref_args | join('.'): resolve_model_name(resolved)}) -%}\n {%- endfor -%}\n\ndef ref(*args, **kwargs):\n refs = {{ ref_dict | tojson }}\n key = '.'.join(args)\n version = kwargs.get(\"v\") or kwargs.get(\"version\")\n if version:\n key += f\".v{version}\"\n dbt_load_df_function = kwargs.get(\"dbt_load_df_function\")\n return dbt_load_df_function(refs[key])\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.resolve_model_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.368136, "supported_languages": null}, "macro.dbt.build_source_function": {"name": "build_source_function", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.build_source_function", "macro_sql": "{% macro build_source_function(model) %}\n\n {%- set source_dict = {} -%}\n {%- for _source in model.sources -%}\n {%- set resolved = source(*_source) -%}\n {%- do source_dict.update({_source | join('.'): resolve_model_name(resolved)}) -%}\n {%- endfor -%}\n\ndef source(*args, dbt_load_df_function):\n sources = {{ source_dict | tojson }}\n key = '.'.join(args)\n return dbt_load_df_function(sources[key])\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.resolve_model_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.3685062, "supported_languages": null}, "macro.dbt.build_config_dict": {"name": "build_config_dict", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.build_config_dict", "macro_sql": "{% macro build_config_dict(model) %}\n {%- set config_dict = {} -%}\n {% set config_dbt_used = zip(model.config.config_keys_used, model.config.config_keys_defaults) | list %}\n {%- for key, default in config_dbt_used -%}\n {# weird type testing with enum, would be much easier to write this logic in Python! #}\n {%- if key == \"language\" -%}\n {%- set value = \"python\" -%}\n {%- endif -%}\n {%- set value = model.config.get(key, default) -%}\n {%- do config_dict.update({key: value}) -%}\n {%- endfor -%}\nconfig_dict = {{ config_dict }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.369031, "supported_languages": null}, "macro.dbt.py_script_postfix": {"name": "py_script_postfix", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.py_script_postfix", "macro_sql": "{% macro py_script_postfix(model) %}\n# This part is user provided model code\n# you will need to copy the next section to run the code\n# COMMAND ----------\n# this part is dbt logic for get ref work, do not modify\n\n{{ build_ref_function(model ) }}\n{{ build_source_function(model ) }}\n{{ build_config_dict(model) }}\n\nclass config:\n def __init__(self, *args, **kwargs):\n pass\n\n @staticmethod\n def get(key, default=None):\n return config_dict.get(key, default)\n\nclass this:\n \"\"\"dbt.this() or dbt.this.identifier\"\"\"\n database = \"{{ this.database }}\"\n schema = \"{{ this.schema }}\"\n identifier = \"{{ this.identifier }}\"\n {% set this_relation_name = resolve_model_name(this) %}\n def __repr__(self):\n return '{{ this_relation_name }}'\n\n\nclass dbtObj:\n def __init__(self, load_df_function) -> None:\n self.source = lambda *args: source(*args, dbt_load_df_function=load_df_function)\n self.ref = lambda *args, **kwargs: ref(*args, **kwargs, dbt_load_df_function=load_df_function)\n self.config = config\n self.this = this()\n self.is_incremental = {{ is_incremental() }}\n\n# COMMAND ----------\n{{py_script_comment()}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.build_ref_function", "macro.dbt.build_source_function", "macro.dbt.build_config_dict", "macro.dbt.resolve_model_name", "macro.dbt.is_incremental", "macro.dbt.py_script_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.369459, "supported_languages": null}, "macro.dbt.py_script_comment": {"name": "py_script_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.py_script_comment", "macro_sql": "{%macro py_script_comment()%}\n{%endmacro%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.369528, "supported_languages": null}, "macro.dbt.test_unique": {"name": "test_unique", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_unique", "macro_sql": "{% test unique(model, column_name) %}\n {% set macro = adapter.dispatch('test_unique', 'dbt') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_unique"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.369996, "supported_languages": null}, "macro.dbt.test_not_null": {"name": "test_not_null", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_not_null", "macro_sql": "{% test not_null(model, column_name) %}\n {% set macro = adapter.dispatch('test_not_null', 'dbt') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_not_null"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.370202, "supported_languages": null}, "macro.dbt.test_accepted_values": {"name": "test_accepted_values", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_accepted_values", "macro_sql": "{% test accepted_values(model, column_name, values, quote=True) %}\n {% set macro = adapter.dispatch('test_accepted_values', 'dbt') %}\n {{ macro(model, column_name, values, quote) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.370464, "supported_languages": null}, "macro.dbt.test_relationships": {"name": "test_relationships", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_relationships", "macro_sql": "{% test relationships(model, column_name, to, field) %}\n {% set macro = adapter.dispatch('test_relationships', 'dbt') %}\n {{ macro(model, column_name, to, field) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_relationships"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.37072, "supported_languages": null}, "macro.dbt_utils.get_url_host": {"name": "get_url_host", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "unique_id": "macro.dbt_utils.get_url_host", "macro_sql": "{% macro get_url_host(field) -%}\n {{ return(adapter.dispatch('get_url_host', 'dbt_utils')(field)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_url_host"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.37105, "supported_languages": null}, "macro.dbt_utils.default__get_url_host": {"name": "default__get_url_host", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "unique_id": "macro.dbt_utils.default__get_url_host", "macro_sql": "{% macro default__get_url_host(field) -%}\n\n{%- set parsed =\n dbt.split_part(\n dbt.split_part(\n dbt.replace(\n dbt.replace(\n dbt.replace(field, \"'android-app://'\", \"''\"\n ), \"'http://'\", \"''\"\n ), \"'https://'\", \"''\"\n ), \"'/'\", 1\n ), \"'?'\", 1\n )\n\n-%}\n\n\n {{ dbt.safe_cast(\n parsed,\n dbt.type_string()\n )}}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.split_part", "macro.dbt.replace", "macro.dbt.safe_cast", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.3714979, "supported_languages": null}, "macro.dbt_utils.get_url_path": {"name": "get_url_path", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "unique_id": "macro.dbt_utils.get_url_path", "macro_sql": "{% macro get_url_path(field) -%}\n {{ return(adapter.dispatch('get_url_path', 'dbt_utils')(field)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_url_path"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.3719249, "supported_languages": null}, "macro.dbt_utils.default__get_url_path": {"name": "default__get_url_path", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "unique_id": "macro.dbt_utils.default__get_url_path", "macro_sql": "{% macro default__get_url_path(field) -%}\n\n {%- set stripped_url =\n dbt.replace(\n dbt.replace(field, \"'http://'\", \"''\"), \"'https://'\", \"''\")\n -%}\n\n {%- set first_slash_pos -%}\n coalesce(\n nullif({{ dbt.position(\"'/'\", stripped_url) }}, 0),\n {{ dbt.position(\"'?'\", stripped_url) }} - 1\n )\n {%- endset -%}\n\n {%- set parsed_path =\n dbt.split_part(\n dbt.right(\n stripped_url,\n dbt.length(stripped_url) ~ \"-\" ~ first_slash_pos\n ),\n \"'?'\", 1\n )\n -%}\n\n {{ dbt.safe_cast(\n parsed_path,\n dbt.type_string()\n )}}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.replace", "macro.dbt.position", "macro.dbt.split_part", "macro.dbt.right", "macro.dbt.length", "macro.dbt.safe_cast", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.372621, "supported_languages": null}, "macro.dbt_utils.get_url_parameter": {"name": "get_url_parameter", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "unique_id": "macro.dbt_utils.get_url_parameter", "macro_sql": "{% macro get_url_parameter(field, url_parameter) -%}\n {{ return(adapter.dispatch('get_url_parameter', 'dbt_utils')(field, url_parameter)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.3729122, "supported_languages": null}, "macro.dbt_utils.default__get_url_parameter": {"name": "default__get_url_parameter", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "unique_id": "macro.dbt_utils.default__get_url_parameter", "macro_sql": "{% macro default__get_url_parameter(field, url_parameter) -%}\n\n{%- set formatted_url_parameter = \"'\" + url_parameter + \"='\" -%}\n\n{%- set split = dbt.split_part(dbt.split_part(field, formatted_url_parameter, 2), \"'&'\", 1) -%}\n\nnullif({{ split }},'')\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.373209, "supported_languages": null}, "macro.dbt_utils.test_fewer_rows_than": {"name": "test_fewer_rows_than", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/fewer_rows_than.sql", "original_file_path": "macros/generic_tests/fewer_rows_than.sql", "unique_id": "macro.dbt_utils.test_fewer_rows_than", "macro_sql": "{% test fewer_rows_than(model, compare_model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_fewer_rows_than', 'dbt_utils')(model, compare_model, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_fewer_rows_than"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.3741922, "supported_languages": null}, "macro.dbt_utils.default__test_fewer_rows_than": {"name": "default__test_fewer_rows_than", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/fewer_rows_than.sql", "original_file_path": "macros/generic_tests/fewer_rows_than.sql", "unique_id": "macro.dbt_utils.default__test_fewer_rows_than", "macro_sql": "{% macro default__test_fewer_rows_than(model, compare_model, group_by_columns) %}\n\n{{ config(fail_calc = 'sum(coalesce(row_count_delta, 0))') }}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set join_gb_cols %}\n {% for c in group_by_columns %}\n and a.{{c}} = b.{{c}}\n {% endfor %}\n {% endset %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n{#-- We must add a fake join key in case additional grouping variables are not provided --#}\n{#-- Redshift does not allow for dynamically created join conditions (e.g. full join on 1 = 1 --#}\n{#-- The same logic is used in equal_rowcount. In case of changes, maintain consistent logic --#}\n{% set group_by_columns = ['id_dbtutils_test_fewer_rows_than'] + group_by_columns %}\n{% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n\n\nwith a as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_fewer_rows_than,\n count(*) as count_our_model \n from {{ model }}\n {{ groupby_gb_cols }}\n\n),\nb as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_fewer_rows_than,\n count(*) as count_comparison_model \n from {{ compare_model }}\n {{ groupby_gb_cols }}\n\n),\ncounts as (\n\n select\n\n {% for c in group_by_columns -%}\n a.{{c}} as {{c}}_a,\n b.{{c}} as {{c}}_b,\n {% endfor %}\n\n count_our_model,\n count_comparison_model\n from a\n full join b on \n a.id_dbtutils_test_fewer_rows_than = b.id_dbtutils_test_fewer_rows_than\n {{ join_gb_cols }}\n\n),\nfinal as (\n\n select *,\n case\n -- fail the test if we have more rows than the reference model and return the row count delta\n when count_our_model > count_comparison_model then (count_our_model - count_comparison_model)\n -- fail the test if they are the same number\n when count_our_model = count_comparison_model then 1\n -- pass the test if the delta is positive (i.e. return the number 0)\n else 0\n end as row_count_delta\n from counts\n\n)\n\nselect * from final\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.3751209, "supported_languages": null}, "macro.dbt_utils.test_equal_rowcount": {"name": "test_equal_rowcount", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equal_rowcount.sql", "original_file_path": "macros/generic_tests/equal_rowcount.sql", "unique_id": "macro.dbt_utils.test_equal_rowcount", "macro_sql": "{% test equal_rowcount(model, compare_model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_equal_rowcount', 'dbt_utils')(model, compare_model, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_equal_rowcount"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.375906, "supported_languages": null}, "macro.dbt_utils.default__test_equal_rowcount": {"name": "default__test_equal_rowcount", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equal_rowcount.sql", "original_file_path": "macros/generic_tests/equal_rowcount.sql", "unique_id": "macro.dbt_utils.default__test_equal_rowcount", "macro_sql": "{% macro default__test_equal_rowcount(model, compare_model, group_by_columns) %}\n\n{#-- Needs to be set at parse time, before we return '' below --#}\n{{ config(fail_calc = 'sum(coalesce(diff_count, 0))') }}\n\n{#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n{%- if not execute -%}\n {{ return('') }}\n{% endif %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(', ') + ', ' %}\n {% set join_gb_cols %}\n {% for c in group_by_columns %}\n and a.{{c}} = b.{{c}}\n {% endfor %}\n {% endset %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n{#-- We must add a fake join key in case additional grouping variables are not provided --#}\n{#-- Redshift does not allow for dynamically created join conditions (e.g. full join on 1 = 1 --#}\n{#-- The same logic is used in fewer_rows_than. In case of changes, maintain consistent logic --#}\n{% set group_by_columns = ['id_dbtutils_test_equal_rowcount'] + group_by_columns %}\n{% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n\nwith a as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_a \n from {{ model }}\n {{groupby_gb_cols}}\n\n\n),\nb as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_b \n from {{ compare_model }}\n {{groupby_gb_cols}}\n\n),\nfinal as (\n\n select\n \n {% for c in group_by_columns -%}\n a.{{c}} as {{c}}_a,\n b.{{c}} as {{c}}_b,\n {% endfor %}\n\n count_a,\n count_b,\n abs(count_a - count_b) as diff_count\n\n from a\n full join b\n on\n a.id_dbtutils_test_equal_rowcount = b.id_dbtutils_test_equal_rowcount\n {{join_gb_cols}}\n\n\n)\n\nselect * from final\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.376847, "supported_languages": null}, "macro.dbt_utils.test_relationships_where": {"name": "test_relationships_where", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/relationships_where.sql", "original_file_path": "macros/generic_tests/relationships_where.sql", "unique_id": "macro.dbt_utils.test_relationships_where", "macro_sql": "{% test relationships_where(model, column_name, to, field, from_condition=\"1=1\", to_condition=\"1=1\") %}\n {{ return(adapter.dispatch('test_relationships_where', 'dbt_utils')(model, column_name, to, field, from_condition, to_condition)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_relationships_where"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.3775518, "supported_languages": null}, "macro.dbt_utils.default__test_relationships_where": {"name": "default__test_relationships_where", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/relationships_where.sql", "original_file_path": "macros/generic_tests/relationships_where.sql", "unique_id": "macro.dbt_utils.default__test_relationships_where", "macro_sql": "{% macro default__test_relationships_where(model, column_name, to, field, from_condition=\"1=1\", to_condition=\"1=1\") %}\n\n{# T-SQL has no boolean data type so we use 1=1 which returns TRUE #}\n{# ref https://stackoverflow.com/a/7170753/3842610 #}\n\nwith left_table as (\n\n select\n {{column_name}} as id\n\n from {{model}}\n\n where {{column_name}} is not null\n and {{from_condition}}\n\n),\n\nright_table as (\n\n select\n {{field}} as id\n\n from {{to}}\n\n where {{field}} is not null\n and {{to_condition}}\n\n),\n\nexceptions as (\n\n select\n left_table.id,\n right_table.id as right_id\n\n from left_table\n\n left join right_table\n on left_table.id = right_table.id\n\n where right_table.id is null\n\n)\n\nselect * from exceptions\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.3778932, "supported_languages": null}, "macro.dbt_utils.test_recency": {"name": "test_recency", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/recency.sql", "original_file_path": "macros/generic_tests/recency.sql", "unique_id": "macro.dbt_utils.test_recency", "macro_sql": "{% test recency(model, field, datepart, interval, ignore_time_component=False, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_recency', 'dbt_utils')(model, field, datepart, interval, ignore_time_component, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_recency"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.3785799, "supported_languages": null}, "macro.dbt_utils.default__test_recency": {"name": "default__test_recency", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/recency.sql", "original_file_path": "macros/generic_tests/recency.sql", "unique_id": "macro.dbt_utils.default__test_recency", "macro_sql": "{% macro default__test_recency(model, field, datepart, interval, ignore_time_component, group_by_columns) %}\n\n{% set threshold = 'cast(' ~ dbt.dateadd(datepart, interval * -1, dbt.current_timestamp()) ~ ' as ' ~ ('date' if ignore_time_component else dbt.type_timestamp()) ~ ')' %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n\nwith recency as (\n\n select \n\n {{ select_gb_cols }}\n {% if ignore_time_component %}\n cast(max({{ field }}) as date) as most_recent\n {%- else %}\n max({{ field }}) as most_recent\n {%- endif %}\n\n from {{ model }}\n\n {{ groupby_gb_cols }}\n\n)\n\nselect\n\n {{ select_gb_cols }}\n most_recent,\n {{ threshold }} as threshold\n\nfrom recency\nwhere most_recent < {{ threshold }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.current_timestamp", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.379436, "supported_languages": null}, "macro.dbt_utils.test_not_constant": {"name": "test_not_constant", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_constant.sql", "original_file_path": "macros/generic_tests/not_constant.sql", "unique_id": "macro.dbt_utils.test_not_constant", "macro_sql": "{% test not_constant(model, column_name, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_not_constant', 'dbt_utils')(model, column_name, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_constant"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.3799, "supported_languages": null}, "macro.dbt_utils.default__test_not_constant": {"name": "default__test_not_constant", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_constant.sql", "original_file_path": "macros/generic_tests/not_constant.sql", "unique_id": "macro.dbt_utils.default__test_not_constant", "macro_sql": "{% macro default__test_not_constant(model, column_name, group_by_columns) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n\nselect\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n {{select_gb_cols}}\n count(distinct {{ column_name }}) as filler_column\n\nfrom {{ model }}\n\n {{groupby_gb_cols}}\n\nhaving count(distinct {{ column_name }}) = 1\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.380328, "supported_languages": null}, "macro.dbt_utils.test_accepted_range": {"name": "test_accepted_range", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/accepted_range.sql", "original_file_path": "macros/generic_tests/accepted_range.sql", "unique_id": "macro.dbt_utils.test_accepted_range", "macro_sql": "{% test accepted_range(model, column_name, min_value=none, max_value=none, inclusive=true) %}\n {{ return(adapter.dispatch('test_accepted_range', 'dbt_utils')(model, column_name, min_value, max_value, inclusive)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_accepted_range"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.380928, "supported_languages": null}, "macro.dbt_utils.default__test_accepted_range": {"name": "default__test_accepted_range", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/accepted_range.sql", "original_file_path": "macros/generic_tests/accepted_range.sql", "unique_id": "macro.dbt_utils.default__test_accepted_range", "macro_sql": "{% macro default__test_accepted_range(model, column_name, min_value=none, max_value=none, inclusive=true) %}\n\nwith meet_condition as(\n select *\n from {{ model }}\n),\n\nvalidation_errors as (\n select *\n from meet_condition\n where\n -- never true, defaults to an empty result set. Exists to ensure any combo of the `or` clauses below succeeds\n 1 = 2\n\n {%- if min_value is not none %}\n -- records with a value >= min_value are permitted. The `not` flips this to find records that don't meet the rule.\n or not {{ column_name }} > {{- \"=\" if inclusive }} {{ min_value }}\n {%- endif %}\n\n {%- if max_value is not none %}\n -- records with a value <= max_value are permitted. The `not` flips this to find records that don't meet the rule.\n or not {{ column_name }} < {{- \"=\" if inclusive }} {{ max_value }}\n {%- endif %}\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.38138, "supported_languages": null}, "macro.dbt_utils.test_not_accepted_values": {"name": "test_not_accepted_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_accepted_values.sql", "original_file_path": "macros/generic_tests/not_accepted_values.sql", "unique_id": "macro.dbt_utils.test_not_accepted_values", "macro_sql": "{% test not_accepted_values(model, column_name, values, quote=True) %}\n {{ return(adapter.dispatch('test_not_accepted_values', 'dbt_utils')(model, column_name, values, quote)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.381896, "supported_languages": null}, "macro.dbt_utils.default__test_not_accepted_values": {"name": "default__test_not_accepted_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_accepted_values.sql", "original_file_path": "macros/generic_tests/not_accepted_values.sql", "unique_id": "macro.dbt_utils.default__test_not_accepted_values", "macro_sql": "{% macro default__test_not_accepted_values(model, column_name, values, quote=True) %}\nwith all_values as (\n\n select distinct\n {{ column_name }} as value_field\n\n from {{ model }}\n\n),\n\nvalidation_errors as (\n\n select\n value_field\n\n from all_values\n where value_field in (\n {% for value in values -%}\n {% if quote -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {%- endfor %}\n )\n\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.382247, "supported_languages": null}, "macro.dbt_utils.test_at_least_one": {"name": "test_at_least_one", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/at_least_one.sql", "original_file_path": "macros/generic_tests/at_least_one.sql", "unique_id": "macro.dbt_utils.test_at_least_one", "macro_sql": "{% test at_least_one(model, column_name, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_at_least_one', 'dbt_utils')(model, column_name, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_at_least_one"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.3828712, "supported_languages": null}, "macro.dbt_utils.default__test_at_least_one": {"name": "default__test_at_least_one", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/at_least_one.sql", "original_file_path": "macros/generic_tests/at_least_one.sql", "unique_id": "macro.dbt_utils.default__test_at_least_one", "macro_sql": "{% macro default__test_at_least_one(model, column_name, group_by_columns) %}\n\n{% set pruned_cols = [column_name] %}\n\n{% if group_by_columns|length() > 0 %}\n\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n {% set pruned_cols = group_by_columns %}\n\n {% if column_name not in pruned_cols %}\n {% do pruned_cols.append(column_name) %}\n {% endif %}\n\n{% endif %}\n\n{% set select_pruned_cols = pruned_cols|join(' ,') %}\n\nselect *\nfrom (\n with pruned_rows as (\n select\n {{ select_pruned_cols }}\n from {{ model }}\n where {{ column_name }} is not null\n limit 1\n )\n select\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n {{select_gb_cols}}\n count({{ column_name }}) as filler_column\n\n from pruned_rows\n\n {{groupby_gb_cols}}\n\n having count({{ column_name }}) = 0\n\n) validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.3837261, "supported_languages": null}, "macro.dbt_utils.test_unique_combination_of_columns": {"name": "test_unique_combination_of_columns", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/unique_combination_of_columns.sql", "original_file_path": "macros/generic_tests/unique_combination_of_columns.sql", "unique_id": "macro.dbt_utils.test_unique_combination_of_columns", "macro_sql": "{% test unique_combination_of_columns(model, combination_of_columns, quote_columns=false) %}\n {{ return(adapter.dispatch('test_unique_combination_of_columns', 'dbt_utils')(model, combination_of_columns, quote_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_unique_combination_of_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.384324, "supported_languages": null}, "macro.dbt_utils.default__test_unique_combination_of_columns": {"name": "default__test_unique_combination_of_columns", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/unique_combination_of_columns.sql", "original_file_path": "macros/generic_tests/unique_combination_of_columns.sql", "unique_id": "macro.dbt_utils.default__test_unique_combination_of_columns", "macro_sql": "{% macro default__test_unique_combination_of_columns(model, combination_of_columns, quote_columns=false) %}\n\n{% if not quote_columns %}\n {%- set column_list=combination_of_columns %}\n{% elif quote_columns %}\n {%- set column_list=[] %}\n {% for column in combination_of_columns -%}\n {% set column_list = column_list.append( adapter.quote(column) ) %}\n {%- endfor %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`quote_columns` argument for unique_combination_of_columns test must be one of [True, False] Got: '\" ~ quote ~\"'.'\"\n ) }}\n{% endif %}\n\n{%- set columns_csv=column_list | join(', ') %}\n\n\nwith validation_errors as (\n\n select\n {{ columns_csv }}\n from {{ model }}\n group by {{ columns_csv }}\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.384942, "supported_languages": null}, "macro.dbt_utils.test_cardinality_equality": {"name": "test_cardinality_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/cardinality_equality.sql", "original_file_path": "macros/generic_tests/cardinality_equality.sql", "unique_id": "macro.dbt_utils.test_cardinality_equality", "macro_sql": "{% test cardinality_equality(model, column_name, to, field) %}\n {{ return(adapter.dispatch('test_cardinality_equality', 'dbt_utils')(model, column_name, to, field)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_cardinality_equality"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.3855639, "supported_languages": null}, "macro.dbt_utils.default__test_cardinality_equality": {"name": "default__test_cardinality_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/cardinality_equality.sql", "original_file_path": "macros/generic_tests/cardinality_equality.sql", "unique_id": "macro.dbt_utils.default__test_cardinality_equality", "macro_sql": "{% macro default__test_cardinality_equality(model, column_name, to, field) %}\n\n{# T-SQL does not let you use numbers as aliases for columns #}\n{# Thus, no \"GROUP BY 1\" #}\n\nwith table_a as (\nselect\n {{ column_name }},\n count(*) as num_rows\nfrom {{ model }}\ngroup by {{ column_name }}\n),\n\ntable_b as (\nselect\n {{ field }},\n count(*) as num_rows\nfrom {{ to }}\ngroup by {{ field }}\n),\n\nexcept_a as (\n select *\n from table_a\n {{ dbt.except() }}\n select *\n from table_b\n),\n\nexcept_b as (\n select *\n from table_b\n {{ dbt.except() }}\n select *\n from table_a\n),\n\nunioned as (\n select *\n from except_a\n union all\n select *\n from except_b\n)\n\nselect *\nfrom unioned\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.3859048, "supported_languages": null}, "macro.dbt_utils.test_expression_is_true": {"name": "test_expression_is_true", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/expression_is_true.sql", "original_file_path": "macros/generic_tests/expression_is_true.sql", "unique_id": "macro.dbt_utils.test_expression_is_true", "macro_sql": "{% test expression_is_true(model, expression, column_name=None) %}\n {{ return(adapter.dispatch('test_expression_is_true', 'dbt_utils')(model, expression, column_name)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.386295, "supported_languages": null}, "macro.dbt_utils.default__test_expression_is_true": {"name": "default__test_expression_is_true", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/expression_is_true.sql", "original_file_path": "macros/generic_tests/expression_is_true.sql", "unique_id": "macro.dbt_utils.default__test_expression_is_true", "macro_sql": "{% macro default__test_expression_is_true(model, expression, column_name) %}\n\n{% set column_list = '*' if should_store_failures() else \"1\" %}\n\nselect\n {{ column_list }}\nfrom {{ model }}\n{% if column_name is none %}\nwhere not({{ expression }})\n{%- else %}\nwhere not({{ column_name }} {{ expression }})\n{%- endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_store_failures"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.386633, "supported_languages": null}, "macro.dbt_utils.test_not_null_proportion": {"name": "test_not_null_proportion", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_null_proportion.sql", "original_file_path": "macros/generic_tests/not_null_proportion.sql", "unique_id": "macro.dbt_utils.test_not_null_proportion", "macro_sql": "{% macro test_not_null_proportion(model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_not_null_proportion', 'dbt_utils')(model, group_by_columns, **kwargs)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_null_proportion"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.387286, "supported_languages": null}, "macro.dbt_utils.default__test_not_null_proportion": {"name": "default__test_not_null_proportion", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_null_proportion.sql", "original_file_path": "macros/generic_tests/not_null_proportion.sql", "unique_id": "macro.dbt_utils.default__test_not_null_proportion", "macro_sql": "{% macro default__test_not_null_proportion(model, group_by_columns) %}\n\n{% set column_name = kwargs.get('column_name', kwargs.get('arg')) %}\n{% set at_least = kwargs.get('at_least', kwargs.get('arg')) %}\n{% set at_most = kwargs.get('at_most', kwargs.get('arg', 1)) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\nwith validation as (\n select\n {{select_gb_cols}}\n sum(case when {{ column_name }} is null then 0 else 1 end) / cast(count(*) as numeric) as not_null_proportion\n from {{ model }}\n {{groupby_gb_cols}}\n),\nvalidation_errors as (\n select\n {{select_gb_cols}}\n not_null_proportion\n from validation\n where not_null_proportion < {{ at_least }} or not_null_proportion > {{ at_most }}\n)\nselect\n *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.3880692, "supported_languages": null}, "macro.dbt_utils.test_sequential_values": {"name": "test_sequential_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/sequential_values.sql", "original_file_path": "macros/generic_tests/sequential_values.sql", "unique_id": "macro.dbt_utils.test_sequential_values", "macro_sql": "{% test sequential_values(model, column_name, interval=1, datepart=None, group_by_columns = []) %}\n\n {{ return(adapter.dispatch('test_sequential_values', 'dbt_utils')(model, column_name, interval, datepart, group_by_columns)) }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_sequential_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.3889139, "supported_languages": null}, "macro.dbt_utils.default__test_sequential_values": {"name": "default__test_sequential_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/sequential_values.sql", "original_file_path": "macros/generic_tests/sequential_values.sql", "unique_id": "macro.dbt_utils.default__test_sequential_values", "macro_sql": "{% macro default__test_sequential_values(model, column_name, interval=1, datepart=None, group_by_columns = []) %}\n\n{% set previous_column_name = \"previous_\" ~ dbt_utils.slugify(column_name) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(',') + ', ' %}\n {% set partition_gb_cols = 'partition by ' + group_by_columns|join(',') %}\n{% endif %}\n\nwith windowed as (\n\n select\n {{ select_gb_cols }}\n {{ column_name }},\n lag({{ column_name }}) over (\n {{partition_gb_cols}}\n order by {{ column_name }}\n ) as {{ previous_column_name }}\n from {{ model }}\n),\n\nvalidation_errors as (\n select\n *\n from windowed\n {% if datepart %}\n where not(cast({{ column_name }} as {{ dbt.type_timestamp() }})= cast({{ dbt.dateadd(datepart, interval, previous_column_name) }} as {{ dbt.type_timestamp() }}))\n {% else %}\n where not({{ column_name }} = {{ previous_column_name }} + {{ interval }})\n {% endif %}\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.slugify", "macro.dbt.type_timestamp", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.38978, "supported_languages": null}, "macro.dbt_utils.test_equality": {"name": "test_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equality.sql", "original_file_path": "macros/generic_tests/equality.sql", "unique_id": "macro.dbt_utils.test_equality", "macro_sql": "{% test equality(model, compare_model, compare_columns=None) %}\n {{ return(adapter.dispatch('test_equality', 'dbt_utils')(model, compare_model, compare_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_equality"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.3905249, "supported_languages": null}, "macro.dbt_utils.default__test_equality": {"name": "default__test_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equality.sql", "original_file_path": "macros/generic_tests/equality.sql", "unique_id": "macro.dbt_utils.default__test_equality", "macro_sql": "{% macro default__test_equality(model, compare_model, compare_columns=None) %}\n\n{% set set_diff %}\n count(*) + coalesce(abs(\n sum(case when which_diff = 'a_minus_b' then 1 else 0 end) -\n sum(case when which_diff = 'b_minus_a' then 1 else 0 end)\n ), 0)\n{% endset %}\n\n{#-- Needs to be set at parse time, before we return '' below --#}\n{{ config(fail_calc = set_diff) }}\n\n{#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n{%- if not execute -%}\n {{ return('') }}\n{% endif %}\n\n-- setup\n{%- do dbt_utils._is_relation(model, 'test_equality') -%}\n\n{#-\nIf the compare_cols arg is provided, we can run this test without querying the\ninformation schema\u00a0\u2014 this allows the model to be an ephemeral model\n-#}\n\n{%- if not compare_columns -%}\n {%- do dbt_utils._is_ephemeral(model, 'test_equality') -%}\n {%- set compare_columns = adapter.get_columns_in_relation(model) | map(attribute='quoted') -%}\n{%- endif -%}\n\n{% set compare_cols_csv = compare_columns | join(', ') %}\n\nwith a as (\n\n select * from {{ model }}\n\n),\n\nb as (\n\n select * from {{ compare_model }}\n\n),\n\na_minus_b as (\n\n select {{compare_cols_csv}} from a\n {{ dbt.except() }}\n select {{compare_cols_csv}} from b\n\n),\n\nb_minus_a as (\n\n select {{compare_cols_csv}} from b\n {{ dbt.except() }}\n select {{compare_cols_csv}} from a\n\n),\n\nunioned as (\n\n select 'a_minus_b' as which_diff, a_minus_b.* from a_minus_b\n union all\n select 'b_minus_a' as which_diff, b_minus_a.* from b_minus_a\n\n)\n\nselect * from unioned\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.39135, "supported_languages": null}, "macro.dbt_utils.test_not_empty_string": {"name": "test_not_empty_string", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_empty_string.sql", "original_file_path": "macros/generic_tests/not_empty_string.sql", "unique_id": "macro.dbt_utils.test_not_empty_string", "macro_sql": "{% test not_empty_string(model, column_name, trim_whitespace=true) %}\n\n {{ return(adapter.dispatch('test_not_empty_string', 'dbt_utils')(model, column_name, trim_whitespace)) }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_empty_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.3918169, "supported_languages": null}, "macro.dbt_utils.default__test_not_empty_string": {"name": "default__test_not_empty_string", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_empty_string.sql", "original_file_path": "macros/generic_tests/not_empty_string.sql", "unique_id": "macro.dbt_utils.default__test_not_empty_string", "macro_sql": "{% macro default__test_not_empty_string(model, column_name, trim_whitespace=true) %}\n\n with\n \n all_values as (\n\n select \n\n\n {% if trim_whitespace == true -%}\n\n trim({{ column_name }}) as {{ column_name }}\n\n {%- else -%}\n\n {{ column_name }}\n\n {%- endif %}\n \n from {{ model }}\n\n ),\n\n errors as (\n\n select * from all_values\n where {{ column_name }} = ''\n\n )\n\n select * from errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.392096, "supported_languages": null}, "macro.dbt_utils.test_mutually_exclusive_ranges": {"name": "test_mutually_exclusive_ranges", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/generic_tests/mutually_exclusive_ranges.sql", "unique_id": "macro.dbt_utils.test_mutually_exclusive_ranges", "macro_sql": "{% test mutually_exclusive_ranges(model, lower_bound_column, upper_bound_column, partition_by=None, gaps='allowed', zero_length_range_allowed=False) %}\n {{ return(adapter.dispatch('test_mutually_exclusive_ranges', 'dbt_utils')(model, lower_bound_column, upper_bound_column, partition_by, gaps, zero_length_range_allowed)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_mutually_exclusive_ranges"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.3954968, "supported_languages": null}, "macro.dbt_utils.default__test_mutually_exclusive_ranges": {"name": "default__test_mutually_exclusive_ranges", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/generic_tests/mutually_exclusive_ranges.sql", "unique_id": "macro.dbt_utils.default__test_mutually_exclusive_ranges", "macro_sql": "{% macro default__test_mutually_exclusive_ranges(model, lower_bound_column, upper_bound_column, partition_by=None, gaps='allowed', zero_length_range_allowed=False) %}\n{% if gaps == 'not_allowed' %}\n {% set allow_gaps_operator='=' %}\n {% set allow_gaps_operator_in_words='equal_to' %}\n{% elif gaps == 'allowed' %}\n {% set allow_gaps_operator='<=' %}\n {% set allow_gaps_operator_in_words='less_than_or_equal_to' %}\n{% elif gaps == 'required' %}\n {% set allow_gaps_operator='<' %}\n {% set allow_gaps_operator_in_words='less_than' %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`gaps` argument for mutually_exclusive_ranges test must be one of ['not_allowed', 'allowed', 'required'] Got: '\" ~ gaps ~\"'.'\"\n ) }}\n{% endif %}\n{% if not zero_length_range_allowed %}\n {% set allow_zero_length_operator='<' %}\n {% set allow_zero_length_operator_in_words='less_than' %}\n{% elif zero_length_range_allowed %}\n {% set allow_zero_length_operator='<=' %}\n {% set allow_zero_length_operator_in_words='less_than_or_equal_to' %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`zero_length_range_allowed` argument for mutually_exclusive_ranges test must be one of [true, false] Got: '\" ~ zero_length_range_allowed ~\"'.'\"\n ) }}\n{% endif %}\n\n{% set partition_clause=\"partition by \" ~ partition_by if partition_by else '' %}\n\nwith window_functions as (\n\n select\n {% if partition_by %}\n {{ partition_by }} as partition_by_col,\n {% endif %}\n {{ lower_bound_column }} as lower_bound,\n {{ upper_bound_column }} as upper_bound,\n\n lead({{ lower_bound_column }}) over (\n {{ partition_clause }}\n order by {{ lower_bound_column }}, {{ upper_bound_column }}\n ) as next_lower_bound,\n\n row_number() over (\n {{ partition_clause }}\n order by {{ lower_bound_column }} desc, {{ upper_bound_column }} desc\n ) = 1 as is_last_record\n\n from {{ model }}\n\n),\n\ncalc as (\n -- We want to return records where one of our assumptions fails, so we'll use\n -- the `not` function with `and` statements so we can write our assumptions more cleanly\n select\n *,\n\n -- For each record: lower_bound should be < upper_bound.\n -- Coalesce it to return an error on the null case (implicit assumption\n -- these columns are not_null)\n coalesce(\n lower_bound {{ allow_zero_length_operator }} upper_bound,\n false\n ) as lower_bound_{{ allow_zero_length_operator_in_words }}_upper_bound,\n\n -- For each record: upper_bound {{ allow_gaps_operator }} the next lower_bound.\n -- Coalesce it to handle null cases for the last record.\n coalesce(\n upper_bound {{ allow_gaps_operator }} next_lower_bound,\n is_last_record,\n false\n ) as upper_bound_{{ allow_gaps_operator_in_words }}_next_lower_bound\n\n from window_functions\n\n),\n\nvalidation_errors as (\n\n select\n *\n from calc\n\n where not(\n -- THE FOLLOWING SHOULD BE TRUE --\n lower_bound_{{ allow_zero_length_operator_in_words }}_upper_bound\n and upper_bound_{{ allow_gaps_operator_in_words }}_next_lower_bound\n )\n)\n\nselect * from validation_errors\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.397119, "supported_languages": null}, "macro.dbt_utils.pretty_log_format": {"name": "pretty_log_format", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "unique_id": "macro.dbt_utils.pretty_log_format", "macro_sql": "{% macro pretty_log_format(message) %}\n {{ return(adapter.dispatch('pretty_log_format', 'dbt_utils')(message)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.397418, "supported_languages": null}, "macro.dbt_utils.default__pretty_log_format": {"name": "default__pretty_log_format", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "unique_id": "macro.dbt_utils.default__pretty_log_format", "macro_sql": "{% macro default__pretty_log_format(message) %}\n {{ return( dbt_utils.pretty_time() ~ ' + ' ~ message) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.397577, "supported_languages": null}, "macro.dbt_utils._is_relation": {"name": "_is_relation", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/_is_relation.sql", "original_file_path": "macros/jinja_helpers/_is_relation.sql", "unique_id": "macro.dbt_utils._is_relation", "macro_sql": "{% macro _is_relation(obj, macro) %}\n {%- if not (obj is mapping and obj.get('metadata', {}).get('type', '').endswith('Relation')) -%}\n {%- do exceptions.raise_compiler_error(\"Macro \" ~ macro ~ \" expected a Relation but received the value: \" ~ obj) -%}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.397983, "supported_languages": null}, "macro.dbt_utils.pretty_time": {"name": "pretty_time", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "unique_id": "macro.dbt_utils.pretty_time", "macro_sql": "{% macro pretty_time(format='%H:%M:%S') %}\n {{ return(adapter.dispatch('pretty_time', 'dbt_utils')(format)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.398231, "supported_languages": null}, "macro.dbt_utils.default__pretty_time": {"name": "default__pretty_time", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "unique_id": "macro.dbt_utils.default__pretty_time", "macro_sql": "{% macro default__pretty_time(format='%H:%M:%S') %}\n {{ return(modules.datetime.datetime.now().strftime(format)) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.398409, "supported_languages": null}, "macro.dbt_utils.log_info": {"name": "log_info", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "unique_id": "macro.dbt_utils.log_info", "macro_sql": "{% macro log_info(message) %}\n {{ return(adapter.dispatch('log_info', 'dbt_utils')(message)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__log_info"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.398646, "supported_languages": null}, "macro.dbt_utils.default__log_info": {"name": "default__log_info", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "unique_id": "macro.dbt_utils.default__log_info", "macro_sql": "{% macro default__log_info(message) %}\n {{ log(dbt_utils.pretty_log_format(message), info=True) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.398808, "supported_languages": null}, "macro.dbt_utils.slugify": {"name": "slugify", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/slugify.sql", "original_file_path": "macros/jinja_helpers/slugify.sql", "unique_id": "macro.dbt_utils.slugify", "macro_sql": "{% macro slugify(string) %}\n\n{#- Lower case the string -#}\n{% set string = string | lower %}\n{#- Replace spaces and dashes with underscores -#}\n{% set string = modules.re.sub('[ -]+', '_', string) %}\n{#- Only take letters, numbers, and underscores -#}\n{% set string = modules.re.sub('[^a-z0-9_]+', '', string) %}\n{#- Prepends \"_\" if string begins with a number -#}\n{% set string = modules.re.sub('^[0-9]', '_' + string[0], string) %}\n\n{{ return(string) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.399381, "supported_languages": null}, "macro.dbt_utils._is_ephemeral": {"name": "_is_ephemeral", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/_is_ephemeral.sql", "original_file_path": "macros/jinja_helpers/_is_ephemeral.sql", "unique_id": "macro.dbt_utils._is_ephemeral", "macro_sql": "{% macro _is_ephemeral(obj, macro) %}\n {%- if obj.is_cte -%}\n {% set ephemeral_prefix = api.Relation.add_ephemeral_prefix('') %}\n {% if obj.name.startswith(ephemeral_prefix) %}\n {% set model_name = obj.name[(ephemeral_prefix|length):] %}\n {% else %}\n {% set model_name = obj.name %}\n {%- endif -%}\n {% set error_message %}\nThe `{{ macro }}` macro cannot be used with ephemeral models, as it relies on the information schema.\n\n`{{ model_name }}` is an ephemeral model. Consider making it a view or table instead.\n {% endset %}\n {%- do exceptions.raise_compiler_error(error_message) -%}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.400157, "supported_languages": null}, "macro.dbt_utils.get_intervals_between": {"name": "get_intervals_between", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.get_intervals_between", "macro_sql": "{% macro get_intervals_between(start_date, end_date, datepart) -%}\n {{ return(adapter.dispatch('get_intervals_between', 'dbt_utils')(start_date, end_date, datepart)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_intervals_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.400814, "supported_languages": null}, "macro.dbt_utils.default__get_intervals_between": {"name": "default__get_intervals_between", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.default__get_intervals_between", "macro_sql": "{% macro default__get_intervals_between(start_date, end_date, datepart) -%}\n {%- call statement('get_intervals_between', fetch_result=True) %}\n\n select {{ dbt.datediff(start_date, end_date, datepart) }}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_intervals_between') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values[0]) }}\n {%- else -%}\n {{ return(1) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.4013891, "supported_languages": null}, "macro.dbt_utils.date_spine": {"name": "date_spine", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.date_spine", "macro_sql": "{% macro date_spine(datepart, start_date, end_date) %}\n {{ return(adapter.dispatch('date_spine', 'dbt_utils')(datepart, start_date, end_date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.401647, "supported_languages": null}, "macro.dbt_utils.default__date_spine": {"name": "default__date_spine", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.default__date_spine", "macro_sql": "{% macro default__date_spine(datepart, start_date, end_date) %}\n\n\n{# call as follows:\n\ndate_spine(\n \"day\",\n \"to_date('01/01/2016', 'mm/dd/yyyy')\",\n \"dbt.dateadd(week, 1, current_date)\"\n) #}\n\n\nwith rawdata as (\n\n {{dbt_utils.generate_series(\n dbt_utils.get_intervals_between(start_date, end_date, datepart)\n )}}\n\n),\n\nall_periods as (\n\n select (\n {{\n dbt.dateadd(\n datepart,\n \"row_number() over (order by 1) - 1\",\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n)\n\nselect * from filtered\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.generate_series", "macro.dbt_utils.get_intervals_between", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.401988, "supported_languages": null}, "macro.dbt_utils.safe_subtract": {"name": "safe_subtract", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_subtract.sql", "original_file_path": "macros/sql/safe_subtract.sql", "unique_id": "macro.dbt_utils.safe_subtract", "macro_sql": "{%- macro safe_subtract(field_list) -%}\n {{ return(adapter.dispatch('safe_subtract', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__safe_subtract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.4024289, "supported_languages": null}, "macro.dbt_utils.default__safe_subtract": {"name": "default__safe_subtract", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_subtract.sql", "original_file_path": "macros/sql/safe_subtract.sql", "unique_id": "macro.dbt_utils.default__safe_subtract", "macro_sql": "\n\n{%- macro default__safe_subtract(field_list) -%}\n\n{%- if field_list is not iterable or field_list is string or field_list is mapping -%}\n\n{%- set error_message = '\nWarning: the `safe_subtract` macro takes a single list argument instead of \\\nstring arguments. The {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.raise_compiler_error(error_message) -%}\n\n{%- endif -%}\n\n{% set fields = [] %}\n\n{%- for field in field_list -%}\n\n {% do fields.append(\"coalesce(\" ~ field ~ \", 0)\") %}\n\n{%- endfor -%}\n\n{{ fields|join(' -\\n ') }}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.402981, "supported_languages": null}, "macro.dbt_utils.nullcheck_table": {"name": "nullcheck_table", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "unique_id": "macro.dbt_utils.nullcheck_table", "macro_sql": "{% macro nullcheck_table(relation) %}\n {{ return(adapter.dispatch('nullcheck_table', 'dbt_utils')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.403311, "supported_languages": null}, "macro.dbt_utils.default__nullcheck_table": {"name": "default__nullcheck_table", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "unique_id": "macro.dbt_utils.default__nullcheck_table", "macro_sql": "{% macro default__nullcheck_table(relation) %}\n\n {%- do dbt_utils._is_relation(relation, 'nullcheck_table') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'nullcheck_table') -%}\n {% set cols = adapter.get_columns_in_relation(relation) %}\n\n select {{ dbt_utils.nullcheck(cols) }}\n from {{relation}}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.nullcheck"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.403662, "supported_languages": null}, "macro.dbt_utils.get_relations_by_pattern": {"name": "get_relations_by_pattern", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "unique_id": "macro.dbt_utils.get_relations_by_pattern", "macro_sql": "{% macro get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_relations_by_pattern', 'dbt_utils')(schema_pattern, table_pattern, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_relations_by_pattern"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.4043462, "supported_languages": null}, "macro.dbt_utils.default__get_relations_by_pattern": {"name": "default__get_relations_by_pattern", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "unique_id": "macro.dbt_utils.default__get_relations_by_pattern", "macro_sql": "{% macro default__get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n {{ dbt_utils.get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude, database) }}\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=database,\n schema=row.table_schema,\n identifier=row.table_name,\n type=row.table_type\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.405547, "supported_languages": null}, "macro.dbt_utils.get_powers_of_two": {"name": "get_powers_of_two", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.get_powers_of_two", "macro_sql": "{% macro get_powers_of_two(upper_bound) %}\n {{ return(adapter.dispatch('get_powers_of_two', 'dbt_utils')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.406347, "supported_languages": null}, "macro.dbt_utils.default__get_powers_of_two": {"name": "default__get_powers_of_two", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.default__get_powers_of_two", "macro_sql": "{% macro default__get_powers_of_two(upper_bound) %}\n\n {% if upper_bound <= 0 %}\n {{ exceptions.raise_compiler_error(\"upper bound must be positive\") }}\n {% endif %}\n\n {% for _ in range(1, 100) %}\n {% if upper_bound <= 2 ** loop.index %}{{ return(loop.index) }}{% endif %}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.406744, "supported_languages": null}, "macro.dbt_utils.generate_series": {"name": "generate_series", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.generate_series", "macro_sql": "{% macro generate_series(upper_bound) %}\n {{ return(adapter.dispatch('generate_series', 'dbt_utils')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__generate_series"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.406921, "supported_languages": null}, "macro.dbt_utils.default__generate_series": {"name": "default__generate_series", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.default__generate_series", "macro_sql": "{% macro default__generate_series(upper_bound) %}\n\n {% set n = dbt_utils.get_powers_of_two(upper_bound) %}\n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n {% for i in range(n) %}\n p{{i}}.generated_number * power(2, {{i}})\n {% if not loop.last %} + {% endif %}\n {% endfor %}\n + 1\n as generated_number\n\n from\n\n {% for i in range(n) %}\n p as p{{i}}\n {% if not loop.last %} cross join {% endif %}\n {% endfor %}\n\n )\n\n select *\n from unioned\n where generated_number <= {{upper_bound}}\n order by generated_number\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.407372, "supported_languages": null}, "macro.dbt_utils.get_relations_by_prefix": {"name": "get_relations_by_prefix", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "unique_id": "macro.dbt_utils.get_relations_by_prefix", "macro_sql": "{% macro get_relations_by_prefix(schema, prefix, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_relations_by_prefix', 'dbt_utils')(schema, prefix, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_relations_by_prefix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.407951, "supported_languages": null}, "macro.dbt_utils.default__get_relations_by_prefix": {"name": "default__get_relations_by_prefix", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "unique_id": "macro.dbt_utils.default__get_relations_by_prefix", "macro_sql": "{% macro default__get_relations_by_prefix(schema, prefix, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n {{ dbt_utils.get_tables_by_prefix_sql(schema, prefix, exclude, database) }}\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=database,\n schema=row.table_schema,\n identifier=row.table_name,\n type=row.table_type\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.get_tables_by_prefix_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.408704, "supported_languages": null}, "macro.dbt_utils.get_tables_by_prefix_sql": {"name": "get_tables_by_prefix_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "unique_id": "macro.dbt_utils.get_tables_by_prefix_sql", "macro_sql": "{% macro get_tables_by_prefix_sql(schema, prefix, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_tables_by_prefix_sql', 'dbt_utils')(schema, prefix, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_tables_by_prefix_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.409059, "supported_languages": null}, "macro.dbt_utils.default__get_tables_by_prefix_sql": {"name": "default__get_tables_by_prefix_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "unique_id": "macro.dbt_utils.default__get_tables_by_prefix_sql", "macro_sql": "{% macro default__get_tables_by_prefix_sql(schema, prefix, exclude='', database=target.database) %}\n\n {{ dbt_utils.get_tables_by_pattern_sql(\n schema_pattern = schema,\n table_pattern = prefix ~ '%',\n exclude = exclude,\n database = database\n ) }}\n \n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.409323, "supported_languages": null}, "macro.dbt_utils.star": {"name": "star", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "unique_id": "macro.dbt_utils.star", "macro_sql": "{% macro star(from, relation_alias=False, except=[], prefix='', suffix='', quote_identifiers=True) -%}\r\n {{ return(adapter.dispatch('star', 'dbt_utils')(from, relation_alias, except, prefix, suffix, quote_identifiers)) }}\r\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__star"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.410412, "supported_languages": null}, "macro.dbt_utils.default__star": {"name": "default__star", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "unique_id": "macro.dbt_utils.default__star", "macro_sql": "{% macro default__star(from, relation_alias=False, except=[], prefix='', suffix='', quote_identifiers=True) -%}\r\n {%- do dbt_utils._is_relation(from, 'star') -%}\r\n {%- do dbt_utils._is_ephemeral(from, 'star') -%}\r\n\r\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\r\n {%- if not execute -%}\r\n {% do return('*') %}\r\n {%- endif -%}\r\n\r\n {% set cols = dbt_utils.get_filtered_columns_in_relation(from, except) %}\r\n\r\n {%- if cols|length <= 0 -%}\r\n {% if flags.WHICH == 'compile' %}\r\n {% set response %}\r\n*\r\n/* No columns were returned. Maybe the relation doesn't exist yet \r\nor all columns were excluded. This star is only output during \r\ndbt compile, and exists to keep SQLFluff happy. */\r\n {% endset %}\r\n {% do return(response) %}\r\n {% else %}\r\n {% do return(\"/* no columns returned from star() macro */\") %}\r\n {% endif %}\r\n {%- else -%}\r\n {%- for col in cols %}\r\n {%- if relation_alias %}{{ relation_alias }}.{% else %}{%- endif -%}\r\n {%- if quote_identifiers -%}\r\n {{ adapter.quote(col)|trim }} {%- if prefix!='' or suffix!='' %} as {{ adapter.quote(prefix ~ col ~ suffix)|trim }} {%- endif -%}\r\n {%- else -%}\r\n {{ col|trim }} {%- if prefix!='' or suffix!='' %} as {{ (prefix ~ col ~ suffix)|trim }} {%- endif -%}\r\n {% endif %}\r\n {%- if not loop.last %},{{ '\\n ' }}{%- endif -%}\r\n {%- endfor -%}\r\n {% endif %}\r\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.get_filtered_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.411893, "supported_languages": null}, "macro.dbt_utils.unpivot": {"name": "unpivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "unique_id": "macro.dbt_utils.unpivot", "macro_sql": "{% macro unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value') -%}\n {{ return(adapter.dispatch('unpivot', 'dbt_utils')(relation, cast_to, exclude, remove, field_name, value_name)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__unpivot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.4131572, "supported_languages": null}, "macro.dbt_utils.default__unpivot": {"name": "default__unpivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "unique_id": "macro.dbt_utils.default__unpivot", "macro_sql": "{% macro default__unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value') -%}\n\n {% if not relation %}\n {{ exceptions.raise_compiler_error(\"Error: argument `relation` is required for `unpivot` macro.\") }}\n {% endif %}\n\n {%- set exclude = exclude if exclude is not none else [] %}\n {%- set remove = remove if remove is not none else [] %}\n\n {%- set include_cols = [] %}\n\n {%- set table_columns = {} %}\n\n {%- do table_columns.update({relation: []}) %}\n\n {%- do dbt_utils._is_relation(relation, 'unpivot') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'unpivot') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) %}\n\n {%- for col in cols -%}\n {%- if col.column.lower() not in remove|map('lower') and col.column.lower() not in exclude|map('lower') -%}\n {% do include_cols.append(col) %}\n {%- endif %}\n {%- endfor %}\n\n\n {%- for col in include_cols -%}\n select\n {%- for exclude_col in exclude %}\n {{ exclude_col }},\n {%- endfor %}\n\n cast('{{ col.column }}' as {{ dbt.type_string() }}) as {{ field_name }},\n cast( {% if col.data_type == 'boolean' %}\n {{ dbt.cast_bool_to_text(col.column) }}\n {% else %}\n {{ col.column }}\n {% endif %}\n as {{ cast_to }}) as {{ value_name }}\n\n from {{ relation }}\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n {%- endfor -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.type_string", "macro.dbt.cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.414633, "supported_languages": null}, "macro.dbt_utils.safe_divide": {"name": "safe_divide", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_divide.sql", "original_file_path": "macros/sql/safe_divide.sql", "unique_id": "macro.dbt_utils.safe_divide", "macro_sql": "{% macro safe_divide(numerator, denominator) -%}\n {{ return(adapter.dispatch('safe_divide', 'dbt_utils')(numerator, denominator)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__safe_divide"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.414916, "supported_languages": null}, "macro.dbt_utils.default__safe_divide": {"name": "default__safe_divide", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_divide.sql", "original_file_path": "macros/sql/safe_divide.sql", "unique_id": "macro.dbt_utils.default__safe_divide", "macro_sql": "{% macro default__safe_divide(numerator, denominator) %}\n ( {{ numerator }} ) / nullif( ( {{ denominator }} ), 0)\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.41504, "supported_languages": null}, "macro.dbt_utils.union_relations": {"name": "union_relations", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "unique_id": "macro.dbt_utils.union_relations", "macro_sql": "{%- macro union_relations(relations, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation', where=none) -%}\n {{ return(adapter.dispatch('union_relations', 'dbt_utils')(relations, column_override, include, exclude, source_column_name, where)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__union_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.417771, "supported_languages": null}, "macro.dbt_utils.default__union_relations": {"name": "default__union_relations", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "unique_id": "macro.dbt_utils.default__union_relations", "macro_sql": "\n\n{%- macro default__union_relations(relations, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation', where=none) -%}\n\n {%- if exclude and include -%}\n {{ exceptions.raise_compiler_error(\"Both an exclude and include list were provided to the `union` macro. Only one is allowed\") }}\n {%- endif -%}\n\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. -#}\n {%- if not execute %}\n {{ return('') }}\n {% endif -%}\n\n {%- set column_override = column_override if column_override is not none else {} -%}\n\n {%- set relation_columns = {} -%}\n {%- set column_superset = {} -%}\n {%- set all_excludes = [] -%}\n {%- set all_includes = [] -%}\n\n {%- if exclude -%}\n {%- for exc in exclude -%}\n {%- do all_excludes.append(exc | lower) -%}\n {%- endfor -%}\n {%- endif -%}\n\n {%- if include -%}\n {%- for inc in include -%}\n {%- do all_includes.append(inc | lower) -%}\n {%- endfor -%}\n {%- endif -%}\n\n {%- for relation in relations -%}\n\n {%- do relation_columns.update({relation: []}) -%}\n\n {%- do dbt_utils._is_relation(relation, 'union_relations') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'union_relations') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) -%}\n {%- for col in cols -%}\n\n {#- If an exclude list was provided and the column is in the list, do nothing -#}\n {%- if exclude and col.column | lower in all_excludes -%}\n\n {#- If an include list was provided and the column is not in the list, do nothing -#}\n {%- elif include and col.column | lower not in all_includes -%}\n\n {#- Otherwise add the column to the column superset -#}\n {%- else -%}\n\n {#- update the list of columns in this relation -#}\n {%- do relation_columns[relation].append(col.column) -%}\n\n {%- if col.column in column_superset -%}\n\n {%- set stored = column_superset[col.column] -%}\n {%- if col.is_string() and stored.is_string() and col.string_size() > stored.string_size() -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif %}\n\n {%- else -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif -%}\n\n {%- endif -%}\n\n {%- endfor -%}\n {%- endfor -%}\n\n {%- set ordered_column_names = column_superset.keys() -%}\n {%- set dbt_command = flags.WHICH -%}\n\n\n {% if dbt_command in ['run', 'build'] %}\n {% if (include | length > 0 or exclude | length > 0) and not column_superset.keys() %}\n {%- set relations_string -%}\n {%- for relation in relations -%}\n {{ relation.name }}\n {%- if not loop.last %}, {% endif -%}\n {%- endfor -%}\n {%- endset -%}\n\n {%- set error_message -%}\n There were no columns found to union for relations {{ relations_string }}\n {%- endset -%}\n\n {{ exceptions.raise_compiler_error(error_message) }}\n {%- endif -%}\n {%- endif -%}\n\n {%- for relation in relations %}\n\n (\n select\n\n {%- if source_column_name is not none %}\n cast({{ dbt.string_literal(relation) }} as {{ dbt.type_string() }}) as {{ source_column_name }},\n {%- endif %}\n\n {% for col_name in ordered_column_names -%}\n\n {%- set col = column_superset[col_name] %}\n {%- set col_type = column_override.get(col.column, col.data_type) %}\n {%- set col_name = adapter.quote(col_name) if col_name in relation_columns[relation] else 'null' %}\n cast({{ col_name }} as {{ col_type }}) as {{ col.quoted }} {% if not loop.last %},{% endif -%}\n\n {%- endfor %}\n\n from {{ relation }}\n\n {% if where -%}\n where {{ where }}\n {%- endif %}\n )\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.string_literal", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.421068, "supported_languages": null}, "macro.dbt_utils.group_by": {"name": "group_by", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "unique_id": "macro.dbt_utils.group_by", "macro_sql": "{%- macro group_by(n) -%}\n {{ return(adapter.dispatch('group_by', 'dbt_utils')(n)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__group_by"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.421469, "supported_languages": null}, "macro.dbt_utils.default__group_by": {"name": "default__group_by", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "unique_id": "macro.dbt_utils.default__group_by", "macro_sql": "\n\n{%- macro default__group_by(n) -%}\n\n group by {% for i in range(1, n + 1) -%}\n {{ i }}{{ ',' if not loop.last }} \n {%- endfor -%}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.4217322, "supported_languages": null}, "macro.dbt_utils.deduplicate": {"name": "deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.deduplicate", "macro_sql": "{%- macro deduplicate(relation, partition_by, order_by) -%}\n {{ return(adapter.dispatch('deduplicate', 'dbt_utils')(relation, partition_by, order_by)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.postgres__deduplicate"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.4224682, "supported_languages": null}, "macro.dbt_utils.default__deduplicate": {"name": "default__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.default__deduplicate", "macro_sql": "\n\n{%- macro default__deduplicate(relation, partition_by, order_by) -%}\n\n with row_numbered as (\n select\n _inner.*,\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) as rn\n from {{ relation }} as _inner\n )\n\n select\n distinct data.*\n from {{ relation }} as data\n {#\n -- Not all DBs will support natural joins but the ones that do include:\n -- Oracle, MySQL, SQLite, Redshift, Teradata, Materialize, Databricks\n -- Apache Spark, SingleStore, Vertica\n -- Those that do not appear to support natural joins include:\n -- SQLServer, Trino, Presto, Rockset, Athena\n #}\n natural join row_numbered\n where row_numbered.rn = 1\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.4226828, "supported_languages": null}, "macro.dbt_utils.redshift__deduplicate": {"name": "redshift__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.redshift__deduplicate", "macro_sql": "{% macro redshift__deduplicate(relation, partition_by, order_by) -%}\n\n {{ return(dbt_utils.default__deduplicate(relation, partition_by, order_by=order_by)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__deduplicate"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.422876, "supported_languages": null}, "macro.dbt_utils.postgres__deduplicate": {"name": "postgres__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.postgres__deduplicate", "macro_sql": "\n{%- macro postgres__deduplicate(relation, partition_by, order_by) -%}\n\n select\n distinct on ({{ partition_by }}) *\n from {{ relation }}\n order by {{ partition_by }}{{ ',' ~ order_by }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.423062, "supported_languages": null}, "macro.dbt_utils.snowflake__deduplicate": {"name": "snowflake__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.snowflake__deduplicate", "macro_sql": "\n{%- macro snowflake__deduplicate(relation, partition_by, order_by) -%}\n\n select *\n from {{ relation }}\n qualify\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) = 1\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.4232209, "supported_languages": null}, "macro.dbt_utils.bigquery__deduplicate": {"name": "bigquery__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.bigquery__deduplicate", "macro_sql": "\n{%- macro bigquery__deduplicate(relation, partition_by, order_by) -%}\n\n select unique.*\n from (\n select\n array_agg (\n original\n order by {{ order_by }}\n limit 1\n )[offset(0)] unique\n from {{ relation }} original\n group by {{ partition_by }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.423384, "supported_languages": null}, "macro.dbt_utils.surrogate_key": {"name": "surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "unique_id": "macro.dbt_utils.surrogate_key", "macro_sql": "{%- macro surrogate_key(field_list) -%}\n {% set frustrating_jinja_feature = varargs %}\n {{ return(adapter.dispatch('surrogate_key', 'dbt_utils')(field_list, *varargs)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__surrogate_key"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.423738, "supported_languages": null}, "macro.dbt_utils.default__surrogate_key": {"name": "default__surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "unique_id": "macro.dbt_utils.default__surrogate_key", "macro_sql": "\n\n{%- macro default__surrogate_key(field_list) -%}\n\n{%- set error_message = '\nWarning: `dbt_utils.surrogate_key` has been replaced by \\\n`dbt_utils.generate_surrogate_key`. The new macro treats null values \\\ndifferently to empty strings. To restore the behaviour of the original \\\nmacro, add a global variable in dbt_project.yml called \\\n`surrogate_key_treat_nulls_as_empty_strings` to your \\\ndbt_project.yml file with a value of True. \\\nThe {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.raise_compiler_error(error_message) -%}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.423969, "supported_languages": null}, "macro.dbt_utils.safe_add": {"name": "safe_add", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "unique_id": "macro.dbt_utils.safe_add", "macro_sql": "{%- macro safe_add(field_list) -%}\n {{ return(adapter.dispatch('safe_add', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__safe_add"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.42431, "supported_languages": null}, "macro.dbt_utils.default__safe_add": {"name": "default__safe_add", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "unique_id": "macro.dbt_utils.default__safe_add", "macro_sql": "\n\n{%- macro default__safe_add(field_list) -%}\n\n{%- if field_list is not iterable or field_list is string or field_list is mapping -%}\n\n{%- set error_message = '\nWarning: the `safe_add` macro now takes a single list argument instead of \\\nstring arguments. The {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.warn(error_message) -%}\n\n{%- endif -%}\n\n{% set fields = [] %}\n\n{%- for field in field_list -%}\n\n {% do fields.append(\"coalesce(\" ~ field ~ \", 0)\") %}\n\n{%- endfor -%}\n\n{{ fields|join(' +\\n ') }}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.424808, "supported_languages": null}, "macro.dbt_utils.nullcheck": {"name": "nullcheck", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "unique_id": "macro.dbt_utils.nullcheck", "macro_sql": "{% macro nullcheck(cols) %}\n {{ return(adapter.dispatch('nullcheck', 'dbt_utils')(cols)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.4251351, "supported_languages": null}, "macro.dbt_utils.default__nullcheck": {"name": "default__nullcheck", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "unique_id": "macro.dbt_utils.default__nullcheck", "macro_sql": "{% macro default__nullcheck(cols) %}\n{%- for col in cols %}\n\n {% if col.is_string() -%}\n\n nullif({{col.name}},'') as {{col.name}}\n\n {%- else -%}\n\n {{col.name}}\n\n {%- endif -%}\n\n{%- if not loop.last -%} , {%- endif -%}\n\n{%- endfor -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.425455, "supported_languages": null}, "macro.dbt_utils.get_tables_by_pattern_sql": {"name": "get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.get_tables_by_pattern_sql", "macro_sql": "{% macro get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_tables_by_pattern_sql', 'dbt_utils')\n (schema_pattern, table_pattern, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.426987, "supported_languages": null}, "macro.dbt_utils.default__get_tables_by_pattern_sql": {"name": "default__get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.default__get_tables_by_pattern_sql", "macro_sql": "{% macro default__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n select distinct\n table_schema as {{ adapter.quote('table_schema') }},\n table_name as {{ adapter.quote('table_name') }},\n {{ dbt_utils.get_table_types_sql() }}\n from {{ database }}.information_schema.tables\n where table_schema ilike '{{ schema_pattern }}'\n and table_name ilike '{{ table_pattern }}'\n and table_name not ilike '{{ exclude }}'\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.427381, "supported_languages": null}, "macro.dbt_utils.bigquery__get_tables_by_pattern_sql": {"name": "bigquery__get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.bigquery__get_tables_by_pattern_sql", "macro_sql": "{% macro bigquery__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {% if '%' in schema_pattern %}\n {% set schemata=dbt_utils._bigquery__get_matching_schemata(schema_pattern, database) %}\n {% else %}\n {% set schemata=[schema_pattern] %}\n {% endif %}\n\n {% set sql %}\n {% for schema in schemata %}\n select distinct\n table_schema,\n table_name,\n {{ dbt_utils.get_table_types_sql() }}\n\n from {{ adapter.quote(database) }}.{{ schema }}.INFORMATION_SCHEMA.TABLES\n where lower(table_name) like lower ('{{ table_pattern }}')\n and lower(table_name) not like lower ('{{ exclude }}')\n\n {% if not loop.last %} union all {% endif %}\n\n {% endfor %}\n {% endset %}\n\n {{ return(sql) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._bigquery__get_matching_schemata", "macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.428202, "supported_languages": null}, "macro.dbt_utils._bigquery__get_matching_schemata": {"name": "_bigquery__get_matching_schemata", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils._bigquery__get_matching_schemata", "macro_sql": "{% macro _bigquery__get_matching_schemata(schema_pattern, database) %}\n {% if execute %}\n\n {% set sql %}\n select schema_name from {{ adapter.quote(database) }}.INFORMATION_SCHEMA.SCHEMATA\n where lower(schema_name) like lower('{{ schema_pattern }}')\n {% endset %}\n\n {% set results=run_query(sql) %}\n\n {% set schemata=results.columns['schema_name'].values() %}\n\n {{ return(schemata) }}\n\n {% else %}\n\n {{ return([]) }}\n\n {% endif %}\n\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.428681, "supported_languages": null}, "macro.dbt_utils.get_column_values": {"name": "get_column_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "unique_id": "macro.dbt_utils.get_column_values", "macro_sql": "{% macro get_column_values(table, column, order_by='count(*) desc', max_records=none, default=none, where=none) -%}\n {{ return(adapter.dispatch('get_column_values', 'dbt_utils')(table, column, order_by, max_records, default, where)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_column_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.4297678, "supported_languages": null}, "macro.dbt_utils.default__get_column_values": {"name": "default__get_column_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "unique_id": "macro.dbt_utils.default__get_column_values", "macro_sql": "{% macro default__get_column_values(table, column, order_by='count(*) desc', max_records=none, default=none, where=none) -%}\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {% set default = [] if not default %}\n {{ return(default) }}\n {% endif %}\n\n {%- do dbt_utils._is_ephemeral(table, 'get_column_values') -%}\n\n {# Not all relations are tables. Renaming for internal clarity without breaking functionality for anyone using named arguments #}\n {# TODO: Change the method signature in a future 0.x.0 release #}\n {%- set target_relation = table -%}\n\n {# adapter.load_relation is a convenience wrapper to avoid building a Relation when we already have one #}\n {% set relation_exists = (load_relation(target_relation)) is not none %}\n\n {%- call statement('get_column_values', fetch_result=true) %}\n\n {%- if not relation_exists and default is none -%}\n\n {{ exceptions.raise_compiler_error(\"In get_column_values(): relation \" ~ target_relation ~ \" does not exist and no default value was provided.\") }}\n\n {%- elif not relation_exists and default is not none -%}\n\n {{ log(\"Relation \" ~ target_relation ~ \" does not exist. Returning the default value: \" ~ default) }}\n\n {{ return(default) }}\n\n {%- else -%}\n\n\n select\n {{ column }} as value\n\n from {{ target_relation }}\n\n {% if where is not none %}\n where {{ where }}\n {% endif %}\n\n group by {{ column }}\n order by {{ order_by }}\n\n {% if max_records is not none %}\n limit {{ max_records }}\n {% endif %}\n\n {% endif %}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_column_values') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values) }}\n {%- else -%}\n {{ return(default) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_ephemeral", "macro.dbt.load_relation", "macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.431191, "supported_languages": null}, "macro.dbt_utils.pivot": {"name": "pivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "unique_id": "macro.dbt_utils.pivot", "macro_sql": "{% macro pivot(column,\n values,\n alias=True,\n agg='sum',\n cmp='=',\n prefix='',\n suffix='',\n then_value=1,\n else_value=0,\n quote_identifiers=True,\n distinct=False) %}\n {{ return(adapter.dispatch('pivot', 'dbt_utils')(column, values, alias, agg, cmp, prefix, suffix, then_value, else_value, quote_identifiers, distinct)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__pivot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.432183, "supported_languages": null}, "macro.dbt_utils.default__pivot": {"name": "default__pivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "unique_id": "macro.dbt_utils.default__pivot", "macro_sql": "{% macro default__pivot(column,\n values,\n alias=True,\n agg='sum',\n cmp='=',\n prefix='',\n suffix='',\n then_value=1,\n else_value=0,\n quote_identifiers=True,\n distinct=False) %}\n {% for value in values %}\n {{ agg }}(\n {% if distinct %} distinct {% endif %}\n case\n when {{ column }} {{ cmp }} '{{ dbt.escape_single_quotes(value) }}'\n then {{ then_value }}\n else {{ else_value }}\n end\n )\n {% if alias %}\n {% if quote_identifiers %}\n as {{ adapter.quote(prefix ~ value ~ suffix) }}\n {% else %}\n as {{ dbt_utils.slugify(prefix ~ value ~ suffix) }}\n {% endif %}\n {% endif %}\n {% if not loop.last %},{% endif %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.escape_single_quotes", "macro.dbt_utils.slugify"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.432968, "supported_languages": null}, "macro.dbt_utils.get_filtered_columns_in_relation": {"name": "get_filtered_columns_in_relation", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_filtered_columns_in_relation.sql", "original_file_path": "macros/sql/get_filtered_columns_in_relation.sql", "unique_id": "macro.dbt_utils.get_filtered_columns_in_relation", "macro_sql": "{% macro get_filtered_columns_in_relation(from, except=[]) -%}\n {{ return(adapter.dispatch('get_filtered_columns_in_relation', 'dbt_utils')(from, except)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_filtered_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.43343, "supported_languages": null}, "macro.dbt_utils.default__get_filtered_columns_in_relation": {"name": "default__get_filtered_columns_in_relation", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_filtered_columns_in_relation.sql", "original_file_path": "macros/sql/get_filtered_columns_in_relation.sql", "unique_id": "macro.dbt_utils.default__get_filtered_columns_in_relation", "macro_sql": "{% macro default__get_filtered_columns_in_relation(from, except=[]) -%}\n {%- do dbt_utils._is_relation(from, 'get_filtered_columns_in_relation') -%}\n {%- do dbt_utils._is_ephemeral(from, 'get_filtered_columns_in_relation') -%}\n\n {# -- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {{ return('') }}\n {% endif %}\n\n {%- set include_cols = [] %}\n {%- set cols = adapter.get_columns_in_relation(from) -%}\n {%- set except = except | map(\"lower\") | list %}\n {%- for col in cols -%}\n {%- if col.column|lower not in except -%}\n {% do include_cols.append(col.column) %}\n {%- endif %}\n {%- endfor %}\n\n {{ return(include_cols) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.43414, "supported_languages": null}, "macro.dbt_utils.width_bucket": {"name": "width_bucket", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "unique_id": "macro.dbt_utils.width_bucket", "macro_sql": "{% macro width_bucket(expr, min_value, max_value, num_buckets) %}\n {{ return(adapter.dispatch('width_bucket', 'dbt_utils') (expr, min_value, max_value, num_buckets)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__width_bucket"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.434905, "supported_languages": null}, "macro.dbt_utils.default__width_bucket": {"name": "default__width_bucket", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "unique_id": "macro.dbt_utils.default__width_bucket", "macro_sql": "{% macro default__width_bucket(expr, min_value, max_value, num_buckets) -%}\n\n {% set bin_size -%}\n (( {{ max_value }} - {{ min_value }} ) / {{ num_buckets }} )\n {%- endset %}\n (\n -- to break ties when the amount is eaxtly at the bucket egde\n case\n when\n mod(\n {{ dbt.safe_cast(expr, dbt.type_numeric() ) }},\n {{ dbt.safe_cast(bin_size, dbt.type_numeric() ) }}\n ) = 0\n then 1\n else 0\n end\n ) +\n -- Anything over max_value goes the N+1 bucket\n least(\n ceil(\n ({{ expr }} - {{ min_value }})/{{ bin_size }}\n ),\n {{ num_buckets }} + 1\n )\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.safe_cast", "macro.dbt.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.4353752, "supported_languages": null}, "macro.dbt_utils.snowflake__width_bucket": {"name": "snowflake__width_bucket", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "unique_id": "macro.dbt_utils.snowflake__width_bucket", "macro_sql": "{% macro snowflake__width_bucket(expr, min_value, max_value, num_buckets) %}\n width_bucket({{ expr }}, {{ min_value }}, {{ max_value }}, {{ num_buckets }} )\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.435581, "supported_languages": null}, "macro.dbt_utils.get_query_results_as_dict": {"name": "get_query_results_as_dict", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "unique_id": "macro.dbt_utils.get_query_results_as_dict", "macro_sql": "{% macro get_query_results_as_dict(query) %}\n {{ return(adapter.dispatch('get_query_results_as_dict', 'dbt_utils')(query)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_query_results_as_dict"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.435978, "supported_languages": null}, "macro.dbt_utils.default__get_query_results_as_dict": {"name": "default__get_query_results_as_dict", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "unique_id": "macro.dbt_utils.default__get_query_results_as_dict", "macro_sql": "{% macro default__get_query_results_as_dict(query) %}\n\n{# This macro returns a dictionary of the form {column_name: (tuple_of_results)} #}\n\n {%- call statement('get_query_results', fetch_result=True,auto_begin=false) -%}\n\n {{ query }}\n\n {%- endcall -%}\n\n {% set sql_results={} %}\n\n {%- if execute -%}\n {% set sql_results_table = load_result('get_query_results').table.columns %}\n {% for column_name, column in sql_results_table.items() %}\n {% do sql_results.update({column_name: column.values()}) %}\n {% endfor %}\n {%- endif -%}\n\n {{ return(sql_results) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.436557, "supported_languages": null}, "macro.dbt_utils.generate_surrogate_key": {"name": "generate_surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_surrogate_key.sql", "original_file_path": "macros/sql/generate_surrogate_key.sql", "unique_id": "macro.dbt_utils.generate_surrogate_key", "macro_sql": "{%- macro generate_surrogate_key(field_list) -%}\n {{ return(adapter.dispatch('generate_surrogate_key', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__generate_surrogate_key"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.437006, "supported_languages": null}, "macro.dbt_utils.default__generate_surrogate_key": {"name": "default__generate_surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_surrogate_key.sql", "original_file_path": "macros/sql/generate_surrogate_key.sql", "unique_id": "macro.dbt_utils.default__generate_surrogate_key", "macro_sql": "\n\n{%- macro default__generate_surrogate_key(field_list) -%}\n\n{%- if var('surrogate_key_treat_nulls_as_empty_strings', False) -%}\n {%- set default_null_value = \"\" -%}\n{%- else -%}\n {%- set default_null_value = '_dbt_utils_surrogate_key_null_' -%}\n{%- endif -%}\n\n{%- set fields = [] -%}\n\n{%- for field in field_list -%}\n\n {%- do fields.append(\n \"coalesce(cast(\" ~ field ~ \" as \" ~ dbt.type_string() ~ \"), '\" ~ default_null_value ~\"')\"\n ) -%}\n\n {%- if not loop.last %}\n {%- do fields.append(\"'-'\") -%}\n {%- endif -%}\n\n{%- endfor -%}\n\n{{ dbt.hash(dbt.concat(fields)) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.hash", "macro.dbt.concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.437581, "supported_languages": null}, "macro.dbt_utils.get_table_types_sql": {"name": "get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.get_table_types_sql", "macro_sql": "{%- macro get_table_types_sql() -%}\n {{ return(adapter.dispatch('get_table_types_sql', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_utils.postgres__get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.438049, "supported_languages": null}, "macro.dbt_utils.default__get_table_types_sql": {"name": "default__get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.default__get_table_types_sql", "macro_sql": "{% macro default__get_table_types_sql() %}\n case table_type\n when 'BASE TABLE' then 'table'\n when 'EXTERNAL TABLE' then 'external'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.4381819, "supported_languages": null}, "macro.dbt_utils.postgres__get_table_types_sql": {"name": "postgres__get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.postgres__get_table_types_sql", "macro_sql": "{% macro postgres__get_table_types_sql() %}\n case table_type\n when 'BASE TABLE' then 'table'\n when 'FOREIGN' then 'external'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.438308, "supported_languages": null}, "macro.dbt_utils.databricks__get_table_types_sql": {"name": "databricks__get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.databricks__get_table_types_sql", "macro_sql": "{% macro databricks__get_table_types_sql() %}\n case table_type\n when 'MANAGED' then 'table'\n when 'BASE TABLE' then 'table'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.438438, "supported_languages": null}, "macro.dbt_utils.get_single_value": {"name": "get_single_value", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_single_value.sql", "original_file_path": "macros/sql/get_single_value.sql", "unique_id": "macro.dbt_utils.get_single_value", "macro_sql": "{% macro get_single_value(query, default=none) %}\n {{ return(adapter.dispatch('get_single_value', 'dbt_utils')(query, default)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_single_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.438895, "supported_languages": null}, "macro.dbt_utils.default__get_single_value": {"name": "default__get_single_value", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_single_value.sql", "original_file_path": "macros/sql/get_single_value.sql", "unique_id": "macro.dbt_utils.default__get_single_value", "macro_sql": "{% macro default__get_single_value(query, default) %}\n\n{# This macro returns the (0, 0) record in a query, i.e. the first row of the first column #}\n\n {%- call statement('get_query_result', fetch_result=True, auto_begin=false) -%}\n\n {{ query }}\n\n {%- endcall -%}\n\n {%- if execute -%}\n\n {% set r = load_result('get_query_result').table.columns[0].values() %}\n {% if r | length == 0 %}\n {% do print('Query `' ~ query ~ '` returned no rows. Using the default value: ' ~ default) %}\n {% set sql_result = default %}\n {% else %}\n {% set sql_result = r[0] %}\n {% endif %}\n \n {%- else -%}\n \n {% set sql_result = default %}\n \n {%- endif -%}\n\n {% do return(sql_result) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.439683, "supported_languages": null}, "macro.dbt_utils.degrees_to_radians": {"name": "degrees_to_radians", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.degrees_to_radians", "macro_sql": "{% macro degrees_to_radians(degrees) -%}\n acos(-1) * {{degrees}} / 180\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.4406662, "supported_languages": null}, "macro.dbt_utils.haversine_distance": {"name": "haversine_distance", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.haversine_distance", "macro_sql": "{% macro haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n {{ return(adapter.dispatch('haversine_distance', 'dbt_utils')(lat1,lon1,lat2,lon2,unit)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__haversine_distance"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.440922, "supported_languages": null}, "macro.dbt_utils.default__haversine_distance": {"name": "default__haversine_distance", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.default__haversine_distance", "macro_sql": "{% macro default__haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n{%- if unit == 'mi' %}\n {% set conversion_rate = 1 %}\n{% elif unit == 'km' %}\n {% set conversion_rate = 1.60934 %}\n{% else %}\n {{ exceptions.raise_compiler_error(\"unit input must be one of 'mi' or 'km'. Got \" ~ unit) }}\n{% endif %}\n\n 2 * 3961 * asin(sqrt(power((sin(radians(({{ lat2 }} - {{ lat1 }}) / 2))), 2) +\n cos(radians({{lat1}})) * cos(radians({{lat2}})) *\n power((sin(radians(({{ lon2 }} - {{ lon1 }}) / 2))), 2))) * {{ conversion_rate }}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.441458, "supported_languages": null}, "macro.dbt_utils.bigquery__haversine_distance": {"name": "bigquery__haversine_distance", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.bigquery__haversine_distance", "macro_sql": "{% macro bigquery__haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n{% set radians_lat1 = dbt_utils.degrees_to_radians(lat1) %}\n{% set radians_lat2 = dbt_utils.degrees_to_radians(lat2) %}\n{% set radians_lon1 = dbt_utils.degrees_to_radians(lon1) %}\n{% set radians_lon2 = dbt_utils.degrees_to_radians(lon2) %}\n{%- if unit == 'mi' %}\n {% set conversion_rate = 1 %}\n{% elif unit == 'km' %}\n {% set conversion_rate = 1.60934 %}\n{% else %}\n {{ exceptions.raise_compiler_error(\"unit input must be one of 'mi' or 'km'. Got \" ~ unit) }}\n{% endif %}\n 2 * 3961 * asin(sqrt(power(sin(({{ radians_lat2 }} - {{ radians_lat1 }}) / 2), 2) +\n cos({{ radians_lat1 }}) * cos({{ radians_lat2 }}) *\n power(sin(({{ radians_lon2 }} - {{ radians_lon1 }}) / 2), 2))) * {{ conversion_rate }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.degrees_to_radians"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.442196, "supported_languages": null}, "macro.fivetran_utils.enabled_vars": {"name": "enabled_vars", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/enabled_vars.sql", "original_file_path": "macros/enabled_vars.sql", "unique_id": "macro.fivetran_utils.enabled_vars", "macro_sql": "{% macro enabled_vars(vars) %}\n\n{% for v in vars %}\n \n {% if var(v, True) == False %}\n {{ return(False) }}\n {% endif %}\n\n{% endfor %}\n\n{{ return(True) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.442566, "supported_languages": null}, "macro.fivetran_utils.percentile": {"name": "percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.percentile", "macro_sql": "{% macro percentile(percentile_field, partition_field, percent) -%}\n\n{{ adapter.dispatch('percentile', 'fivetran_utils') (percentile_field, partition_field, percent) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__percentile"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.443431, "supported_languages": null}, "macro.fivetran_utils.default__percentile": {"name": "default__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.default__percentile", "macro_sql": "{% macro default__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n over ( partition by {{ partition_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.4435918, "supported_languages": null}, "macro.fivetran_utils.redshift__percentile": {"name": "redshift__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.redshift__percentile", "macro_sql": "{% macro redshift__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n over ( partition by {{ partition_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.443746, "supported_languages": null}, "macro.fivetran_utils.bigquery__percentile": {"name": "bigquery__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.bigquery__percentile", "macro_sql": "{% macro bigquery__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percentile_field }}, \n {{ percent }}) \n over (partition by {{ partition_field }} \n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.443899, "supported_languages": null}, "macro.fivetran_utils.postgres__percentile": {"name": "postgres__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.postgres__percentile", "macro_sql": "{% macro postgres__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n /* have to group by partition field */\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.4440389, "supported_languages": null}, "macro.fivetran_utils.spark__percentile": {"name": "spark__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.spark__percentile", "macro_sql": "{% macro spark__percentile(percentile_field, partition_field, percent) %}\n\n percentile( \n {{ percentile_field }}, \n {{ percent }}) \n over (partition by {{ partition_field }} \n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.4441972, "supported_languages": null}, "macro.fivetran_utils.pivot_json_extract": {"name": "pivot_json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/pivot_json_extract.sql", "original_file_path": "macros/pivot_json_extract.sql", "unique_id": "macro.fivetran_utils.pivot_json_extract", "macro_sql": "{% macro pivot_json_extract(string, list_of_properties) %}\n\n{%- for property in list_of_properties -%}\n{%- if property is mapping -%}\nreplace( {{ fivetran_utils.json_extract(string, property.name) }}, '\"', '') as {{ property.alias if property.alias else property.name | replace(' ', '_') | replace('.', '_') | lower }}\n\n{%- else -%}\nreplace( {{ fivetran_utils.json_extract(string, property) }}, '\"', '') as {{ property | replace(' ', '_') | lower }}\n\n{%- endif -%}\n{%- if not loop.last -%},{%- endif %}\n{% endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.json_extract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.4449668, "supported_languages": null}, "macro.fivetran_utils.persist_pass_through_columns": {"name": "persist_pass_through_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/persist_pass_through_columns.sql", "original_file_path": "macros/persist_pass_through_columns.sql", "unique_id": "macro.fivetran_utils.persist_pass_through_columns", "macro_sql": "{% macro persist_pass_through_columns(pass_through_variable, identifier=none, transform='') %}\n\n{% if var(pass_through_variable, none) %}\n {% for field in var(pass_through_variable) %}\n , {{ transform ~ '(' ~ (identifier ~ '.' if identifier else '') ~ (field.alias if field.alias else field.name) ~ ')' }} as {{ field.alias if field.alias else field.name }}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.445622, "supported_languages": null}, "macro.fivetran_utils.json_parse": {"name": "json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.json_parse", "macro_sql": "{% macro json_parse(string, string_path) -%}\n\n{{ adapter.dispatch('json_parse', 'fivetran_utils') (string, string_path) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__json_parse"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.446924, "supported_languages": null}, "macro.fivetran_utils.default__json_parse": {"name": "default__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.default__json_parse", "macro_sql": "{% macro default__json_parse(string, string_path) %}\n\n json_extract_path_text({{string}}, {%- for s in string_path -%}'{{ s }}'{%- if not loop.last -%},{%- endif -%}{%- endfor -%} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.44719, "supported_languages": null}, "macro.fivetran_utils.redshift__json_parse": {"name": "redshift__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.redshift__json_parse", "macro_sql": "{% macro redshift__json_parse(string, string_path) %}\n\n json_extract_path_text({{string}}, {%- for s in string_path -%}'{{ s }}'{%- if not loop.last -%},{%- endif -%}{%- endfor -%} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.447434, "supported_languages": null}, "macro.fivetran_utils.bigquery__json_parse": {"name": "bigquery__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.bigquery__json_parse", "macro_sql": "{% macro bigquery__json_parse(string, string_path) %}\n\n \n json_extract_scalar({{string}}, '$.{%- for s in string_path -%}{{ s }}{%- if not loop.last -%}.{%- endif -%}{%- endfor -%} ')\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.447768, "supported_languages": null}, "macro.fivetran_utils.postgres__json_parse": {"name": "postgres__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.postgres__json_parse", "macro_sql": "{% macro postgres__json_parse(string, string_path) %}\n\n {{string}}::json #>> '{ {%- for s in string_path -%}{{ s }}{%- if not loop.last -%},{%- endif -%}{%- endfor -%} }'\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.447982, "supported_languages": null}, "macro.fivetran_utils.snowflake__json_parse": {"name": "snowflake__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.snowflake__json_parse", "macro_sql": "{% macro snowflake__json_parse(string, string_path) %}\n\n parse_json( {{string}} ) {%- for s in string_path -%}{% if s is number %}[{{ s }}]{% else %}['{{ s }}']{% endif %}{%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.4482272, "supported_languages": null}, "macro.fivetran_utils.spark__json_parse": {"name": "spark__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.spark__json_parse", "macro_sql": "{% macro spark__json_parse(string, string_path) %}\n\n {{string}} : {%- for s in string_path -%}{% if s is number %}[{{ s }}]{% else %}['{{ s }}']{% endif %}{%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.448478, "supported_languages": null}, "macro.fivetran_utils.sqlserver__json_parse": {"name": "sqlserver__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.sqlserver__json_parse", "macro_sql": "{% macro sqlserver__json_parse(string, string_path) %}\n\n json_value({{string}}, '$.{%- for s in string_path -%}{{ s }}{%- if not loop.last -%}.{%- endif -%}{%- endfor -%} ')\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.448698, "supported_languages": null}, "macro.fivetran_utils.max_bool": {"name": "max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.max_bool", "macro_sql": "{% macro max_bool(boolean_field) -%}\n\n{{ adapter.dispatch('max_bool', 'fivetran_utils') (boolean_field) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__max_bool"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.44902, "supported_languages": null}, "macro.fivetran_utils.default__max_bool": {"name": "default__max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.default__max_bool", "macro_sql": "{% macro default__max_bool(boolean_field) %}\n\n bool_or( {{ boolean_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.44912, "supported_languages": null}, "macro.fivetran_utils.snowflake__max_bool": {"name": "snowflake__max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.snowflake__max_bool", "macro_sql": "{% macro snowflake__max_bool(boolean_field) %}\n\n max( {{ boolean_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.4492118, "supported_languages": null}, "macro.fivetran_utils.bigquery__max_bool": {"name": "bigquery__max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.bigquery__max_bool", "macro_sql": "{% macro bigquery__max_bool(boolean_field) %}\n\n max( {{ boolean_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.449307, "supported_languages": null}, "macro.fivetran_utils.calculated_fields": {"name": "calculated_fields", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/calculated_fields.sql", "original_file_path": "macros/calculated_fields.sql", "unique_id": "macro.fivetran_utils.calculated_fields", "macro_sql": "{% macro calculated_fields(variable) -%}\n\n{% if var(variable, none) %}\n {% for field in var(variable) %}\n , {{ field.transform_sql }} as {{ field.name }} \n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.449641, "supported_languages": null}, "macro.fivetran_utils.drop_schemas_automation": {"name": "drop_schemas_automation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/drop_schemas_automation.sql", "original_file_path": "macros/drop_schemas_automation.sql", "unique_id": "macro.fivetran_utils.drop_schemas_automation", "macro_sql": "{% macro drop_schemas_automation(drop_target_schema=true) %}\n {{ return(adapter.dispatch('drop_schemas_automation', 'fivetran_utils')(drop_target_schema)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__drop_schemas_automation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.450339, "supported_languages": null}, "macro.fivetran_utils.default__drop_schemas_automation": {"name": "default__drop_schemas_automation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/drop_schemas_automation.sql", "original_file_path": "macros/drop_schemas_automation.sql", "unique_id": "macro.fivetran_utils.default__drop_schemas_automation", "macro_sql": "{% macro default__drop_schemas_automation(drop_target_schema=true) %}\n\n{% set fetch_list_sql %}\n {% if target.type not in ('databricks', 'spark') %}\n select schema_name\n from \n {{ wrap_in_quotes(target.database) }}.INFORMATION_SCHEMA.SCHEMATA\n where lower(schema_name) like '{{ target.schema | lower }}{%- if not drop_target_schema -%}_{%- endif -%}%'\n {% else %}\n SHOW SCHEMAS LIKE '{{ target.schema }}{%- if not drop_target_schema -%}_{%- endif -%}*'\n {% endif %}\n{% endset %}\n\n{% set results = run_query(fetch_list_sql) %}\n\n{% if execute %}\n {% set results_list = results.columns[0].values() %}\n{% else %}\n {% set results_list = [] %}\n{% endif %}\n\n{% for schema_to_drop in results_list %}\n {% do adapter.drop_schema(api.Relation.create(database=target.database, schema=schema_to_drop)) %}\n {{ print('Schema ' ~ schema_to_drop ~ ' successfully dropped from the ' ~ target.database ~ ' database.\\n')}}\n{% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.wrap_in_quotes", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.451304, "supported_languages": null}, "macro.fivetran_utils.seed_data_helper": {"name": "seed_data_helper", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/seed_data_helper.sql", "original_file_path": "macros/seed_data_helper.sql", "unique_id": "macro.fivetran_utils.seed_data_helper", "macro_sql": "{% macro seed_data_helper(seed_name, warehouses) %}\n\n{% if target.type in warehouses %}\n {% for w in warehouses %}\n {% if target.type == w %}\n {{ return(ref(seed_name ~ \"_\" ~ w ~ \"\")) }}\n {% endif %}\n {% endfor %}\n{% else %}\n{{ return(ref(seed_name)) }}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.451851, "supported_languages": null}, "macro.fivetran_utils.fill_pass_through_columns": {"name": "fill_pass_through_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fill_pass_through_columns.sql", "original_file_path": "macros/fill_pass_through_columns.sql", "unique_id": "macro.fivetran_utils.fill_pass_through_columns", "macro_sql": "{% macro fill_pass_through_columns(pass_through_variable) %}\n\n{% if var(pass_through_variable) %}\n {% for field in var(pass_through_variable) %}\n {% if field is mapping %}\n {% if field.transform_sql %}\n , {{ field.transform_sql }} as {{ field.alias if field.alias else field.name }}\n {% else %}\n , {{ field.alias if field.alias else field.name }}\n {% endif %}\n {% else %}\n , {{ field }}\n {% endif %}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.452669, "supported_languages": null}, "macro.fivetran_utils.string_agg": {"name": "string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.string_agg", "macro_sql": "{% macro string_agg(field_to_agg, delimiter) -%}\n\n{{ adapter.dispatch('string_agg', 'fivetran_utils') (field_to_agg, delimiter) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__string_agg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.4531891, "supported_languages": null}, "macro.fivetran_utils.default__string_agg": {"name": "default__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.default__string_agg", "macro_sql": "{% macro default__string_agg(field_to_agg, delimiter) %}\n string_agg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.453347, "supported_languages": null}, "macro.fivetran_utils.snowflake__string_agg": {"name": "snowflake__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.snowflake__string_agg", "macro_sql": "{% macro snowflake__string_agg(field_to_agg, delimiter) %}\n listagg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.4534888, "supported_languages": null}, "macro.fivetran_utils.redshift__string_agg": {"name": "redshift__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.redshift__string_agg", "macro_sql": "{% macro redshift__string_agg(field_to_agg, delimiter) %}\n listagg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.453631, "supported_languages": null}, "macro.fivetran_utils.spark__string_agg": {"name": "spark__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.spark__string_agg", "macro_sql": "{% macro spark__string_agg(field_to_agg, delimiter) %}\n -- collect set will remove duplicates\n replace(replace(replace(cast( collect_set({{ field_to_agg }}) as string), '[', ''), ']', ''), ', ', {{ delimiter }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.4537542, "supported_languages": null}, "macro.fivetran_utils.timestamp_diff": {"name": "timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.timestamp_diff", "macro_sql": "{% macro timestamp_diff(first_date, second_date, datepart) %}\n {{ adapter.dispatch('timestamp_diff', 'fivetran_utils')(first_date, second_date, datepart) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__timestamp_diff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.456332, "supported_languages": null}, "macro.fivetran_utils.default__timestamp_diff": {"name": "default__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.default__timestamp_diff", "macro_sql": "{% macro default__timestamp_diff(first_date, second_date, datepart) %}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.456602, "supported_languages": null}, "macro.fivetran_utils.redshift__timestamp_diff": {"name": "redshift__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.redshift__timestamp_diff", "macro_sql": "{% macro redshift__timestamp_diff(first_date, second_date, datepart) %}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.4567502, "supported_languages": null}, "macro.fivetran_utils.bigquery__timestamp_diff": {"name": "bigquery__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.bigquery__timestamp_diff", "macro_sql": "{% macro bigquery__timestamp_diff(first_date, second_date, datepart) %}\n\n timestamp_diff(\n {{second_date}},\n {{first_date}},\n {{datepart}}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.456894, "supported_languages": null}, "macro.fivetran_utils.postgres__timestamp_diff": {"name": "postgres__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.postgres__timestamp_diff", "macro_sql": "{% macro postgres__timestamp_diff(first_date, second_date, datepart) %}\n\n {% if datepart == 'year' %}\n (date_part('year', ({{second_date}})::date) - date_part('year', ({{first_date}})::date))\n {% elif datepart == 'quarter' %}\n ({{ dbt.datediff(first_date, second_date, 'year') }} * 4 + date_part('quarter', ({{second_date}})::date) - date_part('quarter', ({{first_date}})::date))\n {% elif datepart == 'month' %}\n ({{ dbt.datediff(first_date, second_date, 'year') }} * 12 + date_part('month', ({{second_date}})::date) - date_part('month', ({{first_date}})::date))\n {% elif datepart == 'day' %}\n (({{second_date}})::date - ({{first_date}})::date)\n {% elif datepart == 'week' %}\n ({{ dbt.datediff(first_date, second_date, 'day') }} / 7 + case\n when date_part('dow', ({{first_date}})::timestamp) <= date_part('dow', ({{second_date}})::timestamp) then\n case when {{first_date}} <= {{second_date}} then 0 else -1 end\n else\n case when {{first_date}} <= {{second_date}} then 1 else 0 end\n end)\n {% elif datepart == 'hour' %}\n ({{ dbt.datediff(first_date, second_date, 'day') }} * 24 + date_part('hour', ({{second_date}})::timestamp) - date_part('hour', ({{first_date}})::timestamp))\n {% elif datepart == 'minute' %}\n ({{ dbt.datediff(first_date, second_date, 'hour') }} * 60 + date_part('minute', ({{second_date}})::timestamp) - date_part('minute', ({{first_date}})::timestamp))\n {% elif datepart == 'second' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60 + floor(date_part('second', ({{second_date}})::timestamp)) - floor(date_part('second', ({{first_date}})::timestamp)))\n {% elif datepart == 'millisecond' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60000 + floor(date_part('millisecond', ({{second_date}})::timestamp)) - floor(date_part('millisecond', ({{first_date}})::timestamp)))\n {% elif datepart == 'microsecond' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60000000 + floor(date_part('microsecond', ({{second_date}})::timestamp)) - floor(date_part('microsecond', ({{first_date}})::timestamp)))\n {% else %}\n {{ exceptions.raise_compiler_error(\"Unsupported datepart for macro datediff in postgres: {!r}\".format(datepart)) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.458472, "supported_languages": null}, "macro.fivetran_utils.try_cast": {"name": "try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.try_cast", "macro_sql": "{% macro try_cast(field, type) %}\n {{ adapter.dispatch('try_cast', 'fivetran_utils') (field, type) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__try_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.459394, "supported_languages": null}, "macro.fivetran_utils.default__try_cast": {"name": "default__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.default__try_cast", "macro_sql": "{% macro default__try_cast(field, type) %}\n {# most databases don't support this function yet\n so we just need to use cast #}\n cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.4595368, "supported_languages": null}, "macro.fivetran_utils.redshift__try_cast": {"name": "redshift__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.redshift__try_cast", "macro_sql": "{% macro redshift__try_cast(field, type) %}\n{%- if type == 'numeric' -%}\n\n case\n when trim({{field}}) ~ '^(0|[1-9][0-9]*)$' then trim({{field}})\n else null\n end::{{type}}\n\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"non-numeric datatypes are not currently supported\") }}\n\n{% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.4598222, "supported_languages": null}, "macro.fivetran_utils.postgres__try_cast": {"name": "postgres__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.postgres__try_cast", "macro_sql": "{% macro postgres__try_cast(field, type) %}\n{%- if type == 'numeric' -%}\n\n case\n when replace(cast({{field}} as varchar),cast(' ' as varchar),cast('' as varchar)) ~ '^(0|[1-9][0-9]*)$' \n then replace(cast({{field}} as varchar),cast(' ' as varchar),cast('' as varchar))\n else null\n end::{{type}}\n\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"non-numeric datatypes are not currently supported\") }}\n\n{% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.460094, "supported_languages": null}, "macro.fivetran_utils.snowflake__try_cast": {"name": "snowflake__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.snowflake__try_cast", "macro_sql": "{% macro snowflake__try_cast(field, type) %}\n try_cast(cast({{field}} as varchar) as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.4602182, "supported_languages": null}, "macro.fivetran_utils.bigquery__try_cast": {"name": "bigquery__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.bigquery__try_cast", "macro_sql": "{% macro bigquery__try_cast(field, type) %}\n safe_cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.460342, "supported_languages": null}, "macro.fivetran_utils.spark__try_cast": {"name": "spark__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.spark__try_cast", "macro_sql": "{% macro spark__try_cast(field, type) %}\n try_cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.460474, "supported_languages": null}, "macro.fivetran_utils.sqlserver__try_cast": {"name": "sqlserver__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.sqlserver__try_cast", "macro_sql": "{% macro sqlserver__try_cast(field, type) %}\n try_cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.4605901, "supported_languages": null}, "macro.fivetran_utils.source_relation": {"name": "source_relation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/source_relation.sql", "original_file_path": "macros/source_relation.sql", "unique_id": "macro.fivetran_utils.source_relation", "macro_sql": "{% macro source_relation(union_schema_variable='union_schemas', union_database_variable='union_databases') -%}\n\n{{ adapter.dispatch('source_relation', 'fivetran_utils') (union_schema_variable, union_database_variable) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__source_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.46105, "supported_languages": null}, "macro.fivetran_utils.default__source_relation": {"name": "default__source_relation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/source_relation.sql", "original_file_path": "macros/source_relation.sql", "unique_id": "macro.fivetran_utils.default__source_relation", "macro_sql": "{% macro default__source_relation(union_schema_variable, union_database_variable) %}\n\n{% if var(union_schema_variable, none) %}\n, case\n {% for schema in var(union_schema_variable) %}\n when lower(replace(replace(_dbt_source_relation,'\"',''),'`','')) like '%.{{ schema|lower }}.%' then '{{ schema|lower }}'\n {% endfor %}\n end as source_relation\n{% elif var(union_database_variable, none) %}\n, case\n {% for database in var(union_database_variable) %}\n when lower(replace(replace(_dbt_source_relation,'\"',''),'`','')) like '%{{ database|lower }}.%' then '{{ database|lower }}'\n {% endfor %}\n end as source_relation\n{% else %}\n, cast('' as {{ dbt.type_string() }}) as source_relation\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.461605, "supported_languages": null}, "macro.fivetran_utils.first_value": {"name": "first_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "unique_id": "macro.fivetran_utils.first_value", "macro_sql": "{% macro first_value(first_value_field, partition_field, order_by_field, order=\"asc\") -%}\n\n{{ adapter.dispatch('first_value', 'fivetran_utils') (first_value_field, partition_field, order_by_field, order) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__first_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.462123, "supported_languages": null}, "macro.fivetran_utils.default__first_value": {"name": "default__first_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "unique_id": "macro.fivetran_utils.default__first_value", "macro_sql": "{% macro default__first_value(first_value_field, partition_field, order_by_field, order=\"asc\") %}\n\n first_value( {{ first_value_field }} ignore nulls ) over (partition by {{ partition_field }} order by {{ order_by_field }} {{ order }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.4623349, "supported_languages": null}, "macro.fivetran_utils.redshift__first_value": {"name": "redshift__first_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "unique_id": "macro.fivetran_utils.redshift__first_value", "macro_sql": "{% macro redshift__first_value(first_value_field, partition_field, order_by_field, order=\"asc\") %}\n\n first_value( {{ first_value_field }} ignore nulls ) over (partition by {{ partition_field }} order by {{ order_by_field }} {{ order }} , {{ partition_field }} rows unbounded preceding )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.462571, "supported_languages": null}, "macro.fivetran_utils.add_dbt_source_relation": {"name": "add_dbt_source_relation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/add_dbt_source_relation.sql", "original_file_path": "macros/add_dbt_source_relation.sql", "unique_id": "macro.fivetran_utils.add_dbt_source_relation", "macro_sql": "{% macro add_dbt_source_relation() %}\n\n{% if var('union_schemas', none) or var('union_databases', none) %}\n, _dbt_source_relation\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.462846, "supported_languages": null}, "macro.fivetran_utils.add_pass_through_columns": {"name": "add_pass_through_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/add_pass_through_columns.sql", "original_file_path": "macros/add_pass_through_columns.sql", "unique_id": "macro.fivetran_utils.add_pass_through_columns", "macro_sql": "{% macro add_pass_through_columns(base_columns, pass_through_var) %}\n\n {% if pass_through_var %}\n\n {% for column in pass_through_var %}\n\n {% if column is mapping %}\n\n {% if column.alias %}\n\n {% do base_columns.append({ \"name\": column.name, \"alias\": column.alias, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n\n {% else %}\n\n {% do base_columns.append({ \"name\": column.name, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n \n {% endif %}\n\n {% else %}\n\n {% do base_columns.append({ \"name\": column, \"datatype\": dbt.type_string()}) %}\n\n {% endif %}\n\n {% endfor %}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.463996, "supported_languages": null}, "macro.fivetran_utils.union_relations": {"name": "union_relations", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_relations.sql", "original_file_path": "macros/union_relations.sql", "unique_id": "macro.fivetran_utils.union_relations", "macro_sql": "{%- macro union_relations(relations, aliases=none, column_override=none, include=[], exclude=[], source_column_name=none) -%}\n\n {%- if exclude and include -%}\n {{ exceptions.raise_compiler_error(\"Both an exclude and include list were provided to the `union` macro. Only one is allowed\") }}\n {%- endif -%}\n\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. -#}\n {%- if not execute %}\n {{ return('') }}\n {% endif -%}\n\n {%- set column_override = column_override if column_override is not none else {} -%}\n {%- set source_column_name = source_column_name if source_column_name is not none else '_dbt_source_relation' -%}\n\n {%- set relation_columns = {} -%}\n {%- set column_superset = {} -%}\n\n {%- for relation in relations -%}\n\n {%- do relation_columns.update({relation: []}) -%}\n\n {%- do dbt_utils._is_relation(relation, 'union_relations') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) -%}\n {%- for col in cols -%}\n\n {#- If an exclude list was provided and the column is in the list, do nothing -#}\n {%- if exclude and col.column in exclude -%}\n\n {#- If an include list was provided and the column is not in the list, do nothing -#}\n {%- elif include and col.column not in include -%}\n\n {#- Otherwise add the column to the column superset -#}\n {%- else -%}\n\n {#- update the list of columns in this relation -#}\n {%- do relation_columns[relation].append(col.column) -%}\n\n {%- if col.column in column_superset -%}\n\n {%- set stored = column_superset[col.column] -%}\n {%- if col.is_string() and stored.is_string() and col.string_size() > stored.string_size() -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif %}\n\n {%- else -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif -%}\n\n {%- endif -%}\n\n {%- endfor -%}\n {%- endfor -%}\n\n {%- set ordered_column_names = column_superset.keys() -%}\n\n {%- for relation in relations %}\n\n (\n select\n\n cast({{ dbt.string_literal(relation) }} as {{ dbt.type_string() }}) as {{ source_column_name }},\n {% for col_name in ordered_column_names -%}\n\n {%- set col = column_superset[col_name] %}\n {%- set col_type = column_override.get(col.column, col.data_type) %}\n {%- set col_name = adapter.quote(col_name) if col_name in relation_columns[relation] else 'null' %}\n cast({{ col_name }} as {{ col_type }}) as {{ col.quoted }} {% if not loop.last %},{% endif -%}\n\n {%- endfor %}\n\n from {{ aliases[loop.index0] if aliases else relation }}\n )\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt.string_literal", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.4675999, "supported_languages": null}, "macro.fivetran_utils.union_tables": {"name": "union_tables", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_relations.sql", "original_file_path": "macros/union_relations.sql", "unique_id": "macro.fivetran_utils.union_tables", "macro_sql": "{%- macro union_tables(tables, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_table') -%}\n\n {%- do exceptions.warn(\"Warning: the `union_tables` macro is no longer supported and will be deprecated in a future release of dbt-utils. Use the `union_relations` macro instead\") -%}\n\n {{ return(dbt_utils.union_relations(tables, column_override, include, exclude, source_column_name)) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_utils.union_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.467942, "supported_languages": null}, "macro.fivetran_utils.snowflake_seed_data": {"name": "snowflake_seed_data", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/snowflake_seed_data.sql", "original_file_path": "macros/snowflake_seed_data.sql", "unique_id": "macro.fivetran_utils.snowflake_seed_data", "macro_sql": "{% macro snowflake_seed_data(seed_name) %}\n\n{% if target.type == 'snowflake' %}\n{{ return(ref(seed_name ~ '_snowflake')) }}\n{% else %}\n{{ return(ref(seed_name)) }}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.468297, "supported_languages": null}, "macro.fivetran_utils.fill_staging_columns": {"name": "fill_staging_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fill_staging_columns.sql", "original_file_path": "macros/fill_staging_columns.sql", "unique_id": "macro.fivetran_utils.fill_staging_columns", "macro_sql": "{% macro fill_staging_columns(source_columns, staging_columns) -%}\n\n{%- set source_column_names = source_columns|map(attribute='name')|map('lower')|list -%}\n\n{%- for column in staging_columns %}\n {% if column.name|lower in source_column_names -%}\n {{ fivetran_utils.quote_column(column) }} as \n {%- if 'alias' in column %} {{ column.alias }} {% else %} {{ fivetran_utils.quote_column(column) }} {%- endif -%}\n {%- else -%}\n cast(null as {{ column.datatype }})\n {%- if 'alias' in column %} as {{ column.alias }} {% else %} as {{ fivetran_utils.quote_column(column) }} {% endif -%}\n {%- endif -%}\n {%- if not loop.last -%} , {% endif -%}\n{% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.quote_column"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.469759, "supported_languages": null}, "macro.fivetran_utils.quote_column": {"name": "quote_column", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fill_staging_columns.sql", "original_file_path": "macros/fill_staging_columns.sql", "unique_id": "macro.fivetran_utils.quote_column", "macro_sql": "{% macro quote_column(column) %}\n {% if 'quote' in column %}\n {% if column.quote %}\n {% if target.type in ('bigquery', 'spark', 'databricks') %}\n `{{ column.name }}`\n {% elif target.type == 'snowflake' %}\n \"{{ column.name | upper }}\"\n {% else %}\n \"{{ column.name }}\"\n {% endif %}\n {% else %}\n {{ column.name }}\n {% endif %}\n {% else %}\n {{ column.name }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.4703119, "supported_languages": null}, "macro.fivetran_utils.json_extract": {"name": "json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.json_extract", "macro_sql": "{% macro json_extract(string, string_path) -%}\n\n{{ adapter.dispatch('json_extract', 'fivetran_utils') (string, string_path) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__json_extract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.4708722, "supported_languages": null}, "macro.fivetran_utils.default__json_extract": {"name": "default__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.default__json_extract", "macro_sql": "{% macro default__json_extract(string, string_path) %}\n\n json_extract_path_text({{string}}, {{ \"'\" ~ string_path ~ \"'\" }} )\n \n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.471019, "supported_languages": null}, "macro.fivetran_utils.snowflake__json_extract": {"name": "snowflake__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.snowflake__json_extract", "macro_sql": "{% macro snowflake__json_extract(string, string_path) %}\n\n json_extract_path_text(try_parse_json( {{string}} ), {{ \"'\" ~ string_path ~ \"'\" }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.471206, "supported_languages": null}, "macro.fivetran_utils.redshift__json_extract": {"name": "redshift__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.redshift__json_extract", "macro_sql": "{% macro redshift__json_extract(string, string_path) %}\n\n case when is_valid_json( {{string}} ) then json_extract_path_text({{string}}, {{ \"'\" ~ string_path ~ \"'\" }} ) else null end\n \n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.4713678, "supported_languages": null}, "macro.fivetran_utils.bigquery__json_extract": {"name": "bigquery__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.bigquery__json_extract", "macro_sql": "{% macro bigquery__json_extract(string, string_path) %}\n\n json_extract_scalar({{string}}, {{ \"'$.\" ~ string_path ~ \"'\" }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.471509, "supported_languages": null}, "macro.fivetran_utils.postgres__json_extract": {"name": "postgres__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.postgres__json_extract", "macro_sql": "{% macro postgres__json_extract(string, string_path) %}\n\n {{string}}::json->>{{\"'\" ~ string_path ~ \"'\" }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.471642, "supported_languages": null}, "macro.fivetran_utils.collect_freshness": {"name": "collect_freshness", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/collect_freshness.sql", "original_file_path": "macros/collect_freshness.sql", "unique_id": "macro.fivetran_utils.collect_freshness", "macro_sql": "{% macro collect_freshness(source, loaded_at_field, filter) %}\n {{ return(adapter.dispatch('collect_freshness')(source, loaded_at_field, filter))}}\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.472408, "supported_languages": null}, "macro.fivetran_utils.default__collect_freshness": {"name": "default__collect_freshness", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/collect_freshness.sql", "original_file_path": "macros/collect_freshness.sql", "unique_id": "macro.fivetran_utils.default__collect_freshness", "macro_sql": "{% macro default__collect_freshness(source, loaded_at_field, filter) %}\n {% call statement('collect_freshness', fetch_result=True, auto_begin=False) -%}\n\n {%- set enabled_array = [] -%}\n {% for node in graph.sources.values() %}\n {% if node.identifier == source.identifier %}\n {% if (node.meta['is_enabled'] | default(true)) %}\n {%- do enabled_array.append(1) -%}\n {% endif %}\n {% endif %}\n {% endfor %}\n {% set is_enabled = (enabled_array != []) %}\n\n select\n {% if is_enabled %}\n max({{ loaded_at_field }})\n {% else %} \n {{ current_timestamp() }} {% endif %} as max_loaded_at,\n {{ current_timestamp() }} as snapshotted_at\n\n {% if is_enabled %}\n from {{ source }}\n {% if filter %}\n where {{ filter }}\n {% endif %}\n {% endif %}\n\n {% endcall %}\n\n {% if dbt_version.split('.') | map('int') | list >= [1, 5, 0] %}\n {{ return(load_result('collect_freshness')) }}\n {% else %}\n {{ return(load_result('collect_freshness').table) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.4736042, "supported_languages": null}, "macro.fivetran_utils.timestamp_add": {"name": "timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.timestamp_add", "macro_sql": "{% macro timestamp_add(datepart, interval, from_timestamp) -%}\n\n{{ adapter.dispatch('timestamp_add', 'fivetran_utils') (datepart, interval, from_timestamp) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__timestamp_add"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.474269, "supported_languages": null}, "macro.fivetran_utils.default__timestamp_add": {"name": "default__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.default__timestamp_add", "macro_sql": "{% macro default__timestamp_add(datepart, interval, from_timestamp) %}\n\n timestampadd(\n {{ datepart }},\n {{ interval }},\n {{ from_timestamp }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.474422, "supported_languages": null}, "macro.fivetran_utils.bigquery__timestamp_add": {"name": "bigquery__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.bigquery__timestamp_add", "macro_sql": "{% macro bigquery__timestamp_add(datepart, interval, from_timestamp) %}\n\n timestamp_add({{ from_timestamp }}, interval {{ interval }} {{ datepart }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.474572, "supported_languages": null}, "macro.fivetran_utils.redshift__timestamp_add": {"name": "redshift__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.redshift__timestamp_add", "macro_sql": "{% macro redshift__timestamp_add(datepart, interval, from_timestamp) %}\n\n dateadd(\n {{ datepart }},\n {{ interval }},\n {{ from_timestamp }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.474719, "supported_languages": null}, "macro.fivetran_utils.postgres__timestamp_add": {"name": "postgres__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.postgres__timestamp_add", "macro_sql": "{% macro postgres__timestamp_add(datepart, interval, from_timestamp) %}\n\n {{ from_timestamp }} + ((interval '1 {{ datepart }}') * ({{ interval }}))\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.4748611, "supported_languages": null}, "macro.fivetran_utils.spark__timestamp_add": {"name": "spark__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.spark__timestamp_add", "macro_sql": "{% macro spark__timestamp_add(datepart, interval, from_timestamp) %}\n\n {{ dbt.dateadd(datepart, interval, from_timestamp) }}\n \n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.47502, "supported_languages": null}, "macro.fivetran_utils.ceiling": {"name": "ceiling", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "unique_id": "macro.fivetran_utils.ceiling", "macro_sql": "{% macro ceiling(num) -%}\n\n{{ adapter.dispatch('ceiling', 'fivetran_utils') (num) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__ceiling"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.475261, "supported_languages": null}, "macro.fivetran_utils.default__ceiling": {"name": "default__ceiling", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "unique_id": "macro.fivetran_utils.default__ceiling", "macro_sql": "{% macro default__ceiling(num) %}\n ceiling({{ num }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.475361, "supported_languages": null}, "macro.fivetran_utils.snowflake__ceiling": {"name": "snowflake__ceiling", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "unique_id": "macro.fivetran_utils.snowflake__ceiling", "macro_sql": "{% macro snowflake__ceiling(num) %}\n ceil({{ num }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.475456, "supported_languages": null}, "macro.fivetran_utils.remove_prefix_from_columns": {"name": "remove_prefix_from_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/remove_prefix_from_columns.sql", "original_file_path": "macros/remove_prefix_from_columns.sql", "unique_id": "macro.fivetran_utils.remove_prefix_from_columns", "macro_sql": "{% macro remove_prefix_from_columns(columns, prefix='', exclude=[]) %}\n\n {%- for col in columns if col.name not in exclude -%}\n {%- if col.name[:prefix|length]|lower == prefix -%}\n {{ col.name }} as {{ col.name[prefix|length:] }}\n {%- else -%}\n {{ col.name }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {% endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.4760551, "supported_languages": null}, "macro.fivetran_utils.fivetran_date_spine": {"name": "fivetran_date_spine", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fivetran_date_spine.sql", "original_file_path": "macros/fivetran_date_spine.sql", "unique_id": "macro.fivetran_utils.fivetran_date_spine", "macro_sql": "{% macro fivetran_date_spine(datepart, start_date, end_date) -%}\n\n{{ return(adapter.dispatch('fivetran_date_spine', 'fivetran_utils') (datepart, start_date, end_date)) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__fivetran_date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.477225, "supported_languages": null}, "macro.fivetran_utils.default__fivetran_date_spine": {"name": "default__fivetran_date_spine", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fivetran_date_spine.sql", "original_file_path": "macros/fivetran_date_spine.sql", "unique_id": "macro.fivetran_utils.default__fivetran_date_spine", "macro_sql": "{% macro default__fivetran_date_spine(datepart, start_date, end_date) %}\n\n {{ dbt_utils.date_spine(datepart, start_date, end_date) }}\n \n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.477392, "supported_languages": null}, "macro.fivetran_utils.sqlserver__fivetran_date_spine": {"name": "sqlserver__fivetran_date_spine", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fivetran_date_spine.sql", "original_file_path": "macros/fivetran_date_spine.sql", "unique_id": "macro.fivetran_utils.sqlserver__fivetran_date_spine", "macro_sql": "{% macro sqlserver__fivetran_date_spine(datepart, start_date, end_date) -%}\n\n {% set date_spine_query %}\n with\n\n l0 as (\n\n select c\n from (select 1 union all select 1) as d(c)\n\n ),\n l1 as (\n\n select\n 1 as c\n from l0 as a\n cross join l0 as b\n\n ),\n\n l2 as (\n\n select 1 as c\n from l1 as a\n cross join l1 as b\n ),\n\n l3 as (\n\n select 1 as c\n from l2 as a\n cross join l2 as b\n ),\n\n l4 as (\n\n select 1 as c\n from l3 as a\n cross join l3 as b\n ),\n\n l5 as (\n\n select 1 as c\n from l4 as a\n cross join l4 as b\n ),\n\n nums as (\n\n select row_number() over (order by (select null)) as rownum\n from l5\n ),\n\n rawdata as (\n\n select top ({{dbt.datediff(start_date, end_date, datepart)}}) rownum -1 as n\n from nums\n order by rownum\n ),\n\n all_periods as (\n\n select (\n {{\n dbt.dateadd(\n datepart,\n 'n',\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n ),\n\n filtered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n )\n\n select * from filtered\n order by 1\n\n {% endset %}\n\n {% set results = run_query(date_spine_query) %}\n\n {% if execute %}\n\n {% set results_list = results.columns[0].values() %}\n \n {% else %}\n\n {% set results_list = [] %}\n\n {% endif %}\n\n {%- for date_field in results_list %}\n select cast('{{ date_field }}' as date) as date_{{datepart}} {{ 'union all ' if not loop.last else '' }}\n {% endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.datediff", "macro.dbt.dateadd", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.4781592, "supported_languages": null}, "macro.fivetran_utils.union_data": {"name": "union_data", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_data.sql", "original_file_path": "macros/union_data.sql", "unique_id": "macro.fivetran_utils.union_data", "macro_sql": "{%- macro union_data(table_identifier, database_variable, schema_variable, default_database, default_schema, default_variable, union_schema_variable='union_schemas', union_database_variable='union_databases') -%}\n\n{{ adapter.dispatch('union_data', 'fivetran_utils') (\n table_identifier, \n database_variable, \n schema_variable, \n default_database, \n default_schema, \n default_variable,\n union_schema_variable,\n union_database_variable\n ) }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.fivetran_utils.default__union_data"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.481335, "supported_languages": null}, "macro.fivetran_utils.default__union_data": {"name": "default__union_data", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_data.sql", "original_file_path": "macros/union_data.sql", "unique_id": "macro.fivetran_utils.default__union_data", "macro_sql": "{%- macro default__union_data(\n table_identifier, \n database_variable, \n schema_variable, \n default_database, \n default_schema, \n default_variable,\n union_schema_variable,\n union_database_variable\n ) -%}\n\n{%- if var(union_schema_variable, none) -%}\n\n {%- set relations = [] -%}\n \n {%- if var(union_schema_variable) is string -%}\n {%- set trimmed = var(union_schema_variable)|trim('[')|trim(']') -%}\n {%- set schemas = trimmed.split(',')|map('trim',\" \")|map('trim','\"')|map('trim',\"'\") -%}\n {%- else -%}\n {%- set schemas = var(union_schema_variable) -%}\n {%- endif -%}\n\n {%- for schema in var(union_schema_variable) -%}\n {%- set relation=adapter.get_relation(\n database=source(schema, table_identifier).database if var('has_defined_sources', false) else var(database_variable, default_database),\n schema=source(schema, table_identifier).schema if var('has_defined_sources', false) else schema,\n identifier=source(schema, table_identifier).identifier if var('has_defined_sources', false) else table_identifier\n ) -%}\n \n {%- set relation_exists=relation is not none -%}\n\n {%- if relation_exists -%}\n {%- do relations.append(relation) -%}\n {%- endif -%}\n\n {%- endfor -%}\n \n {%- if relations != [] -%}\n {{ dbt_utils.union_relations(relations) }}\n {%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit 0\n {%- endif -%}\n\n{%- elif var(union_database_variable, none) -%}\n\n {%- set relations = [] -%}\n\n {%- for database in var(union_database_variable) -%}\n {%- set relation=adapter.get_relation(\n database=source(schema, table_identifier).database if var('has_defined_sources', false) else database,\n schema=source(schema, table_identifier).schema if var('has_defined_sources', false) else var(schema_variable, default_schema),\n identifier=source(schema, table_identifier).identifier if var('has_defined_sources', false) else table_identifier\n ) -%}\n\n {%- set relation_exists=relation is not none -%}\n\n {%- if relation_exists -%}\n {%- do relations.append(relation) -%}\n {%- endif -%}\n\n {%- endfor -%}\n\n {%- if relations != [] -%}\n {{ dbt_utils.union_relations(relations) }}\n {%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit 0\n {%- endif -%}\n\n{%- else -%}\n {% set exception_schemas = {\"linkedin_company_pages\": \"linkedin_pages\", \"instagram_business_pages\": \"instagram_business\"} %}\n {% set relation = namespace(value=\"\") %}\n {% if default_schema in exception_schemas.keys() %}\n {% for corrected_schema_name in exception_schemas.items() %} \n {% if default_schema in corrected_schema_name %}\n {# In order for this macro to effectively work within upstream integration tests (mainly used by the Fivetran dbt package maintainers), this identifier variable selection is required to use the macro with different identifier names. #}\n {% set identifier_var = corrected_schema_name[1] + \"_\" + table_identifier + \"_identifier\" %}\n {%- set relation.value=adapter.get_relation(\n database=source(corrected_schema_name[1], table_identifier).database,\n schema=source(corrected_schema_name[1], table_identifier).schema,\n identifier=var(identifier_var, table_identifier)\n ) -%}\n {% endif %}\n {% endfor %}\n {% else %}\n {# In order for this macro to effectively work within upstream integration tests (mainly used by the Fivetran dbt package maintainers), this identifier variable selection is required to use the macro with different identifier names. #}\n {% set identifier_var = default_schema + \"_\" + table_identifier + \"_identifier\" %}\n {# Unfortunately the Twitter Organic identifiers were misspelled. As such, we will need to account for this in the model. This will be adjusted in the Twitter Organic package, but to ensure backwards compatibility, this needs to be included. #}\n {% if var(identifier_var, none) is none %} \n {% set identifier_var = default_schema + \"_\" + table_identifier + \"_identifer\" %}\n {% endif %}\n {%- set relation.value=adapter.get_relation(\n database=source(default_schema, table_identifier).database,\n schema=source(default_schema, table_identifier).schema,\n identifier=var(identifier_var, table_identifier)\n ) -%}\n {% endif %}\n{%- set table_exists=relation.value is not none -%}\n\n{%- if table_exists -%}\n select * \n from {{ relation.value }}\n{%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit 0\n{%- endif -%}\n{%- endif -%}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_utils.union_relations", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.4857228, "supported_languages": null}, "macro.fivetran_utils.dummy_coalesce_value": {"name": "dummy_coalesce_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/dummy_coalesce_value.sql", "original_file_path": "macros/dummy_coalesce_value.sql", "unique_id": "macro.fivetran_utils.dummy_coalesce_value", "macro_sql": "{% macro dummy_coalesce_value(column) %}\n\n{% set coalesce_value = {\n 'STRING': \"'DUMMY_STRING'\",\n 'BOOLEAN': 'null',\n 'INT': 999999999,\n 'FLOAT': 999999999.99,\n 'TIMESTAMP': 'cast(\"2099-12-31\" as timestamp)',\n 'DATE': 'cast(\"2099-12-31\" as date)',\n} %}\n\n{% if column.is_float() %}\n{{ return(coalesce_value['FLOAT']) }}\n\n{% elif column.is_numeric() %}\n{{ return(coalesce_value['INT']) }}\n\n{% elif column.is_string() %}\n{{ return(coalesce_value['STRING']) }}\n\n{% elif column.data_type|lower == 'boolean' %}\n{{ return(coalesce_value['BOOLEAN']) }}\n\n{% elif 'timestamp' in column.data_type|lower %}\n{{ return(coalesce_value['TIMESTAMP']) }}\n\n{% elif 'date' in column.data_type|lower %}\n{{ return(coalesce_value['DATE']) }}\n\n{% elif 'int' in column.data_type|lower %}\n{{ return(coalesce_value['INT']) }}\n\n{% endif %}\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.487144, "supported_languages": null}, "macro.fivetran_utils.extract_url_parameter": {"name": "extract_url_parameter", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/extract_url_parameter.sql", "original_file_path": "macros/extract_url_parameter.sql", "unique_id": "macro.fivetran_utils.extract_url_parameter", "macro_sql": "{% macro extract_url_parameter(field, url_parameter) -%}\n\n{{ adapter.dispatch('extract_url_parameter', 'fivetran_utils') (field, url_parameter) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__extract_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.4875362, "supported_languages": null}, "macro.fivetran_utils.default__extract_url_parameter": {"name": "default__extract_url_parameter", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/extract_url_parameter.sql", "original_file_path": "macros/extract_url_parameter.sql", "unique_id": "macro.fivetran_utils.default__extract_url_parameter", "macro_sql": "{% macro default__extract_url_parameter(field, url_parameter) -%}\n\n{{ dbt_utils.get_url_parameter(field, url_parameter) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.487699, "supported_languages": null}, "macro.fivetran_utils.spark__extract_url_parameter": {"name": "spark__extract_url_parameter", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/extract_url_parameter.sql", "original_file_path": "macros/extract_url_parameter.sql", "unique_id": "macro.fivetran_utils.spark__extract_url_parameter", "macro_sql": "{% macro spark__extract_url_parameter(field, url_parameter) -%}\n\n{%- set formatted_url_parameter = \"'\" + url_parameter + \"=([^&]+)'\" -%}\nnullif(regexp_extract({{ field }}, {{ formatted_url_parameter }}, 1), '')\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.487895, "supported_languages": null}, "macro.fivetran_utils.wrap_in_quotes": {"name": "wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.wrap_in_quotes", "macro_sql": "{%- macro wrap_in_quotes(object_to_quote) -%}\n\n{{ return(adapter.dispatch('wrap_in_quotes', 'fivetran_utils')(object_to_quote)) }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.fivetran_utils.postgres__wrap_in_quotes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.488232, "supported_languages": null}, "macro.fivetran_utils.default__wrap_in_quotes": {"name": "default__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.default__wrap_in_quotes", "macro_sql": "{%- macro default__wrap_in_quotes(object_to_quote) -%}\n{# bigquery, spark, databricks #}\n `{{ object_to_quote }}`\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.488346, "supported_languages": null}, "macro.fivetran_utils.snowflake__wrap_in_quotes": {"name": "snowflake__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.snowflake__wrap_in_quotes", "macro_sql": "{%- macro snowflake__wrap_in_quotes(object_to_quote) -%}\n \"{{ object_to_quote | upper }}\"\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.488456, "supported_languages": null}, "macro.fivetran_utils.redshift__wrap_in_quotes": {"name": "redshift__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.redshift__wrap_in_quotes", "macro_sql": "{%- macro redshift__wrap_in_quotes(object_to_quote) -%}\n \"{{ object_to_quote }}\"\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.488557, "supported_languages": null}, "macro.fivetran_utils.postgres__wrap_in_quotes": {"name": "postgres__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.postgres__wrap_in_quotes", "macro_sql": "{%- macro postgres__wrap_in_quotes(object_to_quote) -%}\n \"{{ object_to_quote }}\"\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.488653, "supported_languages": null}, "macro.fivetran_utils.array_agg": {"name": "array_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "unique_id": "macro.fivetran_utils.array_agg", "macro_sql": "{% macro array_agg(field_to_agg) -%}\n\n{{ adapter.dispatch('array_agg', 'fivetran_utils') (field_to_agg) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__array_agg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.4889102, "supported_languages": null}, "macro.fivetran_utils.default__array_agg": {"name": "default__array_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "unique_id": "macro.fivetran_utils.default__array_agg", "macro_sql": "{% macro default__array_agg(field_to_agg) %}\n array_agg({{ field_to_agg }})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.489007, "supported_languages": null}, "macro.fivetran_utils.redshift__array_agg": {"name": "redshift__array_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "unique_id": "macro.fivetran_utils.redshift__array_agg", "macro_sql": "{% macro redshift__array_agg(field_to_agg) %}\n listagg({{ field_to_agg }}, ',')\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.4891021, "supported_languages": null}, "macro.fivetran_utils.empty_variable_warning": {"name": "empty_variable_warning", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/empty_variable_warning.sql", "original_file_path": "macros/empty_variable_warning.sql", "unique_id": "macro.fivetran_utils.empty_variable_warning", "macro_sql": "{% macro empty_variable_warning(variable, downstream_model) %}\n\n{% if not var(variable) %}\n{{ log(\n \"\"\"\n Warning: You have passed an empty list to the \"\"\" ~ variable ~ \"\"\".\n As a result, you won't see the history of any columns in the \"\"\" ~ downstream_model ~ \"\"\" model.\n \"\"\",\n info=True\n) }}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.489471, "supported_languages": null}, "macro.fivetran_utils.enabled_vars_one_true": {"name": "enabled_vars_one_true", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/enabled_vars_one_true.sql", "original_file_path": "macros/enabled_vars_one_true.sql", "unique_id": "macro.fivetran_utils.enabled_vars_one_true", "macro_sql": "{% macro enabled_vars_one_true(vars) %}\n\n{% for v in vars %}\n \n {% if var(v, False) == True %}\n {{ return(True) }}\n {% endif %}\n\n{% endfor %}\n\n{{ return(False) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.4898229, "supported_languages": null}, "macro.servicenow.get_change_request_columns": {"name": "get_change_request_columns", "resource_type": "macro", "package_name": "servicenow", "path": "macros/get_change_request_columns.sql", "original_file_path": "macros/get_change_request_columns.sql", "unique_id": "macro.servicenow.get_change_request_columns", "macro_sql": "{% macro get_change_request_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"backout_plan\", \"datatype\": dbt.type_string()},\n {\"name\": \"cab_date\", \"datatype\": \"date\"},\n {\"name\": \"cab_date_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"cab_delegate_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"cab_delegate_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"cab_recommendation\", \"datatype\": dbt.type_string()},\n {\"name\": \"cab_required\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"category\", \"datatype\": dbt.type_string()},\n {\"name\": \"change_plan\", \"datatype\": dbt.type_string()},\n {\"name\": \"chg_model_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"chg_model_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"close_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"conflict_last_run\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"conflict_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"end_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"implementation_plan\", \"datatype\": dbt.type_string()},\n {\"name\": \"justification\", \"datatype\": dbt.type_string()},\n {\"name\": \"on_hold\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"on_hold_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"on_hold_task\", \"datatype\": dbt.type_string()},\n {\"name\": \"outside_maintenance_schedule\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"phase\", \"datatype\": dbt.type_string()},\n {\"name\": \"phase_state\", \"datatype\": dbt.type_string()},\n {\"name\": \"production_system\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"requested_by_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"requested_by_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"requested_by_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"review_comments\", \"datatype\": dbt.type_string()},\n {\"name\": \"review_date\", \"datatype\": \"date\"},\n {\"name\": \"review_status\", \"datatype\": dbt.type_int()},\n {\"name\": \"risk\", \"datatype\": dbt.type_int()},\n {\"name\": \"risk_impact_analysis\", \"datatype\": dbt.type_string()},\n {\"name\": \"scope\", \"datatype\": dbt.type_int()},\n {\"name\": \"start_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"std_change_producer_version_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"std_change_producer_version_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_created_on\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"sys_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_updated_on\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"test_plan\", \"datatype\": dbt.type_string()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"unauthorized\", \"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", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.4951239, "supported_languages": null}, "macro.servicenow.get_task_sla_columns": {"name": "get_task_sla_columns", "resource_type": "macro", "package_name": "servicenow", "path": "macros/get_task_sla_columns.sql", "original_file_path": "macros/get_task_sla_columns.sql", "unique_id": "macro.servicenow.get_task_sla_columns", "macro_sql": "{% macro get_task_sla_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"active\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"business_duration\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"business_pause_duration\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"business_percentage\", \"datatype\": dbt.type_float()},\n {\"name\": \"business_time_left\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"duration\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"end_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"has_breached\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"original_breach_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"pause_duration\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"pause_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"percentage\", \"datatype\": dbt.type_float()},\n {\"name\": \"planned_end_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"schedule_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"schedule_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"sla_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"sla_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"stage\", \"datatype\": dbt.type_string()},\n {\"name\": \"start_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"sys_created_by\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_created_on\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"sys_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_mod_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"sys_updated_by\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_updated_on\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"task_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"task_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"time_left\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"timezone\", \"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", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.498661, "supported_languages": null}, "macro.servicenow.get_core_company_columns": {"name": "get_core_company_columns", "resource_type": "macro", "package_name": "servicenow", "path": "macros/get_core_company_columns.sql", "original_file_path": "macros/get_core_company_columns.sql", "unique_id": "macro.servicenow.get_core_company_columns", "macro_sql": "{% macro get_core_company_columns() %}\n\n{% set columns = [\n\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"sys_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"city\", \"datatype\": dbt.type_string()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"fax_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"fiscal_year\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"notes\", \"datatype\": dbt.type_string()},\n {\"name\": \"phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"state\", \"datatype\": dbt.type_string()},\n {\"name\": \"street\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_class_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_created_by\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_created_on\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_mod_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"sys_updated_by\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_updated_on\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"vendor\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"vendor_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"website\", \"datatype\": dbt.type_string()},\n {\"name\": \"zip\", \"datatype\": dbt.type_int()}\n\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.501236, "supported_languages": null}, "macro.servicenow.get_cmdb_ci_service_columns": {"name": "get_cmdb_ci_service_columns", "resource_type": "macro", "package_name": "servicenow", "path": "macros/get_cmdb_ci_service_columns.sql", "original_file_path": "macros/get_cmdb_ci_service_columns.sql", "unique_id": "macro.servicenow.get_cmdb_ci_service_columns", "macro_sql": "{% macro get_cmdb_ci_service_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"attributes\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_unit_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_unit_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"category\", \"datatype\": dbt.type_string()},\n {\"name\": \"company_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"company_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"cost\", \"datatype\": dbt.type_float()},\n {\"name\": \"cost_cc\", \"datatype\": dbt.type_string()},\n {\"name\": \"cost_center_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"cost_center_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"managed_by_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"managed_by_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"manufacturer_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"manufacturer_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"model_id_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"model_id_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"model_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"monitor\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"owned_by_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"owned_by_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"service_classification\", \"datatype\": dbt.type_string()},\n {\"name\": \"service_level_requirement\", \"datatype\": dbt.type_string()},\n {\"name\": \"service_owner_delegate_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"service_owner_delegate_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"short_description\", \"datatype\": dbt.type_string()},\n {\"name\": \"sla_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"sla_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"state\", \"datatype\": dbt.type_string()},\n {\"name\": \"subcategory\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_class_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_class_path\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_created_by\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_created_on\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"sys_domain_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_domain_path\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_domain_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_mod_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"sys_updated_by\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_updated_on\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"vendor_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendor_value\", \"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", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.50656, "supported_languages": null}, "macro.servicenow.get_sys_user_columns": {"name": "get_sys_user_columns", "resource_type": "macro", "package_name": "servicenow", "path": "macros/get_sys_user_columns.sql", "original_file_path": "macros/get_sys_user_columns.sql", "unique_id": "macro.servicenow.get_sys_user_columns", "macro_sql": "{% macro get_sys_user_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"accumulated_roles\", \"datatype\": dbt.type_string()},\n {\"name\": \"active\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"avatar\", \"datatype\": dbt.type_string()},\n {\"name\": \"building_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"building_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"calendar_integration\", \"datatype\": dbt.type_int()},\n {\"name\": \"city\", \"datatype\": dbt.type_string()},\n {\"name\": \"company_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"company_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"cost_center_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"cost_center_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"date_format\", \"datatype\": dbt.type_string()},\n {\"name\": \"default_perspective_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"default_perspective_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"department_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"department_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"edu_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"email\", \"datatype\": dbt.type_string()},\n {\"name\": \"employee_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"enable_multifactor_authn\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"failed_attempts\", \"datatype\": dbt.type_int()},\n {\"name\": \"first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"gender\", \"datatype\": dbt.type_string()},\n {\"name\": \"hashed_user_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"home_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"internal_integration_user\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"introduction\", \"datatype\": dbt.type_string()},\n {\"name\": \"last_login\", \"datatype\": \"date\"},\n {\"name\": \"last_login_device\", \"datatype\": dbt.type_string()},\n {\"name\": \"last_login_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"last_password\", \"datatype\": dbt.type_string()},\n {\"name\": \"ldap_server_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"ldap_server_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"location_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"location_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"locked_out\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"manager_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"manager_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"middle_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"mobile_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"notification\", \"datatype\": dbt.type_int()},\n {\"name\": \"password_needs_reset\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"photo\", \"datatype\": dbt.type_string()},\n {\"name\": \"preferred_language\", \"datatype\": dbt.type_string()},\n {\"name\": \"roles\", \"datatype\": dbt.type_string()},\n {\"name\": \"schedule_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"schedule_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"source\", \"datatype\": dbt.type_string()},\n {\"name\": \"state\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_class_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_created_by\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_created_on\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"sys_domain_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_domain_path\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_domain_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_mod_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"sys_updated_by\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_updated_on\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"time_format\", \"datatype\": dbt.type_string()},\n {\"name\": \"time_zone\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"user_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"user_password\", \"datatype\": dbt.type_string()},\n {\"name\": \"vip\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"web_service_access_only\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"zip\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.515944, "supported_languages": null}, "macro.servicenow.get_cmdb_ci_columns": {"name": "get_cmdb_ci_columns", "resource_type": "macro", "package_name": "servicenow", "path": "macros/get_cmdb_ci_columns.sql", "original_file_path": "macros/get_cmdb_ci_columns.sql", "unique_id": "macro.servicenow.get_cmdb_ci_columns", "macro_sql": "{% macro get_cmdb_ci_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"attributes\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_unit_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_unit_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"category\", \"datatype\": dbt.type_string()},\n {\"name\": \"company_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"company_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"cost\", \"datatype\": dbt.type_float()},\n {\"name\": \"cost_cc\", \"datatype\": dbt.type_string()},\n {\"name\": \"cost_center_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"cost_center_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"managed_by_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"managed_by_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"manufacturer_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"manufacturer_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"model_id_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"model_id_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"model_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"owned_by_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"owned_by_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"subcategory\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_class_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_class_path\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_created_by\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_created_on\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"sys_domain_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_domain_path\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_domain_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_mod_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"sys_updated_by\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_updated_on\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"unverified\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"vendor_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendor_value\", \"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", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.520194, "supported_languages": null}, "macro.servicenow.get_change_task_columns": {"name": "get_change_task_columns", "resource_type": "macro", "package_name": "servicenow", "path": "macros/get_change_task_columns.sql", "original_file_path": "macros/get_change_task_columns.sql", "unique_id": "macro.servicenow.get_change_task_columns", "macro_sql": "{% macro get_change_task_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"change_request_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"change_request_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"change_task_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"close_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_from\", \"datatype\": dbt.type_string()},\n {\"name\": \"on_hold\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"on_hold_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"planned_end_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"planned_start_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"sys_created_on\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"sys_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_updated_on\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.521732, "supported_languages": null}, "macro.servicenow.get_sys_user_group_columns": {"name": "get_sys_user_group_columns", "resource_type": "macro", "package_name": "servicenow", "path": "macros/get_sys_user_group_columns.sql", "original_file_path": "macros/get_sys_user_group_columns.sql", "unique_id": "macro.servicenow.get_sys_user_group_columns", "macro_sql": "{% macro get_sys_user_group_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"active\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"cost_center_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"cost_center_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"default_assignee_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"default_assignee_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"email\", \"datatype\": dbt.type_string()},\n {\"name\": \"exclude_manager\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"include_members\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"manager_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"manager_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"parent_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"parent_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"roles\", \"datatype\": dbt.type_string()},\n {\"name\": \"source\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_created_by\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_created_on\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"sys_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_mod_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"sys_updated_by\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_updated_on\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.5243578, "supported_languages": null}, "macro.servicenow.get_task_columns": {"name": "get_task_columns", "resource_type": "macro", "package_name": "servicenow", "path": "macros/get_task_columns.sql", "original_file_path": "macros/get_task_columns.sql", "unique_id": "macro.servicenow.get_task_columns", "macro_sql": "{% macro get_task_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"active\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"activity_due\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"additional_assignee_list\", \"datatype\": dbt.type_string()},\n {\"name\": \"approval\", \"datatype\": dbt.type_string()},\n {\"name\": \"approval_history\", \"datatype\": dbt.type_string()},\n {\"name\": \"approval_set\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"assigned_to_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"assigned_to_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"assignment_group_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"assignment_group_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_duration\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"business_service_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_service_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"calendar_duration\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"close_notes\", \"datatype\": dbt.type_string()},\n {\"name\": \"closed_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"closed_by_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"closed_by_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"cmdb_ci_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"cmdb_ci_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"comments\", \"datatype\": dbt.type_string()},\n {\"name\": \"comments_and_work_notes\", \"datatype\": dbt.type_string()},\n {\"name\": \"company_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"company_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"contact_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"contract_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"contract_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"correlation_display\", \"datatype\": dbt.type_string()},\n {\"name\": \"correlation_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"delivery_plan_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"delivery_plan_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"delivery_task_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"delivery_task_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"due_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"escalation\", \"datatype\": dbt.type_int()},\n {\"name\": \"expected_start\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"follow_up\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"group_list\", \"datatype\": dbt.type_string()},\n {\"name\": \"impact\", \"datatype\": dbt.type_int()},\n {\"name\": \"knowledge\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"location_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"location_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"made_sla\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"number\", \"datatype\": dbt.type_string()},\n {\"name\": \"opened_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"opened_by_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"opened_by_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"order\", \"datatype\": dbt.type_int(), \"quote\": True, \"alias\": \"task_order\"},\n {\"name\": \"parent_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"parent_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"priority\", \"datatype\": dbt.type_int()},\n {\"name\": \"reassignment_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"rejection_goto_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"rejection_goto_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"route_reason\", \"datatype\": dbt.type_int()},\n {\"name\": \"service_offering_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"service_offering_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"short_description\", \"datatype\": dbt.type_string()},\n {\"name\": \"sla_due\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"state\", \"datatype\": dbt.type_int()},\n {\"name\": \"sys_class_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_created_by\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_created_on\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"sys_domain_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_domain_path\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_domain_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_mod_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"sys_updated_by\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_updated_on\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"task_effective_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"universal_request_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"universal_request_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"upon_approval\", \"datatype\": dbt.type_string()},\n {\"name\": \"upon_reject\", \"datatype\": dbt.type_string()},\n {\"name\": \"urgency\", \"datatype\": dbt.type_int()},\n {\"name\": \"watch_list\", \"datatype\": dbt.type_string()},\n {\"name\": \"wf_activity_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"wf_activity_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"work_end\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"work_notes\", \"datatype\": dbt.type_string()},\n {\"name\": \"work_notes_list\", \"datatype\": dbt.type_string()},\n {\"name\": \"work_start\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.535758, "supported_languages": null}, "macro.servicenow.get_problem_columns": {"name": "get_problem_columns", "resource_type": "macro", "package_name": "servicenow", "path": "macros/get_problem_columns.sql", "original_file_path": "macros/get_problem_columns.sql", "unique_id": "macro.servicenow.get_problem_columns", "macro_sql": "{% macro get_problem_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"category\", \"datatype\": dbt.type_string()},\n {\"name\": \"cause_notes\", \"datatype\": dbt.type_string()},\n {\"name\": \"confirmed_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"confirmed_by_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"confirmed_by_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"duplicate_of_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"duplicate_of_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"first_reported_by_task_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"first_reported_by_task_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"fix_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"fix_by_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"fix_by_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"fix_communicated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"fix_communicated_by_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"fix_communicated_by_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"fix_notes\", \"datatype\": dbt.type_string()},\n {\"name\": \"known_error\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"major_problem\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"problem_state\", \"datatype\": dbt.type_int()},\n {\"name\": \"related_incidents\", \"datatype\": dbt.type_int()},\n {\"name\": \"reopen_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"reopened_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"reopened_by_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"reopened_by_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"resolution_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"resolved_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"resolved_by_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"resolved_by_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"review_outcome\", \"datatype\": dbt.type_string()},\n {\"name\": \"rfc_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"rfc_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"subcategory\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_created_on\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"sys_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_updated_on\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"workaround\", \"datatype\": dbt.type_string()},\n {\"name\": \"workaround_applied\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"workaround_communicated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"workaround_communicated_by_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"workaround_communicated_by_value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.540689, "supported_languages": null}, "macro.servicenow.get_incident_columns": {"name": "get_incident_columns", "resource_type": "macro", "package_name": "servicenow", "path": "macros/get_incident_columns.sql", "original_file_path": "macros/get_incident_columns.sql", "unique_id": "macro.servicenow.get_incident_columns", "macro_sql": "{% macro get_incident_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"business_impact\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_stc\", \"datatype\": dbt.type_int()},\n {\"name\": \"calendar_stc\", \"datatype\": dbt.type_int()},\n {\"name\": \"caller_id_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"caller_id_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"category\", \"datatype\": dbt.type_string()},\n {\"name\": \"cause\", \"datatype\": dbt.type_string()},\n {\"name\": \"caused_by_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"caused_by_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"child_incidents\", \"datatype\": dbt.type_int()},\n {\"name\": \"close_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"hold_reason\", \"datatype\": dbt.type_int()},\n {\"name\": \"incident_state\", \"datatype\": dbt.type_int()},\n {\"name\": \"notify\", \"datatype\": dbt.type_int()},\n {\"name\": \"origin_id_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"origin_id_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"parent_incident_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"parent_incident_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"problem_id_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"problem_id_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"reopen_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"reopened_by_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"reopened_by_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"reopened_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"resolved_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"resolved_by_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"resolved_by_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"rfc_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"rfc_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"severity\", \"datatype\": dbt.type_int()},\n {\"name\": \"subcategory\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_created_on\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"sys_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_updated_on\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.5446248, "supported_languages": null}, "macro.servicenow.get_problem_task_columns": {"name": "get_problem_task_columns", "resource_type": "macro", "package_name": "servicenow", "path": "macros/get_problem_task_columns.sql", "original_file_path": "macros/get_problem_task_columns.sql", "unique_id": "macro.servicenow.get_problem_task_columns", "macro_sql": "{% macro get_problem_task_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"cause_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"close_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"other_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"problem_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"problem_task_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"problem_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"reopen_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"reopened_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"reopened_by_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"reopened_by_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"started_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"started_by_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"started_by_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_created_on\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"sys_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_updated_on\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"vendor_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendor_value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1705606887.5470479, "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.servicenow.stg_servicenow__task": {"name": "stg_servicenow__task", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.stg_servicenow__task", "block_contents": "Staging table containing all tasks related information. A task represents a unit of work that needs to be accomplished or tracked within the ServiceNow system. It can be related to various processes, such as incident resolution, change management, or other workflows."}, "doc.servicenow.task": {"name": "task", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.task", "block_contents": "Table containing all tasks related information. A task represents a unit of work that needs to be accomplished or tracked within the ServiceNow system. It can be related to various processes, such as incident resolution, change management, or other workflows."}, "doc.servicenow.stg_servicenow__problem": {"name": "stg_servicenow__problem", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.stg_servicenow__problem", "block_contents": "Staging table containing all problem information."}, "doc.servicenow.problem": {"name": "problem", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.problem", "block_contents": "Table containing all problem information."}, "doc.servicenow.stg_servicenow__task_sla": {"name": "stg_servicenow__task_sla", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.stg_servicenow__task_sla", "block_contents": "Staging table containing all Service Level Agreement (SLA) information related to the task."}, "doc.servicenow.task_sla": {"name": "task_sla", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.task_sla", "block_contents": "Table containing all Service Level Agreement (SLA) information related to the task."}, "doc.servicenow.stg_servicenow__sys_user": {"name": "stg_servicenow__sys_user", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.stg_servicenow__sys_user", "block_contents": "Staging table containing all information related to the system user associated with the task."}, "doc.servicenow.sys_user": {"name": "sys_user", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.sys_user", "block_contents": "Table containing all information related to the system user associated with the task."}, "doc.servicenow.stg_servicenow__problem_task": {"name": "stg_servicenow__problem_task", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.stg_servicenow__problem_task", "block_contents": "Staging table containing all the information related to the problem tasks."}, "doc.servicenow.problem_task": {"name": "problem_task", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.problem_task", "block_contents": "Table containing all the information related to the problem tasks."}, "doc.servicenow.stg_servicenow__incident": {"name": "stg_servicenow__incident", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.stg_servicenow__incident", "block_contents": "Staging table containing all information related to incidents."}, "doc.servicenow.incident": {"name": "incident", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.incident", "block_contents": "Table containing all information related to incidents."}, "doc.servicenow.stg_servicenow__change_task": {"name": "stg_servicenow__change_task", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.stg_servicenow__change_task", "block_contents": "Staging table containing all information related to change tasks."}, "doc.servicenow.change_task": {"name": "change_task", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.change_task", "block_contents": "Table containing all information related to change tasks."}, "doc.servicenow.stg_servicenow__change_request": {"name": "stg_servicenow__change_request", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.stg_servicenow__change_request", "block_contents": "Staging table that contains all information related to change requests."}, "doc.servicenow.change_request": {"name": "change_request", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.change_request", "block_contents": "Table that contains all information related to change requests."}, "doc.servicenow._fivetran_deleted": {"name": "_fivetran_deleted", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow._fivetran_deleted", "block_contents": "Indicates whether the task record has been marked as deleted by the Fivetran connector."}, "doc.servicenow._fivetran_synced": {"name": "_fivetran_synced", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow._fivetran_synced", "block_contents": "Indicates whether the task record has been synchronized by the Fivetran connector."}, "doc.servicenow.source_relation": {"name": "source_relation", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.source_relation", "block_contents": "Indicates the schema which the field originated. This is especially important when leveraging the union schema feature."}, "doc.servicenow.active": {"name": "active", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.active", "block_contents": "Flag indicating whether the record is currently active or completed."}, "doc.servicenow.is_task_active": {"name": "is_task_active", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.is_task_active", "block_contents": "Flag indicating whether the task is currently active or completed."}, "doc.servicenow.is_active": {"name": "is_active", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.is_active", "block_contents": "Flag indicating whether the record is currently active."}, "doc.servicenow.activity_due": {"name": "activity_due", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.activity_due", "block_contents": "The due date or time for completing the activity associated with the task."}, "doc.servicenow.additional_assignee_list": {"name": "additional_assignee_list", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.additional_assignee_list", "block_contents": "List of additional users or assignees associated with the task."}, "doc.servicenow.approval": {"name": "approval", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.approval", "block_contents": "Information related to the approval status and process for the task."}, "doc.servicenow.approval_history": {"name": "approval_history", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.approval_history", "block_contents": "History of approvals associated with the task."}, "doc.servicenow.approval_set": {"name": "approval_set", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.approval_set", "block_contents": "Set of approvals linked to the task."}, "doc.servicenow.assigned_to_link": {"name": "assigned_to_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.assigned_to_link", "block_contents": "Link to the user or group assigned to the task."}, "doc.servicenow.assigned_to_value": {"name": "assigned_to_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.assigned_to_value", "block_contents": "Value representing the user or group assigned to the task."}, "doc.servicenow.assignment_group_link": {"name": "assignment_group_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.assignment_group_link", "block_contents": "Link to the assignment group associated with the task."}, "doc.servicenow.assignment_group_value": {"name": "assignment_group_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.assignment_group_value", "block_contents": "Value representing the assignment group associated with the task."}, "doc.servicenow.business_duration": {"name": "business_duration", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.business_duration", "block_contents": "The duration of the task in terms of business hours."}, "doc.servicenow.business_service_link": {"name": "business_service_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.business_service_link", "block_contents": "Link to the business service associated with the task."}, "doc.servicenow.business_service_value": {"name": "business_service_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.business_service_value", "block_contents": "Value representing the business service associated with the task."}, "doc.servicenow.calendar_duration": {"name": "calendar_duration", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.calendar_duration", "block_contents": "The duration of the task in terms of calendar time."}, "doc.servicenow.close_notes": {"name": "close_notes", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.close_notes", "block_contents": "Additional notes or comments recorded upon task closure."}, "doc.servicenow.closed_at": {"name": "closed_at", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.closed_at", "block_contents": "Date and time when the task was closed or completed."}, "doc.servicenow.closed_by_link": {"name": "closed_by_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.closed_by_link", "block_contents": "Link to the user who closed or completed the task."}, "doc.servicenow.closed_by_value": {"name": "closed_by_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.closed_by_value", "block_contents": "Value representing the user who closed or completed the task."}, "doc.servicenow.cmdb_ci_link": {"name": "cmdb_ci_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.cmdb_ci_link", "block_contents": "Link to the configuration item (CI) associated with the record in the Configuration Management Database (CMDB)."}, "doc.servicenow.cmdb_ci_value": {"name": "cmdb_ci_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.cmdb_ci_value", "block_contents": "Value representing the configuration item (CI) associated with the record."}, "doc.servicenow.comments": {"name": "comments", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.comments", "block_contents": "General comments or notes related to the record."}, "doc.servicenow.comments_and_work_notes": {"name": "comments_and_work_notes", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.comments_and_work_notes", "block_contents": "Combined information of comments and work notes recorded during the record's lifecycle."}, "doc.servicenow.company_link": {"name": "company_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.company_link", "block_contents": "Link to the company associated with the record."}, "doc.servicenow.company_value": {"name": "company_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.company_value", "block_contents": "Value representing the company associated with the record."}, "doc.servicenow.contact_type": {"name": "contact_type", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.contact_type", "block_contents": "Type of contact associated with the record (e.g., customer, vendor)."}, "doc.servicenow.contract_link": {"name": "contract_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.contract_link", "block_contents": "Link to the contract associated with the record."}, "doc.servicenow.contract_value": {"name": "contract_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.contract_value", "block_contents": "Value representing the contract associated with the record."}, "doc.servicenow.correlation_display": {"name": "correlation_display", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.correlation_display", "block_contents": "Display information related to correlation of the record with other records."}, "doc.servicenow.correlation_id": {"name": "correlation_id", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.correlation_id", "block_contents": "Identifier used for correlating the record with related records."}, "doc.servicenow.delivery_plan_link": {"name": "delivery_plan_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.delivery_plan_link", "block_contents": "Link to the delivery plan associated with the task."}, "doc.servicenow.delivery_plan_value": {"name": "delivery_plan_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.delivery_plan_value", "block_contents": "Value representing the delivery plan associated with the task."}, "doc.servicenow.delivery_task_link": {"name": "delivery_task_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.delivery_task_link", "block_contents": "Link to the delivery task associated with the task."}, "doc.servicenow.delivery_task_value": {"name": "delivery_task_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.delivery_task_value", "block_contents": "Value representing the delivery task associated with the task."}, "doc.servicenow.description": {"name": "description", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.description", "block_contents": "Detailed description or information about the record."}, "doc.servicenow.task_description": {"name": "task_description", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.task_description", "block_contents": "Detailed description or information about the task."}, "doc.servicenow.due_date": {"name": "due_date", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.due_date", "block_contents": "The date by which the task is expected to be completed."}, "doc.servicenow.task_due_date_at": {"name": "task_due_date_at", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.task_due_date_at", "block_contents": "The date by which the task is expected to be completed."}, "doc.servicenow.escalation": {"name": "escalation", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.escalation", "block_contents": "Information about any escalation procedures or steps related to the task."}, "doc.servicenow.expected_start": {"name": "expected_start", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.expected_start", "block_contents": "The expected start date or time for the task."}, "doc.servicenow.follow_up": {"name": "follow_up", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.follow_up", "block_contents": "Timestamp of when follow up was applied to the task."}, "doc.servicenow.task_follow_up_at": {"name": "task_follow_up_at", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.task_follow_up_at", "block_contents": "Timestamp of when follow up was applied to the task."}, "doc.servicenow.group_list": {"name": "group_list", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.group_list", "block_contents": "List of groups associated with the task."}, "doc.servicenow.impact": {"name": "impact", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.impact", "block_contents": "Assessment of the impact that completing or not completing the task may have. This is the business loss and potential damage (for example, financial, customer, regulation, security, reputation, brand) caused by the incident"}, "doc.servicenow.knowledge": {"name": "knowledge", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.knowledge", "block_contents": "Indication of whether the task is associated with knowledge or documentation."}, "doc.servicenow.location_link": {"name": "location_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.location_link", "block_contents": "Link to the location associated with the task."}, "doc.servicenow.location_value": {"name": "location_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.location_value", "block_contents": "Value representing the location associated with the task."}, "doc.servicenow.made_sla": {"name": "made_sla", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.made_sla", "block_contents": "Indicates whether the task was completed within the agreed-upon Service Level Agreement (SLA)."}, "doc.servicenow.number": {"name": "number", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.number", "block_contents": "Unique identifier or reference number assigned to the task."}, "doc.servicenow.task_number": {"name": "task_number", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.task_number", "block_contents": "Unique identifier or reference number assigned to the task."}, "doc.servicenow.opened_at": {"name": "opened_at", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.opened_at", "block_contents": "Date and time when the task was initially opened."}, "doc.servicenow.task_opened_at": {"name": "task_opened_at", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.task_opened_at", "block_contents": "Date and time when the task was initially opened."}, "doc.servicenow.opened_by_link": {"name": "opened_by_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.opened_by_link", "block_contents": "Link to the user who initially opened the task."}, "doc.servicenow.opened_by_value": {"name": "opened_by_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.opened_by_value", "block_contents": "Value representing the user who initially opened the task."}, "doc.servicenow.order": {"name": "order", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.order", "block_contents": "Order or sequence number associated with the task."}, "doc.servicenow.task_order": {"name": "task_order", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.task_order", "block_contents": "Order or sequence number associated with the task."}, "doc.servicenow.parent_link": {"name": "parent_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.parent_link", "block_contents": "Link to the parent task or record associated with the task."}, "doc.servicenow.parent_value": {"name": "parent_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.parent_value", "block_contents": "Value representing the parent task or record associated with the task."}, "doc.servicenow.priority": {"name": "priority", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.priority", "block_contents": "Priority level assigned to the task. The priority field is automatically calculated based on the values of impact and urgency. This determines the sequence in which the record should be resolved."}, "doc.servicenow.reassignment_count": {"name": "reassignment_count", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.reassignment_count", "block_contents": "Count of how many times the task has been reassigned."}, "doc.servicenow.rejection_goto_link": {"name": "rejection_goto_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.rejection_goto_link", "block_contents": "Link to the record or step to be followed in case of task rejection."}, "doc.servicenow.rejection_goto_value": {"name": "rejection_goto_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.rejection_goto_value", "block_contents": "Value representing the record or step to be followed in case of task rejection."}, "doc.servicenow.route_reason": {"name": "route_reason", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.route_reason", "block_contents": "Reason or criteria for routing the task to a particular user or group."}, "doc.servicenow.service_offering_link": {"name": "service_offering_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.service_offering_link", "block_contents": "Link to the service offering associated with the record."}, "doc.servicenow.service_offering_value": {"name": "service_offering_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.service_offering_value", "block_contents": "Value representing the service offering associated with the record."}, "doc.servicenow.short_description": {"name": "short_description", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.short_description", "block_contents": "Brief or concise summary of the record."}, "doc.servicenow.sla_due": {"name": "sla_due", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.sla_due", "block_contents": "Date and time by which the record is expected to meet the Service Level Agreement (SLA)."}, "doc.servicenow.state": {"name": "state", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.state", "block_contents": "Current state or status of the record (e.g., in progress, on hold, closed)."}, "doc.servicenow.task_state": {"name": "task_state", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.task_state", "block_contents": "Current state or status of the task (e.g., in progress, on hold, closed)."}, "doc.servicenow.sys_class_name": {"name": "sys_class_name", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.sys_class_name", "block_contents": "Name of the table in which the record is stored."}, "doc.servicenow.sys_created_by": {"name": "sys_created_by", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.sys_created_by", "block_contents": "User who initially created the record."}, "doc.servicenow.sys_created_on": {"name": "sys_created_on", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.sys_created_on", "block_contents": "Date and time when the record was initially created."}, "doc.servicenow.created_at": {"name": "created_at", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.created_at", "block_contents": "Date and time when the record was initially created."}, "doc.servicenow.updated_at": {"name": "updated_at", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.updated_at", "block_contents": "Date and time when the record was last updated."}, "doc.servicenow.change_task_created_at": {"name": "change_task_created_at", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.change_task_created_at", "block_contents": "Date and time when the change task record was initially created."}, "doc.servicenow.change_task_updated_at": {"name": "change_task_updated_at", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.change_task_updated_at", "block_contents": "Date and time when the change task record was last updated."}, "doc.servicenow.incident_created_at": {"name": "incident_created_at", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.incident_created_at", "block_contents": "Date and time when the incident record was initially created."}, "doc.servicenow.incident_updated_at": {"name": "incident_updated_at", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.incident_updated_at", "block_contents": "Date and time when the incident record was last updated."}, "doc.servicenow.problem_created_at": {"name": "problem_created_at", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.problem_created_at", "block_contents": "Date and time when the problem record was initially created."}, "doc.servicenow.problem_updated_at": {"name": "problem_updated_at", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.problem_updated_at", "block_contents": "Date and time when the problem record was last updated."}, "doc.servicenow.problem_task_created_at": {"name": "problem_task_created_at", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.problem_task_created_at", "block_contents": "Date and time when the problem task record was initially created."}, "doc.servicenow.problem_task_updated_at": {"name": "problem_task_updated_at", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.problem_task_updated_at", "block_contents": "Date and time when the problem task record was last updated."}, "doc.servicenow.user_created_at": {"name": "user_created_at", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.user_created_at", "block_contents": "Date and time when the user record was initially created."}, "doc.servicenow.user_updated_at": {"name": "user_updated_at", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.user_updated_at", "block_contents": "Date and time when the user record was last updated."}, "doc.servicenow.task_created_at": {"name": "task_created_at", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.task_created_at", "block_contents": "Date and time when the task record was initially created."}, "doc.servicenow.task_updated_at": {"name": "task_updated_at", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.task_updated_at", "block_contents": "Date and time when the task record was last updated."}, "doc.servicenow.task_sla_created_at": {"name": "task_sla_created_at", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.task_sla_created_at", "block_contents": "Date and time when the task sla record was initially created."}, "doc.servicenow.task_sla_updated_at": {"name": "task_sla_updated_at", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.task_sla_updated_at", "block_contents": "Date and time when the task sla record was last updated."}, "doc.servicenow.sys_domain_link": {"name": "sys_domain_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.sys_domain_link", "block_contents": "Link to the system domain associated with the record."}, "doc.servicenow.sys_domain_path": {"name": "sys_domain_path", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.sys_domain_path", "block_contents": "Path of the system domain associated with the record."}, "doc.servicenow.sys_domain_value": {"name": "sys_domain_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.sys_domain_value", "block_contents": "Value representing the system domain associated with the record."}, "doc.servicenow.sys_id": {"name": "sys_id", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.sys_id", "block_contents": "Unique identifier for the record."}, "doc.servicenow.sys_mod_count": {"name": "sys_mod_count", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.sys_mod_count", "block_contents": "Number of times the record has been modified."}, "doc.servicenow.sys_updated_by": {"name": "sys_updated_by", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.sys_updated_by", "block_contents": "User who last updated or modified the record."}, "doc.servicenow.sys_updated_on": {"name": "sys_updated_on", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.sys_updated_on", "block_contents": "Date and time when the record was last updated."}, "doc.servicenow.task_effective_number": {"name": "task_effective_number", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.task_effective_number", "block_contents": "Effective number or identifier associated with the task."}, "doc.servicenow.universal_request_link": {"name": "universal_request_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.universal_request_link", "block_contents": "Link to the universal request associated with the task."}, "doc.servicenow.universal_request_value": {"name": "universal_request_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.universal_request_value", "block_contents": "Value representing the universal request associated with the task."}, "doc.servicenow.upon_approval": {"name": "upon_approval", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.upon_approval", "block_contents": "Actions or steps to be taken upon the approval of the task."}, "doc.servicenow.upon_reject": {"name": "upon_reject", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.upon_reject", "block_contents": "Actions or steps to be taken upon the rejection of the task."}, "doc.servicenow.urgency": {"name": "urgency", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.urgency", "block_contents": "Level of urgency associated with the record. Speed at which the business expects the record to be resolved."}, "doc.servicenow.watch_list": {"name": "watch_list", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.watch_list", "block_contents": "List of users or groups who are monitoring or \"watching\" the task."}, "doc.servicenow.wf_activity_link": {"name": "wf_activity_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.wf_activity_link", "block_contents": "Link to the workflow activity associated with the task."}, "doc.servicenow.wf_activity_value": {"name": "wf_activity_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.wf_activity_value", "block_contents": "Value representing the workflow activity associated with the task."}, "doc.servicenow.work_end": {"name": "work_end", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.work_end", "block_contents": "Date and time when the work on the task is scheduled to end."}, "doc.servicenow.work_notes": {"name": "work_notes", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.work_notes", "block_contents": "Notes or comments recorded during the work on the task."}, "doc.servicenow.work_notes_list": {"name": "work_notes_list", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.work_notes_list", "block_contents": "List of work notes recorded during the task's lifecycle."}, "doc.servicenow.work_start": {"name": "work_start", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.work_start", "block_contents": "Date and time when the work on the task is scheduled to start."}, "doc.servicenow.business_pause_duration": {"name": "business_pause_duration", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.business_pause_duration", "block_contents": "Duration of business pause associated with the task."}, "doc.servicenow.business_percentage": {"name": "business_percentage", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.business_percentage", "block_contents": "Percentage of business time completed for the task."}, "doc.servicenow.business_time_left": {"name": "business_time_left", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.business_time_left", "block_contents": "Remaining business time for the completion of the task."}, "doc.servicenow.duration": {"name": "duration", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.duration", "block_contents": "Total duration of the task, including both business and non-business time."}, "doc.servicenow.end_time": {"name": "end_time", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.end_time", "block_contents": "The scheduled or expected end time for the task."}, "doc.servicenow.has_breached": {"name": "has_breached", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.has_breached", "block_contents": "Indicates whether the task has breached the defined SLA or time limits."}, "doc.servicenow.original_breach_time": {"name": "original_breach_time", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.original_breach_time", "block_contents": "Original time when the SLA breach for the task was detected."}, "doc.servicenow.pause_duration": {"name": "pause_duration", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.pause_duration", "block_contents": "Duration of the pause associated with the task."}, "doc.servicenow.pause_time": {"name": "pause_time", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.pause_time", "block_contents": "Time when the task was paused or put on hold."}, "doc.servicenow.percentage": {"name": "percentage", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.percentage", "block_contents": "Percentage of total time completed for the task."}, "doc.servicenow.planned_end_time": {"name": "planned_end_time", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.planned_end_time", "block_contents": "The originally planned or expected end time for the task."}, "doc.servicenow.schedule_link": {"name": "schedule_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.schedule_link", "block_contents": "Link to the schedule associated with the task."}, "doc.servicenow.schedule_value": {"name": "schedule_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.schedule_value", "block_contents": "Value representing the schedule associated with the task."}, "doc.servicenow.sla_link": {"name": "sla_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.sla_link", "block_contents": "Link to the Service Level Agreement (SLA) associated with the record."}, "doc.servicenow.sla_value": {"name": "sla_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.sla_value", "block_contents": "Value representing the Service Level Agreement (SLA) associated with the record."}, "doc.servicenow.stage": {"name": "stage", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.stage", "block_contents": "Current stage or phase of the record's lifecycle."}, "doc.servicenow.start_time": {"name": "start_time", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.start_time", "block_contents": "The scheduled or expected start time for the record."}, "doc.servicenow.task_link": {"name": "task_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.task_link", "block_contents": "Link to the related task record."}, "doc.servicenow.task_value": {"name": "task_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.task_value", "block_contents": "Value representing the related task record."}, "doc.servicenow.time_left": {"name": "time_left", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.time_left", "block_contents": "Remaining time for the completion of the task."}, "doc.servicenow.timezone": {"name": "timezone", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.timezone", "block_contents": "Timezone information associated with the record."}, "doc.servicenow.accumulated_roles": {"name": "accumulated_roles", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.accumulated_roles", "block_contents": "Roles accumulated or associated with the system user over time."}, "doc.servicenow.avatar": {"name": "avatar", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.avatar", "block_contents": "Avatar or profile picture associated with the system user."}, "doc.servicenow.building_link": {"name": "building_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.building_link", "block_contents": "Link to the building associated with the system user."}, "doc.servicenow.building_value": {"name": "building_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.building_value", "block_contents": "Value representing the building associated with the system user."}, "doc.servicenow.calendar_integration": {"name": "calendar_integration", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.calendar_integration", "block_contents": "Information about the integration of the user's calendar with the ServiceNow system."}, "doc.servicenow.city": {"name": "city", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.city", "block_contents": "City information associated with the record."}, "doc.servicenow.cost_center_link": {"name": "cost_center_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.cost_center_link", "block_contents": "Link to the cost center associated with the record."}, "doc.servicenow.cost_center_value": {"name": "cost_center_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.cost_center_value", "block_contents": "Value representing the cost center associated with the record."}, "doc.servicenow.country": {"name": "country", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.country", "block_contents": "Country information associated with the record."}, "doc.servicenow.date_format": {"name": "date_format", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.date_format", "block_contents": "The format in which dates are displayed or recorded for the system user."}, "doc.servicenow.default_perspective_link": {"name": "default_perspective_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.default_perspective_link", "block_contents": "Link to the default perspective associated with the system user."}, "doc.servicenow.default_perspective_value": {"name": "default_perspective_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.default_perspective_value", "block_contents": "Value representing the default perspective associated with the system user."}, "doc.servicenow.department_link": {"name": "department_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.department_link", "block_contents": "Link to the department associated with the system user."}, "doc.servicenow.department_value": {"name": "department_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.department_value", "block_contents": "Value representing the department associated with the system user."}, "doc.servicenow.edu_status": {"name": "edu_status", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.edu_status", "block_contents": "Education status or level associated with the system user."}, "doc.servicenow.email": {"name": "email", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.email", "block_contents": "Email address associated with the record."}, "doc.servicenow.employee_number": {"name": "employee_number", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.employee_number", "block_contents": "Employee number or identifier associated with the system user."}, "doc.servicenow.enable_multifactor_authn": {"name": "enable_multifactor_authn", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.enable_multifactor_authn", "block_contents": "Indication of whether multifactor authentication is enabled for the system user."}, "doc.servicenow.failed_attempts": {"name": "failed_attempts", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.failed_attempts", "block_contents": "Number of failed login attempts for the system user."}, "doc.servicenow.first_name": {"name": "first_name", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.first_name", "block_contents": "First name of the system user."}, "doc.servicenow.gender": {"name": "gender", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.gender", "block_contents": "Gender information associated with the system user."}, "doc.servicenow.hashed_user_id": {"name": "hashed_user_id", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.hashed_user_id", "block_contents": "Hashed identifier associated with the system user."}, "doc.servicenow.home_phone": {"name": "home_phone", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.home_phone", "block_contents": "Home phone number associated with the system user."}, "doc.servicenow.internal_integration_user": {"name": "internal_integration_user", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.internal_integration_user", "block_contents": "Indication of whether the system user is an internal integration user."}, "doc.servicenow.introduction": {"name": "introduction", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.introduction", "block_contents": "Introduction or bio information associated with the system user."}, "doc.servicenow.last_login": {"name": "last_login", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.last_login", "block_contents": "Date and time of the last login."}, "doc.servicenow.last_login_day_date": {"name": "last_login_day_date", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.last_login_day_date", "block_contents": "Date and time of the last login."}, "doc.servicenow.last_login_device": {"name": "last_login_device", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.last_login_device", "block_contents": "The device used for the user's last login to the system."}, "doc.servicenow.last_login_time": {"name": "last_login_time", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.last_login_time", "block_contents": "The specific time when the user last logged in to the system."}, "doc.servicenow.last_login_at": {"name": "last_login_at", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.last_login_at", "block_contents": "The specific time when the user last logged in to the system."}, "doc.servicenow.last_name": {"name": "last_name", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.last_name", "block_contents": "The family name or surname of the user."}, "doc.servicenow.last_password": {"name": "last_password", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.last_password", "block_contents": "The timestamp or information related to the user's last password update."}, "doc.servicenow.ldap_server_link": {"name": "ldap_server_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.ldap_server_link", "block_contents": "A link to the LDAP (Lightweight Directory Access Protocol) server associated with the user."}, "doc.servicenow.ldap_server_value": {"name": "ldap_server_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.ldap_server_value", "block_contents": "The value or name of the LDAP server associated with the user."}, "doc.servicenow.locked_out": {"name": "locked_out", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.locked_out", "block_contents": "Information about whether the user account is currently locked."}, "doc.servicenow.manager_link": {"name": "manager_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.manager_link", "block_contents": "A link to the user's manager or supervisor in the organizational hierarchy."}, "doc.servicenow.manager_value": {"name": "manager_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.manager_value", "block_contents": "The name or identifier of the user's manager or supervisor."}, "doc.servicenow.middle_name": {"name": "middle_name", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.middle_name", "block_contents": "The middle name or initial of the user."}, "doc.servicenow.mobile_phone": {"name": "mobile_phone", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.mobile_phone", "block_contents": "The contact number for the user's mobile phone."}, "doc.servicenow.name": {"name": "name", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.name", "block_contents": "The full name of the record."}, "doc.servicenow.sys_user_name": {"name": "sys_user_name", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.sys_user_name", "block_contents": "The system username or identifier for the user."}, "doc.servicenow.notification": {"name": "notification", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.notification", "block_contents": "Information related to user notifications or alerts."}, "doc.servicenow.password_needs_reset": {"name": "password_needs_reset", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.password_needs_reset", "block_contents": "Indicates whether the user needs to reset their password."}, "doc.servicenow.phone": {"name": "phone", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.phone", "block_contents": "The contact number belonging to this record."}, "doc.servicenow.photo": {"name": "photo", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.photo", "block_contents": "A link or reference to the user's profile photo."}, "doc.servicenow.preferred_language": {"name": "preferred_language", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.preferred_language", "block_contents": "The language preference set by the user."}, "doc.servicenow.roles": {"name": "roles", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.roles", "block_contents": "The roles assigned to the user in the system or organization."}, "doc.servicenow.source": {"name": "source", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.source", "block_contents": "The source or origin of the user's or user group's profile information."}, "doc.servicenow.time_format": {"name": "time_format", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.time_format", "block_contents": "The preferred time format for the user (e.g., 12-hour or 24-hour)."}, "doc.servicenow.time_zone": {"name": "time_zone", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.time_zone", "block_contents": "The time zone configured for the user."}, "doc.servicenow.title": {"name": "title", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.title", "block_contents": "The job title or position of the user within the organization."}, "doc.servicenow.user_name": {"name": "user_name", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.user_name", "block_contents": "The username used by the user to log in to the system."}, "doc.servicenow.user_password": {"name": "user_password", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.user_password", "block_contents": "The user's current password information or status."}, "doc.servicenow.vip": {"name": "vip", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.vip", "block_contents": "Indicates whether the user has VIP (Very Important Person) status."}, "doc.servicenow.web_service_access_only": {"name": "web_service_access_only", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.web_service_access_only", "block_contents": "Indicates whether the user has access only through web services."}, "doc.servicenow.zip": {"name": "zip", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.zip", "block_contents": "The postal code or ZIP code associated with the record."}, "doc.servicenow.cause_notes": {"name": "cause_notes", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.cause_notes", "block_contents": "Additional notes or details about the cause of a particular issue or incident."}, "doc.servicenow.confirmed_at": {"name": "confirmed_at", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.confirmed_at", "block_contents": "The timestamp indicating when an issue or incident was confirmed or acknowledged."}, "doc.servicenow.problem_confirmed_at": {"name": "problem_confirmed_at", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.problem_confirmed_at", "block_contents": "The timestamp indicating when the problem was confirmed or acknowledged."}, "doc.servicenow.confirmed_by_link": {"name": "confirmed_by_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.confirmed_by_link", "block_contents": "A link to the person or entity who confirmed or acknowledged the issue."}, "doc.servicenow.problem_confirmed_by_link": {"name": "problem_confirmed_by_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.problem_confirmed_by_link", "block_contents": "A link to the person or entity who confirmed or acknowledged the problem."}, "doc.servicenow.confirmed_by_value": {"name": "confirmed_by_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.confirmed_by_value", "block_contents": "The name or identifier of the person or entity who confirmed or acknowledged the issue."}, "doc.servicenow.problem_confirmed_by_value": {"name": "problem_confirmed_by_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.problem_confirmed_by_value", "block_contents": "The name or identifier of the person or entity who confirmed or acknowledged the problem."}, "doc.servicenow.duplicate_of_link": {"name": "duplicate_of_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.duplicate_of_link", "block_contents": "A link to the related issue that is identified as a duplicate of the current one."}, "doc.servicenow.duplicate_of_value": {"name": "duplicate_of_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.duplicate_of_value", "block_contents": "The name or identifier of the related issue that is identified as a duplicate."}, "doc.servicenow.first_reported_by_task_link": {"name": "first_reported_by_task_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.first_reported_by_task_link", "block_contents": "A link to the task or activity that first reported the issue."}, "doc.servicenow.problem_first_reported_by_task_link": {"name": "problem_first_reported_by_task_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.problem_first_reported_by_task_link", "block_contents": "A link to the task or activity that first reported the problem."}, "doc.servicenow.first_reported_by_task_value": {"name": "first_reported_by_task_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.first_reported_by_task_value", "block_contents": "The name or identifier of the task or activity that first reported the issue."}, "doc.servicenow.problem_first_reported_by_task_value": {"name": "problem_first_reported_by_task_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.problem_first_reported_by_task_value", "block_contents": "The name or identifier of the task or activity that first reported the problem."}, "doc.servicenow.fix_at": {"name": "fix_at", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.fix_at", "block_contents": "The timestamp indicating when the issue is scheduled or planned to be fixed."}, "doc.servicenow.problem_fix_at": {"name": "problem_fix_at", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.problem_fix_at", "block_contents": "The timestamp indicating when the problem is scheduled or planned to be fixed."}, "doc.servicenow.fix_by_link": {"name": "fix_by_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.fix_by_link", "block_contents": "A link to the person or entity responsible for fixing the issue."}, "doc.servicenow.problem_fix_by_link": {"name": "problem_fix_by_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.problem_fix_by_link", "block_contents": "A link to the person or entity responsible for fixing the problem."}, "doc.servicenow.fix_by_value": {"name": "fix_by_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.fix_by_value", "block_contents": "The name or identifier of the person or entity responsible for fixing the issue."}, "doc.servicenow.problem_fix_by_value": {"name": "problem_fix_by_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.problem_fix_by_value", "block_contents": "The name or identifier of the person or entity responsible for fixing the problem."}, "doc.servicenow.fix_communicated_at": {"name": "fix_communicated_at", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.fix_communicated_at", "block_contents": "The timestamp indicating when the fix for the issue was communicated."}, "doc.servicenow.fix_communicated_by_link": {"name": "fix_communicated_by_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.fix_communicated_by_link", "block_contents": "A link to the person or entity who communicated the fix for the issue."}, "doc.servicenow.fix_communicated_by_value": {"name": "fix_communicated_by_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.fix_communicated_by_value", "block_contents": "The name or identifier of the person or entity who communicated the fix for the issue."}, "doc.servicenow.fix_notes": {"name": "fix_notes", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.fix_notes", "block_contents": "Additional notes or details related to the fix for the issue."}, "doc.servicenow.problem_fix_notes": {"name": "problem_fix_notes", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.problem_fix_notes", "block_contents": "Additional notes or details related to the fix for the problem."}, "doc.servicenow.known_error": {"name": "known_error", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.known_error", "block_contents": "Indicates whether the issue is a known error with a documented resolution."}, "doc.servicenow.is_known_error": {"name": "is_known_error", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.is_known_error", "block_contents": "Indicates whether the issue is a known error with a documented resolution."}, "doc.servicenow.major_problem": {"name": "major_problem", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.major_problem", "block_contents": "Indicates whether the issue is categorized as a major problem."}, "doc.servicenow.is_major_problem": {"name": "is_major_problem", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.is_major_problem", "block_contents": "Indicates whether the issue is categorized as a major problem."}, "doc.servicenow.problem_state": {"name": "problem_state", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.problem_state", "block_contents": "The current state or status of the problem or issue."}, "doc.servicenow.related_incidents": {"name": "related_incidents", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.related_incidents", "block_contents": "Information about other incidents that are related to the current issue."}, "doc.servicenow.problem_related_incidents": {"name": "problem_related_incidents", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.problem_related_incidents", "block_contents": "Number of incidents that are related to the current problem."}, "doc.servicenow.reopen_count": {"name": "reopen_count", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.reopen_count", "block_contents": "The count of how many times the issue has been reopened."}, "doc.servicenow.reopened_at": {"name": "reopened_at", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.reopened_at", "block_contents": "The timestamp indicating when the issue was last reopened."}, "doc.servicenow.reopened_by_link": {"name": "reopened_by_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.reopened_by_link", "block_contents": "A link to the person or entity who reopened the issue."}, "doc.servicenow.reopened_by_value": {"name": "reopened_by_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.reopened_by_value", "block_contents": "The name or identifier of the person or entity who reopened the issue."}, "doc.servicenow.resolution_code": {"name": "resolution_code", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.resolution_code", "block_contents": "The code or identifier associated with the resolution of the issue."}, "doc.servicenow.problem_resolution_code": {"name": "problem_resolution_code", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.problem_resolution_code", "block_contents": "The code or identifier associated with the resolution of the problem."}, "doc.servicenow.resolved_at": {"name": "resolved_at", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.resolved_at", "block_contents": "The timestamp indicating when the issue was resolved."}, "doc.servicenow.problem_resolved_at": {"name": "problem_resolved_at", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.problem_resolved_at", "block_contents": "The timestamp indicating when the problem was resolved."}, "doc.servicenow.resolved_by_link": {"name": "resolved_by_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.resolved_by_link", "block_contents": "A link to the person or entity who resolved the issue."}, "doc.servicenow.resolved_by_value": {"name": "resolved_by_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.resolved_by_value", "block_contents": "The name or identifier of the person or entity who resolved the issue."}, "doc.servicenow.problem_resolved_by_value": {"name": "problem_resolved_by_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.problem_resolved_by_value", "block_contents": "The name or identifier of the person or entity who resolved the problem."}, "doc.servicenow.review_outcome": {"name": "review_outcome", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.review_outcome", "block_contents": "The outcome or result of the review process for the issue."}, "doc.servicenow.rfc_link": {"name": "rfc_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.rfc_link", "block_contents": "A link to the Request for Change (RFC) associated with the issue or incident."}, "doc.servicenow.rfc_value": {"name": "rfc_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.rfc_value", "block_contents": "The unique identifier or name associated with the Request for Change (RFC) linked to the issue."}, "doc.servicenow.problem_rfc_value": {"name": "problem_rfc_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.problem_rfc_value", "block_contents": "The unique identifier or name associated with the Request for Change (RFC) linked to the problem."}, "doc.servicenow.subcategory": {"name": "subcategory", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.subcategory", "block_contents": "The specific subcategory or classification of the record, providing more detailed information about its nature."}, "doc.servicenow.problem_subcategory": {"name": "problem_subcategory", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.problem_subcategory", "block_contents": "The specific subcategory or classification of the issue, providing more detailed information about its nature."}, "doc.servicenow.workaround": {"name": "workaround", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.workaround", "block_contents": "A description of a temporary or alternative solution that can be applied to address the issue before a permanent fix \nis implemented."}, "doc.servicenow.workaround_applied": {"name": "workaround_applied", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.workaround_applied", "block_contents": "Indicates whether a workaround has been applied to address the issue."}, "doc.servicenow.workaround_communicated_at": {"name": "workaround_communicated_at", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.workaround_communicated_at", "block_contents": "The timestamp indicating when the workaround for the issue was communicated."}, "doc.servicenow.workaround_communicated_by_link": {"name": "workaround_communicated_by_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.workaround_communicated_by_link", "block_contents": "A link to the person or entity who communicated the workaround for the issue."}, "doc.servicenow.workaround_communicated_by_value": {"name": "workaround_communicated_by_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.workaround_communicated_by_value", "block_contents": "The name or identifier of the person or entity who communicated the workaround for the issue."}, "doc.servicenow.cause_code": {"name": "cause_code", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.cause_code", "block_contents": "The code or identifier associated with the cause of the issue or problem."}, "doc.servicenow.problem_task_cause_code": {"name": "problem_task_cause_code", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.problem_task_cause_code", "block_contents": "The code or identifier associated with the cause of the issue or problem."}, "doc.servicenow.close_code": {"name": "close_code", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.close_code", "block_contents": "The code or identifier associated with the closure or resolution."}, "doc.servicenow.problem_task_close_code": {"name": "problem_task_close_code", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.problem_task_close_code", "block_contents": "The code or identifier associated with the closure or resolution of the problem task."}, "doc.servicenow.change_task_close_code": {"name": "change_task_close_code", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.change_task_close_code", "block_contents": "The code or identifier associated with the closure or resolution of the change task."}, "doc.servicenow.change_request_close_code": {"name": "change_request_close_code", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.change_request_close_code", "block_contents": "The code or identifier associated with the closure or resolution of the change request."}, "doc.servicenow.other_reason": {"name": "other_reason", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.other_reason", "block_contents": "Additional information or reasons associated with the issue, especially if it falls outside standard categories."}, "doc.servicenow.problem_link": {"name": "problem_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.problem_link", "block_contents": "A link to the problem record associated with the issue or incident."}, "doc.servicenow.problem_task_type": {"name": "problem_task_type", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.problem_task_type", "block_contents": "The type or category of the task associated with the problem or issue."}, "doc.servicenow.problem_value": {"name": "problem_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.problem_value", "block_contents": "The unique identifier or name associated with the problem record linked to the issue."}, "doc.servicenow.started_at": {"name": "started_at", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.started_at", "block_contents": "The timestamp indicating when the issue or incident was initiated or started."}, "doc.servicenow.problem_task_started_at": {"name": "problem_task_started_at", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.problem_task_started_at", "block_contents": "The timestamp indicating when the issue or incident was initiated or started."}, "doc.servicenow.started_by_link": {"name": "started_by_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.started_by_link", "block_contents": "A link to the person or entity who initiated or started the issue or incident."}, "doc.servicenow.started_by_value": {"name": "started_by_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.started_by_value", "block_contents": "The name or identifier of the person or entity who initiated or started the issue or incident."}, "doc.servicenow.vendor_link": {"name": "vendor_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.vendor_link", "block_contents": "A link to the vendor or external entity associated with the record."}, "doc.servicenow.vendor_value": {"name": "vendor_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.vendor_value", "block_contents": "The name or identifier of the vendor or external entity linked to the record."}, "doc.servicenow.business_impact": {"name": "business_impact", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.business_impact", "block_contents": "Information about the impact of the issue on business operations or services."}, "doc.servicenow.business_stc": {"name": "business_stc", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.business_stc", "block_contents": "The business service that is impacted by the issue or incident."}, "doc.servicenow.calendar_stc": {"name": "calendar_stc", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.calendar_stc", "block_contents": "The calendar or schedule associated with the business service impacted by the issue."}, "doc.servicenow.caller_id_link": {"name": "caller_id_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.caller_id_link", "block_contents": "A link to the person or entity identified as the caller or reporter of the issue or incident."}, "doc.servicenow.caller_id_value": {"name": "caller_id_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.caller_id_value", "block_contents": "The name or identifier of the person or entity identified as the caller or reporter of the issue."}, "doc.servicenow.cause": {"name": "cause", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.cause", "block_contents": "A description or explanation of the root cause of the issue or incident."}, "doc.servicenow.caused_by_link": {"name": "caused_by_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.caused_by_link", "block_contents": "A link to the record or entity that caused or triggered the issue or incident."}, "doc.servicenow.caused_by_value": {"name": "caused_by_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.caused_by_value", "block_contents": "The name or identifier of the record or entity that caused or triggered the issue or incident."}, "doc.servicenow.child_incidents": {"name": "child_incidents", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.child_incidents", "block_contents": "Information about other incidents that are identified as child incidents linked to the current incident."}, "doc.servicenow.hold_reason": {"name": "hold_reason", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.hold_reason", "block_contents": "The reason or rationale for placing the issue or incident on hold."}, "doc.servicenow.incident_state": {"name": "incident_state", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.incident_state", "block_contents": "The current state or status of the incident."}, "doc.servicenow.notify": {"name": "notify", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.notify", "block_contents": "Indicates whether notifications or alerts have been configured for the issue or incident."}, "doc.servicenow.origin_id_link": {"name": "origin_id_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.origin_id_link", "block_contents": "A link to the original or source record from which the current record originated."}, "doc.servicenow.origin_id_value": {"name": "origin_id_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.origin_id_value", "block_contents": "The unique identifier or name associated with the original or source record linked to the current record."}, "doc.servicenow.parent_incident_link": {"name": "parent_incident_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.parent_incident_link", "block_contents": "A link to the parent incident record, indicating the incident from which the current incident is derived or related."}, "doc.servicenow.parent_incident_value": {"name": "parent_incident_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.parent_incident_value", "block_contents": "The unique identifier or name associated with the parent incident record linked to the current incident."}, "doc.servicenow.problem_id_link": {"name": "problem_id_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.problem_id_link", "block_contents": "A link to the problem record associated with the current issue or incident."}, "doc.servicenow.problem_id_value": {"name": "problem_id_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.problem_id_value", "block_contents": "The unique identifier or name associated with the problem record linked to the current issue or incident."}, "doc.servicenow.reopened_time": {"name": "reopened_time", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.reopened_time", "block_contents": "The timestamp indicating when the issue or incident was reopened after being previously resolved."}, "doc.servicenow.severity": {"name": "severity", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.severity", "block_contents": "The level of impact or seriousness assigned to the issue or incident."}, "doc.servicenow.change_request_link": {"name": "change_request_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.change_request_link", "block_contents": "A link to the change request record associated with the issue or incident."}, "doc.servicenow.change_request_value": {"name": "change_request_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.change_request_value", "block_contents": "The unique identifier or name associated with the change request record linked to the issue or incident."}, "doc.servicenow.change_task_type": {"name": "change_task_type", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.change_task_type", "block_contents": "The type or category of the task associated with the change request or change record."}, "doc.servicenow.created_from": {"name": "created_from", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.created_from", "block_contents": "Information about the source or origin of the current record, indicating how it was created or generated."}, "doc.servicenow.change_task_created_from": {"name": "change_task_created_from", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.change_task_created_from", "block_contents": "Information about the source or origin of the current record, indicating how it was created or generated."}, "doc.servicenow.on_hold": {"name": "on_hold", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.on_hold", "block_contents": "Indicates whether the issue or incident is currently on hold or paused."}, "doc.servicenow.is_change_on_hold": {"name": "is_change_on_hold", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.is_change_on_hold", "block_contents": "Indicates whether the change task is currently on hold or paused."}, "doc.servicenow.is_change_request_on_hold": {"name": "is_change_request_on_hold", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.is_change_request_on_hold", "block_contents": "Indicates whether the change is currently on hold or paused."}, "doc.servicenow.on_hold_reason": {"name": "on_hold_reason", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.on_hold_reason", "block_contents": "The reason or rationale for placing the associated record on hold."}, "doc.servicenow.change_task_on_hold_reason": {"name": "change_task_on_hold_reason", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.change_task_on_hold_reason", "block_contents": "The reason or rationale for placing the change task on hold."}, "doc.servicenow.change_request_on_hold_reason": {"name": "change_request_on_hold_reason", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.change_request_on_hold_reason", "block_contents": "The reason or rationale for placing the change on hold."}, "doc.servicenow.planned_end_date": {"name": "planned_end_date", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.planned_end_date", "block_contents": "The planned or scheduled end date for the change request or change record."}, "doc.servicenow.change_task_planned_end_date": {"name": "change_task_planned_end_date", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.change_task_planned_end_date", "block_contents": "The planned or scheduled end date for the change request or change record."}, "doc.servicenow.planned_start_date": {"name": "planned_start_date", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.planned_start_date", "block_contents": "The planned or scheduled start date for the change request or change record."}, "doc.servicenow.change_task_planned_start_date": {"name": "change_task_planned_start_date", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.change_task_planned_start_date", "block_contents": "The planned or scheduled start date for the change request or change record."}, "doc.servicenow.backout_plan": {"name": "backout_plan", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.backout_plan", "block_contents": "Information about the plan or process for backing out or undoing the changes associated with the current record."}, "doc.servicenow.cab_date": {"name": "cab_date", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.cab_date", "block_contents": "The date of the Change Advisory Board (CAB) meeting associated with the change request or change record."}, "doc.servicenow.cab_date_time": {"name": "cab_date_time", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.cab_date_time", "block_contents": "The date and time of the Change Advisory Board (CAB) meeting associated with the change request or change record."}, "doc.servicenow.cab_delegate_link": {"name": "cab_delegate_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.cab_delegate_link", "block_contents": "A link to the person or entity delegated to represent or act on behalf of the Change Advisory Board (CAB) in relation \nto the change request."}, "doc.servicenow.cab_delegate_value": {"name": "cab_delegate_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.cab_delegate_value", "block_contents": "The name or identifier of the person or entity delegated to represent or act on behalf of the Change Advisory Board (CAB) \nin relation to the change request."}, "doc.servicenow.cab_recommendation": {"name": "cab_recommendation", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.cab_recommendation", "block_contents": "The recommendation or decision made by the Change Advisory Board (CAB) regarding the change request."}, "doc.servicenow.cab_required": {"name": "cab_required", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.cab_required", "block_contents": "Indicates whether the Change Advisory Board (CAB) approval is required for the change request."}, "doc.servicenow.is_cab_required": {"name": "is_cab_required", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.is_cab_required", "block_contents": "Indicates whether the Change Advisory Board (CAB) approval is required for the change request."}, "doc.servicenow.change_plan": {"name": "change_plan", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.change_plan", "block_contents": "Information about the plan or process for implementing the changes associated with the current record."}, "doc.servicenow.chg_model_link": {"name": "chg_model_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.chg_model_link", "block_contents": "A link to the change model or template associated with the change request or change record."}, "doc.servicenow.chg_model_value": {"name": "chg_model_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.chg_model_value", "block_contents": "The name or identifier of the change model or template linked to the change request or change record."}, "doc.servicenow.conflict_last_run": {"name": "conflict_last_run", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.conflict_last_run", "block_contents": "The timestamp indicating when the conflict detection was last run for the change request or change record."}, "doc.servicenow.conflict_status": {"name": "conflict_status", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.conflict_status", "block_contents": "The status or outcome of the conflict detection process for the change request or change record."}, "doc.servicenow.end_date": {"name": "end_date", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.end_date", "block_contents": "The end date for the implementation or execution associated with the current record."}, "doc.servicenow.change_end_date": {"name": "change_end_date", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.change_end_date", "block_contents": "The end date for the change or execution of the changes associated with the current record."}, "doc.servicenow.implementation_plan": {"name": "implementation_plan", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.implementation_plan", "block_contents": "Information about the plan or process for implementing the changes associated with the current record."}, "doc.servicenow.change_implementation_plan": {"name": "change_implementation_plan", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.change_implementation_plan", "block_contents": "Information about the plan or process for implementing the changes associated with the current record."}, "doc.servicenow.justification": {"name": "justification", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.justification", "block_contents": "The reasoning or justification behind the changes associated with the current record, providing context or explanation for the modifications made."}, "doc.servicenow.change_justification": {"name": "change_justification", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.change_justification", "block_contents": "The reasoning or justification behind the changes associated with the current record, providing context or explanation for the modifications made."}, "doc.servicenow.change_request_end_date": {"name": "change_request_end_date", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.change_request_end_date", "block_contents": "The end date for the change or execution of the change request associated with the current record."}, "doc.servicenow.change_request_implementation_plan": {"name": "change_request_implementation_plan", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.change_request_implementation_plan", "block_contents": "Information about the plan or process for implementing the changes associated with the current record."}, "doc.servicenow.change_request_justification": {"name": "change_request_justification", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.change_request_justification", "block_contents": "The reasoning or justification behind the changes associated with the current record, providing context or explanation for the modifications made."}, "doc.servicenow.on_hold_task": {"name": "on_hold_task", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.on_hold_task", "block_contents": "A link to the task or activity that indicates the current record is on hold, specifying the task associated with the \nhold status."}, "doc.servicenow.outside_maintenance_schedule": {"name": "outside_maintenance_schedule", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.outside_maintenance_schedule", "block_contents": "Indicates whether the changes associated with the current record fall outside the regular maintenance schedule or window."}, "doc.servicenow.phase": {"name": "phase", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.phase", "block_contents": "The phase or stage of the change request or change record within the change management process, indicating its progress or status."}, "doc.servicenow.change_phase": {"name": "change_phase", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.change_phase", "block_contents": "The phase or stage of the change request or change record within the change management process, indicating its progress or status."}, "doc.servicenow.phase_state": {"name": "phase_state", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.phase_state", "block_contents": "The current state or status of the phase associated with the change request or change record."}, "doc.servicenow.change_phase_state": {"name": "change_phase_state", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.change_phase_state", "block_contents": "The current state or status of the phase associated with the change request or change record."}, "doc.servicenow.production_system": {"name": "production_system", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.production_system", "block_contents": "Indicates whether the changes associated with the current record are intended for the production environment or system."}, "doc.servicenow.is_production_system": {"name": "is_production_system", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.is_production_system", "block_contents": "Indicates whether the changes associated with the current record are intended for the production environment or system."}, "doc.servicenow.reason": {"name": "reason", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.reason", "block_contents": "The reason or rationale behind the changes requested by the current record, providing context or explanation for the modifications made."}, "doc.servicenow.change_reason": {"name": "change_reason", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.change_reason", "block_contents": "The reason or rationale behind the changes associated with the current record, providing context or explanation for the modifications made."}, "doc.servicenow.requested_by_date": {"name": "requested_by_date", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.requested_by_date", "block_contents": "The date when the changes associated with the current record were requested or initiated."}, "doc.servicenow.change_requested_by_date": {"name": "change_requested_by_date", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.change_requested_by_date", "block_contents": "The date when the changes associated with the current record were requested or initiated."}, "doc.servicenow.requested_by_link": {"name": "requested_by_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.requested_by_link", "block_contents": "A link to the person or entity who requested or initiated the changes associated with the current record."}, "doc.servicenow.change_requested_by_link": {"name": "change_requested_by_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.change_requested_by_link", "block_contents": "A link to the person or entity who requested or initiated the changes associated with the current record."}, "doc.servicenow.requested_by_value": {"name": "requested_by_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.requested_by_value", "block_contents": "The name or identifier of the person or entity who requested or initiated the changes associated with the current record."}, "doc.servicenow.change_requested_by_value": {"name": "change_requested_by_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.change_requested_by_value", "block_contents": "The name or identifier of the person or entity who requested or initiated the changes associated with the current record."}, "doc.servicenow.review_comments": {"name": "review_comments", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.review_comments", "block_contents": "Comments or feedback provided during the review process for the changes associated with the current record."}, "doc.servicenow.review_date": {"name": "review_date", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.review_date", "block_contents": "The date when the record was reviewed or evaluated."}, "doc.servicenow.change_review_date": {"name": "change_review_date", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.change_review_date", "block_contents": "The date when the changes associated with the current record were reviewed or evaluated."}, "doc.servicenow.change_request_review_date": {"name": "change_request_review_date", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.change_request_review_date", "block_contents": "The date when the change request was reviewed or evaluated."}, "doc.servicenow.review_status": {"name": "review_status", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.review_status", "block_contents": "The status or outcome of the review process associated with the current record."}, "doc.servicenow.change_request_review_status": {"name": "change_request_review_status", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.change_request_review_status", "block_contents": "The status or outcome of the review process for the change request associated with the current record."}, "doc.servicenow.risk": {"name": "risk", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.risk", "block_contents": "The level of risk associated with the changes, indicating the potential impact or consequences of implementing the modifications outlined in the current record."}, "doc.servicenow.change_request_risk": {"name": "change_request_risk", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.change_request_risk", "block_contents": "The level of risk associated with the changes, indicating the potential impact or consequences of implementing the modifications outlined in the current record."}, "doc.servicenow.risk_impact_analysis": {"name": "risk_impact_analysis", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.risk_impact_analysis", "block_contents": "An analysis or assessment of the impact or consequences of the changes outlined in the current record."}, "doc.servicenow.scope": {"name": "scope", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.scope", "block_contents": "The scope or extent of the changes outlined in the current record, specifying the areas or components affected by the modifications."}, "doc.servicenow.change_request_scope": {"name": "change_request_scope", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.change_request_scope", "block_contents": "The scope or extent of the changes outlined in the current record, specifying the areas or components affected by the modifications."}, "doc.servicenow.change_request_start_date": {"name": "change_request_start_date", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.change_request_start_date", "block_contents": "The requested start date for the implementation or execution of the changes associated with the current record."}, "doc.servicenow.start_date": {"name": "start_date", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.start_date", "block_contents": "The start date associated with the current record."}, "doc.servicenow.std_change_producer_version_link": {"name": "std_change_producer_version_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.std_change_producer_version_link", "block_contents": "A link to the version of the standard change producer associated with the current record."}, "doc.servicenow.std_change_producer_version_value": {"name": "std_change_producer_version_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.std_change_producer_version_value", "block_contents": "The name or identifier of the version of the standard change producer linked to the current record."}, "doc.servicenow.test_plan": {"name": "test_plan", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.test_plan", "block_contents": "Information about the plan or process for testing the changes associated with the current record."}, "doc.servicenow.change_request_test_plan": {"name": "change_request_test_plan", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.change_request_test_plan", "block_contents": "Information about the plan or process for testing the changes requested by the change request of this record."}, "doc.servicenow.type": {"name": "type", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.type", "block_contents": "The type or category regarding the current record"}, "doc.servicenow.change_request_type": {"name": "change_request_type", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.change_request_type", "block_contents": "The type or category of the changes outlined in the current record, indicating the nature or purpose of the modifications."}, "doc.servicenow.unauthorized": {"name": "unauthorized", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.unauthorized", "block_contents": "Indicates whether the changes associated with the current record were made without proper authorization or approval."}, "doc.servicenow.is_change_request_unauthorized": {"name": "is_change_request_unauthorized", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.is_change_request_unauthorized", "block_contents": "Indicates whether the changes associated with the current record were made without proper authorization or approval."}, "doc.servicenow.category": {"name": "category", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.category", "block_contents": "The category of the record."}, "doc.servicenow.change_category": {"name": "change_category", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.change_category", "block_contents": "The category of the change."}, "doc.servicenow.problem_category": {"name": "problem_category", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.problem_category", "block_contents": "The category of the problem."}, "doc.servicenow.servicenow__task_enhanced": {"name": "servicenow__task_enhanced", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.servicenow__task_enhanced", "block_contents": "Each record represents a task with additional information about its associated problem, incident, or change request. Finally, it contains user information for who opened, started, updated, reported, fixed, closed, requested, reported, or confirmed the task."}, "doc.servicenow.is_problem_task": {"name": "is_problem_task", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.is_problem_task", "block_contents": "A boolean of whether the task is a problem task."}, "doc.servicenow.is_change_task": {"name": "is_change_task", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.is_change_task", "block_contents": "A boolean of whether the task is a change task."}, "doc.servicenow.task_minutes_open_to_close": {"name": "task_minutes_open_to_close", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.task_minutes_open_to_close", "block_contents": "The number of minutes from time that the task was opened to the time that the task was closed."}, "doc.servicenow.associated_problem_id": {"name": "associated_problem_id", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.associated_problem_id", "block_contents": "The associated problem with this task; the sys_id from the problem object."}, "doc.servicenow.associated_change_request_id": {"name": "associated_change_request_id", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.associated_change_request_id", "block_contents": "The associated change request with this task; the sys_id from the change request object."}, "doc.servicenow.servicenow__activity_summary": {"name": "servicenow__activity_summary", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.servicenow__activity_summary", "block_contents": "Each record represents aggregate task, problem, change, incident, and change request data by varying grains including update date, status, priority, impact, and urgency."}, "doc.servicenow.total_incidents_caused_by_problem": {"name": "total_incidents_caused_by_problem", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.total_incidents_caused_by_problem", "block_contents": "The total number of incidents associated with this problem."}, "doc.servicenow.total_active_tasks": {"name": "total_active_tasks", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.total_active_tasks", "block_contents": "Total number of active tasks"}, "doc.servicenow.total_active_problem_tasks": {"name": "total_active_problem_tasks", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.total_active_problem_tasks", "block_contents": "Total number of active problem tasks"}, "doc.servicenow.total_active_change_tasks": {"name": "total_active_change_tasks", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.total_active_change_tasks", "block_contents": "Total number of active change tasks"}, "doc.servicenow.total_associated_problems": {"name": "total_associated_problems", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.total_associated_problems", "block_contents": "Total number of problems"}, "doc.servicenow.total_incidents_caused_by_problems": {"name": "total_incidents_caused_by_problems", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.total_incidents_caused_by_problems", "block_contents": "Total number of incidents caused by associated problems"}, "doc.servicenow.total_change_requests": {"name": "total_change_requests", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.total_change_requests", "block_contents": "Total number of change requests"}, "doc.servicenow.total_closed_tasks": {"name": "total_closed_tasks", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.total_closed_tasks", "block_contents": "Total number of closed tasks"}, "doc.servicenow.average_minutes_open_to_close": {"name": "average_minutes_open_to_close", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.average_minutes_open_to_close", "block_contents": "Average number of minutes between the time that the task was opened to the time that the task was closed."}, "doc.servicenow.total_tasks_made_slas": {"name": "total_tasks_made_slas", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.total_tasks_made_slas", "block_contents": "The count of total tasks where is_made_sla = True"}, "doc.servicenow.customer": {"name": "customer", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.customer", "block_contents": "Boolean of whether the company is a customer."}, "doc.servicenow.fax_phone": {"name": "fax_phone", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.fax_phone", "block_contents": "Fax phone number of the record."}, "doc.servicenow.fiscal_year": {"name": "fiscal_year", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.fiscal_year", "block_contents": "Company's fiscal year"}, "doc.servicenow.notes": {"name": "notes", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.notes", "block_contents": "Notes about the record"}, "doc.servicenow.address_state": {"name": "address_state", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.address_state", "block_contents": "The geographical state to which the record belongs"}, "doc.servicenow.street": {"name": "street", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.street", "block_contents": "The street to which the record belongs"}, "doc.servicenow.vendor": {"name": "vendor", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.vendor", "block_contents": "Boolean of whether the company is a vendor"}, "doc.servicenow.vendor_type": {"name": "vendor_type", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.vendor_type", "block_contents": "Vendor types group vendors that offer similar goods and services, and are useful for reporting and comparing vendor performance. Example: Hardware, Services"}, "doc.servicenow.website": {"name": "website", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.website", "block_contents": "Company website"}, "doc.servicenow.stg_servicenow__core_company": {"name": "stg_servicenow__core_company", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.stg_servicenow__core_company", "block_contents": "Staging table containing all records relating to companies."}, "doc.servicenow.core_company": {"name": "core_company", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.core_company", "block_contents": "Table containing all company related information."}, "doc.servicenow.cmdb_ci": {"name": "cmdb_ci", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.cmdb_ci", "block_contents": "The base table for all CI (Configuration Item) tables in the CMDB (Configuration Management Database)"}, "doc.servicenow.stg_servicenow__cmdb_ci": {"name": "stg_servicenow__cmdb_ci", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.stg_servicenow__cmdb_ci", "block_contents": "Staging table containing all records relating to CI(Configuration Item) tables in the CMDB (Configuration Management Database)"}, "doc.servicenow.cmdb_ci_service": {"name": "cmdb_ci_service", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.cmdb_ci_service", "block_contents": "Table containing all information related to application service areas. An application service is work or goods that are supported by an IT infrastructure. For example, delivering email service to an employee can require services such as email servers, web servers, and the work to configure the user's account. An application service management map graphically displays the configuration items (CI) that support an application service and the relationships between the CIs."}, "doc.servicenow.stg_servicenow__cmdb_ci_service": {"name": "stg_servicenow__cmdb_ci_service", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.stg_servicenow__cmdb_ci_service", "block_contents": "Staging table containing all records related to CMDB CI service areas."}, "doc.servicenow.sys_user_group": {"name": "sys_user_group", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.sys_user_group", "block_contents": "Table containing all information related to user groups."}, "doc.servicenow.stg_servicenow__sys_user_group": {"name": "stg_servicenow__sys_user_group", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.stg_servicenow__sys_user_group", "block_contents": "Staging table containing all information related to user groups."}, "doc.servicenow.attributes": {"name": "attributes", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.attributes", "block_contents": "Data elements which describe the characteristics of CIs"}, "doc.servicenow.business_unit_link": {"name": "business_unit_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.business_unit_link", "block_contents": "Link to business unit. Business units usually comprise departments and are associated with a company"}, "doc.servicenow.business_unit_value": {"name": "business_unit_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.business_unit_value", "block_contents": "The ID of the business unit."}, "doc.servicenow.cost": {"name": "cost", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.cost", "block_contents": "The cost related to the record."}, "doc.servicenow.cost_cc": {"name": "cost_cc", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.cost_cc", "block_contents": "The cost center that the record belongs to."}, "doc.servicenow.managed_by_link": {"name": "managed_by_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.managed_by_link", "block_contents": "The link to the user profile that manages this record."}, "doc.servicenow.managed_by_value": {"name": "managed_by_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.managed_by_value", "block_contents": "The ID of the user profile that manages this record."}, "doc.servicenow.manufacturer_link": {"name": "manufacturer_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.manufacturer_link", "block_contents": "The link to the manufacturer that manages this record."}, "doc.servicenow.manufacturer_value": {"name": "manufacturer_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.manufacturer_value", "block_contents": "The ID of the manufacturer that manages this record."}, "doc.servicenow.model_id_link": {"name": "model_id_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.model_id_link", "block_contents": "The link to the model related to the CI."}, "doc.servicenow.model_id_value": {"name": "model_id_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.model_id_value", "block_contents": "The ID to the model related to the CI."}, "doc.servicenow.model_number": {"name": "model_number", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.model_number", "block_contents": "The number of the model related to the IC."}, "doc.servicenow.owned_by_link": {"name": "owned_by_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.owned_by_link", "block_contents": "The link to the owner of the CI related to this record."}, "doc.servicenow.owned_by_value": {"name": "owned_by_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.owned_by_value", "block_contents": "The ID to the owner of the CI related to this record."}, "doc.servicenow.sys_class_path": {"name": "sys_class_path", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.sys_class_path", "block_contents": "Where a particular CI class is within the overall hierarchy of classes."}, "doc.servicenow.service_classification": {"name": "service_classification", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.service_classification", "block_contents": "The type of service. Each type contains groups of CI services that share attributes."}, "doc.servicenow.service_level_requirement": {"name": "service_level_requirement", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.service_level_requirement", "block_contents": "Requirement specified to maintain service commitments between parties."}, "doc.servicenow.default_assignee_link": {"name": "default_assignee_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.default_assignee_link", "block_contents": "Link to the user that is the default assignee for this record."}, "doc.servicenow.default_assignee_value": {"name": "default_assignee_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.default_assignee_value", "block_contents": "ID of the user that is the default assignee for this record."}, "doc.servicenow.exclude_manager": {"name": "exclude_manager", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.exclude_manager", "block_contents": "Boolean of whether the group manager receives email notifications."}, "doc.servicenow.include_members": {"name": "include_members", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.include_members", "block_contents": "Boolean of whether the group members receive individual emails when someone sends an email to the Group Email address."}, "doc.servicenow.sys_user_group_parent_value": {"name": "sys_user_group_parent_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.sys_user_group_parent_value", "block_contents": "ID of the other group of which this group is a member. If a group has a parent, the child group inherits the roles of the parent group. The members of the child group are not members of the parent group."}, "doc.servicenow.sys_user_group_parent_link": {"name": "sys_user_group_parent_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.sys_user_group_parent_link", "block_contents": "Link to the other group of which this group is a member. If a group has a parent, the child group inherits the roles of the parent group. The members of the child group are not members of the parent group."}, "doc.servicenow.cmdb_ci_name": {"name": "cmdb_ci_name", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.cmdb_ci_name", "block_contents": "Name of the relevant CMDB CI."}, "doc.servicenow.assignment_group_name": {"name": "assignment_group_name", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.assignment_group_name", "block_contents": "Name of the relevant assignment group."}, "doc.servicenow.business_service_name": {"name": "business_service_name", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.business_service_name", "block_contents": "Name of the relevant business service."}, "doc.servicenow.task_updated_date": {"name": "task_updated_date", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.task_updated_date", "block_contents": "The day the task last got updated."}, "doc.servicenow.unverified": {"name": "unverified", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.unverified", "block_contents": "Boolean indicating if the change task is unverified."}, "doc.servicenow.monitor": {"name": "monitor", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.monitor", "block_contents": "Monitor in relation to the cmdb_ci_service."}}, "exposures": {}, "metrics": {}, "groups": {}, "selectors": {}, "disabled": {"seed.servicenow_integration_tests.task_data_snowflake": [{"database": "postgres", "schema": "reddit_ads_integration_tests_3", "name": "task_data_snowflake", "resource_type": "seed", "package_name": "servicenow_integration_tests", "path": "task_data_snowflake.csv", "original_file_path": "seeds/task_data_snowflake.csv", "unique_id": "seed.servicenow_integration_tests.task_data_snowflake", "fqn": ["servicenow_integration_tests", "task_data_snowflake"], "alias": "task_data", "checksum": {"name": "sha256", "checksum": "966cbd404850266f3f57eaaa39296880fb8ff18ad5bf479ce191eb74a8b59f1d"}, "config": {"enabled": false, "alias": "task_data", "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"sys_id": "varchar", "sys_created_on": "timestamp", "resolved_at": "timestamp", "closed_at": "timestamp", "confirmed_by_value": "varchar", "first_reported_by_task_value": "varchar", "requested_by_value": "varchar", "fix_by_value": "varchar", "started_by_value": "varchar", "problem_value": "varchar", "resolved_by_value": "varchar", "change_request_value": "varchar", "assigned_to_value": "varchar", "closed_by_value": "varchar", "opened_by_value": "varchar", "sys_created_by": "varchar", "sys_updated_by": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"sys_id": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "sys_created_on": "timestamp", "resolved_at": "timestamp", "closed_at": "timestamp", "confirmed_by_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "first_reported_by_task_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "requested_by_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "fix_by_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "started_by_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "problem_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "resolved_by_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "change_request_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "assigned_to_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "closed_by_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "opened_by_value": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "sys_created_by": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}", "sys_updated_by": "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}"}, "alias": "task_data", "enabled": "{{ true if target.type == 'snowflake' else false }}"}, "created_at": 1705606887.919227, "config_call_dict": {}, "relation_name": "\"postgres\".\"reddit_ads_integration_tests_3\".\"task_data\"", "raw_code": "", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/servicenow/dbt_servicenow/integration_tests", "depends_on": {"macros": []}, "defer_relation": null}]}, "parent_map": {"seed.servicenow_integration_tests.change_task_data": [], "seed.servicenow_integration_tests.problem_task_data": [], "seed.servicenow_integration_tests.sys_user_data": [], "seed.servicenow_integration_tests.task_sla_data": [], "seed.servicenow_integration_tests.task_data": [], "seed.servicenow_integration_tests.change_request_data": [], "seed.servicenow_integration_tests.incident_data": [], "seed.servicenow_integration_tests.problem_data": [], "model.servicenow.servicenow__activity_summary": ["model.servicenow.servicenow__task_enhanced"], "model.servicenow.servicenow__task_enhanced": ["model.servicenow.stg_servicenow__change_request", "model.servicenow.stg_servicenow__change_task", "model.servicenow.stg_servicenow__cmdb_ci", "model.servicenow.stg_servicenow__cmdb_ci_service", "model.servicenow.stg_servicenow__core_company", "model.servicenow.stg_servicenow__problem", "model.servicenow.stg_servicenow__problem_task", "model.servicenow.stg_servicenow__sys_user", "model.servicenow.stg_servicenow__sys_user_group", "model.servicenow.stg_servicenow__task"], "model.servicenow.stg_servicenow__task": ["model.servicenow.stg_servicenow__task_base"], "model.servicenow.stg_servicenow__cmdb_ci": ["model.servicenow.stg_servicenow__cmdb_ci_base"], "model.servicenow.stg_servicenow__cmdb_ci_service": ["model.servicenow.stg_servicenow__cmdb_ci_service_base"], "model.servicenow.stg_servicenow__change_task": ["model.servicenow.stg_servicenow__change_task_base"], "model.servicenow.stg_servicenow__sys_user_group": ["model.servicenow.stg_servicenow__sys_user_group_base"], "model.servicenow.stg_servicenow__incident": ["model.servicenow.stg_servicenow__incident_base"], "model.servicenow.stg_servicenow__task_sla": ["model.servicenow.stg_servicenow__task_sla_base"], "model.servicenow.stg_servicenow__core_company": ["model.servicenow.stg_servicenow__core_company_base"], "model.servicenow.stg_servicenow__sys_user": ["model.servicenow.stg_servicenow__sys_user_base"], "model.servicenow.stg_servicenow__change_request": ["model.servicenow.stg_servicenow__change_request_base"], "model.servicenow.stg_servicenow__problem_task": ["model.servicenow.stg_servicenow__problem_task_base"], "model.servicenow.stg_servicenow__problem": ["model.servicenow.stg_servicenow__problem_base"], "model.servicenow.stg_servicenow__task_base": ["source.servicenow.servicenow.task"], "model.servicenow.stg_servicenow__incident_base": ["source.servicenow.servicenow.incident"], "model.servicenow.stg_servicenow__cmdb_ci_service_base": ["source.servicenow.servicenow.cmdb_ci_service"], "model.servicenow.stg_servicenow__problem_base": ["source.servicenow.servicenow.problem"], "model.servicenow.stg_servicenow__cmdb_ci_base": ["source.servicenow.servicenow.cmdb_ci"], "model.servicenow.stg_servicenow__sys_user_group_base": ["source.servicenow.servicenow.sys_user_group"], "model.servicenow.stg_servicenow__problem_task_base": ["source.servicenow.servicenow.problem_task"], "model.servicenow.stg_servicenow__change_request_base": ["source.servicenow.servicenow.change_request"], "model.servicenow.stg_servicenow__task_sla_base": ["source.servicenow.servicenow.task_sla"], "model.servicenow.stg_servicenow__core_company_base": ["source.servicenow.servicenow.core_company"], "model.servicenow.stg_servicenow__change_task_base": ["source.servicenow.servicenow.change_task"], "model.servicenow.stg_servicenow__sys_user_base": ["source.servicenow.servicenow.sys_user"], "test.servicenow.unique_servicenow__task_enhanced_task_id.a974c4dbbc": ["model.servicenow.servicenow__task_enhanced"], "test.servicenow.not_null_servicenow__task_enhanced_task_id.76cea62cda": ["model.servicenow.servicenow__task_enhanced"], "test.servicenow.dbt_utils_unique_combination_of_columns_servicenow__activity_summary_task_updated_date__task_state__priority__impact__urgency__source_relation.8ca2665c4e": ["model.servicenow.servicenow__activity_summary"], "test.servicenow.not_null_stg_servicenow__task_task_id.7a50a91303": ["model.servicenow.stg_servicenow__task"], "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__task_task_id__source_relation.4b5ec4b727": ["model.servicenow.stg_servicenow__task"], "test.servicenow.not_null_stg_servicenow__task_sla_task_sla_id.c67b0e6fdf": ["model.servicenow.stg_servicenow__task_sla"], "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__task_sla_task_sla_id__source_relation.e9939b7a70": ["model.servicenow.stg_servicenow__task_sla"], "test.servicenow.not_null_stg_servicenow__sys_user_user_id.90a8733b9d": ["model.servicenow.stg_servicenow__sys_user"], "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__sys_user_user_id__source_relation.2a8836be3c": ["model.servicenow.stg_servicenow__sys_user"], "test.servicenow.not_null_stg_servicenow__problem_problem_id.2b0f45ffad": ["model.servicenow.stg_servicenow__problem"], "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__problem_problem_id__source_relation.135d98438b": ["model.servicenow.stg_servicenow__problem"], "test.servicenow.not_null_stg_servicenow__problem_task_problem_task_id.2d07d24f54": ["model.servicenow.stg_servicenow__problem_task"], "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__problem_task_problem_task_id__source_relation.e59f50cae6": ["model.servicenow.stg_servicenow__problem_task"], "test.servicenow.not_null_stg_servicenow__incident_incident_id.b01cee4a78": ["model.servicenow.stg_servicenow__incident"], "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__incident_incident_id__source_relation.4383616e6a": ["model.servicenow.stg_servicenow__incident"], "test.servicenow.not_null_stg_servicenow__change_task_change_task_id.2d5ae34a7b": ["model.servicenow.stg_servicenow__change_task"], "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__change_task_change_task_id__source_relation.11bf5182ff": ["model.servicenow.stg_servicenow__change_task"], "test.servicenow.not_null_stg_servicenow__change_request_change_request_id.0f2ee81c5f": ["model.servicenow.stg_servicenow__change_request"], "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__change_request_change_request_id__source_relation.f8d65569ae": ["model.servicenow.stg_servicenow__change_request"], "test.servicenow.not_null_stg_servicenow__core_company_core_company_id.e8ef462897": ["model.servicenow.stg_servicenow__core_company"], "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__core_company_core_company_id__source_relation.85b30d325b": ["model.servicenow.stg_servicenow__core_company"], "test.servicenow.not_null_stg_servicenow__cmdb_ci_cmdb_ci_id.83f2c6d37c": ["model.servicenow.stg_servicenow__cmdb_ci"], "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__cmdb_ci_cmdb_ci_id__source_relation.4d25f1839d": ["model.servicenow.stg_servicenow__cmdb_ci"], "test.servicenow.not_null_stg_servicenow__cmdb_ci_service_cmdb_ci_service_id.f7770250de": ["model.servicenow.stg_servicenow__cmdb_ci_service"], "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__cmdb_ci_service_cmdb_ci_service_id__source_relation.e596372710": ["model.servicenow.stg_servicenow__cmdb_ci_service"], "test.servicenow.not_null_stg_servicenow__sys_user_group_sys_user_group_id.a4600fb5c8": ["model.servicenow.stg_servicenow__sys_user_group"], "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__sys_user_group_sys_user_group_id__source_relation.6fd66f39ed": ["model.servicenow.stg_servicenow__sys_user_group"], "source.servicenow.servicenow.task": [], "source.servicenow.servicenow.task_sla": [], "source.servicenow.servicenow.sys_user": [], "source.servicenow.servicenow.problem": [], "source.servicenow.servicenow.problem_task": [], "source.servicenow.servicenow.incident": [], "source.servicenow.servicenow.change_task": [], "source.servicenow.servicenow.change_request": [], "source.servicenow.servicenow.core_company": [], "source.servicenow.servicenow.cmdb_ci": [], "source.servicenow.servicenow.cmdb_ci_service": [], "source.servicenow.servicenow.sys_user_group": []}, "child_map": {"seed.servicenow_integration_tests.change_task_data": [], "seed.servicenow_integration_tests.problem_task_data": [], "seed.servicenow_integration_tests.sys_user_data": [], "seed.servicenow_integration_tests.task_sla_data": [], "seed.servicenow_integration_tests.task_data": [], "seed.servicenow_integration_tests.change_request_data": [], "seed.servicenow_integration_tests.incident_data": [], "seed.servicenow_integration_tests.problem_data": [], "model.servicenow.servicenow__activity_summary": ["test.servicenow.dbt_utils_unique_combination_of_columns_servicenow__activity_summary_task_updated_date__task_state__priority__impact__urgency__source_relation.8ca2665c4e"], "model.servicenow.servicenow__task_enhanced": ["model.servicenow.servicenow__activity_summary", "test.servicenow.not_null_servicenow__task_enhanced_task_id.76cea62cda", "test.servicenow.unique_servicenow__task_enhanced_task_id.a974c4dbbc"], "model.servicenow.stg_servicenow__task": ["model.servicenow.servicenow__task_enhanced", "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__task_task_id__source_relation.4b5ec4b727", "test.servicenow.not_null_stg_servicenow__task_task_id.7a50a91303"], "model.servicenow.stg_servicenow__cmdb_ci": ["model.servicenow.servicenow__task_enhanced", "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__cmdb_ci_cmdb_ci_id__source_relation.4d25f1839d", "test.servicenow.not_null_stg_servicenow__cmdb_ci_cmdb_ci_id.83f2c6d37c"], "model.servicenow.stg_servicenow__cmdb_ci_service": ["model.servicenow.servicenow__task_enhanced", "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__cmdb_ci_service_cmdb_ci_service_id__source_relation.e596372710", "test.servicenow.not_null_stg_servicenow__cmdb_ci_service_cmdb_ci_service_id.f7770250de"], "model.servicenow.stg_servicenow__change_task": ["model.servicenow.servicenow__task_enhanced", "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__change_task_change_task_id__source_relation.11bf5182ff", "test.servicenow.not_null_stg_servicenow__change_task_change_task_id.2d5ae34a7b"], "model.servicenow.stg_servicenow__sys_user_group": ["model.servicenow.servicenow__task_enhanced", "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__sys_user_group_sys_user_group_id__source_relation.6fd66f39ed", "test.servicenow.not_null_stg_servicenow__sys_user_group_sys_user_group_id.a4600fb5c8"], "model.servicenow.stg_servicenow__incident": ["test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__incident_incident_id__source_relation.4383616e6a", "test.servicenow.not_null_stg_servicenow__incident_incident_id.b01cee4a78"], "model.servicenow.stg_servicenow__task_sla": ["test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__task_sla_task_sla_id__source_relation.e9939b7a70", "test.servicenow.not_null_stg_servicenow__task_sla_task_sla_id.c67b0e6fdf"], "model.servicenow.stg_servicenow__core_company": ["model.servicenow.servicenow__task_enhanced", "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__core_company_core_company_id__source_relation.85b30d325b", "test.servicenow.not_null_stg_servicenow__core_company_core_company_id.e8ef462897"], "model.servicenow.stg_servicenow__sys_user": ["model.servicenow.servicenow__task_enhanced", "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__sys_user_user_id__source_relation.2a8836be3c", "test.servicenow.not_null_stg_servicenow__sys_user_user_id.90a8733b9d"], "model.servicenow.stg_servicenow__change_request": ["model.servicenow.servicenow__task_enhanced", "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__change_request_change_request_id__source_relation.f8d65569ae", "test.servicenow.not_null_stg_servicenow__change_request_change_request_id.0f2ee81c5f"], "model.servicenow.stg_servicenow__problem_task": ["model.servicenow.servicenow__task_enhanced", "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__problem_task_problem_task_id__source_relation.e59f50cae6", "test.servicenow.not_null_stg_servicenow__problem_task_problem_task_id.2d07d24f54"], "model.servicenow.stg_servicenow__problem": ["model.servicenow.servicenow__task_enhanced", "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__problem_problem_id__source_relation.135d98438b", "test.servicenow.not_null_stg_servicenow__problem_problem_id.2b0f45ffad"], "model.servicenow.stg_servicenow__task_base": ["model.servicenow.stg_servicenow__task"], "model.servicenow.stg_servicenow__incident_base": ["model.servicenow.stg_servicenow__incident"], "model.servicenow.stg_servicenow__cmdb_ci_service_base": ["model.servicenow.stg_servicenow__cmdb_ci_service"], "model.servicenow.stg_servicenow__problem_base": ["model.servicenow.stg_servicenow__problem"], "model.servicenow.stg_servicenow__cmdb_ci_base": ["model.servicenow.stg_servicenow__cmdb_ci"], "model.servicenow.stg_servicenow__sys_user_group_base": ["model.servicenow.stg_servicenow__sys_user_group"], "model.servicenow.stg_servicenow__problem_task_base": ["model.servicenow.stg_servicenow__problem_task"], "model.servicenow.stg_servicenow__change_request_base": ["model.servicenow.stg_servicenow__change_request"], "model.servicenow.stg_servicenow__task_sla_base": ["model.servicenow.stg_servicenow__task_sla"], "model.servicenow.stg_servicenow__core_company_base": ["model.servicenow.stg_servicenow__core_company"], "model.servicenow.stg_servicenow__change_task_base": ["model.servicenow.stg_servicenow__change_task"], "model.servicenow.stg_servicenow__sys_user_base": ["model.servicenow.stg_servicenow__sys_user"], "test.servicenow.unique_servicenow__task_enhanced_task_id.a974c4dbbc": [], "test.servicenow.not_null_servicenow__task_enhanced_task_id.76cea62cda": [], "test.servicenow.dbt_utils_unique_combination_of_columns_servicenow__activity_summary_task_updated_date__task_state__priority__impact__urgency__source_relation.8ca2665c4e": [], "test.servicenow.not_null_stg_servicenow__task_task_id.7a50a91303": [], "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__task_task_id__source_relation.4b5ec4b727": [], "test.servicenow.not_null_stg_servicenow__task_sla_task_sla_id.c67b0e6fdf": [], "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__task_sla_task_sla_id__source_relation.e9939b7a70": [], "test.servicenow.not_null_stg_servicenow__sys_user_user_id.90a8733b9d": [], "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__sys_user_user_id__source_relation.2a8836be3c": [], "test.servicenow.not_null_stg_servicenow__problem_problem_id.2b0f45ffad": [], "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__problem_problem_id__source_relation.135d98438b": [], "test.servicenow.not_null_stg_servicenow__problem_task_problem_task_id.2d07d24f54": [], "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__problem_task_problem_task_id__source_relation.e59f50cae6": [], "test.servicenow.not_null_stg_servicenow__incident_incident_id.b01cee4a78": [], "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__incident_incident_id__source_relation.4383616e6a": [], "test.servicenow.not_null_stg_servicenow__change_task_change_task_id.2d5ae34a7b": [], "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__change_task_change_task_id__source_relation.11bf5182ff": [], "test.servicenow.not_null_stg_servicenow__change_request_change_request_id.0f2ee81c5f": [], "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__change_request_change_request_id__source_relation.f8d65569ae": [], "test.servicenow.not_null_stg_servicenow__core_company_core_company_id.e8ef462897": [], "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__core_company_core_company_id__source_relation.85b30d325b": [], "test.servicenow.not_null_stg_servicenow__cmdb_ci_cmdb_ci_id.83f2c6d37c": [], "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__cmdb_ci_cmdb_ci_id__source_relation.4d25f1839d": [], "test.servicenow.not_null_stg_servicenow__cmdb_ci_service_cmdb_ci_service_id.f7770250de": [], "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__cmdb_ci_service_cmdb_ci_service_id__source_relation.e596372710": [], "test.servicenow.not_null_stg_servicenow__sys_user_group_sys_user_group_id.a4600fb5c8": [], "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__sys_user_group_sys_user_group_id__source_relation.6fd66f39ed": [], "source.servicenow.servicenow.task": ["model.servicenow.stg_servicenow__task_base"], "source.servicenow.servicenow.task_sla": ["model.servicenow.stg_servicenow__task_sla_base"], "source.servicenow.servicenow.sys_user": ["model.servicenow.stg_servicenow__sys_user_base"], "source.servicenow.servicenow.problem": ["model.servicenow.stg_servicenow__problem_base"], "source.servicenow.servicenow.problem_task": ["model.servicenow.stg_servicenow__problem_task_base"], "source.servicenow.servicenow.incident": ["model.servicenow.stg_servicenow__incident_base"], "source.servicenow.servicenow.change_task": ["model.servicenow.stg_servicenow__change_task_base"], "source.servicenow.servicenow.change_request": ["model.servicenow.stg_servicenow__change_request_base"], "source.servicenow.servicenow.core_company": ["model.servicenow.stg_servicenow__core_company_base"], "source.servicenow.servicenow.cmdb_ci": ["model.servicenow.stg_servicenow__cmdb_ci_base"], "source.servicenow.servicenow.cmdb_ci_service": ["model.servicenow.stg_servicenow__cmdb_ci_service_base"], "source.servicenow.servicenow.sys_user_group": ["model.servicenow.stg_servicenow__sys_user_group_base"]}, "group_map": {}, "saved_queries": {}, "semantic_models": {}} \ No newline at end of file +{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/manifest/v10.json", "dbt_version": "1.6.1", "generated_at": "2024-02-22T22:24:14.008662Z", "invocation_id": "7971e914-73f2-4b1f-8950-b1a9debcdda9", "env": {}, "project_name": "my_new_project", "project_id": "faebc42304447d4427374f806679ecb5", "user_id": "e607f749-4294-4b15-833b-0ae4a87d4d24", "send_anonymous_usage_stats": true, "adapter_type": "bigquery"}, "nodes": {"model.servicenow.servicenow__activity_summary": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_servicenow", "name": "servicenow__activity_summary", "resource_type": "model", "package_name": "servicenow", "path": "servicenow__activity_summary.sql", "original_file_path": "models/servicenow__activity_summary.sql", "unique_id": "model.servicenow.servicenow__activity_summary", "fqn": ["servicenow", "servicenow__activity_summary"], "alias": "servicenow__activity_summary", "checksum": {"name": "sha256", "checksum": "eb52e250eb509e3c7aad9f7dc8eb5d4377d6e54eb318fdb4d54efdd3682f4928"}, "config": {"enabled": true, "alias": null, "schema": "servicenow", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "Each record represents aggregate task, problem, change, incident, and change request data by varying grains including update date, status, priority, impact, and urgency.", "columns": {"task_updated_date": {"name": "task_updated_date", "description": "The day the task last got updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "task_state": {"name": "task_state", "description": "Current state or status of the task (e.g., in progress, on hold, closed).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "priority": {"name": "priority", "description": "Priority level assigned to the task. The priority field is automatically calculated based on the values of impact and urgency. This determines the sequence in which the record should be resolved.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impact": {"name": "impact", "description": "Assessment of the impact that completing or not completing the task may have. This is the business loss and potential damage (for example, financial, customer, regulation, security, reputation, brand) caused by the incident", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "urgency": {"name": "urgency", "description": "Level of urgency associated with the record. Speed at which the business expects the record to be resolved.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "Indicates the schema which the field originated. This is especially important when leveraging the union schema feature.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_active_tasks": {"name": "total_active_tasks", "description": "Total number of active tasks", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_active_problem_tasks": {"name": "total_active_problem_tasks", "description": "Total number of active problem tasks", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_active_change_tasks": {"name": "total_active_change_tasks", "description": "Total number of active change tasks", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_associated_problems": {"name": "total_associated_problems", "description": "Total number of problems", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_incidents_caused_by_problems": {"name": "total_incidents_caused_by_problems", "description": "Total number of incidents caused by associated problems", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_change_requests": {"name": "total_change_requests", "description": "Total number of change requests", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_closed_tasks": {"name": "total_closed_tasks", "description": "Total number of closed tasks", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "average_minutes_open_to_close": {"name": "average_minutes_open_to_close", "description": "Average number of minutes between the time that the task was opened to the time that the task was closed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_tasks_made_slas": {"name": "total_tasks_made_slas", "description": "The count of total tasks where is_made_sla = True", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "servicenow://models/servicenow.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "servicenow", "materialized": "table"}, "created_at": 1708640658.342572, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_servicenow`.`servicenow__activity_summary`", "raw_code": "with ticket_enhanced as (\n\n select * \n from {{ ref('servicenow__task_enhanced') }}\n)\n\nselect \n task_updated_date,\n task_state,\n priority,\n impact,\n urgency,\n source_relation,\n count(distinct case when is_task_active = true then task_id end) as total_active_tasks,\n count(distinct case when is_problem_task = true and is_task_active = true then task_id end) as total_active_problem_tasks,\n count(distinct case when is_change_task = true and is_task_active = true then task_id end) as total_active_change_tasks,\n count(distinct associated_problem_id) as total_associated_problems, \n sum(problem_related_incidents) as total_incidents_caused_by_problems,\n count(distinct associated_change_request_id) as total_change_requests,\n count(distinct case when task_closed_at is not null then task_id end) as total_closed_tasks,\n avg(task_minutes_open_to_close) as average_minutes_open_to_close,\n count(case when is_made_sla = true then 1 end) as total_tasks_made_slas\n\nfrom ticket_enhanced\ngroup by 1,2,3,4,5,6", "language": "sql", "refs": [{"name": "servicenow__task_enhanced", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.servicenow.servicenow__task_enhanced"]}, "compiled_path": "target/compiled/servicenow/models/servicenow__activity_summary.sql", "compiled": true, "compiled_code": "with ticket_enhanced as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_servicenow`.`servicenow__task_enhanced`\n)\n\nselect \n task_updated_date,\n task_state,\n priority,\n impact,\n urgency,\n source_relation,\n count(distinct case when is_task_active = true then task_id end) as total_active_tasks,\n count(distinct case when is_problem_task = true and is_task_active = true then task_id end) as total_active_problem_tasks,\n count(distinct case when is_change_task = true and is_task_active = true then task_id end) as total_active_change_tasks,\n count(distinct associated_problem_id) as total_associated_problems, \n sum(problem_related_incidents) as total_incidents_caused_by_problems,\n count(distinct associated_change_request_id) as total_change_requests,\n count(distinct case when task_closed_at is not null then task_id end) as total_closed_tasks,\n avg(task_minutes_open_to_close) as average_minutes_open_to_close,\n count(case when is_made_sla = true then 1 end) as total_tasks_made_slas\n\nfrom ticket_enhanced\ngroup by 1,2,3,4,5,6", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.servicenow.servicenow__task_enhanced": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_servicenow", "name": "servicenow__task_enhanced", "resource_type": "model", "package_name": "servicenow", "path": "servicenow__task_enhanced.sql", "original_file_path": "models/servicenow__task_enhanced.sql", "unique_id": "model.servicenow.servicenow__task_enhanced", "fqn": ["servicenow", "servicenow__task_enhanced"], "alias": "servicenow__task_enhanced", "checksum": {"name": "sha256", "checksum": "310a71b3f975f44ba0d04dd8654bef710c19afa225844c228a83b5824297c416"}, "config": {"enabled": true, "alias": null, "schema": "servicenow", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "Each record represents a task with additional information about its associated problem, incident, or change request. Finally, it contains user information for who opened, started, updated, reported, fixed, closed, requested, reported, or confirmed the task.", "columns": {"task_id": {"name": "task_id", "description": "Unique identifier for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "Indicates the schema which the field originated. This is especially important when leveraging the union schema feature.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_task_active": {"name": "is_task_active", "description": "Flag indicating whether the task is currently active or completed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "activity_due": {"name": "activity_due", "description": "The due date or time for completing the activity associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_assignee_list": {"name": "additional_assignee_list", "description": "List of additional users or assignees associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "approval": {"name": "approval", "description": "Information related to the approval status and process for the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "approval_history": {"name": "approval_history", "description": "History of approvals associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "approval_set": {"name": "approval_set", "description": "Set of approvals linked to the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "assigned_to_link": {"name": "assigned_to_link", "description": "Link to the user or group assigned to the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "assigned_to_value": {"name": "assigned_to_value", "description": "Value representing the user or group assigned to the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "assignment_group_link": {"name": "assignment_group_link", "description": "Link to the assignment group associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "assignment_group_value": {"name": "assignment_group_value", "description": "Value representing the assignment group associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_duration": {"name": "business_duration", "description": "The duration of the task in terms of business hours.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_service_link": {"name": "business_service_link", "description": "Link to the business service associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_service_value": {"name": "business_service_value", "description": "Value representing the business service associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "calendar_duration": {"name": "calendar_duration", "description": "The duration of the task in terms of calendar time.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "close_notes": {"name": "close_notes", "description": "Additional notes or comments recorded upon task closure.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "task_closed_at": {"name": "task_closed_at", "description": "Date and time when the task was closed or completed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "task_minutes_open_to_close": {"name": "task_minutes_open_to_close", "description": "The number of minutes from time that the task was opened to the time that the task was closed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "closed_by_link": {"name": "closed_by_link", "description": "Link to the user who closed or completed the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "closed_by_value": {"name": "closed_by_value", "description": "Value representing the user who closed or completed the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "comments": {"name": "comments", "description": "General comments or notes related to the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "comments_and_work_notes": {"name": "comments_and_work_notes", "description": "Combined information of comments and work notes recorded during the record's lifecycle.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_link": {"name": "company_link", "description": "Link to the company associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_value": {"name": "company_value", "description": "Value representing the company associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_name": {"name": "company_name", "description": "The full name of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contact_type": {"name": "contact_type", "description": "Type of contact associated with the record (e.g., customer, vendor).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "task_description": {"name": "task_description", "description": "Detailed description or information about the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "task_due_date_at": {"name": "task_due_date_at", "description": "The date by which the task is expected to be completed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_start": {"name": "expected_start", "description": "The expected start date or time for the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "task_follow_up_at": {"name": "task_follow_up_at", "description": "Timestamp of when follow up was applied to the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "group_list": {"name": "group_list", "description": "List of groups associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impact": {"name": "impact", "description": "Assessment of the impact that completing or not completing the task may have. This is the business loss and potential damage (for example, financial, customer, regulation, security, reputation, brand) caused by the incident", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "knowledge": {"name": "knowledge", "description": "Indication of whether the task is associated with knowledge or documentation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_made_sla": {"name": "is_made_sla", "description": "Indicates whether the task was completed within the agreed-upon Service Level Agreement (SLA).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "task_number": {"name": "task_number", "description": "Unique identifier or reference number assigned to the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "task_opened_at": {"name": "task_opened_at", "description": "Date and time when the task was initially opened.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "opened_by_link": {"name": "opened_by_link", "description": "Link to the user who initially opened the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "opened_by_value": {"name": "opened_by_value", "description": "Value representing the user who initially opened the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "task_order": {"name": "task_order", "description": "Order or sequence number associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "parent_link": {"name": "parent_link", "description": "Link to the parent task or record associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "parent_value": {"name": "parent_value", "description": "Value representing the parent task or record associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "priority": {"name": "priority", "description": "Priority level assigned to the task. The priority field is automatically calculated based on the values of impact and urgency. This determines the sequence in which the record should be resolved.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reassignment_count": {"name": "reassignment_count", "description": "Count of how many times the task has been reassigned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "route_reason": {"name": "route_reason", "description": "Reason or criteria for routing the task to a particular user or group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "short_description": {"name": "short_description", "description": "Brief or concise summary of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sla_due": {"name": "sla_due", "description": "Date and time by which the record is expected to meet the Service Level Agreement (SLA).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "task_state": {"name": "task_state", "description": "Current state or status of the task (e.g., in progress, on hold, closed).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_class_name": {"name": "sys_class_name", "description": "Name of the table in which the record is stored.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_created_by": {"name": "sys_created_by", "description": "User who initially created the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "task_created_at": {"name": "task_created_at", "description": "Date and time when the task record was initially created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_domain_link": {"name": "sys_domain_link", "description": "Link to the system domain associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_domain_path": {"name": "sys_domain_path", "description": "Path of the system domain associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_domain_value": {"name": "sys_domain_value", "description": "Value representing the system domain associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_updated_by": {"name": "sys_updated_by", "description": "User who last updated or modified the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "task_updated_at": {"name": "task_updated_at", "description": "Date and time when the task record was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "task_updated_date": {"name": "task_updated_date", "description": "The day the task last got updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "task_effective_number": {"name": "task_effective_number", "description": "Effective number or identifier associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "upon_approval": {"name": "upon_approval", "description": "Actions or steps to be taken upon the approval of the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "upon_reject": {"name": "upon_reject", "description": "Actions or steps to be taken upon the rejection of the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "urgency": {"name": "urgency", "description": "Level of urgency associated with the record. Speed at which the business expects the record to be resolved.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "watch_list": {"name": "watch_list", "description": "List of users or groups who are monitoring or \"watching\" the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_end": {"name": "work_end", "description": "Date and time when the work on the task is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_notes": {"name": "work_notes", "description": "Notes or comments recorded during the work on the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_notes_list": {"name": "work_notes_list", "description": "List of work notes recorded during the task's lifecycle.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_start": {"name": "work_start", "description": "Date and time when the work on the task is scheduled to start.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_category": {"name": "problem_category", "description": "The category of the problem.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cause_notes": {"name": "cause_notes", "description": "Additional notes or details about the cause of a particular issue or incident.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_confirmed_at": {"name": "problem_confirmed_at", "description": "The timestamp indicating when the problem was confirmed or acknowledged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_confirmed_by_value": {"name": "problem_confirmed_by_value", "description": "The name or identifier of the person or entity who confirmed or acknowledged the problem.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_first_reported_by_task_value": {"name": "problem_first_reported_by_task_value", "description": "Value representing the related task record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_fix_at": {"name": "problem_fix_at", "description": "The timestamp indicating when the problem is scheduled or planned to be fixed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_fix_by_value": {"name": "problem_fix_by_value", "description": "The name or identifier of the person or entity responsible for fixing the problem.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_fix_notes": {"name": "problem_fix_notes", "description": "Additional notes or details related to the fix for the problem.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_major_problem": {"name": "is_major_problem", "description": "Indicates whether the issue is categorized as a major problem.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_state": {"name": "problem_state", "description": "The current state or status of the problem or issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_related_incidents": {"name": "problem_related_incidents", "description": "Number of incidents that are related to the current problem.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_resolution_code": {"name": "problem_resolution_code", "description": "The code or identifier associated with the resolution of the problem.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_resolved_at": {"name": "problem_resolved_at", "description": "The timestamp indicating when the problem was resolved.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_resolved_by_value": {"name": "problem_resolved_by_value", "description": "The name or identifier of the person or entity who resolved the problem.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_subcategory": {"name": "problem_subcategory", "description": "The specific subcategory or classification of the issue, providing more detailed information about its nature.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_created_at": {"name": "problem_created_at", "description": "Date and time when the problem record was initially created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_updated_at": {"name": "problem_updated_at", "description": "Date and time when the problem record was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "workaround_applied": {"name": "workaround_applied", "description": "Indicates whether a workaround has been applied to address the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_task_cause_code": {"name": "problem_task_cause_code", "description": "The code or identifier associated with the cause of the issue or problem.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_task_close_code": {"name": "problem_task_close_code", "description": "The code or identifier associated with the closure or resolution of the problem task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_task_type": {"name": "problem_task_type", "description": "The type or category of the task associated with the problem or issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_task_started_at": {"name": "problem_task_started_at", "description": "The timestamp indicating when the issue or incident was initiated or started.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "started_by_value": {"name": "started_by_value", "description": "The name or identifier of the person or entity who initiated or started the issue or incident.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_task_type": {"name": "change_task_type", "description": "The type or category of the task associated with the change request or change record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_task_close_code": {"name": "change_task_close_code", "description": "The code or identifier associated with the closure or resolution of the change task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_task_created_from": {"name": "change_task_created_from", "description": "Information about the source or origin of the current record, indicating how it was created or generated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_change_on_hold": {"name": "is_change_on_hold", "description": "Indicates whether the change task is currently on hold or paused.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_on_hold_reason": {"name": "change_on_hold_reason", "description": "The reason or rationale for placing the associated record on hold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_task_planned_end_date": {"name": "change_task_planned_end_date", "description": "The planned or scheduled end date for the change request or change record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_task_planned_start_date": {"name": "change_task_planned_start_date", "description": "The planned or scheduled start date for the change request or change record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_request_category": {"name": "change_request_category", "description": "The category of the change.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_plan": {"name": "change_plan", "description": "Information about the plan or process for implementing the changes associated with the current record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_request_close_code": {"name": "change_request_close_code", "description": "The code or identifier associated with the closure or resolution.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_request_end_date": {"name": "change_request_end_date", "description": "The end date for the implementation or execution associated with the current record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_request_implementation_plan": {"name": "change_request_implementation_plan", "description": "Information about the plan or process for implementing the changes associated with the current record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_request_justification": {"name": "change_request_justification", "description": "The reasoning or justification behind the changes associated with the current record, providing context or explanation for the modifications made.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_change_request_on_hold": {"name": "is_change_request_on_hold", "description": "Indicates whether the change is currently on hold or paused.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_request_on_hold_reason": {"name": "change_request_on_hold_reason", "description": "The reason or rationale for placing the change on hold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_request_phase": {"name": "change_request_phase", "description": "The phase or stage of the change request or change record within the change management process, indicating its progress or status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_request_phase_state": {"name": "change_request_phase_state", "description": "The current state or status of the phase associated with the change request or change record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_request_reason": {"name": "change_request_reason", "description": "The reason or rationale behind the changes associated with the current record, providing context or explanation for the modifications made.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_requested_by_value": {"name": "change_requested_by_value", "description": "The name or identifier of the person or entity who requested or initiated the changes associated with the current record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_requested_by_date": {"name": "change_requested_by_date", "description": "The date when the changes associated with the current record were requested or initiated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_request_review_date": {"name": "change_request_review_date", "description": "The date when the change request was reviewed or evaluated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_request_review_status": {"name": "change_request_review_status", "description": "The status or outcome of the review process for the change request associated with the current record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_request_risk": {"name": "change_request_risk", "description": "The level of risk associated with the changes, indicating the potential impact or consequences of implementing the modifications outlined in the current record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_request_scope": {"name": "change_request_scope", "description": "The scope or extent of the changes outlined in the current record, specifying the areas or components affected by the modifications.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_request_start_date": {"name": "change_request_start_date", "description": "The requested start date for the implementation or execution of the changes associated with the current record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_request_created_at": {"name": "change_request_created_at", "description": "Date and time when the record was initially created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_request_updated_at": {"name": "change_request_updated_at", "description": "Date and time when the record was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_request_test_plan": {"name": "change_request_test_plan", "description": "Information about the plan or process for testing the changes requested by the change request of this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_request_type": {"name": "change_request_type", "description": "The type or category of the changes outlined in the current record, indicating the nature or purpose of the modifications.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_change_request_unauthorized": {"name": "is_change_request_unauthorized", "description": "Indicates whether the changes associated with the current record were made without proper authorization or approval.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_problem_task": {"name": "is_problem_task", "description": "A boolean of whether the task is a problem task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_change_task": {"name": "is_change_task", "description": "A boolean of whether the task is a change task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "creator_email": {"name": "creator_email", "description": "Email address associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "creator_manager_value": {"name": "creator_manager_value", "description": "The name or identifier of the user's manager or supervisor.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "creator_department_value": {"name": "creator_department_value", "description": "Value representing the department associated with the system user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "creator_name": {"name": "creator_name", "description": "The system username or identifier for the user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "creator_roles": {"name": "creator_roles", "description": "The roles assigned to the user in the system or organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updater_email": {"name": "updater_email", "description": "Email address associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updater_manager_value": {"name": "updater_manager_value", "description": "The name or identifier of the user's manager or supervisor.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updater_department_value": {"name": "updater_department_value", "description": "Value representing the department associated with the system user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updater_name": {"name": "updater_name", "description": "The system username or identifier for the user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "updater_roles": {"name": "updater_roles", "description": "The roles assigned to the user in the system or organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "opener_manager_value": {"name": "opener_manager_value", "description": "The name or identifier of the user's manager or supervisor.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "opener_email": {"name": "opener_email", "description": "Email address associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "opener_department_value": {"name": "opener_department_value", "description": "Value representing the department associated with the system user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "opener_name": {"name": "opener_name", "description": "The system username or identifier for the user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "opener_roles": {"name": "opener_roles", "description": "The roles assigned to the user in the system or organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "assignee_email": {"name": "assignee_email", "description": "Email address associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "assignee_manager_value": {"name": "assignee_manager_value", "description": "The name or identifier of the user's manager or supervisor.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "assignee_department_value": {"name": "assignee_department_value", "description": "Value representing the department associated with the system user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "assignee_name": {"name": "assignee_name", "description": "The system username or identifier for the user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "assignee_roles": {"name": "assignee_roles", "description": "The roles assigned to the user in the system or organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "closer_email": {"name": "closer_email", "description": "Email address associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "closer_manager_value": {"name": "closer_manager_value", "description": "The name or identifier of the user's manager or supervisor.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "closer_department_value": {"name": "closer_department_value", "description": "Value representing the department associated with the system user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "closer_name": {"name": "closer_name", "description": "The system username or identifier for the user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "closer_roles": {"name": "closer_roles", "description": "The roles assigned to the user in the system or organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_task_starter_email": {"name": "problem_task_starter_email", "description": "Email address associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_task_starter_manager_value": {"name": "problem_task_starter_manager_value", "description": "The name or identifier of the user's manager or supervisor.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_task_starter_department_value": {"name": "problem_task_starter_department_value", "description": "Value representing the department associated with the system user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_task_starter_name": {"name": "problem_task_starter_name", "description": "The system username or identifier for the user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_task_starter_roles": {"name": "problem_task_starter_roles", "description": "The roles assigned to the user in the system or organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "associated_problem_id": {"name": "associated_problem_id", "description": "The associated problem with this task; the sys_id from the problem object.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_confirmer_email": {"name": "problem_confirmer_email", "description": "Email address associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_confirmer_manager_value": {"name": "problem_confirmer_manager_value", "description": "The name or identifier of the user's manager or supervisor.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_confirmer_department_value": {"name": "problem_confirmer_department_value", "description": "Value representing the department associated with the system user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_confirmer_name": {"name": "problem_confirmer_name", "description": "The system username or identifier for the user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_confirmer_roles": {"name": "problem_confirmer_roles", "description": "The roles assigned to the user in the system or organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_reporter_email": {"name": "problem_reporter_email", "description": "Email address associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_reporter_manager_value": {"name": "problem_reporter_manager_value", "description": "The name or identifier of the user's manager or supervisor.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_reporter_department_value": {"name": "problem_reporter_department_value", "description": "Value representing the department associated with the system user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_reporter_name": {"name": "problem_reporter_name", "description": "The system username or identifier for the user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_reporter_roles": {"name": "problem_reporter_roles", "description": "The roles assigned to the user in the system or organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_fixer_email": {"name": "problem_fixer_email", "description": "Email address associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_fixer_manager_value": {"name": "problem_fixer_manager_value", "description": "The name or identifier of the user's manager or supervisor.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_fixer_department_value": {"name": "problem_fixer_department_value", "description": "Value representing the department associated with the system user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_fixer_name": {"name": "problem_fixer_name", "description": "The system username or identifier for the user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_fixer_roles": {"name": "problem_fixer_roles", "description": "The roles assigned to the user in the system or organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_is_known_error": {"name": "problem_is_known_error", "description": "Indicates whether the issue is a known error with a documented resolution.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_resolver_email": {"name": "problem_resolver_email", "description": "Email address associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_resolver_manager_value": {"name": "problem_resolver_manager_value", "description": "The name or identifier of the user's manager or supervisor.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_resolver_department_value": {"name": "problem_resolver_department_value", "description": "Value representing the department associated with the system user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_resolver_name": {"name": "problem_resolver_name", "description": "The system username or identifier for the user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_resolver_roles": {"name": "problem_resolver_roles", "description": "The roles assigned to the user in the system or organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_requester_email": {"name": "change_requester_email", "description": "Email address associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_requester_manager_value": {"name": "change_requester_manager_value", "description": "The name or identifier of the user's manager or supervisor.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_requester_department_value": {"name": "change_requester_department_value", "description": "Value representing the department associated with the system user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_requester_name": {"name": "change_requester_name", "description": "The system username or identifier for the user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_requester_roles": {"name": "change_requester_roles", "description": "The roles assigned to the user in the system or organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "associated_change_request_id": {"name": "associated_change_request_id", "description": "The associated change request with this task; the sys_id from the change request object.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cmdb_ci_link": {"name": "cmdb_ci_link", "description": "Value representing the configuration item (CI) associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cmdb_ci_value": {"name": "cmdb_ci_value", "description": "Value representing the configuration item (CI) associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cmdb_ci_name": {"name": "cmdb_ci_name", "description": "Value representing the configuration item (CI) associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "assignment_group_name": {"name": "assignment_group_name", "description": "Value representing the configuration item (CI) associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_service_name": {"name": "business_service_name", "description": "Value representing the configuration item (CI) associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "servicenow://models/servicenow.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "servicenow", "materialized": "table"}, "created_at": 1708640658.336928, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_servicenow`.`servicenow__task_enhanced`", "raw_code": "with task as (\n\n select *\n from {{ ref('stg_servicenow__task') }}\n),\n\nproblem_task as (\n \n select *\n from {{ ref('stg_servicenow__problem_task') }}\n),\n\nproblem as (\n \n select *\n from {{ ref('stg_servicenow__problem') }}\n),\n\nchange_task as (\n \n select *\n from {{ ref('stg_servicenow__change_task') }}\n),\n\nchange_request as (\n \n select *\n from {{ ref('stg_servicenow__change_request') }}\n),\n\nsys_user as (\n \n select *\n from {{ ref('stg_servicenow__sys_user') }}\n),\n\nsys_user_group as (\n \n select *\n from {{ ref('stg_servicenow__sys_user_group') }}\n),\n\ncore_company as (\n \n select *\n from {{ ref('stg_servicenow__core_company') }}\n),\n\ncmdb_ci as (\n\n select *\n from {{ ref('stg_servicenow__cmdb_ci') }}\n),\n\ncmdb_ci_service as (\n\n select *\n from {{ ref('stg_servicenow__cmdb_ci_service') }}\n),\n\ntask_enhanced as (\n\nselect \n\n task.task_id,\n task.is_task_active,\n task.task_description,\n task.activity_due,\n task.priority,\n task.impact,\n task.urgency,\n task.task_state,\n task.task_number,\n task.task_order,\n cast( (case when problem_task.problem_task_id is not null \n then true \n else false \n end) as {{ dbt.type_boolean() }}) as is_problem_task,\n cast( (case when change_task.change_task_id is not null \n then true \n else false \n end) as {{ dbt.type_boolean() }}) as is_change_task,\n task.task_created_at,\n task.sys_created_by,\n task.cmdb_ci_link,\n task.cmdb_ci_value,\n cmdb_ci.cmdb_ci_name,\n creator.email as creator_email,\n creator.manager_value as creator_manager_value,\n creator.department_value as creator_department_value,\n creator.sys_user_name as creator_name,\n creator.roles as creator_roles,\n task.task_updated_at,\n cast ({{ dbt.date_trunc('day', 'task.task_updated_at') }} as date) as task_updated_date,\n task.sys_updated_by,\n updater.email as updater_email,\n updater.manager_value as updater_manager_value,\n updater.department_value as updater_department_value,\n updater.sys_user_name as updater_name,\n updater.roles as updater_roles,\n task.task_opened_at,\n task.opened_by_link,\n task.opened_by_value, \n opener.manager_value as opener_manager_value,\n opener.email as opener_email,\n opener.department_value as opener_department_value,\n opener.sys_user_name as opener_name,\n opener.roles as opener_roles,\n task.assigned_to_link, \n task.assigned_to_value,\n assignee.email as assignee_email,\n assignee.manager_value as assignee_manager_value,\n assignee.department_value as assignee_department_value,\n assignee.sys_user_name as assignee_name,\n assignee.roles as assignee_roles,\n task.task_closed_at,\n {{ dbt.datediff(\"task.task_opened_at\", \"task.task_closed_at\", 'minute') }} as task_minutes_open_to_close,\n task.closed_by_link,\n task.closed_by_value,\n closer.email as closer_email,\n closer.manager_value as closer_manager_value,\n closer.department_value as closer_department_value,\n closer.sys_user_name as closer_name,\n closer.roles as closer_roles,\n task.task_effective_number,\n task.additional_assignee_list,\n task.approval,\n task.approval_history,\n task.approval_set,\n task.assignment_group_link,\n task.assignment_group_value,\n assignment_group.sys_user_group_name as assignment_group_name,\n task.business_duration,\n task.calendar_duration,\n task.business_service_link,\n task.business_service_value,\n business_service.cmdb_ci_service_name as business_service_name,\n task.close_notes,\n task.comments,\n task.comments_and_work_notes,\n task.company_link,\n task.company_value, \n core_company.company_name,\n task.contact_type, \n task.task_due_date_at,\n task.expected_start,\n task.task_follow_up_at,\n task.group_list,\n task.knowledge,\n task.is_made_sla,\n task.sla_due,\n task.parent_link, \n task.parent_value,\n task.reassignment_count,\n task.route_reason,\n task.short_description,\n task.sys_class_name,\n task.sys_domain_link,\n task.sys_domain_path,\n task.sys_domain_value,\n task.upon_approval,\n task.upon_reject,\n task.watch_list,\n task.work_start,\n task.work_end,\n task.work_notes,\n task.work_notes_list,\n problem_task.problem_task_cause_code,\n problem_task.problem_task_close_code,\n problem_task.problem_task_type,\n problem_task.problem_task_started_at,\n problem_task.started_by_value,\n problem_task_starter.email as problem_task_starter_email,\n problem_task_starter.manager_value as problem_task_starter_manager_value,\n problem_task_starter.department_value as problem_task_starter_department_value,\n problem_task_starter.sys_user_name as problem_task_starter_name,\n problem_task_starter.roles as problem_task_starter_roles, \n problem.problem_id as associated_problem_id,\n problem.problem_category,\n problem.cause_notes,\n problem.problem_confirmed_at,\n problem.problem_confirmed_by_value,\n problem_confirmer.email as problem_confirmer_email,\n problem_confirmer.manager_value as problem_confirmer_manager_value,\n problem_confirmer.department_value as problem_confirmer_department_value,\n problem_confirmer.sys_user_name as problem_confirmer_name,\n problem_confirmer.roles as problem_confirmer_roles,\n problem.problem_first_reported_by_task_value,\n problem_reporter.email as problem_reporter_email,\n problem_reporter.manager_value as problem_reporter_manager_value,\n problem_reporter.department_value as problem_reporter_department_value,\n problem_reporter.sys_user_name as problem_reporter_name,\n problem_reporter.roles as problem_reporter_roles,\n problem.problem_fix_at,\n problem.problem_fix_by_value,\n problem_fixer.email as problem_fixer_email,\n problem_fixer.manager_value as problem_fixer_manager_value,\n problem_fixer.department_value as problem_fixer_department_value,\n problem_fixer.sys_user_name as problem_fixer_name,\n problem_fixer.roles as problem_fixer_roles,\n problem.problem_fix_notes,\n problem.is_known_error as problem_is_known_error,\n problem.is_major_problem,\n problem.problem_state,\n problem.problem_related_incidents,\n problem.problem_resolution_code,\n problem.problem_resolved_at,\n problem.problem_resolved_by_value,\n problem.workaround_applied,\n problem_resolver.email as problem_resolver_email,\n problem_resolver.manager_value as problem_resolver_manager_value,\n problem_resolver.department_value as problem_resolver_department_value,\n problem_resolver.sys_user_name as problem_resolver_name,\n problem_resolver.roles as problem_resolver_roles,\n problem.problem_subcategory,\n problem.problem_created_at,\n problem.problem_updated_at,\n change_task.change_task_type,\n change_task.change_task_close_code,\n change_task.change_task_created_from,\n change_task.is_change_on_hold,\n change_task.change_on_hold_reason,\n change_task.change_task_planned_end_date,\n change_task.change_task_planned_start_date,\n change_request.change_request_id as associated_change_request_id,\n change_request.change_request_created_at,\n change_request.change_request_updated_at,\n change_request.change_request_category,\n change_request.change_plan,\n change_request.change_request_close_code,\n change_request.change_request_end_date,\n change_request.change_request_implementation_plan,\n change_request.change_request_justification,\n change_request.is_change_request_on_hold,\n change_request.change_request_on_hold_reason,\n change_request.change_request_phase,\n change_request.change_request_phase_state,\n change_request.change_request_reason,\n change_request.change_requested_by_date,\n change_request.change_requested_by_value,\n change_requester.email as change_requester_email,\n change_requester.manager_value as change_requester_manager_value,\n change_requester.department_value as change_requester_department_value,\n change_requester.sys_user_name as change_requester_name,\n change_requester.roles as change_requester_roles,\n change_request.change_request_review_date,\n change_request.change_request_review_status,\n change_request.change_request_risk,\n change_request.change_request_scope,\n change_request.change_request_start_date,\n change_request.change_request_test_plan,\n change_request.change_request_type,\n change_request.is_change_request_unauthorized,\n task.source_relation\n\nfrom task\nleft join core_company\n on task.company_value = core_company.core_company_id\nleft join problem_task\n on task.task_id = problem_task.problem_task_id\nleft join sys_user problem_task_starter\n on problem_task.started_by_value = problem_task_starter.user_id\nleft join problem\n on problem_task.problem_value = problem.problem_id\nleft join sys_user problem_confirmer\n on problem.problem_confirmed_by_value = problem_confirmer.user_id\nleft join sys_user problem_reporter\n on problem.problem_first_reported_by_task_value = problem_reporter.user_id\nleft join sys_user problem_fixer\n on problem.problem_fix_by_value = problem_fixer.user_id\nleft join sys_user problem_resolver\n on problem.problem_resolved_by_value = problem_resolver.user_id\nleft join change_task\n on task.task_id = change_task.change_task_id\nleft join change_request\n on change_task.change_request_value = change_request.change_request_id\nleft join sys_user change_requester\n on change_request.change_requested_by_value = change_requester.user_id\nleft join sys_user assignee\n on task.assigned_to_value = assignee.user_id\nleft join sys_user closer \n on task.closed_by_value = closer.user_id\nleft join sys_user opener\n on task.opened_by_value = opener.user_id\nleft join sys_user creator\n on task.sys_created_by = creator.user_id\nleft join sys_user updater\n on task.sys_updated_by = updater.user_id\nleft join sys_user_group assignment_group\n on task.assignment_group_value = assignment_group.sys_user_group_id\nleft join cmdb_ci\n on task.cmdb_ci_value = cmdb_ci.cmdb_ci_id\nleft join cmdb_ci_service business_service\n on task.business_service_value = business_service.cmdb_ci_service_id\n)\n\nselect *\nfrom task_enhanced", "language": "sql", "refs": [{"name": "stg_servicenow__task", "package": null, "version": null}, {"name": "stg_servicenow__problem_task", "package": null, "version": null}, {"name": "stg_servicenow__problem", "package": null, "version": null}, {"name": "stg_servicenow__change_task", "package": null, "version": null}, {"name": "stg_servicenow__change_request", "package": null, "version": null}, {"name": "stg_servicenow__sys_user", "package": null, "version": null}, {"name": "stg_servicenow__sys_user_group", "package": null, "version": null}, {"name": "stg_servicenow__core_company", "package": null, "version": null}, {"name": "stg_servicenow__cmdb_ci", "package": null, "version": null}, {"name": "stg_servicenow__cmdb_ci_service", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.date_trunc", "macro.dbt.datediff"], "nodes": ["model.servicenow.stg_servicenow__task", "model.servicenow.stg_servicenow__problem_task", "model.servicenow.stg_servicenow__problem", "model.servicenow.stg_servicenow__change_task", "model.servicenow.stg_servicenow__change_request", "model.servicenow.stg_servicenow__sys_user", "model.servicenow.stg_servicenow__sys_user_group", "model.servicenow.stg_servicenow__core_company", "model.servicenow.stg_servicenow__cmdb_ci", "model.servicenow.stg_servicenow__cmdb_ci_service"]}, "compiled_path": "target/compiled/servicenow/models/servicenow__task_enhanced.sql", "compiled": true, "compiled_code": "with task as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_stg_servicenow`.`stg_servicenow__task`\n),\n\nproblem_task as (\n \n select *\n from `dbt-package-testing`.`zz_dbt_renee_stg_servicenow`.`stg_servicenow__problem_task`\n),\n\nproblem as (\n \n select *\n from `dbt-package-testing`.`zz_dbt_renee_stg_servicenow`.`stg_servicenow__problem`\n),\n\nchange_task as (\n \n select *\n from `dbt-package-testing`.`zz_dbt_renee_stg_servicenow`.`stg_servicenow__change_task`\n),\n\nchange_request as (\n \n select *\n from `dbt-package-testing`.`zz_dbt_renee_stg_servicenow`.`stg_servicenow__change_request`\n),\n\nsys_user as (\n \n select *\n from `dbt-package-testing`.`zz_dbt_renee_stg_servicenow`.`stg_servicenow__sys_user`\n),\n\nsys_user_group as (\n \n select *\n from `dbt-package-testing`.`zz_dbt_renee_stg_servicenow`.`stg_servicenow__sys_user_group`\n),\n\ncore_company as (\n \n select *\n from `dbt-package-testing`.`zz_dbt_renee_stg_servicenow`.`stg_servicenow__core_company`\n),\n\ncmdb_ci as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_stg_servicenow`.`stg_servicenow__cmdb_ci`\n),\n\ncmdb_ci_service as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_stg_servicenow`.`stg_servicenow__cmdb_ci_service`\n),\n\ntask_enhanced as (\n\nselect \n\n task.task_id,\n task.is_task_active,\n task.task_description,\n task.activity_due,\n task.priority,\n task.impact,\n task.urgency,\n task.task_state,\n task.task_number,\n task.task_order,\n cast( (case when problem_task.problem_task_id is not null \n then true \n else false \n end) as BOOLEAN) as is_problem_task,\n cast( (case when change_task.change_task_id is not null \n then true \n else false \n end) as BOOLEAN) as is_change_task,\n task.task_created_at,\n task.sys_created_by,\n task.cmdb_ci_link,\n task.cmdb_ci_value,\n cmdb_ci.cmdb_ci_name,\n creator.email as creator_email,\n creator.manager_value as creator_manager_value,\n creator.department_value as creator_department_value,\n creator.sys_user_name as creator_name,\n creator.roles as creator_roles,\n task.task_updated_at,\n cast (timestamp_trunc(\n cast(task.task_updated_at as timestamp),\n day\n ) as date) as task_updated_date,\n task.sys_updated_by,\n updater.email as updater_email,\n updater.manager_value as updater_manager_value,\n updater.department_value as updater_department_value,\n updater.sys_user_name as updater_name,\n updater.roles as updater_roles,\n task.task_opened_at,\n task.opened_by_link,\n task.opened_by_value, \n opener.manager_value as opener_manager_value,\n opener.email as opener_email,\n opener.department_value as opener_department_value,\n opener.sys_user_name as opener_name,\n opener.roles as opener_roles,\n task.assigned_to_link, \n task.assigned_to_value,\n assignee.email as assignee_email,\n assignee.manager_value as assignee_manager_value,\n assignee.department_value as assignee_department_value,\n assignee.sys_user_name as assignee_name,\n assignee.roles as assignee_roles,\n task.task_closed_at,\n \n\n datetime_diff(\n cast(task.task_closed_at as datetime),\n cast(task.task_opened_at as datetime),\n minute\n )\n\n as task_minutes_open_to_close,\n task.closed_by_link,\n task.closed_by_value,\n closer.email as closer_email,\n closer.manager_value as closer_manager_value,\n closer.department_value as closer_department_value,\n closer.sys_user_name as closer_name,\n closer.roles as closer_roles,\n task.task_effective_number,\n task.additional_assignee_list,\n task.approval,\n task.approval_history,\n task.approval_set,\n task.assignment_group_link,\n task.assignment_group_value,\n assignment_group.sys_user_group_name as assignment_group_name,\n task.business_duration,\n task.calendar_duration,\n task.business_service_link,\n task.business_service_value,\n business_service.cmdb_ci_service_name as business_service_name,\n task.close_notes,\n task.comments,\n task.comments_and_work_notes,\n task.company_link,\n task.company_value, \n core_company.company_name,\n task.contact_type, \n task.task_due_date_at,\n task.expected_start,\n task.task_follow_up_at,\n task.group_list,\n task.knowledge,\n task.is_made_sla,\n task.sla_due,\n task.parent_link, \n task.parent_value,\n task.reassignment_count,\n task.route_reason,\n task.short_description,\n task.sys_class_name,\n task.sys_domain_link,\n task.sys_domain_path,\n task.sys_domain_value,\n task.upon_approval,\n task.upon_reject,\n task.watch_list,\n task.work_start,\n task.work_end,\n task.work_notes,\n task.work_notes_list,\n problem_task.problem_task_cause_code,\n problem_task.problem_task_close_code,\n problem_task.problem_task_type,\n problem_task.problem_task_started_at,\n problem_task.started_by_value,\n problem_task_starter.email as problem_task_starter_email,\n problem_task_starter.manager_value as problem_task_starter_manager_value,\n problem_task_starter.department_value as problem_task_starter_department_value,\n problem_task_starter.sys_user_name as problem_task_starter_name,\n problem_task_starter.roles as problem_task_starter_roles, \n problem.problem_id as associated_problem_id,\n problem.problem_category,\n problem.cause_notes,\n problem.problem_confirmed_at,\n problem.problem_confirmed_by_value,\n problem_confirmer.email as problem_confirmer_email,\n problem_confirmer.manager_value as problem_confirmer_manager_value,\n problem_confirmer.department_value as problem_confirmer_department_value,\n problem_confirmer.sys_user_name as problem_confirmer_name,\n problem_confirmer.roles as problem_confirmer_roles,\n problem.problem_first_reported_by_task_value,\n problem_reporter.email as problem_reporter_email,\n problem_reporter.manager_value as problem_reporter_manager_value,\n problem_reporter.department_value as problem_reporter_department_value,\n problem_reporter.sys_user_name as problem_reporter_name,\n problem_reporter.roles as problem_reporter_roles,\n problem.problem_fix_at,\n problem.problem_fix_by_value,\n problem_fixer.email as problem_fixer_email,\n problem_fixer.manager_value as problem_fixer_manager_value,\n problem_fixer.department_value as problem_fixer_department_value,\n problem_fixer.sys_user_name as problem_fixer_name,\n problem_fixer.roles as problem_fixer_roles,\n problem.problem_fix_notes,\n problem.is_known_error as problem_is_known_error,\n problem.is_major_problem,\n problem.problem_state,\n problem.problem_related_incidents,\n problem.problem_resolution_code,\n problem.problem_resolved_at,\n problem.problem_resolved_by_value,\n problem.workaround_applied,\n problem_resolver.email as problem_resolver_email,\n problem_resolver.manager_value as problem_resolver_manager_value,\n problem_resolver.department_value as problem_resolver_department_value,\n problem_resolver.sys_user_name as problem_resolver_name,\n problem_resolver.roles as problem_resolver_roles,\n problem.problem_subcategory,\n problem.problem_created_at,\n problem.problem_updated_at,\n change_task.change_task_type,\n change_task.change_task_close_code,\n change_task.change_task_created_from,\n change_task.is_change_on_hold,\n change_task.change_on_hold_reason,\n change_task.change_task_planned_end_date,\n change_task.change_task_planned_start_date,\n change_request.change_request_id as associated_change_request_id,\n change_request.change_request_created_at,\n change_request.change_request_updated_at,\n change_request.change_request_category,\n change_request.change_plan,\n change_request.change_request_close_code,\n change_request.change_request_end_date,\n change_request.change_request_implementation_plan,\n change_request.change_request_justification,\n change_request.is_change_request_on_hold,\n change_request.change_request_on_hold_reason,\n change_request.change_request_phase,\n change_request.change_request_phase_state,\n change_request.change_request_reason,\n change_request.change_requested_by_date,\n change_request.change_requested_by_value,\n change_requester.email as change_requester_email,\n change_requester.manager_value as change_requester_manager_value,\n change_requester.department_value as change_requester_department_value,\n change_requester.sys_user_name as change_requester_name,\n change_requester.roles as change_requester_roles,\n change_request.change_request_review_date,\n change_request.change_request_review_status,\n change_request.change_request_risk,\n change_request.change_request_scope,\n change_request.change_request_start_date,\n change_request.change_request_test_plan,\n change_request.change_request_type,\n change_request.is_change_request_unauthorized,\n task.source_relation\n\nfrom task\nleft join core_company\n on task.company_value = core_company.core_company_id\nleft join problem_task\n on task.task_id = problem_task.problem_task_id\nleft join sys_user problem_task_starter\n on problem_task.started_by_value = problem_task_starter.user_id\nleft join problem\n on problem_task.problem_value = problem.problem_id\nleft join sys_user problem_confirmer\n on problem.problem_confirmed_by_value = problem_confirmer.user_id\nleft join sys_user problem_reporter\n on problem.problem_first_reported_by_task_value = problem_reporter.user_id\nleft join sys_user problem_fixer\n on problem.problem_fix_by_value = problem_fixer.user_id\nleft join sys_user problem_resolver\n on problem.problem_resolved_by_value = problem_resolver.user_id\nleft join change_task\n on task.task_id = change_task.change_task_id\nleft join change_request\n on change_task.change_request_value = change_request.change_request_id\nleft join sys_user change_requester\n on change_request.change_requested_by_value = change_requester.user_id\nleft join sys_user assignee\n on task.assigned_to_value = assignee.user_id\nleft join sys_user closer \n on task.closed_by_value = closer.user_id\nleft join sys_user opener\n on task.opened_by_value = opener.user_id\nleft join sys_user creator\n on task.sys_created_by = creator.user_id\nleft join sys_user updater\n on task.sys_updated_by = updater.user_id\nleft join sys_user_group assignment_group\n on task.assignment_group_value = assignment_group.sys_user_group_id\nleft join cmdb_ci\n on task.cmdb_ci_value = cmdb_ci.cmdb_ci_id\nleft join cmdb_ci_service business_service\n on task.business_service_value = business_service.cmdb_ci_service_id\n)\n\nselect *\nfrom task_enhanced", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.servicenow.stg_servicenow__task": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_stg_servicenow", "name": "stg_servicenow__task", "resource_type": "model", "package_name": "servicenow", "path": "staging/stg_servicenow__task.sql", "original_file_path": "models/staging/stg_servicenow__task.sql", "unique_id": "model.servicenow.stg_servicenow__task", "fqn": ["servicenow", "staging", "stg_servicenow__task"], "alias": "stg_servicenow__task", "checksum": {"name": "sha256", "checksum": "2ce99e1f18f785f29967470f80a3ca70f280b5c9ffb83b78d1f113b72a522a58"}, "config": {"enabled": true, "alias": null, "schema": "stg_servicenow", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "Staging table containing all tasks related information. A task represents a unit of work that needs to be accomplished or tracked within the ServiceNow system. It can be related to various processes, such as incident resolution, change management, or other workflows.", "columns": {"task_id": {"name": "task_id", "description": "Unique identifier for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "Indicates the schema which the field originated. This is especially important when leveraging the union schema feature.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates whether the task record has been marked as deleted by the Fivetran connector.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Indicates whether the task record has been synchronized by the Fivetran connector.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_task_active": {"name": "is_task_active", "description": "Flag indicating whether the task is currently active or completed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "activity_due": {"name": "activity_due", "description": "The due date or time for completing the activity associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_assignee_list": {"name": "additional_assignee_list", "description": "List of additional users or assignees associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "approval": {"name": "approval", "description": "Information related to the approval status and process for the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "approval_history": {"name": "approval_history", "description": "History of approvals associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "approval_set": {"name": "approval_set", "description": "Set of approvals linked to the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "assigned_to_link": {"name": "assigned_to_link", "description": "Link to the user or group assigned to the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "assigned_to_value": {"name": "assigned_to_value", "description": "Value representing the user or group assigned to the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "assignment_group_link": {"name": "assignment_group_link", "description": "Link to the assignment group associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "assignment_group_value": {"name": "assignment_group_value", "description": "Value representing the assignment group associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_duration": {"name": "business_duration", "description": "The duration of the task in terms of business hours.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_service_link": {"name": "business_service_link", "description": "Link to the business service associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_service_value": {"name": "business_service_value", "description": "Value representing the business service associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "calendar_duration": {"name": "calendar_duration", "description": "The duration of the task in terms of calendar time.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "close_notes": {"name": "close_notes", "description": "Additional notes or comments recorded upon task closure.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "task_closed_at": {"name": "task_closed_at", "description": "Date and time when the task was closed or completed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "closed_by_link": {"name": "closed_by_link", "description": "Link to the user who closed or completed the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "closed_by_value": {"name": "closed_by_value", "description": "Value representing the user who closed or completed the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cmdb_ci_link": {"name": "cmdb_ci_link", "description": "Link to the configuration item (CI) associated with the record in the Configuration Management Database (CMDB).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cmdb_ci_value": {"name": "cmdb_ci_value", "description": "Value representing the configuration item (CI) associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "comments": {"name": "comments", "description": "General comments or notes related to the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "comments_and_work_notes": {"name": "comments_and_work_notes", "description": "Combined information of comments and work notes recorded during the record's lifecycle.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_link": {"name": "company_link", "description": "Link to the company associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_value": {"name": "company_value", "description": "Value representing the company associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contact_type": {"name": "contact_type", "description": "Type of contact associated with the record (e.g., customer, vendor).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_link": {"name": "contract_link", "description": "Link to the contract associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_value": {"name": "contract_value", "description": "Value representing the contract associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "correlation_display": {"name": "correlation_display", "description": "Display information related to correlation of the record with other records.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "correlation_id": {"name": "correlation_id", "description": "Identifier used for correlating the record with related records.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "delivery_plan_link": {"name": "delivery_plan_link", "description": "Link to the delivery plan associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "delivery_plan_value": {"name": "delivery_plan_value", "description": "Value representing the delivery plan associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "delivery_task_link": {"name": "delivery_task_link", "description": "Link to the delivery task associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "delivery_task_value": {"name": "delivery_task_value", "description": "Value representing the delivery task associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "task_description": {"name": "task_description", "description": "Detailed description or information about the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "task_due_date_at": {"name": "task_due_date_at", "description": "The date by which the task is expected to be completed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "escalation": {"name": "escalation", "description": "Information about any escalation procedures or steps related to the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_start": {"name": "expected_start", "description": "The expected start date or time for the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "task_follow_up_at": {"name": "task_follow_up_at", "description": "Timestamp of when follow up was applied to the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "group_list": {"name": "group_list", "description": "List of groups associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impact": {"name": "impact", "description": "Assessment of the impact that completing or not completing the task may have. This is the business loss and potential damage (for example, financial, customer, regulation, security, reputation, brand) caused by the incident", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "knowledge": {"name": "knowledge", "description": "Indication of whether the task is associated with knowledge or documentation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "location_link": {"name": "location_link", "description": "Link to the location associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "location_value": {"name": "location_value", "description": "Value representing the location associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_made_sla": {"name": "is_made_sla", "description": "Indicates whether the task was completed within the agreed-upon Service Level Agreement (SLA).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "task_number": {"name": "task_number", "description": "Unique identifier or reference number assigned to the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "task_opened_at": {"name": "task_opened_at", "description": "Date and time when the task was initially opened.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "opened_by_link": {"name": "opened_by_link", "description": "Link to the user who initially opened the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "opened_by_value": {"name": "opened_by_value", "description": "Value representing the user who initially opened the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "task_order": {"name": "task_order", "description": "Order or sequence number associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "parent_link": {"name": "parent_link", "description": "Link to the parent task or record associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "parent_value": {"name": "parent_value", "description": "Value representing the parent task or record associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "priority": {"name": "priority", "description": "Priority level assigned to the task. The priority field is automatically calculated based on the values of impact and urgency. This determines the sequence in which the record should be resolved.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reassignment_count": {"name": "reassignment_count", "description": "Count of how many times the task has been reassigned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "rejection_goto_link": {"name": "rejection_goto_link", "description": "Link to the record or step to be followed in case of task rejection.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "rejection_goto_value": {"name": "rejection_goto_value", "description": "Value representing the record or step to be followed in case of task rejection.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "route_reason": {"name": "route_reason", "description": "Reason or criteria for routing the task to a particular user or group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "service_offering_link": {"name": "service_offering_link", "description": "Link to the service offering associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "service_offering_value": {"name": "service_offering_value", "description": "Value representing the service offering associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "short_description": {"name": "short_description", "description": "Brief or concise summary of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sla_due": {"name": "sla_due", "description": "Date and time by which the record is expected to meet the Service Level Agreement (SLA).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "task_state": {"name": "task_state", "description": "Current state or status of the task (e.g., in progress, on hold, closed).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_class_name": {"name": "sys_class_name", "description": "Name of the table in which the record is stored.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_created_by": {"name": "sys_created_by", "description": "User who initially created the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "task_created_at": {"name": "task_created_at", "description": "Date and time when the task record was initially created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_domain_link": {"name": "sys_domain_link", "description": "Link to the system domain associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_domain_path": {"name": "sys_domain_path", "description": "Path of the system domain associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_domain_value": {"name": "sys_domain_value", "description": "Value representing the system domain associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_mod_count": {"name": "sys_mod_count", "description": "Number of times the record has been modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_updated_by": {"name": "sys_updated_by", "description": "User who last updated or modified the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "task_updated_at": {"name": "task_updated_at", "description": "Date and time when the task record was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "task_effective_number": {"name": "task_effective_number", "description": "Effective number or identifier associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "universal_request_link": {"name": "universal_request_link", "description": "Link to the universal request associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "universal_request_value": {"name": "universal_request_value", "description": "Value representing the universal request associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "upon_approval": {"name": "upon_approval", "description": "Actions or steps to be taken upon the approval of the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "upon_reject": {"name": "upon_reject", "description": "Actions or steps to be taken upon the rejection of the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "urgency": {"name": "urgency", "description": "Level of urgency associated with the record. Speed at which the business expects the record to be resolved.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "watch_list": {"name": "watch_list", "description": "List of users or groups who are monitoring or \"watching\" the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "wf_activity_link": {"name": "wf_activity_link", "description": "Link to the workflow activity associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "wf_activity_value": {"name": "wf_activity_value", "description": "Value representing the workflow activity associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_end": {"name": "work_end", "description": "Date and time when the work on the task is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_notes": {"name": "work_notes", "description": "Notes or comments recorded during the work on the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_notes_list": {"name": "work_notes_list", "description": "List of work notes recorded during the task's lifecycle.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_start": {"name": "work_start", "description": "Date and time when the work on the task is scheduled to start.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "servicenow://models/staging/stg_servicenow.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_servicenow", "materialized": "view"}, "created_at": 1708640658.554834, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_stg_servicenow`.`stg_servicenow__task`", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_servicenow__task_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_servicenow__task_base')),\n staging_columns=get_task_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='servicenow_union_schemas', \n union_database_variable='servicenow_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n cast(sys_id as {{ dbt.type_string() }}) as task_id,\n cast(sys_created_on as {{ dbt.type_timestamp() }}) as task_created_at,\n cast(sys_updated_on as {{ dbt.type_timestamp() }}) as task_updated_at,\n _fivetran_deleted,\n _fivetran_synced,\n cast(active as {{ dbt.type_boolean() }}) as is_task_active,\n activity_due,\n additional_assignee_list,\n approval,\n approval_history,\n approval_set,\n assigned_to_link,\n cast(assigned_to_value as {{ dbt.type_string() }}) as assigned_to_value,\n assignment_group_link,\n cast(assignment_group_value as {{ dbt.type_string() }}) as assignment_group_value,\n business_duration,\n business_service_link,\n cast(business_service_value as {{ dbt.type_string() }}) as business_service_value,\n calendar_duration,\n close_notes,\n closed_at as task_closed_at,\n closed_by_link,\n cast(closed_by_value as {{ dbt.type_string() }}) as closed_by_value,\n cmdb_ci_link,\n cast(cmdb_ci_value as {{ dbt.type_string() }}) as cmdb_ci_value,\n comments,\n comments_and_work_notes,\n company_link,\n cast(company_value as {{ dbt.type_string() }}) as company_value,\n contact_type,\n contract_link,\n cast(contract_value as {{ dbt.type_string() }}) as contract_value,\n correlation_display,\n correlation_id,\n delivery_plan_link,\n cast(delivery_plan_value as {{ dbt.type_string() }}) as delivery_plan_value,\n delivery_task_link,\n cast(delivery_task_value as {{ dbt.type_string() }}) as delivery_task_value,\n description as task_description,\n due_date as task_due_date_at,\n escalation,\n expected_start,\n follow_up as task_follow_up_at,\n group_list,\n impact,\n knowledge,\n location_link,\n cast(location_value as {{ dbt.type_string() }}) as location_value,\n cast(made_sla as {{ dbt.type_boolean() }}) as is_made_sla,\n number as task_number,\n opened_at as task_opened_at,\n opened_by_link,\n cast(opened_by_value as {{ dbt.type_string() }}) as opened_by_value,\n task_order, -- Renamed within the get_task_columns() macro.\n parent_link,\n cast(parent_value as {{ dbt.type_string() }}) as parent_value,\n priority,\n reassignment_count,\n rejection_goto_link,\n cast(rejection_goto_value as {{ dbt.type_string() }}) as rejection_goto_value,\n route_reason,\n service_offering_link,\n cast(service_offering_value as {{ dbt.type_string() }}) as service_offering_value,\n short_description,\n sla_due,\n state as task_state,\n sys_class_name,\n sys_created_by,\n sys_domain_link,\n sys_domain_path,\n cast(sys_domain_value as {{ dbt.type_string() }}) as sys_domain_value,\n sys_mod_count,\n sys_updated_by,\n task_effective_number,\n universal_request_link,\n cast(universal_request_value as {{ dbt.type_string() }}) as universal_request_value,\n upon_approval,\n upon_reject,\n urgency,\n watch_list,\n wf_activity_link,\n cast(wf_activity_value as {{ dbt.type_string() }}) as wf_activity_value,\n work_end,\n work_notes,\n work_notes_list,\n work_start\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_servicenow__task_base", "package": null, "version": null}, {"name": "stg_servicenow__task_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.servicenow.get_task_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string", "macro.dbt.type_timestamp", "macro.dbt.type_boolean"], "nodes": ["model.servicenow.stg_servicenow__task_base"]}, "compiled_path": "target/compiled/servicenow/models/staging/stg_servicenow__task.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_stg_servicenow`.`stg_servicenow__task_base`\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n activity_due\n \n as \n \n activity_due\n \n, \n \n \n additional_assignee_list\n \n as \n \n additional_assignee_list\n \n, \n \n \n approval\n \n as \n \n approval\n \n, \n \n \n approval_history\n \n as \n \n approval_history\n \n, \n \n \n approval_set\n \n as \n \n approval_set\n \n, \n \n \n assigned_to_link\n \n as \n \n assigned_to_link\n \n, \n \n \n assigned_to_value\n \n as \n \n assigned_to_value\n \n, \n \n \n assignment_group_link\n \n as \n \n assignment_group_link\n \n, \n \n \n assignment_group_value\n \n as \n \n assignment_group_value\n \n, \n \n \n business_duration\n \n as \n \n business_duration\n \n, \n \n \n business_service_link\n \n as \n \n business_service_link\n \n, \n \n \n business_service_value\n \n as \n \n business_service_value\n \n, \n \n \n calendar_duration\n \n as \n \n calendar_duration\n \n, \n \n \n close_notes\n \n as \n \n close_notes\n \n, \n \n \n closed_at\n \n as \n \n closed_at\n \n, \n \n \n closed_by_link\n \n as \n \n closed_by_link\n \n, \n \n \n closed_by_value\n \n as \n \n closed_by_value\n \n, \n \n \n cmdb_ci_link\n \n as \n \n cmdb_ci_link\n \n, \n \n \n cmdb_ci_value\n \n as \n \n cmdb_ci_value\n \n, \n \n \n comments\n \n as \n \n comments\n \n, \n \n \n comments_and_work_notes\n \n as \n \n comments_and_work_notes\n \n, \n \n \n company_link\n \n as \n \n company_link\n \n, \n \n \n company_value\n \n as \n \n company_value\n \n, \n \n \n contact_type\n \n as \n \n contact_type\n \n, \n \n \n contract_link\n \n as \n \n contract_link\n \n, \n \n \n contract_value\n \n as \n \n contract_value\n \n, \n \n \n correlation_display\n \n as \n \n correlation_display\n \n, \n \n \n correlation_id\n \n as \n \n correlation_id\n \n, \n \n \n delivery_plan_link\n \n as \n \n delivery_plan_link\n \n, \n \n \n delivery_plan_value\n \n as \n \n delivery_plan_value\n \n, \n \n \n delivery_task_link\n \n as \n \n delivery_task_link\n \n, \n \n \n delivery_task_value\n \n as \n \n delivery_task_value\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n due_date\n \n as \n \n due_date\n \n, \n \n \n escalation\n \n as \n \n escalation\n \n, \n \n \n expected_start\n \n as \n \n expected_start\n \n, \n \n \n follow_up\n \n as \n \n follow_up\n \n, \n \n \n group_list\n \n as \n \n group_list\n \n, \n \n \n impact\n \n as \n \n impact\n \n, \n \n \n knowledge\n \n as \n \n knowledge\n \n, \n \n \n location_link\n \n as \n \n location_link\n \n, \n \n \n location_value\n \n as \n \n location_value\n \n, \n \n \n made_sla\n \n as \n \n made_sla\n \n, \n \n \n number\n \n as \n \n number\n \n, \n \n \n opened_at\n \n as \n \n opened_at\n \n, \n \n \n opened_by_link\n \n as \n \n opened_by_link\n \n, \n \n \n opened_by_value\n \n as \n \n opened_by_value\n \n, \n \n \n \n \n `order`\n \n \n \n as task_order , \n \n \n parent_link\n \n as \n \n parent_link\n \n, \n \n \n parent_value\n \n as \n \n parent_value\n \n, \n \n \n priority\n \n as \n \n priority\n \n, \n \n \n reassignment_count\n \n as \n \n reassignment_count\n \n, \n \n \n rejection_goto_link\n \n as \n \n rejection_goto_link\n \n, \n \n \n rejection_goto_value\n \n as \n \n rejection_goto_value\n \n, \n \n \n route_reason\n \n as \n \n route_reason\n \n, \n \n \n service_offering_link\n \n as \n \n service_offering_link\n \n, \n \n \n service_offering_value\n \n as \n \n service_offering_value\n \n, \n \n \n short_description\n \n as \n \n short_description\n \n, \n \n \n sla_due\n \n as \n \n sla_due\n \n, \n \n \n state\n \n as \n \n state\n \n, \n \n \n sys_class_name\n \n as \n \n sys_class_name\n \n, \n \n \n sys_created_by\n \n as \n \n sys_created_by\n \n, \n \n \n sys_created_on\n \n as \n \n sys_created_on\n \n, \n \n \n sys_domain_link\n \n as \n \n sys_domain_link\n \n, \n \n \n sys_domain_path\n \n as \n \n sys_domain_path\n \n, \n \n \n sys_domain_value\n \n as \n \n sys_domain_value\n \n, \n \n \n sys_id\n \n as \n \n sys_id\n \n, \n \n \n sys_mod_count\n \n as \n \n sys_mod_count\n \n, \n \n \n sys_updated_by\n \n as \n \n sys_updated_by\n \n, \n \n \n sys_updated_on\n \n as \n \n sys_updated_on\n \n, \n \n \n task_effective_number\n \n as \n \n task_effective_number\n \n, \n \n \n universal_request_link\n \n as \n \n universal_request_link\n \n, \n \n \n universal_request_value\n \n as \n \n universal_request_value\n \n, \n \n \n upon_approval\n \n as \n \n upon_approval\n \n, \n \n \n upon_reject\n \n as \n \n upon_reject\n \n, \n \n \n urgency\n \n as \n \n urgency\n \n, \n \n \n watch_list\n \n as \n \n watch_list\n \n, \n \n \n wf_activity_link\n \n as \n \n wf_activity_link\n \n, \n \n \n wf_activity_value\n \n as \n \n wf_activity_value\n \n, \n \n \n work_end\n \n as \n \n work_end\n \n, \n \n \n work_notes\n \n as \n \n work_notes\n \n, \n \n \n work_notes_list\n \n as \n \n work_notes_list\n \n, \n \n \n work_start\n \n as \n \n work_start\n \n\n\n\n \n\n\n, cast('' as STRING) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n cast(sys_id as STRING) as task_id,\n cast(sys_created_on as TIMESTAMP) as task_created_at,\n cast(sys_updated_on as TIMESTAMP) as task_updated_at,\n _fivetran_deleted,\n _fivetran_synced,\n cast(active as BOOLEAN) as is_task_active,\n activity_due,\n additional_assignee_list,\n approval,\n approval_history,\n approval_set,\n assigned_to_link,\n cast(assigned_to_value as STRING) as assigned_to_value,\n assignment_group_link,\n cast(assignment_group_value as STRING) as assignment_group_value,\n business_duration,\n business_service_link,\n cast(business_service_value as STRING) as business_service_value,\n calendar_duration,\n close_notes,\n closed_at as task_closed_at,\n closed_by_link,\n cast(closed_by_value as STRING) as closed_by_value,\n cmdb_ci_link,\n cast(cmdb_ci_value as STRING) as cmdb_ci_value,\n comments,\n comments_and_work_notes,\n company_link,\n cast(company_value as STRING) as company_value,\n contact_type,\n contract_link,\n cast(contract_value as STRING) as contract_value,\n correlation_display,\n correlation_id,\n delivery_plan_link,\n cast(delivery_plan_value as STRING) as delivery_plan_value,\n delivery_task_link,\n cast(delivery_task_value as STRING) as delivery_task_value,\n description as task_description,\n due_date as task_due_date_at,\n escalation,\n expected_start,\n follow_up as task_follow_up_at,\n group_list,\n impact,\n knowledge,\n location_link,\n cast(location_value as STRING) as location_value,\n cast(made_sla as BOOLEAN) as is_made_sla,\n number as task_number,\n opened_at as task_opened_at,\n opened_by_link,\n cast(opened_by_value as STRING) as opened_by_value,\n task_order, -- Renamed within the get_task_columns() macro.\n parent_link,\n cast(parent_value as STRING) as parent_value,\n priority,\n reassignment_count,\n rejection_goto_link,\n cast(rejection_goto_value as STRING) as rejection_goto_value,\n route_reason,\n service_offering_link,\n cast(service_offering_value as STRING) as service_offering_value,\n short_description,\n sla_due,\n state as task_state,\n sys_class_name,\n sys_created_by,\n sys_domain_link,\n sys_domain_path,\n cast(sys_domain_value as STRING) as sys_domain_value,\n sys_mod_count,\n sys_updated_by,\n task_effective_number,\n universal_request_link,\n cast(universal_request_value as STRING) as universal_request_value,\n upon_approval,\n upon_reject,\n urgency,\n watch_list,\n wf_activity_link,\n cast(wf_activity_value as STRING) as wf_activity_value,\n work_end,\n work_notes,\n work_notes_list,\n work_start\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.servicenow.stg_servicenow__cmdb_ci": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_stg_servicenow", "name": "stg_servicenow__cmdb_ci", "resource_type": "model", "package_name": "servicenow", "path": "staging/stg_servicenow__cmdb_ci.sql", "original_file_path": "models/staging/stg_servicenow__cmdb_ci.sql", "unique_id": "model.servicenow.stg_servicenow__cmdb_ci", "fqn": ["servicenow", "staging", "stg_servicenow__cmdb_ci"], "alias": "stg_servicenow__cmdb_ci", "checksum": {"name": "sha256", "checksum": "daf7764075778b71123b0edadf4f514beb7a2445af4e5b5cef9c6a7b381df0a4"}, "config": {"enabled": true, "alias": null, "schema": "stg_servicenow", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "Staging table containing all records relating to CI(Configuration Item) tables in the CMDB (Configuration Management Database)", "columns": {"cmdb_ci_id": {"name": "cmdb_ci_id", "description": "Unique identifier for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates whether the task record has been marked as deleted by the Fivetran connector.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Indicates whether the task record has been synchronized by the Fivetran connector.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "attributes": {"name": "attributes", "description": "Data elements which describe the characteristics of CIs", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_unit_link": {"name": "business_unit_link", "description": "Link to business unit. Business units usually comprise departments and are associated with a company", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_unit_value": {"name": "business_unit_value", "description": "The ID of the business unit.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "category": {"name": "category", "description": "The category of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_link": {"name": "company_link", "description": "Link to the company associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_value": {"name": "company_value", "description": "Value representing the company associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost": {"name": "cost", "description": "The cost related to the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost_cc": {"name": "cost_cc", "description": "The cost center that the record belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost_center_link": {"name": "cost_center_link", "description": "Link to the cost center associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost_center_value": {"name": "cost_center_value", "description": "Value representing the cost center associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "managed_by_link": {"name": "managed_by_link", "description": "The link to the user profile that manages this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "managed_by_value": {"name": "managed_by_value", "description": "The ID of the user profile that manages this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "manufacturer_link": {"name": "manufacturer_link", "description": "The link to the manufacturer that manages this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "manufacturer_value": {"name": "manufacturer_value", "description": "The ID of the manufacturer that manages this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "model_id_link": {"name": "model_id_link", "description": "The link to the model related to the CI.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "model_id_value": {"name": "model_id_value", "description": "The ID to the model related to the CI.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "model_number": {"name": "model_number", "description": "The number of the model related to the IC.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cmdb_ci_name": {"name": "cmdb_ci_name", "description": "The full name of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "owned_by_link": {"name": "owned_by_link", "description": "The link to the owner of the CI related to this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "owned_by_value": {"name": "owned_by_value", "description": "The ID to the owner of the CI related to this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "subcategory": {"name": "subcategory", "description": "The specific subcategory or classification of the record, providing more detailed information about its nature.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_class_name": {"name": "sys_class_name", "description": "Name of the table in which the record is stored.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_class_path": {"name": "sys_class_path", "description": "Where a particular CI class is within the overall hierarchy of classes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_created_by": {"name": "sys_created_by", "description": "User who initially created the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cmdb_ci_created_at": {"name": "cmdb_ci_created_at", "description": "Date and time when the record was initially created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_domain_link": {"name": "sys_domain_link", "description": "Link to the system domain associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_domain_path": {"name": "sys_domain_path", "description": "Path of the system domain associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_domain_value": {"name": "sys_domain_value", "description": "Value representing the system domain associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_mod_count": {"name": "sys_mod_count", "description": "Number of times the record has been modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_updated_by": {"name": "sys_updated_by", "description": "User who last updated or modified the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cmdb_ci_updated_at": {"name": "cmdb_ci_updated_at", "description": "Date and time when the record was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vendor_link": {"name": "vendor_link", "description": "A link to the vendor or external entity associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vendor_value": {"name": "vendor_value", "description": "The name or identifier of the vendor or external entity linked to the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "Indicates the schema which the field originated. This is especially important when leveraging the union schema feature.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "unverified": {"name": "unverified", "description": "Boolean indicating if the change task is unverified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "servicenow://models/staging/stg_servicenow.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_servicenow", "materialized": "view"}, "created_at": 1708640658.601706, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_stg_servicenow`.`stg_servicenow__cmdb_ci`", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_servicenow__cmdb_ci_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_servicenow__cmdb_ci_base')),\n staging_columns=get_cmdb_ci_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='servicenow_union_schemas', \n union_database_variable='servicenow_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation, \n cast(sys_id as {{ dbt.type_string() }}) as cmdb_ci_id,\n cast(sys_created_on as {{ dbt.type_timestamp() }}) as cmdb_ci_created_at,\n cast(sys_updated_on as {{ dbt.type_timestamp() }}) as cmdb_ci_updated_at,\n _fivetran_deleted,\n _fivetran_synced,\n attributes,\n business_unit_link,\n cast(business_unit_value as {{ dbt.type_string() }}) as business_unit_value,\n category,\n company_link,\n cast(company_value as {{ dbt.type_string() }}) as company_value,\n cost,\n cost_cc,\n cost_center_link,\n cast(cost_center_value as {{ dbt.type_string() }}) as cost_center_value,\n managed_by_link,\n cast(managed_by_value as {{ dbt.type_string() }}) as managed_by_value,\n manufacturer_link,\n cast(manufacturer_value as {{ dbt.type_string() }}) as manufacturer_value,\n model_id_link,\n cast(model_id_value as {{ dbt.type_string() }}) as model_id_value,\n model_number,\n name as cmdb_ci_name,\n owned_by_link,\n cast(owned_by_value as {{ dbt.type_string() }}) as owned_by_value,\n subcategory,\n sys_class_name,\n sys_class_path,\n sys_created_by,\n sys_domain_link,\n sys_domain_path,\n cast(sys_domain_value as {{ dbt.type_string() }}) as sys_domain_value,\n sys_mod_count,\n sys_updated_by,\n unverified,\n vendor_link,\n cast(vendor_value as {{ dbt.type_string() }}) as vendor_value\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_servicenow__cmdb_ci_base", "package": null, "version": null}, {"name": "stg_servicenow__cmdb_ci_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.servicenow.get_cmdb_ci_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string", "macro.dbt.type_timestamp"], "nodes": ["model.servicenow.stg_servicenow__cmdb_ci_base"]}, "compiled_path": "target/compiled/servicenow/models/staging/stg_servicenow__cmdb_ci.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_stg_servicenow`.`stg_servicenow__cmdb_ci_base`\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n attributes\n \n as \n \n attributes\n \n, \n \n \n business_unit_link\n \n as \n \n business_unit_link\n \n, \n \n \n business_unit_value\n \n as \n \n business_unit_value\n \n, \n \n \n category\n \n as \n \n category\n \n, \n \n \n company_link\n \n as \n \n company_link\n \n, \n \n \n company_value\n \n as \n \n company_value\n \n, \n \n \n cost\n \n as \n \n cost\n \n, \n \n \n cost_cc\n \n as \n \n cost_cc\n \n, \n \n \n cost_center_link\n \n as \n \n cost_center_link\n \n, \n \n \n cost_center_value\n \n as \n \n cost_center_value\n \n, \n \n \n managed_by_link\n \n as \n \n managed_by_link\n \n, \n \n \n managed_by_value\n \n as \n \n managed_by_value\n \n, \n \n \n manufacturer_link\n \n as \n \n manufacturer_link\n \n, \n \n \n manufacturer_value\n \n as \n \n manufacturer_value\n \n, \n \n \n model_id_link\n \n as \n \n model_id_link\n \n, \n \n \n model_id_value\n \n as \n \n model_id_value\n \n, \n \n \n model_number\n \n as \n \n model_number\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n owned_by_link\n \n as \n \n owned_by_link\n \n, \n \n \n owned_by_value\n \n as \n \n owned_by_value\n \n, \n \n \n subcategory\n \n as \n \n subcategory\n \n, \n \n \n sys_class_name\n \n as \n \n sys_class_name\n \n, \n \n \n sys_class_path\n \n as \n \n sys_class_path\n \n, \n \n \n sys_created_by\n \n as \n \n sys_created_by\n \n, \n \n \n sys_created_on\n \n as \n \n sys_created_on\n \n, \n \n \n sys_domain_link\n \n as \n \n sys_domain_link\n \n, \n \n \n sys_domain_path\n \n as \n \n sys_domain_path\n \n, \n \n \n sys_domain_value\n \n as \n \n sys_domain_value\n \n, \n \n \n sys_id\n \n as \n \n sys_id\n \n, \n \n \n sys_mod_count\n \n as \n \n sys_mod_count\n \n, \n \n \n sys_updated_by\n \n as \n \n sys_updated_by\n \n, \n \n \n sys_updated_on\n \n as \n \n sys_updated_on\n \n, \n \n \n unverified\n \n as \n \n unverified\n \n, \n \n \n vendor_link\n \n as \n \n vendor_link\n \n, \n \n \n vendor_value\n \n as \n \n vendor_value\n \n\n\n\n \n\n\n, cast('' as STRING) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation, \n cast(sys_id as STRING) as cmdb_ci_id,\n cast(sys_created_on as TIMESTAMP) as cmdb_ci_created_at,\n cast(sys_updated_on as TIMESTAMP) as cmdb_ci_updated_at,\n _fivetran_deleted,\n _fivetran_synced,\n attributes,\n business_unit_link,\n cast(business_unit_value as STRING) as business_unit_value,\n category,\n company_link,\n cast(company_value as STRING) as company_value,\n cost,\n cost_cc,\n cost_center_link,\n cast(cost_center_value as STRING) as cost_center_value,\n managed_by_link,\n cast(managed_by_value as STRING) as managed_by_value,\n manufacturer_link,\n cast(manufacturer_value as STRING) as manufacturer_value,\n model_id_link,\n cast(model_id_value as STRING) as model_id_value,\n model_number,\n name as cmdb_ci_name,\n owned_by_link,\n cast(owned_by_value as STRING) as owned_by_value,\n subcategory,\n sys_class_name,\n sys_class_path,\n sys_created_by,\n sys_domain_link,\n sys_domain_path,\n cast(sys_domain_value as STRING) as sys_domain_value,\n sys_mod_count,\n sys_updated_by,\n unverified,\n vendor_link,\n cast(vendor_value as STRING) as vendor_value\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.servicenow.stg_servicenow__cmdb_ci_service": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_stg_servicenow", "name": "stg_servicenow__cmdb_ci_service", "resource_type": "model", "package_name": "servicenow", "path": "staging/stg_servicenow__cmdb_ci_service.sql", "original_file_path": "models/staging/stg_servicenow__cmdb_ci_service.sql", "unique_id": "model.servicenow.stg_servicenow__cmdb_ci_service", "fqn": ["servicenow", "staging", "stg_servicenow__cmdb_ci_service"], "alias": "stg_servicenow__cmdb_ci_service", "checksum": {"name": "sha256", "checksum": "a0ad2a1195a62691662b0ed457a89eb3586069bedf3cb9d3b151f77fa14f5fdb"}, "config": {"enabled": true, "alias": null, "schema": "stg_servicenow", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "Staging table containing all records related to CMDB CI service areas.", "columns": {"cmdb_ci_service_id": {"name": "cmdb_ci_service_id", "description": "Unique identifier for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates whether the task record has been marked as deleted by the Fivetran connector.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Indicates whether the task record has been synchronized by the Fivetran connector.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "attributes": {"name": "attributes", "description": "Data elements which describe the characteristics of CIs", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_unit_link": {"name": "business_unit_link", "description": "Link to business unit. Business units usually comprise departments and are associated with a company", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_unit_value": {"name": "business_unit_value", "description": "The ID of the business unit.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "category": {"name": "category", "description": "The category of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_link": {"name": "company_link", "description": "Link to the company associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_value": {"name": "company_value", "description": "Value representing the company associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost": {"name": "cost", "description": "The cost related to the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost_cc": {"name": "cost_cc", "description": "The cost center that the record belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "managed_by_link": {"name": "managed_by_link", "description": "The link to the user profile that manages this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "managed_by_value": {"name": "managed_by_value", "description": "The ID of the user profile that manages this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "manufacturer_link": {"name": "manufacturer_link", "description": "The link to the manufacturer that manages this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "manufacturer_value": {"name": "manufacturer_value", "description": "The ID of the manufacturer that manages this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "model_id_link": {"name": "model_id_link", "description": "The link to the model related to the CI.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "model_id_value": {"name": "model_id_value", "description": "The ID to the model related to the CI.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "model_number": {"name": "model_number", "description": "The number of the model related to the IC.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cmdb_ci_service_name": {"name": "cmdb_ci_service_name", "description": "The full name of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "owned_by_link": {"name": "owned_by_link", "description": "The link to the owner of the CI related to this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "owned_by_value": {"name": "owned_by_value", "description": "The ID to the owner of the CI related to this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "service_classification": {"name": "service_classification", "description": "The type of service. Each type contains groups of CI services that share attributes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "service_level_requirement": {"name": "service_level_requirement", "description": "Requirement specified to maintain service commitments between parties.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "short_description": {"name": "short_description", "description": "Brief or concise summary of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sla_link": {"name": "sla_link", "description": "Link to the Service Level Agreement (SLA) associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sla_value": {"name": "sla_value", "description": "Value representing the Service Level Agreement (SLA) associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cmdb_ci_service_state": {"name": "cmdb_ci_service_state", "description": "Current state or status of the record (e.g., in progress, on hold, closed).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "subcategory": {"name": "subcategory", "description": "The specific subcategory or classification of the record, providing more detailed information about its nature.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_class_name": {"name": "sys_class_name", "description": "Name of the table in which the record is stored.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_class_path": {"name": "sys_class_path", "description": "Where a particular CI class is within the overall hierarchy of classes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_created_by": {"name": "sys_created_by", "description": "User who initially created the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cmdb_ci_service_created_at": {"name": "cmdb_ci_service_created_at", "description": "Date and time when the record was initially created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_domain_link": {"name": "sys_domain_link", "description": "Link to the system domain associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_domain_path": {"name": "sys_domain_path", "description": "Path of the system domain associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_domain_value": {"name": "sys_domain_value", "description": "Value representing the system domain associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_mod_count": {"name": "sys_mod_count", "description": "Number of times the record has been modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_updated_by": {"name": "sys_updated_by", "description": "User who last updated or modified the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cmdb_ci_service_updated_at": {"name": "cmdb_ci_service_updated_at", "description": "Date and time when the record was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vendor_link": {"name": "vendor_link", "description": "A link to the vendor or external entity associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vendor_value": {"name": "vendor_value", "description": "The name or identifier of the vendor or external entity linked to the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "Indicates the schema which the field originated. This is especially important when leveraging the union schema feature.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost_center_link": {"name": "cost_center_link", "description": "Link to the cost center associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost_center_value": {"name": "cost_center_value", "description": "Value representing the cost center associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "monitor": {"name": "monitor", "description": "Monitor in relation to the cmdb_ci_service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "servicenow://models/staging/stg_servicenow.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_servicenow", "materialized": "view"}, "created_at": 1708640658.608139, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_stg_servicenow`.`stg_servicenow__cmdb_ci_service`", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_servicenow__cmdb_ci_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_servicenow__cmdb_ci_service_base')),\n staging_columns=get_cmdb_ci_service_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='servicenow_union_schemas', \n union_database_variable='servicenow_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select\n source_relation,\n cast(sys_id as {{ dbt.type_string() }}) as cmdb_ci_service_id,\n cast(sys_created_on as {{ dbt.type_timestamp() }}) as cmdb_ci_service_created_at,\n cast(sys_updated_on as {{ dbt.type_timestamp() }}) as cmdb_ci_service_updated_at,\n _fivetran_deleted,\n _fivetran_synced,\n attributes,\n business_unit_link,\n cast(business_unit_value as {{ dbt.type_string() }}) as business_unit_value,\n category,\n company_link,\n cast(company_value as {{ dbt.type_string() }}) as company_value,\n cost,\n cost_cc,\n cost_center_link,\n cast(cost_center_value as {{ dbt.type_string() }}) as cost_center_value,\n managed_by_link,\n cast(managed_by_value as {{ dbt.type_string() }}) as managed_by_value,\n manufacturer_link,\n cast(manufacturer_value as {{ dbt.type_string() }}) as manufacturer_value,\n model_id_link,\n cast(model_id_value as {{ dbt.type_string() }}) as model_id_value,\n model_number,\n monitor,\n name as cmdb_ci_service_name,\n owned_by_link,\n cast(owned_by_value as {{ dbt.type_string() }}) as owned_by_value,\n service_classification,\n service_level_requirement,\n short_description,\n sla_link,\n cast(sla_value as {{ dbt.type_string() }}) as sla_value,\n state as cmdb_ci_service_state,\n subcategory,\n sys_class_name,\n sys_class_path,\n sys_created_by,\n sys_domain_link,\n sys_domain_path,\n cast(sys_domain_value as {{ dbt.type_string() }}) as sys_domain_value,\n sys_mod_count,\n sys_updated_by,\n vendor_link,\n cast(vendor_value as {{ dbt.type_string() }}) as vendor_value\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_servicenow__cmdb_ci_service_base", "package": null, "version": null}, {"name": "stg_servicenow__cmdb_ci_service_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.servicenow.get_cmdb_ci_service_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string", "macro.dbt.type_timestamp"], "nodes": ["model.servicenow.stg_servicenow__cmdb_ci_service_base"]}, "compiled_path": "target/compiled/servicenow/models/staging/stg_servicenow__cmdb_ci_service.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_stg_servicenow`.`stg_servicenow__cmdb_ci_service_base`\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n attributes\n \n as \n \n attributes\n \n, \n \n \n business_unit_link\n \n as \n \n business_unit_link\n \n, \n \n \n business_unit_value\n \n as \n \n business_unit_value\n \n, \n \n \n category\n \n as \n \n category\n \n, \n \n \n company_link\n \n as \n \n company_link\n \n, \n \n \n company_value\n \n as \n \n company_value\n \n, \n \n \n cost\n \n as \n \n cost\n \n, \n \n \n cost_cc\n \n as \n \n cost_cc\n \n, \n \n \n cost_center_link\n \n as \n \n cost_center_link\n \n, \n \n \n cost_center_value\n \n as \n \n cost_center_value\n \n, \n \n \n managed_by_link\n \n as \n \n managed_by_link\n \n, \n \n \n managed_by_value\n \n as \n \n managed_by_value\n \n, \n \n \n manufacturer_link\n \n as \n \n manufacturer_link\n \n, \n \n \n manufacturer_value\n \n as \n \n manufacturer_value\n \n, \n \n \n model_id_link\n \n as \n \n model_id_link\n \n, \n \n \n model_id_value\n \n as \n \n model_id_value\n \n, \n \n \n model_number\n \n as \n \n model_number\n \n, \n \n \n monitor\n \n as \n \n monitor\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n owned_by_link\n \n as \n \n owned_by_link\n \n, \n \n \n owned_by_value\n \n as \n \n owned_by_value\n \n, \n \n \n service_classification\n \n as \n \n service_classification\n \n, \n \n \n service_level_requirement\n \n as \n \n service_level_requirement\n \n, \n \n \n service_owner_delegate_link\n \n as \n \n service_owner_delegate_link\n \n, \n \n \n service_owner_delegate_value\n \n as \n \n service_owner_delegate_value\n \n, \n \n \n short_description\n \n as \n \n short_description\n \n, \n \n \n sla_link\n \n as \n \n sla_link\n \n, \n \n \n sla_value\n \n as \n \n sla_value\n \n, \n \n \n state\n \n as \n \n state\n \n, \n \n \n subcategory\n \n as \n \n subcategory\n \n, \n \n \n sys_class_name\n \n as \n \n sys_class_name\n \n, \n \n \n sys_class_path\n \n as \n \n sys_class_path\n \n, \n \n \n sys_created_by\n \n as \n \n sys_created_by\n \n, \n \n \n sys_created_on\n \n as \n \n sys_created_on\n \n, \n \n \n sys_domain_link\n \n as \n \n sys_domain_link\n \n, \n \n \n sys_domain_path\n \n as \n \n sys_domain_path\n \n, \n \n \n sys_domain_value\n \n as \n \n sys_domain_value\n \n, \n \n \n sys_id\n \n as \n \n sys_id\n \n, \n \n \n sys_mod_count\n \n as \n \n sys_mod_count\n \n, \n \n \n sys_updated_by\n \n as \n \n sys_updated_by\n \n, \n \n \n sys_updated_on\n \n as \n \n sys_updated_on\n \n, \n \n \n vendor_link\n \n as \n \n vendor_link\n \n, \n \n \n vendor_value\n \n as \n \n vendor_value\n \n\n\n\n \n\n\n, cast('' as STRING) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n source_relation,\n cast(sys_id as STRING) as cmdb_ci_service_id,\n cast(sys_created_on as TIMESTAMP) as cmdb_ci_service_created_at,\n cast(sys_updated_on as TIMESTAMP) as cmdb_ci_service_updated_at,\n _fivetran_deleted,\n _fivetran_synced,\n attributes,\n business_unit_link,\n cast(business_unit_value as STRING) as business_unit_value,\n category,\n company_link,\n cast(company_value as STRING) as company_value,\n cost,\n cost_cc,\n cost_center_link,\n cast(cost_center_value as STRING) as cost_center_value,\n managed_by_link,\n cast(managed_by_value as STRING) as managed_by_value,\n manufacturer_link,\n cast(manufacturer_value as STRING) as manufacturer_value,\n model_id_link,\n cast(model_id_value as STRING) as model_id_value,\n model_number,\n monitor,\n name as cmdb_ci_service_name,\n owned_by_link,\n cast(owned_by_value as STRING) as owned_by_value,\n service_classification,\n service_level_requirement,\n short_description,\n sla_link,\n cast(sla_value as STRING) as sla_value,\n state as cmdb_ci_service_state,\n subcategory,\n sys_class_name,\n sys_class_path,\n sys_created_by,\n sys_domain_link,\n sys_domain_path,\n cast(sys_domain_value as STRING) as sys_domain_value,\n sys_mod_count,\n sys_updated_by,\n vendor_link,\n cast(vendor_value as STRING) as vendor_value\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.servicenow.stg_servicenow__change_task": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_stg_servicenow", "name": "stg_servicenow__change_task", "resource_type": "model", "package_name": "servicenow", "path": "staging/stg_servicenow__change_task.sql", "original_file_path": "models/staging/stg_servicenow__change_task.sql", "unique_id": "model.servicenow.stg_servicenow__change_task", "fqn": ["servicenow", "staging", "stg_servicenow__change_task"], "alias": "stg_servicenow__change_task", "checksum": {"name": "sha256", "checksum": "8afb138ea6ef549f41667a021af47d7af8dca3f88eeb99eaab5a06280048c2df"}, "config": {"enabled": true, "alias": null, "schema": "stg_servicenow", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "Staging table containing all information related to change tasks.", "columns": {"change_task_id": {"name": "change_task_id", "description": "Unique identifier for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "Indicates the schema which the field originated. This is especially important when leveraging the union schema feature.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates whether the task record has been marked as deleted by the Fivetran connector.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Indicates whether the task record has been synchronized by the Fivetran connector.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_request_link": {"name": "change_request_link", "description": "A link to the change request record associated with the issue or incident.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_request_value": {"name": "change_request_value", "description": "The unique identifier or name associated with the change request record linked to the issue or incident.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_task_type": {"name": "change_task_type", "description": "The type or category of the task associated with the change request or change record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_task_close_code": {"name": "change_task_close_code", "description": "The code or identifier associated with the closure or resolution of the change task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_task_created_from": {"name": "change_task_created_from", "description": "Information about the source or origin of the current record, indicating how it was created or generated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_change_on_hold": {"name": "is_change_on_hold", "description": "Indicates whether the change task is currently on hold or paused.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_on_hold_reason": {"name": "change_on_hold_reason", "description": "The reason or rationale for placing the associated record on hold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_task_planned_end_date": {"name": "change_task_planned_end_date", "description": "The planned or scheduled end date for the change request or change record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_task_planned_start_date": {"name": "change_task_planned_start_date", "description": "The planned or scheduled start date for the change request or change record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_task_created_at": {"name": "change_task_created_at", "description": "Date and time when the change task record was initially created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_task_updated_at": {"name": "change_task_updated_at", "description": "Date and time when the change task record was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "servicenow://models/staging/stg_servicenow.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_servicenow", "materialized": "view"}, "created_at": 1708640658.584178, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_stg_servicenow`.`stg_servicenow__change_task`", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_servicenow__change_task_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_servicenow__change_task_base')),\n staging_columns=get_change_task_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='servicenow_union_schemas', \n union_database_variable='servicenow_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation, \n cast(sys_id as {{ dbt.type_string() }}) as change_task_id,\n cast(sys_created_on as {{ dbt.type_timestamp() }}) as change_task_created_at,\n cast(sys_updated_on as {{ dbt.type_timestamp() }}) as change_task_updated_at,\n _fivetran_deleted,\n _fivetran_synced,\n change_request_link,\n cast(change_request_value as {{ dbt.type_string() }}) as change_request_value,\n change_task_type,\n close_code as change_task_close_code,\n created_from as change_task_created_from,\n on_hold as is_change_on_hold,\n on_hold_reason as change_on_hold_reason,\n planned_end_date as change_task_planned_end_date,\n planned_start_date as change_task_planned_start_date\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_servicenow__change_task_base", "package": null, "version": null}, {"name": "stg_servicenow__change_task_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.servicenow.get_change_task_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string", "macro.dbt.type_timestamp"], "nodes": ["model.servicenow.stg_servicenow__change_task_base"]}, "compiled_path": "target/compiled/servicenow/models/staging/stg_servicenow__change_task.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_stg_servicenow`.`stg_servicenow__change_task_base`\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n change_request_link\n \n as \n \n change_request_link\n \n, \n \n \n change_request_value\n \n as \n \n change_request_value\n \n, \n \n \n change_task_type\n \n as \n \n change_task_type\n \n, \n \n \n close_code\n \n as \n \n close_code\n \n, \n \n \n created_from\n \n as \n \n created_from\n \n, \n \n \n on_hold\n \n as \n \n on_hold\n \n, \n \n \n on_hold_reason\n \n as \n \n on_hold_reason\n \n, \n \n \n planned_end_date\n \n as \n \n planned_end_date\n \n, \n \n \n planned_start_date\n \n as \n \n planned_start_date\n \n, \n \n \n sys_created_on\n \n as \n \n sys_created_on\n \n, \n \n \n sys_id\n \n as \n \n sys_id\n \n, \n \n \n sys_updated_on\n \n as \n \n sys_updated_on\n \n\n\n\n \n\n\n, cast('' as STRING) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation, \n cast(sys_id as STRING) as change_task_id,\n cast(sys_created_on as TIMESTAMP) as change_task_created_at,\n cast(sys_updated_on as TIMESTAMP) as change_task_updated_at,\n _fivetran_deleted,\n _fivetran_synced,\n change_request_link,\n cast(change_request_value as STRING) as change_request_value,\n change_task_type,\n close_code as change_task_close_code,\n created_from as change_task_created_from,\n on_hold as is_change_on_hold,\n on_hold_reason as change_on_hold_reason,\n planned_end_date as change_task_planned_end_date,\n planned_start_date as change_task_planned_start_date\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.servicenow.stg_servicenow__sys_user_group": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_stg_servicenow", "name": "stg_servicenow__sys_user_group", "resource_type": "model", "package_name": "servicenow", "path": "staging/stg_servicenow__sys_user_group.sql", "original_file_path": "models/staging/stg_servicenow__sys_user_group.sql", "unique_id": "model.servicenow.stg_servicenow__sys_user_group", "fqn": ["servicenow", "staging", "stg_servicenow__sys_user_group"], "alias": "stg_servicenow__sys_user_group", "checksum": {"name": "sha256", "checksum": "9a7a16f19642d456bfe142e764c310d9c42f3bee859a368cc533ed73a4ebaf40"}, "config": {"enabled": true, "alias": null, "schema": "stg_servicenow", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "Staging table containing all information related to user groups.", "columns": {"sys_user_group_id": {"name": "sys_user_group_id", "description": "Unique identifier for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates whether the task record has been marked as deleted by the Fivetran connector.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Indicates whether the task record has been synchronized by the Fivetran connector.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active": {"name": "active", "description": "Flag indicating whether the record is currently active or completed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost_center_link": {"name": "cost_center_link", "description": "Link to the cost center associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost_center_value": {"name": "cost_center_value", "description": "Value representing the cost center associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "default_assignee_link": {"name": "default_assignee_link", "description": "Link to the user that is the default assignee for this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "default_assignee_value": {"name": "default_assignee_value", "description": "ID of the user that is the default assignee for this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "description": {"name": "description", "description": "Detailed description or information about the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email": {"name": "email", "description": "Email address associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "exclude_manager": {"name": "exclude_manager", "description": "Boolean of whether the group manager receives email notifications.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "include_members": {"name": "include_members", "description": "Boolean of whether the group members receive individual emails when someone sends an email to the Group Email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "manager_link": {"name": "manager_link", "description": "A link to the user's manager or supervisor in the organizational hierarchy.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "manager_value": {"name": "manager_value", "description": "The name or identifier of the user's manager or supervisor.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_user_group_name": {"name": "sys_user_group_name", "description": "The full name of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "parent_link": {"name": "parent_link", "description": "Link to the other group of which this group is a member. If a group has a parent, the child group inherits the roles of the parent group. The members of the child group are not members of the parent group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "parent_value": {"name": "parent_value", "description": "ID of the other group of which this group is a member. If a group has a parent, the child group inherits the roles of the parent group. The members of the child group are not members of the parent group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "roles": {"name": "roles", "description": "The roles assigned to the user in the system or organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source": {"name": "source", "description": "The source or origin of the user's or user group's profile information.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_created_by": {"name": "sys_created_by", "description": "User who initially created the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_user_group_created_at": {"name": "sys_user_group_created_at", "description": "Date and time when the record was initially created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_mod_count": {"name": "sys_mod_count", "description": "Number of times the record has been modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_updated_by": {"name": "sys_updated_by", "description": "User who last updated or modified the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_user_group_updated_at": {"name": "sys_user_group_updated_at", "description": "Date and time when the record was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "The type or category regarding the current record", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "Indicates the schema which the field originated. This is especially important when leveraging the union schema feature.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "servicenow://models/staging/stg_servicenow.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_servicenow", "materialized": "view"}, "created_at": 1708640658.612423, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_stg_servicenow`.`stg_servicenow__sys_user_group`", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_servicenow__sys_user_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_servicenow__sys_user_group_base')),\n staging_columns=get_sys_user_group_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='servicenow_union_schemas', \n union_database_variable='servicenow_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select\n source_relation, \n cast(sys_id as {{ dbt.type_string() }}) as sys_user_group_id,\n cast(sys_created_on as {{ dbt.type_timestamp() }}) as sys_user_group_created_at,\n cast(sys_updated_on as {{ dbt.type_timestamp() }}) as sys_user_group_updated_at,\n _fivetran_deleted,\n _fivetran_synced,\n active,\n cost_center_link,\n cast(cost_center_value as {{ dbt.type_string() }}) as cost_center_value,\n default_assignee_link,\n cast(default_assignee_value as {{ dbt.type_string() }}) as default_assignee_value,\n description,\n email,\n exclude_manager,\n include_members,\n manager_link,\n cast(manager_value as {{ dbt.type_string() }}) as manager_value,\n name as sys_user_group_name,\n parent_link,\n cast(parent_value as {{ dbt.type_string() }}) as parent_value,\n roles,\n source,\n sys_created_by,\n sys_mod_count,\n sys_updated_by,\n type\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_servicenow__sys_user_group_base", "package": null, "version": null}, {"name": "stg_servicenow__sys_user_group_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.servicenow.get_sys_user_group_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string", "macro.dbt.type_timestamp"], "nodes": ["model.servicenow.stg_servicenow__sys_user_group_base"]}, "compiled_path": "target/compiled/servicenow/models/staging/stg_servicenow__sys_user_group.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_stg_servicenow`.`stg_servicenow__sys_user_group_base`\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n cost_center_link\n \n as \n \n cost_center_link\n \n, \n \n \n cost_center_value\n \n as \n \n cost_center_value\n \n, \n \n \n default_assignee_link\n \n as \n \n default_assignee_link\n \n, \n \n \n default_assignee_value\n \n as \n \n default_assignee_value\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n exclude_manager\n \n as \n \n exclude_manager\n \n, \n \n \n include_members\n \n as \n \n include_members\n \n, \n \n \n manager_link\n \n as \n \n manager_link\n \n, \n \n \n manager_value\n \n as \n \n manager_value\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n parent_link\n \n as \n \n parent_link\n \n, \n \n \n parent_value\n \n as \n \n parent_value\n \n, \n \n \n roles\n \n as \n \n roles\n \n, \n \n \n source\n \n as \n \n source\n \n, \n \n \n sys_created_by\n \n as \n \n sys_created_by\n \n, \n \n \n sys_created_on\n \n as \n \n sys_created_on\n \n, \n \n \n sys_id\n \n as \n \n sys_id\n \n, \n \n \n sys_mod_count\n \n as \n \n sys_mod_count\n \n, \n \n \n sys_updated_by\n \n as \n \n sys_updated_by\n \n, \n \n \n sys_updated_on\n \n as \n \n sys_updated_on\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as STRING) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n source_relation, \n cast(sys_id as STRING) as sys_user_group_id,\n cast(sys_created_on as TIMESTAMP) as sys_user_group_created_at,\n cast(sys_updated_on as TIMESTAMP) as sys_user_group_updated_at,\n _fivetran_deleted,\n _fivetran_synced,\n active,\n cost_center_link,\n cast(cost_center_value as STRING) as cost_center_value,\n default_assignee_link,\n cast(default_assignee_value as STRING) as default_assignee_value,\n description,\n email,\n exclude_manager,\n include_members,\n manager_link,\n cast(manager_value as STRING) as manager_value,\n name as sys_user_group_name,\n parent_link,\n cast(parent_value as STRING) as parent_value,\n roles,\n source,\n sys_created_by,\n sys_mod_count,\n sys_updated_by,\n type\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.servicenow.stg_servicenow__incident": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_stg_servicenow", "name": "stg_servicenow__incident", "resource_type": "model", "package_name": "servicenow", "path": "staging/stg_servicenow__incident.sql", "original_file_path": "models/staging/stg_servicenow__incident.sql", "unique_id": "model.servicenow.stg_servicenow__incident", "fqn": ["servicenow", "staging", "stg_servicenow__incident"], "alias": "stg_servicenow__incident", "checksum": {"name": "sha256", "checksum": "00ab09a5f17d70daaf5be078767f52ebc9bfe048a2a4946296351c29feaf85b0"}, "config": {"enabled": true, "alias": null, "schema": "stg_servicenow", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "Staging table containing all information related to incidents.", "columns": {"incident_id": {"name": "incident_id", "description": "Unique identifier for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "Indicates the schema which the field originated. This is especially important when leveraging the union schema feature.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates whether the task record has been marked as deleted by the Fivetran connector.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Indicates whether the task record has been synchronized by the Fivetran connector.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_impact": {"name": "business_impact", "description": "Information about the impact of the issue on business operations or services.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_stc": {"name": "business_stc", "description": "The business service that is impacted by the issue or incident.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "calendar_stc": {"name": "calendar_stc", "description": "The calendar or schedule associated with the business service impacted by the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "caller_id_link": {"name": "caller_id_link", "description": "A link to the person or entity identified as the caller or reporter of the issue or incident.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "caller_id_value": {"name": "caller_id_value", "description": "The name or identifier of the person or entity identified as the caller or reporter of the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "category": {"name": "category", "description": "The category of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cause": {"name": "cause", "description": "A description or explanation of the root cause of the issue or incident.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "caused_by_link": {"name": "caused_by_link", "description": "A link to the record or entity that caused or triggered the issue or incident.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "caused_by_value": {"name": "caused_by_value", "description": "The name or identifier of the record or entity that caused or triggered the issue or incident.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "child_incidents": {"name": "child_incidents", "description": "Information about other incidents that are identified as child incidents linked to the current incident.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "close_code": {"name": "close_code", "description": "The code or identifier associated with the closure or resolution.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hold_reason": {"name": "hold_reason", "description": "The reason or rationale for placing the issue or incident on hold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "incident_state": {"name": "incident_state", "description": "The current state or status of the incident.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "notify": {"name": "notify", "description": "Indicates whether notifications or alerts have been configured for the issue or incident.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "origin_id_link": {"name": "origin_id_link", "description": "A link to the original or source record from which the current record originated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "origin_id_value": {"name": "origin_id_value", "description": "The unique identifier or name associated with the original or source record linked to the current record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "parent_incident_link": {"name": "parent_incident_link", "description": "A link to the parent incident record, indicating the incident from which the current incident is derived or related.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "parent_incident_value": {"name": "parent_incident_value", "description": "The unique identifier or name associated with the parent incident record linked to the current incident.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_id_link": {"name": "problem_id_link", "description": "A link to the problem record associated with the current issue or incident.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_id_value": {"name": "problem_id_value", "description": "The unique identifier or name associated with the problem record linked to the current issue or incident.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reopen_count": {"name": "reopen_count", "description": "The count of how many times the issue has been reopened.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reopened_by_link": {"name": "reopened_by_link", "description": "A link to the person or entity who reopened the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reopened_by_value": {"name": "reopened_by_value", "description": "The name or identifier of the person or entity who reopened the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reopened_time": {"name": "reopened_time", "description": "The timestamp indicating when the issue or incident was reopened after being previously resolved.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "resolved_at": {"name": "resolved_at", "description": "The timestamp indicating when the issue was resolved.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "resolved_by_link": {"name": "resolved_by_link", "description": "A link to the person or entity who resolved the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "resolved_by_value": {"name": "resolved_by_value", "description": "The name or identifier of the person or entity who resolved the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "rfc_link": {"name": "rfc_link", "description": "A link to the Request for Change (RFC) associated with the issue or incident.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "rfc_value": {"name": "rfc_value", "description": "The unique identifier or name associated with the Request for Change (RFC) linked to the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "severity": {"name": "severity", "description": "The level of impact or seriousness assigned to the issue or incident.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "subcategory": {"name": "subcategory", "description": "The specific subcategory or classification of the record, providing more detailed information about its nature.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "incident_created_at": {"name": "incident_created_at", "description": "Date and time when the incident record was initially created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "incident_updated_at": {"name": "incident_updated_at", "description": "Date and time when the incident record was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "servicenow://models/staging/stg_servicenow.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_servicenow", "materialized": "view"}, "created_at": 1708640658.580959, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_stg_servicenow`.`stg_servicenow__incident`", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_servicenow__incident_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_servicenow__incident_base')),\n staging_columns=get_incident_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='servicenow_union_schemas', \n union_database_variable='servicenow_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation, \n cast(sys_id as {{ dbt.type_string() }}) as incident_id,\n cast(sys_created_on as {{ dbt.type_timestamp() }}) as incident_created_at,\n cast(sys_updated_on as {{ dbt.type_timestamp() }}) as incident_updated_at,\n _fivetran_deleted,\n _fivetran_synced,\n business_impact,\n business_stc,\n calendar_stc,\n caller_id_link,\n cast(caller_id_value as {{ dbt.type_string() }}) as caller_id_value,\n category,\n cause,\n caused_by_link,\n cast(caused_by_value as {{ dbt.type_string() }}) as caused_by_value,\n child_incidents,\n close_code,\n hold_reason,\n incident_state,\n notify,\n origin_id_link,\n cast(origin_id_value as {{ dbt.type_string() }}) as origin_id_value,\n parent_incident_link,\n cast(parent_incident_value as {{ dbt.type_string() }}) as parent_incident_value,\n problem_id_link,\n cast(problem_id_value as {{ dbt.type_string() }}) as problem_id_value,\n reopen_count,\n reopened_by_link,\n cast(reopened_by_value as {{ dbt.type_string() }}) as reopened_by_value,\n reopened_time,\n resolved_at,\n resolved_by_link,\n cast(resolved_by_value as {{ dbt.type_string() }}) as resolved_by_value,\n rfc_link,\n cast(rfc_value as {{ dbt.type_string() }}) as rfc_value,\n severity,\n subcategory\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_servicenow__incident_base", "package": null, "version": null}, {"name": "stg_servicenow__incident_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.servicenow.get_incident_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string", "macro.dbt.type_timestamp"], "nodes": ["model.servicenow.stg_servicenow__incident_base"]}, "compiled_path": "target/compiled/servicenow/models/staging/stg_servicenow__incident.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_stg_servicenow`.`stg_servicenow__incident_base`\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n business_impact\n \n as \n \n business_impact\n \n, \n \n \n business_stc\n \n as \n \n business_stc\n \n, \n \n \n calendar_stc\n \n as \n \n calendar_stc\n \n, \n \n \n caller_id_link\n \n as \n \n caller_id_link\n \n, \n \n \n caller_id_value\n \n as \n \n caller_id_value\n \n, \n \n \n category\n \n as \n \n category\n \n, \n \n \n cause\n \n as \n \n cause\n \n, \n \n \n caused_by_link\n \n as \n \n caused_by_link\n \n, \n \n \n caused_by_value\n \n as \n \n caused_by_value\n \n, \n \n \n child_incidents\n \n as \n \n child_incidents\n \n, \n \n \n close_code\n \n as \n \n close_code\n \n, \n \n \n hold_reason\n \n as \n \n hold_reason\n \n, \n \n \n incident_state\n \n as \n \n incident_state\n \n, \n \n \n notify\n \n as \n \n notify\n \n, \n \n \n origin_id_link\n \n as \n \n origin_id_link\n \n, \n \n \n origin_id_value\n \n as \n \n origin_id_value\n \n, \n \n \n parent_incident_link\n \n as \n \n parent_incident_link\n \n, \n \n \n parent_incident_value\n \n as \n \n parent_incident_value\n \n, \n \n \n problem_id_link\n \n as \n \n problem_id_link\n \n, \n \n \n problem_id_value\n \n as \n \n problem_id_value\n \n, \n \n \n reopen_count\n \n as \n \n reopen_count\n \n, \n \n \n reopened_by_link\n \n as \n \n reopened_by_link\n \n, \n \n \n reopened_by_value\n \n as \n \n reopened_by_value\n \n, \n \n \n reopened_time\n \n as \n \n reopened_time\n \n, \n \n \n resolved_at\n \n as \n \n resolved_at\n \n, \n \n \n resolved_by_link\n \n as \n \n resolved_by_link\n \n, \n \n \n resolved_by_value\n \n as \n \n resolved_by_value\n \n, \n \n \n rfc_link\n \n as \n \n rfc_link\n \n, \n \n \n rfc_value\n \n as \n \n rfc_value\n \n, \n \n \n severity\n \n as \n \n severity\n \n, \n \n \n subcategory\n \n as \n \n subcategory\n \n, \n \n \n sys_created_on\n \n as \n \n sys_created_on\n \n, \n \n \n sys_id\n \n as \n \n sys_id\n \n, \n \n \n sys_updated_on\n \n as \n \n sys_updated_on\n \n\n\n\n \n\n\n, cast('' as STRING) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation, \n cast(sys_id as STRING) as incident_id,\n cast(sys_created_on as TIMESTAMP) as incident_created_at,\n cast(sys_updated_on as TIMESTAMP) as incident_updated_at,\n _fivetran_deleted,\n _fivetran_synced,\n business_impact,\n business_stc,\n calendar_stc,\n caller_id_link,\n cast(caller_id_value as STRING) as caller_id_value,\n category,\n cause,\n caused_by_link,\n cast(caused_by_value as STRING) as caused_by_value,\n child_incidents,\n close_code,\n hold_reason,\n incident_state,\n notify,\n origin_id_link,\n cast(origin_id_value as STRING) as origin_id_value,\n parent_incident_link,\n cast(parent_incident_value as STRING) as parent_incident_value,\n problem_id_link,\n cast(problem_id_value as STRING) as problem_id_value,\n reopen_count,\n reopened_by_link,\n cast(reopened_by_value as STRING) as reopened_by_value,\n reopened_time,\n resolved_at,\n resolved_by_link,\n cast(resolved_by_value as STRING) as resolved_by_value,\n rfc_link,\n cast(rfc_value as STRING) as rfc_value,\n severity,\n subcategory\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.servicenow.stg_servicenow__task_sla": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_stg_servicenow", "name": "stg_servicenow__task_sla", "resource_type": "model", "package_name": "servicenow", "path": "staging/stg_servicenow__task_sla.sql", "original_file_path": "models/staging/stg_servicenow__task_sla.sql", "unique_id": "model.servicenow.stg_servicenow__task_sla", "fqn": ["servicenow", "staging", "stg_servicenow__task_sla"], "alias": "stg_servicenow__task_sla", "checksum": {"name": "sha256", "checksum": "c9a9d405492e82fd905f5bd8231e06e21ff551361561d4da7a3cbb3870e227ba"}, "config": {"enabled": true, "alias": null, "schema": "stg_servicenow", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "Staging table containing all Service Level Agreement (SLA) information related to the task.", "columns": {"task_sla_id": {"name": "task_sla_id", "description": "Unique identifier for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "Indicates the schema which the field originated. This is especially important when leveraging the union schema feature.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates whether the task record has been marked as deleted by the Fivetran connector.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Indicates whether the task record has been synchronized by the Fivetran connector.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active": {"name": "active", "description": "Flag indicating whether the record is currently active or completed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_duration": {"name": "business_duration", "description": "The duration of the task in terms of business hours.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_pause_duration": {"name": "business_pause_duration", "description": "Duration of business pause associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_percentage": {"name": "business_percentage", "description": "Percentage of business time completed for the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_time_left": {"name": "business_time_left", "description": "Remaining business time for the completion of the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "duration": {"name": "duration", "description": "Total duration of the task, including both business and non-business time.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_time": {"name": "end_time", "description": "The scheduled or expected end time for the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "has_breached": {"name": "has_breached", "description": "Indicates whether the task has breached the defined SLA or time limits.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "original_breach_time": {"name": "original_breach_time", "description": "Original time when the SLA breach for the task was detected.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pause_duration": {"name": "pause_duration", "description": "Duration of the pause associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pause_time": {"name": "pause_time", "description": "Time when the task was paused or put on hold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "percentage": {"name": "percentage", "description": "Percentage of total time completed for the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "planned_end_time": {"name": "planned_end_time", "description": "The originally planned or expected end time for the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "schedule_link": {"name": "schedule_link", "description": "Link to the schedule associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "schedule_value": {"name": "schedule_value", "description": "Value representing the schedule associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sla_link": {"name": "sla_link", "description": "Link to the Service Level Agreement (SLA) associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sla_value": {"name": "sla_value", "description": "Value representing the Service Level Agreement (SLA) associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "stage": {"name": "stage", "description": "Current stage or phase of the record's lifecycle.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_time": {"name": "start_time", "description": "The scheduled or expected start time for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_created_by": {"name": "sys_created_by", "description": "User who initially created the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "task_sla_created_at": {"name": "task_sla_created_at", "description": "Date and time when the task sla record was initially created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_mod_count": {"name": "sys_mod_count", "description": "Number of times the record has been modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_updated_by": {"name": "sys_updated_by", "description": "User who last updated or modified the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "task_sla_updated_at": {"name": "task_sla_updated_at", "description": "Date and time when the task sla record was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "task_link": {"name": "task_link", "description": "Link to the related task record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "task_value": {"name": "task_value", "description": "Value representing the related task record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "time_left": {"name": "time_left", "description": "Remaining time for the completion of the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "timezone": {"name": "timezone", "description": "Timezone information associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "servicenow://models/staging/stg_servicenow.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_servicenow", "materialized": "view"}, "created_at": 1708640658.559804, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_stg_servicenow`.`stg_servicenow__task_sla`", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_servicenow__task_sla_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_servicenow__task_sla_base')),\n staging_columns=get_task_sla_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='servicenow_union_schemas', \n union_database_variable='servicenow_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation, \n cast(sys_id as {{ dbt.type_string() }}) as task_sla_id,\n cast(sys_created_on as {{ dbt.type_timestamp() }}) as task_sla_created_at,\n cast(sys_updated_on as {{ dbt.type_timestamp() }}) as task_sla_updated_at,\n _fivetran_deleted,\n _fivetran_synced,\n active,\n business_duration,\n business_pause_duration,\n business_percentage,\n business_time_left,\n duration,\n end_time,\n has_breached,\n original_breach_time,\n pause_duration,\n pause_time,\n percentage,\n planned_end_time,\n schedule_link,\n cast(schedule_value as {{ dbt.type_string() }}) as schedule_value,\n sla_link,\n cast(sla_value as {{ dbt.type_string() }}) as sla_value,\n stage,\n start_time,\n sys_created_by,\n sys_mod_count,\n sys_updated_by,\n task_link,\n cast(task_value as {{ dbt.type_string() }}) as task_value,\n time_left,\n timezone\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_servicenow__task_sla_base", "package": null, "version": null}, {"name": "stg_servicenow__task_sla_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.servicenow.get_task_sla_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string", "macro.dbt.type_timestamp"], "nodes": ["model.servicenow.stg_servicenow__task_sla_base"]}, "compiled_path": "target/compiled/servicenow/models/staging/stg_servicenow__task_sla.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_stg_servicenow`.`stg_servicenow__task_sla_base`\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n business_duration\n \n as \n \n business_duration\n \n, \n \n \n business_pause_duration\n \n as \n \n business_pause_duration\n \n, \n \n \n business_percentage\n \n as \n \n business_percentage\n \n, \n \n \n business_time_left\n \n as \n \n business_time_left\n \n, \n \n \n duration\n \n as \n \n duration\n \n, \n \n \n end_time\n \n as \n \n end_time\n \n, \n \n \n has_breached\n \n as \n \n has_breached\n \n, \n \n \n original_breach_time\n \n as \n \n original_breach_time\n \n, \n \n \n pause_duration\n \n as \n \n pause_duration\n \n, \n \n \n pause_time\n \n as \n \n pause_time\n \n, \n \n \n percentage\n \n as \n \n percentage\n \n, \n \n \n planned_end_time\n \n as \n \n planned_end_time\n \n, \n \n \n schedule_link\n \n as \n \n schedule_link\n \n, \n \n \n schedule_value\n \n as \n \n schedule_value\n \n, \n \n \n sla_link\n \n as \n \n sla_link\n \n, \n \n \n sla_value\n \n as \n \n sla_value\n \n, \n \n \n stage\n \n as \n \n stage\n \n, \n \n \n start_time\n \n as \n \n start_time\n \n, \n \n \n sys_created_by\n \n as \n \n sys_created_by\n \n, \n \n \n sys_created_on\n \n as \n \n sys_created_on\n \n, \n \n \n sys_id\n \n as \n \n sys_id\n \n, \n \n \n sys_mod_count\n \n as \n \n sys_mod_count\n \n, \n \n \n sys_updated_by\n \n as \n \n sys_updated_by\n \n, \n \n \n sys_updated_on\n \n as \n \n sys_updated_on\n \n, \n \n \n task_link\n \n as \n \n task_link\n \n, \n \n \n task_value\n \n as \n \n task_value\n \n, \n \n \n time_left\n \n as \n \n time_left\n \n, \n \n \n timezone\n \n as \n \n timezone\n \n\n\n\n \n\n\n, cast('' as STRING) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation, \n cast(sys_id as STRING) as task_sla_id,\n cast(sys_created_on as TIMESTAMP) as task_sla_created_at,\n cast(sys_updated_on as TIMESTAMP) as task_sla_updated_at,\n _fivetran_deleted,\n _fivetran_synced,\n active,\n business_duration,\n business_pause_duration,\n business_percentage,\n business_time_left,\n duration,\n end_time,\n has_breached,\n original_breach_time,\n pause_duration,\n pause_time,\n percentage,\n planned_end_time,\n schedule_link,\n cast(schedule_value as STRING) as schedule_value,\n sla_link,\n cast(sla_value as STRING) as sla_value,\n stage,\n start_time,\n sys_created_by,\n sys_mod_count,\n sys_updated_by,\n task_link,\n cast(task_value as STRING) as task_value,\n time_left,\n timezone\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.servicenow.stg_servicenow__core_company": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_stg_servicenow", "name": "stg_servicenow__core_company", "resource_type": "model", "package_name": "servicenow", "path": "staging/stg_servicenow__core_company.sql", "original_file_path": "models/staging/stg_servicenow__core_company.sql", "unique_id": "model.servicenow.stg_servicenow__core_company", "fqn": ["servicenow", "staging", "stg_servicenow__core_company"], "alias": "stg_servicenow__core_company", "checksum": {"name": "sha256", "checksum": "81048850729ebccbed15efdf990aaa669c644f300502128fad62761d1681d920"}, "config": {"enabled": true, "alias": null, "schema": "stg_servicenow", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "Staging table containing all records relating to companies.", "columns": {"core_company_id": {"name": "core_company_id", "description": "Unique identifier for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "Indicates the schema which the field originated. This is especially important when leveraging the union schema feature.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_city": {"name": "company_city", "description": "City information associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_country": {"name": "company_country", "description": "Country information associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_customer": {"name": "is_customer", "description": "Boolean of whether the company is a customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_fax_phone": {"name": "company_fax_phone", "description": "Fax phone number of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fiscal_year": {"name": "fiscal_year", "description": "Company's fiscal year", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_name": {"name": "company_name", "description": "The full name of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "notes": {"name": "notes", "description": "Notes about the record", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_phone": {"name": "company_phone", "description": "The contact number belonging to this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_state": {"name": "company_state", "description": "Current state or status of the record (e.g., in progress, on hold, closed).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_street": {"name": "company_street", "description": "The street to which the record belongs", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_class_name": {"name": "sys_class_name", "description": "Name of the table in which the record is stored.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_created_by": {"name": "sys_created_by", "description": "User who initially created the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_created_on": {"name": "sys_created_on", "description": "Date and time when the record was initially created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_mod_count": {"name": "sys_mod_count", "description": "Number of times the record has been modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_updated_by": {"name": "sys_updated_by", "description": "User who last updated or modified the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_updated_on": {"name": "sys_updated_on", "description": "Date and time when the record was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_vendor": {"name": "is_vendor", "description": "Boolean of whether the company is a vendor", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vendor_type": {"name": "vendor_type", "description": "Vendor types group vendors that offer similar goods and services, and are useful for reporting and comparing vendor performance. Example: Hardware, Services", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_website": {"name": "company_website", "description": "Company website", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_zip": {"name": "company_zip", "description": "The postal code or ZIP code associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "servicenow://models/staging/stg_servicenow.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_servicenow", "materialized": "view"}, "created_at": 1708640658.5967731, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_stg_servicenow`.`stg_servicenow__core_company`", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_servicenow__core_company_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_servicenow__core_company_base')),\n staging_columns=get_core_company_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='servicenow_union_schemas', \n union_database_variable='servicenow_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n cast(sys_id as {{ dbt.type_string() }}) as core_company_id,\n city as company_city,\n country as company_country,\n customer as is_customer,\n fax_phone as company_fax_phone,\n fiscal_year,\n name as company_name,\n notes,\n phone as company_phone,\n state as company_state,\n street as company_street,\n sys_class_name,\n sys_created_by,\n sys_created_on,\n sys_mod_count,\n sys_updated_by,\n sys_updated_on,\n vendor as is_vendor,\n vendor_type,\n website as company_website,\n zip as company_zip\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_servicenow__core_company_base", "package": null, "version": null}, {"name": "stg_servicenow__core_company_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.servicenow.get_core_company_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string"], "nodes": ["model.servicenow.stg_servicenow__core_company_base"]}, "compiled_path": "target/compiled/servicenow/models/staging/stg_servicenow__core_company.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_stg_servicenow`.`stg_servicenow__core_company_base`\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n sys_id\n \n as \n \n sys_id\n \n, \n \n \n city\n \n as \n \n city\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n customer\n \n as \n \n customer\n \n, \n \n \n fax_phone\n \n as \n \n fax_phone\n \n, \n \n \n fiscal_year\n \n as \n \n fiscal_year\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n state\n \n as \n \n state\n \n, \n \n \n street\n \n as \n \n street\n \n, \n \n \n sys_class_name\n \n as \n \n sys_class_name\n \n, \n \n \n sys_created_by\n \n as \n \n sys_created_by\n \n, \n \n \n sys_created_on\n \n as \n \n sys_created_on\n \n, \n \n \n sys_mod_count\n \n as \n \n sys_mod_count\n \n, \n \n \n sys_updated_by\n \n as \n \n sys_updated_by\n \n, \n \n \n sys_updated_on\n \n as \n \n sys_updated_on\n \n, \n \n \n vendor\n \n as \n \n vendor\n \n, \n \n \n vendor_type\n \n as \n \n vendor_type\n \n, \n \n \n website\n \n as \n \n website\n \n, \n \n \n zip\n \n as \n \n zip\n \n\n\n\n \n\n\n, cast('' as STRING) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n cast(sys_id as STRING) as core_company_id,\n city as company_city,\n country as company_country,\n customer as is_customer,\n fax_phone as company_fax_phone,\n fiscal_year,\n name as company_name,\n notes,\n phone as company_phone,\n state as company_state,\n street as company_street,\n sys_class_name,\n sys_created_by,\n sys_created_on,\n sys_mod_count,\n sys_updated_by,\n sys_updated_on,\n vendor as is_vendor,\n vendor_type,\n website as company_website,\n zip as company_zip\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.servicenow.stg_servicenow__sys_user": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_stg_servicenow", "name": "stg_servicenow__sys_user", "resource_type": "model", "package_name": "servicenow", "path": "staging/stg_servicenow__sys_user.sql", "original_file_path": "models/staging/stg_servicenow__sys_user.sql", "unique_id": "model.servicenow.stg_servicenow__sys_user", "fqn": ["servicenow", "staging", "stg_servicenow__sys_user"], "alias": "stg_servicenow__sys_user", "checksum": {"name": "sha256", "checksum": "e5cb29eed1e00be9385ab7df77e10c1e23b82046c94d129bf84fd3f47899723c"}, "config": {"enabled": true, "alias": null, "schema": "stg_servicenow", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "Staging table containing all information related to the system user associated with the task.", "columns": {"user_id": {"name": "user_id", "description": "Unique identifier for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "Indicates the schema which the field originated. This is especially important when leveraging the union schema feature.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates whether the task record has been marked as deleted by the Fivetran connector.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Indicates whether the task record has been synchronized by the Fivetran connector.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "accumulated_roles": {"name": "accumulated_roles", "description": "Roles accumulated or associated with the system user over time.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Flag indicating whether the record is currently active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "avatar": {"name": "avatar", "description": "Avatar or profile picture associated with the system user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "building_link": {"name": "building_link", "description": "Link to the building associated with the system user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "building_value": {"name": "building_value", "description": "Value representing the building associated with the system user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "calendar_integration": {"name": "calendar_integration", "description": "Information about the integration of the user's calendar with the ServiceNow system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city": {"name": "city", "description": "City information associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_link": {"name": "company_link", "description": "Link to the company associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_value": {"name": "company_value", "description": "Value representing the company associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost_center_link": {"name": "cost_center_link", "description": "Link to the cost center associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost_center_value": {"name": "cost_center_value", "description": "Value representing the cost center associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country": {"name": "country", "description": "Country information associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_format": {"name": "date_format", "description": "The format in which dates are displayed or recorded for the system user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "default_perspective_link": {"name": "default_perspective_link", "description": "Link to the default perspective associated with the system user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "default_perspective_value": {"name": "default_perspective_value", "description": "Value representing the default perspective associated with the system user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "department_link": {"name": "department_link", "description": "Link to the department associated with the system user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "department_value": {"name": "department_value", "description": "Value representing the department associated with the system user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "edu_status": {"name": "edu_status", "description": "Education status or level associated with the system user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email": {"name": "email", "description": "Email address associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_number": {"name": "employee_number", "description": "Employee number or identifier associated with the system user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "enable_multifactor_authn": {"name": "enable_multifactor_authn", "description": "Indication of whether multifactor authentication is enabled for the system user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "failed_attempts": {"name": "failed_attempts", "description": "Number of failed login attempts for the system user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_name": {"name": "first_name", "description": "First name of the system user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "gender": {"name": "gender", "description": "Gender information associated with the system user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hashed_user_id": {"name": "hashed_user_id", "description": "Hashed identifier associated with the system user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "home_phone": {"name": "home_phone", "description": "Home phone number associated with the system user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "internal_integration_user": {"name": "internal_integration_user", "description": "Indication of whether the system user is an internal integration user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "introduction": {"name": "introduction", "description": "Introduction or bio information associated with the system user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_login_day_date": {"name": "last_login_day_date", "description": "Date and time of the last login.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_login_device": {"name": "last_login_device", "description": "The device used for the user's last login to the system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_login_at": {"name": "last_login_at", "description": "The specific time when the user last logged in to the system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_name": {"name": "last_name", "description": "The family name or surname of the user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_password": {"name": "last_password", "description": "The timestamp or information related to the user's last password update.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ldap_server_link": {"name": "ldap_server_link", "description": "A link to the LDAP (Lightweight Directory Access Protocol) server associated with the user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ldap_server_value": {"name": "ldap_server_value", "description": "The value or name of the LDAP server associated with the user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "location_link": {"name": "location_link", "description": "Link to the location associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "location_value": {"name": "location_value", "description": "Value representing the location associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "locked_out": {"name": "locked_out", "description": "Information about whether the user account is currently locked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "manager_link": {"name": "manager_link", "description": "A link to the user's manager or supervisor in the organizational hierarchy.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "manager_value": {"name": "manager_value", "description": "The name or identifier of the user's manager or supervisor.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "middle_name": {"name": "middle_name", "description": "The middle name or initial of the user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_phone": {"name": "mobile_phone", "description": "The contact number for the user's mobile phone.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_user_name": {"name": "sys_user_name", "description": "The system username or identifier for the user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "notification": {"name": "notification", "description": "Information related to user notifications or alerts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "password_needs_reset": {"name": "password_needs_reset", "description": "Indicates whether the user needs to reset their password.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "phone": {"name": "phone", "description": "The contact number belonging to this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "photo": {"name": "photo", "description": "A link or reference to the user's profile photo.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "preferred_language": {"name": "preferred_language", "description": "The language preference set by the user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "roles": {"name": "roles", "description": "The roles assigned to the user in the system or organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "schedule_link": {"name": "schedule_link", "description": "Link to the schedule associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "schedule_value": {"name": "schedule_value", "description": "Value representing the schedule associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source": {"name": "source", "description": "The source or origin of the user's or user group's profile information.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "state": {"name": "state", "description": "Current state or status of the record (e.g., in progress, on hold, closed).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_class_name": {"name": "sys_class_name", "description": "Name of the table in which the record is stored.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_created_by": {"name": "sys_created_by", "description": "User who initially created the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_created_at": {"name": "user_created_at", "description": "Date and time when the user record was initially created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_domain_link": {"name": "sys_domain_link", "description": "Link to the system domain associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_domain_path": {"name": "sys_domain_path", "description": "Path of the system domain associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_domain_value": {"name": "sys_domain_value", "description": "Value representing the system domain associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_mod_count": {"name": "sys_mod_count", "description": "Number of times the record has been modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_updated_by": {"name": "sys_updated_by", "description": "User who last updated or modified the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_updated_at": {"name": "user_updated_at", "description": "Date and time when the user record was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "time_format": {"name": "time_format", "description": "The preferred time format for the user (e.g., 12-hour or 24-hour).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "time_zone": {"name": "time_zone", "description": "The time zone configured for the user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "title": {"name": "title", "description": "The job title or position of the user within the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_name": {"name": "user_name", "description": "The username used by the user to log in to the system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_password": {"name": "user_password", "description": "The user's current password information or status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vip": {"name": "vip", "description": "Indicates whether the user has VIP (Very Important Person) status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "web_service_access_only": {"name": "web_service_access_only", "description": "Indicates whether the user has access only through web services.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "zip": {"name": "zip", "description": "The postal code or ZIP code associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "servicenow://models/staging/stg_servicenow.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_servicenow", "materialized": "view"}, "created_at": 1708640658.567803, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_stg_servicenow`.`stg_servicenow__sys_user`", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_servicenow__sys_user_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_servicenow__sys_user_base')),\n staging_columns=get_sys_user_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='servicenow_union_schemas', \n union_database_variable='servicenow_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n cast(sys_id as {{ dbt.type_string() }}) as user_id,\n cast(sys_created_on as {{ dbt.type_timestamp() }}) as user_created_at,\n cast(sys_updated_on as {{ dbt.type_timestamp() }}) as user_updated_at,\n _fivetran_deleted,\n _fivetran_synced,\n accumulated_roles,\n active as is_active,\n avatar,\n building_link,\n cast(building_value as {{ dbt.type_string() }}) as building_value,\n calendar_integration,\n city,\n company_link,\n cast(company_value as {{ dbt.type_string() }}) as company_value,\n cost_center_link,\n cast(cost_center_value as {{ dbt.type_string() }}) as cost_center_value,\n country,\n date_format,\n default_perspective_link,\n cast(default_perspective_value as {{ dbt.type_string() }}) as default_perspective_value,\n department_link,\n cast(department_value as {{ dbt.type_string() }}) as department_value,\n edu_status,\n email,\n employee_number,\n enable_multifactor_authn,\n failed_attempts,\n first_name,\n gender,\n hashed_user_id,\n home_phone,\n internal_integration_user,\n introduction,\n last_login as last_login_day_date,\n last_login_device,\n last_login_time as last_login_at,\n last_name,\n last_password,\n ldap_server_link,\n cast(ldap_server_value as {{ dbt.type_string() }}) as ldap_server_value,\n location_link,\n cast(location_value as {{ dbt.type_string() }}) as location_value,\n locked_out,\n manager_link,\n cast(manager_value as {{ dbt.type_string() }}) as manager_value,\n middle_name,\n mobile_phone,\n name as sys_user_name,\n notification,\n password_needs_reset,\n phone,\n photo,\n preferred_language,\n roles,\n schedule_link,\n cast(schedule_value as {{ dbt.type_string() }}) as schedule_value,\n source,\n state,\n sys_class_name,\n sys_created_by,\n sys_domain_link,\n sys_domain_path,\n cast(sys_domain_value as {{ dbt.type_string() }}) as sys_domain_value,\n sys_mod_count,\n sys_updated_by,\n time_format,\n time_zone,\n title,\n user_name,\n user_password,\n vip,\n web_service_access_only,\n zip\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_servicenow__sys_user_base", "package": null, "version": null}, {"name": "stg_servicenow__sys_user_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.servicenow.get_sys_user_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string", "macro.dbt.type_timestamp"], "nodes": ["model.servicenow.stg_servicenow__sys_user_base"]}, "compiled_path": "target/compiled/servicenow/models/staging/stg_servicenow__sys_user.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_stg_servicenow`.`stg_servicenow__sys_user_base`\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n accumulated_roles\n \n as \n \n accumulated_roles\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n avatar\n \n as \n \n avatar\n \n, \n \n \n building_link\n \n as \n \n building_link\n \n, \n \n \n building_value\n \n as \n \n building_value\n \n, \n \n \n calendar_integration\n \n as \n \n calendar_integration\n \n, \n \n \n city\n \n as \n \n city\n \n, \n \n \n company_link\n \n as \n \n company_link\n \n, \n \n \n company_value\n \n as \n \n company_value\n \n, \n \n \n cost_center_link\n \n as \n \n cost_center_link\n \n, \n \n \n cost_center_value\n \n as \n \n cost_center_value\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n date_format\n \n as \n \n date_format\n \n, \n \n \n default_perspective_link\n \n as \n \n default_perspective_link\n \n, \n \n \n default_perspective_value\n \n as \n \n default_perspective_value\n \n, \n \n \n department_link\n \n as \n \n department_link\n \n, \n \n \n department_value\n \n as \n \n department_value\n \n, \n \n \n edu_status\n \n as \n \n edu_status\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n employee_number\n \n as \n \n employee_number\n \n, \n \n \n enable_multifactor_authn\n \n as \n \n enable_multifactor_authn\n \n, \n \n \n failed_attempts\n \n as \n \n failed_attempts\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hashed_user_id\n \n as \n \n hashed_user_id\n \n, \n \n \n home_phone\n \n as \n \n home_phone\n \n, \n \n \n internal_integration_user\n \n as \n \n internal_integration_user\n \n, \n \n \n introduction\n \n as \n \n introduction\n \n, \n \n \n last_login\n \n as \n \n last_login\n \n, \n \n \n last_login_device\n \n as \n \n last_login_device\n \n, \n \n \n last_login_time\n \n as \n \n last_login_time\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n last_password\n \n as \n \n last_password\n \n, \n \n \n ldap_server_link\n \n as \n \n ldap_server_link\n \n, \n \n \n ldap_server_value\n \n as \n \n ldap_server_value\n \n, \n \n \n location_link\n \n as \n \n location_link\n \n, \n \n \n location_value\n \n as \n \n location_value\n \n, \n \n \n locked_out\n \n as \n \n locked_out\n \n, \n \n \n manager_link\n \n as \n \n manager_link\n \n, \n \n \n manager_value\n \n as \n \n manager_value\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n mobile_phone\n \n as \n \n mobile_phone\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n notification\n \n as \n \n notification\n \n, \n \n \n password_needs_reset\n \n as \n \n password_needs_reset\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n photo\n \n as \n \n photo\n \n, \n \n \n preferred_language\n \n as \n \n preferred_language\n \n, \n \n \n roles\n \n as \n \n roles\n \n, \n \n \n schedule_link\n \n as \n \n schedule_link\n \n, \n \n \n schedule_value\n \n as \n \n schedule_value\n \n, \n \n \n source\n \n as \n \n source\n \n, \n \n \n state\n \n as \n \n state\n \n, \n \n \n sys_class_name\n \n as \n \n sys_class_name\n \n, \n \n \n sys_created_by\n \n as \n \n sys_created_by\n \n, \n \n \n sys_created_on\n \n as \n \n sys_created_on\n \n, \n \n \n sys_domain_link\n \n as \n \n sys_domain_link\n \n, \n \n \n sys_domain_path\n \n as \n \n sys_domain_path\n \n, \n \n \n sys_domain_value\n \n as \n \n sys_domain_value\n \n, \n \n \n sys_id\n \n as \n \n sys_id\n \n, \n \n \n sys_mod_count\n \n as \n \n sys_mod_count\n \n, \n \n \n sys_updated_by\n \n as \n \n sys_updated_by\n \n, \n \n \n sys_updated_on\n \n as \n \n sys_updated_on\n \n, \n \n \n time_format\n \n as \n \n time_format\n \n, \n \n \n time_zone\n \n as \n \n time_zone\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n user_name\n \n as \n \n user_name\n \n, \n \n \n user_password\n \n as \n \n user_password\n \n, \n \n \n vip\n \n as \n \n vip\n \n, \n \n \n web_service_access_only\n \n as \n \n web_service_access_only\n \n, \n \n \n zip\n \n as \n \n zip\n \n\n\n\n \n\n\n, cast('' as STRING) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n cast(sys_id as STRING) as user_id,\n cast(sys_created_on as TIMESTAMP) as user_created_at,\n cast(sys_updated_on as TIMESTAMP) as user_updated_at,\n _fivetran_deleted,\n _fivetran_synced,\n accumulated_roles,\n active as is_active,\n avatar,\n building_link,\n cast(building_value as STRING) as building_value,\n calendar_integration,\n city,\n company_link,\n cast(company_value as STRING) as company_value,\n cost_center_link,\n cast(cost_center_value as STRING) as cost_center_value,\n country,\n date_format,\n default_perspective_link,\n cast(default_perspective_value as STRING) as default_perspective_value,\n department_link,\n cast(department_value as STRING) as department_value,\n edu_status,\n email,\n employee_number,\n enable_multifactor_authn,\n failed_attempts,\n first_name,\n gender,\n hashed_user_id,\n home_phone,\n internal_integration_user,\n introduction,\n last_login as last_login_day_date,\n last_login_device,\n last_login_time as last_login_at,\n last_name,\n last_password,\n ldap_server_link,\n cast(ldap_server_value as STRING) as ldap_server_value,\n location_link,\n cast(location_value as STRING) as location_value,\n locked_out,\n manager_link,\n cast(manager_value as STRING) as manager_value,\n middle_name,\n mobile_phone,\n name as sys_user_name,\n notification,\n password_needs_reset,\n phone,\n photo,\n preferred_language,\n roles,\n schedule_link,\n cast(schedule_value as STRING) as schedule_value,\n source,\n state,\n sys_class_name,\n sys_created_by,\n sys_domain_link,\n sys_domain_path,\n cast(sys_domain_value as STRING) as sys_domain_value,\n sys_mod_count,\n sys_updated_by,\n time_format,\n time_zone,\n title,\n user_name,\n user_password,\n vip,\n web_service_access_only,\n zip\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.servicenow.stg_servicenow__change_request": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_stg_servicenow", "name": "stg_servicenow__change_request", "resource_type": "model", "package_name": "servicenow", "path": "staging/stg_servicenow__change_request.sql", "original_file_path": "models/staging/stg_servicenow__change_request.sql", "unique_id": "model.servicenow.stg_servicenow__change_request", "fqn": ["servicenow", "staging", "stg_servicenow__change_request"], "alias": "stg_servicenow__change_request", "checksum": {"name": "sha256", "checksum": "98a2579b847e59672875e11e79510bfe9fd40eaedfb3d6bb921bb4b9502f6c5e"}, "config": {"enabled": true, "alias": null, "schema": "stg_servicenow", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "Staging table that contains all information related to change requests.", "columns": {"change_request_id": {"name": "change_request_id", "description": "Unique identifier for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates whether the task record has been marked as deleted by the Fivetran connector.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Indicates whether the task record has been synchronized by the Fivetran connector.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "backout_plan": {"name": "backout_plan", "description": "Information about the plan or process for backing out or undoing the changes associated with the current record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cab_date": {"name": "cab_date", "description": "The date of the Change Advisory Board (CAB) meeting associated with the change request or change record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cab_date_time": {"name": "cab_date_time", "description": "The date and time of the Change Advisory Board (CAB) meeting associated with the change request or change record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cab_delegate_link": {"name": "cab_delegate_link", "description": "A link to the person or entity delegated to represent or act on behalf of the Change Advisory Board (CAB) in relation \nto the change request.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cab_delegate_value": {"name": "cab_delegate_value", "description": "The name or identifier of the person or entity delegated to represent or act on behalf of the Change Advisory Board (CAB) \nin relation to the change request.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cab_recommendation": {"name": "cab_recommendation", "description": "The recommendation or decision made by the Change Advisory Board (CAB) regarding the change request.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_cab_required": {"name": "is_cab_required", "description": "Indicates whether the Change Advisory Board (CAB) approval is required for the change request.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_request_category": {"name": "change_request_category", "description": "The category of the change.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_plan": {"name": "change_plan", "description": "Information about the plan or process for implementing the changes associated with the current record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "chg_model_link": {"name": "chg_model_link", "description": "A link to the change model or template associated with the change request or change record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "chg_model_value": {"name": "chg_model_value", "description": "The name or identifier of the change model or template linked to the change request or change record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_request_close_code": {"name": "change_request_close_code", "description": "The code or identifier associated with the closure or resolution.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conflict_last_run": {"name": "conflict_last_run", "description": "The timestamp indicating when the conflict detection was last run for the change request or change record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conflict_status": {"name": "conflict_status", "description": "The status or outcome of the conflict detection process for the change request or change record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_request_end_date": {"name": "change_request_end_date", "description": "The end date for the implementation or execution associated with the current record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_request_implementation_plan": {"name": "change_request_implementation_plan", "description": "Information about the plan or process for implementing the changes associated with the current record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_request_justification": {"name": "change_request_justification", "description": "The reasoning or justification behind the changes associated with the current record, providing context or explanation for the modifications made.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_change_request_on_hold": {"name": "is_change_request_on_hold", "description": "Indicates whether the change is currently on hold or paused.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_request_on_hold_reason": {"name": "change_request_on_hold_reason", "description": "The reason or rationale for placing the change on hold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "on_hold_task": {"name": "on_hold_task", "description": "A link to the task or activity that indicates the current record is on hold, specifying the task associated with the \nhold status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "outside_maintenance_schedule": {"name": "outside_maintenance_schedule", "description": "Indicates whether the changes associated with the current record fall outside the regular maintenance schedule or window.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_request_phase": {"name": "change_request_phase", "description": "The phase or stage of the change request or change record within the change management process, indicating its progress or status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_request_phase_state": {"name": "change_request_phase_state", "description": "The current state or status of the phase associated with the change request or change record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_production_system": {"name": "is_production_system", "description": "Indicates whether the changes associated with the current record are intended for the production environment or system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_request_reason": {"name": "change_request_reason", "description": "The reason or rationale behind the changes associated with the current record, providing context or explanation for the modifications made.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_requested_by_date": {"name": "change_requested_by_date", "description": "The date when the changes associated with the current record were requested or initiated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_requested_by_link": {"name": "change_requested_by_link", "description": "A link to the person or entity who requested or initiated the changes associated with the current record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_requested_by_value": {"name": "change_requested_by_value", "description": "The name or identifier of the person or entity who requested or initiated the changes associated with the current record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "review_comments": {"name": "review_comments", "description": "Comments or feedback provided during the review process for the changes associated with the current record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_request_review_date": {"name": "change_request_review_date", "description": "The date when the change request was reviewed or evaluated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_request_review_status": {"name": "change_request_review_status", "description": "The status or outcome of the review process for the change request associated with the current record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_request_risk": {"name": "change_request_risk", "description": "The level of risk associated with the changes, indicating the potential impact or consequences of implementing the modifications outlined in the current record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "risk_impact_analysis": {"name": "risk_impact_analysis", "description": "An analysis or assessment of the impact or consequences of the changes outlined in the current record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_request_scope": {"name": "change_request_scope", "description": "The scope or extent of the changes outlined in the current record, specifying the areas or components affected by the modifications.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_request_start_date": {"name": "change_request_start_date", "description": "The requested start date for the implementation or execution of the changes associated with the current record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_request_created_at": {"name": "change_request_created_at", "description": "Date and time when the record was initially created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_request_updated_at": {"name": "change_request_updated_at", "description": "Date and time when the record was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_request_test_plan": {"name": "change_request_test_plan", "description": "Information about the plan or process for testing the changes requested by the change request of this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_request_type": {"name": "change_request_type", "description": "The type or category of the changes outlined in the current record, indicating the nature or purpose of the modifications.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_change_request_unauthorized": {"name": "is_change_request_unauthorized", "description": "Indicates whether the changes associated with the current record were made without proper authorization or approval.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "Indicates the schema which the field originated. This is especially important when leveraging the union schema feature.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "servicenow://models/staging/stg_servicenow.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_servicenow", "materialized": "view"}, "created_at": 1708640658.5893419, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_stg_servicenow`.`stg_servicenow__change_request`", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_servicenow__change_request_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_servicenow__change_request_base')),\n staging_columns=get_change_request_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='servicenow_union_schemas', \n union_database_variable='servicenow_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation, \n cast(sys_id as {{ dbt.type_string() }}) as change_request_id,\n cast(sys_created_on as {{ dbt.type_timestamp() }}) as change_request_created_at,\n cast(sys_updated_on as {{ dbt.type_timestamp() }}) as change_request_updated_at,\n _fivetran_deleted,\n _fivetran_synced,\n backout_plan,\n cab_date,\n cab_date_time,\n cab_delegate_link,\n cast(cab_delegate_value as {{ dbt.type_string() }}) as cab_delegate_value,\n cab_recommendation,\n cab_required as is_cab_required,\n category as change_request_category,\n change_plan,\n chg_model_link,\n cast(chg_model_value as {{ dbt.type_string() }}) as chg_model_value,\n close_code as change_request_close_code,\n conflict_last_run,\n conflict_status,\n end_date as change_request_end_date, -- sometimes the actual change and the change request timelines don't line up, so let's specify this is pertaining to the change request.\n implementation_plan as change_request_implementation_plan,\n justification as change_request_justification,\n on_hold as is_change_request_on_hold,\n on_hold_reason as change_request_on_hold_reason,\n on_hold_task,\n outside_maintenance_schedule,\n phase as change_request_phase,\n phase_state as change_request_phase_state,\n production_system as is_production_system,\n reason as change_request_reason,\n requested_by_date as change_requested_by_date,\n requested_by_link as change_requested_by_link,\n cast(requested_by_value as {{ dbt.type_string() }}) as change_requested_by_value,\n review_comments,\n review_date as change_request_review_date,\n review_status as change_request_review_status,\n risk as change_request_risk,\n risk_impact_analysis,\n scope as change_request_scope,\n start_date as change_request_start_date,\n test_plan as change_request_test_plan,\n type as change_request_type,\n unauthorized as is_change_request_unauthorized\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_servicenow__change_request_base", "package": null, "version": null}, {"name": "stg_servicenow__change_request_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.servicenow.get_change_request_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string", "macro.dbt.type_timestamp"], "nodes": ["model.servicenow.stg_servicenow__change_request_base"]}, "compiled_path": "target/compiled/servicenow/models/staging/stg_servicenow__change_request.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_stg_servicenow`.`stg_servicenow__change_request_base`\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n backout_plan\n \n as \n \n backout_plan\n \n, \n \n \n cab_date\n \n as \n \n cab_date\n \n, \n \n \n cab_date_time\n \n as \n \n cab_date_time\n \n, \n \n \n cab_delegate_link\n \n as \n \n cab_delegate_link\n \n, \n \n \n cab_delegate_value\n \n as \n \n cab_delegate_value\n \n, \n \n \n cab_recommendation\n \n as \n \n cab_recommendation\n \n, \n \n \n cab_required\n \n as \n \n cab_required\n \n, \n \n \n category\n \n as \n \n category\n \n, \n \n \n change_plan\n \n as \n \n change_plan\n \n, \n \n \n chg_model_link\n \n as \n \n chg_model_link\n \n, \n \n \n chg_model_value\n \n as \n \n chg_model_value\n \n, \n \n \n close_code\n \n as \n \n close_code\n \n, \n \n \n conflict_last_run\n \n as \n \n conflict_last_run\n \n, \n \n \n conflict_status\n \n as \n \n conflict_status\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n implementation_plan\n \n as \n \n implementation_plan\n \n, \n \n \n justification\n \n as \n \n justification\n \n, \n \n \n on_hold\n \n as \n \n on_hold\n \n, \n \n \n on_hold_reason\n \n as \n \n on_hold_reason\n \n, \n \n \n on_hold_task\n \n as \n \n on_hold_task\n \n, \n \n \n outside_maintenance_schedule\n \n as \n \n outside_maintenance_schedule\n \n, \n \n \n phase\n \n as \n \n phase\n \n, \n \n \n phase_state\n \n as \n \n phase_state\n \n, \n \n \n production_system\n \n as \n \n production_system\n \n, \n \n \n reason\n \n as \n \n reason\n \n, \n \n \n requested_by_date\n \n as \n \n requested_by_date\n \n, \n \n \n requested_by_link\n \n as \n \n requested_by_link\n \n, \n \n \n requested_by_value\n \n as \n \n requested_by_value\n \n, \n \n \n review_comments\n \n as \n \n review_comments\n \n, \n \n \n review_date\n \n as \n \n review_date\n \n, \n \n \n review_status\n \n as \n \n review_status\n \n, \n \n \n risk\n \n as \n \n risk\n \n, \n \n \n risk_impact_analysis\n \n as \n \n risk_impact_analysis\n \n, \n \n \n scope\n \n as \n \n scope\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n std_change_producer_version_link\n \n as \n \n std_change_producer_version_link\n \n, \n \n \n std_change_producer_version_value\n \n as \n \n std_change_producer_version_value\n \n, \n \n \n sys_created_on\n \n as \n \n sys_created_on\n \n, \n \n \n sys_id\n \n as \n \n sys_id\n \n, \n \n \n sys_updated_on\n \n as \n \n sys_updated_on\n \n, \n \n \n test_plan\n \n as \n \n test_plan\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n unauthorized\n \n as \n \n unauthorized\n \n\n\n\n \n\n\n, cast('' as STRING) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation, \n cast(sys_id as STRING) as change_request_id,\n cast(sys_created_on as TIMESTAMP) as change_request_created_at,\n cast(sys_updated_on as TIMESTAMP) as change_request_updated_at,\n _fivetran_deleted,\n _fivetran_synced,\n backout_plan,\n cab_date,\n cab_date_time,\n cab_delegate_link,\n cast(cab_delegate_value as STRING) as cab_delegate_value,\n cab_recommendation,\n cab_required as is_cab_required,\n category as change_request_category,\n change_plan,\n chg_model_link,\n cast(chg_model_value as STRING) as chg_model_value,\n close_code as change_request_close_code,\n conflict_last_run,\n conflict_status,\n end_date as change_request_end_date, -- sometimes the actual change and the change request timelines don't line up, so let's specify this is pertaining to the change request.\n implementation_plan as change_request_implementation_plan,\n justification as change_request_justification,\n on_hold as is_change_request_on_hold,\n on_hold_reason as change_request_on_hold_reason,\n on_hold_task,\n outside_maintenance_schedule,\n phase as change_request_phase,\n phase_state as change_request_phase_state,\n production_system as is_production_system,\n reason as change_request_reason,\n requested_by_date as change_requested_by_date,\n requested_by_link as change_requested_by_link,\n cast(requested_by_value as STRING) as change_requested_by_value,\n review_comments,\n review_date as change_request_review_date,\n review_status as change_request_review_status,\n risk as change_request_risk,\n risk_impact_analysis,\n scope as change_request_scope,\n start_date as change_request_start_date,\n test_plan as change_request_test_plan,\n type as change_request_type,\n unauthorized as is_change_request_unauthorized\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.servicenow.stg_servicenow__problem_task": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_stg_servicenow", "name": "stg_servicenow__problem_task", "resource_type": "model", "package_name": "servicenow", "path": "staging/stg_servicenow__problem_task.sql", "original_file_path": "models/staging/stg_servicenow__problem_task.sql", "unique_id": "model.servicenow.stg_servicenow__problem_task", "fqn": ["servicenow", "staging", "stg_servicenow__problem_task"], "alias": "stg_servicenow__problem_task", "checksum": {"name": "sha256", "checksum": "6cc90b7b52838ee46cb8ec8fe10014401745dafd7f1c0f0eae30e75ea3b1aac1"}, "config": {"enabled": true, "alias": null, "schema": "stg_servicenow", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "Staging table containing all the information related to the problem tasks.", "columns": {"problem_task_id": {"name": "problem_task_id", "description": "Unique identifier for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "Indicates the schema which the field originated. This is especially important when leveraging the union schema feature.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates whether the task record has been marked as deleted by the Fivetran connector.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Indicates whether the task record has been synchronized by the Fivetran connector.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_task_cause_code": {"name": "problem_task_cause_code", "description": "The code or identifier associated with the cause of the issue or problem.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_task_close_code": {"name": "problem_task_close_code", "description": "The code or identifier associated with the closure or resolution of the problem task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "other_reason": {"name": "other_reason", "description": "Additional information or reasons associated with the issue, especially if it falls outside standard categories.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_link": {"name": "problem_link", "description": "A link to the problem record associated with the issue or incident.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_task_type": {"name": "problem_task_type", "description": "The type or category of the task associated with the problem or issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_value": {"name": "problem_value", "description": "The unique identifier or name associated with the problem record linked to the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reopen_count": {"name": "reopen_count", "description": "The count of how many times the issue has been reopened.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reopened_at": {"name": "reopened_at", "description": "The timestamp indicating when the issue was last reopened.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reopened_by_link": {"name": "reopened_by_link", "description": "A link to the person or entity who reopened the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reopened_by_value": {"name": "reopened_by_value", "description": "The name or identifier of the person or entity who reopened the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_task_started_at": {"name": "problem_task_started_at", "description": "The timestamp indicating when the issue or incident was initiated or started.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "started_by_link": {"name": "started_by_link", "description": "A link to the person or entity who initiated or started the issue or incident.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "started_by_value": {"name": "started_by_value", "description": "The name or identifier of the person or entity who initiated or started the issue or incident.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_task_created_at": {"name": "problem_task_created_at", "description": "Date and time when the problem task record was initially created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_task_updated_at": {"name": "problem_task_updated_at", "description": "Date and time when the problem task record was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vendor_link": {"name": "vendor_link", "description": "A link to the vendor or external entity associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vendor_value": {"name": "vendor_value", "description": "The name or identifier of the vendor or external entity linked to the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "servicenow://models/staging/stg_servicenow.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_servicenow", "materialized": "view"}, "created_at": 1708640658.5765991, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_stg_servicenow`.`stg_servicenow__problem_task`", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_servicenow__problem_task_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_servicenow__problem_task_base')),\n staging_columns=get_problem_task_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='servicenow_union_schemas', \n union_database_variable='servicenow_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation, \n cast(sys_id as {{ dbt.type_string() }}) as problem_task_id,\n cast(sys_created_on as {{ dbt.type_timestamp() }}) as problem_task_created_at,\n cast(sys_updated_on as {{ dbt.type_timestamp() }}) as problem_task_updated_at,\n _fivetran_deleted,\n _fivetran_synced,\n cause_code as problem_task_cause_code,\n close_code as problem_task_close_code,\n other_reason,\n problem_link,\n problem_task_type,\n cast(problem_value as {{ dbt.type_string() }}) as problem_value,\n reopen_count,\n reopened_at,\n reopened_by_link,\n cast(reopened_by_value as {{ dbt.type_string() }}) as reopened_by_value,\n started_at as problem_task_started_at,\n started_by_link,\n cast(started_by_value as {{ dbt.type_string() }}) as started_by_value,\n vendor_link,\n cast(vendor_value as {{ dbt.type_string() }}) as vendor_value \n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_servicenow__problem_task_base", "package": null, "version": null}, {"name": "stg_servicenow__problem_task_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.servicenow.get_problem_task_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string", "macro.dbt.type_timestamp"], "nodes": ["model.servicenow.stg_servicenow__problem_task_base"]}, "compiled_path": "target/compiled/servicenow/models/staging/stg_servicenow__problem_task.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_stg_servicenow`.`stg_servicenow__problem_task_base`\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n cause_code\n \n as \n \n cause_code\n \n, \n \n \n close_code\n \n as \n \n close_code\n \n, \n \n \n other_reason\n \n as \n \n other_reason\n \n, \n \n \n problem_link\n \n as \n \n problem_link\n \n, \n \n \n problem_task_type\n \n as \n \n problem_task_type\n \n, \n \n \n problem_value\n \n as \n \n problem_value\n \n, \n \n \n reopen_count\n \n as \n \n reopen_count\n \n, \n \n \n reopened_at\n \n as \n \n reopened_at\n \n, \n \n \n reopened_by_link\n \n as \n \n reopened_by_link\n \n, \n \n \n reopened_by_value\n \n as \n \n reopened_by_value\n \n, \n \n \n started_at\n \n as \n \n started_at\n \n, \n \n \n started_by_link\n \n as \n \n started_by_link\n \n, \n \n \n started_by_value\n \n as \n \n started_by_value\n \n, \n \n \n sys_created_on\n \n as \n \n sys_created_on\n \n, \n \n \n sys_id\n \n as \n \n sys_id\n \n, \n \n \n sys_updated_on\n \n as \n \n sys_updated_on\n \n, \n \n \n vendor_link\n \n as \n \n vendor_link\n \n, \n \n \n vendor_value\n \n as \n \n vendor_value\n \n\n\n\n \n\n\n, cast('' as STRING) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation, \n cast(sys_id as STRING) as problem_task_id,\n cast(sys_created_on as TIMESTAMP) as problem_task_created_at,\n cast(sys_updated_on as TIMESTAMP) as problem_task_updated_at,\n _fivetran_deleted,\n _fivetran_synced,\n cause_code as problem_task_cause_code,\n close_code as problem_task_close_code,\n other_reason,\n problem_link,\n problem_task_type,\n cast(problem_value as STRING) as problem_value,\n reopen_count,\n reopened_at,\n reopened_by_link,\n cast(reopened_by_value as STRING) as reopened_by_value,\n started_at as problem_task_started_at,\n started_by_link,\n cast(started_by_value as STRING) as started_by_value,\n vendor_link,\n cast(vendor_value as STRING) as vendor_value \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.servicenow.stg_servicenow__problem": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_stg_servicenow", "name": "stg_servicenow__problem", "resource_type": "model", "package_name": "servicenow", "path": "staging/stg_servicenow__problem.sql", "original_file_path": "models/staging/stg_servicenow__problem.sql", "unique_id": "model.servicenow.stg_servicenow__problem", "fqn": ["servicenow", "staging", "stg_servicenow__problem"], "alias": "stg_servicenow__problem", "checksum": {"name": "sha256", "checksum": "f26514e4af3db48247aa1e8e29ee8d2ea2dc5329a237990bdd620f31b7e3b7b2"}, "config": {"enabled": true, "alias": null, "schema": "stg_servicenow", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "Staging table containing all problem information.", "columns": {"problem_id": {"name": "problem_id", "description": "Unique identifier for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "Indicates the schema which the field originated. This is especially important when leveraging the union schema feature.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates whether the task record has been marked as deleted by the Fivetran connector.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Indicates whether the task record has been synchronized by the Fivetran connector.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_category": {"name": "problem_category", "description": "The category of the problem.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cause_notes": {"name": "cause_notes", "description": "Additional notes or details about the cause of a particular issue or incident.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_confirmed_at": {"name": "problem_confirmed_at", "description": "The timestamp indicating when the problem was confirmed or acknowledged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_confirmed_by_link": {"name": "problem_confirmed_by_link", "description": "A link to the person or entity who confirmed or acknowledged the problem.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_confirmed_by_value": {"name": "problem_confirmed_by_value", "description": "The name or identifier of the person or entity who confirmed or acknowledged the problem.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "duplicate_of_link": {"name": "duplicate_of_link", "description": "A link to the related issue that is identified as a duplicate of the current one.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "duplicate_of_value": {"name": "duplicate_of_value", "description": "The name or identifier of the related issue that is identified as a duplicate.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_first_reported_by_task_link": {"name": "problem_first_reported_by_task_link", "description": "A link to the task or activity that first reported the problem.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_first_reported_by_task_value": {"name": "problem_first_reported_by_task_value", "description": "The name or identifier of the task or activity that first reported the problem.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_fix_at": {"name": "problem_fix_at", "description": "The timestamp indicating when the problem is scheduled or planned to be fixed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_fix_by_link": {"name": "problem_fix_by_link", "description": "A link to the person or entity responsible for fixing the problem.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_fix_by_value": {"name": "problem_fix_by_value", "description": "The name or identifier of the person or entity responsible for fixing the problem.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fix_communicated_at": {"name": "fix_communicated_at", "description": "The timestamp indicating when the fix for the issue was communicated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fix_communicated_by_link": {"name": "fix_communicated_by_link", "description": "A link to the person or entity who communicated the fix for the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fix_communicated_by_value": {"name": "fix_communicated_by_value", "description": "The name or identifier of the person or entity who communicated the fix for the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_fix_notes": {"name": "problem_fix_notes", "description": "Additional notes or details related to the fix for the problem.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_known_error": {"name": "is_known_error", "description": "Indicates whether the issue is a known error with a documented resolution.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_major_problem": {"name": "is_major_problem", "description": "Indicates whether the issue is categorized as a major problem.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_state": {"name": "problem_state", "description": "The current state or status of the problem or issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_related_incidents": {"name": "problem_related_incidents", "description": "Number of incidents that are related to the current problem.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reopen_count": {"name": "reopen_count", "description": "The count of how many times the issue has been reopened.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reopened_at": {"name": "reopened_at", "description": "The timestamp indicating when the issue was last reopened.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reopened_by_link": {"name": "reopened_by_link", "description": "A link to the person or entity who reopened the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reopened_by_value": {"name": "reopened_by_value", "description": "The name or identifier of the person or entity who reopened the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_resolution_code": {"name": "problem_resolution_code", "description": "The code or identifier associated with the resolution of the problem.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_resolved_at": {"name": "problem_resolved_at", "description": "The timestamp indicating when the problem was resolved.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "resolved_by_link": {"name": "resolved_by_link", "description": "A link to the person or entity who resolved the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_resolved_by_value": {"name": "problem_resolved_by_value", "description": "The name or identifier of the person or entity who resolved the problem.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "review_outcome": {"name": "review_outcome", "description": "The outcome or result of the review process for the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "rfc_link": {"name": "rfc_link", "description": "A link to the Request for Change (RFC) associated with the issue or incident.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "rfc_value": {"name": "rfc_value", "description": "The unique identifier or name associated with the Request for Change (RFC) linked to the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_subcategory": {"name": "problem_subcategory", "description": "The specific subcategory or classification of the issue, providing more detailed information about its nature.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_created_at": {"name": "problem_created_at", "description": "Date and time when the problem record was initially created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_updated_at": {"name": "problem_updated_at", "description": "Date and time when the problem record was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "workaround": {"name": "workaround", "description": "A description of a temporary or alternative solution that can be applied to address the issue before a permanent fix \nis implemented.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "workaround_applied": {"name": "workaround_applied", "description": "Indicates whether a workaround has been applied to address the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "workaround_communicated_at": {"name": "workaround_communicated_at", "description": "The timestamp indicating when the workaround for the issue was communicated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "workaround_communicated_by_link": {"name": "workaround_communicated_by_link", "description": "A link to the person or entity who communicated the workaround for the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "workaround_communicated_by_value": {"name": "workaround_communicated_by_value", "description": "The name or identifier of the person or entity who communicated the workaround for the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "servicenow://models/staging/stg_servicenow.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_servicenow", "materialized": "view"}, "created_at": 1708640658.5731452, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_stg_servicenow`.`stg_servicenow__problem`", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_servicenow__problem_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_servicenow__problem_base')),\n staging_columns=get_problem_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='servicenow_union_schemas', \n union_database_variable='servicenow_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n cast(sys_id as {{ dbt.type_string() }}) as problem_id,\n cast(sys_created_on as {{ dbt.type_timestamp() }}) as problem_created_at,\n cast(sys_updated_on as {{ dbt.type_timestamp() }}) as problem_updated_at,\n _fivetran_deleted,\n _fivetran_synced,\n category as problem_category,\n cause_notes,\n confirmed_at as problem_confirmed_at,\n confirmed_by_link as problem_confirmed_by_link,\n cast(confirmed_by_value as {{ dbt.type_string() }}) as problem_confirmed_by_value,\n duplicate_of_link,\n cast(duplicate_of_value as {{ dbt.type_string() }}) as duplicate_of_value,\n first_reported_by_task_link as problem_first_reported_by_task_link,\n first_reported_by_task_value as problem_first_reported_by_task_value,\n fix_at as problem_fix_at,\n fix_by_link as problem_fix_by_link,\n cast(fix_by_value as {{ dbt.type_string() }}) as problem_fix_by_value,\n fix_communicated_at,\n fix_communicated_by_link,\n cast(fix_communicated_by_value as {{ dbt.type_string() }}) as fix_communicated_by_value,\n fix_notes as problem_fix_notes,\n known_error as is_known_error,\n major_problem as is_major_problem,\n problem_state,\n related_incidents as problem_related_incidents,\n reopen_count,\n reopened_at,\n reopened_by_link,\n cast(reopened_by_value as {{ dbt.type_string() }}) as reopened_by_value,\n resolution_code as problem_resolution_code,\n resolved_at as problem_resolved_at,\n resolved_by_link,\n cast(resolved_by_value as {{ dbt.type_string() }}) as problem_resolved_by_value,\n review_outcome,\n rfc_link,\n cast(rfc_value as {{ dbt.type_string() }}) as rfc_value,\n subcategory as problem_subcategory,\n workaround,\n workaround_applied,\n workaround_communicated_at,\n workaround_communicated_by_link,\n cast(workaround_communicated_by_value as {{ dbt.type_string() }}) as workaround_communicated_by_value \n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_servicenow__problem_base", "package": null, "version": null}, {"name": "stg_servicenow__problem_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.servicenow.get_problem_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_string", "macro.dbt.type_timestamp"], "nodes": ["model.servicenow.stg_servicenow__problem_base"]}, "compiled_path": "target/compiled/servicenow/models/staging/stg_servicenow__problem.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_stg_servicenow`.`stg_servicenow__problem_base`\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n category\n \n as \n \n category\n \n, \n \n \n cause_notes\n \n as \n \n cause_notes\n \n, \n \n \n confirmed_at\n \n as \n \n confirmed_at\n \n, \n \n \n confirmed_by_link\n \n as \n \n confirmed_by_link\n \n, \n \n \n confirmed_by_value\n \n as \n \n confirmed_by_value\n \n, \n \n \n duplicate_of_link\n \n as \n \n duplicate_of_link\n \n, \n \n \n duplicate_of_value\n \n as \n \n duplicate_of_value\n \n, \n \n \n first_reported_by_task_link\n \n as \n \n first_reported_by_task_link\n \n, \n \n \n first_reported_by_task_value\n \n as \n \n first_reported_by_task_value\n \n, \n \n \n fix_at\n \n as \n \n fix_at\n \n, \n \n \n fix_by_link\n \n as \n \n fix_by_link\n \n, \n \n \n fix_by_value\n \n as \n \n fix_by_value\n \n, \n \n \n fix_communicated_at\n \n as \n \n fix_communicated_at\n \n, \n \n \n fix_communicated_by_link\n \n as \n \n fix_communicated_by_link\n \n, \n \n \n fix_communicated_by_value\n \n as \n \n fix_communicated_by_value\n \n, \n \n \n fix_notes\n \n as \n \n fix_notes\n \n, \n \n \n known_error\n \n as \n \n known_error\n \n, \n \n \n major_problem\n \n as \n \n major_problem\n \n, \n \n \n problem_state\n \n as \n \n problem_state\n \n, \n \n \n related_incidents\n \n as \n \n related_incidents\n \n, \n \n \n reopen_count\n \n as \n \n reopen_count\n \n, \n \n \n reopened_at\n \n as \n \n reopened_at\n \n, \n \n \n reopened_by_link\n \n as \n \n reopened_by_link\n \n, \n \n \n reopened_by_value\n \n as \n \n reopened_by_value\n \n, \n \n \n resolution_code\n \n as \n \n resolution_code\n \n, \n \n \n resolved_at\n \n as \n \n resolved_at\n \n, \n \n \n resolved_by_link\n \n as \n \n resolved_by_link\n \n, \n \n \n resolved_by_value\n \n as \n \n resolved_by_value\n \n, \n \n \n review_outcome\n \n as \n \n review_outcome\n \n, \n \n \n rfc_link\n \n as \n \n rfc_link\n \n, \n \n \n rfc_value\n \n as \n \n rfc_value\n \n, \n \n \n subcategory\n \n as \n \n subcategory\n \n, \n \n \n sys_created_on\n \n as \n \n sys_created_on\n \n, \n \n \n sys_id\n \n as \n \n sys_id\n \n, \n \n \n sys_updated_on\n \n as \n \n sys_updated_on\n \n, \n \n \n workaround\n \n as \n \n workaround\n \n, \n \n \n workaround_applied\n \n as \n \n workaround_applied\n \n, \n \n \n workaround_communicated_at\n \n as \n \n workaround_communicated_at\n \n, \n \n \n workaround_communicated_by_link\n \n as \n \n workaround_communicated_by_link\n \n, \n \n \n workaround_communicated_by_value\n \n as \n \n workaround_communicated_by_value\n \n\n\n\n \n\n\n, cast('' as STRING) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n cast(sys_id as STRING) as problem_id,\n cast(sys_created_on as TIMESTAMP) as problem_created_at,\n cast(sys_updated_on as TIMESTAMP) as problem_updated_at,\n _fivetran_deleted,\n _fivetran_synced,\n category as problem_category,\n cause_notes,\n confirmed_at as problem_confirmed_at,\n confirmed_by_link as problem_confirmed_by_link,\n cast(confirmed_by_value as STRING) as problem_confirmed_by_value,\n duplicate_of_link,\n cast(duplicate_of_value as STRING) as duplicate_of_value,\n first_reported_by_task_link as problem_first_reported_by_task_link,\n first_reported_by_task_value as problem_first_reported_by_task_value,\n fix_at as problem_fix_at,\n fix_by_link as problem_fix_by_link,\n cast(fix_by_value as STRING) as problem_fix_by_value,\n fix_communicated_at,\n fix_communicated_by_link,\n cast(fix_communicated_by_value as STRING) as fix_communicated_by_value,\n fix_notes as problem_fix_notes,\n known_error as is_known_error,\n major_problem as is_major_problem,\n problem_state,\n related_incidents as problem_related_incidents,\n reopen_count,\n reopened_at,\n reopened_by_link,\n cast(reopened_by_value as STRING) as reopened_by_value,\n resolution_code as problem_resolution_code,\n resolved_at as problem_resolved_at,\n resolved_by_link,\n cast(resolved_by_value as STRING) as problem_resolved_by_value,\n review_outcome,\n rfc_link,\n cast(rfc_value as STRING) as rfc_value,\n subcategory as problem_subcategory,\n workaround,\n workaround_applied,\n workaround_communicated_at,\n workaround_communicated_by_link,\n cast(workaround_communicated_by_value as STRING) as workaround_communicated_by_value \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.servicenow.stg_servicenow__task_base": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_stg_servicenow", "name": "stg_servicenow__task_base", "resource_type": "model", "package_name": "servicenow", "path": "staging/base/stg_servicenow__task_base.sql", "original_file_path": "models/staging/base/stg_servicenow__task_base.sql", "unique_id": "model.servicenow.stg_servicenow__task_base", "fqn": ["servicenow", "staging", "base", "stg_servicenow__task_base"], "alias": "stg_servicenow__task_base", "checksum": {"name": "sha256", "checksum": "0cad1dc09fc59c7135204091694f30b217b693fb637510d071625d33d9ff3d3e"}, "config": {"enabled": true, "alias": null, "schema": "stg_servicenow", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_servicenow", "materialized": "view"}, "created_at": 1708640657.04034, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_stg_servicenow`.`stg_servicenow__task_base`", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='task', \n database_variable='servicenow_database', \n schema_variable='servicenow_schema', \n default_database=target.database,\n default_schema='servicenow',\n default_variable='task',\n union_schema_variable='servicenow_union_schemas',\n union_database_variable='servicenow_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["servicenow", "task"], ["servicenow", "task"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.servicenow.servicenow.task"]}, "compiled_path": "target/compiled/servicenow/models/staging/base/stg_servicenow__task_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n select * \n from `dbt-package-testing`.`servicenow`.`task`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.servicenow.stg_servicenow__incident_base": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_stg_servicenow", "name": "stg_servicenow__incident_base", "resource_type": "model", "package_name": "servicenow", "path": "staging/base/stg_servicenow__incident_base.sql", "original_file_path": "models/staging/base/stg_servicenow__incident_base.sql", "unique_id": "model.servicenow.stg_servicenow__incident_base", "fqn": ["servicenow", "staging", "base", "stg_servicenow__incident_base"], "alias": "stg_servicenow__incident_base", "checksum": {"name": "sha256", "checksum": "04b876e9b11899525dc3488a251bc315d59454740a3b652f84d8604da2184151"}, "config": {"enabled": true, "alias": null, "schema": "stg_servicenow", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_servicenow", "materialized": "view"}, "created_at": 1708640657.092191, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_stg_servicenow`.`stg_servicenow__incident_base`", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='incident', \n database_variable='servicenow_database', \n schema_variable='servicenow_schema', \n default_database=target.database,\n default_schema='servicenow',\n default_variable='incident',\n union_schema_variable='servicenow_union_schemas',\n union_database_variable='servicenow_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["servicenow", "incident"], ["servicenow", "incident"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.servicenow.servicenow.incident"]}, "compiled_path": "target/compiled/servicenow/models/staging/base/stg_servicenow__incident_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n select * \n from `dbt-package-testing`.`servicenow`.`incident`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.servicenow.stg_servicenow__cmdb_ci_service_base": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_stg_servicenow", "name": "stg_servicenow__cmdb_ci_service_base", "resource_type": "model", "package_name": "servicenow", "path": "staging/base/stg_servicenow__cmdb_ci_service_base.sql", "original_file_path": "models/staging/base/stg_servicenow__cmdb_ci_service_base.sql", "unique_id": "model.servicenow.stg_servicenow__cmdb_ci_service_base", "fqn": ["servicenow", "staging", "base", "stg_servicenow__cmdb_ci_service_base"], "alias": "stg_servicenow__cmdb_ci_service_base", "checksum": {"name": "sha256", "checksum": "1f6d14fdc89271bcd14730d78980201e5b757f7ccb6559d83b343fa311f78df9"}, "config": {"enabled": true, "alias": null, "schema": "stg_servicenow", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_servicenow", "materialized": "view"}, "created_at": 1708640657.10289, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_stg_servicenow`.`stg_servicenow__cmdb_ci_service_base`", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='cmdb_ci_service', \n database_variable='servicenow_database', \n schema_variable='servicenow_schema', \n default_database=target.database,\n default_schema='servicenow',\n default_variable='cmdb_ci_service',\n union_schema_variable='servicenow_union_schemas',\n union_database_variable='servicenow_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["servicenow", "cmdb_ci_service"], ["servicenow", "cmdb_ci_service"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.servicenow.servicenow.cmdb_ci_service"]}, "compiled_path": "target/compiled/servicenow/models/staging/base/stg_servicenow__cmdb_ci_service_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n select * \n from `dbt-package-testing`.`servicenow`.`cmdb_ci_service`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.servicenow.stg_servicenow__problem_base": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_stg_servicenow", "name": "stg_servicenow__problem_base", "resource_type": "model", "package_name": "servicenow", "path": "staging/base/stg_servicenow__problem_base.sql", "original_file_path": "models/staging/base/stg_servicenow__problem_base.sql", "unique_id": "model.servicenow.stg_servicenow__problem_base", "fqn": ["servicenow", "staging", "base", "stg_servicenow__problem_base"], "alias": "stg_servicenow__problem_base", "checksum": {"name": "sha256", "checksum": "306c4bcde69f312ed509c7760f18f69d4e7315fc60f0523ea888c36921e49459"}, "config": {"enabled": true, "alias": null, "schema": "stg_servicenow", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_servicenow", "materialized": "view"}, "created_at": 1708640657.113724, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_stg_servicenow`.`stg_servicenow__problem_base`", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='problem', \n database_variable='servicenow_database', \n schema_variable='servicenow_schema', \n default_database=target.database,\n default_schema='servicenow',\n default_variable='problem',\n union_schema_variable='servicenow_union_schemas',\n union_database_variable='servicenow_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["servicenow", "problem"], ["servicenow", "problem"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.servicenow.servicenow.problem"]}, "compiled_path": "target/compiled/servicenow/models/staging/base/stg_servicenow__problem_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n select * \n from `dbt-package-testing`.`servicenow`.`problem`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.servicenow.stg_servicenow__cmdb_ci_base": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_stg_servicenow", "name": "stg_servicenow__cmdb_ci_base", "resource_type": "model", "package_name": "servicenow", "path": "staging/base/stg_servicenow__cmdb_ci_base.sql", "original_file_path": "models/staging/base/stg_servicenow__cmdb_ci_base.sql", "unique_id": "model.servicenow.stg_servicenow__cmdb_ci_base", "fqn": ["servicenow", "staging", "base", "stg_servicenow__cmdb_ci_base"], "alias": "stg_servicenow__cmdb_ci_base", "checksum": {"name": "sha256", "checksum": "7f7635b116aa50890cfaad157477ab040436c4041a5a429f112280441749f742"}, "config": {"enabled": true, "alias": null, "schema": "stg_servicenow", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_servicenow", "materialized": "view"}, "created_at": 1708640657.1245492, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_stg_servicenow`.`stg_servicenow__cmdb_ci_base`", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='cmdb_ci', \n database_variable='servicenow_database', \n schema_variable='servicenow_schema', \n default_database=target.database,\n default_schema='servicenow',\n default_variable='cmdb_ci',\n union_schema_variable='servicenow_union_schemas',\n union_database_variable='servicenow_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["servicenow", "cmdb_ci"], ["servicenow", "cmdb_ci"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.servicenow.servicenow.cmdb_ci"]}, "compiled_path": "target/compiled/servicenow/models/staging/base/stg_servicenow__cmdb_ci_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n select * \n from `dbt-package-testing`.`servicenow`.`cmdb_ci`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.servicenow.stg_servicenow__sys_user_group_base": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_stg_servicenow", "name": "stg_servicenow__sys_user_group_base", "resource_type": "model", "package_name": "servicenow", "path": "staging/base/stg_servicenow__sys_user_group_base.sql", "original_file_path": "models/staging/base/stg_servicenow__sys_user_group_base.sql", "unique_id": "model.servicenow.stg_servicenow__sys_user_group_base", "fqn": ["servicenow", "staging", "base", "stg_servicenow__sys_user_group_base"], "alias": "stg_servicenow__sys_user_group_base", "checksum": {"name": "sha256", "checksum": "3e16e0e6828d0db33e6903ff1a2f7c245b251378aec5d43438ab4024d47a88bc"}, "config": {"enabled": true, "alias": null, "schema": "stg_servicenow", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_servicenow", "materialized": "view"}, "created_at": 1708640657.134976, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_stg_servicenow`.`stg_servicenow__sys_user_group_base`", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='sys_user_group', \n database_variable='servicenow_database', \n schema_variable='servicenow_schema', \n default_database=target.database,\n default_schema='servicenow',\n default_variable='sys_user_group',\n union_schema_variable='servicenow_union_schemas',\n union_database_variable='servicenow_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["servicenow", "sys_user_group"], ["servicenow", "sys_user_group"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.servicenow.servicenow.sys_user_group"]}, "compiled_path": "target/compiled/servicenow/models/staging/base/stg_servicenow__sys_user_group_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n select * \n from `dbt-package-testing`.`servicenow`.`sys_user_group`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.servicenow.stg_servicenow__problem_task_base": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_stg_servicenow", "name": "stg_servicenow__problem_task_base", "resource_type": "model", "package_name": "servicenow", "path": "staging/base/stg_servicenow__problem_task_base.sql", "original_file_path": "models/staging/base/stg_servicenow__problem_task_base.sql", "unique_id": "model.servicenow.stg_servicenow__problem_task_base", "fqn": ["servicenow", "staging", "base", "stg_servicenow__problem_task_base"], "alias": "stg_servicenow__problem_task_base", "checksum": {"name": "sha256", "checksum": "09f7c5207c5838fd6f1e064cd7862e97b8363787ad3bcda6a0f47fcc2bb8485b"}, "config": {"enabled": true, "alias": null, "schema": "stg_servicenow", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_servicenow", "materialized": "view"}, "created_at": 1708640657.146448, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_stg_servicenow`.`stg_servicenow__problem_task_base`", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='problem_task', \n database_variable='servicenow_database', \n schema_variable='servicenow_schema', \n default_database=target.database,\n default_schema='servicenow',\n default_variable='problem_task',\n union_schema_variable='servicenow_union_schemas',\n union_database_variable='servicenow_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["servicenow", "problem_task"], ["servicenow", "problem_task"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.servicenow.servicenow.problem_task"]}, "compiled_path": "target/compiled/servicenow/models/staging/base/stg_servicenow__problem_task_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n select * \n from `dbt-package-testing`.`servicenow`.`problem_task`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.servicenow.stg_servicenow__change_request_base": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_stg_servicenow", "name": "stg_servicenow__change_request_base", "resource_type": "model", "package_name": "servicenow", "path": "staging/base/stg_servicenow__change_request_base.sql", "original_file_path": "models/staging/base/stg_servicenow__change_request_base.sql", "unique_id": "model.servicenow.stg_servicenow__change_request_base", "fqn": ["servicenow", "staging", "base", "stg_servicenow__change_request_base"], "alias": "stg_servicenow__change_request_base", "checksum": {"name": "sha256", "checksum": "5aeede689fdb26bb00060cafa335ed0a2f96735ff2030c4e89dbbc18c06a419b"}, "config": {"enabled": true, "alias": null, "schema": "stg_servicenow", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_servicenow", "materialized": "view"}, "created_at": 1708640657.1574159, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_stg_servicenow`.`stg_servicenow__change_request_base`", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='change_request', \n database_variable='servicenow_database', \n schema_variable='servicenow_schema', \n default_database=target.database,\n default_schema='servicenow',\n default_variable='change_request',\n union_schema_variable='servicenow_union_schemas',\n union_database_variable='servicenow_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["servicenow", "change_request"], ["servicenow", "change_request"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.servicenow.servicenow.change_request"]}, "compiled_path": "target/compiled/servicenow/models/staging/base/stg_servicenow__change_request_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n select * \n from `dbt-package-testing`.`servicenow`.`change_request`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.servicenow.stg_servicenow__task_sla_base": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_stg_servicenow", "name": "stg_servicenow__task_sla_base", "resource_type": "model", "package_name": "servicenow", "path": "staging/base/stg_servicenow__task_sla_base.sql", "original_file_path": "models/staging/base/stg_servicenow__task_sla_base.sql", "unique_id": "model.servicenow.stg_servicenow__task_sla_base", "fqn": ["servicenow", "staging", "base", "stg_servicenow__task_sla_base"], "alias": "stg_servicenow__task_sla_base", "checksum": {"name": "sha256", "checksum": "505dd0e4fbd5f66bfdd1a982c3bdc3b66eaede5f0855730683734fdeaaf363a1"}, "config": {"enabled": true, "alias": null, "schema": "stg_servicenow", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_servicenow", "materialized": "view"}, "created_at": 1708640657.168119, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_stg_servicenow`.`stg_servicenow__task_sla_base`", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='task_sla', \n database_variable='servicenow_database', \n schema_variable='servicenow_schema', \n default_database=target.database,\n default_schema='servicenow',\n default_variable='task_sla',\n union_schema_variable='servicenow_union_schemas',\n union_database_variable='servicenow_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["servicenow", "task_sla"], ["servicenow", "task_sla"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.servicenow.servicenow.task_sla"]}, "compiled_path": "target/compiled/servicenow/models/staging/base/stg_servicenow__task_sla_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n select * \n from `dbt-package-testing`.`servicenow`.`task_sla`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.servicenow.stg_servicenow__core_company_base": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_stg_servicenow", "name": "stg_servicenow__core_company_base", "resource_type": "model", "package_name": "servicenow", "path": "staging/base/stg_servicenow__core_company_base.sql", "original_file_path": "models/staging/base/stg_servicenow__core_company_base.sql", "unique_id": "model.servicenow.stg_servicenow__core_company_base", "fqn": ["servicenow", "staging", "base", "stg_servicenow__core_company_base"], "alias": "stg_servicenow__core_company_base", "checksum": {"name": "sha256", "checksum": "769500f7d337f2991f51ff8780e05557121876daf9610e6562f28350f615a705"}, "config": {"enabled": true, "alias": null, "schema": "stg_servicenow", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_servicenow", "materialized": "view"}, "created_at": 1708640657.179181, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_stg_servicenow`.`stg_servicenow__core_company_base`", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='core_company', \n database_variable='servicenow_database', \n schema_variable='servicenow_schema', \n default_database=target.database,\n default_schema='servicenow',\n default_variable='core_company',\n union_schema_variable='servicenow_union_schemas',\n union_database_variable='servicenow_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["servicenow", "core_company"], ["servicenow", "core_company"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.servicenow.servicenow.core_company"]}, "compiled_path": "target/compiled/servicenow/models/staging/base/stg_servicenow__core_company_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n select * \n from `dbt-package-testing`.`servicenow`.`core_company`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.servicenow.stg_servicenow__change_task_base": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_stg_servicenow", "name": "stg_servicenow__change_task_base", "resource_type": "model", "package_name": "servicenow", "path": "staging/base/stg_servicenow__change_task_base.sql", "original_file_path": "models/staging/base/stg_servicenow__change_task_base.sql", "unique_id": "model.servicenow.stg_servicenow__change_task_base", "fqn": ["servicenow", "staging", "base", "stg_servicenow__change_task_base"], "alias": "stg_servicenow__change_task_base", "checksum": {"name": "sha256", "checksum": "91be1a25c14831a17d6db9a00474534df60e447a8d9f76989b6268714f4f5ffc"}, "config": {"enabled": true, "alias": null, "schema": "stg_servicenow", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_servicenow", "materialized": "view"}, "created_at": 1708640657.189692, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_stg_servicenow`.`stg_servicenow__change_task_base`", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='change_task', \n database_variable='servicenow_database', \n schema_variable='servicenow_schema', \n default_database=target.database,\n default_schema='servicenow',\n default_variable='change_task',\n union_schema_variable='servicenow_union_schemas',\n union_database_variable='servicenow_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["servicenow", "change_task"], ["servicenow", "change_task"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.servicenow.servicenow.change_task"]}, "compiled_path": "target/compiled/servicenow/models/staging/base/stg_servicenow__change_task_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n select * \n from `dbt-package-testing`.`servicenow`.`change_task`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.servicenow.stg_servicenow__sys_user_base": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_stg_servicenow", "name": "stg_servicenow__sys_user_base", "resource_type": "model", "package_name": "servicenow", "path": "staging/base/stg_servicenow__sys_user_base.sql", "original_file_path": "models/staging/base/stg_servicenow__sys_user_base.sql", "unique_id": "model.servicenow.stg_servicenow__sys_user_base", "fqn": ["servicenow", "staging", "base", "stg_servicenow__sys_user_base"], "alias": "stg_servicenow__sys_user_base", "checksum": {"name": "sha256", "checksum": "0663be281ab1122b286a10c1ff38597fd4eee537d10df3e27b7df42207b2825a"}, "config": {"enabled": true, "alias": null, "schema": "stg_servicenow", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_servicenow", "materialized": "view"}, "created_at": 1708640657.28571, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_stg_servicenow`.`stg_servicenow__sys_user_base`", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='sys_user', \n database_variable='servicenow_database', \n schema_variable='servicenow_schema', \n default_database=target.database,\n default_schema='servicenow',\n default_variable='sys_user',\n union_schema_variable='servicenow_union_schemas',\n union_database_variable='servicenow_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["servicenow", "sys_user"], ["servicenow", "sys_user"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.servicenow.servicenow.sys_user"]}, "compiled_path": "target/compiled/servicenow/models/staging/base/stg_servicenow__sys_user_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n select * \n from `dbt-package-testing`.`servicenow`.`sys_user`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "test.servicenow.unique_servicenow__task_enhanced_task_id.a974c4dbbc": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "task_id", "model": "{{ get_where_subquery(ref('servicenow__task_enhanced')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "unique_servicenow__task_enhanced_task_id", "resource_type": "test", "package_name": "servicenow", "path": "unique_servicenow__task_enhanced_task_id.sql", "original_file_path": "models/servicenow.yml", "unique_id": "test.servicenow.unique_servicenow__task_enhanced_task_id.a974c4dbbc", "fqn": ["servicenow", "unique_servicenow__task_enhanced_task_id"], "alias": "unique_servicenow__task_enhanced_task_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1708640658.356004, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "servicenow__task_enhanced", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.servicenow.servicenow__task_enhanced"]}, "compiled_path": "target/compiled/servicenow/models/servicenow.yml/unique_servicenow__task_enhanced_task_id.sql", "compiled": true, "compiled_code": "\n \n \n\nwith dbt_test__target as (\n\n select task_id as unique_field\n from `dbt-package-testing`.`zz_dbt_renee_servicenow`.`servicenow__task_enhanced`\n where task_id is not null\n\n)\n\nselect\n unique_field,\n count(*) as n_records\n\nfrom dbt_test__target\ngroup by unique_field\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "task_id", "file_key_name": "models.servicenow__task_enhanced", "attached_node": "model.servicenow.servicenow__task_enhanced"}, "test.servicenow.not_null_servicenow__task_enhanced_task_id.76cea62cda": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "task_id", "model": "{{ get_where_subquery(ref('servicenow__task_enhanced')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_servicenow__task_enhanced_task_id", "resource_type": "test", "package_name": "servicenow", "path": "not_null_servicenow__task_enhanced_task_id.sql", "original_file_path": "models/servicenow.yml", "unique_id": "test.servicenow.not_null_servicenow__task_enhanced_task_id.76cea62cda", "fqn": ["servicenow", "not_null_servicenow__task_enhanced_task_id"], "alias": "not_null_servicenow__task_enhanced_task_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1708640658.359117, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "servicenow__task_enhanced", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.servicenow.servicenow__task_enhanced"]}, "compiled_path": "target/compiled/servicenow/models/servicenow.yml/not_null_servicenow__task_enhanced_task_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect task_id\nfrom `dbt-package-testing`.`zz_dbt_renee_servicenow`.`servicenow__task_enhanced`\nwhere task_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "task_id", "file_key_name": "models.servicenow__task_enhanced", "attached_node": "model.servicenow.servicenow__task_enhanced"}, "test.servicenow.dbt_utils_unique_combination_of_columns_servicenow__activity_summary_task_updated_date__task_state__priority__impact__urgency__source_relation.8ca2665c4e": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["task_updated_date", "task_state", "priority", "impact", "urgency", "source_relation"], "model": "{{ get_where_subquery(ref('servicenow__activity_summary')) }}"}, "namespace": "dbt_utils"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_servicenow__activity_summary_task_updated_date__task_state__priority__impact__urgency__source_relation", "resource_type": "test", "package_name": "servicenow", "path": "dbt_utils_unique_combination_o_cbdfbd9559b8d3f7fb7b2b3034ae9ec9.sql", "original_file_path": "models/servicenow.yml", "unique_id": "test.servicenow.dbt_utils_unique_combination_of_columns_servicenow__activity_summary_task_updated_date__task_state__priority__impact__urgency__source_relation.8ca2665c4e", "fqn": ["servicenow", "dbt_utils_unique_combination_of_columns_servicenow__activity_summary_task_updated_date__task_state__priority__impact__urgency__source_relation"], "alias": "dbt_utils_unique_combination_o_cbdfbd9559b8d3f7fb7b2b3034ae9ec9", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_cbdfbd9559b8d3f7fb7b2b3034ae9ec9", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_cbdfbd9559b8d3f7fb7b2b3034ae9ec9"}, "created_at": 1708640658.3620732, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_cbdfbd9559b8d3f7fb7b2b3034ae9ec9\") }}", "language": "sql", "refs": [{"name": "servicenow__activity_summary", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.servicenow.servicenow__activity_summary"]}, "compiled_path": "target/compiled/servicenow/models/servicenow.yml/dbt_utils_unique_combination_o_cbdfbd9559b8d3f7fb7b2b3034ae9ec9.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n task_updated_date, task_state, priority, impact, urgency, source_relation\n from `dbt-package-testing`.`zz_dbt_renee_servicenow`.`servicenow__activity_summary`\n group by task_updated_date, task_state, priority, impact, urgency, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": null, "file_key_name": "models.servicenow__activity_summary", "attached_node": "model.servicenow.servicenow__activity_summary"}, "test.servicenow.not_null_stg_servicenow__task_task_id.7a50a91303": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "task_id", "model": "{{ get_where_subquery(ref('stg_servicenow__task')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_servicenow__task_task_id", "resource_type": "test", "package_name": "servicenow", "path": "not_null_stg_servicenow__task_task_id.sql", "original_file_path": "models/staging/stg_servicenow.yml", "unique_id": "test.servicenow.not_null_stg_servicenow__task_task_id.7a50a91303", "fqn": ["servicenow", "staging", "not_null_stg_servicenow__task_task_id"], "alias": "not_null_stg_servicenow__task_task_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1708640658.6137779, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_servicenow__task", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.servicenow.stg_servicenow__task"]}, "compiled_path": "target/compiled/servicenow/models/staging/stg_servicenow.yml/not_null_stg_servicenow__task_task_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect task_id\nfrom `dbt-package-testing`.`zz_dbt_renee_stg_servicenow`.`stg_servicenow__task`\nwhere task_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "task_id", "file_key_name": "models.stg_servicenow__task", "attached_node": "model.servicenow.stg_servicenow__task"}, "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__task_task_id__source_relation.4b5ec4b727": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["task_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_servicenow__task')) }}"}, "namespace": "dbt_utils"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_servicenow__task_task_id__source_relation", "resource_type": "test", "package_name": "servicenow", "path": "dbt_utils_unique_combination_o_8167db2a4eccf7739dd11d1e87dcc167.sql", "original_file_path": "models/staging/stg_servicenow.yml", "unique_id": "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__task_task_id__source_relation.4b5ec4b727", "fqn": ["servicenow", "staging", "dbt_utils_unique_combination_of_columns_stg_servicenow__task_task_id__source_relation"], "alias": "dbt_utils_unique_combination_o_8167db2a4eccf7739dd11d1e87dcc167", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_8167db2a4eccf7739dd11d1e87dcc167", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_8167db2a4eccf7739dd11d1e87dcc167"}, "created_at": 1708640658.616985, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_8167db2a4eccf7739dd11d1e87dcc167\") }}", "language": "sql", "refs": [{"name": "stg_servicenow__task", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.servicenow.stg_servicenow__task"]}, "compiled_path": "target/compiled/servicenow/models/staging/stg_servicenow.yml/dbt_utils_unique_combination_o_8167db2a4eccf7739dd11d1e87dcc167.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n task_id, source_relation\n from `dbt-package-testing`.`zz_dbt_renee_stg_servicenow`.`stg_servicenow__task`\n group by task_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": null, "file_key_name": "models.stg_servicenow__task", "attached_node": "model.servicenow.stg_servicenow__task"}, "test.servicenow.not_null_stg_servicenow__task_sla_task_sla_id.c67b0e6fdf": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "task_sla_id", "model": "{{ get_where_subquery(ref('stg_servicenow__task_sla')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_servicenow__task_sla_task_sla_id", "resource_type": "test", "package_name": "servicenow", "path": "not_null_stg_servicenow__task_sla_task_sla_id.sql", "original_file_path": "models/staging/stg_servicenow.yml", "unique_id": "test.servicenow.not_null_stg_servicenow__task_sla_task_sla_id.c67b0e6fdf", "fqn": ["servicenow", "staging", "not_null_stg_servicenow__task_sla_task_sla_id"], "alias": "not_null_stg_servicenow__task_sla_task_sla_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1708640658.623782, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_servicenow__task_sla", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.servicenow.stg_servicenow__task_sla"]}, "compiled_path": "target/compiled/servicenow/models/staging/stg_servicenow.yml/not_null_stg_servicenow__task_sla_task_sla_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect task_sla_id\nfrom `dbt-package-testing`.`zz_dbt_renee_stg_servicenow`.`stg_servicenow__task_sla`\nwhere task_sla_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "task_sla_id", "file_key_name": "models.stg_servicenow__task_sla", "attached_node": "model.servicenow.stg_servicenow__task_sla"}, "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__task_sla_task_sla_id__source_relation.e9939b7a70": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["task_sla_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_servicenow__task_sla')) }}"}, "namespace": "dbt_utils"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_servicenow__task_sla_task_sla_id__source_relation", "resource_type": "test", "package_name": "servicenow", "path": "dbt_utils_unique_combination_o_9a6ae426a268d8c3aa1c380edff453d0.sql", "original_file_path": "models/staging/stg_servicenow.yml", "unique_id": "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__task_sla_task_sla_id__source_relation.e9939b7a70", "fqn": ["servicenow", "staging", "dbt_utils_unique_combination_of_columns_stg_servicenow__task_sla_task_sla_id__source_relation"], "alias": "dbt_utils_unique_combination_o_9a6ae426a268d8c3aa1c380edff453d0", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_9a6ae426a268d8c3aa1c380edff453d0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_9a6ae426a268d8c3aa1c380edff453d0"}, "created_at": 1708640658.627234, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_9a6ae426a268d8c3aa1c380edff453d0\") }}", "language": "sql", "refs": [{"name": "stg_servicenow__task_sla", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.servicenow.stg_servicenow__task_sla"]}, "compiled_path": "target/compiled/servicenow/models/staging/stg_servicenow.yml/dbt_utils_unique_combination_o_9a6ae426a268d8c3aa1c380edff453d0.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n task_sla_id, source_relation\n from `dbt-package-testing`.`zz_dbt_renee_stg_servicenow`.`stg_servicenow__task_sla`\n group by task_sla_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": null, "file_key_name": "models.stg_servicenow__task_sla", "attached_node": "model.servicenow.stg_servicenow__task_sla"}, "test.servicenow.not_null_stg_servicenow__sys_user_user_id.90a8733b9d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "user_id", "model": "{{ get_where_subquery(ref('stg_servicenow__sys_user')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_servicenow__sys_user_user_id", "resource_type": "test", "package_name": "servicenow", "path": "not_null_stg_servicenow__sys_user_user_id.sql", "original_file_path": "models/staging/stg_servicenow.yml", "unique_id": "test.servicenow.not_null_stg_servicenow__sys_user_user_id.90a8733b9d", "fqn": ["servicenow", "staging", "not_null_stg_servicenow__sys_user_user_id"], "alias": "not_null_stg_servicenow__sys_user_user_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1708640658.634793, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_servicenow__sys_user", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.servicenow.stg_servicenow__sys_user"]}, "compiled_path": "target/compiled/servicenow/models/staging/stg_servicenow.yml/not_null_stg_servicenow__sys_user_user_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect user_id\nfrom `dbt-package-testing`.`zz_dbt_renee_stg_servicenow`.`stg_servicenow__sys_user`\nwhere user_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "user_id", "file_key_name": "models.stg_servicenow__sys_user", "attached_node": "model.servicenow.stg_servicenow__sys_user"}, "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__sys_user_user_id__source_relation.2a8836be3c": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["user_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_servicenow__sys_user')) }}"}, "namespace": "dbt_utils"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_servicenow__sys_user_user_id__source_relation", "resource_type": "test", "package_name": "servicenow", "path": "dbt_utils_unique_combination_o_9cb06bc90565019231d3d89413e0ac4d.sql", "original_file_path": "models/staging/stg_servicenow.yml", "unique_id": "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__sys_user_user_id__source_relation.2a8836be3c", "fqn": ["servicenow", "staging", "dbt_utils_unique_combination_of_columns_stg_servicenow__sys_user_user_id__source_relation"], "alias": "dbt_utils_unique_combination_o_9cb06bc90565019231d3d89413e0ac4d", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_9cb06bc90565019231d3d89413e0ac4d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_9cb06bc90565019231d3d89413e0ac4d"}, "created_at": 1708640658.638195, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_9cb06bc90565019231d3d89413e0ac4d\") }}", "language": "sql", "refs": [{"name": "stg_servicenow__sys_user", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.servicenow.stg_servicenow__sys_user"]}, "compiled_path": "target/compiled/servicenow/models/staging/stg_servicenow.yml/dbt_utils_unique_combination_o_9cb06bc90565019231d3d89413e0ac4d.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n user_id, source_relation\n from `dbt-package-testing`.`zz_dbt_renee_stg_servicenow`.`stg_servicenow__sys_user`\n group by user_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": null, "file_key_name": "models.stg_servicenow__sys_user", "attached_node": "model.servicenow.stg_servicenow__sys_user"}, "test.servicenow.not_null_stg_servicenow__problem_problem_id.2b0f45ffad": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "problem_id", "model": "{{ get_where_subquery(ref('stg_servicenow__problem')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_servicenow__problem_problem_id", "resource_type": "test", "package_name": "servicenow", "path": "not_null_stg_servicenow__problem_problem_id.sql", "original_file_path": "models/staging/stg_servicenow.yml", "unique_id": "test.servicenow.not_null_stg_servicenow__problem_problem_id.2b0f45ffad", "fqn": ["servicenow", "staging", "not_null_stg_servicenow__problem_problem_id"], "alias": "not_null_stg_servicenow__problem_problem_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1708640658.6464489, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_servicenow__problem", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.servicenow.stg_servicenow__problem"]}, "compiled_path": "target/compiled/servicenow/models/staging/stg_servicenow.yml/not_null_stg_servicenow__problem_problem_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect problem_id\nfrom `dbt-package-testing`.`zz_dbt_renee_stg_servicenow`.`stg_servicenow__problem`\nwhere problem_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "problem_id", "file_key_name": "models.stg_servicenow__problem", "attached_node": "model.servicenow.stg_servicenow__problem"}, "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__problem_problem_id__source_relation.135d98438b": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["problem_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_servicenow__problem')) }}"}, "namespace": "dbt_utils"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_servicenow__problem_problem_id__source_relation", "resource_type": "test", "package_name": "servicenow", "path": "dbt_utils_unique_combination_o_82249ad0290a130e288af5a17d1ec87e.sql", "original_file_path": "models/staging/stg_servicenow.yml", "unique_id": "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__problem_problem_id__source_relation.135d98438b", "fqn": ["servicenow", "staging", "dbt_utils_unique_combination_of_columns_stg_servicenow__problem_problem_id__source_relation"], "alias": "dbt_utils_unique_combination_o_82249ad0290a130e288af5a17d1ec87e", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_82249ad0290a130e288af5a17d1ec87e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_82249ad0290a130e288af5a17d1ec87e"}, "created_at": 1708640658.649374, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_82249ad0290a130e288af5a17d1ec87e\") }}", "language": "sql", "refs": [{"name": "stg_servicenow__problem", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.servicenow.stg_servicenow__problem"]}, "compiled_path": "target/compiled/servicenow/models/staging/stg_servicenow.yml/dbt_utils_unique_combination_o_82249ad0290a130e288af5a17d1ec87e.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n problem_id, source_relation\n from `dbt-package-testing`.`zz_dbt_renee_stg_servicenow`.`stg_servicenow__problem`\n group by problem_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": null, "file_key_name": "models.stg_servicenow__problem", "attached_node": "model.servicenow.stg_servicenow__problem"}, "test.servicenow.not_null_stg_servicenow__problem_task_problem_task_id.2d07d24f54": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "problem_task_id", "model": "{{ get_where_subquery(ref('stg_servicenow__problem_task')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_servicenow__problem_task_problem_task_id", "resource_type": "test", "package_name": "servicenow", "path": "not_null_stg_servicenow__problem_task_problem_task_id.sql", "original_file_path": "models/staging/stg_servicenow.yml", "unique_id": "test.servicenow.not_null_stg_servicenow__problem_task_problem_task_id.2d07d24f54", "fqn": ["servicenow", "staging", "not_null_stg_servicenow__problem_task_problem_task_id"], "alias": "not_null_stg_servicenow__problem_task_problem_task_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1708640658.656239, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_servicenow__problem_task", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.servicenow.stg_servicenow__problem_task"]}, "compiled_path": "target/compiled/servicenow/models/staging/stg_servicenow.yml/not_null_stg_servicenow__problem_task_problem_task_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect problem_task_id\nfrom `dbt-package-testing`.`zz_dbt_renee_stg_servicenow`.`stg_servicenow__problem_task`\nwhere problem_task_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "problem_task_id", "file_key_name": "models.stg_servicenow__problem_task", "attached_node": "model.servicenow.stg_servicenow__problem_task"}, "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__problem_task_problem_task_id__source_relation.e59f50cae6": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["problem_task_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_servicenow__problem_task')) }}"}, "namespace": "dbt_utils"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_servicenow__problem_task_problem_task_id__source_relation", "resource_type": "test", "package_name": "servicenow", "path": "dbt_utils_unique_combination_o_4b0b06f6181eb4745dadebceb15254b9.sql", "original_file_path": "models/staging/stg_servicenow.yml", "unique_id": "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__problem_task_problem_task_id__source_relation.e59f50cae6", "fqn": ["servicenow", "staging", "dbt_utils_unique_combination_of_columns_stg_servicenow__problem_task_problem_task_id__source_relation"], "alias": "dbt_utils_unique_combination_o_4b0b06f6181eb4745dadebceb15254b9", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_4b0b06f6181eb4745dadebceb15254b9", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_4b0b06f6181eb4745dadebceb15254b9"}, "created_at": 1708640658.659185, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_4b0b06f6181eb4745dadebceb15254b9\") }}", "language": "sql", "refs": [{"name": "stg_servicenow__problem_task", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.servicenow.stg_servicenow__problem_task"]}, "compiled_path": "target/compiled/servicenow/models/staging/stg_servicenow.yml/dbt_utils_unique_combination_o_4b0b06f6181eb4745dadebceb15254b9.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n problem_task_id, source_relation\n from `dbt-package-testing`.`zz_dbt_renee_stg_servicenow`.`stg_servicenow__problem_task`\n group by problem_task_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": null, "file_key_name": "models.stg_servicenow__problem_task", "attached_node": "model.servicenow.stg_servicenow__problem_task"}, "test.servicenow.not_null_stg_servicenow__incident_incident_id.b01cee4a78": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "incident_id", "model": "{{ get_where_subquery(ref('stg_servicenow__incident')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_servicenow__incident_incident_id", "resource_type": "test", "package_name": "servicenow", "path": "not_null_stg_servicenow__incident_incident_id.sql", "original_file_path": "models/staging/stg_servicenow.yml", "unique_id": "test.servicenow.not_null_stg_servicenow__incident_incident_id.b01cee4a78", "fqn": ["servicenow", "staging", "not_null_stg_servicenow__incident_incident_id"], "alias": "not_null_stg_servicenow__incident_incident_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1708640658.665965, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_servicenow__incident", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.servicenow.stg_servicenow__incident"]}, "compiled_path": "target/compiled/servicenow/models/staging/stg_servicenow.yml/not_null_stg_servicenow__incident_incident_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect incident_id\nfrom `dbt-package-testing`.`zz_dbt_renee_stg_servicenow`.`stg_servicenow__incident`\nwhere incident_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "incident_id", "file_key_name": "models.stg_servicenow__incident", "attached_node": "model.servicenow.stg_servicenow__incident"}, "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__incident_incident_id__source_relation.4383616e6a": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["incident_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_servicenow__incident')) }}"}, "namespace": "dbt_utils"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_servicenow__incident_incident_id__source_relation", "resource_type": "test", "package_name": "servicenow", "path": "dbt_utils_unique_combination_o_8be0af367faef4490979e29aa876f3c1.sql", "original_file_path": "models/staging/stg_servicenow.yml", "unique_id": "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__incident_incident_id__source_relation.4383616e6a", "fqn": ["servicenow", "staging", "dbt_utils_unique_combination_of_columns_stg_servicenow__incident_incident_id__source_relation"], "alias": "dbt_utils_unique_combination_o_8be0af367faef4490979e29aa876f3c1", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_8be0af367faef4490979e29aa876f3c1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_8be0af367faef4490979e29aa876f3c1"}, "created_at": 1708640658.668627, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_8be0af367faef4490979e29aa876f3c1\") }}", "language": "sql", "refs": [{"name": "stg_servicenow__incident", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.servicenow.stg_servicenow__incident"]}, "compiled_path": "target/compiled/servicenow/models/staging/stg_servicenow.yml/dbt_utils_unique_combination_o_8be0af367faef4490979e29aa876f3c1.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n incident_id, source_relation\n from `dbt-package-testing`.`zz_dbt_renee_stg_servicenow`.`stg_servicenow__incident`\n group by incident_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": null, "file_key_name": "models.stg_servicenow__incident", "attached_node": "model.servicenow.stg_servicenow__incident"}, "test.servicenow.not_null_stg_servicenow__change_task_change_task_id.2d5ae34a7b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "change_task_id", "model": "{{ get_where_subquery(ref('stg_servicenow__change_task')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_servicenow__change_task_change_task_id", "resource_type": "test", "package_name": "servicenow", "path": "not_null_stg_servicenow__change_task_change_task_id.sql", "original_file_path": "models/staging/stg_servicenow.yml", "unique_id": "test.servicenow.not_null_stg_servicenow__change_task_change_task_id.2d5ae34a7b", "fqn": ["servicenow", "staging", "not_null_stg_servicenow__change_task_change_task_id"], "alias": "not_null_stg_servicenow__change_task_change_task_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1708640658.675947, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_servicenow__change_task", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.servicenow.stg_servicenow__change_task"]}, "compiled_path": "target/compiled/servicenow/models/staging/stg_servicenow.yml/not_null_stg_servicenow__change_task_change_task_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect change_task_id\nfrom `dbt-package-testing`.`zz_dbt_renee_stg_servicenow`.`stg_servicenow__change_task`\nwhere change_task_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "change_task_id", "file_key_name": "models.stg_servicenow__change_task", "attached_node": "model.servicenow.stg_servicenow__change_task"}, "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__change_task_change_task_id__source_relation.11bf5182ff": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["change_task_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_servicenow__change_task')) }}"}, "namespace": "dbt_utils"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_servicenow__change_task_change_task_id__source_relation", "resource_type": "test", "package_name": "servicenow", "path": "dbt_utils_unique_combination_o_758ec134186d8ce4db1a6153ebd05bdc.sql", "original_file_path": "models/staging/stg_servicenow.yml", "unique_id": "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__change_task_change_task_id__source_relation.11bf5182ff", "fqn": ["servicenow", "staging", "dbt_utils_unique_combination_of_columns_stg_servicenow__change_task_change_task_id__source_relation"], "alias": "dbt_utils_unique_combination_o_758ec134186d8ce4db1a6153ebd05bdc", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_758ec134186d8ce4db1a6153ebd05bdc", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_758ec134186d8ce4db1a6153ebd05bdc"}, "created_at": 1708640658.6790452, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_758ec134186d8ce4db1a6153ebd05bdc\") }}", "language": "sql", "refs": [{"name": "stg_servicenow__change_task", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.servicenow.stg_servicenow__change_task"]}, "compiled_path": "target/compiled/servicenow/models/staging/stg_servicenow.yml/dbt_utils_unique_combination_o_758ec134186d8ce4db1a6153ebd05bdc.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n change_task_id, source_relation\n from `dbt-package-testing`.`zz_dbt_renee_stg_servicenow`.`stg_servicenow__change_task`\n group by change_task_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": null, "file_key_name": "models.stg_servicenow__change_task", "attached_node": "model.servicenow.stg_servicenow__change_task"}, "test.servicenow.not_null_stg_servicenow__change_request_change_request_id.0f2ee81c5f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "change_request_id", "model": "{{ get_where_subquery(ref('stg_servicenow__change_request')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_servicenow__change_request_change_request_id", "resource_type": "test", "package_name": "servicenow", "path": "not_null_stg_servicenow__change_request_change_request_id.sql", "original_file_path": "models/staging/stg_servicenow.yml", "unique_id": "test.servicenow.not_null_stg_servicenow__change_request_change_request_id.0f2ee81c5f", "fqn": ["servicenow", "staging", "not_null_stg_servicenow__change_request_change_request_id"], "alias": "not_null_stg_servicenow__change_request_change_request_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1708640658.68672, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_servicenow__change_request", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.servicenow.stg_servicenow__change_request"]}, "compiled_path": "target/compiled/servicenow/models/staging/stg_servicenow.yml/not_null_stg_servicenow__change_request_change_request_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect change_request_id\nfrom `dbt-package-testing`.`zz_dbt_renee_stg_servicenow`.`stg_servicenow__change_request`\nwhere change_request_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "change_request_id", "file_key_name": "models.stg_servicenow__change_request", "attached_node": "model.servicenow.stg_servicenow__change_request"}, "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__change_request_change_request_id__source_relation.f8d65569ae": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["change_request_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_servicenow__change_request')) }}"}, "namespace": "dbt_utils"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_servicenow__change_request_change_request_id__source_relation", "resource_type": "test", "package_name": "servicenow", "path": "dbt_utils_unique_combination_o_2bf4c25162ab05fcec1fd4cde281ae0f.sql", "original_file_path": "models/staging/stg_servicenow.yml", "unique_id": "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__change_request_change_request_id__source_relation.f8d65569ae", "fqn": ["servicenow", "staging", "dbt_utils_unique_combination_of_columns_stg_servicenow__change_request_change_request_id__source_relation"], "alias": "dbt_utils_unique_combination_o_2bf4c25162ab05fcec1fd4cde281ae0f", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_2bf4c25162ab05fcec1fd4cde281ae0f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_2bf4c25162ab05fcec1fd4cde281ae0f"}, "created_at": 1708640658.690022, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_2bf4c25162ab05fcec1fd4cde281ae0f\") }}", "language": "sql", "refs": [{"name": "stg_servicenow__change_request", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.servicenow.stg_servicenow__change_request"]}, "compiled_path": "target/compiled/servicenow/models/staging/stg_servicenow.yml/dbt_utils_unique_combination_o_2bf4c25162ab05fcec1fd4cde281ae0f.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n change_request_id, source_relation\n from `dbt-package-testing`.`zz_dbt_renee_stg_servicenow`.`stg_servicenow__change_request`\n group by change_request_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": null, "file_key_name": "models.stg_servicenow__change_request", "attached_node": "model.servicenow.stg_servicenow__change_request"}, "test.servicenow.not_null_stg_servicenow__core_company_core_company_id.e8ef462897": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "core_company_id", "model": "{{ get_where_subquery(ref('stg_servicenow__core_company')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_servicenow__core_company_core_company_id", "resource_type": "test", "package_name": "servicenow", "path": "not_null_stg_servicenow__core_company_core_company_id.sql", "original_file_path": "models/staging/stg_servicenow.yml", "unique_id": "test.servicenow.not_null_stg_servicenow__core_company_core_company_id.e8ef462897", "fqn": ["servicenow", "staging", "not_null_stg_servicenow__core_company_core_company_id"], "alias": "not_null_stg_servicenow__core_company_core_company_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1708640658.6975842, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_servicenow__core_company", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.servicenow.stg_servicenow__core_company"]}, "compiled_path": "target/compiled/servicenow/models/staging/stg_servicenow.yml/not_null_stg_servicenow__core_company_core_company_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect core_company_id\nfrom `dbt-package-testing`.`zz_dbt_renee_stg_servicenow`.`stg_servicenow__core_company`\nwhere core_company_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "core_company_id", "file_key_name": "models.stg_servicenow__core_company", "attached_node": "model.servicenow.stg_servicenow__core_company"}, "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__core_company_core_company_id__source_relation.85b30d325b": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["core_company_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_servicenow__core_company')) }}"}, "namespace": "dbt_utils"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_servicenow__core_company_core_company_id__source_relation", "resource_type": "test", "package_name": "servicenow", "path": "dbt_utils_unique_combination_o_f612d1e13877c6192a8e340f8feda8ae.sql", "original_file_path": "models/staging/stg_servicenow.yml", "unique_id": "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__core_company_core_company_id__source_relation.85b30d325b", "fqn": ["servicenow", "staging", "dbt_utils_unique_combination_of_columns_stg_servicenow__core_company_core_company_id__source_relation"], "alias": "dbt_utils_unique_combination_o_f612d1e13877c6192a8e340f8feda8ae", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_f612d1e13877c6192a8e340f8feda8ae", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_f612d1e13877c6192a8e340f8feda8ae"}, "created_at": 1708640658.700744, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_f612d1e13877c6192a8e340f8feda8ae\") }}", "language": "sql", "refs": [{"name": "stg_servicenow__core_company", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.servicenow.stg_servicenow__core_company"]}, "compiled_path": "target/compiled/servicenow/models/staging/stg_servicenow.yml/dbt_utils_unique_combination_o_f612d1e13877c6192a8e340f8feda8ae.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n core_company_id, source_relation\n from `dbt-package-testing`.`zz_dbt_renee_stg_servicenow`.`stg_servicenow__core_company`\n group by core_company_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": null, "file_key_name": "models.stg_servicenow__core_company", "attached_node": "model.servicenow.stg_servicenow__core_company"}, "test.servicenow.not_null_stg_servicenow__cmdb_ci_cmdb_ci_id.83f2c6d37c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "cmdb_ci_id", "model": "{{ get_where_subquery(ref('stg_servicenow__cmdb_ci')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_servicenow__cmdb_ci_cmdb_ci_id", "resource_type": "test", "package_name": "servicenow", "path": "not_null_stg_servicenow__cmdb_ci_cmdb_ci_id.sql", "original_file_path": "models/staging/stg_servicenow.yml", "unique_id": "test.servicenow.not_null_stg_servicenow__cmdb_ci_cmdb_ci_id.83f2c6d37c", "fqn": ["servicenow", "staging", "not_null_stg_servicenow__cmdb_ci_cmdb_ci_id"], "alias": "not_null_stg_servicenow__cmdb_ci_cmdb_ci_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1708640658.707699, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_servicenow__cmdb_ci", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.servicenow.stg_servicenow__cmdb_ci"]}, "compiled_path": "target/compiled/servicenow/models/staging/stg_servicenow.yml/not_null_stg_servicenow__cmdb_ci_cmdb_ci_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect cmdb_ci_id\nfrom `dbt-package-testing`.`zz_dbt_renee_stg_servicenow`.`stg_servicenow__cmdb_ci`\nwhere cmdb_ci_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "cmdb_ci_id", "file_key_name": "models.stg_servicenow__cmdb_ci", "attached_node": "model.servicenow.stg_servicenow__cmdb_ci"}, "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__cmdb_ci_cmdb_ci_id__source_relation.4d25f1839d": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["cmdb_ci_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_servicenow__cmdb_ci')) }}"}, "namespace": "dbt_utils"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_servicenow__cmdb_ci_cmdb_ci_id__source_relation", "resource_type": "test", "package_name": "servicenow", "path": "dbt_utils_unique_combination_o_b3e2b49df95b8af51abe3839b59cbd3a.sql", "original_file_path": "models/staging/stg_servicenow.yml", "unique_id": "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__cmdb_ci_cmdb_ci_id__source_relation.4d25f1839d", "fqn": ["servicenow", "staging", "dbt_utils_unique_combination_of_columns_stg_servicenow__cmdb_ci_cmdb_ci_id__source_relation"], "alias": "dbt_utils_unique_combination_o_b3e2b49df95b8af51abe3839b59cbd3a", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_b3e2b49df95b8af51abe3839b59cbd3a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_b3e2b49df95b8af51abe3839b59cbd3a"}, "created_at": 1708640658.7107258, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_b3e2b49df95b8af51abe3839b59cbd3a\") }}", "language": "sql", "refs": [{"name": "stg_servicenow__cmdb_ci", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.servicenow.stg_servicenow__cmdb_ci"]}, "compiled_path": "target/compiled/servicenow/models/staging/stg_servicenow.yml/dbt_utils_unique_combination_o_b3e2b49df95b8af51abe3839b59cbd3a.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n cmdb_ci_id, source_relation\n from `dbt-package-testing`.`zz_dbt_renee_stg_servicenow`.`stg_servicenow__cmdb_ci`\n group by cmdb_ci_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": null, "file_key_name": "models.stg_servicenow__cmdb_ci", "attached_node": "model.servicenow.stg_servicenow__cmdb_ci"}, "test.servicenow.not_null_stg_servicenow__cmdb_ci_service_cmdb_ci_service_id.f7770250de": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "cmdb_ci_service_id", "model": "{{ get_where_subquery(ref('stg_servicenow__cmdb_ci_service')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_servicenow__cmdb_ci_service_cmdb_ci_service_id", "resource_type": "test", "package_name": "servicenow", "path": "not_null_stg_servicenow__cmdb_ci_service_cmdb_ci_service_id.sql", "original_file_path": "models/staging/stg_servicenow.yml", "unique_id": "test.servicenow.not_null_stg_servicenow__cmdb_ci_service_cmdb_ci_service_id.f7770250de", "fqn": ["servicenow", "staging", "not_null_stg_servicenow__cmdb_ci_service_cmdb_ci_service_id"], "alias": "not_null_stg_servicenow__cmdb_ci_service_cmdb_ci_service_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1708640658.717862, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_servicenow__cmdb_ci_service", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.servicenow.stg_servicenow__cmdb_ci_service"]}, "compiled_path": "target/compiled/servicenow/models/staging/stg_servicenow.yml/not_null_stg_servicenow__cmdb_ci_service_cmdb_ci_service_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect cmdb_ci_service_id\nfrom `dbt-package-testing`.`zz_dbt_renee_stg_servicenow`.`stg_servicenow__cmdb_ci_service`\nwhere cmdb_ci_service_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "cmdb_ci_service_id", "file_key_name": "models.stg_servicenow__cmdb_ci_service", "attached_node": "model.servicenow.stg_servicenow__cmdb_ci_service"}, "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__cmdb_ci_service_cmdb_ci_service_id__source_relation.e596372710": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["cmdb_ci_service_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_servicenow__cmdb_ci_service')) }}"}, "namespace": "dbt_utils"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_servicenow__cmdb_ci_service_cmdb_ci_service_id__source_relation", "resource_type": "test", "package_name": "servicenow", "path": "dbt_utils_unique_combination_o_c19143a81dd4519e61d067410ae2c4b5.sql", "original_file_path": "models/staging/stg_servicenow.yml", "unique_id": "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__cmdb_ci_service_cmdb_ci_service_id__source_relation.e596372710", "fqn": ["servicenow", "staging", "dbt_utils_unique_combination_of_columns_stg_servicenow__cmdb_ci_service_cmdb_ci_service_id__source_relation"], "alias": "dbt_utils_unique_combination_o_c19143a81dd4519e61d067410ae2c4b5", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_c19143a81dd4519e61d067410ae2c4b5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_c19143a81dd4519e61d067410ae2c4b5"}, "created_at": 1708640658.720876, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_c19143a81dd4519e61d067410ae2c4b5\") }}", "language": "sql", "refs": [{"name": "stg_servicenow__cmdb_ci_service", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.servicenow.stg_servicenow__cmdb_ci_service"]}, "compiled_path": "target/compiled/servicenow/models/staging/stg_servicenow.yml/dbt_utils_unique_combination_o_c19143a81dd4519e61d067410ae2c4b5.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n cmdb_ci_service_id, source_relation\n from `dbt-package-testing`.`zz_dbt_renee_stg_servicenow`.`stg_servicenow__cmdb_ci_service`\n group by cmdb_ci_service_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": null, "file_key_name": "models.stg_servicenow__cmdb_ci_service", "attached_node": "model.servicenow.stg_servicenow__cmdb_ci_service"}, "test.servicenow.not_null_stg_servicenow__sys_user_group_sys_user_group_id.a4600fb5c8": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "sys_user_group_id", "model": "{{ get_where_subquery(ref('stg_servicenow__sys_user_group')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_servicenow__sys_user_group_sys_user_group_id", "resource_type": "test", "package_name": "servicenow", "path": "not_null_stg_servicenow__sys_user_group_sys_user_group_id.sql", "original_file_path": "models/staging/stg_servicenow.yml", "unique_id": "test.servicenow.not_null_stg_servicenow__sys_user_group_sys_user_group_id.a4600fb5c8", "fqn": ["servicenow", "staging", "not_null_stg_servicenow__sys_user_group_sys_user_group_id"], "alias": "not_null_stg_servicenow__sys_user_group_sys_user_group_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1708640658.728639, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_servicenow__sys_user_group", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.servicenow.stg_servicenow__sys_user_group"]}, "compiled_path": "target/compiled/servicenow/models/staging/stg_servicenow.yml/not_null_stg_servicenow__sys_user_group_sys_user_group_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect sys_user_group_id\nfrom `dbt-package-testing`.`zz_dbt_renee_stg_servicenow`.`stg_servicenow__sys_user_group`\nwhere sys_user_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "sys_user_group_id", "file_key_name": "models.stg_servicenow__sys_user_group", "attached_node": "model.servicenow.stg_servicenow__sys_user_group"}, "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__sys_user_group_sys_user_group_id__source_relation.6fd66f39ed": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["sys_user_group_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_servicenow__sys_user_group')) }}"}, "namespace": "dbt_utils"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_servicenow__sys_user_group_sys_user_group_id__source_relation", "resource_type": "test", "package_name": "servicenow", "path": "dbt_utils_unique_combination_o_afc9ae021fc2631c67d2be6f71fc25ef.sql", "original_file_path": "models/staging/stg_servicenow.yml", "unique_id": "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__sys_user_group_sys_user_group_id__source_relation.6fd66f39ed", "fqn": ["servicenow", "staging", "dbt_utils_unique_combination_of_columns_stg_servicenow__sys_user_group_sys_user_group_id__source_relation"], "alias": "dbt_utils_unique_combination_o_afc9ae021fc2631c67d2be6f71fc25ef", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_afc9ae021fc2631c67d2be6f71fc25ef", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_afc9ae021fc2631c67d2be6f71fc25ef"}, "created_at": 1708640658.731821, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_afc9ae021fc2631c67d2be6f71fc25ef\") }}", "language": "sql", "refs": [{"name": "stg_servicenow__sys_user_group", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.servicenow.stg_servicenow__sys_user_group"]}, "compiled_path": "target/compiled/servicenow/models/staging/stg_servicenow.yml/dbt_utils_unique_combination_o_afc9ae021fc2631c67d2be6f71fc25ef.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n sys_user_group_id, source_relation\n from `dbt-package-testing`.`zz_dbt_renee_stg_servicenow`.`stg_servicenow__sys_user_group`\n group by sys_user_group_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": null, "file_key_name": "models.stg_servicenow__sys_user_group", "attached_node": "model.servicenow.stg_servicenow__sys_user_group"}}, "sources": {"source.servicenow.servicenow.task": {"database": "dbt-package-testing", "schema": "servicenow", "name": "task", "resource_type": "source", "package_name": "servicenow", "path": "models/staging/src_servicenow.yml", "original_file_path": "models/staging/src_servicenow.yml", "unique_id": "source.servicenow.servicenow.task", "fqn": ["servicenow", "staging", "servicenow", "task"], "source_name": "servicenow", "source_description": "", "loader": "", "identifier": "task", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table containing all tasks related information. A task represents a unit of work that needs to be accomplished or tracked within the ServiceNow system. It can be related to various processes, such as incident resolution, change management, or other workflows.", "columns": {"sys_id": {"name": "sys_id", "description": "Unique identifier for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates whether the task record has been marked as deleted by the Fivetran connector.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Indicates whether the task record has been synchronized by the Fivetran connector.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active": {"name": "active", "description": "Flag indicating whether the record is currently active or completed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "activity_due": {"name": "activity_due", "description": "The due date or time for completing the activity associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_assignee_list": {"name": "additional_assignee_list", "description": "List of additional users or assignees associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "approval": {"name": "approval", "description": "Information related to the approval status and process for the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "approval_history": {"name": "approval_history", "description": "History of approvals associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "approval_set": {"name": "approval_set", "description": "Set of approvals linked to the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "assigned_to_link": {"name": "assigned_to_link", "description": "Link to the user or group assigned to the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "assigned_to_value": {"name": "assigned_to_value", "description": "Value representing the user or group assigned to the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "assignment_group_link": {"name": "assignment_group_link", "description": "Link to the assignment group associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "assignment_group_value": {"name": "assignment_group_value", "description": "Value representing the assignment group associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_duration": {"name": "business_duration", "description": "The duration of the task in terms of business hours.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_service_link": {"name": "business_service_link", "description": "Link to the business service associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_service_value": {"name": "business_service_value", "description": "Value representing the business service associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "calendar_duration": {"name": "calendar_duration", "description": "The duration of the task in terms of calendar time.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "close_notes": {"name": "close_notes", "description": "Additional notes or comments recorded upon task closure.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "closed_at": {"name": "closed_at", "description": "Date and time when the task was closed or completed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "closed_by_link": {"name": "closed_by_link", "description": "Link to the user who closed or completed the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "closed_by_value": {"name": "closed_by_value", "description": "Value representing the user who closed or completed the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cmdb_ci_link": {"name": "cmdb_ci_link", "description": "Link to the configuration item (CI) associated with the record in the Configuration Management Database (CMDB).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cmdb_ci_value": {"name": "cmdb_ci_value", "description": "Value representing the configuration item (CI) associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "comments": {"name": "comments", "description": "General comments or notes related to the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "comments_and_work_notes": {"name": "comments_and_work_notes", "description": "Combined information of comments and work notes recorded during the record's lifecycle.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_link": {"name": "company_link", "description": "Link to the company associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_value": {"name": "company_value", "description": "Value representing the company associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contact_type": {"name": "contact_type", "description": "Type of contact associated with the record (e.g., customer, vendor).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_link": {"name": "contract_link", "description": "Link to the contract associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_value": {"name": "contract_value", "description": "Value representing the contract associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "correlation_display": {"name": "correlation_display", "description": "Display information related to correlation of the record with other records.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "correlation_id": {"name": "correlation_id", "description": "Identifier used for correlating the record with related records.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "delivery_plan_link": {"name": "delivery_plan_link", "description": "Link to the delivery plan associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "delivery_plan_value": {"name": "delivery_plan_value", "description": "Value representing the delivery plan associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "delivery_task_link": {"name": "delivery_task_link", "description": "Link to the delivery task associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "delivery_task_value": {"name": "delivery_task_value", "description": "Value representing the delivery task associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "description": {"name": "description", "description": "Detailed description or information about the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "due_date": {"name": "due_date", "description": "The date by which the task is expected to be completed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "escalation": {"name": "escalation", "description": "Information about any escalation procedures or steps related to the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_start": {"name": "expected_start", "description": "The expected start date or time for the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "follow_up": {"name": "follow_up", "description": "Timestamp of when follow up was applied to the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "group_list": {"name": "group_list", "description": "List of groups associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "impact": {"name": "impact", "description": "Assessment of the impact that completing or not completing the task may have. This is the business loss and potential damage (for example, financial, customer, regulation, security, reputation, brand) caused by the incident", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "knowledge": {"name": "knowledge", "description": "Indication of whether the task is associated with knowledge or documentation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "location_link": {"name": "location_link", "description": "Link to the location associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "location_value": {"name": "location_value", "description": "Value representing the location associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "made_sla": {"name": "made_sla", "description": "Indicates whether the task was completed within the agreed-upon Service Level Agreement (SLA).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number": {"name": "number", "description": "Unique identifier or reference number assigned to the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "opened_at": {"name": "opened_at", "description": "Date and time when the task was initially opened.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "opened_by_link": {"name": "opened_by_link", "description": "Link to the user who initially opened the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "opened_by_value": {"name": "opened_by_value", "description": "Value representing the user who initially opened the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "order": {"name": "order", "description": "Order or sequence number associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "parent_link": {"name": "parent_link", "description": "Link to the parent task or record associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "parent_value": {"name": "parent_value", "description": "Value representing the parent task or record associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "priority": {"name": "priority", "description": "Priority level assigned to the task. The priority field is automatically calculated based on the values of impact and urgency. This determines the sequence in which the record should be resolved.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reassignment_count": {"name": "reassignment_count", "description": "Count of how many times the task has been reassigned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "rejection_goto_link": {"name": "rejection_goto_link", "description": "Link to the record or step to be followed in case of task rejection.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "rejection_goto_value": {"name": "rejection_goto_value", "description": "Value representing the record or step to be followed in case of task rejection.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "route_reason": {"name": "route_reason", "description": "Reason or criteria for routing the task to a particular user or group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "service_offering_link": {"name": "service_offering_link", "description": "Link to the service offering associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "service_offering_value": {"name": "service_offering_value", "description": "Value representing the service offering associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "short_description": {"name": "short_description", "description": "Brief or concise summary of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sla_due": {"name": "sla_due", "description": "Date and time by which the record is expected to meet the Service Level Agreement (SLA).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "state": {"name": "state", "description": "Current state or status of the record (e.g., in progress, on hold, closed).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_class_name": {"name": "sys_class_name", "description": "Name of the table in which the record is stored.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_created_by": {"name": "sys_created_by", "description": "User who initially created the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_created_on": {"name": "sys_created_on", "description": "Date and time when the record was initially created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_domain_link": {"name": "sys_domain_link", "description": "Link to the system domain associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_domain_path": {"name": "sys_domain_path", "description": "Path of the system domain associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_domain_value": {"name": "sys_domain_value", "description": "Value representing the system domain associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_mod_count": {"name": "sys_mod_count", "description": "Number of times the record has been modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_updated_by": {"name": "sys_updated_by", "description": "User who last updated or modified the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_updated_on": {"name": "sys_updated_on", "description": "Date and time when the record was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "task_effective_number": {"name": "task_effective_number", "description": "Effective number or identifier associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "universal_request_link": {"name": "universal_request_link", "description": "Link to the universal request associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "universal_request_value": {"name": "universal_request_value", "description": "Value representing the universal request associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "upon_approval": {"name": "upon_approval", "description": "Actions or steps to be taken upon the approval of the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "upon_reject": {"name": "upon_reject", "description": "Actions or steps to be taken upon the rejection of the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "urgency": {"name": "urgency", "description": "Level of urgency associated with the record. Speed at which the business expects the record to be resolved.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "watch_list": {"name": "watch_list", "description": "List of users or groups who are monitoring or \"watching\" the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "wf_activity_link": {"name": "wf_activity_link", "description": "Link to the workflow activity associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "wf_activity_value": {"name": "wf_activity_value", "description": "Value representing the workflow activity associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_end": {"name": "work_end", "description": "Date and time when the work on the task is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_notes": {"name": "work_notes", "description": "Notes or comments recorded during the work on the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_notes_list": {"name": "work_notes_list", "description": "List of work notes recorded during the task's lifecycle.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_start": {"name": "work_start", "description": "Date and time when the work on the task is scheduled to start.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`servicenow`.`task`", "created_at": 1708640658.739699}, "source.servicenow.servicenow.task_sla": {"database": "dbt-package-testing", "schema": "servicenow", "name": "task_sla", "resource_type": "source", "package_name": "servicenow", "path": "models/staging/src_servicenow.yml", "original_file_path": "models/staging/src_servicenow.yml", "unique_id": "source.servicenow.servicenow.task_sla", "fqn": ["servicenow", "staging", "servicenow", "task_sla"], "source_name": "servicenow", "source_description": "", "loader": "", "identifier": "task_sla", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table containing all Service Level Agreement (SLA) information related to the task.", "columns": {"sys_id": {"name": "sys_id", "description": "Unique identifier for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates whether the task record has been marked as deleted by the Fivetran connector.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Indicates whether the task record has been synchronized by the Fivetran connector.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active": {"name": "active", "description": "Flag indicating whether the record is currently active or completed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_duration": {"name": "business_duration", "description": "The duration of the task in terms of business hours.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_pause_duration": {"name": "business_pause_duration", "description": "Duration of business pause associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_percentage": {"name": "business_percentage", "description": "Percentage of business time completed for the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_time_left": {"name": "business_time_left", "description": "Remaining business time for the completion of the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "duration": {"name": "duration", "description": "Total duration of the task, including both business and non-business time.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_time": {"name": "end_time", "description": "The scheduled or expected end time for the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "has_breached": {"name": "has_breached", "description": "Indicates whether the task has breached the defined SLA or time limits.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "original_breach_time": {"name": "original_breach_time", "description": "Original time when the SLA breach for the task was detected.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pause_duration": {"name": "pause_duration", "description": "Duration of the pause associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pause_time": {"name": "pause_time", "description": "Time when the task was paused or put on hold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "percentage": {"name": "percentage", "description": "Percentage of total time completed for the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "planned_end_time": {"name": "planned_end_time", "description": "The originally planned or expected end time for the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "schedule_link": {"name": "schedule_link", "description": "Link to the schedule associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "schedule_value": {"name": "schedule_value", "description": "Value representing the schedule associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sla_link": {"name": "sla_link", "description": "Link to the Service Level Agreement (SLA) associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sla_value": {"name": "sla_value", "description": "Value representing the Service Level Agreement (SLA) associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "stage": {"name": "stage", "description": "Current stage or phase of the record's lifecycle.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_time": {"name": "start_time", "description": "The scheduled or expected start time for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_created_by": {"name": "sys_created_by", "description": "User who initially created the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_created_on": {"name": "sys_created_on", "description": "Date and time when the record was initially created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_mod_count": {"name": "sys_mod_count", "description": "Number of times the record has been modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_updated_by": {"name": "sys_updated_by", "description": "User who last updated or modified the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_updated_on": {"name": "sys_updated_on", "description": "Date and time when the record was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "task_link": {"name": "task_link", "description": "Link to the related task record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "task_value": {"name": "task_value", "description": "Value representing the related task record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "time_left": {"name": "time_left", "description": "Remaining time for the completion of the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "timezone": {"name": "timezone", "description": "Timezone information associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`servicenow`.`task_sla`", "created_at": 1708640658.740194}, "source.servicenow.servicenow.sys_user": {"database": "dbt-package-testing", "schema": "servicenow", "name": "sys_user", "resource_type": "source", "package_name": "servicenow", "path": "models/staging/src_servicenow.yml", "original_file_path": "models/staging/src_servicenow.yml", "unique_id": "source.servicenow.servicenow.sys_user", "fqn": ["servicenow", "staging", "servicenow", "sys_user"], "source_name": "servicenow", "source_description": "", "loader": "", "identifier": "sys_user", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table containing all information related to the system user associated with the task.", "columns": {"sys_id": {"name": "sys_id", "description": "Unique identifier for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates whether the task record has been marked as deleted by the Fivetran connector.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Indicates whether the task record has been synchronized by the Fivetran connector.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "accumulated_roles": {"name": "accumulated_roles", "description": "Roles accumulated or associated with the system user over time.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active": {"name": "active", "description": "Flag indicating whether the record is currently active or completed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "avatar": {"name": "avatar", "description": "Avatar or profile picture associated with the system user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "building_link": {"name": "building_link", "description": "Link to the building associated with the system user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "building_value": {"name": "building_value", "description": "Value representing the building associated with the system user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "calendar_integration": {"name": "calendar_integration", "description": "Information about the integration of the user's calendar with the ServiceNow system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city": {"name": "city", "description": "City information associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_link": {"name": "company_link", "description": "Link to the company associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_value": {"name": "company_value", "description": "Value representing the company associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost_center_link": {"name": "cost_center_link", "description": "Link to the cost center associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost_center_value": {"name": "cost_center_value", "description": "Value representing the cost center associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country": {"name": "country", "description": "Country information associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_format": {"name": "date_format", "description": "The format in which dates are displayed or recorded for the system user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "default_perspective_link": {"name": "default_perspective_link", "description": "Link to the default perspective associated with the system user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "default_perspective_value": {"name": "default_perspective_value", "description": "Value representing the default perspective associated with the system user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "department_link": {"name": "department_link", "description": "Link to the department associated with the system user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "department_value": {"name": "department_value", "description": "Value representing the department associated with the system user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "edu_status": {"name": "edu_status", "description": "Education status or level associated with the system user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email": {"name": "email", "description": "Email address associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_number": {"name": "employee_number", "description": "Employee number or identifier associated with the system user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "enable_multifactor_authn": {"name": "enable_multifactor_authn", "description": "Indication of whether multifactor authentication is enabled for the system user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "failed_attempts": {"name": "failed_attempts", "description": "Number of failed login attempts for the system user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_name": {"name": "first_name", "description": "First name of the system user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "gender": {"name": "gender", "description": "Gender information associated with the system user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hashed_user_id": {"name": "hashed_user_id", "description": "Hashed identifier associated with the system user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "home_phone": {"name": "home_phone", "description": "Home phone number associated with the system user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "internal_integration_user": {"name": "internal_integration_user", "description": "Indication of whether the system user is an internal integration user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "introduction": {"name": "introduction", "description": "Introduction or bio information associated with the system user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_login": {"name": "last_login", "description": "Date and time of the last login.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_login_device": {"name": "last_login_device", "description": "The device used for the user's last login to the system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_login_time": {"name": "last_login_time", "description": "The specific time when the user last logged in to the system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_name": {"name": "last_name", "description": "The family name or surname of the user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_password": {"name": "last_password", "description": "The timestamp or information related to the user's last password update.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ldap_server_link": {"name": "ldap_server_link", "description": "A link to the LDAP (Lightweight Directory Access Protocol) server associated with the user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ldap_server_value": {"name": "ldap_server_value", "description": "The value or name of the LDAP server associated with the user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "location_link": {"name": "location_link", "description": "Link to the location associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "location_value": {"name": "location_value", "description": "Value representing the location associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "locked_out": {"name": "locked_out", "description": "Information about whether the user account is currently locked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "manager_link": {"name": "manager_link", "description": "A link to the user's manager or supervisor in the organizational hierarchy.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "manager_value": {"name": "manager_value", "description": "The name or identifier of the user's manager or supervisor.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "middle_name": {"name": "middle_name", "description": "The middle name or initial of the user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile_phone": {"name": "mobile_phone", "description": "The contact number for the user's mobile phone.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "The full name of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "notification": {"name": "notification", "description": "Information related to user notifications or alerts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "password_needs_reset": {"name": "password_needs_reset", "description": "Indicates whether the user needs to reset their password.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "phone": {"name": "phone", "description": "The contact number belonging to this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "photo": {"name": "photo", "description": "A link or reference to the user's profile photo.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "preferred_language": {"name": "preferred_language", "description": "The language preference set by the user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "roles": {"name": "roles", "description": "The roles assigned to the user in the system or organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "schedule_link": {"name": "schedule_link", "description": "Link to the schedule associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "schedule_value": {"name": "schedule_value", "description": "Value representing the schedule associated with the task.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source": {"name": "source", "description": "The source or origin of the user's or user group's profile information.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "state": {"name": "state", "description": "Current state or status of the record (e.g., in progress, on hold, closed).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_class_name": {"name": "sys_class_name", "description": "Name of the table in which the record is stored.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_created_by": {"name": "sys_created_by", "description": "User who initially created the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_created_on": {"name": "sys_created_on", "description": "Date and time when the record was initially created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_domain_link": {"name": "sys_domain_link", "description": "Link to the system domain associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_domain_path": {"name": "sys_domain_path", "description": "Path of the system domain associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_domain_value": {"name": "sys_domain_value", "description": "Value representing the system domain associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_mod_count": {"name": "sys_mod_count", "description": "Number of times the record has been modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_updated_by": {"name": "sys_updated_by", "description": "User who last updated or modified the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_updated_on": {"name": "sys_updated_on", "description": "Date and time when the record was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "time_format": {"name": "time_format", "description": "The preferred time format for the user (e.g., 12-hour or 24-hour).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "time_zone": {"name": "time_zone", "description": "The time zone configured for the user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "title": {"name": "title", "description": "The job title or position of the user within the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_name": {"name": "user_name", "description": "The username used by the user to log in to the system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_password": {"name": "user_password", "description": "The user's current password information or status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vip": {"name": "vip", "description": "Indicates whether the user has VIP (Very Important Person) status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "web_service_access_only": {"name": "web_service_access_only", "description": "Indicates whether the user has access only through web services.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "zip": {"name": "zip", "description": "The postal code or ZIP code associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`servicenow`.`sys_user`", "created_at": 1708640658.741044}, "source.servicenow.servicenow.problem": {"database": "dbt-package-testing", "schema": "servicenow", "name": "problem", "resource_type": "source", "package_name": "servicenow", "path": "models/staging/src_servicenow.yml", "original_file_path": "models/staging/src_servicenow.yml", "unique_id": "source.servicenow.servicenow.problem", "fqn": ["servicenow", "staging", "servicenow", "problem"], "source_name": "servicenow", "source_description": "", "loader": "", "identifier": "problem", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table containing all problem information.", "columns": {"sys_id": {"name": "sys_id", "description": "Unique identifier for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates whether the task record has been marked as deleted by the Fivetran connector.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Indicates whether the task record has been synchronized by the Fivetran connector.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "category": {"name": "category", "description": "The category of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cause_notes": {"name": "cause_notes", "description": "Additional notes or details about the cause of a particular issue or incident.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "confirmed_at": {"name": "confirmed_at", "description": "The timestamp indicating when an issue or incident was confirmed or acknowledged.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "confirmed_by_link": {"name": "confirmed_by_link", "description": "A link to the person or entity who confirmed or acknowledged the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "confirmed_by_value": {"name": "confirmed_by_value", "description": "The name or identifier of the person or entity who confirmed or acknowledged the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "duplicate_of_link": {"name": "duplicate_of_link", "description": "A link to the related issue that is identified as a duplicate of the current one.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "duplicate_of_value": {"name": "duplicate_of_value", "description": "The name or identifier of the related issue that is identified as a duplicate.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_reported_by_task_link": {"name": "first_reported_by_task_link", "description": "A link to the task or activity that first reported the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_reported_by_task_value": {"name": "first_reported_by_task_value", "description": "The name or identifier of the task or activity that first reported the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fix_at": {"name": "fix_at", "description": "The timestamp indicating when the issue is scheduled or planned to be fixed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fix_by_link": {"name": "fix_by_link", "description": "A link to the person or entity responsible for fixing the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fix_by_value": {"name": "fix_by_value", "description": "The name or identifier of the person or entity responsible for fixing the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fix_communicated_at": {"name": "fix_communicated_at", "description": "The timestamp indicating when the fix for the issue was communicated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fix_communicated_by_link": {"name": "fix_communicated_by_link", "description": "A link to the person or entity who communicated the fix for the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fix_communicated_by_value": {"name": "fix_communicated_by_value", "description": "The name or identifier of the person or entity who communicated the fix for the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fix_notes": {"name": "fix_notes", "description": "Additional notes or details related to the fix for the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "known_error": {"name": "known_error", "description": "Indicates whether the issue is a known error with a documented resolution.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "major_problem": {"name": "major_problem", "description": "Indicates whether the issue is categorized as a major problem.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_state": {"name": "problem_state", "description": "The current state or status of the problem or issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "related_incidents": {"name": "related_incidents", "description": "Information about other incidents that are related to the current issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reopen_count": {"name": "reopen_count", "description": "The count of how many times the issue has been reopened.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reopened_at": {"name": "reopened_at", "description": "The timestamp indicating when the issue was last reopened.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reopened_by_link": {"name": "reopened_by_link", "description": "A link to the person or entity who reopened the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reopened_by_value": {"name": "reopened_by_value", "description": "The name or identifier of the person or entity who reopened the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "resolution_code": {"name": "resolution_code", "description": "The code or identifier associated with the resolution of the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "resolved_at": {"name": "resolved_at", "description": "The timestamp indicating when the issue was resolved.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "resolved_by_link": {"name": "resolved_by_link", "description": "A link to the person or entity who resolved the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "resolved_by_value": {"name": "resolved_by_value", "description": "The name or identifier of the person or entity who resolved the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "review_outcome": {"name": "review_outcome", "description": "The outcome or result of the review process for the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "rfc_link": {"name": "rfc_link", "description": "A link to the Request for Change (RFC) associated with the issue or incident.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "rfc_value": {"name": "rfc_value", "description": "The unique identifier or name associated with the Request for Change (RFC) linked to the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "subcategory": {"name": "subcategory", "description": "The specific subcategory or classification of the record, providing more detailed information about its nature.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_created_on": {"name": "sys_created_on", "description": "Date and time when the record was initially created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_updated_on": {"name": "sys_updated_on", "description": "Date and time when the record was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "workaround": {"name": "workaround", "description": "A description of a temporary or alternative solution that can be applied to address the issue before a permanent fix \nis implemented.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "workaround_applied": {"name": "workaround_applied", "description": "Indicates whether a workaround has been applied to address the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "workaround_communicated_at": {"name": "workaround_communicated_at", "description": "The timestamp indicating when the workaround for the issue was communicated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "workaround_communicated_by_link": {"name": "workaround_communicated_by_link", "description": "A link to the person or entity who communicated the workaround for the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "workaround_communicated_by_value": {"name": "workaround_communicated_by_value", "description": "The name or identifier of the person or entity who communicated the workaround for the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`servicenow`.`problem`", "created_at": 1708640658.741533}, "source.servicenow.servicenow.problem_task": {"database": "dbt-package-testing", "schema": "servicenow", "name": "problem_task", "resource_type": "source", "package_name": "servicenow", "path": "models/staging/src_servicenow.yml", "original_file_path": "models/staging/src_servicenow.yml", "unique_id": "source.servicenow.servicenow.problem_task", "fqn": ["servicenow", "staging", "servicenow", "problem_task"], "source_name": "servicenow", "source_description": "", "loader": "", "identifier": "problem_task", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table containing all the information related to the problem tasks.", "columns": {"sys_id": {"name": "sys_id", "description": "Unique identifier for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates whether the task record has been marked as deleted by the Fivetran connector.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Indicates whether the task record has been synchronized by the Fivetran connector.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cause_code": {"name": "cause_code", "description": "The code or identifier associated with the cause of the issue or problem.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "close_code": {"name": "close_code", "description": "The code or identifier associated with the closure or resolution.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "other_reason": {"name": "other_reason", "description": "Additional information or reasons associated with the issue, especially if it falls outside standard categories.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_link": {"name": "problem_link", "description": "A link to the problem record associated with the issue or incident.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_task_type": {"name": "problem_task_type", "description": "The type or category of the task associated with the problem or issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_value": {"name": "problem_value", "description": "The unique identifier or name associated with the problem record linked to the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reopen_count": {"name": "reopen_count", "description": "The count of how many times the issue has been reopened.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reopened_at": {"name": "reopened_at", "description": "The timestamp indicating when the issue was last reopened.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reopened_by_link": {"name": "reopened_by_link", "description": "A link to the person or entity who reopened the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reopened_by_value": {"name": "reopened_by_value", "description": "The name or identifier of the person or entity who reopened the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "started_at": {"name": "started_at", "description": "The timestamp indicating when the issue or incident was initiated or started.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "started_by_link": {"name": "started_by_link", "description": "A link to the person or entity who initiated or started the issue or incident.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "started_by_value": {"name": "started_by_value", "description": "The name or identifier of the person or entity who initiated or started the issue or incident.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_created_on": {"name": "sys_created_on", "description": "Date and time when the record was initially created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_updated_on": {"name": "sys_updated_on", "description": "Date and time when the record was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vendor_link": {"name": "vendor_link", "description": "A link to the vendor or external entity associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vendor_value": {"name": "vendor_value", "description": "The name or identifier of the vendor or external entity linked to the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`servicenow`.`problem_task`", "created_at": 1708640658.7419462}, "source.servicenow.servicenow.incident": {"database": "dbt-package-testing", "schema": "servicenow", "name": "incident", "resource_type": "source", "package_name": "servicenow", "path": "models/staging/src_servicenow.yml", "original_file_path": "models/staging/src_servicenow.yml", "unique_id": "source.servicenow.servicenow.incident", "fqn": ["servicenow", "staging", "servicenow", "incident"], "source_name": "servicenow", "source_description": "", "loader": "", "identifier": "incident", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table containing all information related to incidents.", "columns": {"sys_id": {"name": "sys_id", "description": "Unique identifier for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates whether the task record has been marked as deleted by the Fivetran connector.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Indicates whether the task record has been synchronized by the Fivetran connector.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_impact": {"name": "business_impact", "description": "Information about the impact of the issue on business operations or services.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_stc": {"name": "business_stc", "description": "The business service that is impacted by the issue or incident.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "calendar_stc": {"name": "calendar_stc", "description": "The calendar or schedule associated with the business service impacted by the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "caller_id_link": {"name": "caller_id_link", "description": "A link to the person or entity identified as the caller or reporter of the issue or incident.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "caller_id_value": {"name": "caller_id_value", "description": "The name or identifier of the person or entity identified as the caller or reporter of the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "category": {"name": "category", "description": "The category of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cause": {"name": "cause", "description": "A description or explanation of the root cause of the issue or incident.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "caused_by_link": {"name": "caused_by_link", "description": "A link to the record or entity that caused or triggered the issue or incident.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "caused_by_value": {"name": "caused_by_value", "description": "The name or identifier of the record or entity that caused or triggered the issue or incident.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "child_incidents": {"name": "child_incidents", "description": "Information about other incidents that are identified as child incidents linked to the current incident.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "close_code": {"name": "close_code", "description": "The code or identifier associated with the closure or resolution.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hold_reason": {"name": "hold_reason", "description": "The reason or rationale for placing the issue or incident on hold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "incident_state": {"name": "incident_state", "description": "The current state or status of the incident.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "notify": {"name": "notify", "description": "Indicates whether notifications or alerts have been configured for the issue or incident.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "origin_id_link": {"name": "origin_id_link", "description": "A link to the original or source record from which the current record originated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "origin_id_value": {"name": "origin_id_value", "description": "The unique identifier or name associated with the original or source record linked to the current record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "parent_incident_link": {"name": "parent_incident_link", "description": "A link to the parent incident record, indicating the incident from which the current incident is derived or related.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "parent_incident_value": {"name": "parent_incident_value", "description": "The unique identifier or name associated with the parent incident record linked to the current incident.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_id_link": {"name": "problem_id_link", "description": "A link to the problem record associated with the current issue or incident.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "problem_id_value": {"name": "problem_id_value", "description": "The unique identifier or name associated with the problem record linked to the current issue or incident.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reopen_count": {"name": "reopen_count", "description": "The count of how many times the issue has been reopened.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reopened_by_link": {"name": "reopened_by_link", "description": "A link to the person or entity who reopened the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reopened_by_value": {"name": "reopened_by_value", "description": "The name or identifier of the person or entity who reopened the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reopened_time": {"name": "reopened_time", "description": "The timestamp indicating when the issue or incident was reopened after being previously resolved.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "resolved_at": {"name": "resolved_at", "description": "The timestamp indicating when the issue was resolved.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "resolved_by_link": {"name": "resolved_by_link", "description": "A link to the person or entity who resolved the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "resolved_by_value": {"name": "resolved_by_value", "description": "The name or identifier of the person or entity who resolved the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "rfc_link": {"name": "rfc_link", "description": "A link to the Request for Change (RFC) associated with the issue or incident.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "rfc_value": {"name": "rfc_value", "description": "The unique identifier or name associated with the Request for Change (RFC) linked to the issue.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "severity": {"name": "severity", "description": "The level of impact or seriousness assigned to the issue or incident.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "subcategory": {"name": "subcategory", "description": "The specific subcategory or classification of the record, providing more detailed information about its nature.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_created_on": {"name": "sys_created_on", "description": "Date and time when the record was initially created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_updated_on": {"name": "sys_updated_on", "description": "Date and time when the record was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`servicenow`.`incident`", "created_at": 1708640658.742403}, "source.servicenow.servicenow.change_task": {"database": "dbt-package-testing", "schema": "servicenow", "name": "change_task", "resource_type": "source", "package_name": "servicenow", "path": "models/staging/src_servicenow.yml", "original_file_path": "models/staging/src_servicenow.yml", "unique_id": "source.servicenow.servicenow.change_task", "fqn": ["servicenow", "staging", "servicenow", "change_task"], "source_name": "servicenow", "source_description": "", "loader": "", "identifier": "change_task", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table containing all information related to change tasks.", "columns": {"sys_id": {"name": "sys_id", "description": "Unique identifier for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates whether the task record has been marked as deleted by the Fivetran connector.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Indicates whether the task record has been synchronized by the Fivetran connector.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_request_link": {"name": "change_request_link", "description": "A link to the change request record associated with the issue or incident.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_request_value": {"name": "change_request_value", "description": "The unique identifier or name associated with the change request record linked to the issue or incident.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_task_type": {"name": "change_task_type", "description": "The type or category of the task associated with the change request or change record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "close_code": {"name": "close_code", "description": "The code or identifier associated with the closure or resolution.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_from": {"name": "created_from", "description": "Information about the source or origin of the current record, indicating how it was created or generated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "on_hold": {"name": "on_hold", "description": "Indicates whether the issue or incident is currently on hold or paused.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "on_hold_reason": {"name": "on_hold_reason", "description": "The reason or rationale for placing the associated record on hold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "planned_end_date": {"name": "planned_end_date", "description": "The planned or scheduled end date for the change request or change record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "planned_start_date": {"name": "planned_start_date", "description": "The planned or scheduled start date for the change request or change record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_created_on": {"name": "sys_created_on", "description": "Date and time when the record was initially created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_updated_on": {"name": "sys_updated_on", "description": "Date and time when the record was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`servicenow`.`change_task`", "created_at": 1708640658.74283}, "source.servicenow.servicenow.change_request": {"database": "dbt-package-testing", "schema": "servicenow", "name": "change_request", "resource_type": "source", "package_name": "servicenow", "path": "models/staging/src_servicenow.yml", "original_file_path": "models/staging/src_servicenow.yml", "unique_id": "source.servicenow.servicenow.change_request", "fqn": ["servicenow", "staging", "servicenow", "change_request"], "source_name": "servicenow", "source_description": "", "loader": "", "identifier": "change_request", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table that contains all information related to change requests.", "columns": {"sys_id": {"name": "sys_id", "description": "Unique identifier for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates whether the task record has been marked as deleted by the Fivetran connector.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Indicates whether the task record has been synchronized by the Fivetran connector.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "backout_plan": {"name": "backout_plan", "description": "Information about the plan or process for backing out or undoing the changes associated with the current record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cab_date": {"name": "cab_date", "description": "The date of the Change Advisory Board (CAB) meeting associated with the change request or change record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cab_date_time": {"name": "cab_date_time", "description": "The date and time of the Change Advisory Board (CAB) meeting associated with the change request or change record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cab_delegate_link": {"name": "cab_delegate_link", "description": "A link to the person or entity delegated to represent or act on behalf of the Change Advisory Board (CAB) in relation \nto the change request.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cab_delegate_value": {"name": "cab_delegate_value", "description": "The name or identifier of the person or entity delegated to represent or act on behalf of the Change Advisory Board (CAB) \nin relation to the change request.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cab_recommendation": {"name": "cab_recommendation", "description": "The recommendation or decision made by the Change Advisory Board (CAB) regarding the change request.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cab_required": {"name": "cab_required", "description": "Indicates whether the Change Advisory Board (CAB) approval is required for the change request.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "category": {"name": "category", "description": "The category of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "change_plan": {"name": "change_plan", "description": "Information about the plan or process for implementing the changes associated with the current record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "chg_model_link": {"name": "chg_model_link", "description": "A link to the change model or template associated with the change request or change record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "chg_model_value": {"name": "chg_model_value", "description": "The name or identifier of the change model or template linked to the change request or change record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "close_code": {"name": "close_code", "description": "The code or identifier associated with the closure or resolution.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conflict_last_run": {"name": "conflict_last_run", "description": "The timestamp indicating when the conflict detection was last run for the change request or change record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "conflict_status": {"name": "conflict_status", "description": "The status or outcome of the conflict detection process for the change request or change record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_date": {"name": "end_date", "description": "The end date for the implementation or execution associated with the current record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "implementation_plan": {"name": "implementation_plan", "description": "Information about the plan or process for implementing the changes associated with the current record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "justification": {"name": "justification", "description": "The reasoning or justification behind the changes associated with the current record, providing context or explanation for the modifications made.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "on_hold": {"name": "on_hold", "description": "Indicates whether the issue or incident is currently on hold or paused.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "on_hold_reason": {"name": "on_hold_reason", "description": "The reason or rationale for placing the associated record on hold.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "on_hold_task": {"name": "on_hold_task", "description": "A link to the task or activity that indicates the current record is on hold, specifying the task associated with the \nhold status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "outside_maintenance_schedule": {"name": "outside_maintenance_schedule", "description": "Indicates whether the changes associated with the current record fall outside the regular maintenance schedule or window.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "phase": {"name": "phase", "description": "The phase or stage of the change request or change record within the change management process, indicating its progress or status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "phase_state": {"name": "phase_state", "description": "The current state or status of the phase associated with the change request or change record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "production_system": {"name": "production_system", "description": "Indicates whether the changes associated with the current record are intended for the production environment or system.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reason": {"name": "reason", "description": "The reason or rationale behind the changes requested by the current record, providing context or explanation for the modifications made.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "requested_by_date": {"name": "requested_by_date", "description": "The date when the changes associated with the current record were requested or initiated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "requested_by_link": {"name": "requested_by_link", "description": "A link to the person or entity who requested or initiated the changes associated with the current record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "requested_by_value": {"name": "requested_by_value", "description": "The name or identifier of the person or entity who requested or initiated the changes associated with the current record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "review_comments": {"name": "review_comments", "description": "Comments or feedback provided during the review process for the changes associated with the current record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "review_date": {"name": "review_date", "description": "The date when the record was reviewed or evaluated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "review_status": {"name": "review_status", "description": "The status or outcome of the review process associated with the current record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "risk": {"name": "risk", "description": "The level of risk associated with the changes, indicating the potential impact or consequences of implementing the modifications outlined in the current record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "risk_impact_analysis": {"name": "risk_impact_analysis", "description": "An analysis or assessment of the impact or consequences of the changes outlined in the current record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "scope": {"name": "scope", "description": "The scope or extent of the changes outlined in the current record, specifying the areas or components affected by the modifications.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_date": {"name": "start_date", "description": "The start date associated with the current record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "std_change_producer_version_link": {"name": "std_change_producer_version_link", "description": "A link to the version of the standard change producer associated with the current record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "std_change_producer_version_value": {"name": "std_change_producer_version_value", "description": "The name or identifier of the version of the standard change producer linked to the current record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_created_on": {"name": "sys_created_on", "description": "Date and time when the record was initially created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_updated_on": {"name": "sys_updated_on", "description": "Date and time when the record was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "test_plan": {"name": "test_plan", "description": "Information about the plan or process for testing the changes associated with the current record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "The type or category regarding the current record", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "unauthorized": {"name": "unauthorized", "description": "Indicates whether the changes associated with the current record were made without proper authorization or approval.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`servicenow`.`change_request`", "created_at": 1708640658.743426}, "source.servicenow.servicenow.core_company": {"database": "dbt-package-testing", "schema": "servicenow", "name": "core_company", "resource_type": "source", "package_name": "servicenow", "path": "models/staging/src_servicenow.yml", "original_file_path": "models/staging/src_servicenow.yml", "unique_id": "source.servicenow.servicenow.core_company", "fqn": ["servicenow", "staging", "servicenow", "core_company"], "source_name": "servicenow", "source_description": "", "loader": "", "identifier": "task", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table containing all company related information.", "columns": {"sys_id": {"name": "sys_id", "description": "Unique identifier for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates whether the task record has been marked as deleted by the Fivetran connector.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Indicates whether the task record has been synchronized by the Fivetran connector.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city": {"name": "city", "description": "City information associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country": {"name": "country", "description": "Country information associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "customer": {"name": "customer", "description": "Boolean of whether the company is a customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fax_phone": {"name": "fax_phone", "description": "Fax phone number of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fiscal_year": {"name": "fiscal_year", "description": "Company's fiscal year", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "The full name of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "notes": {"name": "notes", "description": "Notes about the record", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "phone": {"name": "phone", "description": "The contact number belonging to this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "state": {"name": "state", "description": "The geographical state to which the record belongs", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "street": {"name": "street", "description": "The street to which the record belongs", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_class_name": {"name": "sys_class_name", "description": "Name of the table in which the record is stored.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_created_by": {"name": "sys_created_by", "description": "User who initially created the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_created_on": {"name": "sys_created_on", "description": "Date and time when the record was initially created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_mod_count": {"name": "sys_mod_count", "description": "Number of times the record has been modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_updated_by": {"name": "sys_updated_by", "description": "User who last updated or modified the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_updated_on": {"name": "sys_updated_on", "description": "Date and time when the record was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vendor": {"name": "vendor", "description": "Boolean of whether the company is a vendor", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vendor_type": {"name": "vendor_type", "description": "Vendor types group vendors that offer similar goods and services, and are useful for reporting and comparing vendor performance. Example: Hardware, Services", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "website": {"name": "website", "description": "Company website", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "zip": {"name": "zip", "description": "The postal code or ZIP code associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`servicenow`.`task`", "created_at": 1708640658.743833}, "source.servicenow.servicenow.cmdb_ci": {"database": "dbt-package-testing", "schema": "servicenow", "name": "cmdb_ci", "resource_type": "source", "package_name": "servicenow", "path": "models/staging/src_servicenow.yml", "original_file_path": "models/staging/src_servicenow.yml", "unique_id": "source.servicenow.servicenow.cmdb_ci", "fqn": ["servicenow", "staging", "servicenow", "cmdb_ci"], "source_name": "servicenow", "source_description": "", "loader": "", "identifier": "cmdb_ci", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "The base table for all CI (Configuration Item) tables in the CMDB (Configuration Management Database)", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates whether the task record has been marked as deleted by the Fivetran connector.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Indicates whether the task record has been synchronized by the Fivetran connector.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "attributes": {"name": "attributes", "description": "Data elements which describe the characteristics of CIs", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_unit_link": {"name": "business_unit_link", "description": "Link to business unit. Business units usually comprise departments and are associated with a company", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_unit_value": {"name": "business_unit_value", "description": "The ID of the business unit.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "category": {"name": "category", "description": "The category of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_link": {"name": "company_link", "description": "Link to the company associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_value": {"name": "company_value", "description": "Value representing the company associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost": {"name": "cost", "description": "The cost related to the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost_cc": {"name": "cost_cc", "description": "The cost center that the record belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost_center_link": {"name": "cost_center_link", "description": "Link to the cost center associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost_center_value": {"name": "cost_center_value", "description": "Value representing the cost center associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "managed_by_link": {"name": "managed_by_link", "description": "The link to the user profile that manages this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "managed_by_value": {"name": "managed_by_value", "description": "The ID of the user profile that manages this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "manufacturer_link": {"name": "manufacturer_link", "description": "The link to the manufacturer that manages this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "manufacturer_value": {"name": "manufacturer_value", "description": "The ID of the manufacturer that manages this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "model_id_link": {"name": "model_id_link", "description": "The link to the model related to the CI.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "model_id_value": {"name": "model_id_value", "description": "The ID to the model related to the CI.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "model_number": {"name": "model_number", "description": "The number of the model related to the IC.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "The full name of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "owned_by_link": {"name": "owned_by_link", "description": "The link to the owner of the CI related to this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "owned_by_value": {"name": "owned_by_value", "description": "The ID to the owner of the CI related to this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "subcategory": {"name": "subcategory", "description": "The specific subcategory or classification of the record, providing more detailed information about its nature.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_class_name": {"name": "sys_class_name", "description": "Name of the table in which the record is stored.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_class_path": {"name": "sys_class_path", "description": "Where a particular CI class is within the overall hierarchy of classes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_created_by": {"name": "sys_created_by", "description": "User who initially created the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_created_on": {"name": "sys_created_on", "description": "Date and time when the record was initially created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_domain_link": {"name": "sys_domain_link", "description": "Link to the system domain associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_domain_path": {"name": "sys_domain_path", "description": "Path of the system domain associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_domain_value": {"name": "sys_domain_value", "description": "Value representing the system domain associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_id": {"name": "sys_id", "description": "Unique identifier for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_mod_count": {"name": "sys_mod_count", "description": "Number of times the record has been modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_updated_by": {"name": "sys_updated_by", "description": "User who last updated or modified the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_updated_on": {"name": "sys_updated_on", "description": "Date and time when the record was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vendor_link": {"name": "vendor_link", "description": "A link to the vendor or external entity associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vendor_value": {"name": "vendor_value", "description": "The name or identifier of the vendor or external entity linked to the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`servicenow`.`cmdb_ci`", "created_at": 1708640658.744276}, "source.servicenow.servicenow.cmdb_ci_service": {"database": "dbt-package-testing", "schema": "servicenow", "name": "cmdb_ci_service", "resource_type": "source", "package_name": "servicenow", "path": "models/staging/src_servicenow.yml", "original_file_path": "models/staging/src_servicenow.yml", "unique_id": "source.servicenow.servicenow.cmdb_ci_service", "fqn": ["servicenow", "staging", "servicenow", "cmdb_ci_service"], "source_name": "servicenow", "source_description": "", "loader": "", "identifier": "cmdb_ci_service", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table containing all information related to application service areas. An application service is work or goods that are supported by an IT infrastructure. For example, delivering email service to an employee can require services such as email servers, web servers, and the work to configure the user's account. An application service management map graphically displays the configuration items (CI) that support an application service and the relationships between the CIs.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates whether the task record has been marked as deleted by the Fivetran connector.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Indicates whether the task record has been synchronized by the Fivetran connector.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "attributes": {"name": "attributes", "description": "Data elements which describe the characteristics of CIs", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_unit_link": {"name": "business_unit_link", "description": "Link to business unit. Business units usually comprise departments and are associated with a company", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_unit_value": {"name": "business_unit_value", "description": "The ID of the business unit.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "category": {"name": "category", "description": "The category of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_link": {"name": "company_link", "description": "Link to the company associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_value": {"name": "company_value", "description": "Value representing the company associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost": {"name": "cost", "description": "The cost related to the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost_cc": {"name": "cost_cc", "description": "The cost center that the record belongs to.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "managed_by_link": {"name": "managed_by_link", "description": "The link to the user profile that manages this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "managed_by_value": {"name": "managed_by_value", "description": "The ID of the user profile that manages this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "manufacturer_link": {"name": "manufacturer_link", "description": "The link to the manufacturer that manages this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "manufacturer_value": {"name": "manufacturer_value", "description": "The ID of the manufacturer that manages this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "model_id_link": {"name": "model_id_link", "description": "The link to the model related to the CI.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "model_id_value": {"name": "model_id_value", "description": "The ID to the model related to the CI.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "model_number": {"name": "model_number", "description": "The number of the model related to the IC.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "The full name of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "owned_by_link": {"name": "owned_by_link", "description": "The link to the owner of the CI related to this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "owned_by_value": {"name": "owned_by_value", "description": "The ID to the owner of the CI related to this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "service_classification": {"name": "service_classification", "description": "The type of service. Each type contains groups of CI services that share attributes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "service_level_requirement": {"name": "service_level_requirement", "description": "Requirement specified to maintain service commitments between parties.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "short_description": {"name": "short_description", "description": "Brief or concise summary of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sla_link": {"name": "sla_link", "description": "Link to the Service Level Agreement (SLA) associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sla_value": {"name": "sla_value", "description": "Value representing the Service Level Agreement (SLA) associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "state": {"name": "state", "description": "Current state or status of the record (e.g., in progress, on hold, closed).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "subcategory": {"name": "subcategory", "description": "The specific subcategory or classification of the record, providing more detailed information about its nature.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_class_name": {"name": "sys_class_name", "description": "Name of the table in which the record is stored.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_class_path": {"name": "sys_class_path", "description": "Where a particular CI class is within the overall hierarchy of classes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_created_by": {"name": "sys_created_by", "description": "User who initially created the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_created_on": {"name": "sys_created_on", "description": "Date and time when the record was initially created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_domain_link": {"name": "sys_domain_link", "description": "Link to the system domain associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_domain_path": {"name": "sys_domain_path", "description": "Path of the system domain associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_domain_value": {"name": "sys_domain_value", "description": "Value representing the system domain associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_id": {"name": "sys_id", "description": "Unique identifier for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_mod_count": {"name": "sys_mod_count", "description": "Number of times the record has been modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_updated_by": {"name": "sys_updated_by", "description": "User who last updated or modified the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_updated_on": {"name": "sys_updated_on", "description": "Date and time when the record was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vendor_link": {"name": "vendor_link", "description": "A link to the vendor or external entity associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vendor_value": {"name": "vendor_value", "description": "The name or identifier of the vendor or external entity linked to the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`servicenow`.`cmdb_ci_service`", "created_at": 1708640658.744732}, "source.servicenow.servicenow.sys_user_group": {"database": "dbt-package-testing", "schema": "servicenow", "name": "sys_user_group", "resource_type": "source", "package_name": "servicenow", "path": "models/staging/src_servicenow.yml", "original_file_path": "models/staging/src_servicenow.yml", "unique_id": "source.servicenow.servicenow.sys_user_group", "fqn": ["servicenow", "staging", "servicenow", "sys_user_group"], "source_name": "servicenow", "source_description": "", "loader": "", "identifier": "sys_user_group", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Table containing all information related to user groups.", "columns": {"sys_id": {"name": "sys_id", "description": "Unique identifier for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates whether the task record has been marked as deleted by the Fivetran connector.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Indicates whether the task record has been synchronized by the Fivetran connector.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active": {"name": "active", "description": "Flag indicating whether the record is currently active or completed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost_center_link": {"name": "cost_center_link", "description": "Link to the cost center associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cost_center_value": {"name": "cost_center_value", "description": "Value representing the cost center associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "default_assignee_link": {"name": "default_assignee_link", "description": "Link to the user that is the default assignee for this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "default_assignee_value": {"name": "default_assignee_value", "description": "ID of the user that is the default assignee for this record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "description": {"name": "description", "description": "Detailed description or information about the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email": {"name": "email", "description": "Email address associated with the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "exclude_manager": {"name": "exclude_manager", "description": "Boolean of whether the group manager receives email notifications.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "include_members": {"name": "include_members", "description": "Boolean of whether the group members receive individual emails when someone sends an email to the Group Email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "manager_link": {"name": "manager_link", "description": "A link to the user's manager or supervisor in the organizational hierarchy.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "manager_value": {"name": "manager_value", "description": "The name or identifier of the user's manager or supervisor.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "The full name of the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "parent_link": {"name": "parent_link", "description": "Link to the other group of which this group is a member. If a group has a parent, the child group inherits the roles of the parent group. The members of the child group are not members of the parent group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "parent_value": {"name": "parent_value", "description": "ID of the other group of which this group is a member. If a group has a parent, the child group inherits the roles of the parent group. The members of the child group are not members of the parent group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "roles": {"name": "roles", "description": "The roles assigned to the user in the system or organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source": {"name": "source", "description": "The source or origin of the user's or user group's profile information.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_created_by": {"name": "sys_created_by", "description": "User who initially created the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_created_on": {"name": "sys_created_on", "description": "Date and time when the record was initially created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_mod_count": {"name": "sys_mod_count", "description": "Number of times the record has been modified.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_updated_by": {"name": "sys_updated_by", "description": "User who last updated or modified the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sys_updated_on": {"name": "sys_updated_on", "description": "Date and time when the record was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "The type or category regarding the current record", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`servicenow`.`sys_user_group`", "created_at": 1708640658.745138}}, "macros": {"macro.dbt_bigquery.date_sharded_table": {"name": "date_sharded_table", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/etc.sql", "original_file_path": "macros/etc.sql", "unique_id": "macro.dbt_bigquery.date_sharded_table", "macro_sql": "{% macro date_sharded_table(base_name) %}\n {{ return(base_name ~ \"[DBT__PARTITION_DATE]\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.227156, "supported_languages": null}, "macro.dbt_bigquery.grant_access_to": {"name": "grant_access_to", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/etc.sql", "original_file_path": "macros/etc.sql", "unique_id": "macro.dbt_bigquery.grant_access_to", "macro_sql": "{% macro grant_access_to(entity, entity_type, role, grant_target_dict) -%}\n {% do adapter.grant_access_to(entity, entity_type, role, grant_target_dict) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.2278621, "supported_languages": null}, "macro.dbt_bigquery.get_partitions_metadata": {"name": "get_partitions_metadata", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/etc.sql", "original_file_path": "macros/etc.sql", "unique_id": "macro.dbt_bigquery.get_partitions_metadata", "macro_sql": "\n\n{%- macro get_partitions_metadata(table) -%}\n {%- if execute -%}\n {%- set res = adapter.get_partitions_metadata(table) -%}\n {{- return(res) -}}\n {%- endif -%}\n {{- return(None) -}}\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.2287612, "supported_languages": null}, "macro.dbt_bigquery.bigquery__get_catalog": {"name": "bigquery__get_catalog", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/catalog.sql", "original_file_path": "macros/catalog.sql", "unique_id": "macro.dbt_bigquery.bigquery__get_catalog", "macro_sql": "{% macro bigquery__get_catalog(information_schema, schemas) -%}\n\n {%- if (schemas | length) == 0 -%}\n {# Hopefully nothing cares about the columns we return when there are no rows #}\n {%- set query = \"select 1 as id limit 0\" -%}\n {%- else -%}\n\n {%- set query -%}\n with tables as (\n select\n project_id as table_database,\n dataset_id as table_schema,\n table_id as original_table_name,\n\n concat(project_id, '.', dataset_id, '.', table_id) as relation_id,\n\n row_count,\n size_bytes as size_bytes,\n case\n when type = 1 then 'table'\n when type = 2 then 'view'\n else 'external'\n end as table_type,\n\n REGEXP_CONTAINS(table_id, '^.+[0-9]{8}$') and coalesce(type, 0) = 1 as is_date_shard,\n REGEXP_EXTRACT(table_id, '^(.+)[0-9]{8}$') as shard_base_name,\n REGEXP_EXTRACT(table_id, '^.+([0-9]{8})$') as shard_name\n\n from {{ information_schema.replace(information_schema_view='__TABLES__') }}\n where (\n {%- for schema in schemas -%}\n upper(dataset_id) = upper('{{ schema }}'){%- if not loop.last %} or {% endif -%}\n {%- endfor -%}\n )\n ),\n\n table_options as (\n select\n concat(table_catalog, '.', table_schema, '.', table_name) as relation_id,\n JSON_VALUE(option_value) as table_comment\n\n from {{ information_schema.replace(information_schema_view='TABLE_OPTIONS') }}\n where option_name = 'description'\n ),\n extracted as (\n\n select *,\n case\n when is_date_shard then shard_base_name\n else original_table_name\n end as table_name\n\n from tables\n\n ),\n\n unsharded_tables as (\n\n select\n table_database,\n table_schema,\n table_name,\n coalesce(table_type, 'external') as table_type,\n is_date_shard,\n\n struct(\n min(shard_name) as shard_min,\n max(shard_name) as shard_max,\n count(*) as shard_count\n ) as table_shards,\n\n sum(size_bytes) as size_bytes,\n sum(row_count) as row_count,\n\n max(relation_id) as relation_id\n\n from extracted\n group by 1,2,3,4,5\n\n ),\n\n info_schema_columns as (\n\n select\n concat(table_catalog, '.', table_schema, '.', table_name) as relation_id,\n table_catalog as table_database,\n table_schema,\n table_name,\n\n -- use the \"real\" column name from the paths query below\n column_name as base_column_name,\n ordinal_position as column_index,\n\n is_partitioning_column,\n clustering_ordinal_position\n\n from {{ information_schema.replace(information_schema_view='COLUMNS') }}\n where ordinal_position is not null\n\n ),\n\n info_schema_column_paths as (\n\n select\n concat(table_catalog, '.', table_schema, '.', table_name) as relation_id,\n field_path as column_name,\n data_type as column_type,\n column_name as base_column_name,\n description as column_comment\n\n from {{ information_schema.replace(information_schema_view='COLUMN_FIELD_PATHS') }}\n\n ),\n\n columns as (\n\n select * except (base_column_name)\n from info_schema_columns\n join info_schema_column_paths using (relation_id, base_column_name)\n\n ),\n\n column_stats as (\n\n select\n table_database,\n table_schema,\n table_name,\n max(relation_id) as relation_id,\n max(case when is_partitioning_column = 'YES' then 1 else 0 end) = 1 as is_partitioned,\n max(case when is_partitioning_column = 'YES' then column_name else null end) as partition_column,\n max(case when clustering_ordinal_position is not null then 1 else 0 end) = 1 as is_clustered,\n array_to_string(\n array_agg(\n case\n when clustering_ordinal_position is not null then column_name\n else null\n end ignore nulls\n order by clustering_ordinal_position\n ), ', '\n ) as clustering_columns\n\n from columns\n group by 1,2,3\n\n )\n\n select\n unsharded_tables.table_database,\n unsharded_tables.table_schema,\n case\n when is_date_shard then concat(unsharded_tables.table_name, '*')\n else unsharded_tables.table_name\n end as table_name,\n unsharded_tables.table_type,\n table_options.table_comment,\n\n -- coalesce name and type for External tables - these columns are not\n -- present in the COLUMN_FIELD_PATHS resultset\n coalesce(columns.column_name, '') as column_name,\n -- invent a row number to account for nested fields -- BQ does\n -- not treat these nested properties as independent fields\n row_number() over (\n partition by relation_id\n order by columns.column_index, columns.column_name\n ) as column_index,\n coalesce(columns.column_type, '') as column_type,\n columns.column_comment,\n\n 'Shard count' as `stats__date_shards__label`,\n table_shards.shard_count as `stats__date_shards__value`,\n 'The number of date shards in this table' as `stats__date_shards__description`,\n is_date_shard as `stats__date_shards__include`,\n\n 'Shard (min)' as `stats__date_shard_min__label`,\n table_shards.shard_min as `stats__date_shard_min__value`,\n 'The first date shard in this table' as `stats__date_shard_min__description`,\n is_date_shard as `stats__date_shard_min__include`,\n\n 'Shard (max)' as `stats__date_shard_max__label`,\n table_shards.shard_max as `stats__date_shard_max__value`,\n 'The last date shard in this table' as `stats__date_shard_max__description`,\n is_date_shard as `stats__date_shard_max__include`,\n\n '# Rows' as `stats__num_rows__label`,\n row_count as `stats__num_rows__value`,\n 'Approximate count of rows in this table' as `stats__num_rows__description`,\n (unsharded_tables.table_type = 'table') as `stats__num_rows__include`,\n\n 'Approximate Size' as `stats__num_bytes__label`,\n size_bytes as `stats__num_bytes__value`,\n 'Approximate size of table as reported by BigQuery' as `stats__num_bytes__description`,\n (unsharded_tables.table_type = 'table') as `stats__num_bytes__include`,\n\n 'Partitioned By' as `stats__partitioning_type__label`,\n partition_column as `stats__partitioning_type__value`,\n 'The partitioning column for this table' as `stats__partitioning_type__description`,\n is_partitioned as `stats__partitioning_type__include`,\n\n 'Clustered By' as `stats__clustering_fields__label`,\n clustering_columns as `stats__clustering_fields__value`,\n 'The clustering columns for this table' as `stats__clustering_fields__description`,\n is_clustered as `stats__clustering_fields__include`\n\n -- join using relation_id (an actual relation, not a shard prefix) to make\n -- sure that column metadata is picked up through the join. This will only\n -- return the column information for the \"max\" table in a date-sharded table set\n from unsharded_tables\n left join table_options using (relation_id)\n left join columns using (relation_id)\n left join column_stats using (relation_id)\n {%- endset -%}\n\n {%- endif -%}\n\n {{ return(run_query(query)) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.replace", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.2375438, "supported_languages": null}, "macro.dbt_bigquery.partition_by": {"name": "partition_by", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_bigquery.partition_by", "macro_sql": "{% macro partition_by(partition_config) -%}\n {%- if partition_config is none -%}\n {% do return('') %}\n {%- elif partition_config.time_ingestion_partitioning -%}\n partition by {{ partition_config.render_wrapped() }}\n {%- elif partition_config.data_type | lower in ('date','timestamp','datetime') -%}\n partition by {{ partition_config.render() }}\n {%- elif partition_config.data_type | lower in ('int64') -%}\n {%- set range = partition_config.range -%}\n partition by range_bucket(\n {{ partition_config.field }},\n generate_array({{ range.start}}, {{ range.end }}, {{ range.interval }})\n )\n {%- endif -%}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.249352, "supported_languages": null}, "macro.dbt_bigquery.cluster_by": {"name": "cluster_by", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_bigquery.cluster_by", "macro_sql": "{% macro cluster_by(raw_cluster_by) %}\n {%- if raw_cluster_by is not none -%}\n cluster by {% if raw_cluster_by is string -%}\n {% set raw_cluster_by = [raw_cluster_by] %}\n {%- endif -%}\n {%- for cluster in raw_cluster_by -%}\n {{ cluster }}\n {%- if not loop.last -%}, {% endif -%}\n {%- endfor -%}\n\n {% endif %}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.2505758, "supported_languages": null}, "macro.dbt_bigquery.bigquery_options": {"name": "bigquery_options", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_bigquery.bigquery_options", "macro_sql": "{% macro bigquery_options(opts) %}\n {% set options -%}\n OPTIONS({% for opt_key, opt_val in opts.items() %}\n {{ opt_key }}={{ opt_val }}{{ \",\" if not loop.last }}\n {% endfor %})\n {%- endset %}\n {%- do return(options) -%}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.251756, "supported_languages": null}, "macro.dbt_bigquery.bigquery_table_options": {"name": "bigquery_table_options", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_bigquery.bigquery_table_options", "macro_sql": "{% macro bigquery_table_options(config, node, temporary) %}\n {% set opts = adapter.get_table_options(config, node, temporary) %}\n {%- do return(bigquery_options(opts)) -%}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery_options"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.2525902, "supported_languages": null}, "macro.dbt_bigquery.bigquery__create_table_as": {"name": "bigquery__create_table_as", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_bigquery.bigquery__create_table_as", "macro_sql": "{% macro bigquery__create_table_as(temporary, relation, compiled_code, language='sql') -%}\n {%- if language == 'sql' -%}\n {%- set raw_partition_by = config.get('partition_by', none) -%}\n {%- set raw_cluster_by = config.get('cluster_by', none) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {%- set partition_config = adapter.parse_partition_by(raw_partition_by) -%}\n {%- if partition_config.time_ingestion_partitioning -%}\n {%- set columns = get_columns_with_types_in_query_sql(sql) -%}\n {%- set table_dest_columns_csv = columns_without_partition_fields_csv(partition_config, columns) -%}\n {%- set columns = '(' ~ table_dest_columns_csv ~ ')' -%}\n {%- endif -%}\n\n {{ sql_header if sql_header is not none }}\n\n create or replace table {{ relation }}\n {%- set contract_config = config.get('contract') -%}\n {%- if contract_config.enforced -%}\n {{ get_assert_columns_equivalent(compiled_code) }}\n {{ get_table_columns_and_constraints() }}\n {%- set compiled_code = get_select_subquery(compiled_code) %}\n {% else %}\n {#-- cannot do contracts at the same time as time ingestion partitioning -#}\n {{ columns }}\n {% endif %}\n {{ partition_by(partition_config) }}\n {{ cluster_by(raw_cluster_by) }}\n\n {{ bigquery_table_options(config, model, temporary) }}\n\n {#-- PARTITION BY cannot be used with the AS query_statement clause.\n https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language#partition_expression\n -#}\n {%- if not partition_config.time_ingestion_partitioning %}\n as (\n {{ compiled_code }}\n );\n {%- endif %}\n {%- elif language == 'python' -%}\n {#--\n N.B. Python models _can_ write to temp views HOWEVER they use a different session\n and have already expired by the time they need to be used (I.E. in merges for incremental models)\n\n TODO: Deep dive into spark sessions to see if we can reuse a single session for an entire\n dbt invocation.\n --#}\n\n {#-- when a user wants to change the schema of an existing relation, they must intentionally drop the table in the dataset --#}\n {%- set old_relation = adapter.get_relation(database=relation.database, schema=relation.schema, identifier=relation.identifier) -%}\n {%- if (old_relation.is_table and (should_full_refresh())) -%}\n {% do adapter.drop_relation(relation) %}\n {%- endif -%}\n {{ py_write_table(compiled_code=compiled_code, target_relation=relation.quote(database=False, schema=False, identifier=False)) }}\n {%- else -%}\n {% do exceptions.raise_compiler_error(\"bigquery__create_table_as macro didn't get supported language, it got %s\" % language) %}\n {%- endif -%}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_bigquery.get_columns_with_types_in_query_sql", "macro.dbt_bigquery.columns_without_partition_fields_csv", "macro.dbt.get_assert_columns_equivalent", "macro.dbt.get_table_columns_and_constraints", "macro.dbt.get_select_subquery", "macro.dbt_bigquery.partition_by", "macro.dbt_bigquery.cluster_by", "macro.dbt_bigquery.bigquery_table_options", "macro.dbt.should_full_refresh", "macro.dbt_bigquery.py_write_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.258603, "supported_languages": null}, "macro.dbt_bigquery.bigquery_view_options": {"name": "bigquery_view_options", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_bigquery.bigquery_view_options", "macro_sql": "{% macro bigquery_view_options(config, node) %}\n {% set opts = adapter.get_view_options(config, node) %}\n {%- do return(bigquery_options(opts)) -%}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery_options"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.2594051, "supported_languages": null}, "macro.dbt_bigquery.bigquery__create_view_as": {"name": "bigquery__create_view_as", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_bigquery.bigquery__create_view_as", "macro_sql": "{% macro bigquery__create_view_as(relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create or replace view {{ relation }}\n {{ bigquery_view_options(config, model) }}\n {%- set contract_config = config.get('contract') -%}\n {%- if contract_config.enforced -%}\n {{ get_assert_columns_equivalent(sql) }}\n {%- endif %}\n as {{ sql }};\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery_view_options", "macro.dbt.get_assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.260867, "supported_languages": null}, "macro.dbt_bigquery.bigquery__drop_schema": {"name": "bigquery__drop_schema", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_bigquery.bigquery__drop_schema", "macro_sql": "{% macro bigquery__drop_schema(relation) -%}\n {{ adapter.drop_schema(relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.261295, "supported_languages": null}, "macro.dbt_bigquery.bigquery__drop_relation": {"name": "bigquery__drop_relation", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_bigquery.bigquery__drop_relation", "macro_sql": "{% macro bigquery__drop_relation(relation) -%}\n {% call statement('drop_relation') -%}\n drop {{ relation.type }} if exists {{ relation }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.261912, "supported_languages": null}, "macro.dbt_bigquery.bigquery__get_columns_in_relation": {"name": "bigquery__get_columns_in_relation", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_bigquery.bigquery__get_columns_in_relation", "macro_sql": "{% macro bigquery__get_columns_in_relation(relation) -%}\n {{ return(adapter.get_columns_in_relation(relation)) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.2624068, "supported_languages": null}, "macro.dbt_bigquery.bigquery__list_relations_without_caching": {"name": "bigquery__list_relations_without_caching", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_bigquery.bigquery__list_relations_without_caching", "macro_sql": "{% macro bigquery__list_relations_without_caching(schema_relation) -%}\n {{ return(adapter.list_relations_without_caching(schema_relation)) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.262879, "supported_languages": null}, "macro.dbt_bigquery.bigquery__list_schemas": {"name": "bigquery__list_schemas", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_bigquery.bigquery__list_schemas", "macro_sql": "{% macro bigquery__list_schemas(database) -%}\n {{ return(adapter.list_schemas(database)) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.263353, "supported_languages": null}, "macro.dbt_bigquery.bigquery__check_schema_exists": {"name": "bigquery__check_schema_exists", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_bigquery.bigquery__check_schema_exists", "macro_sql": "{% macro bigquery__check_schema_exists(information_schema, schema) %}\n {{ return(adapter.check_schema_exists(information_schema.database, schema)) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.2639391, "supported_languages": null}, "macro.dbt_bigquery.bigquery__persist_docs": {"name": "bigquery__persist_docs", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_bigquery.bigquery__persist_docs", "macro_sql": "{% macro bigquery__persist_docs(relation, model, for_relation, for_columns) -%}\n {% if for_columns and config.persist_column_docs() and model.columns %}\n {% do alter_column_comment(relation, model.columns) %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.264822, "supported_languages": null}, "macro.dbt_bigquery.bigquery__alter_column_comment": {"name": "bigquery__alter_column_comment", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_bigquery.bigquery__alter_column_comment", "macro_sql": "{% macro bigquery__alter_column_comment(relation, column_dict) -%}\n {% do adapter.update_columns(relation, column_dict) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.265333, "supported_languages": null}, "macro.dbt_bigquery.bigquery__rename_relation": {"name": "bigquery__rename_relation", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_bigquery.bigquery__rename_relation", "macro_sql": "{% macro bigquery__rename_relation(from_relation, to_relation) -%}\n {% do adapter.rename_relation(from_relation, to_relation) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.265847, "supported_languages": null}, "macro.dbt_bigquery.bigquery__alter_relation_add_columns": {"name": "bigquery__alter_relation_add_columns", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_bigquery.bigquery__alter_relation_add_columns", "macro_sql": "{% macro bigquery__alter_relation_add_columns(relation, add_columns) %}\n\n {% set sql -%}\n\n alter {{ relation.type }} {{ relation }}\n {% for column in add_columns %}\n add column {{ column.name }} {{ column.data_type }}{{ ',' if not loop.last }}\n {% endfor %}\n\n {%- endset -%}\n\n {{ return(run_query(sql)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.2671208, "supported_languages": null}, "macro.dbt_bigquery.bigquery__alter_relation_drop_columns": {"name": "bigquery__alter_relation_drop_columns", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_bigquery.bigquery__alter_relation_drop_columns", "macro_sql": "{% macro bigquery__alter_relation_drop_columns(relation, drop_columns) %}\n\n {% set sql -%}\n\n alter {{ relation.type }} {{ relation }}\n\n {% for column in drop_columns %}\n drop column {{ column.name }}{{ ',' if not loop.last }}\n {% endfor %}\n\n {%- endset -%}\n\n {{ return(run_query(sql)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.2683918, "supported_languages": null}, "macro.dbt_bigquery.bigquery__alter_column_type": {"name": "bigquery__alter_column_type", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_bigquery.bigquery__alter_column_type", "macro_sql": "{% macro bigquery__alter_column_type(relation, column_name, new_column_type) -%}\n {#-- Changing a column's data type using a query requires you to scan the entire table.\n The query charges can be significant if the table is very large.\n\n https://cloud.google.com/bigquery/docs/manually-changing-schemas#changing_a_columns_data_type\n #}\n {% set relation_columns = get_columns_in_relation(relation) %}\n\n {% set sql %}\n select\n {%- for col in relation_columns -%}\n {% if col.column == column_name %}\n CAST({{ col.quoted }} AS {{ new_column_type }}) AS {{ col.quoted }}\n {%- else %}\n {{ col.quoted }}\n {%- endif %}\n {%- if not loop.last %},{% endif -%}\n {%- endfor %}\n from {{ relation }}\n {% endset %}\n\n {% call statement('alter_column_type') %}\n {{ create_table_as(False, relation, sql)}}\n {%- endcall %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_columns_in_relation", "macro.dbt.statement", "macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.2705421, "supported_languages": null}, "macro.dbt_bigquery.bigquery__test_unique": {"name": "bigquery__test_unique", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_bigquery.bigquery__test_unique", "macro_sql": "{% macro bigquery__test_unique(model, column_name) %}\n\nwith dbt_test__target as (\n\n select {{ column_name }} as unique_field\n from {{ model }}\n where {{ column_name }} is not null\n\n)\n\nselect\n unique_field,\n count(*) as n_records\n\nfrom dbt_test__target\ngroup by unique_field\nhaving count(*) > 1\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.271124, "supported_languages": null}, "macro.dbt_bigquery.bigquery__upload_file": {"name": "bigquery__upload_file", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_bigquery.bigquery__upload_file", "macro_sql": "{% macro bigquery__upload_file(local_file_path, database, table_schema, table_name) %}\n\n {{ log(\"kwargs: \" ~ kwargs) }}\n\n {% do adapter.upload_file(local_file_path, database, table_schema, table_name, kwargs=kwargs) %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.2720609, "supported_languages": null}, "macro.dbt_bigquery.bigquery__create_csv_table": {"name": "bigquery__create_csv_table", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/seed.sql", "original_file_path": "macros/materializations/seed.sql", "unique_id": "macro.dbt_bigquery.bigquery__create_csv_table", "macro_sql": "{% macro bigquery__create_csv_table(model, agate_table) %}\n -- no-op\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.2730691, "supported_languages": null}, "macro.dbt_bigquery.bigquery__reset_csv_table": {"name": "bigquery__reset_csv_table", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/seed.sql", "original_file_path": "macros/materializations/seed.sql", "unique_id": "macro.dbt_bigquery.bigquery__reset_csv_table", "macro_sql": "{% macro bigquery__reset_csv_table(model, full_refresh, old_relation, agate_table) %}\n {{ adapter.drop_relation(old_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.273592, "supported_languages": null}, "macro.dbt_bigquery.bigquery__load_csv_rows": {"name": "bigquery__load_csv_rows", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/seed.sql", "original_file_path": "macros/materializations/seed.sql", "unique_id": "macro.dbt_bigquery.bigquery__load_csv_rows", "macro_sql": "{% macro bigquery__load_csv_rows(model, agate_table) %}\n\n {%- set column_override = model['config'].get('column_types', {}) -%}\n {{ adapter.load_dataframe(model['database'], model['schema'], model['alias'],\n \t\t\t\t\t\t\tagate_table, column_override) }}\n\n {% call statement() %}\n alter table {{ this.render() }} set {{ bigquery_table_options(config, model) }}\n {% endcall %}\n\n {% if config.persist_relation_docs() and 'description' in model %}\n\n \t{{ adapter.update_table_description(model['database'], model['schema'], model['alias'], model['description']) }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_bigquery.bigquery_table_options"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.275914, "supported_languages": null}, "macro.dbt_bigquery.bigquery__handle_existing_table": {"name": "bigquery__handle_existing_table", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/view.sql", "original_file_path": "macros/materializations/view.sql", "unique_id": "macro.dbt_bigquery.bigquery__handle_existing_table", "macro_sql": "{% macro bigquery__handle_existing_table(full_refresh, old_relation) %}\n {%- if full_refresh -%}\n {{ adapter.drop_relation(old_relation) }}\n {%- else -%}\n {{ exceptions.relation_wrong_type(old_relation, 'view') }}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.277503, "supported_languages": null}, "macro.dbt_bigquery.materialization_view_bigquery": {"name": "materialization_view_bigquery", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/view.sql", "original_file_path": "macros/materializations/view.sql", "unique_id": "macro.dbt_bigquery.materialization_view_bigquery", "macro_sql": "{% materialization view, adapter='bigquery' -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n\n {% set to_return = create_or_replace_view() %}\n\n {% set target_relation = this.incorporate(type='view') %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if config.get('grant_access_to') %}\n {% for grant_target_dict in config.get('grant_access_to') %}\n {% do adapter.grant_access_to(this, 'view', None, grant_target_dict) %}\n {% endfor %}\n {% endif %}\n\n {% do return(to_return) %}\n\n{%- endmaterialization %}", "depends_on": {"macros": ["macro.dbt.create_or_replace_view", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.2798872, "supported_languages": ["sql"]}, "macro.dbt_bigquery.materialization_table_bigquery": {"name": "materialization_table_bigquery", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/table.sql", "original_file_path": "macros/materializations/table.sql", "unique_id": "macro.dbt_bigquery.materialization_table_bigquery", "macro_sql": "{% materialization table, adapter='bigquery', supported_languages=['sql', 'python']-%}\n\n {%- set language = model['language'] -%}\n {%- set identifier = model['alias'] -%}\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n {%- set exists_not_as_table = (old_relation is not none and not old_relation.is_table) -%}\n {%- set target_relation = api.Relation.create(database=database, schema=schema, identifier=identifier, type='table') -%}\n\n -- grab current tables grants config for comparision later on\n {%- set grant_config = config.get('grants') -%}\n\n {{ run_hooks(pre_hooks) }}\n\n {#\n We only need to drop this thing if it is not a table.\n If it _is_ already a table, then we can overwrite it without downtime\n Unlike table -> view, no need for `--full-refresh`: dropping a view is no big deal\n #}\n {%- if exists_not_as_table -%}\n {{ adapter.drop_relation(old_relation) }}\n {%- endif -%}\n\n -- build model\n {%- set raw_partition_by = config.get('partition_by', none) -%}\n {%- set partition_by = adapter.parse_partition_by(raw_partition_by) -%}\n {%- set cluster_by = config.get('cluster_by', none) -%}\n {% if not adapter.is_replaceable(old_relation, partition_by, cluster_by) %}\n {% do log(\"Hard refreshing \" ~ old_relation ~ \" because it is not replaceable\") %}\n {% do adapter.drop_relation(old_relation) %}\n {% endif %}\n\n -- build model\n {%- call statement('main', language=language) -%}\n {{ create_table_as(False, target_relation, compiled_code, language) }}\n {%- endcall -%}\n\n {{ run_hooks(post_hooks) }}\n\n {% set should_revoke = should_revoke(old_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.create_table_as", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.288842, "supported_languages": ["sql", "python"]}, "macro.dbt_bigquery.py_write_table": {"name": "py_write_table", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/table.sql", "original_file_path": "macros/materializations/table.sql", "unique_id": "macro.dbt_bigquery.py_write_table", "macro_sql": "{% macro py_write_table(compiled_code, target_relation) %}\nfrom pyspark.sql import SparkSession\n\nspark = SparkSession.builder.appName('smallTest').getOrCreate()\n\nspark.conf.set(\"viewsEnabled\",\"true\")\nspark.conf.set(\"temporaryGcsBucket\",\"{{target.gcs_bucket}}\")\n\n{{ compiled_code }}\ndbt = dbtObj(spark.read.format(\"bigquery\").load)\ndf = model(dbt, spark)\n\n# COMMAND ----------\n# this is materialization code dbt generated, please do not modify\n\nimport pyspark\n# make sure pandas exists before using it\ntry:\n import pandas\n pandas_available = True\nexcept ImportError:\n pandas_available = False\n\n# make sure pyspark.pandas exists before using it\ntry:\n import pyspark.pandas\n pyspark_pandas_api_available = True\nexcept ImportError:\n pyspark_pandas_api_available = False\n\n# make sure databricks.koalas exists before using it\ntry:\n import databricks.koalas\n koalas_available = True\nexcept ImportError:\n koalas_available = False\n\n# preferentially convert pandas DataFrames to pandas-on-Spark or Koalas DataFrames first\n# since they know how to convert pandas DataFrames better than `spark.createDataFrame(df)`\n# and converting from pandas-on-Spark to Spark DataFrame has no overhead\nif pyspark_pandas_api_available and pandas_available and isinstance(df, pandas.core.frame.DataFrame):\n df = pyspark.pandas.frame.DataFrame(df)\nelif koalas_available and pandas_available and isinstance(df, pandas.core.frame.DataFrame):\n df = databricks.koalas.frame.DataFrame(df)\n\n# convert to pyspark.sql.dataframe.DataFrame\nif isinstance(df, pyspark.sql.dataframe.DataFrame):\n pass # since it is already a Spark DataFrame\nelif pyspark_pandas_api_available and isinstance(df, pyspark.pandas.frame.DataFrame):\n df = df.to_spark()\nelif koalas_available and isinstance(df, databricks.koalas.frame.DataFrame):\n df = df.to_spark()\nelif pandas_available and isinstance(df, pandas.core.frame.DataFrame):\n df = spark.createDataFrame(df)\nelse:\n msg = f\"{type(df)} is not a supported type for dbt Python materialization\"\n raise Exception(msg)\n\ndf.write \\\n .mode(\"overwrite\") \\\n .format(\"bigquery\") \\\n .option(\"writeMethod\", \"direct\").option(\"writeDisposition\", 'WRITE_TRUNCATE') \\\n .save(\"{{target_relation}}\")\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.289696, "supported_languages": null}, "macro.dbt_bigquery.materialization_copy_bigquery": {"name": "materialization_copy_bigquery", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/copy.sql", "original_file_path": "macros/materializations/copy.sql", "unique_id": "macro.dbt_bigquery.materialization_copy_bigquery", "macro_sql": "{% materialization copy, adapter='bigquery' -%}\n\n {# Setup #}\n {{ run_hooks(pre_hooks) }}\n\n {% set destination = this.incorporate(type='table') %}\n\n {# there can be several ref() or source() according to BQ copy API docs #}\n {# cycle over ref() and source() to create source tables array #}\n {% set source_array = [] %}\n {% for ref_table in model.refs %}\n {{ source_array.append(ref(*ref_table)) }}\n {% endfor %}\n\n {% for src_table in model.sources %}\n {{ source_array.append(source(*src_table)) }}\n {% endfor %}\n\n {# Call adapter copy_table function #}\n {%- set result_str = adapter.copy_table(\n source_array,\n destination,\n config.get('copy_materialization', default = 'table')) -%}\n\n {{ store_result('main', response=result_str) }}\n\n {# Clean up #}\n {{ run_hooks(post_hooks) }}\n {%- do apply_grants(target_relation, grant_config) -%}\n {{ adapter.commit() }}\n\n {{ return({'relations': [destination]}) }}\n{%- endmaterialization %}", "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.293408, "supported_languages": ["sql"]}, "macro.dbt_bigquery.dbt_bigquery_validate_get_incremental_strategy": {"name": "dbt_bigquery_validate_get_incremental_strategy", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/incremental.sql", "original_file_path": "macros/materializations/incremental.sql", "unique_id": "macro.dbt_bigquery.dbt_bigquery_validate_get_incremental_strategy", "macro_sql": "{% macro dbt_bigquery_validate_get_incremental_strategy(config) %}\n {#-- Find and validate the incremental strategy #}\n {%- set strategy = config.get(\"incremental_strategy\") or 'merge' -%}\n\n {% set invalid_strategy_msg -%}\n Invalid incremental strategy provided: {{ strategy }}\n Expected one of: 'merge', 'insert_overwrite'\n {%- endset %}\n {% if strategy not in ['merge', 'insert_overwrite'] %}\n {% do exceptions.raise_compiler_error(invalid_strategy_msg) %}\n {% endif %}\n\n {% do return(strategy) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.298878, "supported_languages": null}, "macro.dbt_bigquery.source_sql_with_partition": {"name": "source_sql_with_partition", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/incremental.sql", "original_file_path": "macros/materializations/incremental.sql", "unique_id": "macro.dbt_bigquery.source_sql_with_partition", "macro_sql": "{% macro source_sql_with_partition(partition_by, source_sql) %}\n\n {%- if partition_by.time_ingestion_partitioning %}\n {{ return(wrap_with_time_ingestion_partitioning_sql(partition_by, source_sql, False)) }}\n {% else %}\n {{ return(source_sql) }}\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.wrap_with_time_ingestion_partitioning_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.299825, "supported_languages": null}, "macro.dbt_bigquery.bq_create_table_as": {"name": "bq_create_table_as", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/incremental.sql", "original_file_path": "macros/materializations/incremental.sql", "unique_id": "macro.dbt_bigquery.bq_create_table_as", "macro_sql": "{% macro bq_create_table_as(partition_by, temporary, relation, compiled_code, language='sql') %}\n {%- set _dbt_max_partition = declare_dbt_max_partition(this, partition_by, compiled_code, language) -%}\n {% if partition_by.time_ingestion_partitioning and language == 'python' %}\n {% do exceptions.raise_compiler_error(\n \"Python models do not support ingestion time partitioning\"\n ) %}\n {% elif partition_by.time_ingestion_partitioning and language == 'sql' %}\n {#-- Create the table before inserting data as ingestion time partitioned tables can't be created with the transformed data --#}\n {% do run_query(create_table_as(temporary, relation, compiled_code)) %}\n {{ return(_dbt_max_partition + bq_insert_into_ingestion_time_partitioned_table_sql(relation, compiled_code)) }}\n {% else %}\n {{ return(_dbt_max_partition + create_table_as(temporary, relation, compiled_code, language)) }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.declare_dbt_max_partition", "macro.dbt.run_query", "macro.dbt.create_table_as", "macro.dbt_bigquery.bq_insert_into_ingestion_time_partitioned_table_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.302204, "supported_languages": null}, "macro.dbt_bigquery.bq_generate_incremental_build_sql": {"name": "bq_generate_incremental_build_sql", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/incremental.sql", "original_file_path": "macros/materializations/incremental.sql", "unique_id": "macro.dbt_bigquery.bq_generate_incremental_build_sql", "macro_sql": "{% macro bq_generate_incremental_build_sql(\n strategy, tmp_relation, target_relation, sql, unique_key, partition_by, partitions, dest_columns, tmp_relation_exists, copy_partitions, incremental_predicates\n) %}\n {#-- if partitioned, use BQ scripting to get the range of partition values to be updated --#}\n {% if strategy == 'insert_overwrite' %}\n\n {% set build_sql = bq_generate_incremental_insert_overwrite_build_sql(\n tmp_relation, target_relation, sql, unique_key, partition_by, partitions, dest_columns, tmp_relation_exists, copy_partitions\n ) %}\n\n {% else %} {# strategy == 'merge' #}\n\n {% set build_sql = bq_generate_incremental_merge_build_sql(\n tmp_relation, target_relation, sql, unique_key, partition_by, dest_columns, tmp_relation_exists, incremental_predicates\n ) %}\n\n {% endif %}\n\n {{ return(build_sql) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bq_generate_incremental_insert_overwrite_build_sql", "macro.dbt_bigquery.bq_generate_incremental_merge_build_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.304252, "supported_languages": null}, "macro.dbt_bigquery.materialization_incremental_bigquery": {"name": "materialization_incremental_bigquery", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/incremental.sql", "original_file_path": "macros/materializations/incremental.sql", "unique_id": "macro.dbt_bigquery.materialization_incremental_bigquery", "macro_sql": "{% materialization incremental, adapter='bigquery', supported_languages=['sql', 'python'] -%}\n\n {%- set unique_key = config.get('unique_key') -%}\n {%- set full_refresh_mode = (should_full_refresh()) -%}\n {%- set language = model['language'] %}\n\n {%- set target_relation = this %}\n {%- set existing_relation = load_relation(this) %}\n {%- set tmp_relation = make_temp_relation(this) %}\n\n {#-- Validate early so we don't run SQL if the strategy is invalid --#}\n {% set strategy = dbt_bigquery_validate_get_incremental_strategy(config) -%}\n\n {%- set raw_partition_by = config.get('partition_by', none) -%}\n {%- set partition_by = adapter.parse_partition_by(raw_partition_by) -%}\n {%- set partitions = config.get('partitions', none) -%}\n {%- set cluster_by = config.get('cluster_by', none) -%}\n\n {% set on_schema_change = incremental_validate_on_schema_change(config.get('on_schema_change'), default='ignore') %}\n {% set incremental_predicates = config.get('predicates', default=none) or config.get('incremental_predicates', default=none) %}\n\n -- grab current tables grants config for comparison later on\n {% set grant_config = config.get('grants') %}\n\n {{ run_hooks(pre_hooks) }}\n\n {% if partition_by.copy_partitions is true and strategy != 'insert_overwrite' %} {#-- We can't copy partitions with merge strategy --#}\n {% set wrong_strategy_msg -%}\n The 'copy_partitions' option requires the 'incremental_strategy' option to be set to 'insert_overwrite'.\n {%- endset %}\n {% do exceptions.raise_compiler_error(wrong_strategy_msg) %}\n\n {% elif existing_relation is none %}\n {%- call statement('main', language=language) -%}\n {{ bq_create_table_as(partition_by, False, target_relation, compiled_code, language) }}\n {%- endcall -%}\n\n {% elif existing_relation.is_view %}\n {#-- There's no way to atomically replace a view with a table on BQ --#}\n {{ adapter.drop_relation(existing_relation) }}\n {%- call statement('main', language=language) -%}\n {{ bq_create_table_as(partition_by, False, target_relation, compiled_code, language) }}\n {%- endcall -%}\n\n {% elif full_refresh_mode %}\n {#-- If the partition/cluster config has changed, then we must drop and recreate --#}\n {% if not adapter.is_replaceable(existing_relation, partition_by, cluster_by) %}\n {% do log(\"Hard refreshing \" ~ existing_relation ~ \" because it is not replaceable\") %}\n {{ adapter.drop_relation(existing_relation) }}\n {% endif %}\n {%- call statement('main', language=language) -%}\n {{ bq_create_table_as(partition_by, False, target_relation, compiled_code, language) }}\n {%- endcall -%}\n\n {% else %}\n {%- if language == 'python' and strategy == 'insert_overwrite' -%}\n {#-- This lets us move forward assuming no python will be directly templated into a query --#}\n {%- set python_unsupported_msg -%}\n The 'insert_overwrite' strategy is not yet supported for python models.\n {%- endset %}\n {% do exceptions.raise_compiler_error(python_unsupported_msg) %}\n {%- endif -%}\n\n {% set tmp_relation_exists = false %}\n {% if on_schema_change != 'ignore' or language == 'python' %}\n {#-- Check first, since otherwise we may not build a temp table --#}\n {#-- Python always needs to create a temp table --#}\n {%- call statement('create_tmp_relation', language=language) -%}\n {{ bq_create_table_as(partition_by, True, tmp_relation, compiled_code, language) }}\n {%- endcall -%}\n {% set tmp_relation_exists = true %}\n {#-- Process schema changes. Returns dict of changes if successful. Use source columns for upserting/merging --#}\n {% set dest_columns = process_schema_changes(on_schema_change, tmp_relation, existing_relation) %}\n {% endif %}\n\n {% if not dest_columns %}\n {% set dest_columns = adapter.get_columns_in_relation(existing_relation) %}\n {% endif %}\n {#-- Add time ingestion pseudo column to destination column as not part of the 'schema' but still need it for actual data insertion --#}\n {% if partition_by.time_ingestion_partitioning %}\n {% set dest_columns = adapter.add_time_ingestion_partition_column(partition_by, dest_columns) %}\n {% endif %}\n\n {% set build_sql = bq_generate_incremental_build_sql(\n strategy, tmp_relation, target_relation, compiled_code, unique_key, partition_by, partitions, dest_columns, tmp_relation_exists, partition_by.copy_partitions, incremental_predicates\n ) %}\n\n {%- call statement('main') -%}\n {{ build_sql }}\n {% endcall %}\n\n {%- if language == 'python' and tmp_relation -%}\n {{ adapter.drop_relation(tmp_relation) }}\n {%- endif -%}\n\n {% endif %}\n\n {{ run_hooks(post_hooks) }}\n\n {% set target_relation = this.incorporate(type='table') %}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode) %}\n {% do apply_grants(target_relation, grant_config, should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization %}", "depends_on": {"macros": ["macro.dbt.should_full_refresh", "macro.dbt.load_relation", "macro.dbt.make_temp_relation", "macro.dbt_bigquery.dbt_bigquery_validate_get_incremental_strategy", "macro.dbt.incremental_validate_on_schema_change", "macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt_bigquery.bq_create_table_as", "macro.dbt.process_schema_changes", "macro.dbt_bigquery.bq_generate_incremental_build_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.316863, "supported_languages": ["sql", "python"]}, "macro.dbt_bigquery.bigquery__snapshot_hash_arguments": {"name": "bigquery__snapshot_hash_arguments", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/snapshot.sql", "original_file_path": "macros/materializations/snapshot.sql", "unique_id": "macro.dbt_bigquery.bigquery__snapshot_hash_arguments", "macro_sql": "{% macro bigquery__snapshot_hash_arguments(args) -%}\n to_hex(md5(concat({%- for arg in args -%}\n coalesce(cast({{ arg }} as string), ''){% if not loop.last %}, '|',{% endif -%}\n {%- endfor -%}\n )))\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.318068, "supported_languages": null}, "macro.dbt_bigquery.bigquery__create_columns": {"name": "bigquery__create_columns", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/snapshot.sql", "original_file_path": "macros/materializations/snapshot.sql", "unique_id": "macro.dbt_bigquery.bigquery__create_columns", "macro_sql": "{% macro bigquery__create_columns(relation, columns) %}\n {{ adapter.alter_table_add_columns(relation, columns) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.3185658, "supported_languages": null}, "macro.dbt_bigquery.bigquery__post_snapshot": {"name": "bigquery__post_snapshot", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/snapshot.sql", "original_file_path": "macros/materializations/snapshot.sql", "unique_id": "macro.dbt_bigquery.bigquery__post_snapshot", "macro_sql": "{% macro bigquery__post_snapshot(staging_relation) %}\n -- Clean up the snapshot temp table\n {% do drop_relation(staging_relation) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.drop_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.318999, "supported_languages": null}, "macro.dbt_bigquery.bigquery__can_clone_table": {"name": "bigquery__can_clone_table", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/clone.sql", "original_file_path": "macros/materializations/clone.sql", "unique_id": "macro.dbt_bigquery.bigquery__can_clone_table", "macro_sql": "{% macro bigquery__can_clone_table() %}\n {{ return(True) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.319581, "supported_languages": null}, "macro.dbt_bigquery.bigquery__create_or_replace_clone": {"name": "bigquery__create_or_replace_clone", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/clone.sql", "original_file_path": "macros/materializations/clone.sql", "unique_id": "macro.dbt_bigquery.bigquery__create_or_replace_clone", "macro_sql": "{% macro bigquery__create_or_replace_clone(this_relation, defer_relation) %}\n create or replace\n table {{ this_relation }}\n clone {{ defer_relation }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.320002, "supported_languages": null}, "macro.dbt_bigquery.bq_generate_incremental_merge_build_sql": {"name": "bq_generate_incremental_merge_build_sql", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/incremental_strategy/merge.sql", "original_file_path": "macros/materializations/incremental_strategy/merge.sql", "unique_id": "macro.dbt_bigquery.bq_generate_incremental_merge_build_sql", "macro_sql": "{% macro bq_generate_incremental_merge_build_sql(\n tmp_relation, target_relation, sql, unique_key, partition_by, dest_columns, tmp_relation_exists, incremental_predicates\n) %}\n {%- set source_sql -%}\n {%- if tmp_relation_exists -%}\n (\n select\n {% if partition_by.time_ingestion_partitioning -%}\n {{ partition_by.insertable_time_partitioning_field() }},\n {%- endif -%}\n * from {{ tmp_relation }}\n )\n {%- else -%} {#-- wrap sql in parens to make it a subquery --#}\n (\n {%- if partition_by.time_ingestion_partitioning -%}\n {{ wrap_with_time_ingestion_partitioning_sql(partition_by, sql, True) }}\n {%- else -%}\n {{sql}}\n {%- endif %}\n )\n {%- endif -%}\n {%- endset -%}\n\n {% set build_sql = get_merge_sql(target_relation, source_sql, unique_key, dest_columns, incremental_predicates) %}\n\n {{ return(build_sql) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.wrap_with_time_ingestion_partitioning_sql", "macro.dbt.get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.322495, "supported_languages": null}, "macro.dbt_bigquery.declare_dbt_max_partition": {"name": "declare_dbt_max_partition", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/incremental_strategy/common.sql", "original_file_path": "macros/materializations/incremental_strategy/common.sql", "unique_id": "macro.dbt_bigquery.declare_dbt_max_partition", "macro_sql": "{% macro declare_dbt_max_partition(relation, partition_by, compiled_code, language='sql') %}\n\n {#-- TODO: revisit partitioning with python models --#}\n {%- if '_dbt_max_partition' in compiled_code and language == 'sql' -%}\n\n declare _dbt_max_partition {{ partition_by.data_type_for_partition() }} default (\n select max({{ partition_by.field }}) from {{ this }}\n where {{ partition_by.field }} is not null\n );\n\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.3237498, "supported_languages": null}, "macro.dbt_bigquery.bq_generate_incremental_insert_overwrite_build_sql": {"name": "bq_generate_incremental_insert_overwrite_build_sql", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/incremental_strategy/insert_overwrite.sql", "original_file_path": "macros/materializations/incremental_strategy/insert_overwrite.sql", "unique_id": "macro.dbt_bigquery.bq_generate_incremental_insert_overwrite_build_sql", "macro_sql": "{% macro bq_generate_incremental_insert_overwrite_build_sql(\n tmp_relation, target_relation, sql, unique_key, partition_by, partitions, dest_columns, tmp_relation_exists, copy_partitions\n) %}\n {% if partition_by is none %}\n {% set missing_partition_msg -%}\n The 'insert_overwrite' strategy requires the `partition_by` config.\n {%- endset %}\n {% do exceptions.raise_compiler_error(missing_partition_msg) %}\n {% endif %}\n\n {% set build_sql = bq_insert_overwrite_sql(\n tmp_relation, target_relation, sql, unique_key, partition_by, partitions, dest_columns, tmp_relation_exists, copy_partitions\n ) %}\n\n {{ return(build_sql) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bq_insert_overwrite_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.329788, "supported_languages": null}, "macro.dbt_bigquery.bq_copy_partitions": {"name": "bq_copy_partitions", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/incremental_strategy/insert_overwrite.sql", "original_file_path": "macros/materializations/incremental_strategy/insert_overwrite.sql", "unique_id": "macro.dbt_bigquery.bq_copy_partitions", "macro_sql": "{% macro bq_copy_partitions(tmp_relation, target_relation, partitions, partition_by) %}\n\n {% for partition in partitions %}\n {% if partition_by.granularity == 'hour' %}\n {% set partition = partition.strftime(\"%Y%m%d%H\") %}\n {% elif partition_by.granularity == 'day' %}\n {% set partition = partition.strftime(\"%Y%m%d\") %}\n {% elif partition_by.granularity == 'month' %}\n {% set partition = partition.strftime(\"%Y%m\") %}\n {% elif partition_by.granularity == 'year' %}\n {% set partition = partition.strftime(\"%Y\") %}\n {% endif %}\n {% set tmp_relation_partitioned = api.Relation.create(database=tmp_relation.database, schema=tmp_relation.schema, identifier=tmp_relation.table ~ '$' ~ partition, type=tmp_relation.type) %}\n {% set target_relation_partitioned = api.Relation.create(database=target_relation.database, schema=target_relation.schema, identifier=target_relation.table ~ '$' ~ partition, type=target_relation.type) %}\n {% do adapter.copy_table(tmp_relation_partitioned, target_relation_partitioned, \"table\") %}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.333406, "supported_languages": null}, "macro.dbt_bigquery.bq_insert_overwrite_sql": {"name": "bq_insert_overwrite_sql", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/incremental_strategy/insert_overwrite.sql", "original_file_path": "macros/materializations/incremental_strategy/insert_overwrite.sql", "unique_id": "macro.dbt_bigquery.bq_insert_overwrite_sql", "macro_sql": "{% macro bq_insert_overwrite_sql(\n tmp_relation, target_relation, sql, unique_key, partition_by, partitions, dest_columns, tmp_relation_exists, copy_partitions\n) %}\n {% if partitions is not none and partitions != [] %} {# static #}\n {{ bq_static_insert_overwrite_sql(tmp_relation, target_relation, sql, partition_by, partitions, dest_columns, tmp_relation_exists, copy_partitions) }}\n {% else %} {# dynamic #}\n {{ bq_dynamic_insert_overwrite_sql(tmp_relation, target_relation, sql, unique_key, partition_by, dest_columns, tmp_relation_exists, copy_partitions) }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bq_static_insert_overwrite_sql", "macro.dbt_bigquery.bq_dynamic_insert_overwrite_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.335171, "supported_languages": null}, "macro.dbt_bigquery.bq_static_insert_overwrite_sql": {"name": "bq_static_insert_overwrite_sql", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/incremental_strategy/insert_overwrite.sql", "original_file_path": "macros/materializations/incremental_strategy/insert_overwrite.sql", "unique_id": "macro.dbt_bigquery.bq_static_insert_overwrite_sql", "macro_sql": "{% macro bq_static_insert_overwrite_sql(\n tmp_relation, target_relation, sql, partition_by, partitions, dest_columns, tmp_relation_exists, copy_partitions\n) %}\n\n {% set predicate -%}\n {{ partition_by.render_wrapped(alias='DBT_INTERNAL_DEST') }} in (\n {{ partitions | join (', ') }}\n )\n {%- endset %}\n\n {%- set source_sql -%}\n (\n {% if partition_by.time_ingestion_partitioning and tmp_relation_exists -%}\n select\n {{ partition_by.insertable_time_partitioning_field() }},\n * from {{ tmp_relation }}\n {% elif tmp_relation_exists -%}\n select\n * from {{ tmp_relation }}\n {%- elif partition_by.time_ingestion_partitioning -%}\n {{ wrap_with_time_ingestion_partitioning_sql(partition_by, sql, True) }}\n {%- else -%}\n {{sql}}\n {%- endif -%}\n\n )\n {%- endset -%}\n\n {% if copy_partitions %}\n {% do bq_copy_partitions(tmp_relation, target_relation, partitions, partition_by) %}\n {% else %}\n\n {#-- In case we're putting the model SQL _directly_ into the MERGE statement,\n we need to prepend the MERGE statement with the user-configured sql_header,\n which may be needed to resolve that model SQL (e.g. referencing a variable or UDF in the header)\n in the \"temporary table exists\" case, we save the model SQL result as a temp table first, wherein the\n sql_header is included by the create_table_as macro.\n #}\n -- 1. run the merge statement\n {{ get_insert_overwrite_merge_sql(target_relation, source_sql, dest_columns, [predicate], include_sql_header = not tmp_relation_exists) }};\n\n {%- if tmp_relation_exists -%}\n -- 2. clean up the temp table\n drop table if exists {{ tmp_relation }};\n {%- endif -%}\n\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.wrap_with_time_ingestion_partitioning_sql", "macro.dbt_bigquery.bq_copy_partitions", "macro.dbt.get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.3382678, "supported_languages": null}, "macro.dbt_bigquery.bq_dynamic_copy_partitions_insert_overwrite_sql": {"name": "bq_dynamic_copy_partitions_insert_overwrite_sql", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/incremental_strategy/insert_overwrite.sql", "original_file_path": "macros/materializations/incremental_strategy/insert_overwrite.sql", "unique_id": "macro.dbt_bigquery.bq_dynamic_copy_partitions_insert_overwrite_sql", "macro_sql": "{% macro bq_dynamic_copy_partitions_insert_overwrite_sql(\n tmp_relation, target_relation, sql, unique_key, partition_by, dest_columns, tmp_relation_exists, copy_partitions\n ) %}\n {# We run temp table creation in a separated script to move to partitions copy #}\n {%- call statement('create_tmp_relation_for_copy', language='sql') -%}\n {{ bq_create_table_as(partition_by, True, tmp_relation, sql, 'sql')\n }}\n {%- endcall %}\n {%- set partitions_sql -%}\n select distinct {{ partition_by.render_wrapped() }}\n from {{ tmp_relation }}\n {%- endset -%}\n {%- set partitions = run_query(partitions_sql).columns[0].values() -%}\n {# We copy the partitions #}\n {%- do bq_copy_partitions(tmp_relation, target_relation, partitions, partition_by) -%}\n -- Clean up the temp table\n drop table if exists {{ tmp_relation }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_bigquery.bq_create_table_as", "macro.dbt.run_query", "macro.dbt_bigquery.bq_copy_partitions"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.340307, "supported_languages": null}, "macro.dbt_bigquery.bq_dynamic_insert_overwrite_sql": {"name": "bq_dynamic_insert_overwrite_sql", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/incremental_strategy/insert_overwrite.sql", "original_file_path": "macros/materializations/incremental_strategy/insert_overwrite.sql", "unique_id": "macro.dbt_bigquery.bq_dynamic_insert_overwrite_sql", "macro_sql": "{% macro bq_dynamic_insert_overwrite_sql(tmp_relation, target_relation, sql, unique_key, partition_by, dest_columns, tmp_relation_exists, copy_partitions) %}\n {%- if copy_partitions is true %}\n {{ bq_dynamic_copy_partitions_insert_overwrite_sql(tmp_relation, target_relation, sql, unique_key, partition_by, dest_columns, tmp_relation_exists, copy_partitions) }}\n {% else -%}\n {% set predicate -%}\n {{ partition_by.render_wrapped(alias='DBT_INTERNAL_DEST') }} in unnest(dbt_partitions_for_replacement)\n {%- endset %}\n\n {%- set source_sql -%}\n (\n select\n {% if partition_by.time_ingestion_partitioning -%}\n {{ partition_by.insertable_time_partitioning_field() }},\n {%- endif -%}\n * from {{ tmp_relation }}\n )\n {%- endset -%}\n\n -- generated script to merge partitions into {{ target_relation }}\n declare dbt_partitions_for_replacement array<{{ partition_by.data_type_for_partition() }}>;\n\n {# have we already created the temp table to check for schema changes? #}\n {% if not tmp_relation_exists %}\n -- 1. create a temp table with model data\n {{ bq_create_table_as(partition_by, True, tmp_relation, sql, 'sql') }}\n {% else %}\n -- 1. temp table already exists, we used it to check for schema changes\n {% endif %}\n {%- set partition_field = partition_by.time_partitioning_field() if partition_by.time_ingestion_partitioning else partition_by.render_wrapped() -%}\n\n -- 2. define partitions to update\n set (dbt_partitions_for_replacement) = (\n select as struct\n -- IGNORE NULLS: this needs to be aligned to _dbt_max_partition, which ignores null\n array_agg(distinct {{ partition_field }} IGNORE NULLS)\n from {{ tmp_relation }}\n );\n\n -- 3. run the merge statement\n {{ get_insert_overwrite_merge_sql(target_relation, source_sql, dest_columns, [predicate]) }};\n\n -- 4. clean up the temp table\n drop table if exists {{ tmp_relation }}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bq_dynamic_copy_partitions_insert_overwrite_sql", "macro.dbt_bigquery.bq_create_table_as", "macro.dbt.get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.3441138, "supported_languages": null}, "macro.dbt_bigquery.wrap_with_time_ingestion_partitioning_sql": {"name": "wrap_with_time_ingestion_partitioning_sql", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/incremental_strategy/time_ingestion_tables.sql", "original_file_path": "macros/materializations/incremental_strategy/time_ingestion_tables.sql", "unique_id": "macro.dbt_bigquery.wrap_with_time_ingestion_partitioning_sql", "macro_sql": "{% macro wrap_with_time_ingestion_partitioning_sql(partition_by, sql, is_nested) %}\n\n select TIMESTAMP({{ partition_by.field }}) as {{ partition_by.insertable_time_partitioning_field() }}, * EXCEPT({{ partition_by.field }}) from (\n {{ sql }}\n ){%- if not is_nested -%};{%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.347394, "supported_languages": null}, "macro.dbt_bigquery.get_quoted_with_types_csv": {"name": "get_quoted_with_types_csv", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/incremental_strategy/time_ingestion_tables.sql", "original_file_path": "macros/materializations/incremental_strategy/time_ingestion_tables.sql", "unique_id": "macro.dbt_bigquery.get_quoted_with_types_csv", "macro_sql": "{% macro get_quoted_with_types_csv(columns) %}\n {% set quoted = [] %}\n {% for col in columns -%}\n {%- do quoted.append(adapter.quote(col.name) ~ \" \" ~ col.data_type) -%}\n {%- endfor %}\n {%- set dest_cols_csv = quoted | join(', ') -%}\n {{ return(dest_cols_csv) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.348662, "supported_languages": null}, "macro.dbt_bigquery.columns_without_partition_fields_csv": {"name": "columns_without_partition_fields_csv", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/incremental_strategy/time_ingestion_tables.sql", "original_file_path": "macros/materializations/incremental_strategy/time_ingestion_tables.sql", "unique_id": "macro.dbt_bigquery.columns_without_partition_fields_csv", "macro_sql": "{% macro columns_without_partition_fields_csv(partition_config, columns) -%}\n {%- set columns_no_partition = partition_config.reject_partition_field_column(columns) -%}\n {% set columns_names = get_quoted_with_types_csv(columns_no_partition) %}\n {{ return(columns_names) }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_bigquery.get_quoted_with_types_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.349463, "supported_languages": null}, "macro.dbt_bigquery.bq_insert_into_ingestion_time_partitioned_table_sql": {"name": "bq_insert_into_ingestion_time_partitioned_table_sql", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/incremental_strategy/time_ingestion_tables.sql", "original_file_path": "macros/materializations/incremental_strategy/time_ingestion_tables.sql", "unique_id": "macro.dbt_bigquery.bq_insert_into_ingestion_time_partitioned_table_sql", "macro_sql": "{% macro bq_insert_into_ingestion_time_partitioned_table_sql(target_relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n {{ sql_header if sql_header is not none }}\n {%- set raw_partition_by = config.get('partition_by', none) -%}\n {%- set partition_by = adapter.parse_partition_by(raw_partition_by) -%}\n {% set dest_columns = adapter.get_columns_in_relation(target_relation) %}\n {%- set dest_columns_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n insert into {{ target_relation }} ({{ partition_by.insertable_time_partitioning_field() }}, {{ dest_columns_csv }})\n {{ wrap_with_time_ingestion_partitioning_sql(partition_by, sql, False) }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.get_quoted_csv", "macro.dbt_bigquery.wrap_with_time_ingestion_partitioning_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.3515809, "supported_languages": null}, "macro.dbt_bigquery.get_columns_with_types_in_query_sql": {"name": "get_columns_with_types_in_query_sql", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/incremental_strategy/time_ingestion_tables.sql", "original_file_path": "macros/materializations/incremental_strategy/time_ingestion_tables.sql", "unique_id": "macro.dbt_bigquery.get_columns_with_types_in_query_sql", "macro_sql": "{% macro get_columns_with_types_in_query_sql(select_sql) %}\n {% set sql %}\n {%- set sql_header = config.get('sql_header', none) -%}\n {{ sql_header if sql_header is not none }}\n select * from (\n {{ select_sql }}\n ) as __dbt_sbq\n where false\n limit 0\n {% endset %}\n {{ return(adapter.get_columns_in_select_sql(sql)) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.3527339, "supported_languages": null}, "macro.dbt_bigquery.bigquery__except": {"name": "bigquery__except", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "unique_id": "macro.dbt_bigquery.bigquery__except", "macro_sql": "{% macro bigquery__except() %}\n\n except distinct\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.353129, "supported_languages": null}, "macro.dbt_bigquery.bigquery__dateadd": {"name": "bigquery__dateadd", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "unique_id": "macro.dbt_bigquery.bigquery__dateadd", "macro_sql": "{% macro bigquery__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n datetime_add(\n cast( {{ from_date_or_timestamp }} as datetime),\n interval {{ interval }} {{ datepart }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.3538291, "supported_languages": null}, "macro.dbt_bigquery.bigquery__current_timestamp": {"name": "bigquery__current_timestamp", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/utils/timestamps.sql", "original_file_path": "macros/utils/timestamps.sql", "unique_id": "macro.dbt_bigquery.bigquery__current_timestamp", "macro_sql": "{% macro bigquery__current_timestamp() -%}\n current_timestamp()\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.354335, "supported_languages": null}, "macro.dbt_bigquery.bigquery__snapshot_string_as_time": {"name": "bigquery__snapshot_string_as_time", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/utils/timestamps.sql", "original_file_path": "macros/utils/timestamps.sql", "unique_id": "macro.dbt_bigquery.bigquery__snapshot_string_as_time", "macro_sql": "{% macro bigquery__snapshot_string_as_time(timestamp) -%}\n {%- set result = 'TIMESTAMP(\"' ~ timestamp ~ '\")' -%}\n {{ return(result) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.354934, "supported_languages": null}, "macro.dbt_bigquery.bigquery__current_timestamp_backcompat": {"name": "bigquery__current_timestamp_backcompat", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/utils/timestamps.sql", "original_file_path": "macros/utils/timestamps.sql", "unique_id": "macro.dbt_bigquery.bigquery__current_timestamp_backcompat", "macro_sql": "{% macro bigquery__current_timestamp_backcompat() -%}\n current_timestamp\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.3552, "supported_languages": null}, "macro.dbt_bigquery.bigquery__intersect": {"name": "bigquery__intersect", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "unique_id": "macro.dbt_bigquery.bigquery__intersect", "macro_sql": "{% macro bigquery__intersect() %}\n\n intersect distinct\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.35554, "supported_languages": null}, "macro.dbt_bigquery.bigquery__escape_single_quotes": {"name": "bigquery__escape_single_quotes", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "unique_id": "macro.dbt_bigquery.bigquery__escape_single_quotes", "macro_sql": "{% macro bigquery__escape_single_quotes(expression) -%}\n{{ expression | replace(\"'\", \"\\\\'\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.356224, "supported_languages": null}, "macro.dbt_bigquery.bigquery__format_column": {"name": "bigquery__format_column", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/utils/get_columns_spec_ddl.sql", "original_file_path": "macros/utils/get_columns_spec_ddl.sql", "unique_id": "macro.dbt_bigquery.bigquery__format_column", "macro_sql": "{% macro bigquery__format_column(column) -%}\n {% set data_type = column.data_type %}\n {% set formatted = column.column.lower() ~ \" \" ~ data_type %}\n {{ return({'name': column.name, 'data_type': data_type, 'formatted': formatted}) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.3584251, "supported_languages": null}, "macro.dbt_bigquery.bigquery__get_empty_schema_sql": {"name": "bigquery__get_empty_schema_sql", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/utils/get_columns_spec_ddl.sql", "original_file_path": "macros/utils/get_columns_spec_ddl.sql", "unique_id": "macro.dbt_bigquery.bigquery__get_empty_schema_sql", "macro_sql": "{% macro bigquery__get_empty_schema_sql(columns) %}\n {%- set col_err = [] -%}\n {% for col in columns.values() %}\n {%- if col['data_type'] is not defined -%}\n {{ col_err.append(col['name']) }}\n {%- endif -%}\n {%- endfor -%}\n {%- if (col_err | length) > 0 -%}\n {{ exceptions.column_type_missing(column_names=col_err) }}\n {%- endif -%}\n\n {%- set columns = adapter.nest_column_data_types(columns) -%}\n {{ return(dbt.default__get_empty_schema_sql(columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_empty_schema_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.360296, "supported_languages": null}, "macro.dbt_bigquery.bigquery__get_select_subquery": {"name": "bigquery__get_select_subquery", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/utils/get_columns_spec_ddl.sql", "original_file_path": "macros/utils/get_columns_spec_ddl.sql", "unique_id": "macro.dbt_bigquery.bigquery__get_select_subquery", "macro_sql": "{% macro bigquery__get_select_subquery(sql) %}\n select {{ adapter.dispatch('get_column_names')() }}\n from (\n {{ sql }}\n ) as model_subq\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__get_column_names"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.360867, "supported_languages": null}, "macro.dbt_bigquery.bigquery__get_column_names": {"name": "bigquery__get_column_names", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/utils/get_columns_spec_ddl.sql", "original_file_path": "macros/utils/get_columns_spec_ddl.sql", "unique_id": "macro.dbt_bigquery.bigquery__get_column_names", "macro_sql": "{% macro bigquery__get_column_names() %}\n {#- loop through nested user_provided_columns to get column names -#}\n {%- set user_provided_columns = adapter.nest_column_data_types(model['columns']) -%}\n {%- for i in user_provided_columns %}\n {%- set col = user_provided_columns[i] -%}\n {%- set col_name = adapter.quote(col['name']) if col.get('quote') else col['name'] -%}\n {{ col_name }}{{ \", \" if not loop.last }}\n {%- endfor -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.3626099, "supported_languages": null}, "macro.dbt_bigquery.bigquery__right": {"name": "bigquery__right", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "unique_id": "macro.dbt_bigquery.bigquery__right", "macro_sql": "{% macro bigquery__right(string_text, length_expression) %}\n\n case when {{ length_expression }} = 0\n then ''\n else\n substr(\n {{ string_text }},\n -1 * ({{ length_expression }})\n )\n end\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.36337, "supported_languages": null}, "macro.dbt_bigquery.bigquery__listagg": {"name": "bigquery__listagg", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "unique_id": "macro.dbt_bigquery.bigquery__listagg", "macro_sql": "{% macro bigquery__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n string_agg(\n {{ measure }},\n {{ delimiter_text }}\n {% if order_by_clause -%}\n {{ order_by_clause }}\n {%- endif %}\n {% if limit_num -%}\n limit {{ limit_num }}\n {%- endif %}\n )\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.364583, "supported_languages": null}, "macro.dbt_bigquery.bigquery__datediff": {"name": "bigquery__datediff", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "unique_id": "macro.dbt_bigquery.bigquery__datediff", "macro_sql": "{% macro bigquery__datediff(first_date, second_date, datepart) -%}\n\n {% if dbt_version[0] == 1 and dbt_version[2] >= 2 %}\n {{ return(dbt.datediff(first_date, second_date, datepart)) }}\n {% else %}\n\n datetime_diff(\n cast({{second_date}} as datetime),\n cast({{first_date}} as datetime),\n {{datepart}}\n )\n\n {% endif %}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.366087, "supported_languages": null}, "macro.dbt_bigquery.bigquery__safe_cast": {"name": "bigquery__safe_cast", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "unique_id": "macro.dbt_bigquery.bigquery__safe_cast", "macro_sql": "{% macro bigquery__safe_cast(field, type) %}\n safe_cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.3666391, "supported_languages": null}, "macro.dbt_bigquery.bigquery__hash": {"name": "bigquery__hash", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "unique_id": "macro.dbt_bigquery.bigquery__hash", "macro_sql": "{% macro bigquery__hash(field) -%}\n to_hex({{dbt.default__hash(field)}})\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__hash"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.3671691, "supported_languages": null}, "macro.dbt_bigquery.bigquery__position": {"name": "bigquery__position", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "unique_id": "macro.dbt_bigquery.bigquery__position", "macro_sql": "{% macro bigquery__position(substring_text, string_text) %}\n\n strpos(\n {{ string_text }},\n {{ substring_text }}\n\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.367938, "supported_languages": null}, "macro.dbt_bigquery.bigquery__array_concat": {"name": "bigquery__array_concat", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/utils/array_concat.sql", "original_file_path": "macros/utils/array_concat.sql", "unique_id": "macro.dbt_bigquery.bigquery__array_concat", "macro_sql": "{% macro bigquery__array_concat(array_1, array_2) -%}\n array_concat({{ array_1 }}, {{ array_2 }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.368486, "supported_languages": null}, "macro.dbt_bigquery.bigquery__bool_or": {"name": "bigquery__bool_or", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "unique_id": "macro.dbt_bigquery.bigquery__bool_or", "macro_sql": "{% macro bigquery__bool_or(expression) -%}\n\n logical_or({{ expression }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.368921, "supported_languages": null}, "macro.dbt_bigquery.bigquery__split_part": {"name": "bigquery__split_part", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt_bigquery.bigquery__split_part", "macro_sql": "{% macro bigquery__split_part(string_text, delimiter_text, part_number) %}\n\n {% if part_number >= 0 %}\n split(\n {{ string_text }},\n {{ delimiter_text }}\n )[safe_offset({{ part_number - 1 }})]\n {% else %}\n split(\n {{ string_text }},\n {{ delimiter_text }}\n )[safe_offset(\n length({{ string_text }})\n - length(\n replace({{ string_text }}, {{ delimiter_text }}, '')\n ) + 1 + {{ part_number }}\n )]\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.370628, "supported_languages": null}, "macro.dbt_bigquery.bigquery__date_trunc": {"name": "bigquery__date_trunc", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "unique_id": "macro.dbt_bigquery.bigquery__date_trunc", "macro_sql": "{% macro bigquery__date_trunc(datepart, date) -%}\n timestamp_trunc(\n cast({{date}} as timestamp),\n {{datepart}}\n )\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.3712, "supported_languages": null}, "macro.dbt_bigquery.bigquery__array_construct": {"name": "bigquery__array_construct", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "unique_id": "macro.dbt_bigquery.bigquery__array_construct", "macro_sql": "{% macro bigquery__array_construct(inputs, data_type) -%}\n {% if inputs|length > 0 %}\n [ {{ inputs|join(' , ') }} ]\n {% else %}\n ARRAY<{{data_type}}>[]\n {% endif %}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.372206, "supported_languages": null}, "macro.dbt_bigquery.bigquery__array_append": {"name": "bigquery__array_append", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/utils/array_append.sql", "original_file_path": "macros/utils/array_append.sql", "unique_id": "macro.dbt_bigquery.bigquery__array_append", "macro_sql": "{% macro bigquery__array_append(array, new_element) -%}\n {{ array_concat(array, array_construct([new_element])) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.array_concat", "macro.dbt.array_construct"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.372879, "supported_languages": null}, "macro.dbt_bigquery.bigquery__get_show_grant_sql": {"name": "bigquery__get_show_grant_sql", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt_bigquery.bigquery__get_show_grant_sql", "macro_sql": "{% macro bigquery__get_show_grant_sql(relation) %}\n {% set location = adapter.get_dataset_location(relation) %}\n {% set relation = relation.incorporate(location=location) %}\n\n select privilege_type, grantee\n from {{ relation.information_schema(\"OBJECT_PRIVILEGES\") }}\n where object_schema = \"{{ relation.dataset }}\"\n and object_name = \"{{ relation.identifier }}\"\n -- filter out current user\n and split(grantee, ':')[offset(1)] != session_user()\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.374672, "supported_languages": null}, "macro.dbt_bigquery.bigquery__get_grant_sql": {"name": "bigquery__get_grant_sql", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt_bigquery.bigquery__get_grant_sql", "macro_sql": "\n\n\n{%- macro bigquery__get_grant_sql(relation, privilege, grantee) -%}\n grant `{{ privilege }}` on {{ relation.type }} {{ relation }} to {{ '\\\"' + grantee|join('\\\", \\\"') + '\\\"' }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.375477, "supported_languages": null}, "macro.dbt_bigquery.bigquery__get_revoke_sql": {"name": "bigquery__get_revoke_sql", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt_bigquery.bigquery__get_revoke_sql", "macro_sql": "{%- macro bigquery__get_revoke_sql(relation, privilege, grantee) -%}\n revoke `{{ privilege }}` on {{ relation.type }} {{ relation }} from {{ '\\\"' + grantee|join('\\\", \\\"') + '\\\"' }}\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.376276, "supported_languages": null}, "macro.dbt_bigquery.bigquery__resolve_model_name": {"name": "bigquery__resolve_model_name", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt_bigquery.bigquery__resolve_model_name", "macro_sql": "{% macro bigquery__resolve_model_name(input_model_name) -%}\n {{ input_model_name | string | replace('`', '') | replace('\"', '\\\"') }}\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.377044, "supported_languages": null}, "macro.dbt.run_hooks": {"name": "run_hooks", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.run_hooks", "macro_sql": "{% macro run_hooks(hooks, inside_transaction=True) %}\n {% for hook in hooks | selectattr('transaction', 'equalto', inside_transaction) %}\n {% if not inside_transaction and loop.first %}\n {% call statement(auto_begin=inside_transaction) %}\n commit;\n {% endcall %}\n {% endif %}\n {% set rendered = render(hook.get('sql')) | trim %}\n {% if (rendered | length) > 0 %}\n {% call statement(auto_begin=inside_transaction) %}\n {{ rendered }}\n {% endcall %}\n {% endif %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.380112, "supported_languages": null}, "macro.dbt.make_hook_config": {"name": "make_hook_config", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.make_hook_config", "macro_sql": "{% macro make_hook_config(sql, inside_transaction) %}\n {{ tojson({\"sql\": sql, \"transaction\": inside_transaction}) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.3807528, "supported_languages": null}, "macro.dbt.before_begin": {"name": "before_begin", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.before_begin", "macro_sql": "{% macro before_begin(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.3812401, "supported_languages": null}, "macro.dbt.in_transaction": {"name": "in_transaction", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.in_transaction", "macro_sql": "{% macro in_transaction(sql) %}\n {{ make_hook_config(sql, inside_transaction=True) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.3817961, "supported_languages": null}, "macro.dbt.after_commit": {"name": "after_commit", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.after_commit", "macro_sql": "{% macro after_commit(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.382408, "supported_languages": null}, "macro.dbt.set_sql_header": {"name": "set_sql_header", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "unique_id": "macro.dbt.set_sql_header", "macro_sql": "{% macro set_sql_header(config) -%}\n {{ config.set('sql_header', caller()) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.3835788, "supported_languages": null}, "macro.dbt.should_full_refresh": {"name": "should_full_refresh", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "unique_id": "macro.dbt.should_full_refresh", "macro_sql": "{% macro should_full_refresh() %}\n {% set config_full_refresh = config.get('full_refresh') %}\n {% if config_full_refresh is none %}\n {% set config_full_refresh = flags.FULL_REFRESH %}\n {% endif %}\n {% do return(config_full_refresh) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.3846028, "supported_languages": null}, "macro.dbt.should_store_failures": {"name": "should_store_failures", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "unique_id": "macro.dbt.should_store_failures", "macro_sql": "{% macro should_store_failures() %}\n {% set config_store_failures = config.get('store_failures') %}\n {% if config_store_failures is none %}\n {% set config_store_failures = flags.STORE_FAILURES %}\n {% endif %}\n {% do return(config_store_failures) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.385628, "supported_languages": null}, "macro.dbt.snapshot_merge_sql": {"name": "snapshot_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "unique_id": "macro.dbt.snapshot_merge_sql", "macro_sql": "{% macro snapshot_merge_sql(target, source, insert_cols) -%}\n {{ adapter.dispatch('snapshot_merge_sql', 'dbt')(target, source, insert_cols) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__snapshot_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.38684, "supported_languages": null}, "macro.dbt.default__snapshot_merge_sql": {"name": "default__snapshot_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "unique_id": "macro.dbt.default__snapshot_merge_sql", "macro_sql": "{% macro default__snapshot_merge_sql(target, source, insert_cols) -%}\n {%- set insert_cols_csv = insert_cols | join(', ') -%}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on DBT_INTERNAL_SOURCE.dbt_scd_id = DBT_INTERNAL_DEST.dbt_scd_id\n\n when matched\n and DBT_INTERNAL_DEST.dbt_valid_to is null\n and DBT_INTERNAL_SOURCE.dbt_change_type in ('update', 'delete')\n then update\n set dbt_valid_to = DBT_INTERNAL_SOURCE.dbt_valid_to\n\n when not matched\n and DBT_INTERNAL_SOURCE.dbt_change_type = 'insert'\n then insert ({{ insert_cols_csv }})\n values ({{ insert_cols_csv }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.387716, "supported_languages": null}, "macro.dbt.strategy_dispatch": {"name": "strategy_dispatch", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.strategy_dispatch", "macro_sql": "{% macro strategy_dispatch(name) -%}\n{% set original_name = name %}\n {% if '.' in name %}\n {% set package_name, name = name.split(\".\", 1) %}\n {% else %}\n {% set package_name = none %}\n {% endif %}\n\n {% if package_name is none %}\n {% set package_context = context %}\n {% elif package_name in context %}\n {% set package_context = context[package_name] %}\n {% else %}\n {% set error_msg %}\n Could not find package '{{package_name}}', called with '{{original_name}}'\n {% endset %}\n {{ exceptions.raise_compiler_error(error_msg | trim) }}\n {% endif %}\n\n {%- set search_name = 'snapshot_' ~ name ~ '_strategy' -%}\n\n {% if search_name not in package_context %}\n {% set error_msg %}\n The specified strategy macro '{{name}}' was not found in package '{{ package_name }}'\n {% endset %}\n {{ exceptions.raise_compiler_error(error_msg | trim) }}\n {% endif %}\n {{ return(package_context[search_name]) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.396852, "supported_languages": null}, "macro.dbt.snapshot_hash_arguments": {"name": "snapshot_hash_arguments", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_hash_arguments", "macro_sql": "{% macro snapshot_hash_arguments(args) -%}\n {{ adapter.dispatch('snapshot_hash_arguments', 'dbt')(args) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.3974001, "supported_languages": null}, "macro.dbt.default__snapshot_hash_arguments": {"name": "default__snapshot_hash_arguments", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.default__snapshot_hash_arguments", "macro_sql": "{% macro default__snapshot_hash_arguments(args) -%}\n md5({%- for arg in args -%}\n coalesce(cast({{ arg }} as varchar ), '')\n {% if not loop.last %} || '|' || {% endif %}\n {%- endfor -%})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.3981068, "supported_languages": null}, "macro.dbt.snapshot_timestamp_strategy": {"name": "snapshot_timestamp_strategy", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_timestamp_strategy", "macro_sql": "{% macro snapshot_timestamp_strategy(node, snapshotted_rel, current_rel, config, target_exists) %}\n {% set primary_key = config['unique_key'] %}\n {% set updated_at = config['updated_at'] %}\n {% set invalidate_hard_deletes = config.get('invalidate_hard_deletes', false) %}\n\n {#/*\n The snapshot relation might not have an {{ updated_at }} value if the\n snapshot strategy is changed from `check` to `timestamp`. We\n should use a dbt-created column for the comparison in the snapshot\n table instead of assuming that the user-supplied {{ updated_at }}\n will be present in the historical data.\n\n See https://github.com/dbt-labs/dbt-core/issues/2350\n */ #}\n {% set row_changed_expr -%}\n ({{ snapshotted_rel }}.dbt_valid_from < {{ current_rel }}.{{ updated_at }})\n {%- endset %}\n\n {% set scd_id_expr = snapshot_hash_arguments([primary_key, updated_at]) %}\n\n {% do return({\n \"unique_key\": primary_key,\n \"updated_at\": updated_at,\n \"row_changed\": row_changed_expr,\n \"scd_id\": scd_id_expr,\n \"invalidate_hard_deletes\": invalidate_hard_deletes\n }) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.400279, "supported_languages": null}, "macro.dbt.snapshot_string_as_time": {"name": "snapshot_string_as_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_string_as_time", "macro_sql": "{% macro snapshot_string_as_time(timestamp) -%}\n {{ adapter.dispatch('snapshot_string_as_time', 'dbt')(timestamp) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__snapshot_string_as_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.4008021, "supported_languages": null}, "macro.dbt.default__snapshot_string_as_time": {"name": "default__snapshot_string_as_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.default__snapshot_string_as_time", "macro_sql": "{% macro default__snapshot_string_as_time(timestamp) %}\n {% do exceptions.raise_not_implemented(\n 'snapshot_string_as_time macro not implemented for adapter '+adapter.type()\n ) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.4013498, "supported_languages": null}, "macro.dbt.snapshot_check_all_get_existing_columns": {"name": "snapshot_check_all_get_existing_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_check_all_get_existing_columns", "macro_sql": "{% macro snapshot_check_all_get_existing_columns(node, target_exists, check_cols_config) -%}\n {%- if not target_exists -%}\n {#-- no table yet -> return whatever the query does --#}\n {{ return((false, query_columns)) }}\n {%- endif -%}\n\n {#-- handle any schema changes --#}\n {%- set target_relation = adapter.get_relation(database=node.database, schema=node.schema, identifier=node.alias) -%}\n\n {% if check_cols_config == 'all' %}\n {%- set query_columns = get_columns_in_query(node['compiled_code']) -%}\n\n {% elif check_cols_config is iterable and (check_cols_config | length) > 0 %}\n {#-- query for proper casing/quoting, to support comparison below --#}\n {%- set select_check_cols_from_target -%}\n {#-- N.B. The whitespace below is necessary to avoid edge case issue with comments --#}\n {#-- See: https://github.com/dbt-labs/dbt-core/issues/6781 --#}\n select {{ check_cols_config | join(', ') }} from (\n {{ node['compiled_code'] }}\n ) subq\n {%- endset -%}\n {% set query_columns = get_columns_in_query(select_check_cols_from_target) %}\n\n {% else %}\n {% do exceptions.raise_compiler_error(\"Invalid value for 'check_cols': \" ~ check_cols_config) %}\n {% endif %}\n\n {%- set existing_cols = adapter.get_columns_in_relation(target_relation) | map(attribute = 'name') | list -%}\n {%- set ns = namespace() -%} {#-- handle for-loop scoping with a namespace --#}\n {%- set ns.column_added = false -%}\n\n {%- set intersection = [] -%}\n {%- for col in query_columns -%}\n {%- if col in existing_cols -%}\n {%- do intersection.append(adapter.quote(col)) -%}\n {%- else -%}\n {% set ns.column_added = true %}\n {%- endif -%}\n {%- endfor -%}\n {{ return((ns.column_added, intersection)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.4055538, "supported_languages": null}, "macro.dbt.snapshot_check_strategy": {"name": "snapshot_check_strategy", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_check_strategy", "macro_sql": "{% macro snapshot_check_strategy(node, snapshotted_rel, current_rel, config, target_exists) %}\n {% set check_cols_config = config['check_cols'] %}\n {% set primary_key = config['unique_key'] %}\n {% set invalidate_hard_deletes = config.get('invalidate_hard_deletes', false) %}\n {% set updated_at = config.get('updated_at', snapshot_get_time()) %}\n\n {% set column_added = false %}\n\n {% set column_added, check_cols = snapshot_check_all_get_existing_columns(node, target_exists, check_cols_config) %}\n\n {%- set row_changed_expr -%}\n (\n {%- if column_added -%}\n {{ get_true_sql() }}\n {%- else -%}\n {%- for col in check_cols -%}\n {{ snapshotted_rel }}.{{ col }} != {{ current_rel }}.{{ col }}\n or\n (\n (({{ snapshotted_rel }}.{{ col }} is null) and not ({{ current_rel }}.{{ col }} is null))\n or\n ((not {{ snapshotted_rel }}.{{ col }} is null) and ({{ current_rel }}.{{ col }} is null))\n )\n {%- if not loop.last %} or {% endif -%}\n {%- endfor -%}\n {%- endif -%}\n )\n {%- endset %}\n\n {% set scd_id_expr = snapshot_hash_arguments([primary_key, updated_at]) %}\n\n {% do return({\n \"unique_key\": primary_key,\n \"updated_at\": updated_at,\n \"row_changed\": row_changed_expr,\n \"scd_id\": scd_id_expr,\n \"invalidate_hard_deletes\": invalidate_hard_deletes\n }) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.snapshot_get_time", "macro.dbt.snapshot_check_all_get_existing_columns", "macro.dbt.get_true_sql", "macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.4094138, "supported_languages": null}, "macro.dbt.create_columns": {"name": "create_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.create_columns", "macro_sql": "{% macro create_columns(relation, columns) %}\n {{ adapter.dispatch('create_columns', 'dbt')(relation, columns) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__create_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.4177952, "supported_languages": null}, "macro.dbt.default__create_columns": {"name": "default__create_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__create_columns", "macro_sql": "{% macro default__create_columns(relation, columns) %}\n {% for column in columns %}\n {% call statement() %}\n alter table {{ relation }} add column \"{{ column.name }}\" {{ column.data_type }};\n {% endcall %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.418711, "supported_languages": null}, "macro.dbt.post_snapshot": {"name": "post_snapshot", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.post_snapshot", "macro_sql": "{% macro post_snapshot(staging_relation) %}\n {{ adapter.dispatch('post_snapshot', 'dbt')(staging_relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__post_snapshot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.41925, "supported_languages": null}, "macro.dbt.default__post_snapshot": {"name": "default__post_snapshot", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__post_snapshot", "macro_sql": "{% macro default__post_snapshot(staging_relation) %}\n {# no-op #}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.419551, "supported_languages": null}, "macro.dbt.get_true_sql": {"name": "get_true_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.get_true_sql", "macro_sql": "{% macro get_true_sql() %}\n {{ adapter.dispatch('get_true_sql', 'dbt')() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_true_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.420022, "supported_languages": null}, "macro.dbt.default__get_true_sql": {"name": "default__get_true_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__get_true_sql", "macro_sql": "{% macro default__get_true_sql() %}\n {{ return('TRUE') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.420405, "supported_languages": null}, "macro.dbt.snapshot_staging_table": {"name": "snapshot_staging_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.snapshot_staging_table", "macro_sql": "{% macro snapshot_staging_table(strategy, source_sql, target_relation) -%}\n {{ adapter.dispatch('snapshot_staging_table', 'dbt')(strategy, source_sql, target_relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__snapshot_staging_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.421049, "supported_languages": null}, "macro.dbt.default__snapshot_staging_table": {"name": "default__snapshot_staging_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__snapshot_staging_table", "macro_sql": "{% macro default__snapshot_staging_table(strategy, source_sql, target_relation) -%}\n\n with snapshot_query as (\n\n {{ source_sql }}\n\n ),\n\n snapshotted_data as (\n\n select *,\n {{ strategy.unique_key }} as dbt_unique_key\n\n from {{ target_relation }}\n where dbt_valid_to is null\n\n ),\n\n insertions_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}) as dbt_valid_to,\n {{ strategy.scd_id }} as dbt_scd_id\n\n from snapshot_query\n ),\n\n updates_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n {{ strategy.updated_at }} as dbt_valid_to\n\n from snapshot_query\n ),\n\n {%- if strategy.invalidate_hard_deletes %}\n\n deletes_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key\n from snapshot_query\n ),\n {% endif %}\n\n insertions as (\n\n select\n 'insert' as dbt_change_type,\n source_data.*\n\n from insertions_source_data as source_data\n left outer join snapshotted_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where snapshotted_data.dbt_unique_key is null\n or (\n snapshotted_data.dbt_unique_key is not null\n and (\n {{ strategy.row_changed }}\n )\n )\n\n ),\n\n updates as (\n\n select\n 'update' as dbt_change_type,\n source_data.*,\n snapshotted_data.dbt_scd_id\n\n from updates_source_data as source_data\n join snapshotted_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where (\n {{ strategy.row_changed }}\n )\n )\n\n {%- if strategy.invalidate_hard_deletes -%}\n ,\n\n deletes as (\n\n select\n 'delete' as dbt_change_type,\n source_data.*,\n {{ snapshot_get_time() }} as dbt_valid_from,\n {{ snapshot_get_time() }} as dbt_updated_at,\n {{ snapshot_get_time() }} as dbt_valid_to,\n snapshotted_data.dbt_scd_id\n\n from snapshotted_data\n left join deletes_source_data as source_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where source_data.dbt_unique_key is null\n )\n {%- endif %}\n\n select * from insertions\n union all\n select * from updates\n {%- if strategy.invalidate_hard_deletes %}\n union all\n select * from deletes\n {%- endif %}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.423687, "supported_languages": null}, "macro.dbt.build_snapshot_table": {"name": "build_snapshot_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.build_snapshot_table", "macro_sql": "{% macro build_snapshot_table(strategy, sql) -%}\n {{ adapter.dispatch('build_snapshot_table', 'dbt')(strategy, sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__build_snapshot_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.424285, "supported_languages": null}, "macro.dbt.default__build_snapshot_table": {"name": "default__build_snapshot_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__build_snapshot_table", "macro_sql": "{% macro default__build_snapshot_table(strategy, sql) %}\n\n select *,\n {{ strategy.scd_id }} as dbt_scd_id,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}) as dbt_valid_to\n from (\n {{ sql }}\n ) sbq\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.425075, "supported_languages": null}, "macro.dbt.build_snapshot_staging_table": {"name": "build_snapshot_staging_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.build_snapshot_staging_table", "macro_sql": "{% macro build_snapshot_staging_table(strategy, sql, target_relation) %}\n {% set temp_relation = make_temp_relation(target_relation) %}\n\n {% set select = snapshot_staging_table(strategy, sql, target_relation) %}\n\n {% call statement('build_snapshot_staging_relation') %}\n {{ create_table_as(True, temp_relation, select) }}\n {% endcall %}\n\n {% do return(temp_relation) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_temp_relation", "macro.dbt.snapshot_staging_table", "macro.dbt.statement", "macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.426409, "supported_languages": null}, "macro.dbt.materialization_snapshot_default": {"name": "materialization_snapshot_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/snapshot.sql", "original_file_path": "macros/materializations/snapshots/snapshot.sql", "unique_id": "macro.dbt.materialization_snapshot_default", "macro_sql": "{% materialization snapshot, default %}\n {%- set config = model['config'] -%}\n\n {%- set target_table = model.get('alias', model.get('name')) -%}\n\n {%- set strategy_name = config.get('strategy') -%}\n {%- set unique_key = config.get('unique_key') %}\n -- grab current tables grants config for comparision later on\n {%- set grant_config = config.get('grants') -%}\n\n {% set target_relation_exists, target_relation = get_or_create_relation(\n database=model.database,\n schema=model.schema,\n identifier=target_table,\n type='table') -%}\n\n {%- if not target_relation.is_table -%}\n {% do exceptions.relation_wrong_type(target_relation, 'table') %}\n {%- endif -%}\n\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set strategy_macro = strategy_dispatch(strategy_name) %}\n {% set strategy = strategy_macro(model, \"snapshotted_data\", \"source_data\", config, target_relation_exists) %}\n\n {% if not target_relation_exists %}\n\n {% set build_sql = build_snapshot_table(strategy, model['compiled_code']) %}\n {% set final_sql = create_table_as(False, target_relation, build_sql) %}\n\n {% else %}\n\n {{ adapter.valid_snapshot_target(target_relation) }}\n\n {% set staging_table = build_snapshot_staging_table(strategy, sql, target_relation) %}\n\n -- this may no-op if the database does not require column expansion\n {% do adapter.expand_target_column_types(from_relation=staging_table,\n to_relation=target_relation) %}\n\n {% set missing_columns = adapter.get_missing_columns(staging_table, target_relation)\n | rejectattr('name', 'equalto', 'dbt_change_type')\n | rejectattr('name', 'equalto', 'DBT_CHANGE_TYPE')\n | rejectattr('name', 'equalto', 'dbt_unique_key')\n | rejectattr('name', 'equalto', 'DBT_UNIQUE_KEY')\n | list %}\n\n {% do create_columns(target_relation, missing_columns) %}\n\n {% set source_columns = adapter.get_columns_in_relation(staging_table)\n | rejectattr('name', 'equalto', 'dbt_change_type')\n | rejectattr('name', 'equalto', 'DBT_CHANGE_TYPE')\n | rejectattr('name', 'equalto', 'dbt_unique_key')\n | rejectattr('name', 'equalto', 'DBT_UNIQUE_KEY')\n | list %}\n\n {% set quoted_source_columns = [] %}\n {% for column in source_columns %}\n {% do quoted_source_columns.append(adapter.quote(column.name)) %}\n {% endfor %}\n\n {% set final_sql = snapshot_merge_sql(\n target = target_relation,\n source = staging_table,\n insert_cols = quoted_source_columns\n )\n %}\n\n {% endif %}\n\n {% call statement('main') %}\n {{ final_sql }}\n {% endcall %}\n\n {% set should_revoke = should_revoke(target_relation_exists, full_refresh_mode=False) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if not target_relation_exists %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {% if staging_table is defined %}\n {% do post_snapshot(staging_table) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.get_or_create_relation", "macro.dbt.run_hooks", "macro.dbt.strategy_dispatch", "macro.dbt.build_snapshot_table", "macro.dbt.create_table_as", "macro.dbt.build_snapshot_staging_table", "macro.dbt.create_columns", "macro.dbt.snapshot_merge_sql", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes", "macro.dbt.post_snapshot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.442662, "supported_languages": ["sql"]}, "macro.dbt.materialization_test_default": {"name": "materialization_test_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/test.sql", "original_file_path": "macros/materializations/tests/test.sql", "unique_id": "macro.dbt.materialization_test_default", "macro_sql": "{%- materialization test, default -%}\n\n {% set relations = [] %}\n\n {% if should_store_failures() %}\n\n {% set identifier = model['alias'] %}\n {% set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) %}\n {% set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database, type='table') -%} %}\n\n {% if old_relation %}\n {% do adapter.drop_relation(old_relation) %}\n {% endif %}\n\n {% call statement(auto_begin=True) %}\n {{ create_table_as(False, target_relation, sql) }}\n {% endcall %}\n\n {% do relations.append(target_relation) %}\n\n {% set main_sql %}\n select *\n from {{ target_relation }}\n {% endset %}\n\n {{ adapter.commit() }}\n\n {% else %}\n\n {% set main_sql = sql %}\n\n {% endif %}\n\n {% set limit = config.get('limit') %}\n {% set fail_calc = config.get('fail_calc') %}\n {% set warn_if = config.get('warn_if') %}\n {% set error_if = config.get('error_if') %}\n\n {% call statement('main', fetch_result=True) -%}\n\n {{ get_test_sql(main_sql, fail_calc, warn_if, error_if, limit)}}\n\n {%- endcall %}\n\n {{ return({'relations': relations}) }}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.should_store_failures", "macro.dbt.statement", "macro.dbt.create_table_as", "macro.dbt.get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.448545, "supported_languages": ["sql"]}, "macro.dbt.get_test_sql": {"name": "get_test_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "unique_id": "macro.dbt.get_test_sql", "macro_sql": "{% macro get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}\n {{ adapter.dispatch('get_test_sql', 'dbt')(main_sql, fail_calc, warn_if, error_if, limit) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.449863, "supported_languages": null}, "macro.dbt.default__get_test_sql": {"name": "default__get_test_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "unique_id": "macro.dbt.default__get_test_sql", "macro_sql": "{% macro default__get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}\n select\n {{ fail_calc }} as failures,\n {{ fail_calc }} {{ warn_if }} as should_warn,\n {{ fail_calc }} {{ error_if }} as should_error\n from (\n {{ main_sql }}\n {{ \"limit \" ~ limit if limit != none }}\n ) dbt_internal_test\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.450867, "supported_languages": null}, "macro.dbt.get_where_subquery": {"name": "get_where_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "unique_id": "macro.dbt.get_where_subquery", "macro_sql": "{% macro get_where_subquery(relation) -%}\n {% do return(adapter.dispatch('get_where_subquery', 'dbt')(relation)) %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_where_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.451961, "supported_languages": null}, "macro.dbt.default__get_where_subquery": {"name": "default__get_where_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "unique_id": "macro.dbt.default__get_where_subquery", "macro_sql": "{% macro default__get_where_subquery(relation) -%}\n {% set where = config.get('where', '') %}\n {% if where %}\n {%- set filtered -%}\n (select * from {{ relation }} where {{ where }}) dbt_subquery\n {%- endset -%}\n {% do return(filtered) %}\n {%- else -%}\n {% do return(relation) %}\n {%- endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.453193, "supported_languages": null}, "macro.dbt.get_quoted_csv": {"name": "get_quoted_csv", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.get_quoted_csv", "macro_sql": "{% macro get_quoted_csv(column_names) %}\n\n {% set quoted = [] %}\n {% for col in column_names -%}\n {%- do quoted.append(adapter.quote(col)) -%}\n {%- endfor %}\n\n {%- set dest_cols_csv = quoted | join(', ') -%}\n {{ return(dest_cols_csv) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.45716, "supported_languages": null}, "macro.dbt.diff_columns": {"name": "diff_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.diff_columns", "macro_sql": "{% macro diff_columns(source_columns, target_columns) %}\n\n {% set result = [] %}\n {% set source_names = source_columns | map(attribute = 'column') | list %}\n {% set target_names = target_columns | map(attribute = 'column') | list %}\n\n {# --check whether the name attribute exists in the target - this does not perform a data type check #}\n {% for sc in source_columns %}\n {% if sc.name not in target_names %}\n {{ result.append(sc) }}\n {% endif %}\n {% endfor %}\n\n {{ return(result) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.458932, "supported_languages": null}, "macro.dbt.diff_column_data_types": {"name": "diff_column_data_types", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.diff_column_data_types", "macro_sql": "{% macro diff_column_data_types(source_columns, target_columns) %}\n\n {% set result = [] %}\n {% for sc in source_columns %}\n {% set tc = target_columns | selectattr(\"name\", \"equalto\", sc.name) | list | first %}\n {% if tc %}\n {% if sc.data_type != tc.data_type and not sc.can_expand_to(other_column=tc) %}\n {{ result.append( { 'column_name': tc.name, 'new_type': sc.data_type } ) }}\n {% endif %}\n {% endif %}\n {% endfor %}\n\n {{ return(result) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.460989, "supported_languages": null}, "macro.dbt.get_merge_update_columns": {"name": "get_merge_update_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.get_merge_update_columns", "macro_sql": "{% macro get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) %}\n {{ return(adapter.dispatch('get_merge_update_columns', 'dbt')(merge_update_columns, merge_exclude_columns, dest_columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_merge_update_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.461741, "supported_languages": null}, "macro.dbt.default__get_merge_update_columns": {"name": "default__get_merge_update_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.default__get_merge_update_columns", "macro_sql": "{% macro default__get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) %}\n {%- set default_cols = dest_columns | map(attribute=\"quoted\") | list -%}\n\n {%- if merge_update_columns and merge_exclude_columns -%}\n {{ exceptions.raise_compiler_error(\n 'Model cannot specify merge_update_columns and merge_exclude_columns. Please update model to use only one config'\n )}}\n {%- elif merge_update_columns -%}\n {%- set update_columns = merge_update_columns -%}\n {%- elif merge_exclude_columns -%}\n {%- set update_columns = [] -%}\n {%- for column in dest_columns -%}\n {% if column.column | lower not in merge_exclude_columns | map(\"lower\") | list %}\n {%- do update_columns.append(column.quoted) -%}\n {% endif %}\n {%- endfor -%}\n {%- else -%}\n {%- set update_columns = default_cols -%}\n {%- endif -%}\n\n {{ return(update_columns) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.4639812, "supported_languages": null}, "macro.dbt.get_merge_sql": {"name": "get_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.get_merge_sql", "macro_sql": "{% macro get_merge_sql(target, source, unique_key, dest_columns, incremental_predicates=none) -%}\n -- back compat for old kwarg name\n {% set incremental_predicates = kwargs.get('predicates', incremental_predicates) %}\n {{ adapter.dispatch('get_merge_sql', 'dbt')(target, source, unique_key, dest_columns, incremental_predicates) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.4758961, "supported_languages": null}, "macro.dbt.default__get_merge_sql": {"name": "default__get_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.default__get_merge_sql", "macro_sql": "{% macro default__get_merge_sql(target, source, unique_key, dest_columns, incremental_predicates=none) -%}\n {%- set predicates = [] if incremental_predicates is none else [] + incremental_predicates -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n {%- set merge_update_columns = config.get('merge_update_columns') -%}\n {%- set merge_exclude_columns = config.get('merge_exclude_columns') -%}\n {%- set update_columns = get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {% if unique_key %}\n {% if unique_key is sequence and unique_key is not mapping and unique_key is not string %}\n {% for key in unique_key %}\n {% set this_key_match %}\n DBT_INTERNAL_SOURCE.{{ key }} = DBT_INTERNAL_DEST.{{ key }}\n {% endset %}\n {% do predicates.append(this_key_match) %}\n {% endfor %}\n {% else %}\n {% set unique_key_match %}\n DBT_INTERNAL_SOURCE.{{ unique_key }} = DBT_INTERNAL_DEST.{{ unique_key }}\n {% endset %}\n {% do predicates.append(unique_key_match) %}\n {% endif %}\n {% else %}\n {% do predicates.append('FALSE') %}\n {% endif %}\n\n {{ sql_header if sql_header is not none }}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on {{\"(\" ~ predicates | join(\") and (\") ~ \")\"}}\n\n {% if unique_key %}\n when matched then update set\n {% for column_name in update_columns -%}\n {{ column_name }} = DBT_INTERNAL_SOURCE.{{ column_name }}\n {%- if not loop.last %}, {%- endif %}\n {%- endfor %}\n {% endif %}\n\n when not matched then insert\n ({{ dest_cols_csv }})\n values\n ({{ dest_cols_csv }})\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv", "macro.dbt.get_merge_update_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.480234, "supported_languages": null}, "macro.dbt.get_delete_insert_merge_sql": {"name": "get_delete_insert_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.get_delete_insert_merge_sql", "macro_sql": "{% macro get_delete_insert_merge_sql(target, source, unique_key, dest_columns, incremental_predicates) -%}\n {{ adapter.dispatch('get_delete_insert_merge_sql', 'dbt')(target, source, unique_key, dest_columns, incremental_predicates) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.480979, "supported_languages": null}, "macro.dbt.default__get_delete_insert_merge_sql": {"name": "default__get_delete_insert_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.default__get_delete_insert_merge_sql", "macro_sql": "{% macro default__get_delete_insert_merge_sql(target, source, unique_key, dest_columns, incremental_predicates) -%}\n\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n {% if unique_key %}\n {% if unique_key is sequence and unique_key is not string %}\n delete from {{target }}\n using {{ source }}\n where (\n {% for key in unique_key %}\n {{ source }}.{{ key }} = {{ target }}.{{ key }}\n {{ \"and \" if not loop.last}}\n {% endfor %}\n {% if incremental_predicates %}\n {% for predicate in incremental_predicates %}\n and {{ predicate }}\n {% endfor %}\n {% endif %}\n );\n {% else %}\n delete from {{ target }}\n where (\n {{ unique_key }}) in (\n select ({{ unique_key }})\n from {{ source }}\n )\n {%- if incremental_predicates %}\n {% for predicate in incremental_predicates %}\n and {{ predicate }}\n {% endfor %}\n {%- endif -%};\n\n {% endif %}\n {% endif %}\n\n insert into {{ target }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ source }}\n )\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.4836779, "supported_languages": null}, "macro.dbt.get_insert_overwrite_merge_sql": {"name": "get_insert_overwrite_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.get_insert_overwrite_merge_sql", "macro_sql": "{% macro get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header=false) -%}\n {{ adapter.dispatch('get_insert_overwrite_merge_sql', 'dbt')(target, source, dest_columns, predicates, include_sql_header) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.4844348, "supported_languages": null}, "macro.dbt.default__get_insert_overwrite_merge_sql": {"name": "default__get_insert_overwrite_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.default__get_insert_overwrite_merge_sql", "macro_sql": "{% macro default__get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header) -%}\n {#-- The only time include_sql_header is True: --#}\n {#-- BigQuery + insert_overwrite strategy + \"static\" partitions config --#}\n {#-- We should consider including the sql header at the materialization level instead --#}\n\n {%- set predicates = [] if predicates is none else [] + predicates -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none and include_sql_header }}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on FALSE\n\n when not matched by source\n {% if predicates %} and {{ predicates | join(' and ') }} {% endif %}\n then delete\n\n when not matched then insert\n ({{ dest_cols_csv }})\n values\n ({{ dest_cols_csv }})\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.4862149, "supported_languages": null}, "macro.dbt.is_incremental": {"name": "is_incremental", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/is_incremental.sql", "original_file_path": "macros/materializations/models/incremental/is_incremental.sql", "unique_id": "macro.dbt.is_incremental", "macro_sql": "{% macro is_incremental() %}\n {#-- do not run introspective queries in parsing #}\n {% if not execute %}\n {{ return(False) }}\n {% else %}\n {% set relation = adapter.get_relation(this.database, this.schema, this.table) %}\n {{ return(relation is not none\n and relation.type == 'table'\n and model.config.materialized == 'incremental'\n and not should_full_refresh()) }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_full_refresh"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.487937, "supported_languages": null}, "macro.dbt.get_incremental_append_sql": {"name": "get_incremental_append_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_append_sql", "macro_sql": "{% macro get_incremental_append_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_append_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.490047, "supported_languages": null}, "macro.dbt.default__get_incremental_append_sql": {"name": "default__get_incremental_append_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_append_sql", "macro_sql": "{% macro default__get_incremental_append_sql(arg_dict) %}\n\n {% do return(get_insert_into_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"dest_columns\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_insert_into_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.490783, "supported_languages": null}, "macro.dbt.get_incremental_delete_insert_sql": {"name": "get_incremental_delete_insert_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_delete_insert_sql", "macro_sql": "{% macro get_incremental_delete_insert_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_delete_insert_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_delete_insert_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.49151, "supported_languages": null}, "macro.dbt.default__get_incremental_delete_insert_sql": {"name": "default__get_incremental_delete_insert_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_delete_insert_sql", "macro_sql": "{% macro default__get_incremental_delete_insert_sql(arg_dict) %}\n\n {% do return(get_delete_insert_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"unique_key\"], arg_dict[\"dest_columns\"], arg_dict[\"incremental_predicates\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.492439, "supported_languages": null}, "macro.dbt.get_incremental_merge_sql": {"name": "get_incremental_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_merge_sql", "macro_sql": "{% macro get_incremental_merge_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_merge_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.4930182, "supported_languages": null}, "macro.dbt.default__get_incremental_merge_sql": {"name": "default__get_incremental_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_merge_sql", "macro_sql": "{% macro default__get_incremental_merge_sql(arg_dict) %}\n\n {% do return(get_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"unique_key\"], arg_dict[\"dest_columns\"], arg_dict[\"incremental_predicates\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.493932, "supported_languages": null}, "macro.dbt.get_incremental_insert_overwrite_sql": {"name": "get_incremental_insert_overwrite_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_insert_overwrite_sql", "macro_sql": "{% macro get_incremental_insert_overwrite_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_insert_overwrite_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_insert_overwrite_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.494525, "supported_languages": null}, "macro.dbt.default__get_incremental_insert_overwrite_sql": {"name": "default__get_incremental_insert_overwrite_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_insert_overwrite_sql", "macro_sql": "{% macro default__get_incremental_insert_overwrite_sql(arg_dict) %}\n\n {% do return(get_insert_overwrite_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"dest_columns\"], arg_dict[\"incremental_predicates\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.4954188, "supported_languages": null}, "macro.dbt.get_incremental_default_sql": {"name": "get_incremental_default_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_default_sql", "macro_sql": "{% macro get_incremental_default_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_default_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_default_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.496044, "supported_languages": null}, "macro.dbt.default__get_incremental_default_sql": {"name": "default__get_incremental_default_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_default_sql", "macro_sql": "{% macro default__get_incremental_default_sql(arg_dict) %}\n\n {% do return(get_incremental_append_sql(arg_dict)) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.4965398, "supported_languages": null}, "macro.dbt.get_insert_into_sql": {"name": "get_insert_into_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_insert_into_sql", "macro_sql": "{% macro get_insert_into_sql(target_relation, temp_relation, dest_columns) %}\n\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n insert into {{ target_relation }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ temp_relation }}\n )\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.4974139, "supported_languages": null}, "macro.dbt.materialization_incremental_default": {"name": "materialization_incremental_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/incremental.sql", "original_file_path": "macros/materializations/models/incremental/incremental.sql", "unique_id": "macro.dbt.materialization_incremental_default", "macro_sql": "{% materialization incremental, default -%}\n\n -- relations\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='table') -%}\n {%- set temp_relation = make_temp_relation(target_relation)-%}\n {%- set intermediate_relation = make_intermediate_relation(target_relation)-%}\n {%- set backup_relation_type = 'table' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n\n -- configs\n {%- set unique_key = config.get('unique_key') -%}\n {%- set full_refresh_mode = (should_full_refresh() or existing_relation.is_view) -%}\n {%- set on_schema_change = incremental_validate_on_schema_change(config.get('on_schema_change'), default='ignore') -%}\n\n -- the temp_ and backup_ relations should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation. This has to happen before\n -- BEGIN, in a separate transaction\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation)-%}\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set to_drop = [] %}\n\n {% if existing_relation is none %}\n {% set build_sql = get_create_table_as_sql(False, target_relation, sql) %}\n {% elif full_refresh_mode %}\n {% set build_sql = get_create_table_as_sql(False, intermediate_relation, sql) %}\n {% set need_swap = true %}\n {% else %}\n {% do run_query(get_create_table_as_sql(True, temp_relation, sql)) %}\n {% do adapter.expand_target_column_types(\n from_relation=temp_relation,\n to_relation=target_relation) %}\n {#-- Process schema changes. Returns dict of changes if successful. Use source columns for upserting/merging --#}\n {% set dest_columns = process_schema_changes(on_schema_change, temp_relation, existing_relation) %}\n {% if not dest_columns %}\n {% set dest_columns = adapter.get_columns_in_relation(existing_relation) %}\n {% endif %}\n\n {#-- Get the incremental_strategy, the macro to use for the strategy, and build the sql --#}\n {% set incremental_strategy = config.get('incremental_strategy') or 'default' %}\n {% set incremental_predicates = config.get('predicates', none) or config.get('incremental_predicates', none) %}\n {% set strategy_sql_macro_func = adapter.get_incremental_strategy_macro(context, incremental_strategy) %}\n {% set strategy_arg_dict = ({'target_relation': target_relation, 'temp_relation': temp_relation, 'unique_key': unique_key, 'dest_columns': dest_columns, 'incremental_predicates': incremental_predicates }) %}\n {% set build_sql = strategy_sql_macro_func(strategy_arg_dict) %}\n\n {% endif %}\n\n {% call statement(\"main\") %}\n {{ build_sql }}\n {% endcall %}\n\n {% if need_swap %}\n {% do adapter.rename_relation(target_relation, backup_relation) %}\n {% do adapter.rename_relation(intermediate_relation, target_relation) %}\n {% do to_drop.append(backup_relation) %}\n {% endif %}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if existing_relation is none or existing_relation.is_view or should_full_refresh() %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n -- `COMMIT` happens here\n {% do adapter.commit() %}\n\n {% for rel in to_drop %}\n {% do adapter.drop_relation(rel) %}\n {% endfor %}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_temp_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.should_full_refresh", "macro.dbt.incremental_validate_on_schema_change", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks", "macro.dbt.get_create_table_as_sql", "macro.dbt.run_query", "macro.dbt.process_schema_changes", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.511554, "supported_languages": ["sql"]}, "macro.dbt.incremental_validate_on_schema_change": {"name": "incremental_validate_on_schema_change", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.incremental_validate_on_schema_change", "macro_sql": "{% macro incremental_validate_on_schema_change(on_schema_change, default='ignore') %}\n\n {% if on_schema_change not in ['sync_all_columns', 'append_new_columns', 'fail', 'ignore'] %}\n\n {% set log_message = 'Invalid value for on_schema_change (%s) specified. Setting default value of %s.' % (on_schema_change, default) %}\n {% do log(log_message) %}\n\n {{ return(default) }}\n\n {% else %}\n\n {{ return(on_schema_change) }}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.524299, "supported_languages": null}, "macro.dbt.check_for_schema_changes": {"name": "check_for_schema_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.check_for_schema_changes", "macro_sql": "{% macro check_for_schema_changes(source_relation, target_relation) %}\n\n {% set schema_changed = False %}\n\n {%- set source_columns = adapter.get_columns_in_relation(source_relation) -%}\n {%- set target_columns = adapter.get_columns_in_relation(target_relation) -%}\n {%- set source_not_in_target = diff_columns(source_columns, target_columns) -%}\n {%- set target_not_in_source = diff_columns(target_columns, source_columns) -%}\n\n {% set new_target_types = diff_column_data_types(source_columns, target_columns) %}\n\n {% if source_not_in_target != [] %}\n {% set schema_changed = True %}\n {% elif target_not_in_source != [] or new_target_types != [] %}\n {% set schema_changed = True %}\n {% elif new_target_types != [] %}\n {% set schema_changed = True %}\n {% endif %}\n\n {% set changes_dict = {\n 'schema_changed': schema_changed,\n 'source_not_in_target': source_not_in_target,\n 'target_not_in_source': target_not_in_source,\n 'source_columns': source_columns,\n 'target_columns': target_columns,\n 'new_target_types': new_target_types\n } %}\n\n {% set msg %}\n In {{ target_relation }}:\n Schema changed: {{ schema_changed }}\n Source columns not in target: {{ source_not_in_target }}\n Target columns not in source: {{ target_not_in_source }}\n New column types: {{ new_target_types }}\n {% endset %}\n\n {% do log(msg) %}\n\n {{ return(changes_dict) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.diff_columns", "macro.dbt.diff_column_data_types"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.528082, "supported_languages": null}, "macro.dbt.sync_column_schemas": {"name": "sync_column_schemas", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.sync_column_schemas", "macro_sql": "{% macro sync_column_schemas(on_schema_change, target_relation, schema_changes_dict) %}\n\n {%- set add_to_target_arr = schema_changes_dict['source_not_in_target'] -%}\n\n {%- if on_schema_change == 'append_new_columns'-%}\n {%- if add_to_target_arr | length > 0 -%}\n {%- do alter_relation_add_remove_columns(target_relation, add_to_target_arr, none) -%}\n {%- endif -%}\n\n {% elif on_schema_change == 'sync_all_columns' %}\n {%- set remove_from_target_arr = schema_changes_dict['target_not_in_source'] -%}\n {%- set new_target_types = schema_changes_dict['new_target_types'] -%}\n\n {% if add_to_target_arr | length > 0 or remove_from_target_arr | length > 0 %}\n {%- do alter_relation_add_remove_columns(target_relation, add_to_target_arr, remove_from_target_arr) -%}\n {% endif %}\n\n {% if new_target_types != [] %}\n {% for ntt in new_target_types %}\n {% set column_name = ntt['column_name'] %}\n {% set new_type = ntt['new_type'] %}\n {% do alter_column_type(target_relation, column_name, new_type) %}\n {% endfor %}\n {% endif %}\n\n {% endif %}\n\n {% set schema_change_message %}\n In {{ target_relation }}:\n Schema change approach: {{ on_schema_change }}\n Columns added: {{ add_to_target_arr }}\n Columns removed: {{ remove_from_target_arr }}\n Data types changed: {{ new_target_types }}\n {% endset %}\n\n {% do log(schema_change_message) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.alter_relation_add_remove_columns", "macro.dbt.alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.532895, "supported_languages": null}, "macro.dbt.process_schema_changes": {"name": "process_schema_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.process_schema_changes", "macro_sql": "{% macro process_schema_changes(on_schema_change, source_relation, target_relation) %}\n\n {% if on_schema_change == 'ignore' %}\n\n {{ return({}) }}\n\n {% else %}\n\n {% set schema_changes_dict = check_for_schema_changes(source_relation, target_relation) %}\n\n {% if schema_changes_dict['schema_changed'] %}\n\n {% if on_schema_change == 'fail' %}\n\n {% set fail_msg %}\n The source and target schemas on this incremental model are out of sync!\n They can be reconciled in several ways:\n - set the `on_schema_change` config to either append_new_columns or sync_all_columns, depending on your situation.\n - Re-run the incremental model with `full_refresh: True` to update the target schema.\n - update the schema manually and re-run the process.\n\n Additional troubleshooting context:\n Source columns not in target: {{ schema_changes_dict['source_not_in_target'] }}\n Target columns not in source: {{ schema_changes_dict['target_not_in_source'] }}\n New column types: {{ schema_changes_dict['new_target_types'] }}\n {% endset %}\n\n {% do exceptions.raise_compiler_error(fail_msg) %}\n\n {# -- unless we ignore, run the sync operation per the config #}\n {% else %}\n\n {% do sync_column_schemas(on_schema_change, target_relation, schema_changes_dict) %}\n\n {% endif %}\n\n {% endif %}\n\n {{ return(schema_changes_dict['source_columns']) }}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.check_for_schema_changes", "macro.dbt.sync_column_schemas"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.5356102, "supported_languages": null}, "macro.dbt.materialization_materialized_view_default": {"name": "materialization_materialized_view_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view/materialized_view.sql", "unique_id": "macro.dbt.materialization_materialized_view_default", "macro_sql": "{% materialization materialized_view, default %}\n {% set existing_relation = load_cached_relation(this) %}\n {% set target_relation = this.incorporate(type=this.MaterializedView) %}\n {% set intermediate_relation = make_intermediate_relation(target_relation) %}\n {% set backup_relation_type = target_relation.MaterializedView if existing_relation is none else existing_relation.type %}\n {% set backup_relation = make_backup_relation(target_relation, backup_relation_type) %}\n\n {{ materialized_view_setup(backup_relation, intermediate_relation, pre_hooks) }}\n\n {% set build_sql = materialized_view_get_build_sql(existing_relation, target_relation, backup_relation, intermediate_relation) %}\n\n {% if build_sql == '' %}\n {{ materialized_view_execute_no_op(target_relation) }}\n {% else %}\n {{ materialized_view_execute_build_sql(build_sql, existing_relation, target_relation, post_hooks) }}\n {% endif %}\n\n {{ materialized_view_teardown(backup_relation, intermediate_relation, post_hooks) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.materialized_view_setup", "macro.dbt.materialized_view_get_build_sql", "macro.dbt.materialized_view_execute_no_op", "macro.dbt.materialized_view_execute_build_sql", "macro.dbt.materialized_view_teardown"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.548015, "supported_languages": ["sql"]}, "macro.dbt.materialized_view_setup": {"name": "materialized_view_setup", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_setup", "macro_sql": "{% macro materialized_view_setup(backup_relation, intermediate_relation, pre_hooks) %}\n\n -- backup_relation and intermediate_relation should not already exist in the database\n -- it's possible these exist because of a previous run that exited unexpectedly\n {% set preexisting_backup_relation = load_cached_relation(backup_relation) %}\n {% set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) %}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.5492811, "supported_languages": null}, "macro.dbt.materialized_view_teardown": {"name": "materialized_view_teardown", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_teardown", "macro_sql": "{% macro materialized_view_teardown(backup_relation, intermediate_relation, post_hooks) %}\n\n -- drop the temp relations if they exist to leave the database clean for the next run\n {{ drop_relation_if_exists(backup_relation) }}\n {{ drop_relation_if_exists(intermediate_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.550115, "supported_languages": null}, "macro.dbt.materialized_view_get_build_sql": {"name": "materialized_view_get_build_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_get_build_sql", "macro_sql": "{% macro materialized_view_get_build_sql(existing_relation, target_relation, backup_relation, intermediate_relation) %}\n\n {% set full_refresh_mode = should_full_refresh() %}\n\n -- determine the scenario we're in: create, full_refresh, alter, refresh data\n {% if existing_relation is none %}\n {% set build_sql = get_create_materialized_view_as_sql(target_relation, sql) %}\n {% elif full_refresh_mode or not existing_relation.is_materialized_view %}\n {% set build_sql = get_replace_materialized_view_as_sql(target_relation, sql, existing_relation, backup_relation, intermediate_relation) %}\n {% else %}\n\n -- get config options\n {% set on_configuration_change = config.get('on_configuration_change') %}\n {% set configuration_changes = get_materialized_view_configuration_changes(existing_relation, config) %}\n\n {% if configuration_changes is none %}\n {% set build_sql = refresh_materialized_view(target_relation) %}\n\n {% elif on_configuration_change == 'apply' %}\n {% set build_sql = get_alter_materialized_view_as_sql(target_relation, configuration_changes, sql, existing_relation, backup_relation, intermediate_relation) %}\n {% elif on_configuration_change == 'continue' %}\n {% set build_sql = '' %}\n {{ exceptions.warn(\"Configuration changes were identified and `on_configuration_change` was set to `continue` for `\" ~ target_relation ~ \"`\") }}\n {% elif on_configuration_change == 'fail' %}\n {{ exceptions.raise_fail_fast_error(\"Configuration changes were identified and `on_configuration_change` was set to `fail` for `\" ~ target_relation ~ \"`\") }}\n\n {% else %}\n -- this only happens if the user provides a value other than `apply`, 'skip', 'fail'\n {{ exceptions.raise_compiler_error(\"Unexpected configuration scenario\") }}\n\n {% endif %}\n\n {% endif %}\n\n {% do return(build_sql) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_full_refresh", "macro.dbt.get_create_materialized_view_as_sql", "macro.dbt.get_replace_materialized_view_as_sql", "macro.dbt.get_materialized_view_configuration_changes", "macro.dbt.refresh_materialized_view", "macro.dbt.get_alter_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.555122, "supported_languages": null}, "macro.dbt.materialized_view_execute_no_op": {"name": "materialized_view_execute_no_op", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_execute_no_op", "macro_sql": "{% macro materialized_view_execute_no_op(target_relation) %}\n {% do store_raw_result(\n name=\"main\",\n message=\"skip \" ~ target_relation,\n code=\"skip\",\n rows_affected=\"-1\"\n ) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.5560472, "supported_languages": null}, "macro.dbt.materialized_view_execute_build_sql": {"name": "materialized_view_execute_build_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_execute_build_sql", "macro_sql": "{% macro materialized_view_execute_build_sql(build_sql, existing_relation, target_relation, post_hooks) %}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set grant_config = config.get('grants') %}\n\n {% call statement(name=\"main\") %}\n {{ build_sql }}\n {% endcall %}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.5581388, "supported_languages": null}, "macro.dbt.get_materialized_view_configuration_changes": {"name": "get_materialized_view_configuration_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view/get_materialized_view_configuration_changes.sql", "original_file_path": "macros/materializations/models/materialized_view/get_materialized_view_configuration_changes.sql", "unique_id": "macro.dbt.get_materialized_view_configuration_changes", "macro_sql": "{% macro get_materialized_view_configuration_changes(existing_relation, new_config) %}\n /* {#\n It's recommended that configuration changes be formatted as follows:\n {\"\": [{\"action\": \"\", \"context\": ...}]}\n\n For example:\n {\n \"indexes\": [\n {\"action\": \"drop\", \"context\": \"index_abc\"},\n {\"action\": \"create\", \"context\": {\"columns\": [\"column_1\", \"column_2\"], \"type\": \"hash\", \"unique\": True}},\n ],\n }\n\n Either way, `get_materialized_view_configuration_changes` needs to align with `get_alter_materialized_view_as_sql`.\n #} */\n {{- log('Determining configuration changes on: ' ~ existing_relation) -}}\n {%- do return(adapter.dispatch('get_materialized_view_configuration_changes', 'dbt')(existing_relation, new_config)) -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_materialized_view_configuration_changes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.559386, "supported_languages": null}, "macro.dbt.default__get_materialized_view_configuration_changes": {"name": "default__get_materialized_view_configuration_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view/get_materialized_view_configuration_changes.sql", "original_file_path": "macros/materializations/models/materialized_view/get_materialized_view_configuration_changes.sql", "unique_id": "macro.dbt.default__get_materialized_view_configuration_changes", "macro_sql": "{% macro default__get_materialized_view_configuration_changes(existing_relation, new_config) %}\n {{ exceptions.raise_compiler_error(\"Materialized views have not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.5598888, "supported_languages": null}, "macro.dbt.get_alter_materialized_view_as_sql": {"name": "get_alter_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view/alter_materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view/alter_materialized_view.sql", "unique_id": "macro.dbt.get_alter_materialized_view_as_sql", "macro_sql": "{% macro get_alter_materialized_view_as_sql(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n) %}\n {{- log('Applying ALTER to: ' ~ relation) -}}\n {{- adapter.dispatch('get_alter_materialized_view_as_sql', 'dbt')(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n ) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_alter_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.5612822, "supported_languages": null}, "macro.dbt.default__get_alter_materialized_view_as_sql": {"name": "default__get_alter_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view/alter_materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view/alter_materialized_view.sql", "unique_id": "macro.dbt.default__get_alter_materialized_view_as_sql", "macro_sql": "{% macro default__get_alter_materialized_view_as_sql(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n) %}\n {{ exceptions.raise_compiler_error(\"Materialized views have not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.5619059, "supported_languages": null}, "macro.dbt.refresh_materialized_view": {"name": "refresh_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view/refresh_materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view/refresh_materialized_view.sql", "unique_id": "macro.dbt.refresh_materialized_view", "macro_sql": "{% macro refresh_materialized_view(relation) %}\n {{- log('Applying REFRESH to: ' ~ relation) -}}\n {{- adapter.dispatch('refresh_materialized_view', 'dbt')(relation) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__refresh_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.5635042, "supported_languages": null}, "macro.dbt.default__refresh_materialized_view": {"name": "default__refresh_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view/refresh_materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view/refresh_materialized_view.sql", "unique_id": "macro.dbt.default__refresh_materialized_view", "macro_sql": "{% macro default__refresh_materialized_view(relation) %}\n {{ exceptions.raise_compiler_error(\"Materialized views have not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.5639849, "supported_languages": null}, "macro.dbt.get_replace_materialized_view_as_sql": {"name": "get_replace_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view/replace_materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view/replace_materialized_view.sql", "unique_id": "macro.dbt.get_replace_materialized_view_as_sql", "macro_sql": "{% macro get_replace_materialized_view_as_sql(relation, sql, existing_relation, backup_relation, intermediate_relation) %}\n {{- log('Applying REPLACE to: ' ~ relation) -}}\n {{- adapter.dispatch('get_replace_materialized_view_as_sql', 'dbt')(relation, sql, existing_relation, backup_relation, intermediate_relation) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_replace_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.5653372, "supported_languages": null}, "macro.dbt.default__get_replace_materialized_view_as_sql": {"name": "default__get_replace_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view/replace_materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view/replace_materialized_view.sql", "unique_id": "macro.dbt.default__get_replace_materialized_view_as_sql", "macro_sql": "{% macro default__get_replace_materialized_view_as_sql(relation, sql, existing_relation, backup_relation, intermediate_relation) %}\n {{ exceptions.raise_compiler_error(\"Materialized views have not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.565912, "supported_languages": null}, "macro.dbt.get_create_materialized_view_as_sql": {"name": "get_create_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view/create_materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view/create_materialized_view.sql", "unique_id": "macro.dbt.get_create_materialized_view_as_sql", "macro_sql": "{% macro get_create_materialized_view_as_sql(relation, sql) -%}\n {{- log('Applying CREATE to: ' ~ relation) -}}\n {{- adapter.dispatch('get_create_materialized_view_as_sql', 'dbt')(relation, sql) -}}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_create_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.566912, "supported_languages": null}, "macro.dbt.default__get_create_materialized_view_as_sql": {"name": "default__get_create_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view/create_materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view/create_materialized_view.sql", "unique_id": "macro.dbt.default__get_create_materialized_view_as_sql", "macro_sql": "{% macro default__get_create_materialized_view_as_sql(relation, sql) -%}\n {{ exceptions.raise_compiler_error(\"Materialized views have not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.567374, "supported_languages": null}, "macro.dbt.can_clone_table": {"name": "can_clone_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/can_clone_table.sql", "original_file_path": "macros/materializations/models/clone/can_clone_table.sql", "unique_id": "macro.dbt.can_clone_table", "macro_sql": "{% macro can_clone_table() %}\n {{ return(adapter.dispatch('can_clone_table', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__can_clone_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.5680902, "supported_languages": null}, "macro.dbt.default__can_clone_table": {"name": "default__can_clone_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/can_clone_table.sql", "original_file_path": "macros/materializations/models/clone/can_clone_table.sql", "unique_id": "macro.dbt.default__can_clone_table", "macro_sql": "{% macro default__can_clone_table() %}\n {{ return(False) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.56868, "supported_languages": null}, "macro.dbt.create_or_replace_clone": {"name": "create_or_replace_clone", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/create_or_replace_clone.sql", "original_file_path": "macros/materializations/models/clone/create_or_replace_clone.sql", "unique_id": "macro.dbt.create_or_replace_clone", "macro_sql": "{% macro create_or_replace_clone(this_relation, defer_relation) %}\n {{ return(adapter.dispatch('create_or_replace_clone', 'dbt')(this_relation, defer_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__create_or_replace_clone"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.569551, "supported_languages": null}, "macro.dbt.default__create_or_replace_clone": {"name": "default__create_or_replace_clone", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/create_or_replace_clone.sql", "original_file_path": "macros/materializations/models/clone/create_or_replace_clone.sql", "unique_id": "macro.dbt.default__create_or_replace_clone", "macro_sql": "{% macro default__create_or_replace_clone(this_relation, defer_relation) %}\n create or replace table {{ this_relation }} clone {{ defer_relation }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.5699809, "supported_languages": null}, "macro.dbt.materialization_clone_default": {"name": "materialization_clone_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/clone.sql", "original_file_path": "macros/materializations/models/clone/clone.sql", "unique_id": "macro.dbt.materialization_clone_default", "macro_sql": "{%- materialization clone, default -%}\n\n {%- set relations = {'relations': []} -%}\n\n {%- if not defer_relation -%}\n -- nothing to do\n {{ log(\"No relation found in state manifest for \" ~ model.unique_id, info=True) }}\n {{ return(relations) }}\n {%- endif -%}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n\n {%- if existing_relation and not flags.FULL_REFRESH -%}\n -- noop!\n {{ log(\"Relation \" ~ existing_relation ~ \" already exists\", info=True) }}\n {{ return(relations) }}\n {%- endif -%}\n\n {%- set other_existing_relation = load_cached_relation(defer_relation) -%}\n\n -- If this is a database that can do zero-copy cloning of tables, and the other relation is a table, then this will be a table\n -- Otherwise, this will be a view\n\n {% set can_clone_table = can_clone_table() %}\n\n {%- if other_existing_relation and other_existing_relation.type == 'table' and can_clone_table -%}\n\n {%- set target_relation = this.incorporate(type='table') -%}\n {% if existing_relation is not none and not existing_relation.is_table %}\n {{ log(\"Dropping relation \" ~ existing_relation ~ \" because it is of type \" ~ existing_relation.type) }}\n {{ drop_relation_if_exists(existing_relation) }}\n {% endif %}\n\n -- as a general rule, data platforms that can clone tables can also do atomic 'create or replace'\n {% call statement('main') %}\n {{ create_or_replace_clone(target_relation, defer_relation) }}\n {% endcall %}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n {% do persist_docs(target_relation, model) %}\n\n {{ return({'relations': [target_relation]}) }}\n\n {%- else -%}\n\n {%- set target_relation = this.incorporate(type='view') -%}\n\n -- reuse the view materialization\n -- TODO: support actual dispatch for materialization macros\n -- Tracking ticket: https://github.com/dbt-labs/dbt-core/issues/7799\n {% set search_name = \"materialization_view_\" ~ adapter.type() %}\n {% if not search_name in context %}\n {% set search_name = \"materialization_view_default\" %}\n {% endif %}\n {% set materialization_macro = context[search_name] %}\n {% set relations = materialization_macro() %}\n {{ return(relations) }}\n\n {%- endif -%}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.can_clone_table", "macro.dbt.drop_relation_if_exists", "macro.dbt.statement", "macro.dbt.create_or_replace_clone", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.579201, "supported_languages": ["sql"]}, "macro.dbt.get_table_columns_and_constraints": {"name": "get_table_columns_and_constraints", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table/columns_spec_ddl.sql", "original_file_path": "macros/materializations/models/table/columns_spec_ddl.sql", "unique_id": "macro.dbt.get_table_columns_and_constraints", "macro_sql": "{%- macro get_table_columns_and_constraints() -%}\n {{ adapter.dispatch('get_table_columns_and_constraints', 'dbt')() }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__get_table_columns_and_constraints"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.581984, "supported_languages": null}, "macro.dbt.default__get_table_columns_and_constraints": {"name": "default__get_table_columns_and_constraints", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table/columns_spec_ddl.sql", "original_file_path": "macros/materializations/models/table/columns_spec_ddl.sql", "unique_id": "macro.dbt.default__get_table_columns_and_constraints", "macro_sql": "{% macro default__get_table_columns_and_constraints() -%}\n {{ return(table_columns_and_constraints()) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.table_columns_and_constraints"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.5824, "supported_languages": null}, "macro.dbt.table_columns_and_constraints": {"name": "table_columns_and_constraints", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table/columns_spec_ddl.sql", "original_file_path": "macros/materializations/models/table/columns_spec_ddl.sql", "unique_id": "macro.dbt.table_columns_and_constraints", "macro_sql": "{% macro table_columns_and_constraints() %}\n {# loop through user_provided_columns to create DDL with data types and constraints #}\n {%- set raw_column_constraints = adapter.render_raw_columns_constraints(raw_columns=model['columns']) -%}\n {%- set raw_model_constraints = adapter.render_raw_model_constraints(raw_constraints=model['constraints']) -%}\n (\n {% for c in raw_column_constraints -%}\n {{ c }}{{ \",\" if not loop.last or raw_model_constraints }}\n {% endfor %}\n {% for c in raw_model_constraints -%}\n {{ c }}{{ \",\" if not loop.last }}\n {% endfor -%}\n )\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.584082, "supported_languages": null}, "macro.dbt.get_assert_columns_equivalent": {"name": "get_assert_columns_equivalent", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table/columns_spec_ddl.sql", "original_file_path": "macros/materializations/models/table/columns_spec_ddl.sql", "unique_id": "macro.dbt.get_assert_columns_equivalent", "macro_sql": "\n\n{%- macro get_assert_columns_equivalent(sql) -%}\n {{ adapter.dispatch('get_assert_columns_equivalent', 'dbt')(sql) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__get_assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.58463, "supported_languages": null}, "macro.dbt.default__get_assert_columns_equivalent": {"name": "default__get_assert_columns_equivalent", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table/columns_spec_ddl.sql", "original_file_path": "macros/materializations/models/table/columns_spec_ddl.sql", "unique_id": "macro.dbt.default__get_assert_columns_equivalent", "macro_sql": "{% macro default__get_assert_columns_equivalent(sql) -%}\n {{ return(assert_columns_equivalent(sql)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.585109, "supported_languages": null}, "macro.dbt.assert_columns_equivalent": {"name": "assert_columns_equivalent", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table/columns_spec_ddl.sql", "original_file_path": "macros/materializations/models/table/columns_spec_ddl.sql", "unique_id": "macro.dbt.assert_columns_equivalent", "macro_sql": "{% macro assert_columns_equivalent(sql) %}\n\n {#-- First ensure the user has defined 'columns' in yaml specification --#}\n {%- set user_defined_columns = model['columns'] -%}\n {%- if not user_defined_columns -%}\n {{ exceptions.raise_contract_error([], []) }}\n {%- endif -%}\n\n {#-- Obtain the column schema provided by sql file. #}\n {%- set sql_file_provided_columns = get_column_schema_from_query(sql, config.get('sql_header', none)) -%}\n {#--Obtain the column schema provided by the schema file by generating an 'empty schema' query from the model's columns. #}\n {%- set schema_file_provided_columns = get_column_schema_from_query(get_empty_schema_sql(user_defined_columns)) -%}\n\n {#-- create dictionaries with name and formatted data type and strings for exception #}\n {%- set sql_columns = format_columns(sql_file_provided_columns) -%}\n {%- set yaml_columns = format_columns(schema_file_provided_columns) -%}\n\n {%- if sql_columns|length != yaml_columns|length -%}\n {%- do exceptions.raise_contract_error(yaml_columns, sql_columns) -%}\n {%- endif -%}\n\n {%- for sql_col in sql_columns -%}\n {%- set yaml_col = [] -%}\n {%- for this_col in yaml_columns -%}\n {%- if this_col['name'] == sql_col['name'] -%}\n {%- do yaml_col.append(this_col) -%}\n {%- break -%}\n {%- endif -%}\n {%- endfor -%}\n {%- if not yaml_col -%}\n {#-- Column with name not found in yaml #}\n {%- do exceptions.raise_contract_error(yaml_columns, sql_columns) -%}\n {%- endif -%}\n {%- if sql_col['formatted'] != yaml_col[0]['formatted'] -%}\n {#-- Column data types don't match #}\n {%- do exceptions.raise_contract_error(yaml_columns, sql_columns) -%}\n {%- endif -%}\n {%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_column_schema_from_query", "macro.dbt.get_empty_schema_sql", "macro.dbt.format_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.589321, "supported_languages": null}, "macro.dbt.format_columns": {"name": "format_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table/columns_spec_ddl.sql", "original_file_path": "macros/materializations/models/table/columns_spec_ddl.sql", "unique_id": "macro.dbt.format_columns", "macro_sql": "{% macro format_columns(columns) %}\n {% set formatted_columns = [] %}\n {% for column in columns %}\n {%- set formatted_column = adapter.dispatch('format_column', 'dbt')(column) -%}\n {%- do formatted_columns.append(formatted_column) -%}\n {% endfor %}\n {{ return(formatted_columns) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__format_column"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.590584, "supported_languages": null}, "macro.dbt.default__format_column": {"name": "default__format_column", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table/columns_spec_ddl.sql", "original_file_path": "macros/materializations/models/table/columns_spec_ddl.sql", "unique_id": "macro.dbt.default__format_column", "macro_sql": "{% macro default__format_column(column) -%}\n {% set data_type = column.dtype %}\n {% set formatted = column.column.lower() ~ \" \" ~ data_type %}\n {{ return({'name': column.name, 'data_type': data_type, 'formatted': formatted}) }}\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.591872, "supported_languages": null}, "macro.dbt.materialization_table_default": {"name": "materialization_table_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table/table.sql", "original_file_path": "macros/materializations/models/table/table.sql", "unique_id": "macro.dbt.materialization_table_default", "macro_sql": "{% materialization table, default %}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='table') %}\n {%- set intermediate_relation = make_intermediate_relation(target_relation) -%}\n -- the intermediate_relation should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) -%}\n /*\n See ../view/view.sql for more information about this relation.\n */\n {%- set backup_relation_type = 'table' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n -- as above, the backup_relation should not already exist\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_table_as_sql(False, intermediate_relation, sql) }}\n {%- endcall %}\n\n -- cleanup\n {% if existing_relation is not none %}\n /* Do the equivalent of rename_if_exists. 'existing_relation' could have been dropped\n since the variable was first set. */\n {% set existing_relation = load_cached_relation(existing_relation) %}\n {% if existing_relation is not none %}\n {{ adapter.rename_relation(existing_relation, backup_relation) }}\n {% endif %}\n {% endif %}\n\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {% do create_indexes(target_relation) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n -- `COMMIT` happens here\n {{ adapter.commit() }}\n\n -- finally, drop the existing/backup relation after the commit\n {{ drop_relation_if_exists(backup_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.get_create_table_as_sql", "macro.dbt.create_indexes", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.600405, "supported_languages": ["sql"]}, "macro.dbt.get_create_table_as_sql": {"name": "get_create_table_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "unique_id": "macro.dbt.get_create_table_as_sql", "macro_sql": "{% macro get_create_table_as_sql(temporary, relation, sql) -%}\n {{ adapter.dispatch('get_create_table_as_sql', 'dbt')(temporary, relation, sql) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_create_table_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.602517, "supported_languages": null}, "macro.dbt.default__get_create_table_as_sql": {"name": "default__get_create_table_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "unique_id": "macro.dbt.default__get_create_table_as_sql", "macro_sql": "{% macro default__get_create_table_as_sql(temporary, relation, sql) -%}\n {{ return(create_table_as(temporary, relation, sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.603059, "supported_languages": null}, "macro.dbt.create_table_as": {"name": "create_table_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "unique_id": "macro.dbt.create_table_as", "macro_sql": "{% macro create_table_as(temporary, relation, compiled_code, language='sql') -%}\n {# backward compatibility for create_table_as that does not support language #}\n {% if language == \"sql\" %}\n {{ adapter.dispatch('create_table_as', 'dbt')(temporary, relation, compiled_code)}}\n {% else %}\n {{ adapter.dispatch('create_table_as', 'dbt')(temporary, relation, compiled_code, language) }}\n {% endif %}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.604321, "supported_languages": null}, "macro.dbt.default__create_table_as": {"name": "default__create_table_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "unique_id": "macro.dbt.default__create_table_as", "macro_sql": "{% macro default__create_table_as(temporary, relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create {% if temporary: -%}temporary{%- endif %} table\n {{ relation.include(database=(not temporary), schema=(not temporary)) }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {{ get_table_columns_and_constraints() }}\n {%- set sql = get_select_subquery(sql) %}\n {% endif %}\n as (\n {{ sql }}\n );\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent", "macro.dbt.get_table_columns_and_constraints", "macro.dbt.get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.606436, "supported_languages": null}, "macro.dbt.default__get_column_names": {"name": "default__get_column_names", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "unique_id": "macro.dbt.default__get_column_names", "macro_sql": "{% macro default__get_column_names() %}\n {#- loop through user_provided_columns to get column names -#}\n {%- set user_provided_columns = model['columns'] -%}\n {%- for i in user_provided_columns %}\n {%- set col = user_provided_columns[i] -%}\n {%- set col_name = adapter.quote(col['name']) if col.get('quote') else col['name'] -%}\n {{ col_name }}{{ \", \" if not loop.last }}\n {%- endfor -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.607898, "supported_languages": null}, "macro.dbt.get_select_subquery": {"name": "get_select_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "unique_id": "macro.dbt.get_select_subquery", "macro_sql": "{% macro get_select_subquery(sql) %}\n {{ return(adapter.dispatch('get_select_subquery', 'dbt')(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.608478, "supported_languages": null}, "macro.dbt.default__get_select_subquery": {"name": "default__get_select_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "unique_id": "macro.dbt.default__get_select_subquery", "macro_sql": "{% macro default__get_select_subquery(sql) %}\n select {{ adapter.dispatch('get_column_names', 'dbt')() }}\n from (\n {{ sql }}\n ) as model_subq\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__get_column_names"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.609025, "supported_languages": null}, "macro.dbt.materialization_view_default": {"name": "materialization_view_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/view/view.sql", "original_file_path": "macros/materializations/models/view/view.sql", "unique_id": "macro.dbt.materialization_view_default", "macro_sql": "{%- materialization view, default -%}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='view') -%}\n {%- set intermediate_relation = make_intermediate_relation(target_relation) -%}\n\n -- the intermediate_relation should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) -%}\n /*\n This relation (probably) doesn't exist yet. If it does exist, it's a leftover from\n a previous run, and we're going to try to drop it immediately. At the end of this\n materialization, we're going to rename the \"existing_relation\" to this identifier,\n and then we're going to drop it. In order to make sure we run the correct one of:\n - drop view ...\n - drop table ...\n\n We need to set the type of this relation to be the type of the existing_relation, if it exists,\n or else \"view\" as a sane default if it does not. Note that if the existing_relation does not\n exist, then there is nothing to move out of the way and subsequentally drop. In that case,\n this relation will be effectively unused.\n */\n {%- set backup_relation_type = 'view' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n -- as above, the backup_relation should not already exist\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_view_as_sql(intermediate_relation, sql) }}\n {%- endcall %}\n\n -- cleanup\n -- move the existing view out of the way\n {% if existing_relation is not none %}\n /* Do the equivalent of rename_if_exists. 'existing_relation' could have been dropped\n since the variable was first set. */\n {% set existing_relation = load_cached_relation(existing_relation) %}\n {% if existing_relation is not none %}\n {{ adapter.rename_relation(existing_relation, backup_relation) }}\n {% endif %}\n {% endif %}\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {{ drop_relation_if_exists(backup_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.run_hooks", "macro.dbt.drop_relation_if_exists", "macro.dbt.statement", "macro.dbt.get_create_view_as_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.6162271, "supported_languages": ["sql"]}, "macro.dbt.handle_existing_table": {"name": "handle_existing_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/view/helpers.sql", "original_file_path": "macros/materializations/models/view/helpers.sql", "unique_id": "macro.dbt.handle_existing_table", "macro_sql": "{% macro handle_existing_table(full_refresh, old_relation) %}\n {{ adapter.dispatch('handle_existing_table', 'dbt')(full_refresh, old_relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__handle_existing_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.6170628, "supported_languages": null}, "macro.dbt.default__handle_existing_table": {"name": "default__handle_existing_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/view/helpers.sql", "original_file_path": "macros/materializations/models/view/helpers.sql", "unique_id": "macro.dbt.default__handle_existing_table", "macro_sql": "{% macro default__handle_existing_table(full_refresh, old_relation) %}\n {{ log(\"Dropping relation \" ~ old_relation ~ \" because it is of type \" ~ old_relation.type) }}\n {{ adapter.drop_relation(old_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.617675, "supported_languages": null}, "macro.dbt.create_or_replace_view": {"name": "create_or_replace_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/view/create_or_replace_view.sql", "original_file_path": "macros/materializations/models/view/create_or_replace_view.sql", "unique_id": "macro.dbt.create_or_replace_view", "macro_sql": "{% macro create_or_replace_view() %}\n {%- set identifier = model['alias'] -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {%- set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database,\n type='view') -%}\n {% set grant_config = config.get('grants') %}\n\n {{ run_hooks(pre_hooks) }}\n\n -- If there's a table with the same name and we weren't told to full refresh,\n -- that's an error. If we were told to full refresh, drop it. This behavior differs\n -- for Snowflake and BigQuery, so multiple dispatch is used.\n {%- if old_relation is not none and old_relation.is_table -%}\n {{ handle_existing_table(should_full_refresh(), old_relation) }}\n {%- endif -%}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_view_as_sql(target_relation, sql) }}\n {%- endcall %}\n\n {% set should_revoke = should_revoke(exists_as_view, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {{ run_hooks(post_hooks) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.handle_existing_table", "macro.dbt.should_full_refresh", "macro.dbt.statement", "macro.dbt.get_create_view_as_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.621433, "supported_languages": null}, "macro.dbt.get_create_view_as_sql": {"name": "get_create_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "unique_id": "macro.dbt.get_create_view_as_sql", "macro_sql": "{% macro get_create_view_as_sql(relation, sql) -%}\n {{ adapter.dispatch('get_create_view_as_sql', 'dbt')(relation, sql) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_create_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.6224089, "supported_languages": null}, "macro.dbt.default__get_create_view_as_sql": {"name": "default__get_create_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "unique_id": "macro.dbt.default__get_create_view_as_sql", "macro_sql": "{% macro default__get_create_view_as_sql(relation, sql) -%}\n {{ return(create_view_as(relation, sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.622847, "supported_languages": null}, "macro.dbt.create_view_as": {"name": "create_view_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "unique_id": "macro.dbt.create_view_as", "macro_sql": "{% macro create_view_as(relation, sql) -%}\n {{ adapter.dispatch('create_view_as', 'dbt')(relation, sql) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.6233358, "supported_languages": null}, "macro.dbt.default__create_view_as": {"name": "default__create_view_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "unique_id": "macro.dbt.default__create_view_as", "macro_sql": "{% macro default__create_view_as(relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n create view {{ relation }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {%- endif %}\n as (\n {{ sql }}\n );\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.6244469, "supported_languages": null}, "macro.dbt.materialization_seed_default": {"name": "materialization_seed_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/seed.sql", "original_file_path": "macros/materializations/seeds/seed.sql", "unique_id": "macro.dbt.materialization_seed_default", "macro_sql": "{% materialization seed, default %}\n\n {%- set identifier = model['alias'] -%}\n {%- set full_refresh_mode = (should_full_refresh()) -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n\n {%- set exists_as_table = (old_relation is not none and old_relation.is_table) -%}\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {%- set grant_config = config.get('grants') -%}\n {%- set agate_table = load_agate_table() -%}\n -- grab current tables grants config for comparison later on\n\n {%- do store_result('agate_table', response='OK', agate_table=agate_table) -%}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% set create_table_sql = \"\" %}\n {% if exists_as_view %}\n {{ exceptions.raise_compiler_error(\"Cannot seed to '{}', it is a view\".format(old_relation)) }}\n {% elif exists_as_table %}\n {% set create_table_sql = reset_csv_table(model, full_refresh_mode, old_relation, agate_table) %}\n {% else %}\n {% set create_table_sql = create_csv_table(model, agate_table) %}\n {% endif %}\n\n {% set code = 'CREATE' if full_refresh_mode else 'INSERT' %}\n {% set rows_affected = (agate_table.rows | length) %}\n {% set sql = load_csv_rows(model, agate_table) %}\n\n {% call noop_statement('main', code ~ ' ' ~ rows_affected, code, rows_affected) %}\n {{ get_csv_sql(create_table_sql, sql) }};\n {% endcall %}\n\n {% set target_relation = this.incorporate(type='table') %}\n\n {% set should_revoke = should_revoke(old_relation, full_refresh_mode) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if full_refresh_mode or not exists_as_table %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n -- `COMMIT` happens here\n {{ adapter.commit() }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.should_full_refresh", "macro.dbt.run_hooks", "macro.dbt.reset_csv_table", "macro.dbt.create_csv_table", "macro.dbt.load_csv_rows", "macro.dbt.noop_statement", "macro.dbt.get_csv_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.632909, "supported_languages": ["sql"]}, "macro.dbt.create_csv_table": {"name": "create_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.create_csv_table", "macro_sql": "{% macro create_csv_table(model, agate_table) -%}\n {{ adapter.dispatch('create_csv_table', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.641999, "supported_languages": null}, "macro.dbt.default__create_csv_table": {"name": "default__create_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__create_csv_table", "macro_sql": "{% macro default__create_csv_table(model, agate_table) %}\n {%- set column_override = model['config'].get('column_types', {}) -%}\n {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n\n {% set sql %}\n create table {{ this.render() }} (\n {%- for col_name in agate_table.column_names -%}\n {%- set inferred_type = adapter.convert_type(agate_table, loop.index0) -%}\n {%- set type = column_override.get(col_name, inferred_type) -%}\n {%- set column_name = (col_name | string) -%}\n {{ adapter.quote_seed_column(column_name, quote_seed_column) }} {{ type }} {%- if not loop.last -%}, {%- endif -%}\n {%- endfor -%}\n )\n {% endset %}\n\n {% call statement('_') -%}\n {{ sql }}\n {%- endcall %}\n\n {{ return(sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.644449, "supported_languages": null}, "macro.dbt.reset_csv_table": {"name": "reset_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.reset_csv_table", "macro_sql": "{% macro reset_csv_table(model, full_refresh, old_relation, agate_table) -%}\n {{ adapter.dispatch('reset_csv_table', 'dbt')(model, full_refresh, old_relation, agate_table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__reset_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.645129, "supported_languages": null}, "macro.dbt.default__reset_csv_table": {"name": "default__reset_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__reset_csv_table", "macro_sql": "{% macro default__reset_csv_table(model, full_refresh, old_relation, agate_table) %}\n {% set sql = \"\" %}\n {% if full_refresh %}\n {{ adapter.drop_relation(old_relation) }}\n {% set sql = create_csv_table(model, agate_table) %}\n {% else %}\n {{ adapter.truncate_relation(old_relation) }}\n {% set sql = \"truncate table \" ~ old_relation %}\n {% endif %}\n\n {{ return(sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.646399, "supported_languages": null}, "macro.dbt.get_csv_sql": {"name": "get_csv_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_csv_sql", "macro_sql": "{% macro get_csv_sql(create_or_truncate_sql, insert_sql) %}\n {{ adapter.dispatch('get_csv_sql', 'dbt')(create_or_truncate_sql, insert_sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_csv_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.646917, "supported_languages": null}, "macro.dbt.default__get_csv_sql": {"name": "default__get_csv_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__get_csv_sql", "macro_sql": "{% macro default__get_csv_sql(create_or_truncate_sql, insert_sql) %}\n {{ create_or_truncate_sql }};\n -- dbt seed --\n {{ insert_sql }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.6472902, "supported_languages": null}, "macro.dbt.get_binding_char": {"name": "get_binding_char", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_binding_char", "macro_sql": "{% macro get_binding_char() -%}\n {{ adapter.dispatch('get_binding_char', 'dbt')() }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.6476831, "supported_languages": null}, "macro.dbt.default__get_binding_char": {"name": "default__get_binding_char", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__get_binding_char", "macro_sql": "{% macro default__get_binding_char() %}\n {{ return('%s') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.64801, "supported_languages": null}, "macro.dbt.get_batch_size": {"name": "get_batch_size", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_batch_size", "macro_sql": "{% macro get_batch_size() -%}\n {{ return(adapter.dispatch('get_batch_size', 'dbt')()) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_batch_size"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.6484458, "supported_languages": null}, "macro.dbt.default__get_batch_size": {"name": "default__get_batch_size", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__get_batch_size", "macro_sql": "{% macro default__get_batch_size() %}\n {{ return(10000) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.6487832, "supported_languages": null}, "macro.dbt.get_seed_column_quoted_csv": {"name": "get_seed_column_quoted_csv", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_seed_column_quoted_csv", "macro_sql": "{% macro get_seed_column_quoted_csv(model, column_names) %}\n {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n {% set quoted = [] %}\n {% for col in column_names -%}\n {%- do quoted.append(adapter.quote_seed_column(col, quote_seed_column)) -%}\n {%- endfor %}\n\n {%- set dest_cols_csv = quoted | join(', ') -%}\n {{ return(dest_cols_csv) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.650039, "supported_languages": null}, "macro.dbt.load_csv_rows": {"name": "load_csv_rows", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.load_csv_rows", "macro_sql": "{% macro load_csv_rows(model, agate_table) -%}\n {{ adapter.dispatch('load_csv_rows', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__load_csv_rows"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.650545, "supported_languages": null}, "macro.dbt.default__load_csv_rows": {"name": "default__load_csv_rows", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__load_csv_rows", "macro_sql": "{% macro default__load_csv_rows(model, agate_table) %}\n\n {% set batch_size = get_batch_size() %}\n\n {% set cols_sql = get_seed_column_quoted_csv(model, agate_table.column_names) %}\n {% set bindings = [] %}\n\n {% set statements = [] %}\n\n {% for chunk in agate_table.rows | batch(batch_size) %}\n {% set bindings = [] %}\n\n {% for row in chunk %}\n {% do bindings.extend(row) %}\n {% endfor %}\n\n {% set sql %}\n insert into {{ this.render() }} ({{ cols_sql }}) values\n {% for row in chunk -%}\n ({%- for column in agate_table.column_names -%}\n {{ get_binding_char() }}\n {%- if not loop.last%},{%- endif %}\n {%- endfor -%})\n {%- if not loop.last%},{%- endif %}\n {%- endfor %}\n {% endset %}\n\n {% do adapter.add_query(sql, bindings=bindings, abridge_sql_log=True) %}\n\n {% if loop.index0 == 0 %}\n {% do statements.append(sql) %}\n {% endif %}\n {% endfor %}\n\n {# Return SQL so we can render it out into the compiled files #}\n {{ return(statements[0]) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_batch_size", "macro.dbt.get_seed_column_quoted_csv", "macro.dbt.get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.654132, "supported_languages": null}, "macro.dbt.generate_alias_name": {"name": "generate_alias_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "unique_id": "macro.dbt.generate_alias_name", "macro_sql": "{% macro generate_alias_name(custom_alias_name=none, node=none) -%}\n {% do return(adapter.dispatch('generate_alias_name', 'dbt')(custom_alias_name, node)) %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_alias_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.655162, "supported_languages": null}, "macro.dbt.default__generate_alias_name": {"name": "default__generate_alias_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "unique_id": "macro.dbt.default__generate_alias_name", "macro_sql": "{% macro default__generate_alias_name(custom_alias_name=none, node=none) -%}\n\n {%- if custom_alias_name -%}\n\n {{ custom_alias_name | trim }}\n\n {%- elif node.version -%}\n\n {{ return(node.name ~ \"_v\" ~ (node.version | replace(\".\", \"_\"))) }}\n\n {%- else -%}\n\n {{ node.name }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.656289, "supported_languages": null}, "macro.dbt.generate_schema_name": {"name": "generate_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "unique_id": "macro.dbt.generate_schema_name", "macro_sql": "{% macro generate_schema_name(custom_schema_name=none, node=none) -%}\n {{ return(adapter.dispatch('generate_schema_name', 'dbt')(custom_schema_name, node)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.657461, "supported_languages": null}, "macro.dbt.default__generate_schema_name": {"name": "default__generate_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "unique_id": "macro.dbt.default__generate_schema_name", "macro_sql": "{% macro default__generate_schema_name(custom_schema_name, node) -%}\n\n {%- set default_schema = target.schema -%}\n {%- if custom_schema_name is none -%}\n\n {{ default_schema }}\n\n {%- else -%}\n\n {{ default_schema }}_{{ custom_schema_name | trim }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.658171, "supported_languages": null}, "macro.dbt.generate_schema_name_for_env": {"name": "generate_schema_name_for_env", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "unique_id": "macro.dbt.generate_schema_name_for_env", "macro_sql": "{% macro generate_schema_name_for_env(custom_schema_name, node) -%}\n\n {%- set default_schema = target.schema -%}\n {%- if target.name == 'prod' and custom_schema_name is not none -%}\n\n {{ custom_schema_name | trim }}\n\n {%- else -%}\n\n {{ default_schema }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.658932, "supported_languages": null}, "macro.dbt.generate_database_name": {"name": "generate_database_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "unique_id": "macro.dbt.generate_database_name", "macro_sql": "{% macro generate_database_name(custom_database_name=none, node=none) -%}\n {% do return(adapter.dispatch('generate_database_name', 'dbt')(custom_database_name, node)) %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_database_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.65987, "supported_languages": null}, "macro.dbt.default__generate_database_name": {"name": "default__generate_database_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "unique_id": "macro.dbt.default__generate_database_name", "macro_sql": "{% macro default__generate_database_name(custom_database_name=none, node=none) -%}\n {%- set default_database = target.database -%}\n {%- if custom_database_name is none -%}\n\n {{ default_database }}\n\n {%- else -%}\n\n {{ custom_database_name }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.660544, "supported_languages": null}, "macro.dbt.default__test_relationships": {"name": "default__test_relationships", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/relationships.sql", "original_file_path": "macros/generic_test_sql/relationships.sql", "unique_id": "macro.dbt.default__test_relationships", "macro_sql": "{% macro default__test_relationships(model, column_name, to, field) %}\n\nwith child as (\n select {{ column_name }} as from_field\n from {{ model }}\n where {{ column_name }} is not null\n),\n\nparent as (\n select {{ field }} as to_field\n from {{ to }}\n)\n\nselect\n from_field\n\nfrom child\nleft join parent\n on child.from_field = parent.to_field\n\nwhere parent.to_field is null\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.661394, "supported_languages": null}, "macro.dbt.default__test_not_null": {"name": "default__test_not_null", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/not_null.sql", "original_file_path": "macros/generic_test_sql/not_null.sql", "unique_id": "macro.dbt.default__test_not_null", "macro_sql": "{% macro default__test_not_null(model, column_name) %}\n\n{% set column_list = '*' if should_store_failures() else column_name %}\n\nselect {{ column_list }}\nfrom {{ model }}\nwhere {{ column_name }} is null\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_store_failures"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.662154, "supported_languages": null}, "macro.dbt.default__test_unique": {"name": "default__test_unique", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/unique.sql", "original_file_path": "macros/generic_test_sql/unique.sql", "unique_id": "macro.dbt.default__test_unique", "macro_sql": "{% macro default__test_unique(model, column_name) %}\n\nselect\n {{ column_name }} as unique_field,\n count(*) as n_records\n\nfrom {{ model }}\nwhere {{ column_name }} is not null\ngroup by {{ column_name }}\nhaving count(*) > 1\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.662765, "supported_languages": null}, "macro.dbt.default__test_accepted_values": {"name": "default__test_accepted_values", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/accepted_values.sql", "original_file_path": "macros/generic_test_sql/accepted_values.sql", "unique_id": "macro.dbt.default__test_accepted_values", "macro_sql": "{% macro default__test_accepted_values(model, column_name, values, quote=True) %}\n\nwith all_values as (\n\n select\n {{ column_name }} as value_field,\n count(*) as n_records\n\n from {{ model }}\n group by {{ column_name }}\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n {% for value in values -%}\n {% if quote -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {%- endfor %}\n)\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.664129, "supported_languages": null}, "macro.dbt.statement": {"name": "statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "unique_id": "macro.dbt.statement", "macro_sql": "\n{%- macro statement(name=None, fetch_result=False, auto_begin=True, language='sql') -%}\n {%- if execute: -%}\n {%- set compiled_code = caller() -%}\n\n {%- if name == 'main' -%}\n {{ log('Writing runtime {} for node \"{}\"'.format(language, model['unique_id'])) }}\n {{ write(compiled_code) }}\n {%- endif -%}\n {%- if language == 'sql'-%}\n {%- set res, table = adapter.execute(compiled_code, auto_begin=auto_begin, fetch=fetch_result) -%}\n {%- elif language == 'python' -%}\n {%- set res = submit_python_job(model, compiled_code) -%}\n {#-- TODO: What should table be for python models? --#}\n {%- set table = None -%}\n {%- else -%}\n {% do exceptions.raise_compiler_error(\"statement macro didn't get supported language\") %}\n {%- endif -%}\n\n {%- if name is not none -%}\n {{ store_result(name, response=res, agate_table=table) }}\n {%- endif -%}\n\n {%- endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.6675751, "supported_languages": null}, "macro.dbt.noop_statement": {"name": "noop_statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "unique_id": "macro.dbt.noop_statement", "macro_sql": "{% macro noop_statement(name=None, message=None, code=None, rows_affected=None, res=None) -%}\n {%- set sql = caller() -%}\n\n {%- if name == 'main' -%}\n {{ log('Writing runtime SQL for node \"{}\"'.format(model['unique_id'])) }}\n {{ write(sql) }}\n {%- endif -%}\n\n {%- if name is not none -%}\n {{ store_raw_result(name, message=message, code=code, rows_affected=rows_affected, agate_table=res) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.669058, "supported_languages": null}, "macro.dbt.run_query": {"name": "run_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "unique_id": "macro.dbt.run_query", "macro_sql": "{% macro run_query(sql) %}\n {% call statement(\"run_query_statement\", fetch_result=true, auto_begin=false) %}\n {{ sql }}\n {% endcall %}\n\n {% do return(load_result(\"run_query_statement\").table) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.669826, "supported_languages": null}, "macro.dbt.convert_datetime": {"name": "convert_datetime", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.convert_datetime", "macro_sql": "{% macro convert_datetime(date_str, date_fmt) %}\n\n {% set error_msg -%}\n The provided partition date '{{ date_str }}' does not match the expected format '{{ date_fmt }}'\n {%- endset %}\n\n {% set res = try_or_compiler_error(error_msg, modules.datetime.datetime.strptime, date_str.strip(), date_fmt) %}\n {{ return(res) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.673228, "supported_languages": null}, "macro.dbt.dates_in_range": {"name": "dates_in_range", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.dates_in_range", "macro_sql": "{% macro dates_in_range(start_date_str, end_date_str=none, in_fmt=\"%Y%m%d\", out_fmt=\"%Y%m%d\") %}\n {% set end_date_str = start_date_str if end_date_str is none else end_date_str %}\n\n {% set start_date = convert_datetime(start_date_str, in_fmt) %}\n {% set end_date = convert_datetime(end_date_str, in_fmt) %}\n\n {% set day_count = (end_date - start_date).days %}\n {% if day_count < 0 %}\n {% set msg -%}\n Partiton start date is after the end date ({{ start_date }}, {{ end_date }})\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg, model) }}\n {% endif %}\n\n {% set date_list = [] %}\n {% for i in range(0, day_count + 1) %}\n {% set the_date = (modules.datetime.timedelta(days=i) + start_date) %}\n {% if not out_fmt %}\n {% set _ = date_list.append(the_date) %}\n {% else %}\n {% set _ = date_list.append(the_date.strftime(out_fmt)) %}\n {% endif %}\n {% endfor %}\n\n {{ return(date_list) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.convert_datetime"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.6765718, "supported_languages": null}, "macro.dbt.partition_range": {"name": "partition_range", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.partition_range", "macro_sql": "{% macro partition_range(raw_partition_date, date_fmt='%Y%m%d') %}\n {% set partition_range = (raw_partition_date | string).split(\",\") %}\n\n {% if (partition_range | length) == 1 %}\n {% set start_date = partition_range[0] %}\n {% set end_date = none %}\n {% elif (partition_range | length) == 2 %}\n {% set start_date = partition_range[0] %}\n {% set end_date = partition_range[1] %}\n {% else %}\n {{ exceptions.raise_compiler_error(\"Invalid partition time. Expected format: {Start Date}[,{End Date}]. Got: \" ~ raw_partition_date) }}\n {% endif %}\n\n {{ return(dates_in_range(start_date, end_date, in_fmt=date_fmt)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dates_in_range"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.678549, "supported_languages": null}, "macro.dbt.py_current_timestring": {"name": "py_current_timestring", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.py_current_timestring", "macro_sql": "{% macro py_current_timestring() %}\n {% set dt = modules.datetime.datetime.now() %}\n {% do return(dt.strftime(\"%Y%m%d%H%M%S%f\")) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.679224, "supported_languages": null}, "macro.dbt.except": {"name": "except", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "unique_id": "macro.dbt.except", "macro_sql": "{% macro except() %}\n {{ return(adapter.dispatch('except', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.679927, "supported_languages": null}, "macro.dbt.default__except": {"name": "default__except", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "unique_id": "macro.dbt.default__except", "macro_sql": "{% macro default__except() %}\n\n except\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.680175, "supported_languages": null}, "macro.dbt.replace": {"name": "replace", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/replace.sql", "original_file_path": "macros/utils/replace.sql", "unique_id": "macro.dbt.replace", "macro_sql": "{% macro replace(field, old_chars, new_chars) -%}\n {{ return(adapter.dispatch('replace', 'dbt') (field, old_chars, new_chars)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__replace"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.681002, "supported_languages": null}, "macro.dbt.default__replace": {"name": "default__replace", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/replace.sql", "original_file_path": "macros/utils/replace.sql", "unique_id": "macro.dbt.default__replace", "macro_sql": "{% macro default__replace(field, old_chars, new_chars) %}\n\n replace(\n {{ field }},\n {{ old_chars }},\n {{ new_chars }}\n )\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.681461, "supported_languages": null}, "macro.dbt.concat": {"name": "concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/concat.sql", "original_file_path": "macros/utils/concat.sql", "unique_id": "macro.dbt.concat", "macro_sql": "{% macro concat(fields) -%}\n {{ return(adapter.dispatch('concat', 'dbt')(fields)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.682119, "supported_languages": null}, "macro.dbt.default__concat": {"name": "default__concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/concat.sql", "original_file_path": "macros/utils/concat.sql", "unique_id": "macro.dbt.default__concat", "macro_sql": "{% macro default__concat(fields) -%}\n {{ fields|join(' || ') }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.682464, "supported_languages": null}, "macro.dbt.length": {"name": "length", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/length.sql", "original_file_path": "macros/utils/length.sql", "unique_id": "macro.dbt.length", "macro_sql": "{% macro length(expression) -%}\n {{ return(adapter.dispatch('length', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__length"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.683105, "supported_languages": null}, "macro.dbt.default__length": {"name": "default__length", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/length.sql", "original_file_path": "macros/utils/length.sql", "unique_id": "macro.dbt.default__length", "macro_sql": "{% macro default__length(expression) %}\n\n length(\n {{ expression }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.683402, "supported_languages": null}, "macro.dbt.dateadd": {"name": "dateadd", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "unique_id": "macro.dbt.dateadd", "macro_sql": "{% macro dateadd(datepart, interval, from_date_or_timestamp) %}\n {{ return(adapter.dispatch('dateadd', 'dbt')(datepart, interval, from_date_or_timestamp)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.684227, "supported_languages": null}, "macro.dbt.default__dateadd": {"name": "default__dateadd", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "unique_id": "macro.dbt.default__dateadd", "macro_sql": "{% macro default__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n dateadd(\n {{ datepart }},\n {{ interval }},\n {{ from_date_or_timestamp }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.6846888, "supported_languages": null}, "macro.dbt.intersect": {"name": "intersect", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "unique_id": "macro.dbt.intersect", "macro_sql": "{% macro intersect() %}\n {{ return(adapter.dispatch('intersect', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__intersect"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.685266, "supported_languages": null}, "macro.dbt.default__intersect": {"name": "default__intersect", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "unique_id": "macro.dbt.default__intersect", "macro_sql": "{% macro default__intersect() %}\n\n intersect\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.685487, "supported_languages": null}, "macro.dbt.escape_single_quotes": {"name": "escape_single_quotes", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "unique_id": "macro.dbt.escape_single_quotes", "macro_sql": "{% macro escape_single_quotes(expression) %}\n {{ return(adapter.dispatch('escape_single_quotes', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__escape_single_quotes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.686242, "supported_languages": null}, "macro.dbt.default__escape_single_quotes": {"name": "default__escape_single_quotes", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "unique_id": "macro.dbt.default__escape_single_quotes", "macro_sql": "{% macro default__escape_single_quotes(expression) -%}\n{{ expression | replace(\"'\",\"''\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.6867101, "supported_languages": null}, "macro.dbt.right": {"name": "right", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "unique_id": "macro.dbt.right", "macro_sql": "{% macro right(string_text, length_expression) -%}\n {{ return(adapter.dispatch('right', 'dbt') (string_text, length_expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__right"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.687795, "supported_languages": null}, "macro.dbt.default__right": {"name": "default__right", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "unique_id": "macro.dbt.default__right", "macro_sql": "{% macro default__right(string_text, length_expression) %}\n\n right(\n {{ string_text }},\n {{ length_expression }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.6881971, "supported_languages": null}, "macro.dbt.listagg": {"name": "listagg", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "unique_id": "macro.dbt.listagg", "macro_sql": "{% macro listagg(measure, delimiter_text=\"','\", order_by_clause=none, limit_num=none) -%}\n {{ return(adapter.dispatch('listagg', 'dbt') (measure, delimiter_text, order_by_clause, limit_num)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__listagg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.6895978, "supported_languages": null}, "macro.dbt.default__listagg": {"name": "default__listagg", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "unique_id": "macro.dbt.default__listagg", "macro_sql": "{% macro default__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n {% if limit_num -%}\n array_to_string(\n array_slice(\n array_agg(\n {{ measure }}\n ){% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n ,0\n ,{{ limit_num }}\n ),\n {{ delimiter_text }}\n )\n {%- else %}\n listagg(\n {{ measure }},\n {{ delimiter_text }}\n )\n {% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n {%- endif %}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.690699, "supported_languages": null}, "macro.dbt.datediff": {"name": "datediff", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "unique_id": "macro.dbt.datediff", "macro_sql": "{% macro datediff(first_date, second_date, datepart) %}\n {{ return(adapter.dispatch('datediff', 'dbt')(first_date, second_date, datepart)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.691756, "supported_languages": null}, "macro.dbt.default__datediff": {"name": "default__datediff", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "unique_id": "macro.dbt.default__datediff", "macro_sql": "{% macro default__datediff(first_date, second_date, datepart) -%}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.692211, "supported_languages": null}, "macro.dbt.safe_cast": {"name": "safe_cast", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "unique_id": "macro.dbt.safe_cast", "macro_sql": "{% macro safe_cast(field, type) %}\n {{ return(adapter.dispatch('safe_cast', 'dbt') (field, type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__safe_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.69293, "supported_languages": null}, "macro.dbt.default__safe_cast": {"name": "default__safe_cast", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "unique_id": "macro.dbt.default__safe_cast", "macro_sql": "{% macro default__safe_cast(field, type) %}\n {# most databases don't support this function yet\n so we just need to use cast #}\n cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.693519, "supported_languages": null}, "macro.dbt.hash": {"name": "hash", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "unique_id": "macro.dbt.hash", "macro_sql": "{% macro hash(field) -%}\n {{ return(adapter.dispatch('hash', 'dbt') (field)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__hash"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.6941571, "supported_languages": null}, "macro.dbt.default__hash": {"name": "default__hash", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "unique_id": "macro.dbt.default__hash", "macro_sql": "{% macro default__hash(field) -%}\n md5(cast({{ field }} as {{ api.Column.translate_type('string') }}))\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.694585, "supported_languages": null}, "macro.dbt.cast_bool_to_text": {"name": "cast_bool_to_text", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/cast_bool_to_text.sql", "original_file_path": "macros/utils/cast_bool_to_text.sql", "unique_id": "macro.dbt.cast_bool_to_text", "macro_sql": "{% macro cast_bool_to_text(field) %}\n {{ adapter.dispatch('cast_bool_to_text', 'dbt') (field) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.695196, "supported_languages": null}, "macro.dbt.default__cast_bool_to_text": {"name": "default__cast_bool_to_text", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/cast_bool_to_text.sql", "original_file_path": "macros/utils/cast_bool_to_text.sql", "unique_id": "macro.dbt.default__cast_bool_to_text", "macro_sql": "{% macro default__cast_bool_to_text(field) %}\n cast({{ field }} as {{ api.Column.translate_type('string') }})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.695627, "supported_languages": null}, "macro.dbt.any_value": {"name": "any_value", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "unique_id": "macro.dbt.any_value", "macro_sql": "{% macro any_value(expression) -%}\n {{ return(adapter.dispatch('any_value', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__any_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.696287, "supported_languages": null}, "macro.dbt.default__any_value": {"name": "default__any_value", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "unique_id": "macro.dbt.default__any_value", "macro_sql": "{% macro default__any_value(expression) -%}\n\n any_value({{ expression }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.696577, "supported_languages": null}, "macro.dbt.position": {"name": "position", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "unique_id": "macro.dbt.position", "macro_sql": "{% macro position(substring_text, string_text) -%}\n {{ return(adapter.dispatch('position', 'dbt') (substring_text, string_text)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__position"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.697351, "supported_languages": null}, "macro.dbt.default__position": {"name": "default__position", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "unique_id": "macro.dbt.default__position", "macro_sql": "{% macro default__position(substring_text, string_text) %}\n\n position(\n {{ substring_text }} in {{ string_text }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.697866, "supported_languages": null}, "macro.dbt.string_literal": {"name": "string_literal", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/literal.sql", "original_file_path": "macros/utils/literal.sql", "unique_id": "macro.dbt.string_literal", "macro_sql": "{%- macro string_literal(value) -%}\n {{ return(adapter.dispatch('string_literal', 'dbt') (value)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__string_literal"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.6985888, "supported_languages": null}, "macro.dbt.default__string_literal": {"name": "default__string_literal", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/literal.sql", "original_file_path": "macros/utils/literal.sql", "unique_id": "macro.dbt.default__string_literal", "macro_sql": "{% macro default__string_literal(value) -%}\n '{{ value }}'\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.698914, "supported_languages": null}, "macro.dbt.type_string": {"name": "type_string", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_string", "macro_sql": "\n\n{%- macro type_string() -%}\n {{ return(adapter.dispatch('type_string', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.700871, "supported_languages": null}, "macro.dbt.default__type_string": {"name": "default__type_string", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_string", "macro_sql": "{% macro default__type_string() %}\n {{ return(api.Column.translate_type(\"string\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.701323, "supported_languages": null}, "macro.dbt.type_timestamp": {"name": "type_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_timestamp", "macro_sql": "\n\n{%- macro type_timestamp() -%}\n {{ return(adapter.dispatch('type_timestamp', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.701778, "supported_languages": null}, "macro.dbt.default__type_timestamp": {"name": "default__type_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_timestamp", "macro_sql": "{% macro default__type_timestamp() %}\n {{ return(api.Column.translate_type(\"timestamp\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.702206, "supported_languages": null}, "macro.dbt.type_float": {"name": "type_float", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_float", "macro_sql": "\n\n{%- macro type_float() -%}\n {{ return(adapter.dispatch('type_float', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.702642, "supported_languages": null}, "macro.dbt.default__type_float": {"name": "default__type_float", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_float", "macro_sql": "{% macro default__type_float() %}\n {{ return(api.Column.translate_type(\"float\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.70305, "supported_languages": null}, "macro.dbt.type_numeric": {"name": "type_numeric", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_numeric", "macro_sql": "\n\n{%- macro type_numeric() -%}\n {{ return(adapter.dispatch('type_numeric', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.703485, "supported_languages": null}, "macro.dbt.default__type_numeric": {"name": "default__type_numeric", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_numeric", "macro_sql": "{% macro default__type_numeric() %}\n {{ return(api.Column.numeric_type(\"numeric\", 28, 6)) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.703973, "supported_languages": null}, "macro.dbt.type_bigint": {"name": "type_bigint", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_bigint", "macro_sql": "\n\n{%- macro type_bigint() -%}\n {{ return(adapter.dispatch('type_bigint', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.704412, "supported_languages": null}, "macro.dbt.default__type_bigint": {"name": "default__type_bigint", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_bigint", "macro_sql": "{% macro default__type_bigint() %}\n {{ return(api.Column.translate_type(\"bigint\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.704818, "supported_languages": null}, "macro.dbt.type_int": {"name": "type_int", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_int", "macro_sql": "\n\n{%- macro type_int() -%}\n {{ return(adapter.dispatch('type_int', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.705428, "supported_languages": null}, "macro.dbt.default__type_int": {"name": "default__type_int", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_int", "macro_sql": "{%- macro default__type_int() -%}\n {{ return(api.Column.translate_type(\"integer\")) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.7058518, "supported_languages": null}, "macro.dbt.type_boolean": {"name": "type_boolean", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_boolean", "macro_sql": "\n\n{%- macro type_boolean() -%}\n {{ return(adapter.dispatch('type_boolean', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_boolean"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.706302, "supported_languages": null}, "macro.dbt.default__type_boolean": {"name": "default__type_boolean", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_boolean", "macro_sql": "{%- macro default__type_boolean() -%}\n {{ return(api.Column.translate_type(\"boolean\")) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.706699, "supported_languages": null}, "macro.dbt.array_concat": {"name": "array_concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_concat.sql", "original_file_path": "macros/utils/array_concat.sql", "unique_id": "macro.dbt.array_concat", "macro_sql": "{% macro array_concat(array_1, array_2) -%}\n {{ return(adapter.dispatch('array_concat', 'dbt')(array_1, array_2)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__array_concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.7074182, "supported_languages": null}, "macro.dbt.default__array_concat": {"name": "default__array_concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_concat.sql", "original_file_path": "macros/utils/array_concat.sql", "unique_id": "macro.dbt.default__array_concat", "macro_sql": "{% macro default__array_concat(array_1, array_2) -%}\n array_cat({{ array_1 }}, {{ array_2 }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.707791, "supported_languages": null}, "macro.dbt.bool_or": {"name": "bool_or", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "unique_id": "macro.dbt.bool_or", "macro_sql": "{% macro bool_or(expression) -%}\n {{ return(adapter.dispatch('bool_or', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__bool_or"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.708432, "supported_languages": null}, "macro.dbt.default__bool_or": {"name": "default__bool_or", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "unique_id": "macro.dbt.default__bool_or", "macro_sql": "{% macro default__bool_or(expression) -%}\n\n bool_or({{ expression }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.708724, "supported_languages": null}, "macro.dbt.last_day": {"name": "last_day", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt.last_day", "macro_sql": "{% macro last_day(date, datepart) %}\n {{ return(adapter.dispatch('last_day', 'dbt') (date, datepart)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.7095711, "supported_languages": null}, "macro.dbt.default_last_day": {"name": "default_last_day", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt.default_last_day", "macro_sql": "\n\n{%- macro default_last_day(date, datepart) -%}\n cast(\n {{dbt.dateadd('day', '-1',\n dbt.dateadd(datepart, '1', dbt.date_trunc(datepart, date))\n )}}\n as date)\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.710392, "supported_languages": null}, "macro.dbt.default__last_day": {"name": "default__last_day", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt.default__last_day", "macro_sql": "{% macro default__last_day(date, datepart) -%}\n {{dbt.default_last_day(date, datepart)}}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.710891, "supported_languages": null}, "macro.dbt.split_part": {"name": "split_part", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt.split_part", "macro_sql": "{% macro split_part(string_text, delimiter_text, part_number) %}\n {{ return(adapter.dispatch('split_part', 'dbt') (string_text, delimiter_text, part_number)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.71233, "supported_languages": null}, "macro.dbt.default__split_part": {"name": "default__split_part", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt.default__split_part", "macro_sql": "{% macro default__split_part(string_text, delimiter_text, part_number) %}\n\n split_part(\n {{ string_text }},\n {{ delimiter_text }},\n {{ part_number }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.7128031, "supported_languages": null}, "macro.dbt._split_part_negative": {"name": "_split_part_negative", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt._split_part_negative", "macro_sql": "{% macro _split_part_negative(string_text, delimiter_text, part_number) %}\n\n split_part(\n {{ string_text }},\n {{ delimiter_text }},\n length({{ string_text }})\n - length(\n replace({{ string_text }}, {{ delimiter_text }}, '')\n ) + 2 + {{ part_number }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.713417, "supported_languages": null}, "macro.dbt.date_trunc": {"name": "date_trunc", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "unique_id": "macro.dbt.date_trunc", "macro_sql": "{% macro date_trunc(datepart, date) -%}\n {{ return(adapter.dispatch('date_trunc', 'dbt') (datepart, date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.7141461, "supported_languages": null}, "macro.dbt.default__date_trunc": {"name": "default__date_trunc", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "unique_id": "macro.dbt.default__date_trunc", "macro_sql": "{% macro default__date_trunc(datepart, date) -%}\n date_trunc('{{datepart}}', {{date}})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.7145112, "supported_languages": null}, "macro.dbt.array_construct": {"name": "array_construct", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "unique_id": "macro.dbt.array_construct", "macro_sql": "{% macro array_construct(inputs=[], data_type=api.Column.translate_type('integer')) -%}\n {{ return(adapter.dispatch('array_construct', 'dbt')(inputs, data_type)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__array_construct"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.715442, "supported_languages": null}, "macro.dbt.default__array_construct": {"name": "default__array_construct", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "unique_id": "macro.dbt.default__array_construct", "macro_sql": "{% macro default__array_construct(inputs, data_type) -%}\n {% if inputs|length > 0 %}\n array[ {{ inputs|join(' , ') }} ]\n {% else %}\n array[]::{{data_type}}[]\n {% endif %}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.716084, "supported_languages": null}, "macro.dbt.array_append": {"name": "array_append", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_append.sql", "original_file_path": "macros/utils/array_append.sql", "unique_id": "macro.dbt.array_append", "macro_sql": "{% macro array_append(array, new_element) -%}\n {{ return(adapter.dispatch('array_append', 'dbt')(array, new_element)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__array_append"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.716867, "supported_languages": null}, "macro.dbt.default__array_append": {"name": "default__array_append", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_append.sql", "original_file_path": "macros/utils/array_append.sql", "unique_id": "macro.dbt.default__array_append", "macro_sql": "{% macro default__array_append(array, new_element) -%}\n array_append({{ array }}, {{ new_element }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.717441, "supported_languages": null}, "macro.dbt.create_schema": {"name": "create_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.create_schema", "macro_sql": "{% macro create_schema(relation) -%}\n {{ adapter.dispatch('create_schema', 'dbt')(relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.7184398, "supported_languages": null}, "macro.dbt.default__create_schema": {"name": "default__create_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.default__create_schema", "macro_sql": "{% macro default__create_schema(relation) -%}\n {%- call statement('create_schema') -%}\n create schema if not exists {{ relation.without_identifier() }}\n {% endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.718944, "supported_languages": null}, "macro.dbt.drop_schema": {"name": "drop_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.drop_schema", "macro_sql": "{% macro drop_schema(relation) -%}\n {{ adapter.dispatch('drop_schema', 'dbt')(relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__drop_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.719393, "supported_languages": null}, "macro.dbt.default__drop_schema": {"name": "default__drop_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.default__drop_schema", "macro_sql": "{% macro default__drop_schema(relation) -%}\n {%- call statement('drop_schema') -%}\n drop schema if exists {{ relation.without_identifier() }} cascade\n {% endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.7200031, "supported_languages": null}, "macro.dbt.current_timestamp": {"name": "current_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.current_timestamp", "macro_sql": "{%- macro current_timestamp() -%}\n {{ adapter.dispatch('current_timestamp', 'dbt')() }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.721526, "supported_languages": null}, "macro.dbt.default__current_timestamp": {"name": "default__current_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__current_timestamp", "macro_sql": "{% macro default__current_timestamp() -%}\n {{ exceptions.raise_not_implemented(\n 'current_timestamp macro not implemented for adapter ' + adapter.type()) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.7219672, "supported_languages": null}, "macro.dbt.snapshot_get_time": {"name": "snapshot_get_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.snapshot_get_time", "macro_sql": "\n\n{%- macro snapshot_get_time() -%}\n {{ adapter.dispatch('snapshot_get_time', 'dbt')() }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.722384, "supported_languages": null}, "macro.dbt.default__snapshot_get_time": {"name": "default__snapshot_get_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__snapshot_get_time", "macro_sql": "{% macro default__snapshot_get_time() %}\n {{ current_timestamp() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.722691, "supported_languages": null}, "macro.dbt.current_timestamp_backcompat": {"name": "current_timestamp_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.current_timestamp_backcompat", "macro_sql": "{% macro current_timestamp_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_backcompat', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__current_timestamp_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.723166, "supported_languages": null}, "macro.dbt.default__current_timestamp_backcompat": {"name": "default__current_timestamp_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__current_timestamp_backcompat", "macro_sql": "{% macro default__current_timestamp_backcompat() %}\n current_timestamp::timestamp\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.723416, "supported_languages": null}, "macro.dbt.current_timestamp_in_utc_backcompat": {"name": "current_timestamp_in_utc_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.current_timestamp_in_utc_backcompat", "macro_sql": "{% macro current_timestamp_in_utc_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_in_utc_backcompat', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__current_timestamp_in_utc_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.723874, "supported_languages": null}, "macro.dbt.default__current_timestamp_in_utc_backcompat": {"name": "default__current_timestamp_in_utc_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__current_timestamp_in_utc_backcompat", "macro_sql": "{% macro default__current_timestamp_in_utc_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_backcompat', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.current_timestamp_backcompat", "macro.dbt_bigquery.bigquery__current_timestamp_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.724326, "supported_languages": null}, "macro.dbt.get_create_index_sql": {"name": "get_create_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.get_create_index_sql", "macro_sql": "{% macro get_create_index_sql(relation, index_dict) -%}\n {{ return(adapter.dispatch('get_create_index_sql', 'dbt')(relation, index_dict)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.7260742, "supported_languages": null}, "macro.dbt.default__get_create_index_sql": {"name": "default__get_create_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__get_create_index_sql", "macro_sql": "{% macro default__get_create_index_sql(relation, index_dict) -%}\n {% do return(None) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.726597, "supported_languages": null}, "macro.dbt.create_indexes": {"name": "create_indexes", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.create_indexes", "macro_sql": "{% macro create_indexes(relation) -%}\n {{ adapter.dispatch('create_indexes', 'dbt')(relation) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.727139, "supported_languages": null}, "macro.dbt.default__create_indexes": {"name": "default__create_indexes", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__create_indexes", "macro_sql": "{% macro default__create_indexes(relation) -%}\n {%- set _indexes = config.get('indexes', default=[]) -%}\n\n {% for _index_dict in _indexes %}\n {% set create_index_sql = get_create_index_sql(relation, _index_dict) %}\n {% if create_index_sql %}\n {% do run_query(create_index_sql) %}\n {% endif %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_create_index_sql", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.728574, "supported_languages": null}, "macro.dbt.get_drop_index_sql": {"name": "get_drop_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.get_drop_index_sql", "macro_sql": "{% macro get_drop_index_sql(relation, index_name) -%}\n {{ adapter.dispatch('get_drop_index_sql', 'dbt')(relation, index_name) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_drop_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.729265, "supported_languages": null}, "macro.dbt.default__get_drop_index_sql": {"name": "default__get_drop_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__get_drop_index_sql", "macro_sql": "{% macro default__get_drop_index_sql(relation, index_name) -%}\n {{ exceptions.raise_compiler_error(\"`get_drop_index_sql has not been implemented for this adapter.\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.729694, "supported_languages": null}, "macro.dbt.get_show_indexes_sql": {"name": "get_show_indexes_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.get_show_indexes_sql", "macro_sql": "{% macro get_show_indexes_sql(relation) -%}\n {{ adapter.dispatch('get_show_indexes_sql', 'dbt')(relation) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_show_indexes_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.730176, "supported_languages": null}, "macro.dbt.default__get_show_indexes_sql": {"name": "default__get_show_indexes_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__get_show_indexes_sql", "macro_sql": "{% macro default__get_show_indexes_sql(relation) -%}\n {{ exceptions.raise_compiler_error(\"`get_show_indexes_sql has not been implemented for this adapter.\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.730582, "supported_languages": null}, "macro.dbt.make_intermediate_relation": {"name": "make_intermediate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.make_intermediate_relation", "macro_sql": "{% macro make_intermediate_relation(base_relation, suffix='__dbt_tmp') %}\n {{ return(adapter.dispatch('make_intermediate_relation', 'dbt')(base_relation, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__make_intermediate_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.7363358, "supported_languages": null}, "macro.dbt.default__make_intermediate_relation": {"name": "default__make_intermediate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__make_intermediate_relation", "macro_sql": "{% macro default__make_intermediate_relation(base_relation, suffix) %}\n {{ return(default__make_temp_relation(base_relation, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.7367911, "supported_languages": null}, "macro.dbt.make_temp_relation": {"name": "make_temp_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.make_temp_relation", "macro_sql": "{% macro make_temp_relation(base_relation, suffix='__dbt_tmp') %}\n {{ return(adapter.dispatch('make_temp_relation', 'dbt')(base_relation, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.7373629, "supported_languages": null}, "macro.dbt.default__make_temp_relation": {"name": "default__make_temp_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__make_temp_relation", "macro_sql": "{% macro default__make_temp_relation(base_relation, suffix) %}\n {%- set temp_identifier = base_relation.identifier ~ suffix -%}\n {%- set temp_relation = base_relation.incorporate(\n path={\"identifier\": temp_identifier}) -%}\n\n {{ return(temp_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.738143, "supported_languages": null}, "macro.dbt.make_backup_relation": {"name": "make_backup_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.make_backup_relation", "macro_sql": "{% macro make_backup_relation(base_relation, backup_relation_type, suffix='__dbt_backup') %}\n {{ return(adapter.dispatch('make_backup_relation', 'dbt')(base_relation, backup_relation_type, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__make_backup_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.738796, "supported_languages": null}, "macro.dbt.default__make_backup_relation": {"name": "default__make_backup_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__make_backup_relation", "macro_sql": "{% macro default__make_backup_relation(base_relation, backup_relation_type, suffix) %}\n {%- set backup_identifier = base_relation.identifier ~ suffix -%}\n {%- set backup_relation = base_relation.incorporate(\n path={\"identifier\": backup_identifier},\n type=backup_relation_type\n ) -%}\n {{ return(backup_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.739851, "supported_languages": null}, "macro.dbt.truncate_relation": {"name": "truncate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.truncate_relation", "macro_sql": "{% macro truncate_relation(relation) -%}\n {{ return(adapter.dispatch('truncate_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__truncate_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.740361, "supported_languages": null}, "macro.dbt.default__truncate_relation": {"name": "default__truncate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__truncate_relation", "macro_sql": "{% macro default__truncate_relation(relation) -%}\n {% call statement('truncate_relation') -%}\n truncate table {{ relation }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.740819, "supported_languages": null}, "macro.dbt.rename_relation": {"name": "rename_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.rename_relation", "macro_sql": "{% macro rename_relation(from_relation, to_relation) -%}\n {{ return(adapter.dispatch('rename_relation', 'dbt')(from_relation, to_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__rename_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.741468, "supported_languages": null}, "macro.dbt.default__rename_relation": {"name": "default__rename_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__rename_relation", "macro_sql": "{% macro default__rename_relation(from_relation, to_relation) -%}\n {% set target_name = adapter.quote_as_configured(to_relation.identifier, 'identifier') %}\n {% call statement('rename_relation') -%}\n alter table {{ from_relation }} rename to {{ target_name }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.742303, "supported_languages": null}, "macro.dbt.get_or_create_relation": {"name": "get_or_create_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.get_or_create_relation", "macro_sql": "{% macro get_or_create_relation(database, schema, identifier, type) -%}\n {{ return(adapter.dispatch('get_or_create_relation', 'dbt')(database, schema, identifier, type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_or_create_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.7433422, "supported_languages": null}, "macro.dbt.default__get_or_create_relation": {"name": "default__get_or_create_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__get_or_create_relation", "macro_sql": "{% macro default__get_or_create_relation(database, schema, identifier, type) %}\n {%- set target_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) %}\n\n {% if target_relation %}\n {% do return([true, target_relation]) %}\n {% endif %}\n\n {%- set new_relation = api.Relation.create(\n database=database,\n schema=schema,\n identifier=identifier,\n type=type\n ) -%}\n {% do return([false, new_relation]) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.744951, "supported_languages": null}, "macro.dbt.load_cached_relation": {"name": "load_cached_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.load_cached_relation", "macro_sql": "{% macro load_cached_relation(relation) %}\n {% do return(adapter.get_relation(\n database=relation.database,\n schema=relation.schema,\n identifier=relation.identifier\n )) -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.745596, "supported_languages": null}, "macro.dbt.load_relation": {"name": "load_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.load_relation", "macro_sql": "{% macro load_relation(relation) %}\n {{ return(load_cached_relation(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.7459898, "supported_languages": null}, "macro.dbt.drop_relation_if_exists": {"name": "drop_relation_if_exists", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.drop_relation_if_exists", "macro_sql": "{% macro drop_relation_if_exists(relation) %}\n {% if relation is not none %}\n {{ adapter.drop_relation(relation) }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.746516, "supported_languages": null}, "macro.dbt.collect_freshness": {"name": "collect_freshness", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "unique_id": "macro.dbt.collect_freshness", "macro_sql": "{% macro collect_freshness(source, loaded_at_field, filter) %}\n {{ return(adapter.dispatch('collect_freshness', 'dbt')(source, loaded_at_field, filter))}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.74752, "supported_languages": null}, "macro.dbt.default__collect_freshness": {"name": "default__collect_freshness", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "unique_id": "macro.dbt.default__collect_freshness", "macro_sql": "{% macro default__collect_freshness(source, loaded_at_field, filter) %}\n {% call statement('collect_freshness', fetch_result=True, auto_begin=False) -%}\n select\n max({{ loaded_at_field }}) as max_loaded_at,\n {{ current_timestamp() }} as snapshotted_at\n from {{ source }}\n {% if filter %}\n where {{ filter }}\n {% endif %}\n {% endcall %}\n {{ return(load_result('collect_freshness')) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.74865, "supported_languages": null}, "macro.dbt.validate_sql": {"name": "validate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/validate_sql.sql", "original_file_path": "macros/adapters/validate_sql.sql", "unique_id": "macro.dbt.validate_sql", "macro_sql": "{% macro validate_sql(sql) -%}\n {{ return(adapter.dispatch('validate_sql', 'dbt')(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__validate_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.7493849, "supported_languages": null}, "macro.dbt.default__validate_sql": {"name": "default__validate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/validate_sql.sql", "original_file_path": "macros/adapters/validate_sql.sql", "unique_id": "macro.dbt.default__validate_sql", "macro_sql": "{% macro default__validate_sql(sql) -%}\n {% call statement('validate_sql') -%}\n explain {{ sql }}\n {% endcall %}\n {{ return(load_result('validate_sql')) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.7500632, "supported_languages": null}, "macro.dbt.copy_grants": {"name": "copy_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.copy_grants", "macro_sql": "{% macro copy_grants() %}\n {{ return(adapter.dispatch('copy_grants', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.753576, "supported_languages": null}, "macro.dbt.default__copy_grants": {"name": "default__copy_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__copy_grants", "macro_sql": "{% macro default__copy_grants() %}\n {{ return(True) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.754018, "supported_languages": null}, "macro.dbt.support_multiple_grantees_per_dcl_statement": {"name": "support_multiple_grantees_per_dcl_statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.support_multiple_grantees_per_dcl_statement", "macro_sql": "{% macro support_multiple_grantees_per_dcl_statement() %}\n {{ return(adapter.dispatch('support_multiple_grantees_per_dcl_statement', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__support_multiple_grantees_per_dcl_statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.754574, "supported_languages": null}, "macro.dbt.default__support_multiple_grantees_per_dcl_statement": {"name": "default__support_multiple_grantees_per_dcl_statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__support_multiple_grantees_per_dcl_statement", "macro_sql": "\n\n{%- macro default__support_multiple_grantees_per_dcl_statement() -%}\n {{ return(True) }}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.755063, "supported_languages": null}, "macro.dbt.should_revoke": {"name": "should_revoke", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.should_revoke", "macro_sql": "{% macro should_revoke(existing_relation, full_refresh_mode=True) %}\n\n {% if not existing_relation %}\n {#-- The table doesn't already exist, so no grants to copy over --#}\n {{ return(False) }}\n {% elif full_refresh_mode %}\n {#-- The object is being REPLACED -- whether grants are copied over depends on the value of user config --#}\n {{ return(copy_grants()) }}\n {% else %}\n {#-- The table is being merged/upserted/inserted -- grants will be carried over --#}\n {{ return(True) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.7561028, "supported_languages": null}, "macro.dbt.get_show_grant_sql": {"name": "get_show_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_show_grant_sql", "macro_sql": "{% macro get_show_grant_sql(relation) %}\n {{ return(adapter.dispatch(\"get_show_grant_sql\", \"dbt\")(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__get_show_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.756622, "supported_languages": null}, "macro.dbt.default__get_show_grant_sql": {"name": "default__get_show_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_show_grant_sql", "macro_sql": "{% macro default__get_show_grant_sql(relation) %}\n show grants on {{ relation }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.75692, "supported_languages": null}, "macro.dbt.get_grant_sql": {"name": "get_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_grant_sql", "macro_sql": "{% macro get_grant_sql(relation, privilege, grantees) %}\n {{ return(adapter.dispatch('get_grant_sql', 'dbt')(relation, privilege, grantees)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__get_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.757532, "supported_languages": null}, "macro.dbt.default__get_grant_sql": {"name": "default__get_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_grant_sql", "macro_sql": "\n\n{%- macro default__get_grant_sql(relation, privilege, grantees) -%}\n grant {{ privilege }} on {{ relation }} to {{ grantees | join(', ') }}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.758058, "supported_languages": null}, "macro.dbt.get_revoke_sql": {"name": "get_revoke_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_revoke_sql", "macro_sql": "{% macro get_revoke_sql(relation, privilege, grantees) %}\n {{ return(adapter.dispatch('get_revoke_sql', 'dbt')(relation, privilege, grantees)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__get_revoke_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.758899, "supported_languages": null}, "macro.dbt.default__get_revoke_sql": {"name": "default__get_revoke_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_revoke_sql", "macro_sql": "\n\n{%- macro default__get_revoke_sql(relation, privilege, grantees) -%}\n revoke {{ privilege }} on {{ relation }} from {{ grantees | join(', ') }}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.759431, "supported_languages": null}, "macro.dbt.get_dcl_statement_list": {"name": "get_dcl_statement_list", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_dcl_statement_list", "macro_sql": "{% macro get_dcl_statement_list(relation, grant_config, get_dcl_macro) %}\n {{ return(adapter.dispatch('get_dcl_statement_list', 'dbt')(relation, grant_config, get_dcl_macro)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_dcl_statement_list"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.760054, "supported_languages": null}, "macro.dbt.default__get_dcl_statement_list": {"name": "default__get_dcl_statement_list", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_dcl_statement_list", "macro_sql": "\n\n{%- macro default__get_dcl_statement_list(relation, grant_config, get_dcl_macro) -%}\n {#\n -- Unpack grant_config into specific privileges and the set of users who need them granted/revoked.\n -- Depending on whether this database supports multiple grantees per statement, pass in the list of\n -- all grantees per privilege, or (if not) template one statement per privilege-grantee pair.\n -- `get_dcl_macro` will be either `get_grant_sql` or `get_revoke_sql`\n #}\n {%- set dcl_statements = [] -%}\n {%- for privilege, grantees in grant_config.items() %}\n {%- if support_multiple_grantees_per_dcl_statement() and grantees -%}\n {%- set dcl = get_dcl_macro(relation, privilege, grantees) -%}\n {%- do dcl_statements.append(dcl) -%}\n {%- else -%}\n {%- for grantee in grantees -%}\n {% set dcl = get_dcl_macro(relation, privilege, [grantee]) %}\n {%- do dcl_statements.append(dcl) -%}\n {% endfor -%}\n {%- endif -%}\n {%- endfor -%}\n {{ return(dcl_statements) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.support_multiple_grantees_per_dcl_statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.7619379, "supported_languages": null}, "macro.dbt.call_dcl_statements": {"name": "call_dcl_statements", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.call_dcl_statements", "macro_sql": "{% macro call_dcl_statements(dcl_statement_list) %}\n {{ return(adapter.dispatch(\"call_dcl_statements\", \"dbt\")(dcl_statement_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__call_dcl_statements"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.7624562, "supported_languages": null}, "macro.dbt.default__call_dcl_statements": {"name": "default__call_dcl_statements", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__call_dcl_statements", "macro_sql": "{% macro default__call_dcl_statements(dcl_statement_list) %}\n {#\n -- By default, supply all grant + revoke statements in a single semicolon-separated block,\n -- so that they're all processed together.\n\n -- Some databases do not support this. Those adapters will need to override this macro\n -- to run each statement individually.\n #}\n {% call statement('grants') %}\n {% for dcl_statement in dcl_statement_list %}\n {{ dcl_statement }};\n {% endfor %}\n {% endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.763102, "supported_languages": null}, "macro.dbt.apply_grants": {"name": "apply_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.apply_grants", "macro_sql": "{% macro apply_grants(relation, grant_config, should_revoke) %}\n {{ return(adapter.dispatch(\"apply_grants\", \"dbt\")(relation, grant_config, should_revoke)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.763707, "supported_languages": null}, "macro.dbt.default__apply_grants": {"name": "default__apply_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__apply_grants", "macro_sql": "{% macro default__apply_grants(relation, grant_config, should_revoke=True) %}\n {#-- If grant_config is {} or None, this is a no-op --#}\n {% if grant_config %}\n {% if should_revoke %}\n {#-- We think previous grants may have carried over --#}\n {#-- Show current grants and calculate diffs --#}\n {% set current_grants_table = run_query(get_show_grant_sql(relation)) %}\n {% set current_grants_dict = adapter.standardize_grants_dict(current_grants_table) %}\n {% set needs_granting = diff_of_two_dicts(grant_config, current_grants_dict) %}\n {% set needs_revoking = diff_of_two_dicts(current_grants_dict, grant_config) %}\n {% if not (needs_granting or needs_revoking) %}\n {{ log('On ' ~ relation ~': All grants are in place, no revocation or granting needed.')}}\n {% endif %}\n {% else %}\n {#-- We don't think there's any chance of previous grants having carried over. --#}\n {#-- Jump straight to granting what the user has configured. --#}\n {% set needs_revoking = {} %}\n {% set needs_granting = grant_config %}\n {% endif %}\n {% if needs_granting or needs_revoking %}\n {% set revoke_statement_list = get_dcl_statement_list(relation, needs_revoking, get_revoke_sql) %}\n {% set grant_statement_list = get_dcl_statement_list(relation, needs_granting, get_grant_sql) %}\n {% set dcl_statement_list = revoke_statement_list + grant_statement_list %}\n {% if dcl_statement_list %}\n {{ call_dcl_statements(dcl_statement_list) }}\n {% endif %}\n {% endif %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.get_show_grant_sql", "macro.dbt.get_dcl_statement_list", "macro.dbt.call_dcl_statements"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.7673202, "supported_languages": null}, "macro.dbt.alter_column_comment": {"name": "alter_column_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.alter_column_comment", "macro_sql": "{% macro alter_column_comment(relation, column_dict) -%}\n {{ return(adapter.dispatch('alter_column_comment', 'dbt')(relation, column_dict)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.768793, "supported_languages": null}, "macro.dbt.default__alter_column_comment": {"name": "default__alter_column_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.default__alter_column_comment", "macro_sql": "{% macro default__alter_column_comment(relation, column_dict) -%}\n {{ exceptions.raise_not_implemented(\n 'alter_column_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.769263, "supported_languages": null}, "macro.dbt.alter_relation_comment": {"name": "alter_relation_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.alter_relation_comment", "macro_sql": "{% macro alter_relation_comment(relation, relation_comment) -%}\n {{ return(adapter.dispatch('alter_relation_comment', 'dbt')(relation, relation_comment)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__alter_relation_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.7698078, "supported_languages": null}, "macro.dbt.default__alter_relation_comment": {"name": "default__alter_relation_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.default__alter_relation_comment", "macro_sql": "{% macro default__alter_relation_comment(relation, relation_comment) -%}\n {{ exceptions.raise_not_implemented(\n 'alter_relation_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.7702641, "supported_languages": null}, "macro.dbt.persist_docs": {"name": "persist_docs", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.persist_docs", "macro_sql": "{% macro persist_docs(relation, model, for_relation=true, for_columns=true) -%}\n {{ return(adapter.dispatch('persist_docs', 'dbt')(relation, model, for_relation, for_columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.7709792, "supported_languages": null}, "macro.dbt.default__persist_docs": {"name": "default__persist_docs", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.default__persist_docs", "macro_sql": "{% macro default__persist_docs(relation, model, for_relation, for_columns) -%}\n {% if for_relation and config.persist_relation_docs() and model.description %}\n {% do run_query(alter_relation_comment(relation, model.description)) %}\n {% endif %}\n\n {% if for_columns and config.persist_column_docs() and model.columns %}\n {% do run_query(alter_column_comment(relation, model.columns)) %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.alter_relation_comment", "macro.dbt.alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.772276, "supported_languages": null}, "macro.dbt.get_catalog": {"name": "get_catalog", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_catalog", "macro_sql": "{% macro get_catalog(information_schema, schemas) -%}\n {{ return(adapter.dispatch('get_catalog', 'dbt')(information_schema, schemas)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__get_catalog"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.775106, "supported_languages": null}, "macro.dbt.default__get_catalog": {"name": "default__get_catalog", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_catalog", "macro_sql": "{% macro default__get_catalog(information_schema, schemas) -%}\n\n {% set typename = adapter.type() %}\n {% set msg -%}\n get_catalog not implemented for {{ typename }}\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.775959, "supported_languages": null}, "macro.dbt.information_schema_name": {"name": "information_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.information_schema_name", "macro_sql": "{% macro information_schema_name(database) %}\n {{ return(adapter.dispatch('information_schema_name', 'dbt')(database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__information_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.776505, "supported_languages": null}, "macro.dbt.default__information_schema_name": {"name": "default__information_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__information_schema_name", "macro_sql": "{% macro default__information_schema_name(database) -%}\n {%- if database -%}\n {{ database }}.INFORMATION_SCHEMA\n {%- else -%}\n INFORMATION_SCHEMA\n {%- endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.776952, "supported_languages": null}, "macro.dbt.list_schemas": {"name": "list_schemas", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.list_schemas", "macro_sql": "{% macro list_schemas(database) -%}\n {{ return(adapter.dispatch('list_schemas', 'dbt')(database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__list_schemas"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.777647, "supported_languages": null}, "macro.dbt.default__list_schemas": {"name": "default__list_schemas", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__list_schemas", "macro_sql": "{% macro default__list_schemas(database) -%}\n {% set sql %}\n select distinct schema_name\n from {{ information_schema_name(database) }}.SCHEMATA\n where catalog_name ilike '{{ database }}'\n {% endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.information_schema_name", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.7783859, "supported_languages": null}, "macro.dbt.check_schema_exists": {"name": "check_schema_exists", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.check_schema_exists", "macro_sql": "{% macro check_schema_exists(information_schema, schema) -%}\n {{ return(adapter.dispatch('check_schema_exists', 'dbt')(information_schema, schema)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__check_schema_exists"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.7789462, "supported_languages": null}, "macro.dbt.default__check_schema_exists": {"name": "default__check_schema_exists", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__check_schema_exists", "macro_sql": "{% macro default__check_schema_exists(information_schema, schema) -%}\n {% set sql -%}\n select count(*)\n from {{ information_schema.replace(information_schema_view='SCHEMATA') }}\n where catalog_name='{{ information_schema.database }}'\n and schema_name='{{ schema }}'\n {%- endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.replace", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.779779, "supported_languages": null}, "macro.dbt.list_relations_without_caching": {"name": "list_relations_without_caching", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.list_relations_without_caching", "macro_sql": "{% macro list_relations_without_caching(schema_relation) %}\n {{ return(adapter.dispatch('list_relations_without_caching', 'dbt')(schema_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__list_relations_without_caching"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.7803688, "supported_languages": null}, "macro.dbt.default__list_relations_without_caching": {"name": "default__list_relations_without_caching", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__list_relations_without_caching", "macro_sql": "{% macro default__list_relations_without_caching(schema_relation) %}\n {{ exceptions.raise_not_implemented(\n 'list_relations_without_caching macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.781009, "supported_languages": null}, "macro.dbt.drop_relation": {"name": "drop_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/drop_relation.sql", "original_file_path": "macros/adapters/drop_relation.sql", "unique_id": "macro.dbt.drop_relation", "macro_sql": "{% macro drop_relation(relation) -%}\n {{ return(adapter.dispatch('drop_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__drop_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.782818, "supported_languages": null}, "macro.dbt.default__drop_relation": {"name": "default__drop_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/drop_relation.sql", "original_file_path": "macros/adapters/drop_relation.sql", "unique_id": "macro.dbt.default__drop_relation", "macro_sql": "{% macro default__drop_relation(relation) -%}\n {% call statement('drop_relation', auto_begin=False) -%}\n {%- if relation.is_table -%}\n {{- drop_table(relation) -}}\n {%- elif relation.is_view -%}\n {{- drop_view(relation) -}}\n {%- elif relation.is_materialized_view -%}\n {{- drop_materialized_view(relation) -}}\n {%- else -%}\n drop {{ relation.type }} if exists {{ relation }} cascade\n {%- endif -%}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.drop_table", "macro.dbt.drop_view", "macro.dbt.drop_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.784, "supported_languages": null}, "macro.dbt.drop_table": {"name": "drop_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/drop_relation.sql", "original_file_path": "macros/adapters/drop_relation.sql", "unique_id": "macro.dbt.drop_table", "macro_sql": "{% macro drop_table(relation) -%}\n {{ return(adapter.dispatch('drop_table', 'dbt')(relation)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__drop_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.7844858, "supported_languages": null}, "macro.dbt.default__drop_table": {"name": "default__drop_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/drop_relation.sql", "original_file_path": "macros/adapters/drop_relation.sql", "unique_id": "macro.dbt.default__drop_table", "macro_sql": "{% macro default__drop_table(relation) -%}\n drop table if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.7847738, "supported_languages": null}, "macro.dbt.drop_view": {"name": "drop_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/drop_relation.sql", "original_file_path": "macros/adapters/drop_relation.sql", "unique_id": "macro.dbt.drop_view", "macro_sql": "{% macro drop_view(relation) -%}\n {{ return(adapter.dispatch('drop_view', 'dbt')(relation)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__drop_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.785244, "supported_languages": null}, "macro.dbt.default__drop_view": {"name": "default__drop_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/drop_relation.sql", "original_file_path": "macros/adapters/drop_relation.sql", "unique_id": "macro.dbt.default__drop_view", "macro_sql": "{% macro default__drop_view(relation) -%}\n drop view if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.7855308, "supported_languages": null}, "macro.dbt.drop_materialized_view": {"name": "drop_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/drop_relation.sql", "original_file_path": "macros/adapters/drop_relation.sql", "unique_id": "macro.dbt.drop_materialized_view", "macro_sql": "{% macro drop_materialized_view(relation) -%}\n {{ return(adapter.dispatch('drop_materialized_view', 'dbt')(relation)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__drop_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.7860081, "supported_languages": null}, "macro.dbt.default__drop_materialized_view": {"name": "default__drop_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/drop_relation.sql", "original_file_path": "macros/adapters/drop_relation.sql", "unique_id": "macro.dbt.default__drop_materialized_view", "macro_sql": "{% macro default__drop_materialized_view(relation) -%}\n drop materialized view if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.7862961, "supported_languages": null}, "macro.dbt.get_columns_in_relation": {"name": "get_columns_in_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_columns_in_relation", "macro_sql": "{% macro get_columns_in_relation(relation) -%}\n {{ return(adapter.dispatch('get_columns_in_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__get_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.790787, "supported_languages": null}, "macro.dbt.default__get_columns_in_relation": {"name": "default__get_columns_in_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_columns_in_relation", "macro_sql": "{% macro default__get_columns_in_relation(relation) -%}\n {{ exceptions.raise_not_implemented(\n 'get_columns_in_relation macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.791303, "supported_languages": null}, "macro.dbt.sql_convert_columns_in_relation": {"name": "sql_convert_columns_in_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.sql_convert_columns_in_relation", "macro_sql": "{% macro sql_convert_columns_in_relation(table) -%}\n {% set columns = [] %}\n {% for row in table %}\n {% do columns.append(api.Column(*row)) %}\n {% endfor %}\n {{ return(columns) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.792523, "supported_languages": null}, "macro.dbt.get_empty_subquery_sql": {"name": "get_empty_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_empty_subquery_sql", "macro_sql": "{% macro get_empty_subquery_sql(select_sql, select_sql_header=none) -%}\n {{ return(adapter.dispatch('get_empty_subquery_sql', 'dbt')(select_sql, select_sql_header)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_empty_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.793239, "supported_languages": null}, "macro.dbt.default__get_empty_subquery_sql": {"name": "default__get_empty_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_empty_subquery_sql", "macro_sql": "{% macro default__get_empty_subquery_sql(select_sql, select_sql_header=none) %}\n {%- if select_sql_header is not none -%}\n {{ select_sql_header }}\n {%- endif -%}\n select * from (\n {{ select_sql }}\n ) as __dbt_sbq\n where false\n limit 0\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.7938938, "supported_languages": null}, "macro.dbt.get_empty_schema_sql": {"name": "get_empty_schema_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_empty_schema_sql", "macro_sql": "{% macro get_empty_schema_sql(columns) -%}\n {{ return(adapter.dispatch('get_empty_schema_sql', 'dbt')(columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__get_empty_schema_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.794473, "supported_languages": null}, "macro.dbt.default__get_empty_schema_sql": {"name": "default__get_empty_schema_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_empty_schema_sql", "macro_sql": "{% macro default__get_empty_schema_sql(columns) %}\n {%- set col_err = [] -%}\n select\n {% for i in columns %}\n {%- set col = columns[i] -%}\n {%- if col['data_type'] is not defined -%}\n {{ col_err.append(col['name']) }}\n {%- endif -%}\n {% set col_name = adapter.quote(col['name']) if col.get('quote') else col['name'] %}\n cast(null as {{ col['data_type'] }}) as {{ col_name }}{{ \", \" if not loop.last }}\n {%- endfor -%}\n {%- if (col_err | length) > 0 -%}\n {{ exceptions.column_type_missing(column_names=col_err) }}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.796848, "supported_languages": null}, "macro.dbt.get_column_schema_from_query": {"name": "get_column_schema_from_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_column_schema_from_query", "macro_sql": "{% macro get_column_schema_from_query(select_sql, select_sql_header=none) -%}\n {% set columns = [] %}\n {# -- Using an 'empty subquery' here to get the same schema as the given select_sql statement, without necessitating a data scan.#}\n {% set sql = get_empty_subquery_sql(select_sql, select_sql_header) %}\n {% set column_schema = adapter.get_column_schema_from_query(sql) %}\n {{ return(column_schema) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_empty_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.7979121, "supported_languages": null}, "macro.dbt.get_columns_in_query": {"name": "get_columns_in_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_columns_in_query", "macro_sql": "{% macro get_columns_in_query(select_sql) -%}\n {{ return(adapter.dispatch('get_columns_in_query', 'dbt')(select_sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.798605, "supported_languages": null}, "macro.dbt.default__get_columns_in_query": {"name": "default__get_columns_in_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_columns_in_query", "macro_sql": "{% macro default__get_columns_in_query(select_sql) %}\n {% call statement('get_columns_in_query', fetch_result=True, auto_begin=False) -%}\n {{ get_empty_subquery_sql(select_sql) }}\n {% endcall %}\n {{ return(load_result('get_columns_in_query').table.columns | map(attribute='name') | list) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.get_empty_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.79993, "supported_languages": null}, "macro.dbt.alter_column_type": {"name": "alter_column_type", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.alter_column_type", "macro_sql": "{% macro alter_column_type(relation, column_name, new_column_type) -%}\n {{ return(adapter.dispatch('alter_column_type', 'dbt')(relation, column_name, new_column_type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.800854, "supported_languages": null}, "macro.dbt.default__alter_column_type": {"name": "default__alter_column_type", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__alter_column_type", "macro_sql": "{% macro default__alter_column_type(relation, column_name, new_column_type) -%}\n {#\n 1. Create a new column (w/ temp name and correct type)\n 2. Copy data over to it\n 3. Drop the existing column (cascade!)\n 4. Rename the new column to existing column\n #}\n {%- set tmp_column = column_name + \"__dbt_alter\" -%}\n\n {% call statement('alter_column_type') %}\n alter table {{ relation }} add column {{ adapter.quote(tmp_column) }} {{ new_column_type }};\n update {{ relation }} set {{ adapter.quote(tmp_column) }} = {{ adapter.quote(column_name) }};\n alter table {{ relation }} drop column {{ adapter.quote(column_name) }} cascade;\n alter table {{ relation }} rename column {{ adapter.quote(tmp_column) }} to {{ adapter.quote(column_name) }}\n {% endcall %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.802711, "supported_languages": null}, "macro.dbt.alter_relation_add_remove_columns": {"name": "alter_relation_add_remove_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.alter_relation_add_remove_columns", "macro_sql": "{% macro alter_relation_add_remove_columns(relation, add_columns = none, remove_columns = none) -%}\n {{ return(adapter.dispatch('alter_relation_add_remove_columns', 'dbt')(relation, add_columns, remove_columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__alter_relation_add_remove_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.8035278, "supported_languages": null}, "macro.dbt.default__alter_relation_add_remove_columns": {"name": "default__alter_relation_add_remove_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__alter_relation_add_remove_columns", "macro_sql": "{% macro default__alter_relation_add_remove_columns(relation, add_columns, remove_columns) %}\n\n {% if add_columns is none %}\n {% set add_columns = [] %}\n {% endif %}\n {% if remove_columns is none %}\n {% set remove_columns = [] %}\n {% endif %}\n\n {% set sql -%}\n\n alter {{ relation.type }} {{ relation }}\n\n {% for column in add_columns %}\n add column {{ column.name }} {{ column.data_type }}{{ ',' if not loop.last }}\n {% endfor %}{{ ',' if add_columns and remove_columns }}\n\n {% for column in remove_columns %}\n drop column {{ column.name }}{{ ',' if not loop.last }}\n {% endfor %}\n\n {%- endset -%}\n\n {% do run_query(sql) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.806015, "supported_languages": null}, "macro.dbt.resolve_model_name": {"name": "resolve_model_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.resolve_model_name", "macro_sql": "{% macro resolve_model_name(input_model_name) %}\n {{ return(adapter.dispatch('resolve_model_name', 'dbt')(input_model_name)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__resolve_model_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.8099608, "supported_languages": null}, "macro.dbt.default__resolve_model_name": {"name": "default__resolve_model_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.default__resolve_model_name", "macro_sql": "\n\n{%- macro default__resolve_model_name(input_model_name) -%}\n {{ input_model_name | string | replace('\"', '\\\"') }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.8104792, "supported_languages": null}, "macro.dbt.build_ref_function": {"name": "build_ref_function", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.build_ref_function", "macro_sql": "{% macro build_ref_function(model) %}\n\n {%- set ref_dict = {} -%}\n {%- for _ref in model.refs -%}\n {% set _ref_args = [_ref.get('package'), _ref['name']] if _ref.get('package') else [_ref['name'],] %}\n {%- set resolved = ref(*_ref_args, v=_ref.get('version')) -%}\n {%- if _ref.get('version') -%}\n {% do _ref_args.extend([\"v\" ~ _ref['version']]) %}\n {%- endif -%}\n {%- do ref_dict.update({_ref_args | join('.'): resolve_model_name(resolved)}) -%}\n {%- endfor -%}\n\ndef ref(*args, **kwargs):\n refs = {{ ref_dict | tojson }}\n key = '.'.join(args)\n version = kwargs.get(\"v\") or kwargs.get(\"version\")\n if version:\n key += f\".v{version}\"\n dbt_load_df_function = kwargs.get(\"dbt_load_df_function\")\n return dbt_load_df_function(refs[key])\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.resolve_model_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.8129668, "supported_languages": null}, "macro.dbt.build_source_function": {"name": "build_source_function", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.build_source_function", "macro_sql": "{% macro build_source_function(model) %}\n\n {%- set source_dict = {} -%}\n {%- for _source in model.sources -%}\n {%- set resolved = source(*_source) -%}\n {%- do source_dict.update({_source | join('.'): resolve_model_name(resolved)}) -%}\n {%- endfor -%}\n\ndef source(*args, dbt_load_df_function):\n sources = {{ source_dict | tojson }}\n key = '.'.join(args)\n return dbt_load_df_function(sources[key])\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.resolve_model_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.814306, "supported_languages": null}, "macro.dbt.build_config_dict": {"name": "build_config_dict", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.build_config_dict", "macro_sql": "{% macro build_config_dict(model) %}\n {%- set config_dict = {} -%}\n {% set config_dbt_used = zip(model.config.config_keys_used, model.config.config_keys_defaults) | list %}\n {%- for key, default in config_dbt_used -%}\n {# weird type testing with enum, would be much easier to write this logic in Python! #}\n {%- if key == \"language\" -%}\n {%- set value = \"python\" -%}\n {%- endif -%}\n {%- set value = model.config.get(key, default) -%}\n {%- do config_dict.update({key: value}) -%}\n {%- endfor -%}\nconfig_dict = {{ config_dict }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.816164, "supported_languages": null}, "macro.dbt.py_script_postfix": {"name": "py_script_postfix", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.py_script_postfix", "macro_sql": "{% macro py_script_postfix(model) %}\n# This part is user provided model code\n# you will need to copy the next section to run the code\n# COMMAND ----------\n# this part is dbt logic for get ref work, do not modify\n\n{{ build_ref_function(model ) }}\n{{ build_source_function(model ) }}\n{{ build_config_dict(model) }}\n\nclass config:\n def __init__(self, *args, **kwargs):\n pass\n\n @staticmethod\n def get(key, default=None):\n return config_dict.get(key, default)\n\nclass this:\n \"\"\"dbt.this() or dbt.this.identifier\"\"\"\n database = \"{{ this.database }}\"\n schema = \"{{ this.schema }}\"\n identifier = \"{{ this.identifier }}\"\n {% set this_relation_name = resolve_model_name(this) %}\n def __repr__(self):\n return '{{ this_relation_name }}'\n\n\nclass dbtObj:\n def __init__(self, load_df_function) -> None:\n self.source = lambda *args: source(*args, dbt_load_df_function=load_df_function)\n self.ref = lambda *args, **kwargs: ref(*args, **kwargs, dbt_load_df_function=load_df_function)\n self.config = config\n self.this = this()\n self.is_incremental = {{ is_incremental() }}\n\n# COMMAND ----------\n{{py_script_comment()}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.build_ref_function", "macro.dbt.build_source_function", "macro.dbt.build_config_dict", "macro.dbt.resolve_model_name", "macro.dbt.is_incremental", "macro.dbt.py_script_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.8176188, "supported_languages": null}, "macro.dbt.py_script_comment": {"name": "py_script_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.py_script_comment", "macro_sql": "{%macro py_script_comment()%}\n{%endmacro%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.817877, "supported_languages": null}, "macro.dbt.test_unique": {"name": "test_unique", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_unique", "macro_sql": "{% test unique(model, column_name) %}\n {% set macro = adapter.dispatch('test_unique', 'dbt') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__test_unique"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.819264, "supported_languages": null}, "macro.dbt.test_not_null": {"name": "test_not_null", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_not_null", "macro_sql": "{% test not_null(model, column_name) %}\n {% set macro = adapter.dispatch('test_not_null', 'dbt') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_not_null"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.8200068, "supported_languages": null}, "macro.dbt.test_accepted_values": {"name": "test_accepted_values", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_accepted_values", "macro_sql": "{% test accepted_values(model, column_name, values, quote=True) %}\n {% set macro = adapter.dispatch('test_accepted_values', 'dbt') %}\n {{ macro(model, column_name, values, quote) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.8210602, "supported_languages": null}, "macro.dbt.test_relationships": {"name": "test_relationships", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_relationships", "macro_sql": "{% test relationships(model, column_name, to, field) %}\n {% set macro = adapter.dispatch('test_relationships', 'dbt') %}\n {{ macro(model, column_name, to, field) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_relationships"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.822228, "supported_languages": null}, "macro.dbt_utils.get_url_host": {"name": "get_url_host", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "unique_id": "macro.dbt_utils.get_url_host", "macro_sql": "{% macro get_url_host(field) -%}\n {{ return(adapter.dispatch('get_url_host', 'dbt_utils')(field)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_url_host"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.823586, "supported_languages": null}, "macro.dbt_utils.default__get_url_host": {"name": "default__get_url_host", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "unique_id": "macro.dbt_utils.default__get_url_host", "macro_sql": "{% macro default__get_url_host(field) -%}\n\n{%- set parsed =\n dbt.split_part(\n dbt.split_part(\n dbt.replace(\n dbt.replace(\n dbt.replace(field, \"'android-app://'\", \"''\"\n ), \"'http://'\", \"''\"\n ), \"'https://'\", \"''\"\n ), \"'/'\", 1\n ), \"'?'\", 1\n )\n\n-%}\n\n\n {{ dbt.safe_cast(\n parsed,\n dbt.type_string()\n )}}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.split_part", "macro.dbt.replace", "macro.dbt.safe_cast", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.825081, "supported_languages": null}, "macro.dbt_utils.get_url_path": {"name": "get_url_path", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "unique_id": "macro.dbt_utils.get_url_path", "macro_sql": "{% macro get_url_path(field) -%}\n {{ return(adapter.dispatch('get_url_path', 'dbt_utils')(field)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_url_path"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.826355, "supported_languages": null}, "macro.dbt_utils.default__get_url_path": {"name": "default__get_url_path", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "unique_id": "macro.dbt_utils.default__get_url_path", "macro_sql": "{% macro default__get_url_path(field) -%}\n\n {%- set stripped_url =\n dbt.replace(\n dbt.replace(field, \"'http://'\", \"''\"), \"'https://'\", \"''\")\n -%}\n\n {%- set first_slash_pos -%}\n coalesce(\n nullif({{ dbt.position(\"'/'\", stripped_url) }}, 0),\n {{ dbt.position(\"'?'\", stripped_url) }} - 1\n )\n {%- endset -%}\n\n {%- set parsed_path =\n dbt.split_part(\n dbt.right(\n stripped_url,\n dbt.length(stripped_url) ~ \"-\" ~ first_slash_pos\n ),\n \"'?'\", 1\n )\n -%}\n\n {{ dbt.safe_cast(\n parsed_path,\n dbt.type_string()\n )}}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.replace", "macro.dbt.position", "macro.dbt.split_part", "macro.dbt.right", "macro.dbt.length", "macro.dbt.safe_cast", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.8283432, "supported_languages": null}, "macro.dbt_utils.get_url_parameter": {"name": "get_url_parameter", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "unique_id": "macro.dbt_utils.get_url_parameter", "macro_sql": "{% macro get_url_parameter(field, url_parameter) -%}\n {{ return(adapter.dispatch('get_url_parameter', 'dbt_utils')(field, url_parameter)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.8292658, "supported_languages": null}, "macro.dbt_utils.default__get_url_parameter": {"name": "default__get_url_parameter", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "unique_id": "macro.dbt_utils.default__get_url_parameter", "macro_sql": "{% macro default__get_url_parameter(field, url_parameter) -%}\n\n{%- set formatted_url_parameter = \"'\" + url_parameter + \"='\" -%}\n\n{%- set split = dbt.split_part(dbt.split_part(field, formatted_url_parameter, 2), \"'&'\", 1) -%}\n\nnullif({{ split }},'')\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.830254, "supported_languages": null}, "macro.dbt_utils.test_fewer_rows_than": {"name": "test_fewer_rows_than", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/fewer_rows_than.sql", "original_file_path": "macros/generic_tests/fewer_rows_than.sql", "unique_id": "macro.dbt_utils.test_fewer_rows_than", "macro_sql": "{% test fewer_rows_than(model, compare_model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_fewer_rows_than', 'dbt_utils')(model, compare_model, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_fewer_rows_than"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.8330722, "supported_languages": null}, "macro.dbt_utils.default__test_fewer_rows_than": {"name": "default__test_fewer_rows_than", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/fewer_rows_than.sql", "original_file_path": "macros/generic_tests/fewer_rows_than.sql", "unique_id": "macro.dbt_utils.default__test_fewer_rows_than", "macro_sql": "{% macro default__test_fewer_rows_than(model, compare_model, group_by_columns) %}\n\n{{ config(fail_calc = 'sum(coalesce(row_count_delta, 0))') }}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set join_gb_cols %}\n {% for c in group_by_columns %}\n and a.{{c}} = b.{{c}}\n {% endfor %}\n {% endset %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n{#-- We must add a fake join key in case additional grouping variables are not provided --#}\n{#-- Redshift does not allow for dynamically created join conditions (e.g. full join on 1 = 1 --#}\n{#-- The same logic is used in equal_rowcount. In case of changes, maintain consistent logic --#}\n{% set group_by_columns = ['id_dbtutils_test_fewer_rows_than'] + group_by_columns %}\n{% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n\n\nwith a as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_fewer_rows_than,\n count(*) as count_our_model \n from {{ model }}\n {{ groupby_gb_cols }}\n\n),\nb as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_fewer_rows_than,\n count(*) as count_comparison_model \n from {{ compare_model }}\n {{ groupby_gb_cols }}\n\n),\ncounts as (\n\n select\n\n {% for c in group_by_columns -%}\n a.{{c}} as {{c}}_a,\n b.{{c}} as {{c}}_b,\n {% endfor %}\n\n count_our_model,\n count_comparison_model\n from a\n full join b on \n a.id_dbtutils_test_fewer_rows_than = b.id_dbtutils_test_fewer_rows_than\n {{ join_gb_cols }}\n\n),\nfinal as (\n\n select *,\n case\n -- fail the test if we have more rows than the reference model and return the row count delta\n when count_our_model > count_comparison_model then (count_our_model - count_comparison_model)\n -- fail the test if they are the same number\n when count_our_model = count_comparison_model then 1\n -- pass the test if the delta is positive (i.e. return the number 0)\n else 0\n end as row_count_delta\n from counts\n\n)\n\nselect * from final\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.836493, "supported_languages": null}, "macro.dbt_utils.test_equal_rowcount": {"name": "test_equal_rowcount", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equal_rowcount.sql", "original_file_path": "macros/generic_tests/equal_rowcount.sql", "unique_id": "macro.dbt_utils.test_equal_rowcount", "macro_sql": "{% test equal_rowcount(model, compare_model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_equal_rowcount', 'dbt_utils')(model, compare_model, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_equal_rowcount"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.838624, "supported_languages": null}, "macro.dbt_utils.default__test_equal_rowcount": {"name": "default__test_equal_rowcount", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equal_rowcount.sql", "original_file_path": "macros/generic_tests/equal_rowcount.sql", "unique_id": "macro.dbt_utils.default__test_equal_rowcount", "macro_sql": "{% macro default__test_equal_rowcount(model, compare_model, group_by_columns) %}\n\n{#-- Needs to be set at parse time, before we return '' below --#}\n{{ config(fail_calc = 'sum(coalesce(diff_count, 0))') }}\n\n{#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n{%- if not execute -%}\n {{ return('') }}\n{% endif %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(', ') + ', ' %}\n {% set join_gb_cols %}\n {% for c in group_by_columns %}\n and a.{{c}} = b.{{c}}\n {% endfor %}\n {% endset %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n{#-- We must add a fake join key in case additional grouping variables are not provided --#}\n{#-- Redshift does not allow for dynamically created join conditions (e.g. full join on 1 = 1 --#}\n{#-- The same logic is used in fewer_rows_than. In case of changes, maintain consistent logic --#}\n{% set group_by_columns = ['id_dbtutils_test_equal_rowcount'] + group_by_columns %}\n{% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n\nwith a as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_a \n from {{ model }}\n {{groupby_gb_cols}}\n\n\n),\nb as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_b \n from {{ compare_model }}\n {{groupby_gb_cols}}\n\n),\nfinal as (\n\n select\n \n {% for c in group_by_columns -%}\n a.{{c}} as {{c}}_a,\n b.{{c}} as {{c}}_b,\n {% endfor %}\n\n count_a,\n count_b,\n abs(count_a - count_b) as diff_count\n\n from a\n full join b\n on\n a.id_dbtutils_test_equal_rowcount = b.id_dbtutils_test_equal_rowcount\n {{join_gb_cols}}\n\n\n)\n\nselect * from final\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.842271, "supported_languages": null}, "macro.dbt_utils.test_relationships_where": {"name": "test_relationships_where", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/relationships_where.sql", "original_file_path": "macros/generic_tests/relationships_where.sql", "unique_id": "macro.dbt_utils.test_relationships_where", "macro_sql": "{% test relationships_where(model, column_name, to, field, from_condition=\"1=1\", to_condition=\"1=1\") %}\n {{ return(adapter.dispatch('test_relationships_where', 'dbt_utils')(model, column_name, to, field, from_condition, to_condition)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_relationships_where"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.843991, "supported_languages": null}, "macro.dbt_utils.default__test_relationships_where": {"name": "default__test_relationships_where", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/relationships_where.sql", "original_file_path": "macros/generic_tests/relationships_where.sql", "unique_id": "macro.dbt_utils.default__test_relationships_where", "macro_sql": "{% macro default__test_relationships_where(model, column_name, to, field, from_condition=\"1=1\", to_condition=\"1=1\") %}\n\n{# T-SQL has no boolean data type so we use 1=1 which returns TRUE #}\n{# ref https://stackoverflow.com/a/7170753/3842610 #}\n\nwith left_table as (\n\n select\n {{column_name}} as id\n\n from {{model}}\n\n where {{column_name}} is not null\n and {{from_condition}}\n\n),\n\nright_table as (\n\n select\n {{field}} as id\n\n from {{to}}\n\n where {{field}} is not null\n and {{to_condition}}\n\n),\n\nexceptions as (\n\n select\n left_table.id,\n right_table.id as right_id\n\n from left_table\n\n left join right_table\n on left_table.id = right_table.id\n\n where right_table.id is null\n\n)\n\nselect * from exceptions\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.845136, "supported_languages": null}, "macro.dbt_utils.test_recency": {"name": "test_recency", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/recency.sql", "original_file_path": "macros/generic_tests/recency.sql", "unique_id": "macro.dbt_utils.test_recency", "macro_sql": "{% test recency(model, field, datepart, interval, ignore_time_component=False, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_recency', 'dbt_utils')(model, field, datepart, interval, ignore_time_component, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_recency"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.847022, "supported_languages": null}, "macro.dbt_utils.default__test_recency": {"name": "default__test_recency", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/recency.sql", "original_file_path": "macros/generic_tests/recency.sql", "unique_id": "macro.dbt_utils.default__test_recency", "macro_sql": "{% macro default__test_recency(model, field, datepart, interval, ignore_time_component, group_by_columns) %}\n\n{% set threshold = 'cast(' ~ dbt.dateadd(datepart, interval * -1, dbt.current_timestamp()) ~ ' as ' ~ ('date' if ignore_time_component else dbt.type_timestamp()) ~ ')' %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n\nwith recency as (\n\n select \n\n {{ select_gb_cols }}\n {% if ignore_time_component %}\n cast(max({{ field }}) as date) as most_recent\n {%- else %}\n max({{ field }}) as most_recent\n {%- endif %}\n\n from {{ model }}\n\n {{ groupby_gb_cols }}\n\n)\n\nselect\n\n {{ select_gb_cols }}\n most_recent,\n {{ threshold }} as threshold\n\nfrom recency\nwhere most_recent < {{ threshold }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.current_timestamp", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.8495739, "supported_languages": null}, "macro.dbt_utils.test_not_constant": {"name": "test_not_constant", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_constant.sql", "original_file_path": "macros/generic_tests/not_constant.sql", "unique_id": "macro.dbt_utils.test_not_constant", "macro_sql": "{% test not_constant(model, column_name, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_not_constant', 'dbt_utils')(model, column_name, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_constant"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.850819, "supported_languages": null}, "macro.dbt_utils.default__test_not_constant": {"name": "default__test_not_constant", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_constant.sql", "original_file_path": "macros/generic_tests/not_constant.sql", "unique_id": "macro.dbt_utils.default__test_not_constant", "macro_sql": "{% macro default__test_not_constant(model, column_name, group_by_columns) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n\nselect\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n {{select_gb_cols}}\n count(distinct {{ column_name }}) as filler_column\n\nfrom {{ model }}\n\n {{groupby_gb_cols}}\n\nhaving count(distinct {{ column_name }}) = 1\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.852245, "supported_languages": null}, "macro.dbt_utils.test_accepted_range": {"name": "test_accepted_range", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/accepted_range.sql", "original_file_path": "macros/generic_tests/accepted_range.sql", "unique_id": "macro.dbt_utils.test_accepted_range", "macro_sql": "{% test accepted_range(model, column_name, min_value=none, max_value=none, inclusive=true) %}\n {{ return(adapter.dispatch('test_accepted_range', 'dbt_utils')(model, column_name, min_value, max_value, inclusive)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_accepted_range"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.853848, "supported_languages": null}, "macro.dbt_utils.default__test_accepted_range": {"name": "default__test_accepted_range", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/accepted_range.sql", "original_file_path": "macros/generic_tests/accepted_range.sql", "unique_id": "macro.dbt_utils.default__test_accepted_range", "macro_sql": "{% macro default__test_accepted_range(model, column_name, min_value=none, max_value=none, inclusive=true) %}\n\nwith meet_condition as(\n select *\n from {{ model }}\n),\n\nvalidation_errors as (\n select *\n from meet_condition\n where\n -- never true, defaults to an empty result set. Exists to ensure any combo of the `or` clauses below succeeds\n 1 = 2\n\n {%- if min_value is not none %}\n -- records with a value >= min_value are permitted. The `not` flips this to find records that don't meet the rule.\n or not {{ column_name }} > {{- \"=\" if inclusive }} {{ min_value }}\n {%- endif %}\n\n {%- if max_value is not none %}\n -- records with a value <= max_value are permitted. The `not` flips this to find records that don't meet the rule.\n or not {{ column_name }} < {{- \"=\" if inclusive }} {{ max_value }}\n {%- endif %}\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.855305, "supported_languages": null}, "macro.dbt_utils.test_not_accepted_values": {"name": "test_not_accepted_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_accepted_values.sql", "original_file_path": "macros/generic_tests/not_accepted_values.sql", "unique_id": "macro.dbt_utils.test_not_accepted_values", "macro_sql": "{% test not_accepted_values(model, column_name, values, quote=True) %}\n {{ return(adapter.dispatch('test_not_accepted_values', 'dbt_utils')(model, column_name, values, quote)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.856904, "supported_languages": null}, "macro.dbt_utils.default__test_not_accepted_values": {"name": "default__test_not_accepted_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_accepted_values.sql", "original_file_path": "macros/generic_tests/not_accepted_values.sql", "unique_id": "macro.dbt_utils.default__test_not_accepted_values", "macro_sql": "{% macro default__test_not_accepted_values(model, column_name, values, quote=True) %}\nwith all_values as (\n\n select distinct\n {{ column_name }} as value_field\n\n from {{ model }}\n\n),\n\nvalidation_errors as (\n\n select\n value_field\n\n from all_values\n where value_field in (\n {% for value in values -%}\n {% if quote -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {%- endfor %}\n )\n\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.8581371, "supported_languages": null}, "macro.dbt_utils.test_at_least_one": {"name": "test_at_least_one", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/at_least_one.sql", "original_file_path": "macros/generic_tests/at_least_one.sql", "unique_id": "macro.dbt_utils.test_at_least_one", "macro_sql": "{% test at_least_one(model, column_name, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_at_least_one', 'dbt_utils')(model, column_name, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_at_least_one"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.859832, "supported_languages": null}, "macro.dbt_utils.default__test_at_least_one": {"name": "default__test_at_least_one", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/at_least_one.sql", "original_file_path": "macros/generic_tests/at_least_one.sql", "unique_id": "macro.dbt_utils.default__test_at_least_one", "macro_sql": "{% macro default__test_at_least_one(model, column_name, group_by_columns) %}\n\n{% set pruned_cols = [column_name] %}\n\n{% if group_by_columns|length() > 0 %}\n\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n {% set pruned_cols = group_by_columns %}\n\n {% if column_name not in pruned_cols %}\n {% do pruned_cols.append(column_name) %}\n {% endif %}\n\n{% endif %}\n\n{% set select_pruned_cols = pruned_cols|join(' ,') %}\n\nselect *\nfrom (\n with pruned_rows as (\n select\n {{ select_pruned_cols }}\n from {{ model }}\n where {{ column_name }} is not null\n limit 1\n )\n select\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n {{select_gb_cols}}\n count({{ column_name }}) as filler_column\n\n from pruned_rows\n\n {{groupby_gb_cols}}\n\n having count({{ column_name }}) = 0\n\n) validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.862355, "supported_languages": null}, "macro.dbt_utils.test_unique_combination_of_columns": {"name": "test_unique_combination_of_columns", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/unique_combination_of_columns.sql", "original_file_path": "macros/generic_tests/unique_combination_of_columns.sql", "unique_id": "macro.dbt_utils.test_unique_combination_of_columns", "macro_sql": "{% test unique_combination_of_columns(model, combination_of_columns, quote_columns=false) %}\n {{ return(adapter.dispatch('test_unique_combination_of_columns', 'dbt_utils')(model, combination_of_columns, quote_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_unique_combination_of_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.8640609, "supported_languages": null}, "macro.dbt_utils.default__test_unique_combination_of_columns": {"name": "default__test_unique_combination_of_columns", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/unique_combination_of_columns.sql", "original_file_path": "macros/generic_tests/unique_combination_of_columns.sql", "unique_id": "macro.dbt_utils.default__test_unique_combination_of_columns", "macro_sql": "{% macro default__test_unique_combination_of_columns(model, combination_of_columns, quote_columns=false) %}\n\n{% if not quote_columns %}\n {%- set column_list=combination_of_columns %}\n{% elif quote_columns %}\n {%- set column_list=[] %}\n {% for column in combination_of_columns -%}\n {% set column_list = column_list.append( adapter.quote(column) ) %}\n {%- endfor %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`quote_columns` argument for unique_combination_of_columns test must be one of [True, False] Got: '\" ~ quote ~\"'.'\"\n ) }}\n{% endif %}\n\n{%- set columns_csv=column_list | join(', ') %}\n\n\nwith validation_errors as (\n\n select\n {{ columns_csv }}\n from {{ model }}\n group by {{ columns_csv }}\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.866281, "supported_languages": null}, "macro.dbt_utils.test_cardinality_equality": {"name": "test_cardinality_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/cardinality_equality.sql", "original_file_path": "macros/generic_tests/cardinality_equality.sql", "unique_id": "macro.dbt_utils.test_cardinality_equality", "macro_sql": "{% test cardinality_equality(model, column_name, to, field) %}\n {{ return(adapter.dispatch('test_cardinality_equality', 'dbt_utils')(model, column_name, to, field)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_cardinality_equality"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.867887, "supported_languages": null}, "macro.dbt_utils.default__test_cardinality_equality": {"name": "default__test_cardinality_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/cardinality_equality.sql", "original_file_path": "macros/generic_tests/cardinality_equality.sql", "unique_id": "macro.dbt_utils.default__test_cardinality_equality", "macro_sql": "{% macro default__test_cardinality_equality(model, column_name, to, field) %}\n\n{# T-SQL does not let you use numbers as aliases for columns #}\n{# Thus, no \"GROUP BY 1\" #}\n\nwith table_a as (\nselect\n {{ column_name }},\n count(*) as num_rows\nfrom {{ model }}\ngroup by {{ column_name }}\n),\n\ntable_b as (\nselect\n {{ field }},\n count(*) as num_rows\nfrom {{ to }}\ngroup by {{ field }}\n),\n\nexcept_a as (\n select *\n from table_a\n {{ dbt.except() }}\n select *\n from table_b\n),\n\nexcept_b as (\n select *\n from table_b\n {{ dbt.except() }}\n select *\n from table_a\n),\n\nunioned as (\n select *\n from except_a\n union all\n select *\n from except_b\n)\n\nselect *\nfrom unioned\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.869022, "supported_languages": null}, "macro.dbt_utils.test_expression_is_true": {"name": "test_expression_is_true", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/expression_is_true.sql", "original_file_path": "macros/generic_tests/expression_is_true.sql", "unique_id": "macro.dbt_utils.test_expression_is_true", "macro_sql": "{% test expression_is_true(model, expression, column_name=None) %}\n {{ return(adapter.dispatch('test_expression_is_true', 'dbt_utils')(model, expression, column_name)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.870214, "supported_languages": null}, "macro.dbt_utils.default__test_expression_is_true": {"name": "default__test_expression_is_true", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/expression_is_true.sql", "original_file_path": "macros/generic_tests/expression_is_true.sql", "unique_id": "macro.dbt_utils.default__test_expression_is_true", "macro_sql": "{% macro default__test_expression_is_true(model, expression, column_name) %}\n\n{% set column_list = '*' if should_store_failures() else \"1\" %}\n\nselect\n {{ column_list }}\nfrom {{ model }}\n{% if column_name is none %}\nwhere not({{ expression }})\n{%- else %}\nwhere not({{ column_name }} {{ expression }})\n{%- endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_store_failures"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.871595, "supported_languages": null}, "macro.dbt_utils.test_not_null_proportion": {"name": "test_not_null_proportion", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_null_proportion.sql", "original_file_path": "macros/generic_tests/not_null_proportion.sql", "unique_id": "macro.dbt_utils.test_not_null_proportion", "macro_sql": "{% macro test_not_null_proportion(model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_not_null_proportion', 'dbt_utils')(model, group_by_columns, **kwargs)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_null_proportion"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.873256, "supported_languages": null}, "macro.dbt_utils.default__test_not_null_proportion": {"name": "default__test_not_null_proportion", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_null_proportion.sql", "original_file_path": "macros/generic_tests/not_null_proportion.sql", "unique_id": "macro.dbt_utils.default__test_not_null_proportion", "macro_sql": "{% macro default__test_not_null_proportion(model, group_by_columns) %}\n\n{% set column_name = kwargs.get('column_name', kwargs.get('arg')) %}\n{% set at_least = kwargs.get('at_least', kwargs.get('arg')) %}\n{% set at_most = kwargs.get('at_most', kwargs.get('arg', 1)) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\nwith validation as (\n select\n {{select_gb_cols}}\n sum(case when {{ column_name }} is null then 0 else 1 end) / cast(count(*) as numeric) as not_null_proportion\n from {{ model }}\n {{groupby_gb_cols}}\n),\nvalidation_errors as (\n select\n {{select_gb_cols}}\n not_null_proportion\n from validation\n where not_null_proportion < {{ at_least }} or not_null_proportion > {{ at_most }}\n)\nselect\n *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.875777, "supported_languages": null}, "macro.dbt_utils.test_sequential_values": {"name": "test_sequential_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/sequential_values.sql", "original_file_path": "macros/generic_tests/sequential_values.sql", "unique_id": "macro.dbt_utils.test_sequential_values", "macro_sql": "{% test sequential_values(model, column_name, interval=1, datepart=None, group_by_columns = []) %}\n\n {{ return(adapter.dispatch('test_sequential_values', 'dbt_utils')(model, column_name, interval, datepart, group_by_columns)) }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_sequential_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.878009, "supported_languages": null}, "macro.dbt_utils.default__test_sequential_values": {"name": "default__test_sequential_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/sequential_values.sql", "original_file_path": "macros/generic_tests/sequential_values.sql", "unique_id": "macro.dbt_utils.default__test_sequential_values", "macro_sql": "{% macro default__test_sequential_values(model, column_name, interval=1, datepart=None, group_by_columns = []) %}\n\n{% set previous_column_name = \"previous_\" ~ dbt_utils.slugify(column_name) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(',') + ', ' %}\n {% set partition_gb_cols = 'partition by ' + group_by_columns|join(',') %}\n{% endif %}\n\nwith windowed as (\n\n select\n {{ select_gb_cols }}\n {{ column_name }},\n lag({{ column_name }}) over (\n {{partition_gb_cols}}\n order by {{ column_name }}\n ) as {{ previous_column_name }}\n from {{ model }}\n),\n\nvalidation_errors as (\n select\n *\n from windowed\n {% if datepart %}\n where not(cast({{ column_name }} as {{ dbt.type_timestamp() }})= cast({{ dbt.dateadd(datepart, interval, previous_column_name) }} as {{ dbt.type_timestamp() }}))\n {% else %}\n where not({{ column_name }} = {{ previous_column_name }} + {{ interval }})\n {% endif %}\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.slugify", "macro.dbt.type_timestamp", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.881096, "supported_languages": null}, "macro.dbt_utils.test_equality": {"name": "test_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equality.sql", "original_file_path": "macros/generic_tests/equality.sql", "unique_id": "macro.dbt_utils.test_equality", "macro_sql": "{% test equality(model, compare_model, compare_columns=None) %}\n {{ return(adapter.dispatch('test_equality', 'dbt_utils')(model, compare_model, compare_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_equality"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.8830762, "supported_languages": null}, "macro.dbt_utils.default__test_equality": {"name": "default__test_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equality.sql", "original_file_path": "macros/generic_tests/equality.sql", "unique_id": "macro.dbt_utils.default__test_equality", "macro_sql": "{% macro default__test_equality(model, compare_model, compare_columns=None) %}\n\n{% set set_diff %}\n count(*) + coalesce(abs(\n sum(case when which_diff = 'a_minus_b' then 1 else 0 end) -\n sum(case when which_diff = 'b_minus_a' then 1 else 0 end)\n ), 0)\n{% endset %}\n\n{#-- Needs to be set at parse time, before we return '' below --#}\n{{ config(fail_calc = set_diff) }}\n\n{#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n{%- if not execute -%}\n {{ return('') }}\n{% endif %}\n\n-- setup\n{%- do dbt_utils._is_relation(model, 'test_equality') -%}\n\n{#-\nIf the compare_cols arg is provided, we can run this test without querying the\ninformation schema\u00a0\u2014 this allows the model to be an ephemeral model\n-#}\n\n{%- if not compare_columns -%}\n {%- do dbt_utils._is_ephemeral(model, 'test_equality') -%}\n {%- set compare_columns = adapter.get_columns_in_relation(model) | map(attribute='quoted') -%}\n{%- endif -%}\n\n{% set compare_cols_csv = compare_columns | join(', ') %}\n\nwith a as (\n\n select * from {{ model }}\n\n),\n\nb as (\n\n select * from {{ compare_model }}\n\n),\n\na_minus_b as (\n\n select {{compare_cols_csv}} from a\n {{ dbt.except() }}\n select {{compare_cols_csv}} from b\n\n),\n\nb_minus_a as (\n\n select {{compare_cols_csv}} from b\n {{ dbt.except() }}\n select {{compare_cols_csv}} from a\n\n),\n\nunioned as (\n\n select 'a_minus_b' as which_diff, a_minus_b.* from a_minus_b\n union all\n select 'b_minus_a' as which_diff, b_minus_a.* from b_minus_a\n\n)\n\nselect * from unioned\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.8859332, "supported_languages": null}, "macro.dbt_utils.test_not_empty_string": {"name": "test_not_empty_string", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_empty_string.sql", "original_file_path": "macros/generic_tests/not_empty_string.sql", "unique_id": "macro.dbt_utils.test_not_empty_string", "macro_sql": "{% test not_empty_string(model, column_name, trim_whitespace=true) %}\n\n {{ return(adapter.dispatch('test_not_empty_string', 'dbt_utils')(model, column_name, trim_whitespace)) }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_empty_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.8873441, "supported_languages": null}, "macro.dbt_utils.default__test_not_empty_string": {"name": "default__test_not_empty_string", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_empty_string.sql", "original_file_path": "macros/generic_tests/not_empty_string.sql", "unique_id": "macro.dbt_utils.default__test_not_empty_string", "macro_sql": "{% macro default__test_not_empty_string(model, column_name, trim_whitespace=true) %}\n\n with\n \n all_values as (\n\n select \n\n\n {% if trim_whitespace == true -%}\n\n trim({{ column_name }}) as {{ column_name }}\n\n {%- else -%}\n\n {{ column_name }}\n\n {%- endif %}\n \n from {{ model }}\n\n ),\n\n errors as (\n\n select * from all_values\n where {{ column_name }} = ''\n\n )\n\n select * from errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.888315, "supported_languages": null}, "macro.dbt_utils.test_mutually_exclusive_ranges": {"name": "test_mutually_exclusive_ranges", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/generic_tests/mutually_exclusive_ranges.sql", "unique_id": "macro.dbt_utils.test_mutually_exclusive_ranges", "macro_sql": "{% test mutually_exclusive_ranges(model, lower_bound_column, upper_bound_column, partition_by=None, gaps='allowed', zero_length_range_allowed=False) %}\n {{ return(adapter.dispatch('test_mutually_exclusive_ranges', 'dbt_utils')(model, lower_bound_column, upper_bound_column, partition_by, gaps, zero_length_range_allowed)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_mutually_exclusive_ranges"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.896152, "supported_languages": null}, "macro.dbt_utils.default__test_mutually_exclusive_ranges": {"name": "default__test_mutually_exclusive_ranges", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/generic_tests/mutually_exclusive_ranges.sql", "unique_id": "macro.dbt_utils.default__test_mutually_exclusive_ranges", "macro_sql": "{% macro default__test_mutually_exclusive_ranges(model, lower_bound_column, upper_bound_column, partition_by=None, gaps='allowed', zero_length_range_allowed=False) %}\n{% if gaps == 'not_allowed' %}\n {% set allow_gaps_operator='=' %}\n {% set allow_gaps_operator_in_words='equal_to' %}\n{% elif gaps == 'allowed' %}\n {% set allow_gaps_operator='<=' %}\n {% set allow_gaps_operator_in_words='less_than_or_equal_to' %}\n{% elif gaps == 'required' %}\n {% set allow_gaps_operator='<' %}\n {% set allow_gaps_operator_in_words='less_than' %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`gaps` argument for mutually_exclusive_ranges test must be one of ['not_allowed', 'allowed', 'required'] Got: '\" ~ gaps ~\"'.'\"\n ) }}\n{% endif %}\n{% if not zero_length_range_allowed %}\n {% set allow_zero_length_operator='<' %}\n {% set allow_zero_length_operator_in_words='less_than' %}\n{% elif zero_length_range_allowed %}\n {% set allow_zero_length_operator='<=' %}\n {% set allow_zero_length_operator_in_words='less_than_or_equal_to' %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`zero_length_range_allowed` argument for mutually_exclusive_ranges test must be one of [true, false] Got: '\" ~ zero_length_range_allowed ~\"'.'\"\n ) }}\n{% endif %}\n\n{% set partition_clause=\"partition by \" ~ partition_by if partition_by else '' %}\n\nwith window_functions as (\n\n select\n {% if partition_by %}\n {{ partition_by }} as partition_by_col,\n {% endif %}\n {{ lower_bound_column }} as lower_bound,\n {{ upper_bound_column }} as upper_bound,\n\n lead({{ lower_bound_column }}) over (\n {{ partition_clause }}\n order by {{ lower_bound_column }}, {{ upper_bound_column }}\n ) as next_lower_bound,\n\n row_number() over (\n {{ partition_clause }}\n order by {{ lower_bound_column }} desc, {{ upper_bound_column }} desc\n ) = 1 as is_last_record\n\n from {{ model }}\n\n),\n\ncalc as (\n -- We want to return records where one of our assumptions fails, so we'll use\n -- the `not` function with `and` statements so we can write our assumptions more cleanly\n select\n *,\n\n -- For each record: lower_bound should be < upper_bound.\n -- Coalesce it to return an error on the null case (implicit assumption\n -- these columns are not_null)\n coalesce(\n lower_bound {{ allow_zero_length_operator }} upper_bound,\n false\n ) as lower_bound_{{ allow_zero_length_operator_in_words }}_upper_bound,\n\n -- For each record: upper_bound {{ allow_gaps_operator }} the next lower_bound.\n -- Coalesce it to handle null cases for the last record.\n coalesce(\n upper_bound {{ allow_gaps_operator }} next_lower_bound,\n is_last_record,\n false\n ) as upper_bound_{{ allow_gaps_operator_in_words }}_next_lower_bound\n\n from window_functions\n\n),\n\nvalidation_errors as (\n\n select\n *\n from calc\n\n where not(\n -- THE FOLLOWING SHOULD BE TRUE --\n lower_bound_{{ allow_zero_length_operator_in_words }}_upper_bound\n and upper_bound_{{ allow_gaps_operator_in_words }}_next_lower_bound\n )\n)\n\nselect * from validation_errors\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.9009411, "supported_languages": null}, "macro.dbt_utils.pretty_log_format": {"name": "pretty_log_format", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "unique_id": "macro.dbt_utils.pretty_log_format", "macro_sql": "{% macro pretty_log_format(message) %}\n {{ return(adapter.dispatch('pretty_log_format', 'dbt_utils')(message)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.901949, "supported_languages": null}, "macro.dbt_utils.default__pretty_log_format": {"name": "default__pretty_log_format", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "unique_id": "macro.dbt_utils.default__pretty_log_format", "macro_sql": "{% macro default__pretty_log_format(message) %}\n {{ return( dbt_utils.pretty_time() ~ ' + ' ~ message) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.9025679, "supported_languages": null}, "macro.dbt_utils._is_relation": {"name": "_is_relation", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/_is_relation.sql", "original_file_path": "macros/jinja_helpers/_is_relation.sql", "unique_id": "macro.dbt_utils._is_relation", "macro_sql": "{% macro _is_relation(obj, macro) %}\n {%- if not (obj is mapping and obj.get('metadata', {}).get('type', '').endswith('Relation')) -%}\n {%- do exceptions.raise_compiler_error(\"Macro \" ~ macro ~ \" expected a Relation but received the value: \" ~ obj) -%}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.903914, "supported_languages": null}, "macro.dbt_utils.pretty_time": {"name": "pretty_time", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "unique_id": "macro.dbt_utils.pretty_time", "macro_sql": "{% macro pretty_time(format='%H:%M:%S') %}\n {{ return(adapter.dispatch('pretty_time', 'dbt_utils')(format)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.904763, "supported_languages": null}, "macro.dbt_utils.default__pretty_time": {"name": "default__pretty_time", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "unique_id": "macro.dbt_utils.default__pretty_time", "macro_sql": "{% macro default__pretty_time(format='%H:%M:%S') %}\n {{ return(modules.datetime.datetime.now().strftime(format)) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.905358, "supported_languages": null}, "macro.dbt_utils.log_info": {"name": "log_info", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "unique_id": "macro.dbt_utils.log_info", "macro_sql": "{% macro log_info(message) %}\n {{ return(adapter.dispatch('log_info', 'dbt_utils')(message)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__log_info"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.906162, "supported_languages": null}, "macro.dbt_utils.default__log_info": {"name": "default__log_info", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "unique_id": "macro.dbt_utils.default__log_info", "macro_sql": "{% macro default__log_info(message) %}\n {{ log(dbt_utils.pretty_log_format(message), info=True) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.906709, "supported_languages": null}, "macro.dbt_utils.slugify": {"name": "slugify", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/slugify.sql", "original_file_path": "macros/jinja_helpers/slugify.sql", "unique_id": "macro.dbt_utils.slugify", "macro_sql": "{% macro slugify(string) %}\n\n{#- Lower case the string -#}\n{% set string = string | lower %}\n{#- Replace spaces and dashes with underscores -#}\n{% set string = modules.re.sub('[ -]+', '_', string) %}\n{#- Only take letters, numbers, and underscores -#}\n{% set string = modules.re.sub('[^a-z0-9_]+', '', string) %}\n{#- Prepends \"_\" if string begins with a number -#}\n{% set string = modules.re.sub('^[0-9]', '_' + string[0], string) %}\n\n{{ return(string) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.908427, "supported_languages": null}, "macro.dbt_utils._is_ephemeral": {"name": "_is_ephemeral", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/_is_ephemeral.sql", "original_file_path": "macros/jinja_helpers/_is_ephemeral.sql", "unique_id": "macro.dbt_utils._is_ephemeral", "macro_sql": "{% macro _is_ephemeral(obj, macro) %}\n {%- if obj.is_cte -%}\n {% set ephemeral_prefix = api.Relation.add_ephemeral_prefix('') %}\n {% if obj.name.startswith(ephemeral_prefix) %}\n {% set model_name = obj.name[(ephemeral_prefix|length):] %}\n {% else %}\n {% set model_name = obj.name %}\n {%- endif -%}\n {% set error_message %}\nThe `{{ macro }}` macro cannot be used with ephemeral models, as it relies on the information schema.\n\n`{{ model_name }}` is an ephemeral model. Consider making it a view or table instead.\n {% endset %}\n {%- do exceptions.raise_compiler_error(error_message) -%}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.910639, "supported_languages": null}, "macro.dbt_utils.get_intervals_between": {"name": "get_intervals_between", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.get_intervals_between", "macro_sql": "{% macro get_intervals_between(start_date, end_date, datepart) -%}\n {{ return(adapter.dispatch('get_intervals_between', 'dbt_utils')(start_date, end_date, datepart)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_intervals_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.9123409, "supported_languages": null}, "macro.dbt_utils.default__get_intervals_between": {"name": "default__get_intervals_between", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.default__get_intervals_between", "macro_sql": "{% macro default__get_intervals_between(start_date, end_date, datepart) -%}\n {%- call statement('get_intervals_between', fetch_result=True) %}\n\n select {{ dbt.datediff(start_date, end_date, datepart) }}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_intervals_between') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values[0]) }}\n {%- else -%}\n {{ return(1) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.914616, "supported_languages": null}, "macro.dbt_utils.date_spine": {"name": "date_spine", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.date_spine", "macro_sql": "{% macro date_spine(datepart, start_date, end_date) %}\n {{ return(adapter.dispatch('date_spine', 'dbt_utils')(datepart, start_date, end_date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.915346, "supported_languages": null}, "macro.dbt_utils.default__date_spine": {"name": "default__date_spine", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.default__date_spine", "macro_sql": "{% macro default__date_spine(datepart, start_date, end_date) %}\n\n\n{# call as follows:\n\ndate_spine(\n \"day\",\n \"to_date('01/01/2016', 'mm/dd/yyyy')\",\n \"dbt.dateadd(week, 1, current_date)\"\n) #}\n\n\nwith rawdata as (\n\n {{dbt_utils.generate_series(\n dbt_utils.get_intervals_between(start_date, end_date, datepart)\n )}}\n\n),\n\nall_periods as (\n\n select (\n {{\n dbt.dateadd(\n datepart,\n \"row_number() over (order by 1) - 1\",\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n)\n\nselect * from filtered\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.generate_series", "macro.dbt_utils.get_intervals_between", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.9165068, "supported_languages": null}, "macro.dbt_utils.safe_subtract": {"name": "safe_subtract", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_subtract.sql", "original_file_path": "macros/sql/safe_subtract.sql", "unique_id": "macro.dbt_utils.safe_subtract", "macro_sql": "{%- macro safe_subtract(field_list) -%}\n {{ return(adapter.dispatch('safe_subtract', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__safe_subtract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.917571, "supported_languages": null}, "macro.dbt_utils.default__safe_subtract": {"name": "default__safe_subtract", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_subtract.sql", "original_file_path": "macros/sql/safe_subtract.sql", "unique_id": "macro.dbt_utils.default__safe_subtract", "macro_sql": "\n\n{%- macro default__safe_subtract(field_list) -%}\n\n{%- if field_list is not iterable or field_list is string or field_list is mapping -%}\n\n{%- set error_message = '\nWarning: the `safe_subtract` macro takes a single list argument instead of \\\nstring arguments. The {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.raise_compiler_error(error_message) -%}\n\n{%- endif -%}\n\n{% set fields = [] %}\n\n{%- for field in field_list -%}\n\n {% do fields.append(\"coalesce(\" ~ field ~ \", 0)\") %}\n\n{%- endfor -%}\n\n{{ fields|join(' -\\n ') }}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.91925, "supported_languages": null}, "macro.dbt_utils.nullcheck_table": {"name": "nullcheck_table", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "unique_id": "macro.dbt_utils.nullcheck_table", "macro_sql": "{% macro nullcheck_table(relation) %}\n {{ return(adapter.dispatch('nullcheck_table', 'dbt_utils')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.92016, "supported_languages": null}, "macro.dbt_utils.default__nullcheck_table": {"name": "default__nullcheck_table", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "unique_id": "macro.dbt_utils.default__nullcheck_table", "macro_sql": "{% macro default__nullcheck_table(relation) %}\n\n {%- do dbt_utils._is_relation(relation, 'nullcheck_table') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'nullcheck_table') -%}\n {% set cols = adapter.get_columns_in_relation(relation) %}\n\n select {{ dbt_utils.nullcheck(cols) }}\n from {{relation}}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.nullcheck"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.921225, "supported_languages": null}, "macro.dbt_utils.get_relations_by_pattern": {"name": "get_relations_by_pattern", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "unique_id": "macro.dbt_utils.get_relations_by_pattern", "macro_sql": "{% macro get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_relations_by_pattern', 'dbt_utils')(schema_pattern, table_pattern, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_relations_by_pattern"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.9229739, "supported_languages": null}, "macro.dbt_utils.default__get_relations_by_pattern": {"name": "default__get_relations_by_pattern", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "unique_id": "macro.dbt_utils.default__get_relations_by_pattern", "macro_sql": "{% macro default__get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n {{ dbt_utils.get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude, database) }}\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=database,\n schema=row.table_schema,\n identifier=row.table_name,\n type=row.table_type\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.925587, "supported_languages": null}, "macro.dbt_utils.get_powers_of_two": {"name": "get_powers_of_two", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.get_powers_of_two", "macro_sql": "{% macro get_powers_of_two(upper_bound) %}\n {{ return(adapter.dispatch('get_powers_of_two', 'dbt_utils')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.9275699, "supported_languages": null}, "macro.dbt_utils.default__get_powers_of_two": {"name": "default__get_powers_of_two", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.default__get_powers_of_two", "macro_sql": "{% macro default__get_powers_of_two(upper_bound) %}\n\n {% if upper_bound <= 0 %}\n {{ exceptions.raise_compiler_error(\"upper bound must be positive\") }}\n {% endif %}\n\n {% for _ in range(1, 100) %}\n {% if upper_bound <= 2 ** loop.index %}{{ return(loop.index) }}{% endif %}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.9288561, "supported_languages": null}, "macro.dbt_utils.generate_series": {"name": "generate_series", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.generate_series", "macro_sql": "{% macro generate_series(upper_bound) %}\n {{ return(adapter.dispatch('generate_series', 'dbt_utils')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__generate_series"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.9294279, "supported_languages": null}, "macro.dbt_utils.default__generate_series": {"name": "default__generate_series", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.default__generate_series", "macro_sql": "{% macro default__generate_series(upper_bound) %}\n\n {% set n = dbt_utils.get_powers_of_two(upper_bound) %}\n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n {% for i in range(n) %}\n p{{i}}.generated_number * power(2, {{i}})\n {% if not loop.last %} + {% endif %}\n {% endfor %}\n + 1\n as generated_number\n\n from\n\n {% for i in range(n) %}\n p as p{{i}}\n {% if not loop.last %} cross join {% endif %}\n {% endfor %}\n\n )\n\n select *\n from unioned\n where generated_number <= {{upper_bound}}\n order by generated_number\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.931094, "supported_languages": null}, "macro.dbt_utils.get_relations_by_prefix": {"name": "get_relations_by_prefix", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "unique_id": "macro.dbt_utils.get_relations_by_prefix", "macro_sql": "{% macro get_relations_by_prefix(schema, prefix, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_relations_by_prefix', 'dbt_utils')(schema, prefix, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_relations_by_prefix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.9328132, "supported_languages": null}, "macro.dbt_utils.default__get_relations_by_prefix": {"name": "default__get_relations_by_prefix", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "unique_id": "macro.dbt_utils.default__get_relations_by_prefix", "macro_sql": "{% macro default__get_relations_by_prefix(schema, prefix, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n {{ dbt_utils.get_tables_by_prefix_sql(schema, prefix, exclude, database) }}\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=database,\n schema=row.table_schema,\n identifier=row.table_name,\n type=row.table_type\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.get_tables_by_prefix_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.9352908, "supported_languages": null}, "macro.dbt_utils.get_tables_by_prefix_sql": {"name": "get_tables_by_prefix_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "unique_id": "macro.dbt_utils.get_tables_by_prefix_sql", "macro_sql": "{% macro get_tables_by_prefix_sql(schema, prefix, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_tables_by_prefix_sql', 'dbt_utils')(schema, prefix, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_tables_by_prefix_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.936374, "supported_languages": null}, "macro.dbt_utils.default__get_tables_by_prefix_sql": {"name": "default__get_tables_by_prefix_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "unique_id": "macro.dbt_utils.default__get_tables_by_prefix_sql", "macro_sql": "{% macro default__get_tables_by_prefix_sql(schema, prefix, exclude='', database=target.database) %}\n\n {{ dbt_utils.get_tables_by_pattern_sql(\n schema_pattern = schema,\n table_pattern = prefix ~ '%',\n exclude = exclude,\n database = database\n ) }}\n \n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.937171, "supported_languages": null}, "macro.dbt_utils.star": {"name": "star", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "unique_id": "macro.dbt_utils.star", "macro_sql": "{% macro star(from, relation_alias=False, except=[], prefix='', suffix='', quote_identifiers=True) -%}\r\n {{ return(adapter.dispatch('star', 'dbt_utils')(from, relation_alias, except, prefix, suffix, quote_identifiers)) }}\r\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__star"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.939797, "supported_languages": null}, "macro.dbt_utils.default__star": {"name": "default__star", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "unique_id": "macro.dbt_utils.default__star", "macro_sql": "{% macro default__star(from, relation_alias=False, except=[], prefix='', suffix='', quote_identifiers=True) -%}\r\n {%- do dbt_utils._is_relation(from, 'star') -%}\r\n {%- do dbt_utils._is_ephemeral(from, 'star') -%}\r\n\r\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\r\n {%- if not execute -%}\r\n {% do return('*') %}\r\n {%- endif -%}\r\n\r\n {% set cols = dbt_utils.get_filtered_columns_in_relation(from, except) %}\r\n\r\n {%- if cols|length <= 0 -%}\r\n {% if flags.WHICH == 'compile' %}\r\n {% set response %}\r\n*\r\n/* No columns were returned. Maybe the relation doesn't exist yet \r\nor all columns were excluded. This star is only output during \r\ndbt compile, and exists to keep SQLFluff happy. */\r\n {% endset %}\r\n {% do return(response) %}\r\n {% else %}\r\n {% do return(\"/* no columns returned from star() macro */\") %}\r\n {% endif %}\r\n {%- else -%}\r\n {%- for col in cols %}\r\n {%- if relation_alias %}{{ relation_alias }}.{% else %}{%- endif -%}\r\n {%- if quote_identifiers -%}\r\n {{ adapter.quote(col)|trim }} {%- if prefix!='' or suffix!='' %} as {{ adapter.quote(prefix ~ col ~ suffix)|trim }} {%- endif -%}\r\n {%- else -%}\r\n {{ col|trim }} {%- if prefix!='' or suffix!='' %} as {{ (prefix ~ col ~ suffix)|trim }} {%- endif -%}\r\n {% endif %}\r\n {%- if not loop.last %},{{ '\\n ' }}{%- endif -%}\r\n {%- endfor -%}\r\n {% endif %}\r\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.get_filtered_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.9436622, "supported_languages": null}, "macro.dbt_utils.unpivot": {"name": "unpivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "unique_id": "macro.dbt_utils.unpivot", "macro_sql": "{% macro unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value') -%}\n {{ return(adapter.dispatch('unpivot', 'dbt_utils')(relation, cast_to, exclude, remove, field_name, value_name)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__unpivot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.946411, "supported_languages": null}, "macro.dbt_utils.default__unpivot": {"name": "default__unpivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "unique_id": "macro.dbt_utils.default__unpivot", "macro_sql": "{% macro default__unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value') -%}\n\n {% if not relation %}\n {{ exceptions.raise_compiler_error(\"Error: argument `relation` is required for `unpivot` macro.\") }}\n {% endif %}\n\n {%- set exclude = exclude if exclude is not none else [] %}\n {%- set remove = remove if remove is not none else [] %}\n\n {%- set include_cols = [] %}\n\n {%- set table_columns = {} %}\n\n {%- do table_columns.update({relation: []}) %}\n\n {%- do dbt_utils._is_relation(relation, 'unpivot') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'unpivot') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) %}\n\n {%- for col in cols -%}\n {%- if col.column.lower() not in remove|map('lower') and col.column.lower() not in exclude|map('lower') -%}\n {% do include_cols.append(col) %}\n {%- endif %}\n {%- endfor %}\n\n\n {%- for col in include_cols -%}\n select\n {%- for exclude_col in exclude %}\n {{ exclude_col }},\n {%- endfor %}\n\n cast('{{ col.column }}' as {{ dbt.type_string() }}) as {{ field_name }},\n cast( {% if col.data_type == 'boolean' %}\n {{ dbt.cast_bool_to_text(col.column) }}\n {% else %}\n {{ col.column }}\n {% endif %}\n as {{ cast_to }}) as {{ value_name }}\n\n from {{ relation }}\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n {%- endfor -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.type_string", "macro.dbt.cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.95061, "supported_languages": null}, "macro.dbt_utils.safe_divide": {"name": "safe_divide", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_divide.sql", "original_file_path": "macros/sql/safe_divide.sql", "unique_id": "macro.dbt_utils.safe_divide", "macro_sql": "{% macro safe_divide(numerator, denominator) -%}\n {{ return(adapter.dispatch('safe_divide', 'dbt_utils')(numerator, denominator)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__safe_divide"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.9513972, "supported_languages": null}, "macro.dbt_utils.default__safe_divide": {"name": "default__safe_divide", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_divide.sql", "original_file_path": "macros/sql/safe_divide.sql", "unique_id": "macro.dbt_utils.default__safe_divide", "macro_sql": "{% macro default__safe_divide(numerator, denominator) %}\n ( {{ numerator }} ) / nullif( ( {{ denominator }} ), 0)\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.951802, "supported_languages": null}, "macro.dbt_utils.union_relations": {"name": "union_relations", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "unique_id": "macro.dbt_utils.union_relations", "macro_sql": "{%- macro union_relations(relations, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation', where=none) -%}\n {{ return(adapter.dispatch('union_relations', 'dbt_utils')(relations, column_override, include, exclude, source_column_name, where)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__union_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.958623, "supported_languages": null}, "macro.dbt_utils.default__union_relations": {"name": "default__union_relations", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "unique_id": "macro.dbt_utils.default__union_relations", "macro_sql": "\n\n{%- macro default__union_relations(relations, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation', where=none) -%}\n\n {%- if exclude and include -%}\n {{ exceptions.raise_compiler_error(\"Both an exclude and include list were provided to the `union` macro. Only one is allowed\") }}\n {%- endif -%}\n\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. -#}\n {%- if not execute %}\n {{ return('') }}\n {% endif -%}\n\n {%- set column_override = column_override if column_override is not none else {} -%}\n\n {%- set relation_columns = {} -%}\n {%- set column_superset = {} -%}\n {%- set all_excludes = [] -%}\n {%- set all_includes = [] -%}\n\n {%- if exclude -%}\n {%- for exc in exclude -%}\n {%- do all_excludes.append(exc | lower) -%}\n {%- endfor -%}\n {%- endif -%}\n\n {%- if include -%}\n {%- for inc in include -%}\n {%- do all_includes.append(inc | lower) -%}\n {%- endfor -%}\n {%- endif -%}\n\n {%- for relation in relations -%}\n\n {%- do relation_columns.update({relation: []}) -%}\n\n {%- do dbt_utils._is_relation(relation, 'union_relations') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'union_relations') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) -%}\n {%- for col in cols -%}\n\n {#- If an exclude list was provided and the column is in the list, do nothing -#}\n {%- if exclude and col.column | lower in all_excludes -%}\n\n {#- If an include list was provided and the column is not in the list, do nothing -#}\n {%- elif include and col.column | lower not in all_includes -%}\n\n {#- Otherwise add the column to the column superset -#}\n {%- else -%}\n\n {#- update the list of columns in this relation -#}\n {%- do relation_columns[relation].append(col.column) -%}\n\n {%- if col.column in column_superset -%}\n\n {%- set stored = column_superset[col.column] -%}\n {%- if col.is_string() and stored.is_string() and col.string_size() > stored.string_size() -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif %}\n\n {%- else -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif -%}\n\n {%- endif -%}\n\n {%- endfor -%}\n {%- endfor -%}\n\n {%- set ordered_column_names = column_superset.keys() -%}\n {%- set dbt_command = flags.WHICH -%}\n\n\n {% if dbt_command in ['run', 'build'] %}\n {% if (include | length > 0 or exclude | length > 0) and not column_superset.keys() %}\n {%- set relations_string -%}\n {%- for relation in relations -%}\n {{ relation.name }}\n {%- if not loop.last %}, {% endif -%}\n {%- endfor -%}\n {%- endset -%}\n\n {%- set error_message -%}\n There were no columns found to union for relations {{ relations_string }}\n {%- endset -%}\n\n {{ exceptions.raise_compiler_error(error_message) }}\n {%- endif -%}\n {%- endif -%}\n\n {%- for relation in relations %}\n\n (\n select\n\n {%- if source_column_name is not none %}\n cast({{ dbt.string_literal(relation) }} as {{ dbt.type_string() }}) as {{ source_column_name }},\n {%- endif %}\n\n {% for col_name in ordered_column_names -%}\n\n {%- set col = column_superset[col_name] %}\n {%- set col_type = column_override.get(col.column, col.data_type) %}\n {%- set col_name = adapter.quote(col_name) if col_name in relation_columns[relation] else 'null' %}\n cast({{ col_name }} as {{ col_type }}) as {{ col.quoted }} {% if not loop.last %},{% endif -%}\n\n {%- endfor %}\n\n from {{ relation }}\n\n {% if where -%}\n where {{ where }}\n {%- endif %}\n )\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.string_literal", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.969457, "supported_languages": null}, "macro.dbt_utils.group_by": {"name": "group_by", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "unique_id": "macro.dbt_utils.group_by", "macro_sql": "{%- macro group_by(n) -%}\n {{ return(adapter.dispatch('group_by', 'dbt_utils')(n)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__group_by"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.970419, "supported_languages": null}, "macro.dbt_utils.default__group_by": {"name": "default__group_by", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "unique_id": "macro.dbt_utils.default__group_by", "macro_sql": "\n\n{%- macro default__group_by(n) -%}\n\n group by {% for i in range(1, n + 1) -%}\n {{ i }}{{ ',' if not loop.last }} \n {%- endfor -%}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.971217, "supported_languages": null}, "macro.dbt_utils.deduplicate": {"name": "deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.deduplicate", "macro_sql": "{%- macro deduplicate(relation, partition_by, order_by) -%}\n {{ return(adapter.dispatch('deduplicate', 'dbt_utils')(relation, partition_by, order_by)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.bigquery__deduplicate"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.9730198, "supported_languages": null}, "macro.dbt_utils.default__deduplicate": {"name": "default__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.default__deduplicate", "macro_sql": "\n\n{%- macro default__deduplicate(relation, partition_by, order_by) -%}\n\n with row_numbered as (\n select\n _inner.*,\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) as rn\n from {{ relation }} as _inner\n )\n\n select\n distinct data.*\n from {{ relation }} as data\n {#\n -- Not all DBs will support natural joins but the ones that do include:\n -- Oracle, MySQL, SQLite, Redshift, Teradata, Materialize, Databricks\n -- Apache Spark, SingleStore, Vertica\n -- Those that do not appear to support natural joins include:\n -- SQLServer, Trino, Presto, Rockset, Athena\n #}\n natural join row_numbered\n where row_numbered.rn = 1\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.973686, "supported_languages": null}, "macro.dbt_utils.redshift__deduplicate": {"name": "redshift__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.redshift__deduplicate", "macro_sql": "{% macro redshift__deduplicate(relation, partition_by, order_by) -%}\n\n {{ return(dbt_utils.default__deduplicate(relation, partition_by, order_by=order_by)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__deduplicate"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.974314, "supported_languages": null}, "macro.dbt_utils.postgres__deduplicate": {"name": "postgres__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.postgres__deduplicate", "macro_sql": "\n{%- macro postgres__deduplicate(relation, partition_by, order_by) -%}\n\n select\n distinct on ({{ partition_by }}) *\n from {{ relation }}\n order by {{ partition_by }}{{ ',' ~ order_by }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.97492, "supported_languages": null}, "macro.dbt_utils.snowflake__deduplicate": {"name": "snowflake__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.snowflake__deduplicate", "macro_sql": "\n{%- macro snowflake__deduplicate(relation, partition_by, order_by) -%}\n\n select *\n from {{ relation }}\n qualify\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) = 1\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.97545, "supported_languages": null}, "macro.dbt_utils.bigquery__deduplicate": {"name": "bigquery__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.bigquery__deduplicate", "macro_sql": "\n{%- macro bigquery__deduplicate(relation, partition_by, order_by) -%}\n\n select unique.*\n from (\n select\n array_agg (\n original\n order by {{ order_by }}\n limit 1\n )[offset(0)] unique\n from {{ relation }} original\n group by {{ partition_by }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.976, "supported_languages": null}, "macro.dbt_utils.surrogate_key": {"name": "surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "unique_id": "macro.dbt_utils.surrogate_key", "macro_sql": "{%- macro surrogate_key(field_list) -%}\n {% set frustrating_jinja_feature = varargs %}\n {{ return(adapter.dispatch('surrogate_key', 'dbt_utils')(field_list, *varargs)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__surrogate_key"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.977091, "supported_languages": null}, "macro.dbt_utils.default__surrogate_key": {"name": "default__surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "unique_id": "macro.dbt_utils.default__surrogate_key", "macro_sql": "\n\n{%- macro default__surrogate_key(field_list) -%}\n\n{%- set error_message = '\nWarning: `dbt_utils.surrogate_key` has been replaced by \\\n`dbt_utils.generate_surrogate_key`. The new macro treats null values \\\ndifferently to empty strings. To restore the behaviour of the original \\\nmacro, add a global variable in dbt_project.yml called \\\n`surrogate_key_treat_nulls_as_empty_strings` to your \\\ndbt_project.yml file with a value of True. \\\nThe {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.raise_compiler_error(error_message) -%}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.977823, "supported_languages": null}, "macro.dbt_utils.safe_add": {"name": "safe_add", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "unique_id": "macro.dbt_utils.safe_add", "macro_sql": "{%- macro safe_add(field_list) -%}\n {{ return(adapter.dispatch('safe_add', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__safe_add"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.9788659, "supported_languages": null}, "macro.dbt_utils.default__safe_add": {"name": "default__safe_add", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "unique_id": "macro.dbt_utils.default__safe_add", "macro_sql": "\n\n{%- macro default__safe_add(field_list) -%}\n\n{%- if field_list is not iterable or field_list is string or field_list is mapping -%}\n\n{%- set error_message = '\nWarning: the `safe_add` macro now takes a single list argument instead of \\\nstring arguments. The {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.warn(error_message) -%}\n\n{%- endif -%}\n\n{% set fields = [] %}\n\n{%- for field in field_list -%}\n\n {% do fields.append(\"coalesce(\" ~ field ~ \", 0)\") %}\n\n{%- endfor -%}\n\n{{ fields|join(' +\\n ') }}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.980563, "supported_languages": null}, "macro.dbt_utils.nullcheck": {"name": "nullcheck", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "unique_id": "macro.dbt_utils.nullcheck", "macro_sql": "{% macro nullcheck(cols) %}\n {{ return(adapter.dispatch('nullcheck', 'dbt_utils')(cols)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.9815428, "supported_languages": null}, "macro.dbt_utils.default__nullcheck": {"name": "default__nullcheck", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "unique_id": "macro.dbt_utils.default__nullcheck", "macro_sql": "{% macro default__nullcheck(cols) %}\n{%- for col in cols %}\n\n {% if col.is_string() -%}\n\n nullif({{col.name}},'') as {{col.name}}\n\n {%- else -%}\n\n {{col.name}}\n\n {%- endif -%}\n\n{%- if not loop.last -%} , {%- endif -%}\n\n{%- endfor -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.9826088, "supported_languages": null}, "macro.dbt_utils.get_tables_by_pattern_sql": {"name": "get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.get_tables_by_pattern_sql", "macro_sql": "{% macro get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_tables_by_pattern_sql', 'dbt_utils')\n (schema_pattern, table_pattern, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.bigquery__get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.986401, "supported_languages": null}, "macro.dbt_utils.default__get_tables_by_pattern_sql": {"name": "default__get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.default__get_tables_by_pattern_sql", "macro_sql": "{% macro default__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n select distinct\n table_schema as {{ adapter.quote('table_schema') }},\n table_name as {{ adapter.quote('table_name') }},\n {{ dbt_utils.get_table_types_sql() }}\n from {{ database }}.information_schema.tables\n where table_schema ilike '{{ schema_pattern }}'\n and table_name ilike '{{ table_pattern }}'\n and table_name not ilike '{{ exclude }}'\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.987597, "supported_languages": null}, "macro.dbt_utils.bigquery__get_tables_by_pattern_sql": {"name": "bigquery__get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.bigquery__get_tables_by_pattern_sql", "macro_sql": "{% macro bigquery__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {% if '%' in schema_pattern %}\n {% set schemata=dbt_utils._bigquery__get_matching_schemata(schema_pattern, database) %}\n {% else %}\n {% set schemata=[schema_pattern] %}\n {% endif %}\n\n {% set sql %}\n {% for schema in schemata %}\n select distinct\n table_schema,\n table_name,\n {{ dbt_utils.get_table_types_sql() }}\n\n from {{ adapter.quote(database) }}.{{ schema }}.INFORMATION_SCHEMA.TABLES\n where lower(table_name) like lower ('{{ table_pattern }}')\n and lower(table_name) not like lower ('{{ exclude }}')\n\n {% if not loop.last %} union all {% endif %}\n\n {% endfor %}\n {% endset %}\n\n {{ return(sql) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._bigquery__get_matching_schemata", "macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.99023, "supported_languages": null}, "macro.dbt_utils._bigquery__get_matching_schemata": {"name": "_bigquery__get_matching_schemata", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils._bigquery__get_matching_schemata", "macro_sql": "{% macro _bigquery__get_matching_schemata(schema_pattern, database) %}\n {% if execute %}\n\n {% set sql %}\n select schema_name from {{ adapter.quote(database) }}.INFORMATION_SCHEMA.SCHEMATA\n where lower(schema_name) like lower('{{ schema_pattern }}')\n {% endset %}\n\n {% set results=run_query(sql) %}\n\n {% set schemata=results.columns['schema_name'].values() %}\n\n {{ return(schemata) }}\n\n {% else %}\n\n {{ return([]) }}\n\n {% endif %}\n\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.992079, "supported_languages": null}, "macro.dbt_utils.get_column_values": {"name": "get_column_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "unique_id": "macro.dbt_utils.get_column_values", "macro_sql": "{% macro get_column_values(table, column, order_by='count(*) desc', max_records=none, default=none, where=none) -%}\n {{ return(adapter.dispatch('get_column_values', 'dbt_utils')(table, column, order_by, max_records, default, where)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_column_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.994854, "supported_languages": null}, "macro.dbt_utils.default__get_column_values": {"name": "default__get_column_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "unique_id": "macro.dbt_utils.default__get_column_values", "macro_sql": "{% macro default__get_column_values(table, column, order_by='count(*) desc', max_records=none, default=none, where=none) -%}\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {% set default = [] if not default %}\n {{ return(default) }}\n {% endif %}\n\n {%- do dbt_utils._is_ephemeral(table, 'get_column_values') -%}\n\n {# Not all relations are tables. Renaming for internal clarity without breaking functionality for anyone using named arguments #}\n {# TODO: Change the method signature in a future 0.x.0 release #}\n {%- set target_relation = table -%}\n\n {# adapter.load_relation is a convenience wrapper to avoid building a Relation when we already have one #}\n {% set relation_exists = (load_relation(target_relation)) is not none %}\n\n {%- call statement('get_column_values', fetch_result=true) %}\n\n {%- if not relation_exists and default is none -%}\n\n {{ exceptions.raise_compiler_error(\"In get_column_values(): relation \" ~ target_relation ~ \" does not exist and no default value was provided.\") }}\n\n {%- elif not relation_exists and default is not none -%}\n\n {{ log(\"Relation \" ~ target_relation ~ \" does not exist. Returning the default value: \" ~ default) }}\n\n {{ return(default) }}\n\n {%- else -%}\n\n\n select\n {{ column }} as value\n\n from {{ target_relation }}\n\n {% if where is not none %}\n where {{ where }}\n {% endif %}\n\n group by {{ column }}\n order by {{ order_by }}\n\n {% if max_records is not none %}\n limit {{ max_records }}\n {% endif %}\n\n {% endif %}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_column_values') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values) }}\n {%- else -%}\n {{ return(default) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_ephemeral", "macro.dbt.load_relation", "macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640654.999479, "supported_languages": null}, "macro.dbt_utils.pivot": {"name": "pivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "unique_id": "macro.dbt_utils.pivot", "macro_sql": "{% macro pivot(column,\n values,\n alias=True,\n agg='sum',\n cmp='=',\n prefix='',\n suffix='',\n then_value=1,\n else_value=0,\n quote_identifiers=True,\n distinct=False) %}\n {{ return(adapter.dispatch('pivot', 'dbt_utils')(column, values, alias, agg, cmp, prefix, suffix, then_value, else_value, quote_identifiers, distinct)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__pivot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.0023098, "supported_languages": null}, "macro.dbt_utils.default__pivot": {"name": "default__pivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "unique_id": "macro.dbt_utils.default__pivot", "macro_sql": "{% macro default__pivot(column,\n values,\n alias=True,\n agg='sum',\n cmp='=',\n prefix='',\n suffix='',\n then_value=1,\n else_value=0,\n quote_identifiers=True,\n distinct=False) %}\n {% for value in values %}\n {{ agg }}(\n {% if distinct %} distinct {% endif %}\n case\n when {{ column }} {{ cmp }} '{{ dbt.escape_single_quotes(value) }}'\n then {{ then_value }}\n else {{ else_value }}\n end\n )\n {% if alias %}\n {% if quote_identifiers %}\n as {{ adapter.quote(prefix ~ value ~ suffix) }}\n {% else %}\n as {{ dbt_utils.slugify(prefix ~ value ~ suffix) }}\n {% endif %}\n {% endif %}\n {% if not loop.last %},{% endif %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.escape_single_quotes", "macro.dbt_utils.slugify"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.004844, "supported_languages": null}, "macro.dbt_utils.get_filtered_columns_in_relation": {"name": "get_filtered_columns_in_relation", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_filtered_columns_in_relation.sql", "original_file_path": "macros/sql/get_filtered_columns_in_relation.sql", "unique_id": "macro.dbt_utils.get_filtered_columns_in_relation", "macro_sql": "{% macro get_filtered_columns_in_relation(from, except=[]) -%}\n {{ return(adapter.dispatch('get_filtered_columns_in_relation', 'dbt_utils')(from, except)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_filtered_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.0061371, "supported_languages": null}, "macro.dbt_utils.default__get_filtered_columns_in_relation": {"name": "default__get_filtered_columns_in_relation", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_filtered_columns_in_relation.sql", "original_file_path": "macros/sql/get_filtered_columns_in_relation.sql", "unique_id": "macro.dbt_utils.default__get_filtered_columns_in_relation", "macro_sql": "{% macro default__get_filtered_columns_in_relation(from, except=[]) -%}\n {%- do dbt_utils._is_relation(from, 'get_filtered_columns_in_relation') -%}\n {%- do dbt_utils._is_ephemeral(from, 'get_filtered_columns_in_relation') -%}\n\n {# -- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {{ return('') }}\n {% endif %}\n\n {%- set include_cols = [] %}\n {%- set cols = adapter.get_columns_in_relation(from) -%}\n {%- set except = except | map(\"lower\") | list %}\n {%- for col in cols -%}\n {%- if col.column|lower not in except -%}\n {% do include_cols.append(col.column) %}\n {%- endif %}\n {%- endfor %}\n\n {{ return(include_cols) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.008176, "supported_languages": null}, "macro.dbt_utils.width_bucket": {"name": "width_bucket", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "unique_id": "macro.dbt_utils.width_bucket", "macro_sql": "{% macro width_bucket(expr, min_value, max_value, num_buckets) %}\n {{ return(adapter.dispatch('width_bucket', 'dbt_utils') (expr, min_value, max_value, num_buckets)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__width_bucket"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.0098162, "supported_languages": null}, "macro.dbt_utils.default__width_bucket": {"name": "default__width_bucket", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "unique_id": "macro.dbt_utils.default__width_bucket", "macro_sql": "{% macro default__width_bucket(expr, min_value, max_value, num_buckets) -%}\n\n {% set bin_size -%}\n (( {{ max_value }} - {{ min_value }} ) / {{ num_buckets }} )\n {%- endset %}\n (\n -- to break ties when the amount is eaxtly at the bucket egde\n case\n when\n mod(\n {{ dbt.safe_cast(expr, dbt.type_numeric() ) }},\n {{ dbt.safe_cast(bin_size, dbt.type_numeric() ) }}\n ) = 0\n then 1\n else 0\n end\n ) +\n -- Anything over max_value goes the N+1 bucket\n least(\n ceil(\n ({{ expr }} - {{ min_value }})/{{ bin_size }}\n ),\n {{ num_buckets }} + 1\n )\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.safe_cast", "macro.dbt.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.011023, "supported_languages": null}, "macro.dbt_utils.snowflake__width_bucket": {"name": "snowflake__width_bucket", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "unique_id": "macro.dbt_utils.snowflake__width_bucket", "macro_sql": "{% macro snowflake__width_bucket(expr, min_value, max_value, num_buckets) %}\n width_bucket({{ expr }}, {{ min_value }}, {{ max_value }}, {{ num_buckets }} )\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.0115259, "supported_languages": null}, "macro.dbt_utils.get_query_results_as_dict": {"name": "get_query_results_as_dict", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "unique_id": "macro.dbt_utils.get_query_results_as_dict", "macro_sql": "{% macro get_query_results_as_dict(query) %}\n {{ return(adapter.dispatch('get_query_results_as_dict', 'dbt_utils')(query)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_query_results_as_dict"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.012409, "supported_languages": null}, "macro.dbt_utils.default__get_query_results_as_dict": {"name": "default__get_query_results_as_dict", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "unique_id": "macro.dbt_utils.default__get_query_results_as_dict", "macro_sql": "{% macro default__get_query_results_as_dict(query) %}\n\n{# This macro returns a dictionary of the form {column_name: (tuple_of_results)} #}\n\n {%- call statement('get_query_results', fetch_result=True,auto_begin=false) -%}\n\n {{ query }}\n\n {%- endcall -%}\n\n {% set sql_results={} %}\n\n {%- if execute -%}\n {% set sql_results_table = load_result('get_query_results').table.columns %}\n {% for column_name, column in sql_results_table.items() %}\n {% do sql_results.update({column_name: column.values()}) %}\n {% endfor %}\n {%- endif -%}\n\n {{ return(sql_results) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.013956, "supported_languages": null}, "macro.dbt_utils.generate_surrogate_key": {"name": "generate_surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_surrogate_key.sql", "original_file_path": "macros/sql/generate_surrogate_key.sql", "unique_id": "macro.dbt_utils.generate_surrogate_key", "macro_sql": "{%- macro generate_surrogate_key(field_list) -%}\n {{ return(adapter.dispatch('generate_surrogate_key', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__generate_surrogate_key"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.014981, "supported_languages": null}, "macro.dbt_utils.default__generate_surrogate_key": {"name": "default__generate_surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_surrogate_key.sql", "original_file_path": "macros/sql/generate_surrogate_key.sql", "unique_id": "macro.dbt_utils.default__generate_surrogate_key", "macro_sql": "\n\n{%- macro default__generate_surrogate_key(field_list) -%}\n\n{%- if var('surrogate_key_treat_nulls_as_empty_strings', False) -%}\n {%- set default_null_value = \"\" -%}\n{%- else -%}\n {%- set default_null_value = '_dbt_utils_surrogate_key_null_' -%}\n{%- endif -%}\n\n{%- set fields = [] -%}\n\n{%- for field in field_list -%}\n\n {%- do fields.append(\n \"coalesce(cast(\" ~ field ~ \" as \" ~ dbt.type_string() ~ \"), '\" ~ default_null_value ~\"')\"\n ) -%}\n\n {%- if not loop.last %}\n {%- do fields.append(\"'-'\") -%}\n {%- endif -%}\n\n{%- endfor -%}\n\n{{ dbt.hash(dbt.concat(fields)) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.hash", "macro.dbt.concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.016598, "supported_languages": null}, "macro.dbt_utils.get_table_types_sql": {"name": "get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.get_table_types_sql", "macro_sql": "{%- macro get_table_types_sql() -%}\n {{ return(adapter.dispatch('get_table_types_sql', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_utils.default__get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.0176902, "supported_languages": null}, "macro.dbt_utils.default__get_table_types_sql": {"name": "default__get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.default__get_table_types_sql", "macro_sql": "{% macro default__get_table_types_sql() %}\n case table_type\n when 'BASE TABLE' then 'table'\n when 'EXTERNAL TABLE' then 'external'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.0180538, "supported_languages": null}, "macro.dbt_utils.postgres__get_table_types_sql": {"name": "postgres__get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.postgres__get_table_types_sql", "macro_sql": "{% macro postgres__get_table_types_sql() %}\n case table_type\n when 'BASE TABLE' then 'table'\n when 'FOREIGN' then 'external'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.0184152, "supported_languages": null}, "macro.dbt_utils.databricks__get_table_types_sql": {"name": "databricks__get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.databricks__get_table_types_sql", "macro_sql": "{% macro databricks__get_table_types_sql() %}\n case table_type\n when 'MANAGED' then 'table'\n when 'BASE TABLE' then 'table'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.018795, "supported_languages": null}, "macro.dbt_utils.get_single_value": {"name": "get_single_value", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_single_value.sql", "original_file_path": "macros/sql/get_single_value.sql", "unique_id": "macro.dbt_utils.get_single_value", "macro_sql": "{% macro get_single_value(query, default=none) %}\n {{ return(adapter.dispatch('get_single_value', 'dbt_utils')(query, default)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_single_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.0199401, "supported_languages": null}, "macro.dbt_utils.default__get_single_value": {"name": "default__get_single_value", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_single_value.sql", "original_file_path": "macros/sql/get_single_value.sql", "unique_id": "macro.dbt_utils.default__get_single_value", "macro_sql": "{% macro default__get_single_value(query, default) %}\n\n{# This macro returns the (0, 0) record in a query, i.e. the first row of the first column #}\n\n {%- call statement('get_query_result', fetch_result=True, auto_begin=false) -%}\n\n {{ query }}\n\n {%- endcall -%}\n\n {%- if execute -%}\n\n {% set r = load_result('get_query_result').table.columns[0].values() %}\n {% if r | length == 0 %}\n {% do print('Query `' ~ query ~ '` returned no rows. Using the default value: ' ~ default) %}\n {% set sql_result = default %}\n {% else %}\n {% set sql_result = r[0] %}\n {% endif %}\n \n {%- else -%}\n \n {% set sql_result = default %}\n \n {%- endif -%}\n\n {% do return(sql_result) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.022177, "supported_languages": null}, "macro.dbt_utils.degrees_to_radians": {"name": "degrees_to_radians", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.degrees_to_radians", "macro_sql": "{% macro degrees_to_radians(degrees) -%}\n acos(-1) * {{degrees}} / 180\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.02447, "supported_languages": null}, "macro.dbt_utils.haversine_distance": {"name": "haversine_distance", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.haversine_distance", "macro_sql": "{% macro haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n {{ return(adapter.dispatch('haversine_distance', 'dbt_utils')(lat1,lon1,lat2,lon2,unit)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.bigquery__haversine_distance"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.0253382, "supported_languages": null}, "macro.dbt_utils.default__haversine_distance": {"name": "default__haversine_distance", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.default__haversine_distance", "macro_sql": "{% macro default__haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n{%- if unit == 'mi' %}\n {% set conversion_rate = 1 %}\n{% elif unit == 'km' %}\n {% set conversion_rate = 1.60934 %}\n{% else %}\n {{ exceptions.raise_compiler_error(\"unit input must be one of 'mi' or 'km'. Got \" ~ unit) }}\n{% endif %}\n\n 2 * 3961 * asin(sqrt(power((sin(radians(({{ lat2 }} - {{ lat1 }}) / 2))), 2) +\n cos(radians({{lat1}})) * cos(radians({{lat2}})) *\n power((sin(radians(({{ lon2 }} - {{ lon1 }}) / 2))), 2))) * {{ conversion_rate }}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.027052, "supported_languages": null}, "macro.dbt_utils.bigquery__haversine_distance": {"name": "bigquery__haversine_distance", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.bigquery__haversine_distance", "macro_sql": "{% macro bigquery__haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n{% set radians_lat1 = dbt_utils.degrees_to_radians(lat1) %}\n{% set radians_lat2 = dbt_utils.degrees_to_radians(lat2) %}\n{% set radians_lon1 = dbt_utils.degrees_to_radians(lon1) %}\n{% set radians_lon2 = dbt_utils.degrees_to_radians(lon2) %}\n{%- if unit == 'mi' %}\n {% set conversion_rate = 1 %}\n{% elif unit == 'km' %}\n {% set conversion_rate = 1.60934 %}\n{% else %}\n {{ exceptions.raise_compiler_error(\"unit input must be one of 'mi' or 'km'. Got \" ~ unit) }}\n{% endif %}\n 2 * 3961 * asin(sqrt(power(sin(({{ radians_lat2 }} - {{ radians_lat1 }}) / 2), 2) +\n cos({{ radians_lat1 }}) * cos({{ radians_lat2 }}) *\n power(sin(({{ radians_lon2 }} - {{ radians_lon1 }}) / 2), 2))) * {{ conversion_rate }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.degrees_to_radians"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.02944, "supported_languages": null}, "macro.fivetran_utils.enabled_vars": {"name": "enabled_vars", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/enabled_vars.sql", "original_file_path": "macros/enabled_vars.sql", "unique_id": "macro.fivetran_utils.enabled_vars", "macro_sql": "{% macro enabled_vars(vars) %}\n\n{% for v in vars %}\n \n {% if var(v, True) == False %}\n {{ return(False) }}\n {% endif %}\n\n{% endfor %}\n\n{{ return(True) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.0305831, "supported_languages": null}, "macro.fivetran_utils.percentile": {"name": "percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.percentile", "macro_sql": "{% macro percentile(percentile_field, partition_field, percent) -%}\n\n{{ adapter.dispatch('percentile', 'fivetran_utils') (percentile_field, partition_field, percent) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.bigquery__percentile"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.032581, "supported_languages": null}, "macro.fivetran_utils.default__percentile": {"name": "default__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.default__percentile", "macro_sql": "{% macro default__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n over ( partition by {{ partition_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.033052, "supported_languages": null}, "macro.fivetran_utils.redshift__percentile": {"name": "redshift__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.redshift__percentile", "macro_sql": "{% macro redshift__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n over ( partition by {{ partition_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.033524, "supported_languages": null}, "macro.fivetran_utils.bigquery__percentile": {"name": "bigquery__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.bigquery__percentile", "macro_sql": "{% macro bigquery__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percentile_field }}, \n {{ percent }}) \n over (partition by {{ partition_field }} \n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.033966, "supported_languages": null}, "macro.fivetran_utils.postgres__percentile": {"name": "postgres__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.postgres__percentile", "macro_sql": "{% macro postgres__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n /* have to group by partition field */\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.034358, "supported_languages": null}, "macro.fivetran_utils.spark__percentile": {"name": "spark__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.spark__percentile", "macro_sql": "{% macro spark__percentile(percentile_field, partition_field, percent) %}\n\n percentile( \n {{ percentile_field }}, \n {{ percent }}) \n over (partition by {{ partition_field }} \n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.0348, "supported_languages": null}, "macro.fivetran_utils.pivot_json_extract": {"name": "pivot_json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/pivot_json_extract.sql", "original_file_path": "macros/pivot_json_extract.sql", "unique_id": "macro.fivetran_utils.pivot_json_extract", "macro_sql": "{% macro pivot_json_extract(string, list_of_properties) %}\n\n{%- for property in list_of_properties -%}\n{%- if property is mapping -%}\nreplace( {{ fivetran_utils.json_extract(string, property.name) }}, '\"', '') as {{ property.alias if property.alias else property.name | replace(' ', '_') | replace('.', '_') | lower }}\n\n{%- else -%}\nreplace( {{ fivetran_utils.json_extract(string, property) }}, '\"', '') as {{ property | replace(' ', '_') | lower }}\n\n{%- endif -%}\n{%- if not loop.last -%},{%- endif %}\n{% endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.json_extract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.036708, "supported_languages": null}, "macro.fivetran_utils.persist_pass_through_columns": {"name": "persist_pass_through_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/persist_pass_through_columns.sql", "original_file_path": "macros/persist_pass_through_columns.sql", "unique_id": "macro.fivetran_utils.persist_pass_through_columns", "macro_sql": "{% macro persist_pass_through_columns(pass_through_variable, identifier=none, transform='') %}\n\n{% if var(pass_through_variable, none) %}\n {% for field in var(pass_through_variable) %}\n , {{ transform ~ '(' ~ (identifier ~ '.' if identifier else '') ~ (field.alias if field.alias else field.name) ~ ')' }} as {{ field.alias if field.alias else field.name }}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.038271, "supported_languages": null}, "macro.fivetran_utils.json_parse": {"name": "json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.json_parse", "macro_sql": "{% macro json_parse(string, string_path) -%}\n\n{{ adapter.dispatch('json_parse', 'fivetran_utils') (string, string_path) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.bigquery__json_parse"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.041125, "supported_languages": null}, "macro.fivetran_utils.default__json_parse": {"name": "default__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.default__json_parse", "macro_sql": "{% macro default__json_parse(string, string_path) %}\n\n json_extract_path_text({{string}}, {%- for s in string_path -%}'{{ s }}'{%- if not loop.last -%},{%- endif -%}{%- endfor -%} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.041812, "supported_languages": null}, "macro.fivetran_utils.redshift__json_parse": {"name": "redshift__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.redshift__json_parse", "macro_sql": "{% macro redshift__json_parse(string, string_path) %}\n\n json_extract_path_text({{string}}, {%- for s in string_path -%}'{{ s }}'{%- if not loop.last -%},{%- endif -%}{%- endfor -%} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.042523, "supported_languages": null}, "macro.fivetran_utils.bigquery__json_parse": {"name": "bigquery__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.bigquery__json_parse", "macro_sql": "{% macro bigquery__json_parse(string, string_path) %}\n\n \n json_extract_scalar({{string}}, '$.{%- for s in string_path -%}{{ s }}{%- if not loop.last -%}.{%- endif -%}{%- endfor -%} ')\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.0431628, "supported_languages": null}, "macro.fivetran_utils.postgres__json_parse": {"name": "postgres__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.postgres__json_parse", "macro_sql": "{% macro postgres__json_parse(string, string_path) %}\n\n {{string}}::json #>> '{ {%- for s in string_path -%}{{ s }}{%- if not loop.last -%},{%- endif -%}{%- endfor -%} }'\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.04379, "supported_languages": null}, "macro.fivetran_utils.snowflake__json_parse": {"name": "snowflake__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.snowflake__json_parse", "macro_sql": "{% macro snowflake__json_parse(string, string_path) %}\n\n parse_json( {{string}} ) {%- for s in string_path -%}{% if s is number %}[{{ s }}]{% else %}['{{ s }}']{% endif %}{%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.0444958, "supported_languages": null}, "macro.fivetran_utils.spark__json_parse": {"name": "spark__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.spark__json_parse", "macro_sql": "{% macro spark__json_parse(string, string_path) %}\n\n {{string}} : {%- for s in string_path -%}{% if s is number %}[{{ s }}]{% else %}['{{ s }}']{% endif %}{%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.0453749, "supported_languages": null}, "macro.fivetran_utils.sqlserver__json_parse": {"name": "sqlserver__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.sqlserver__json_parse", "macro_sql": "{% macro sqlserver__json_parse(string, string_path) %}\n\n json_value({{string}}, '$.{%- for s in string_path -%}{{ s }}{%- if not loop.last -%}.{%- endif -%}{%- endfor -%} ')\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.046014, "supported_languages": null}, "macro.fivetran_utils.max_bool": {"name": "max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.max_bool", "macro_sql": "{% macro max_bool(boolean_field) -%}\n\n{{ adapter.dispatch('max_bool', 'fivetran_utils') (boolean_field) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.bigquery__max_bool"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.046773, "supported_languages": null}, "macro.fivetran_utils.default__max_bool": {"name": "default__max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.default__max_bool", "macro_sql": "{% macro default__max_bool(boolean_field) %}\n\n bool_or( {{ boolean_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.047054, "supported_languages": null}, "macro.fivetran_utils.snowflake__max_bool": {"name": "snowflake__max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.snowflake__max_bool", "macro_sql": "{% macro snowflake__max_bool(boolean_field) %}\n\n max( {{ boolean_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.047329, "supported_languages": null}, "macro.fivetran_utils.bigquery__max_bool": {"name": "bigquery__max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.bigquery__max_bool", "macro_sql": "{% macro bigquery__max_bool(boolean_field) %}\n\n max( {{ boolean_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.047619, "supported_languages": null}, "macro.fivetran_utils.calculated_fields": {"name": "calculated_fields", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/calculated_fields.sql", "original_file_path": "macros/calculated_fields.sql", "unique_id": "macro.fivetran_utils.calculated_fields", "macro_sql": "{% macro calculated_fields(variable) -%}\n\n{% if var(variable, none) %}\n {% for field in var(variable) %}\n , {{ field.transform_sql }} as {{ field.name }} \n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.048579, "supported_languages": null}, "macro.fivetran_utils.drop_schemas_automation": {"name": "drop_schemas_automation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/drop_schemas_automation.sql", "original_file_path": "macros/drop_schemas_automation.sql", "unique_id": "macro.fivetran_utils.drop_schemas_automation", "macro_sql": "{% macro drop_schemas_automation(drop_target_schema=true) %}\n {{ return(adapter.dispatch('drop_schemas_automation', 'fivetran_utils')(drop_target_schema)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__drop_schemas_automation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.0500789, "supported_languages": null}, "macro.fivetran_utils.default__drop_schemas_automation": {"name": "default__drop_schemas_automation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/drop_schemas_automation.sql", "original_file_path": "macros/drop_schemas_automation.sql", "unique_id": "macro.fivetran_utils.default__drop_schemas_automation", "macro_sql": "{% macro default__drop_schemas_automation(drop_target_schema=true) %}\n\n{% set fetch_list_sql %}\n {% if target.type not in ('databricks', 'spark') %}\n select schema_name\n from \n {{ wrap_in_quotes(target.database) }}.INFORMATION_SCHEMA.SCHEMATA\n where lower(schema_name) like '{{ target.schema | lower }}{%- if not drop_target_schema -%}_{%- endif -%}%'\n {% else %}\n SHOW SCHEMAS LIKE '{{ target.schema }}{%- if not drop_target_schema -%}_{%- endif -%}*'\n {% endif %}\n{% endset %}\n\n{% set results = run_query(fetch_list_sql) %}\n\n{% if execute %}\n {% set results_list = results.columns[0].values() %}\n{% else %}\n {% set results_list = [] %}\n{% endif %}\n\n{% for schema_to_drop in results_list %}\n {% do adapter.drop_schema(api.Relation.create(database=target.database, schema=schema_to_drop)) %}\n {{ print('Schema ' ~ schema_to_drop ~ ' successfully dropped from the ' ~ target.database ~ ' database.\\n')}}\n{% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.wrap_in_quotes", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.053005, "supported_languages": null}, "macro.fivetran_utils.seed_data_helper": {"name": "seed_data_helper", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/seed_data_helper.sql", "original_file_path": "macros/seed_data_helper.sql", "unique_id": "macro.fivetran_utils.seed_data_helper", "macro_sql": "{% macro seed_data_helper(seed_name, warehouses) %}\n\n{% if target.type in warehouses %}\n {% for w in warehouses %}\n {% if target.type == w %}\n {{ return(ref(seed_name ~ \"_\" ~ w ~ \"\")) }}\n {% endif %}\n {% endfor %}\n{% else %}\n{{ return(ref(seed_name)) }}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.0547369, "supported_languages": null}, "macro.fivetran_utils.fill_pass_through_columns": {"name": "fill_pass_through_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fill_pass_through_columns.sql", "original_file_path": "macros/fill_pass_through_columns.sql", "unique_id": "macro.fivetran_utils.fill_pass_through_columns", "macro_sql": "{% macro fill_pass_through_columns(pass_through_variable) %}\n\n{% if var(pass_through_variable) %}\n {% for field in var(pass_through_variable) %}\n {% if field is mapping %}\n {% if field.transform_sql %}\n , {{ field.transform_sql }} as {{ field.alias if field.alias else field.name }}\n {% else %}\n , {{ field.alias if field.alias else field.name }}\n {% endif %}\n {% else %}\n , {{ field }}\n {% endif %}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.0569851, "supported_languages": null}, "macro.fivetran_utils.string_agg": {"name": "string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.string_agg", "macro_sql": "{% macro string_agg(field_to_agg, delimiter) -%}\n\n{{ adapter.dispatch('string_agg', 'fivetran_utils') (field_to_agg, delimiter) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__string_agg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.0582001, "supported_languages": null}, "macro.fivetran_utils.default__string_agg": {"name": "default__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.default__string_agg", "macro_sql": "{% macro default__string_agg(field_to_agg, delimiter) %}\n string_agg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.058622, "supported_languages": null}, "macro.fivetran_utils.snowflake__string_agg": {"name": "snowflake__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.snowflake__string_agg", "macro_sql": "{% macro snowflake__string_agg(field_to_agg, delimiter) %}\n listagg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.05903, "supported_languages": null}, "macro.fivetran_utils.redshift__string_agg": {"name": "redshift__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.redshift__string_agg", "macro_sql": "{% macro redshift__string_agg(field_to_agg, delimiter) %}\n listagg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.059453, "supported_languages": null}, "macro.fivetran_utils.spark__string_agg": {"name": "spark__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.spark__string_agg", "macro_sql": "{% macro spark__string_agg(field_to_agg, delimiter) %}\n -- collect set will remove duplicates\n replace(replace(replace(cast( collect_set({{ field_to_agg }}) as string), '[', ''), ']', ''), ', ', {{ delimiter }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.059884, "supported_languages": null}, "macro.fivetran_utils.timestamp_diff": {"name": "timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.timestamp_diff", "macro_sql": "{% macro timestamp_diff(first_date, second_date, datepart) %}\n {{ adapter.dispatch('timestamp_diff', 'fivetran_utils')(first_date, second_date, datepart) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.bigquery__timestamp_diff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.066249, "supported_languages": null}, "macro.fivetran_utils.default__timestamp_diff": {"name": "default__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.default__timestamp_diff", "macro_sql": "{% macro default__timestamp_diff(first_date, second_date, datepart) %}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.066787, "supported_languages": null}, "macro.fivetran_utils.redshift__timestamp_diff": {"name": "redshift__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.redshift__timestamp_diff", "macro_sql": "{% macro redshift__timestamp_diff(first_date, second_date, datepart) %}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.0673048, "supported_languages": null}, "macro.fivetran_utils.bigquery__timestamp_diff": {"name": "bigquery__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.bigquery__timestamp_diff", "macro_sql": "{% macro bigquery__timestamp_diff(first_date, second_date, datepart) %}\n\n timestamp_diff(\n {{second_date}},\n {{first_date}},\n {{datepart}}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.0678122, "supported_languages": null}, "macro.fivetran_utils.postgres__timestamp_diff": {"name": "postgres__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.postgres__timestamp_diff", "macro_sql": "{% macro postgres__timestamp_diff(first_date, second_date, datepart) %}\n\n {% if datepart == 'year' %}\n (date_part('year', ({{second_date}})::date) - date_part('year', ({{first_date}})::date))\n {% elif datepart == 'quarter' %}\n ({{ dbt.datediff(first_date, second_date, 'year') }} * 4 + date_part('quarter', ({{second_date}})::date) - date_part('quarter', ({{first_date}})::date))\n {% elif datepart == 'month' %}\n ({{ dbt.datediff(first_date, second_date, 'year') }} * 12 + date_part('month', ({{second_date}})::date) - date_part('month', ({{first_date}})::date))\n {% elif datepart == 'day' %}\n (({{second_date}})::date - ({{first_date}})::date)\n {% elif datepart == 'week' %}\n ({{ dbt.datediff(first_date, second_date, 'day') }} / 7 + case\n when date_part('dow', ({{first_date}})::timestamp) <= date_part('dow', ({{second_date}})::timestamp) then\n case when {{first_date}} <= {{second_date}} then 0 else -1 end\n else\n case when {{first_date}} <= {{second_date}} then 1 else 0 end\n end)\n {% elif datepart == 'hour' %}\n ({{ dbt.datediff(first_date, second_date, 'day') }} * 24 + date_part('hour', ({{second_date}})::timestamp) - date_part('hour', ({{first_date}})::timestamp))\n {% elif datepart == 'minute' %}\n ({{ dbt.datediff(first_date, second_date, 'hour') }} * 60 + date_part('minute', ({{second_date}})::timestamp) - date_part('minute', ({{first_date}})::timestamp))\n {% elif datepart == 'second' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60 + floor(date_part('second', ({{second_date}})::timestamp)) - floor(date_part('second', ({{first_date}})::timestamp)))\n {% elif datepart == 'millisecond' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60000 + floor(date_part('millisecond', ({{second_date}})::timestamp)) - floor(date_part('millisecond', ({{first_date}})::timestamp)))\n {% elif datepart == 'microsecond' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60000000 + floor(date_part('microsecond', ({{second_date}})::timestamp)) - floor(date_part('microsecond', ({{first_date}})::timestamp)))\n {% else %}\n {{ exceptions.raise_compiler_error(\"Unsupported datepart for macro datediff in postgres: {!r}\".format(datepart)) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.073396, "supported_languages": null}, "macro.fivetran_utils.try_cast": {"name": "try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.try_cast", "macro_sql": "{% macro try_cast(field, type) %}\n {{ adapter.dispatch('try_cast', 'fivetran_utils') (field, type) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.bigquery__try_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.075673, "supported_languages": null}, "macro.fivetran_utils.default__try_cast": {"name": "default__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.default__try_cast", "macro_sql": "{% macro default__try_cast(field, type) %}\n {# most databases don't support this function yet\n so we just need to use cast #}\n cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.076124, "supported_languages": null}, "macro.fivetran_utils.redshift__try_cast": {"name": "redshift__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.redshift__try_cast", "macro_sql": "{% macro redshift__try_cast(field, type) %}\n{%- if type == 'numeric' -%}\n\n case\n when trim({{field}}) ~ '^(0|[1-9][0-9]*)$' then trim({{field}})\n else null\n end::{{type}}\n\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"non-numeric datatypes are not currently supported\") }}\n\n{% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.076993, "supported_languages": null}, "macro.fivetran_utils.postgres__try_cast": {"name": "postgres__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.postgres__try_cast", "macro_sql": "{% macro postgres__try_cast(field, type) %}\n{%- if type == 'numeric' -%}\n\n case\n when replace(cast({{field}} as varchar),cast(' ' as varchar),cast('' as varchar)) ~ '^(0|[1-9][0-9]*)$' \n then replace(cast({{field}} as varchar),cast(' ' as varchar),cast('' as varchar))\n else null\n end::{{type}}\n\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"non-numeric datatypes are not currently supported\") }}\n\n{% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.0778801, "supported_languages": null}, "macro.fivetran_utils.snowflake__try_cast": {"name": "snowflake__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.snowflake__try_cast", "macro_sql": "{% macro snowflake__try_cast(field, type) %}\n try_cast(cast({{field}} as varchar) as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.078301, "supported_languages": null}, "macro.fivetran_utils.bigquery__try_cast": {"name": "bigquery__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.bigquery__try_cast", "macro_sql": "{% macro bigquery__try_cast(field, type) %}\n safe_cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.078709, "supported_languages": null}, "macro.fivetran_utils.spark__try_cast": {"name": "spark__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.spark__try_cast", "macro_sql": "{% macro spark__try_cast(field, type) %}\n try_cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.0791192, "supported_languages": null}, "macro.fivetran_utils.sqlserver__try_cast": {"name": "sqlserver__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.sqlserver__try_cast", "macro_sql": "{% macro sqlserver__try_cast(field, type) %}\n try_cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.079535, "supported_languages": null}, "macro.fivetran_utils.source_relation": {"name": "source_relation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/source_relation.sql", "original_file_path": "macros/source_relation.sql", "unique_id": "macro.fivetran_utils.source_relation", "macro_sql": "{% macro source_relation(union_schema_variable='union_schemas', union_database_variable='union_databases') -%}\n\n{{ adapter.dispatch('source_relation', 'fivetran_utils') (union_schema_variable, union_database_variable) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__source_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.080845, "supported_languages": null}, "macro.fivetran_utils.default__source_relation": {"name": "default__source_relation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/source_relation.sql", "original_file_path": "macros/source_relation.sql", "unique_id": "macro.fivetran_utils.default__source_relation", "macro_sql": "{% macro default__source_relation(union_schema_variable, union_database_variable) %}\n\n{% if var(union_schema_variable, none) %}\n, case\n {% for schema in var(union_schema_variable) %}\n when lower(replace(replace(_dbt_source_relation,'\"',''),'`','')) like '%.{{ schema|lower }}.%' then '{{ schema|lower }}'\n {% endfor %}\n end as source_relation\n{% elif var(union_database_variable, none) %}\n, case\n {% for database in var(union_database_variable) %}\n when lower(replace(replace(_dbt_source_relation,'\"',''),'`','')) like '%{{ database|lower }}.%' then '{{ database|lower }}'\n {% endfor %}\n end as source_relation\n{% else %}\n, cast('' as {{ dbt.type_string() }}) as source_relation\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.082676, "supported_languages": null}, "macro.fivetran_utils.first_value": {"name": "first_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "unique_id": "macro.fivetran_utils.first_value", "macro_sql": "{% macro first_value(first_value_field, partition_field, order_by_field, order=\"asc\") -%}\n\n{{ adapter.dispatch('first_value', 'fivetran_utils') (first_value_field, partition_field, order_by_field, order) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__first_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.084052, "supported_languages": null}, "macro.fivetran_utils.default__first_value": {"name": "default__first_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "unique_id": "macro.fivetran_utils.default__first_value", "macro_sql": "{% macro default__first_value(first_value_field, partition_field, order_by_field, order=\"asc\") %}\n\n first_value( {{ first_value_field }} ignore nulls ) over (partition by {{ partition_field }} order by {{ order_by_field }} {{ order }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.084724, "supported_languages": null}, "macro.fivetran_utils.redshift__first_value": {"name": "redshift__first_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "unique_id": "macro.fivetran_utils.redshift__first_value", "macro_sql": "{% macro redshift__first_value(first_value_field, partition_field, order_by_field, order=\"asc\") %}\n\n first_value( {{ first_value_field }} ignore nulls ) over (partition by {{ partition_field }} order by {{ order_by_field }} {{ order }} , {{ partition_field }} rows unbounded preceding )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.0854652, "supported_languages": null}, "macro.fivetran_utils.add_dbt_source_relation": {"name": "add_dbt_source_relation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/add_dbt_source_relation.sql", "original_file_path": "macros/add_dbt_source_relation.sql", "unique_id": "macro.fivetran_utils.add_dbt_source_relation", "macro_sql": "{% macro add_dbt_source_relation() %}\n\n{% if var('union_schemas', none) or var('union_databases', none) %}\n, _dbt_source_relation\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.086259, "supported_languages": null}, "macro.fivetran_utils.add_pass_through_columns": {"name": "add_pass_through_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/add_pass_through_columns.sql", "original_file_path": "macros/add_pass_through_columns.sql", "unique_id": "macro.fivetran_utils.add_pass_through_columns", "macro_sql": "{% macro add_pass_through_columns(base_columns, pass_through_var) %}\n\n {% if pass_through_var %}\n\n {% for column in pass_through_var %}\n\n {% if column is mapping %}\n\n {% if column.alias %}\n\n {% do base_columns.append({ \"name\": column.name, \"alias\": column.alias, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n\n {% else %}\n\n {% do base_columns.append({ \"name\": column.name, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n \n {% endif %}\n\n {% else %}\n\n {% do base_columns.append({ \"name\": column, \"datatype\": dbt.type_string()}) %}\n\n {% endif %}\n\n {% endfor %}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.08955, "supported_languages": null}, "macro.fivetran_utils.union_relations": {"name": "union_relations", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_relations.sql", "original_file_path": "macros/union_relations.sql", "unique_id": "macro.fivetran_utils.union_relations", "macro_sql": "{%- macro union_relations(relations, aliases=none, column_override=none, include=[], exclude=[], source_column_name=none) -%}\n\n {%- if exclude and include -%}\n {{ exceptions.raise_compiler_error(\"Both an exclude and include list were provided to the `union` macro. Only one is allowed\") }}\n {%- endif -%}\n\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. -#}\n {%- if not execute %}\n {{ return('') }}\n {% endif -%}\n\n {%- set column_override = column_override if column_override is not none else {} -%}\n {%- set source_column_name = source_column_name if source_column_name is not none else '_dbt_source_relation' -%}\n\n {%- set relation_columns = {} -%}\n {%- set column_superset = {} -%}\n\n {%- for relation in relations -%}\n\n {%- do relation_columns.update({relation: []}) -%}\n\n {%- do dbt_utils._is_relation(relation, 'union_relations') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) -%}\n {%- for col in cols -%}\n\n {#- If an exclude list was provided and the column is in the list, do nothing -#}\n {%- if exclude and col.column in exclude -%}\n\n {#- If an include list was provided and the column is not in the list, do nothing -#}\n {%- elif include and col.column not in include -%}\n\n {#- Otherwise add the column to the column superset -#}\n {%- else -%}\n\n {#- update the list of columns in this relation -#}\n {%- do relation_columns[relation].append(col.column) -%}\n\n {%- if col.column in column_superset -%}\n\n {%- set stored = column_superset[col.column] -%}\n {%- if col.is_string() and stored.is_string() and col.string_size() > stored.string_size() -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif %}\n\n {%- else -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif -%}\n\n {%- endif -%}\n\n {%- endfor -%}\n {%- endfor -%}\n\n {%- set ordered_column_names = column_superset.keys() -%}\n\n {%- for relation in relations %}\n\n (\n select\n\n cast({{ dbt.string_literal(relation) }} as {{ dbt.type_string() }}) as {{ source_column_name }},\n {% for col_name in ordered_column_names -%}\n\n {%- set col = column_superset[col_name] %}\n {%- set col_type = column_override.get(col.column, col.data_type) %}\n {%- set col_name = adapter.quote(col_name) if col_name in relation_columns[relation] else 'null' %}\n cast({{ col_name }} as {{ col_type }}) as {{ col.quoted }} {% if not loop.last %},{% endif -%}\n\n {%- endfor %}\n\n from {{ aliases[loop.index0] if aliases else relation }}\n )\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt.string_literal", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.1007948, "supported_languages": null}, "macro.fivetran_utils.union_tables": {"name": "union_tables", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_relations.sql", "original_file_path": "macros/union_relations.sql", "unique_id": "macro.fivetran_utils.union_tables", "macro_sql": "{%- macro union_tables(tables, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_table') -%}\n\n {%- do exceptions.warn(\"Warning: the `union_tables` macro is no longer supported and will be deprecated in a future release of dbt-utils. Use the `union_relations` macro instead\") -%}\n\n {{ return(dbt_utils.union_relations(tables, column_override, include, exclude, source_column_name)) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_utils.union_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.101986, "supported_languages": null}, "macro.fivetran_utils.snowflake_seed_data": {"name": "snowflake_seed_data", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/snowflake_seed_data.sql", "original_file_path": "macros/snowflake_seed_data.sql", "unique_id": "macro.fivetran_utils.snowflake_seed_data", "macro_sql": "{% macro snowflake_seed_data(seed_name) %}\n\n{% if target.type == 'snowflake' %}\n{{ return(ref(seed_name ~ '_snowflake')) }}\n{% else %}\n{{ return(ref(seed_name)) }}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.103214, "supported_languages": null}, "macro.fivetran_utils.fill_staging_columns": {"name": "fill_staging_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fill_staging_columns.sql", "original_file_path": "macros/fill_staging_columns.sql", "unique_id": "macro.fivetran_utils.fill_staging_columns", "macro_sql": "{% macro fill_staging_columns(source_columns, staging_columns) -%}\n\n{%- set source_column_names = source_columns|map(attribute='name')|map('lower')|list -%}\n\n{%- for column in staging_columns %}\n {% if column.name|lower in source_column_names -%}\n {{ fivetran_utils.quote_column(column) }} as \n {%- if 'alias' in column %} {{ column.alias }} {% else %} {{ fivetran_utils.quote_column(column) }} {%- endif -%}\n {%- else -%}\n cast(null as {{ column.datatype }})\n {%- if 'alias' in column %} as {{ column.alias }} {% else %} as {{ fivetran_utils.quote_column(column) }} {% endif -%}\n {%- endif -%}\n {%- if not loop.last -%} , {% endif -%}\n{% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.quote_column"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.108296, "supported_languages": null}, "macro.fivetran_utils.quote_column": {"name": "quote_column", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fill_staging_columns.sql", "original_file_path": "macros/fill_staging_columns.sql", "unique_id": "macro.fivetran_utils.quote_column", "macro_sql": "{% macro quote_column(column) %}\n {% if 'quote' in column %}\n {% if column.quote %}\n {% if target.type in ('bigquery', 'spark', 'databricks') %}\n `{{ column.name }}`\n {% elif target.type == 'snowflake' %}\n \"{{ column.name | upper }}\"\n {% else %}\n \"{{ column.name }}\"\n {% endif %}\n {% else %}\n {{ column.name }}\n {% endif %}\n {% else %}\n {{ column.name }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.1101959, "supported_languages": null}, "macro.fivetran_utils.json_extract": {"name": "json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.json_extract", "macro_sql": "{% macro json_extract(string, string_path) -%}\n\n{{ adapter.dispatch('json_extract', 'fivetran_utils') (string, string_path) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.bigquery__json_extract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.11221, "supported_languages": null}, "macro.fivetran_utils.default__json_extract": {"name": "default__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.default__json_extract", "macro_sql": "{% macro default__json_extract(string, string_path) %}\n\n json_extract_path_text({{string}}, {{ \"'\" ~ string_path ~ \"'\" }} )\n \n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.1127732, "supported_languages": null}, "macro.fivetran_utils.snowflake__json_extract": {"name": "snowflake__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.snowflake__json_extract", "macro_sql": "{% macro snowflake__json_extract(string, string_path) %}\n\n json_extract_path_text(try_parse_json( {{string}} ), {{ \"'\" ~ string_path ~ \"'\" }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.1133041, "supported_languages": null}, "macro.fivetran_utils.redshift__json_extract": {"name": "redshift__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.redshift__json_extract", "macro_sql": "{% macro redshift__json_extract(string, string_path) %}\n\n case when is_valid_json( {{string}} ) then json_extract_path_text({{string}}, {{ \"'\" ~ string_path ~ \"'\" }} ) else null end\n \n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.113885, "supported_languages": null}, "macro.fivetran_utils.bigquery__json_extract": {"name": "bigquery__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.bigquery__json_extract", "macro_sql": "{% macro bigquery__json_extract(string, string_path) %}\n\n json_extract_scalar({{string}}, {{ \"'$.\" ~ string_path ~ \"'\" }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.114401, "supported_languages": null}, "macro.fivetran_utils.postgres__json_extract": {"name": "postgres__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.postgres__json_extract", "macro_sql": "{% macro postgres__json_extract(string, string_path) %}\n\n {{string}}::json->>{{\"'\" ~ string_path ~ \"'\" }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.114914, "supported_languages": null}, "macro.fivetran_utils.collect_freshness": {"name": "collect_freshness", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/collect_freshness.sql", "original_file_path": "macros/collect_freshness.sql", "unique_id": "macro.fivetran_utils.collect_freshness", "macro_sql": "{% macro collect_freshness(source, loaded_at_field, filter) %}\n {{ return(adapter.dispatch('collect_freshness')(source, loaded_at_field, filter))}}\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.117028, "supported_languages": null}, "macro.fivetran_utils.default__collect_freshness": {"name": "default__collect_freshness", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/collect_freshness.sql", "original_file_path": "macros/collect_freshness.sql", "unique_id": "macro.fivetran_utils.default__collect_freshness", "macro_sql": "{% macro default__collect_freshness(source, loaded_at_field, filter) %}\n {% call statement('collect_freshness', fetch_result=True, auto_begin=False) -%}\n\n {%- set enabled_array = [] -%}\n {% for node in graph.sources.values() %}\n {% if node.identifier == source.identifier %}\n {% if (node.meta['is_enabled'] | default(true)) %}\n {%- do enabled_array.append(1) -%}\n {% endif %}\n {% endif %}\n {% endfor %}\n {% set is_enabled = (enabled_array != []) %}\n\n select\n {% if is_enabled %}\n max({{ loaded_at_field }})\n {% else %} \n {{ current_timestamp() }} {% endif %} as max_loaded_at,\n {{ current_timestamp() }} as snapshotted_at\n\n {% if is_enabled %}\n from {{ source }}\n {% if filter %}\n where {{ filter }}\n {% endif %}\n {% endif %}\n\n {% endcall %}\n\n {% if dbt_version.split('.') | map('int') | list >= [1, 5, 0] %}\n {{ return(load_result('collect_freshness')) }}\n {% else %}\n {{ return(load_result('collect_freshness').table) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.120956, "supported_languages": null}, "macro.fivetran_utils.timestamp_add": {"name": "timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.timestamp_add", "macro_sql": "{% macro timestamp_add(datepart, interval, from_timestamp) -%}\n\n{{ adapter.dispatch('timestamp_add', 'fivetran_utils') (datepart, interval, from_timestamp) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.bigquery__timestamp_add"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.122729, "supported_languages": null}, "macro.fivetran_utils.default__timestamp_add": {"name": "default__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.default__timestamp_add", "macro_sql": "{% macro default__timestamp_add(datepart, interval, from_timestamp) %}\n\n timestampadd(\n {{ datepart }},\n {{ interval }},\n {{ from_timestamp }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.1232908, "supported_languages": null}, "macro.fivetran_utils.bigquery__timestamp_add": {"name": "bigquery__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.bigquery__timestamp_add", "macro_sql": "{% macro bigquery__timestamp_add(datepart, interval, from_timestamp) %}\n\n timestamp_add({{ from_timestamp }}, interval {{ interval }} {{ datepart }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.123829, "supported_languages": null}, "macro.fivetran_utils.redshift__timestamp_add": {"name": "redshift__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.redshift__timestamp_add", "macro_sql": "{% macro redshift__timestamp_add(datepart, interval, from_timestamp) %}\n\n dateadd(\n {{ datepart }},\n {{ interval }},\n {{ from_timestamp }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.124367, "supported_languages": null}, "macro.fivetran_utils.postgres__timestamp_add": {"name": "postgres__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.postgres__timestamp_add", "macro_sql": "{% macro postgres__timestamp_add(datepart, interval, from_timestamp) %}\n\n {{ from_timestamp }} + ((interval '1 {{ datepart }}') * ({{ interval }}))\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.124904, "supported_languages": null}, "macro.fivetran_utils.spark__timestamp_add": {"name": "spark__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.spark__timestamp_add", "macro_sql": "{% macro spark__timestamp_add(datepart, interval, from_timestamp) %}\n\n {{ dbt.dateadd(datepart, interval, from_timestamp) }}\n \n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.125485, "supported_languages": null}, "macro.fivetran_utils.ceiling": {"name": "ceiling", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "unique_id": "macro.fivetran_utils.ceiling", "macro_sql": "{% macro ceiling(num) -%}\n\n{{ adapter.dispatch('ceiling', 'fivetran_utils') (num) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__ceiling"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.1262631, "supported_languages": null}, "macro.fivetran_utils.default__ceiling": {"name": "default__ceiling", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "unique_id": "macro.fivetran_utils.default__ceiling", "macro_sql": "{% macro default__ceiling(num) %}\n ceiling({{ num }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.126615, "supported_languages": null}, "macro.fivetran_utils.snowflake__ceiling": {"name": "snowflake__ceiling", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "unique_id": "macro.fivetran_utils.snowflake__ceiling", "macro_sql": "{% macro snowflake__ceiling(num) %}\n ceil({{ num }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.126948, "supported_languages": null}, "macro.fivetran_utils.remove_prefix_from_columns": {"name": "remove_prefix_from_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/remove_prefix_from_columns.sql", "original_file_path": "macros/remove_prefix_from_columns.sql", "unique_id": "macro.fivetran_utils.remove_prefix_from_columns", "macro_sql": "{% macro remove_prefix_from_columns(columns, prefix='', exclude=[]) %}\n\n {%- for col in columns if col.name not in exclude -%}\n {%- if col.name[:prefix|length]|lower == prefix -%}\n {{ col.name }} as {{ col.name[prefix|length:] }}\n {%- else -%}\n {{ col.name }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {% endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.129026, "supported_languages": null}, "macro.fivetran_utils.fivetran_date_spine": {"name": "fivetran_date_spine", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fivetran_date_spine.sql", "original_file_path": "macros/fivetran_date_spine.sql", "unique_id": "macro.fivetran_utils.fivetran_date_spine", "macro_sql": "{% macro fivetran_date_spine(datepart, start_date, end_date) -%}\n\n{{ return(adapter.dispatch('fivetran_date_spine', 'fivetran_utils') (datepart, start_date, end_date)) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__fivetran_date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.132004, "supported_languages": null}, "macro.fivetran_utils.default__fivetran_date_spine": {"name": "default__fivetran_date_spine", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fivetran_date_spine.sql", "original_file_path": "macros/fivetran_date_spine.sql", "unique_id": "macro.fivetran_utils.default__fivetran_date_spine", "macro_sql": "{% macro default__fivetran_date_spine(datepart, start_date, end_date) %}\n\n {{ dbt_utils.date_spine(datepart, start_date, end_date) }}\n \n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.13257, "supported_languages": null}, "macro.fivetran_utils.sqlserver__fivetran_date_spine": {"name": "sqlserver__fivetran_date_spine", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fivetran_date_spine.sql", "original_file_path": "macros/fivetran_date_spine.sql", "unique_id": "macro.fivetran_utils.sqlserver__fivetran_date_spine", "macro_sql": "{% macro sqlserver__fivetran_date_spine(datepart, start_date, end_date) -%}\n\n {% set date_spine_query %}\n with\n\n l0 as (\n\n select c\n from (select 1 union all select 1) as d(c)\n\n ),\n l1 as (\n\n select\n 1 as c\n from l0 as a\n cross join l0 as b\n\n ),\n\n l2 as (\n\n select 1 as c\n from l1 as a\n cross join l1 as b\n ),\n\n l3 as (\n\n select 1 as c\n from l2 as a\n cross join l2 as b\n ),\n\n l4 as (\n\n select 1 as c\n from l3 as a\n cross join l3 as b\n ),\n\n l5 as (\n\n select 1 as c\n from l4 as a\n cross join l4 as b\n ),\n\n nums as (\n\n select row_number() over (order by (select null)) as rownum\n from l5\n ),\n\n rawdata as (\n\n select top ({{dbt.datediff(start_date, end_date, datepart)}}) rownum -1 as n\n from nums\n order by rownum\n ),\n\n all_periods as (\n\n select (\n {{\n dbt.dateadd(\n datepart,\n 'n',\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n ),\n\n filtered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n )\n\n select * from filtered\n order by 1\n\n {% endset %}\n\n {% set results = run_query(date_spine_query) %}\n\n {% if execute %}\n\n {% set results_list = results.columns[0].values() %}\n \n {% else %}\n\n {% set results_list = [] %}\n\n {% endif %}\n\n {%- for date_field in results_list %}\n select cast('{{ date_field }}' as date) as date_{{datepart}} {{ 'union all ' if not loop.last else '' }}\n {% endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.datediff", "macro.dbt.dateadd", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.135078, "supported_languages": null}, "macro.fivetran_utils.union_data": {"name": "union_data", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_data.sql", "original_file_path": "macros/union_data.sql", "unique_id": "macro.fivetran_utils.union_data", "macro_sql": "{%- macro union_data(table_identifier, database_variable, schema_variable, default_database, default_schema, default_variable, union_schema_variable='union_schemas', union_database_variable='union_databases') -%}\n\n{{ adapter.dispatch('union_data', 'fivetran_utils') (\n table_identifier, \n database_variable, \n schema_variable, \n default_database, \n default_schema, \n default_variable,\n union_schema_variable,\n union_database_variable\n ) }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.fivetran_utils.default__union_data"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.1426592, "supported_languages": null}, "macro.fivetran_utils.default__union_data": {"name": "default__union_data", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_data.sql", "original_file_path": "macros/union_data.sql", "unique_id": "macro.fivetran_utils.default__union_data", "macro_sql": "{%- macro default__union_data(\n table_identifier, \n database_variable, \n schema_variable, \n default_database, \n default_schema, \n default_variable,\n union_schema_variable,\n union_database_variable\n ) -%}\n\n{%- if var(union_schema_variable, none) -%}\n\n {%- set relations = [] -%}\n \n {%- if var(union_schema_variable) is string -%}\n {%- set trimmed = var(union_schema_variable)|trim('[')|trim(']') -%}\n {%- set schemas = trimmed.split(',')|map('trim',\" \")|map('trim','\"')|map('trim',\"'\") -%}\n {%- else -%}\n {%- set schemas = var(union_schema_variable) -%}\n {%- endif -%}\n\n {%- for schema in var(union_schema_variable) -%}\n {%- set relation=adapter.get_relation(\n database=source(schema, table_identifier).database if var('has_defined_sources', false) else var(database_variable, default_database),\n schema=source(schema, table_identifier).schema if var('has_defined_sources', false) else schema,\n identifier=source(schema, table_identifier).identifier if var('has_defined_sources', false) else table_identifier\n ) -%}\n \n {%- set relation_exists=relation is not none -%}\n\n {%- if relation_exists -%}\n {%- do relations.append(relation) -%}\n {%- endif -%}\n\n {%- endfor -%}\n \n {%- if relations != [] -%}\n {{ dbt_utils.union_relations(relations) }}\n {%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit 0\n {%- endif -%}\n\n{%- elif var(union_database_variable, none) -%}\n\n {%- set relations = [] -%}\n\n {%- for database in var(union_database_variable) -%}\n {%- set relation=adapter.get_relation(\n database=source(schema, table_identifier).database if var('has_defined_sources', false) else database,\n schema=source(schema, table_identifier).schema if var('has_defined_sources', false) else var(schema_variable, default_schema),\n identifier=source(schema, table_identifier).identifier if var('has_defined_sources', false) else table_identifier\n ) -%}\n\n {%- set relation_exists=relation is not none -%}\n\n {%- if relation_exists -%}\n {%- do relations.append(relation) -%}\n {%- endif -%}\n\n {%- endfor -%}\n\n {%- if relations != [] -%}\n {{ dbt_utils.union_relations(relations) }}\n {%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit 0\n {%- endif -%}\n\n{%- else -%}\n {% set exception_schemas = {\"linkedin_company_pages\": \"linkedin_pages\", \"instagram_business_pages\": \"instagram_business\"} %}\n {% set relation = namespace(value=\"\") %}\n {% if default_schema in exception_schemas.keys() %}\n {% for corrected_schema_name in exception_schemas.items() %} \n {% if default_schema in corrected_schema_name %}\n {# In order for this macro to effectively work within upstream integration tests (mainly used by the Fivetran dbt package maintainers), this identifier variable selection is required to use the macro with different identifier names. #}\n {% set identifier_var = corrected_schema_name[1] + \"_\" + table_identifier + \"_identifier\" %}\n {%- set relation.value=adapter.get_relation(\n database=source(corrected_schema_name[1], table_identifier).database,\n schema=source(corrected_schema_name[1], table_identifier).schema,\n identifier=var(identifier_var, table_identifier)\n ) -%}\n {% endif %}\n {% endfor %}\n {% else %}\n {# In order for this macro to effectively work within upstream integration tests (mainly used by the Fivetran dbt package maintainers), this identifier variable selection is required to use the macro with different identifier names. #}\n {% set identifier_var = default_schema + \"_\" + table_identifier + \"_identifier\" %}\n {# Unfortunately the Twitter Organic identifiers were misspelled. As such, we will need to account for this in the model. This will be adjusted in the Twitter Organic package, but to ensure backwards compatibility, this needs to be included. #}\n {% if var(identifier_var, none) is none %} \n {% set identifier_var = default_schema + \"_\" + table_identifier + \"_identifer\" %}\n {% endif %}\n {%- set relation.value=adapter.get_relation(\n database=source(default_schema, table_identifier).database,\n schema=source(default_schema, table_identifier).schema,\n identifier=var(identifier_var, table_identifier)\n ) -%}\n {% endif %}\n{%- set table_exists=relation.value is not none -%}\n\n{%- if table_exists -%}\n select * \n from {{ relation.value }}\n{%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit 0\n{%- endif -%}\n{%- endif -%}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_utils.union_relations", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.15677, "supported_languages": null}, "macro.fivetran_utils.dummy_coalesce_value": {"name": "dummy_coalesce_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/dummy_coalesce_value.sql", "original_file_path": "macros/dummy_coalesce_value.sql", "unique_id": "macro.fivetran_utils.dummy_coalesce_value", "macro_sql": "{% macro dummy_coalesce_value(column) %}\n\n{% set coalesce_value = {\n 'STRING': \"'DUMMY_STRING'\",\n 'BOOLEAN': 'null',\n 'INT': 999999999,\n 'FLOAT': 999999999.99,\n 'TIMESTAMP': 'cast(\"2099-12-31\" as timestamp)',\n 'DATE': 'cast(\"2099-12-31\" as date)',\n} %}\n\n{% if column.is_float() %}\n{{ return(coalesce_value['FLOAT']) }}\n\n{% elif column.is_numeric() %}\n{{ return(coalesce_value['INT']) }}\n\n{% elif column.is_string() %}\n{{ return(coalesce_value['STRING']) }}\n\n{% elif column.data_type|lower == 'boolean' %}\n{{ return(coalesce_value['BOOLEAN']) }}\n\n{% elif 'timestamp' in column.data_type|lower %}\n{{ return(coalesce_value['TIMESTAMP']) }}\n\n{% elif 'date' in column.data_type|lower %}\n{{ return(coalesce_value['DATE']) }}\n\n{% elif 'int' in column.data_type|lower %}\n{{ return(coalesce_value['INT']) }}\n\n{% endif %}\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.1611772, "supported_languages": null}, "macro.fivetran_utils.extract_url_parameter": {"name": "extract_url_parameter", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/extract_url_parameter.sql", "original_file_path": "macros/extract_url_parameter.sql", "unique_id": "macro.fivetran_utils.extract_url_parameter", "macro_sql": "{% macro extract_url_parameter(field, url_parameter) -%}\n\n{{ adapter.dispatch('extract_url_parameter', 'fivetran_utils') (field, url_parameter) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__extract_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.1621912, "supported_languages": null}, "macro.fivetran_utils.default__extract_url_parameter": {"name": "default__extract_url_parameter", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/extract_url_parameter.sql", "original_file_path": "macros/extract_url_parameter.sql", "unique_id": "macro.fivetran_utils.default__extract_url_parameter", "macro_sql": "{% macro default__extract_url_parameter(field, url_parameter) -%}\n\n{{ dbt_utils.get_url_parameter(field, url_parameter) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.1626759, "supported_languages": null}, "macro.fivetran_utils.spark__extract_url_parameter": {"name": "spark__extract_url_parameter", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/extract_url_parameter.sql", "original_file_path": "macros/extract_url_parameter.sql", "unique_id": "macro.fivetran_utils.spark__extract_url_parameter", "macro_sql": "{% macro spark__extract_url_parameter(field, url_parameter) -%}\n\n{%- set formatted_url_parameter = \"'\" + url_parameter + \"=([^&]+)'\" -%}\nnullif(regexp_extract({{ field }}, {{ formatted_url_parameter }}, 1), '')\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.163311, "supported_languages": null}, "macro.fivetran_utils.wrap_in_quotes": {"name": "wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.wrap_in_quotes", "macro_sql": "{%- macro wrap_in_quotes(object_to_quote) -%}\n\n{{ return(adapter.dispatch('wrap_in_quotes', 'fivetran_utils')(object_to_quote)) }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.fivetran_utils.default__wrap_in_quotes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.164279, "supported_languages": null}, "macro.fivetran_utils.default__wrap_in_quotes": {"name": "default__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.default__wrap_in_quotes", "macro_sql": "{%- macro default__wrap_in_quotes(object_to_quote) -%}\n{# bigquery, spark, databricks #}\n `{{ object_to_quote }}`\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.164714, "supported_languages": null}, "macro.fivetran_utils.snowflake__wrap_in_quotes": {"name": "snowflake__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.snowflake__wrap_in_quotes", "macro_sql": "{%- macro snowflake__wrap_in_quotes(object_to_quote) -%}\n \"{{ object_to_quote | upper }}\"\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.1651049, "supported_languages": null}, "macro.fivetran_utils.redshift__wrap_in_quotes": {"name": "redshift__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.redshift__wrap_in_quotes", "macro_sql": "{%- macro redshift__wrap_in_quotes(object_to_quote) -%}\n \"{{ object_to_quote }}\"\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.165442, "supported_languages": null}, "macro.fivetran_utils.postgres__wrap_in_quotes": {"name": "postgres__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.postgres__wrap_in_quotes", "macro_sql": "{%- macro postgres__wrap_in_quotes(object_to_quote) -%}\n \"{{ object_to_quote }}\"\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.165781, "supported_languages": null}, "macro.fivetran_utils.array_agg": {"name": "array_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "unique_id": "macro.fivetran_utils.array_agg", "macro_sql": "{% macro array_agg(field_to_agg) -%}\n\n{{ adapter.dispatch('array_agg', 'fivetran_utils') (field_to_agg) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__array_agg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.166558, "supported_languages": null}, "macro.fivetran_utils.default__array_agg": {"name": "default__array_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "unique_id": "macro.fivetran_utils.default__array_agg", "macro_sql": "{% macro default__array_agg(field_to_agg) %}\n array_agg({{ field_to_agg }})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.1668968, "supported_languages": null}, "macro.fivetran_utils.redshift__array_agg": {"name": "redshift__array_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "unique_id": "macro.fivetran_utils.redshift__array_agg", "macro_sql": "{% macro redshift__array_agg(field_to_agg) %}\n listagg({{ field_to_agg }}, ',')\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.167228, "supported_languages": null}, "macro.fivetran_utils.empty_variable_warning": {"name": "empty_variable_warning", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/empty_variable_warning.sql", "original_file_path": "macros/empty_variable_warning.sql", "unique_id": "macro.fivetran_utils.empty_variable_warning", "macro_sql": "{% macro empty_variable_warning(variable, downstream_model) %}\n\n{% if not var(variable) %}\n{{ log(\n \"\"\"\n Warning: You have passed an empty list to the \"\"\" ~ variable ~ \"\"\".\n As a result, you won't see the history of any columns in the \"\"\" ~ downstream_model ~ \"\"\" model.\n \"\"\",\n info=True\n) }}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.168403, "supported_languages": null}, "macro.fivetran_utils.enabled_vars_one_true": {"name": "enabled_vars_one_true", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/enabled_vars_one_true.sql", "original_file_path": "macros/enabled_vars_one_true.sql", "unique_id": "macro.fivetran_utils.enabled_vars_one_true", "macro_sql": "{% macro enabled_vars_one_true(vars) %}\n\n{% for v in vars %}\n \n {% if var(v, False) == True %}\n {{ return(True) }}\n {% endif %}\n\n{% endfor %}\n\n{{ return(False) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.169609, "supported_languages": null}, "macro.servicenow.get_change_request_columns": {"name": "get_change_request_columns", "resource_type": "macro", "package_name": "servicenow", "path": "macros/get_change_request_columns.sql", "original_file_path": "macros/get_change_request_columns.sql", "unique_id": "macro.servicenow.get_change_request_columns", "macro_sql": "{% macro get_change_request_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"backout_plan\", \"datatype\": dbt.type_string()},\n {\"name\": \"cab_date\", \"datatype\": \"date\"},\n {\"name\": \"cab_date_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"cab_delegate_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"cab_delegate_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"cab_recommendation\", \"datatype\": dbt.type_string()},\n {\"name\": \"cab_required\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"category\", \"datatype\": dbt.type_string()},\n {\"name\": \"change_plan\", \"datatype\": dbt.type_string()},\n {\"name\": \"chg_model_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"chg_model_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"close_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"conflict_last_run\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"conflict_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"end_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"implementation_plan\", \"datatype\": dbt.type_string()},\n {\"name\": \"justification\", \"datatype\": dbt.type_string()},\n {\"name\": \"on_hold\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"on_hold_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"on_hold_task\", \"datatype\": dbt.type_string()},\n {\"name\": \"outside_maintenance_schedule\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"phase\", \"datatype\": dbt.type_string()},\n {\"name\": \"phase_state\", \"datatype\": dbt.type_string()},\n {\"name\": \"production_system\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"requested_by_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"requested_by_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"requested_by_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"review_comments\", \"datatype\": dbt.type_string()},\n {\"name\": \"review_date\", \"datatype\": \"date\"},\n {\"name\": \"review_status\", \"datatype\": dbt.type_int()},\n {\"name\": \"risk\", \"datatype\": dbt.type_int()},\n {\"name\": \"risk_impact_analysis\", \"datatype\": dbt.type_string()},\n {\"name\": \"scope\", \"datatype\": dbt.type_int()},\n {\"name\": \"start_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"std_change_producer_version_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"std_change_producer_version_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_created_on\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"sys_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_updated_on\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"test_plan\", \"datatype\": dbt.type_string()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"unauthorized\", \"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", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.1840389, "supported_languages": null}, "macro.servicenow.get_task_sla_columns": {"name": "get_task_sla_columns", "resource_type": "macro", "package_name": "servicenow", "path": "macros/get_task_sla_columns.sql", "original_file_path": "macros/get_task_sla_columns.sql", "unique_id": "macro.servicenow.get_task_sla_columns", "macro_sql": "{% macro get_task_sla_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"active\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"business_duration\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"business_pause_duration\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"business_percentage\", \"datatype\": dbt.type_float()},\n {\"name\": \"business_time_left\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"duration\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"end_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"has_breached\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"original_breach_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"pause_duration\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"pause_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"percentage\", \"datatype\": dbt.type_float()},\n {\"name\": \"planned_end_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"schedule_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"schedule_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"sla_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"sla_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"stage\", \"datatype\": dbt.type_string()},\n {\"name\": \"start_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"sys_created_by\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_created_on\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"sys_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_mod_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"sys_updated_by\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_updated_on\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"task_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"task_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"time_left\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"timezone\", \"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", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.193974, "supported_languages": null}, "macro.servicenow.get_core_company_columns": {"name": "get_core_company_columns", "resource_type": "macro", "package_name": "servicenow", "path": "macros/get_core_company_columns.sql", "original_file_path": "macros/get_core_company_columns.sql", "unique_id": "macro.servicenow.get_core_company_columns", "macro_sql": "{% macro get_core_company_columns() %}\n\n{% set columns = [\n\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"sys_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"city\", \"datatype\": dbt.type_string()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"fax_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"fiscal_year\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"notes\", \"datatype\": dbt.type_string()},\n {\"name\": \"phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"state\", \"datatype\": dbt.type_string()},\n {\"name\": \"street\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_class_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_created_by\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_created_on\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_mod_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"sys_updated_by\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_updated_on\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"vendor\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"vendor_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"website\", \"datatype\": dbt.type_string()},\n {\"name\": \"zip\", \"datatype\": dbt.type_int()}\n\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.201395, "supported_languages": null}, "macro.servicenow.get_cmdb_ci_service_columns": {"name": "get_cmdb_ci_service_columns", "resource_type": "macro", "package_name": "servicenow", "path": "macros/get_cmdb_ci_service_columns.sql", "original_file_path": "macros/get_cmdb_ci_service_columns.sql", "unique_id": "macro.servicenow.get_cmdb_ci_service_columns", "macro_sql": "{% macro get_cmdb_ci_service_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"attributes\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_unit_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_unit_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"category\", \"datatype\": dbt.type_string()},\n {\"name\": \"company_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"company_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"cost\", \"datatype\": dbt.type_float()},\n {\"name\": \"cost_cc\", \"datatype\": dbt.type_string()},\n {\"name\": \"cost_center_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"cost_center_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"managed_by_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"managed_by_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"manufacturer_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"manufacturer_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"model_id_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"model_id_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"model_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"monitor\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"owned_by_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"owned_by_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"service_classification\", \"datatype\": dbt.type_string()},\n {\"name\": \"service_level_requirement\", \"datatype\": dbt.type_string()},\n {\"name\": \"service_owner_delegate_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"service_owner_delegate_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"short_description\", \"datatype\": dbt.type_string()},\n {\"name\": \"sla_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"sla_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"state\", \"datatype\": dbt.type_string()},\n {\"name\": \"subcategory\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_class_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_class_path\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_created_by\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_created_on\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"sys_domain_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_domain_path\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_domain_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_mod_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"sys_updated_by\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_updated_on\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"vendor_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendor_value\", \"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", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.215839, "supported_languages": null}, "macro.servicenow.get_sys_user_columns": {"name": "get_sys_user_columns", "resource_type": "macro", "package_name": "servicenow", "path": "macros/get_sys_user_columns.sql", "original_file_path": "macros/get_sys_user_columns.sql", "unique_id": "macro.servicenow.get_sys_user_columns", "macro_sql": "{% macro get_sys_user_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"accumulated_roles\", \"datatype\": dbt.type_string()},\n {\"name\": \"active\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"avatar\", \"datatype\": dbt.type_string()},\n {\"name\": \"building_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"building_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"calendar_integration\", \"datatype\": dbt.type_int()},\n {\"name\": \"city\", \"datatype\": dbt.type_string()},\n {\"name\": \"company_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"company_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"cost_center_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"cost_center_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"date_format\", \"datatype\": dbt.type_string()},\n {\"name\": \"default_perspective_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"default_perspective_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"department_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"department_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"edu_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"email\", \"datatype\": dbt.type_string()},\n {\"name\": \"employee_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"enable_multifactor_authn\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"failed_attempts\", \"datatype\": dbt.type_int()},\n {\"name\": \"first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"gender\", \"datatype\": dbt.type_string()},\n {\"name\": \"hashed_user_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"home_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"internal_integration_user\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"introduction\", \"datatype\": dbt.type_string()},\n {\"name\": \"last_login\", \"datatype\": \"date\"},\n {\"name\": \"last_login_device\", \"datatype\": dbt.type_string()},\n {\"name\": \"last_login_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"last_password\", \"datatype\": dbt.type_string()},\n {\"name\": \"ldap_server_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"ldap_server_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"location_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"location_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"locked_out\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"manager_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"manager_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"middle_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"mobile_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"notification\", \"datatype\": dbt.type_int()},\n {\"name\": \"password_needs_reset\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"photo\", \"datatype\": dbt.type_string()},\n {\"name\": \"preferred_language\", \"datatype\": dbt.type_string()},\n {\"name\": \"roles\", \"datatype\": dbt.type_string()},\n {\"name\": \"schedule_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"schedule_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"source\", \"datatype\": dbt.type_string()},\n {\"name\": \"state\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_class_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_created_by\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_created_on\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"sys_domain_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_domain_path\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_domain_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_mod_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"sys_updated_by\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_updated_on\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"time_format\", \"datatype\": dbt.type_string()},\n {\"name\": \"time_zone\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"user_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"user_password\", \"datatype\": dbt.type_string()},\n {\"name\": \"vip\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"web_service_access_only\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"zip\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.239601, "supported_languages": null}, "macro.servicenow.get_cmdb_ci_columns": {"name": "get_cmdb_ci_columns", "resource_type": "macro", "package_name": "servicenow", "path": "macros/get_cmdb_ci_columns.sql", "original_file_path": "macros/get_cmdb_ci_columns.sql", "unique_id": "macro.servicenow.get_cmdb_ci_columns", "macro_sql": "{% macro get_cmdb_ci_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"attributes\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_unit_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_unit_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"category\", \"datatype\": dbt.type_string()},\n {\"name\": \"company_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"company_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"cost\", \"datatype\": dbt.type_float()},\n {\"name\": \"cost_cc\", \"datatype\": dbt.type_string()},\n {\"name\": \"cost_center_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"cost_center_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"managed_by_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"managed_by_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"manufacturer_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"manufacturer_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"model_id_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"model_id_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"model_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"owned_by_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"owned_by_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"subcategory\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_class_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_class_path\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_created_by\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_created_on\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"sys_domain_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_domain_path\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_domain_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_mod_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"sys_updated_by\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_updated_on\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"unverified\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"vendor_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendor_value\", \"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", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.2514849, "supported_languages": null}, "macro.servicenow.get_change_task_columns": {"name": "get_change_task_columns", "resource_type": "macro", "package_name": "servicenow", "path": "macros/get_change_task_columns.sql", "original_file_path": "macros/get_change_task_columns.sql", "unique_id": "macro.servicenow.get_change_task_columns", "macro_sql": "{% macro get_change_task_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"change_request_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"change_request_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"change_task_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"close_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_from\", \"datatype\": dbt.type_string()},\n {\"name\": \"on_hold\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"on_hold_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"planned_end_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"planned_start_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"sys_created_on\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"sys_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_updated_on\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.256212, "supported_languages": null}, "macro.servicenow.get_sys_user_group_columns": {"name": "get_sys_user_group_columns", "resource_type": "macro", "package_name": "servicenow", "path": "macros/get_sys_user_group_columns.sql", "original_file_path": "macros/get_sys_user_group_columns.sql", "unique_id": "macro.servicenow.get_sys_user_group_columns", "macro_sql": "{% macro get_sys_user_group_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"active\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"cost_center_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"cost_center_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"default_assignee_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"default_assignee_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"email\", \"datatype\": dbt.type_string()},\n {\"name\": \"exclude_manager\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"include_members\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"manager_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"manager_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"parent_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"parent_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"roles\", \"datatype\": dbt.type_string()},\n {\"name\": \"source\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_created_by\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_created_on\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"sys_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_mod_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"sys_updated_by\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_updated_on\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.264477, "supported_languages": null}, "macro.servicenow.get_task_columns": {"name": "get_task_columns", "resource_type": "macro", "package_name": "servicenow", "path": "macros/get_task_columns.sql", "original_file_path": "macros/get_task_columns.sql", "unique_id": "macro.servicenow.get_task_columns", "macro_sql": "{% macro get_task_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"active\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"activity_due\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"additional_assignee_list\", \"datatype\": dbt.type_string()},\n {\"name\": \"approval\", \"datatype\": dbt.type_string()},\n {\"name\": \"approval_history\", \"datatype\": dbt.type_string()},\n {\"name\": \"approval_set\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"assigned_to_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"assigned_to_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"assignment_group_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"assignment_group_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_duration\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"business_service_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_service_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"calendar_duration\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"close_notes\", \"datatype\": dbt.type_string()},\n {\"name\": \"closed_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"closed_by_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"closed_by_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"cmdb_ci_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"cmdb_ci_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"comments\", \"datatype\": dbt.type_string()},\n {\"name\": \"comments_and_work_notes\", \"datatype\": dbt.type_string()},\n {\"name\": \"company_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"company_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"contact_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"contract_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"contract_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"correlation_display\", \"datatype\": dbt.type_string()},\n {\"name\": \"correlation_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"delivery_plan_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"delivery_plan_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"delivery_task_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"delivery_task_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"due_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"escalation\", \"datatype\": dbt.type_int()},\n {\"name\": \"expected_start\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"follow_up\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"group_list\", \"datatype\": dbt.type_string()},\n {\"name\": \"impact\", \"datatype\": dbt.type_int()},\n {\"name\": \"knowledge\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"location_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"location_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"made_sla\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"number\", \"datatype\": dbt.type_string()},\n {\"name\": \"opened_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"opened_by_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"opened_by_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"order\", \"datatype\": dbt.type_int(), \"quote\": True, \"alias\": \"task_order\"},\n {\"name\": \"parent_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"parent_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"priority\", \"datatype\": dbt.type_int()},\n {\"name\": \"reassignment_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"rejection_goto_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"rejection_goto_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"route_reason\", \"datatype\": dbt.type_int()},\n {\"name\": \"service_offering_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"service_offering_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"short_description\", \"datatype\": dbt.type_string()},\n {\"name\": \"sla_due\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"state\", \"datatype\": dbt.type_int()},\n {\"name\": \"sys_class_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_created_by\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_created_on\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"sys_domain_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_domain_path\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_domain_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_mod_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"sys_updated_by\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_updated_on\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"task_effective_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"universal_request_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"universal_request_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"upon_approval\", \"datatype\": dbt.type_string()},\n {\"name\": \"upon_reject\", \"datatype\": dbt.type_string()},\n {\"name\": \"urgency\", \"datatype\": dbt.type_int()},\n {\"name\": \"watch_list\", \"datatype\": dbt.type_string()},\n {\"name\": \"wf_activity_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"wf_activity_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"work_end\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"work_notes\", \"datatype\": dbt.type_string()},\n {\"name\": \"work_notes_list\", \"datatype\": dbt.type_string()},\n {\"name\": \"work_start\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.29285, "supported_languages": null}, "macro.servicenow.get_problem_columns": {"name": "get_problem_columns", "resource_type": "macro", "package_name": "servicenow", "path": "macros/get_problem_columns.sql", "original_file_path": "macros/get_problem_columns.sql", "unique_id": "macro.servicenow.get_problem_columns", "macro_sql": "{% macro get_problem_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"category\", \"datatype\": dbt.type_string()},\n {\"name\": \"cause_notes\", \"datatype\": dbt.type_string()},\n {\"name\": \"confirmed_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"confirmed_by_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"confirmed_by_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"duplicate_of_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"duplicate_of_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"first_reported_by_task_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"first_reported_by_task_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"fix_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"fix_by_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"fix_by_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"fix_communicated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"fix_communicated_by_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"fix_communicated_by_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"fix_notes\", \"datatype\": dbt.type_string()},\n {\"name\": \"known_error\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"major_problem\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"problem_state\", \"datatype\": dbt.type_int()},\n {\"name\": \"related_incidents\", \"datatype\": dbt.type_int()},\n {\"name\": \"reopen_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"reopened_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"reopened_by_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"reopened_by_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"resolution_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"resolved_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"resolved_by_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"resolved_by_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"review_outcome\", \"datatype\": dbt.type_string()},\n {\"name\": \"rfc_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"rfc_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"subcategory\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_created_on\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"sys_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_updated_on\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"workaround\", \"datatype\": dbt.type_string()},\n {\"name\": \"workaround_applied\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"workaround_communicated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"workaround_communicated_by_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"workaround_communicated_by_value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.3062341, "supported_languages": null}, "macro.servicenow.get_incident_columns": {"name": "get_incident_columns", "resource_type": "macro", "package_name": "servicenow", "path": "macros/get_incident_columns.sql", "original_file_path": "macros/get_incident_columns.sql", "unique_id": "macro.servicenow.get_incident_columns", "macro_sql": "{% macro get_incident_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"business_impact\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_stc\", \"datatype\": dbt.type_int()},\n {\"name\": \"calendar_stc\", \"datatype\": dbt.type_int()},\n {\"name\": \"caller_id_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"caller_id_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"category\", \"datatype\": dbt.type_string()},\n {\"name\": \"cause\", \"datatype\": dbt.type_string()},\n {\"name\": \"caused_by_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"caused_by_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"child_incidents\", \"datatype\": dbt.type_int()},\n {\"name\": \"close_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"hold_reason\", \"datatype\": dbt.type_int()},\n {\"name\": \"incident_state\", \"datatype\": dbt.type_int()},\n {\"name\": \"notify\", \"datatype\": dbt.type_int()},\n {\"name\": \"origin_id_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"origin_id_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"parent_incident_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"parent_incident_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"problem_id_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"problem_id_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"reopen_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"reopened_by_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"reopened_by_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"reopened_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"resolved_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"resolved_by_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"resolved_by_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"rfc_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"rfc_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"severity\", \"datatype\": dbt.type_int()},\n {\"name\": \"subcategory\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_created_on\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"sys_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_updated_on\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.3204238, "supported_languages": null}, "macro.servicenow.get_problem_task_columns": {"name": "get_problem_task_columns", "resource_type": "macro", "package_name": "servicenow", "path": "macros/get_problem_task_columns.sql", "original_file_path": "macros/get_problem_task_columns.sql", "unique_id": "macro.servicenow.get_problem_task_columns", "macro_sql": "{% macro get_problem_task_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"cause_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"close_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"other_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"problem_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"problem_task_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"problem_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"reopen_count\", \"datatype\": dbt.type_int()},\n {\"name\": \"reopened_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"reopened_by_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"reopened_by_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"started_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"started_by_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"started_by_value\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_created_on\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"sys_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sys_updated_on\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"vendor_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendor_value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708640655.327195, "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.servicenow.stg_servicenow__task": {"name": "stg_servicenow__task", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.stg_servicenow__task", "block_contents": "Staging table containing all tasks related information. A task represents a unit of work that needs to be accomplished or tracked within the ServiceNow system. It can be related to various processes, such as incident resolution, change management, or other workflows."}, "doc.servicenow.task": {"name": "task", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.task", "block_contents": "Table containing all tasks related information. A task represents a unit of work that needs to be accomplished or tracked within the ServiceNow system. It can be related to various processes, such as incident resolution, change management, or other workflows."}, "doc.servicenow.stg_servicenow__problem": {"name": "stg_servicenow__problem", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.stg_servicenow__problem", "block_contents": "Staging table containing all problem information."}, "doc.servicenow.problem": {"name": "problem", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.problem", "block_contents": "Table containing all problem information."}, "doc.servicenow.stg_servicenow__task_sla": {"name": "stg_servicenow__task_sla", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.stg_servicenow__task_sla", "block_contents": "Staging table containing all Service Level Agreement (SLA) information related to the task."}, "doc.servicenow.task_sla": {"name": "task_sla", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.task_sla", "block_contents": "Table containing all Service Level Agreement (SLA) information related to the task."}, "doc.servicenow.stg_servicenow__sys_user": {"name": "stg_servicenow__sys_user", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.stg_servicenow__sys_user", "block_contents": "Staging table containing all information related to the system user associated with the task."}, "doc.servicenow.sys_user": {"name": "sys_user", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.sys_user", "block_contents": "Table containing all information related to the system user associated with the task."}, "doc.servicenow.stg_servicenow__problem_task": {"name": "stg_servicenow__problem_task", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.stg_servicenow__problem_task", "block_contents": "Staging table containing all the information related to the problem tasks."}, "doc.servicenow.problem_task": {"name": "problem_task", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.problem_task", "block_contents": "Table containing all the information related to the problem tasks."}, "doc.servicenow.stg_servicenow__incident": {"name": "stg_servicenow__incident", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.stg_servicenow__incident", "block_contents": "Staging table containing all information related to incidents."}, "doc.servicenow.incident": {"name": "incident", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.incident", "block_contents": "Table containing all information related to incidents."}, "doc.servicenow.stg_servicenow__change_task": {"name": "stg_servicenow__change_task", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.stg_servicenow__change_task", "block_contents": "Staging table containing all information related to change tasks."}, "doc.servicenow.change_task": {"name": "change_task", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.change_task", "block_contents": "Table containing all information related to change tasks."}, "doc.servicenow.stg_servicenow__change_request": {"name": "stg_servicenow__change_request", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.stg_servicenow__change_request", "block_contents": "Staging table that contains all information related to change requests."}, "doc.servicenow.change_request": {"name": "change_request", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.change_request", "block_contents": "Table that contains all information related to change requests."}, "doc.servicenow._fivetran_deleted": {"name": "_fivetran_deleted", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow._fivetran_deleted", "block_contents": "Indicates whether the task record has been marked as deleted by the Fivetran connector."}, "doc.servicenow._fivetran_synced": {"name": "_fivetran_synced", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow._fivetran_synced", "block_contents": "Indicates whether the task record has been synchronized by the Fivetran connector."}, "doc.servicenow.source_relation": {"name": "source_relation", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.source_relation", "block_contents": "Indicates the schema which the field originated. This is especially important when leveraging the union schema feature."}, "doc.servicenow.active": {"name": "active", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.active", "block_contents": "Flag indicating whether the record is currently active or completed."}, "doc.servicenow.is_task_active": {"name": "is_task_active", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.is_task_active", "block_contents": "Flag indicating whether the task is currently active or completed."}, "doc.servicenow.is_active": {"name": "is_active", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.is_active", "block_contents": "Flag indicating whether the record is currently active."}, "doc.servicenow.activity_due": {"name": "activity_due", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.activity_due", "block_contents": "The due date or time for completing the activity associated with the task."}, "doc.servicenow.additional_assignee_list": {"name": "additional_assignee_list", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.additional_assignee_list", "block_contents": "List of additional users or assignees associated with the task."}, "doc.servicenow.approval": {"name": "approval", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.approval", "block_contents": "Information related to the approval status and process for the task."}, "doc.servicenow.approval_history": {"name": "approval_history", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.approval_history", "block_contents": "History of approvals associated with the task."}, "doc.servicenow.approval_set": {"name": "approval_set", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.approval_set", "block_contents": "Set of approvals linked to the task."}, "doc.servicenow.assigned_to_link": {"name": "assigned_to_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.assigned_to_link", "block_contents": "Link to the user or group assigned to the task."}, "doc.servicenow.assigned_to_value": {"name": "assigned_to_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.assigned_to_value", "block_contents": "Value representing the user or group assigned to the task."}, "doc.servicenow.assignment_group_link": {"name": "assignment_group_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.assignment_group_link", "block_contents": "Link to the assignment group associated with the task."}, "doc.servicenow.assignment_group_value": {"name": "assignment_group_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.assignment_group_value", "block_contents": "Value representing the assignment group associated with the task."}, "doc.servicenow.business_duration": {"name": "business_duration", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.business_duration", "block_contents": "The duration of the task in terms of business hours."}, "doc.servicenow.business_service_link": {"name": "business_service_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.business_service_link", "block_contents": "Link to the business service associated with the task."}, "doc.servicenow.business_service_value": {"name": "business_service_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.business_service_value", "block_contents": "Value representing the business service associated with the task."}, "doc.servicenow.calendar_duration": {"name": "calendar_duration", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.calendar_duration", "block_contents": "The duration of the task in terms of calendar time."}, "doc.servicenow.close_notes": {"name": "close_notes", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.close_notes", "block_contents": "Additional notes or comments recorded upon task closure."}, "doc.servicenow.closed_at": {"name": "closed_at", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.closed_at", "block_contents": "Date and time when the task was closed or completed."}, "doc.servicenow.closed_by_link": {"name": "closed_by_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.closed_by_link", "block_contents": "Link to the user who closed or completed the task."}, "doc.servicenow.closed_by_value": {"name": "closed_by_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.closed_by_value", "block_contents": "Value representing the user who closed or completed the task."}, "doc.servicenow.cmdb_ci_link": {"name": "cmdb_ci_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.cmdb_ci_link", "block_contents": "Link to the configuration item (CI) associated with the record in the Configuration Management Database (CMDB)."}, "doc.servicenow.cmdb_ci_value": {"name": "cmdb_ci_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.cmdb_ci_value", "block_contents": "Value representing the configuration item (CI) associated with the record."}, "doc.servicenow.comments": {"name": "comments", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.comments", "block_contents": "General comments or notes related to the record."}, "doc.servicenow.comments_and_work_notes": {"name": "comments_and_work_notes", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.comments_and_work_notes", "block_contents": "Combined information of comments and work notes recorded during the record's lifecycle."}, "doc.servicenow.company_link": {"name": "company_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.company_link", "block_contents": "Link to the company associated with the record."}, "doc.servicenow.company_value": {"name": "company_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.company_value", "block_contents": "Value representing the company associated with the record."}, "doc.servicenow.contact_type": {"name": "contact_type", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.contact_type", "block_contents": "Type of contact associated with the record (e.g., customer, vendor)."}, "doc.servicenow.contract_link": {"name": "contract_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.contract_link", "block_contents": "Link to the contract associated with the record."}, "doc.servicenow.contract_value": {"name": "contract_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.contract_value", "block_contents": "Value representing the contract associated with the record."}, "doc.servicenow.correlation_display": {"name": "correlation_display", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.correlation_display", "block_contents": "Display information related to correlation of the record with other records."}, "doc.servicenow.correlation_id": {"name": "correlation_id", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.correlation_id", "block_contents": "Identifier used for correlating the record with related records."}, "doc.servicenow.delivery_plan_link": {"name": "delivery_plan_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.delivery_plan_link", "block_contents": "Link to the delivery plan associated with the task."}, "doc.servicenow.delivery_plan_value": {"name": "delivery_plan_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.delivery_plan_value", "block_contents": "Value representing the delivery plan associated with the task."}, "doc.servicenow.delivery_task_link": {"name": "delivery_task_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.delivery_task_link", "block_contents": "Link to the delivery task associated with the task."}, "doc.servicenow.delivery_task_value": {"name": "delivery_task_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.delivery_task_value", "block_contents": "Value representing the delivery task associated with the task."}, "doc.servicenow.description": {"name": "description", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.description", "block_contents": "Detailed description or information about the record."}, "doc.servicenow.task_description": {"name": "task_description", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.task_description", "block_contents": "Detailed description or information about the task."}, "doc.servicenow.due_date": {"name": "due_date", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.due_date", "block_contents": "The date by which the task is expected to be completed."}, "doc.servicenow.task_due_date_at": {"name": "task_due_date_at", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.task_due_date_at", "block_contents": "The date by which the task is expected to be completed."}, "doc.servicenow.escalation": {"name": "escalation", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.escalation", "block_contents": "Information about any escalation procedures or steps related to the task."}, "doc.servicenow.expected_start": {"name": "expected_start", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.expected_start", "block_contents": "The expected start date or time for the task."}, "doc.servicenow.follow_up": {"name": "follow_up", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.follow_up", "block_contents": "Timestamp of when follow up was applied to the task."}, "doc.servicenow.task_follow_up_at": {"name": "task_follow_up_at", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.task_follow_up_at", "block_contents": "Timestamp of when follow up was applied to the task."}, "doc.servicenow.group_list": {"name": "group_list", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.group_list", "block_contents": "List of groups associated with the task."}, "doc.servicenow.impact": {"name": "impact", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.impact", "block_contents": "Assessment of the impact that completing or not completing the task may have. This is the business loss and potential damage (for example, financial, customer, regulation, security, reputation, brand) caused by the incident"}, "doc.servicenow.knowledge": {"name": "knowledge", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.knowledge", "block_contents": "Indication of whether the task is associated with knowledge or documentation."}, "doc.servicenow.location_link": {"name": "location_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.location_link", "block_contents": "Link to the location associated with the task."}, "doc.servicenow.location_value": {"name": "location_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.location_value", "block_contents": "Value representing the location associated with the task."}, "doc.servicenow.made_sla": {"name": "made_sla", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.made_sla", "block_contents": "Indicates whether the task was completed within the agreed-upon Service Level Agreement (SLA)."}, "doc.servicenow.number": {"name": "number", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.number", "block_contents": "Unique identifier or reference number assigned to the task."}, "doc.servicenow.task_number": {"name": "task_number", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.task_number", "block_contents": "Unique identifier or reference number assigned to the task."}, "doc.servicenow.opened_at": {"name": "opened_at", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.opened_at", "block_contents": "Date and time when the task was initially opened."}, "doc.servicenow.task_opened_at": {"name": "task_opened_at", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.task_opened_at", "block_contents": "Date and time when the task was initially opened."}, "doc.servicenow.opened_by_link": {"name": "opened_by_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.opened_by_link", "block_contents": "Link to the user who initially opened the task."}, "doc.servicenow.opened_by_value": {"name": "opened_by_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.opened_by_value", "block_contents": "Value representing the user who initially opened the task."}, "doc.servicenow.order": {"name": "order", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.order", "block_contents": "Order or sequence number associated with the task."}, "doc.servicenow.task_order": {"name": "task_order", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.task_order", "block_contents": "Order or sequence number associated with the task."}, "doc.servicenow.parent_link": {"name": "parent_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.parent_link", "block_contents": "Link to the parent task or record associated with the task."}, "doc.servicenow.parent_value": {"name": "parent_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.parent_value", "block_contents": "Value representing the parent task or record associated with the task."}, "doc.servicenow.priority": {"name": "priority", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.priority", "block_contents": "Priority level assigned to the task. The priority field is automatically calculated based on the values of impact and urgency. This determines the sequence in which the record should be resolved."}, "doc.servicenow.reassignment_count": {"name": "reassignment_count", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.reassignment_count", "block_contents": "Count of how many times the task has been reassigned."}, "doc.servicenow.rejection_goto_link": {"name": "rejection_goto_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.rejection_goto_link", "block_contents": "Link to the record or step to be followed in case of task rejection."}, "doc.servicenow.rejection_goto_value": {"name": "rejection_goto_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.rejection_goto_value", "block_contents": "Value representing the record or step to be followed in case of task rejection."}, "doc.servicenow.route_reason": {"name": "route_reason", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.route_reason", "block_contents": "Reason or criteria for routing the task to a particular user or group."}, "doc.servicenow.service_offering_link": {"name": "service_offering_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.service_offering_link", "block_contents": "Link to the service offering associated with the record."}, "doc.servicenow.service_offering_value": {"name": "service_offering_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.service_offering_value", "block_contents": "Value representing the service offering associated with the record."}, "doc.servicenow.short_description": {"name": "short_description", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.short_description", "block_contents": "Brief or concise summary of the record."}, "doc.servicenow.sla_due": {"name": "sla_due", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.sla_due", "block_contents": "Date and time by which the record is expected to meet the Service Level Agreement (SLA)."}, "doc.servicenow.state": {"name": "state", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.state", "block_contents": "Current state or status of the record (e.g., in progress, on hold, closed)."}, "doc.servicenow.task_state": {"name": "task_state", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.task_state", "block_contents": "Current state or status of the task (e.g., in progress, on hold, closed)."}, "doc.servicenow.sys_class_name": {"name": "sys_class_name", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.sys_class_name", "block_contents": "Name of the table in which the record is stored."}, "doc.servicenow.sys_created_by": {"name": "sys_created_by", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.sys_created_by", "block_contents": "User who initially created the record."}, "doc.servicenow.sys_created_on": {"name": "sys_created_on", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.sys_created_on", "block_contents": "Date and time when the record was initially created."}, "doc.servicenow.created_at": {"name": "created_at", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.created_at", "block_contents": "Date and time when the record was initially created."}, "doc.servicenow.updated_at": {"name": "updated_at", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.updated_at", "block_contents": "Date and time when the record was last updated."}, "doc.servicenow.change_task_created_at": {"name": "change_task_created_at", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.change_task_created_at", "block_contents": "Date and time when the change task record was initially created."}, "doc.servicenow.change_task_updated_at": {"name": "change_task_updated_at", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.change_task_updated_at", "block_contents": "Date and time when the change task record was last updated."}, "doc.servicenow.incident_created_at": {"name": "incident_created_at", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.incident_created_at", "block_contents": "Date and time when the incident record was initially created."}, "doc.servicenow.incident_updated_at": {"name": "incident_updated_at", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.incident_updated_at", "block_contents": "Date and time when the incident record was last updated."}, "doc.servicenow.problem_created_at": {"name": "problem_created_at", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.problem_created_at", "block_contents": "Date and time when the problem record was initially created."}, "doc.servicenow.problem_updated_at": {"name": "problem_updated_at", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.problem_updated_at", "block_contents": "Date and time when the problem record was last updated."}, "doc.servicenow.problem_task_created_at": {"name": "problem_task_created_at", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.problem_task_created_at", "block_contents": "Date and time when the problem task record was initially created."}, "doc.servicenow.problem_task_updated_at": {"name": "problem_task_updated_at", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.problem_task_updated_at", "block_contents": "Date and time when the problem task record was last updated."}, "doc.servicenow.user_created_at": {"name": "user_created_at", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.user_created_at", "block_contents": "Date and time when the user record was initially created."}, "doc.servicenow.user_updated_at": {"name": "user_updated_at", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.user_updated_at", "block_contents": "Date and time when the user record was last updated."}, "doc.servicenow.task_created_at": {"name": "task_created_at", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.task_created_at", "block_contents": "Date and time when the task record was initially created."}, "doc.servicenow.task_updated_at": {"name": "task_updated_at", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.task_updated_at", "block_contents": "Date and time when the task record was last updated."}, "doc.servicenow.task_sla_created_at": {"name": "task_sla_created_at", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.task_sla_created_at", "block_contents": "Date and time when the task sla record was initially created."}, "doc.servicenow.task_sla_updated_at": {"name": "task_sla_updated_at", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.task_sla_updated_at", "block_contents": "Date and time when the task sla record was last updated."}, "doc.servicenow.sys_domain_link": {"name": "sys_domain_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.sys_domain_link", "block_contents": "Link to the system domain associated with the record."}, "doc.servicenow.sys_domain_path": {"name": "sys_domain_path", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.sys_domain_path", "block_contents": "Path of the system domain associated with the record."}, "doc.servicenow.sys_domain_value": {"name": "sys_domain_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.sys_domain_value", "block_contents": "Value representing the system domain associated with the record."}, "doc.servicenow.sys_id": {"name": "sys_id", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.sys_id", "block_contents": "Unique identifier for the record."}, "doc.servicenow.sys_mod_count": {"name": "sys_mod_count", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.sys_mod_count", "block_contents": "Number of times the record has been modified."}, "doc.servicenow.sys_updated_by": {"name": "sys_updated_by", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.sys_updated_by", "block_contents": "User who last updated or modified the record."}, "doc.servicenow.sys_updated_on": {"name": "sys_updated_on", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.sys_updated_on", "block_contents": "Date and time when the record was last updated."}, "doc.servicenow.task_effective_number": {"name": "task_effective_number", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.task_effective_number", "block_contents": "Effective number or identifier associated with the task."}, "doc.servicenow.universal_request_link": {"name": "universal_request_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.universal_request_link", "block_contents": "Link to the universal request associated with the task."}, "doc.servicenow.universal_request_value": {"name": "universal_request_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.universal_request_value", "block_contents": "Value representing the universal request associated with the task."}, "doc.servicenow.upon_approval": {"name": "upon_approval", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.upon_approval", "block_contents": "Actions or steps to be taken upon the approval of the task."}, "doc.servicenow.upon_reject": {"name": "upon_reject", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.upon_reject", "block_contents": "Actions or steps to be taken upon the rejection of the task."}, "doc.servicenow.urgency": {"name": "urgency", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.urgency", "block_contents": "Level of urgency associated with the record. Speed at which the business expects the record to be resolved."}, "doc.servicenow.watch_list": {"name": "watch_list", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.watch_list", "block_contents": "List of users or groups who are monitoring or \"watching\" the task."}, "doc.servicenow.wf_activity_link": {"name": "wf_activity_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.wf_activity_link", "block_contents": "Link to the workflow activity associated with the task."}, "doc.servicenow.wf_activity_value": {"name": "wf_activity_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.wf_activity_value", "block_contents": "Value representing the workflow activity associated with the task."}, "doc.servicenow.work_end": {"name": "work_end", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.work_end", "block_contents": "Date and time when the work on the task is scheduled to end."}, "doc.servicenow.work_notes": {"name": "work_notes", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.work_notes", "block_contents": "Notes or comments recorded during the work on the task."}, "doc.servicenow.work_notes_list": {"name": "work_notes_list", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.work_notes_list", "block_contents": "List of work notes recorded during the task's lifecycle."}, "doc.servicenow.work_start": {"name": "work_start", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.work_start", "block_contents": "Date and time when the work on the task is scheduled to start."}, "doc.servicenow.business_pause_duration": {"name": "business_pause_duration", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.business_pause_duration", "block_contents": "Duration of business pause associated with the task."}, "doc.servicenow.business_percentage": {"name": "business_percentage", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.business_percentage", "block_contents": "Percentage of business time completed for the task."}, "doc.servicenow.business_time_left": {"name": "business_time_left", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.business_time_left", "block_contents": "Remaining business time for the completion of the task."}, "doc.servicenow.duration": {"name": "duration", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.duration", "block_contents": "Total duration of the task, including both business and non-business time."}, "doc.servicenow.end_time": {"name": "end_time", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.end_time", "block_contents": "The scheduled or expected end time for the task."}, "doc.servicenow.has_breached": {"name": "has_breached", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.has_breached", "block_contents": "Indicates whether the task has breached the defined SLA or time limits."}, "doc.servicenow.original_breach_time": {"name": "original_breach_time", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.original_breach_time", "block_contents": "Original time when the SLA breach for the task was detected."}, "doc.servicenow.pause_duration": {"name": "pause_duration", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.pause_duration", "block_contents": "Duration of the pause associated with the task."}, "doc.servicenow.pause_time": {"name": "pause_time", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.pause_time", "block_contents": "Time when the task was paused or put on hold."}, "doc.servicenow.percentage": {"name": "percentage", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.percentage", "block_contents": "Percentage of total time completed for the task."}, "doc.servicenow.planned_end_time": {"name": "planned_end_time", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.planned_end_time", "block_contents": "The originally planned or expected end time for the task."}, "doc.servicenow.schedule_link": {"name": "schedule_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.schedule_link", "block_contents": "Link to the schedule associated with the task."}, "doc.servicenow.schedule_value": {"name": "schedule_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.schedule_value", "block_contents": "Value representing the schedule associated with the task."}, "doc.servicenow.sla_link": {"name": "sla_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.sla_link", "block_contents": "Link to the Service Level Agreement (SLA) associated with the record."}, "doc.servicenow.sla_value": {"name": "sla_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.sla_value", "block_contents": "Value representing the Service Level Agreement (SLA) associated with the record."}, "doc.servicenow.stage": {"name": "stage", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.stage", "block_contents": "Current stage or phase of the record's lifecycle."}, "doc.servicenow.start_time": {"name": "start_time", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.start_time", "block_contents": "The scheduled or expected start time for the record."}, "doc.servicenow.task_link": {"name": "task_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.task_link", "block_contents": "Link to the related task record."}, "doc.servicenow.task_value": {"name": "task_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.task_value", "block_contents": "Value representing the related task record."}, "doc.servicenow.time_left": {"name": "time_left", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.time_left", "block_contents": "Remaining time for the completion of the task."}, "doc.servicenow.timezone": {"name": "timezone", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.timezone", "block_contents": "Timezone information associated with the record."}, "doc.servicenow.accumulated_roles": {"name": "accumulated_roles", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.accumulated_roles", "block_contents": "Roles accumulated or associated with the system user over time."}, "doc.servicenow.avatar": {"name": "avatar", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.avatar", "block_contents": "Avatar or profile picture associated with the system user."}, "doc.servicenow.building_link": {"name": "building_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.building_link", "block_contents": "Link to the building associated with the system user."}, "doc.servicenow.building_value": {"name": "building_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.building_value", "block_contents": "Value representing the building associated with the system user."}, "doc.servicenow.calendar_integration": {"name": "calendar_integration", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.calendar_integration", "block_contents": "Information about the integration of the user's calendar with the ServiceNow system."}, "doc.servicenow.city": {"name": "city", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.city", "block_contents": "City information associated with the record."}, "doc.servicenow.cost_center_link": {"name": "cost_center_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.cost_center_link", "block_contents": "Link to the cost center associated with the record."}, "doc.servicenow.cost_center_value": {"name": "cost_center_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.cost_center_value", "block_contents": "Value representing the cost center associated with the record."}, "doc.servicenow.country": {"name": "country", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.country", "block_contents": "Country information associated with the record."}, "doc.servicenow.date_format": {"name": "date_format", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.date_format", "block_contents": "The format in which dates are displayed or recorded for the system user."}, "doc.servicenow.default_perspective_link": {"name": "default_perspective_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.default_perspective_link", "block_contents": "Link to the default perspective associated with the system user."}, "doc.servicenow.default_perspective_value": {"name": "default_perspective_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.default_perspective_value", "block_contents": "Value representing the default perspective associated with the system user."}, "doc.servicenow.department_link": {"name": "department_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.department_link", "block_contents": "Link to the department associated with the system user."}, "doc.servicenow.department_value": {"name": "department_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.department_value", "block_contents": "Value representing the department associated with the system user."}, "doc.servicenow.edu_status": {"name": "edu_status", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.edu_status", "block_contents": "Education status or level associated with the system user."}, "doc.servicenow.email": {"name": "email", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.email", "block_contents": "Email address associated with the record."}, "doc.servicenow.employee_number": {"name": "employee_number", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.employee_number", "block_contents": "Employee number or identifier associated with the system user."}, "doc.servicenow.enable_multifactor_authn": {"name": "enable_multifactor_authn", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.enable_multifactor_authn", "block_contents": "Indication of whether multifactor authentication is enabled for the system user."}, "doc.servicenow.failed_attempts": {"name": "failed_attempts", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.failed_attempts", "block_contents": "Number of failed login attempts for the system user."}, "doc.servicenow.first_name": {"name": "first_name", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.first_name", "block_contents": "First name of the system user."}, "doc.servicenow.gender": {"name": "gender", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.gender", "block_contents": "Gender information associated with the system user."}, "doc.servicenow.hashed_user_id": {"name": "hashed_user_id", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.hashed_user_id", "block_contents": "Hashed identifier associated with the system user."}, "doc.servicenow.home_phone": {"name": "home_phone", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.home_phone", "block_contents": "Home phone number associated with the system user."}, "doc.servicenow.internal_integration_user": {"name": "internal_integration_user", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.internal_integration_user", "block_contents": "Indication of whether the system user is an internal integration user."}, "doc.servicenow.introduction": {"name": "introduction", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.introduction", "block_contents": "Introduction or bio information associated with the system user."}, "doc.servicenow.last_login": {"name": "last_login", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.last_login", "block_contents": "Date and time of the last login."}, "doc.servicenow.last_login_day_date": {"name": "last_login_day_date", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.last_login_day_date", "block_contents": "Date and time of the last login."}, "doc.servicenow.last_login_device": {"name": "last_login_device", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.last_login_device", "block_contents": "The device used for the user's last login to the system."}, "doc.servicenow.last_login_time": {"name": "last_login_time", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.last_login_time", "block_contents": "The specific time when the user last logged in to the system."}, "doc.servicenow.last_login_at": {"name": "last_login_at", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.last_login_at", "block_contents": "The specific time when the user last logged in to the system."}, "doc.servicenow.last_name": {"name": "last_name", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.last_name", "block_contents": "The family name or surname of the user."}, "doc.servicenow.last_password": {"name": "last_password", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.last_password", "block_contents": "The timestamp or information related to the user's last password update."}, "doc.servicenow.ldap_server_link": {"name": "ldap_server_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.ldap_server_link", "block_contents": "A link to the LDAP (Lightweight Directory Access Protocol) server associated with the user."}, "doc.servicenow.ldap_server_value": {"name": "ldap_server_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.ldap_server_value", "block_contents": "The value or name of the LDAP server associated with the user."}, "doc.servicenow.locked_out": {"name": "locked_out", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.locked_out", "block_contents": "Information about whether the user account is currently locked."}, "doc.servicenow.manager_link": {"name": "manager_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.manager_link", "block_contents": "A link to the user's manager or supervisor in the organizational hierarchy."}, "doc.servicenow.manager_value": {"name": "manager_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.manager_value", "block_contents": "The name or identifier of the user's manager or supervisor."}, "doc.servicenow.middle_name": {"name": "middle_name", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.middle_name", "block_contents": "The middle name or initial of the user."}, "doc.servicenow.mobile_phone": {"name": "mobile_phone", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.mobile_phone", "block_contents": "The contact number for the user's mobile phone."}, "doc.servicenow.name": {"name": "name", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.name", "block_contents": "The full name of the record."}, "doc.servicenow.sys_user_name": {"name": "sys_user_name", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.sys_user_name", "block_contents": "The system username or identifier for the user."}, "doc.servicenow.notification": {"name": "notification", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.notification", "block_contents": "Information related to user notifications or alerts."}, "doc.servicenow.password_needs_reset": {"name": "password_needs_reset", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.password_needs_reset", "block_contents": "Indicates whether the user needs to reset their password."}, "doc.servicenow.phone": {"name": "phone", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.phone", "block_contents": "The contact number belonging to this record."}, "doc.servicenow.photo": {"name": "photo", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.photo", "block_contents": "A link or reference to the user's profile photo."}, "doc.servicenow.preferred_language": {"name": "preferred_language", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.preferred_language", "block_contents": "The language preference set by the user."}, "doc.servicenow.roles": {"name": "roles", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.roles", "block_contents": "The roles assigned to the user in the system or organization."}, "doc.servicenow.source": {"name": "source", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.source", "block_contents": "The source or origin of the user's or user group's profile information."}, "doc.servicenow.time_format": {"name": "time_format", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.time_format", "block_contents": "The preferred time format for the user (e.g., 12-hour or 24-hour)."}, "doc.servicenow.time_zone": {"name": "time_zone", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.time_zone", "block_contents": "The time zone configured for the user."}, "doc.servicenow.title": {"name": "title", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.title", "block_contents": "The job title or position of the user within the organization."}, "doc.servicenow.user_name": {"name": "user_name", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.user_name", "block_contents": "The username used by the user to log in to the system."}, "doc.servicenow.user_password": {"name": "user_password", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.user_password", "block_contents": "The user's current password information or status."}, "doc.servicenow.vip": {"name": "vip", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.vip", "block_contents": "Indicates whether the user has VIP (Very Important Person) status."}, "doc.servicenow.web_service_access_only": {"name": "web_service_access_only", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.web_service_access_only", "block_contents": "Indicates whether the user has access only through web services."}, "doc.servicenow.zip": {"name": "zip", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.zip", "block_contents": "The postal code or ZIP code associated with the record."}, "doc.servicenow.cause_notes": {"name": "cause_notes", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.cause_notes", "block_contents": "Additional notes or details about the cause of a particular issue or incident."}, "doc.servicenow.confirmed_at": {"name": "confirmed_at", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.confirmed_at", "block_contents": "The timestamp indicating when an issue or incident was confirmed or acknowledged."}, "doc.servicenow.problem_confirmed_at": {"name": "problem_confirmed_at", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.problem_confirmed_at", "block_contents": "The timestamp indicating when the problem was confirmed or acknowledged."}, "doc.servicenow.confirmed_by_link": {"name": "confirmed_by_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.confirmed_by_link", "block_contents": "A link to the person or entity who confirmed or acknowledged the issue."}, "doc.servicenow.problem_confirmed_by_link": {"name": "problem_confirmed_by_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.problem_confirmed_by_link", "block_contents": "A link to the person or entity who confirmed or acknowledged the problem."}, "doc.servicenow.confirmed_by_value": {"name": "confirmed_by_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.confirmed_by_value", "block_contents": "The name or identifier of the person or entity who confirmed or acknowledged the issue."}, "doc.servicenow.problem_confirmed_by_value": {"name": "problem_confirmed_by_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.problem_confirmed_by_value", "block_contents": "The name or identifier of the person or entity who confirmed or acknowledged the problem."}, "doc.servicenow.duplicate_of_link": {"name": "duplicate_of_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.duplicate_of_link", "block_contents": "A link to the related issue that is identified as a duplicate of the current one."}, "doc.servicenow.duplicate_of_value": {"name": "duplicate_of_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.duplicate_of_value", "block_contents": "The name or identifier of the related issue that is identified as a duplicate."}, "doc.servicenow.first_reported_by_task_link": {"name": "first_reported_by_task_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.first_reported_by_task_link", "block_contents": "A link to the task or activity that first reported the issue."}, "doc.servicenow.problem_first_reported_by_task_link": {"name": "problem_first_reported_by_task_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.problem_first_reported_by_task_link", "block_contents": "A link to the task or activity that first reported the problem."}, "doc.servicenow.first_reported_by_task_value": {"name": "first_reported_by_task_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.first_reported_by_task_value", "block_contents": "The name or identifier of the task or activity that first reported the issue."}, "doc.servicenow.problem_first_reported_by_task_value": {"name": "problem_first_reported_by_task_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.problem_first_reported_by_task_value", "block_contents": "The name or identifier of the task or activity that first reported the problem."}, "doc.servicenow.fix_at": {"name": "fix_at", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.fix_at", "block_contents": "The timestamp indicating when the issue is scheduled or planned to be fixed."}, "doc.servicenow.problem_fix_at": {"name": "problem_fix_at", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.problem_fix_at", "block_contents": "The timestamp indicating when the problem is scheduled or planned to be fixed."}, "doc.servicenow.fix_by_link": {"name": "fix_by_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.fix_by_link", "block_contents": "A link to the person or entity responsible for fixing the issue."}, "doc.servicenow.problem_fix_by_link": {"name": "problem_fix_by_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.problem_fix_by_link", "block_contents": "A link to the person or entity responsible for fixing the problem."}, "doc.servicenow.fix_by_value": {"name": "fix_by_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.fix_by_value", "block_contents": "The name or identifier of the person or entity responsible for fixing the issue."}, "doc.servicenow.problem_fix_by_value": {"name": "problem_fix_by_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.problem_fix_by_value", "block_contents": "The name or identifier of the person or entity responsible for fixing the problem."}, "doc.servicenow.fix_communicated_at": {"name": "fix_communicated_at", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.fix_communicated_at", "block_contents": "The timestamp indicating when the fix for the issue was communicated."}, "doc.servicenow.fix_communicated_by_link": {"name": "fix_communicated_by_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.fix_communicated_by_link", "block_contents": "A link to the person or entity who communicated the fix for the issue."}, "doc.servicenow.fix_communicated_by_value": {"name": "fix_communicated_by_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.fix_communicated_by_value", "block_contents": "The name or identifier of the person or entity who communicated the fix for the issue."}, "doc.servicenow.fix_notes": {"name": "fix_notes", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.fix_notes", "block_contents": "Additional notes or details related to the fix for the issue."}, "doc.servicenow.problem_fix_notes": {"name": "problem_fix_notes", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.problem_fix_notes", "block_contents": "Additional notes or details related to the fix for the problem."}, "doc.servicenow.known_error": {"name": "known_error", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.known_error", "block_contents": "Indicates whether the issue is a known error with a documented resolution."}, "doc.servicenow.is_known_error": {"name": "is_known_error", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.is_known_error", "block_contents": "Indicates whether the issue is a known error with a documented resolution."}, "doc.servicenow.major_problem": {"name": "major_problem", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.major_problem", "block_contents": "Indicates whether the issue is categorized as a major problem."}, "doc.servicenow.is_major_problem": {"name": "is_major_problem", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.is_major_problem", "block_contents": "Indicates whether the issue is categorized as a major problem."}, "doc.servicenow.problem_state": {"name": "problem_state", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.problem_state", "block_contents": "The current state or status of the problem or issue."}, "doc.servicenow.related_incidents": {"name": "related_incidents", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.related_incidents", "block_contents": "Information about other incidents that are related to the current issue."}, "doc.servicenow.problem_related_incidents": {"name": "problem_related_incidents", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.problem_related_incidents", "block_contents": "Number of incidents that are related to the current problem."}, "doc.servicenow.reopen_count": {"name": "reopen_count", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.reopen_count", "block_contents": "The count of how many times the issue has been reopened."}, "doc.servicenow.reopened_at": {"name": "reopened_at", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.reopened_at", "block_contents": "The timestamp indicating when the issue was last reopened."}, "doc.servicenow.reopened_by_link": {"name": "reopened_by_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.reopened_by_link", "block_contents": "A link to the person or entity who reopened the issue."}, "doc.servicenow.reopened_by_value": {"name": "reopened_by_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.reopened_by_value", "block_contents": "The name or identifier of the person or entity who reopened the issue."}, "doc.servicenow.resolution_code": {"name": "resolution_code", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.resolution_code", "block_contents": "The code or identifier associated with the resolution of the issue."}, "doc.servicenow.problem_resolution_code": {"name": "problem_resolution_code", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.problem_resolution_code", "block_contents": "The code or identifier associated with the resolution of the problem."}, "doc.servicenow.resolved_at": {"name": "resolved_at", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.resolved_at", "block_contents": "The timestamp indicating when the issue was resolved."}, "doc.servicenow.problem_resolved_at": {"name": "problem_resolved_at", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.problem_resolved_at", "block_contents": "The timestamp indicating when the problem was resolved."}, "doc.servicenow.resolved_by_link": {"name": "resolved_by_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.resolved_by_link", "block_contents": "A link to the person or entity who resolved the issue."}, "doc.servicenow.resolved_by_value": {"name": "resolved_by_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.resolved_by_value", "block_contents": "The name or identifier of the person or entity who resolved the issue."}, "doc.servicenow.problem_resolved_by_value": {"name": "problem_resolved_by_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.problem_resolved_by_value", "block_contents": "The name or identifier of the person or entity who resolved the problem."}, "doc.servicenow.review_outcome": {"name": "review_outcome", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.review_outcome", "block_contents": "The outcome or result of the review process for the issue."}, "doc.servicenow.rfc_link": {"name": "rfc_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.rfc_link", "block_contents": "A link to the Request for Change (RFC) associated with the issue or incident."}, "doc.servicenow.rfc_value": {"name": "rfc_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.rfc_value", "block_contents": "The unique identifier or name associated with the Request for Change (RFC) linked to the issue."}, "doc.servicenow.problem_rfc_value": {"name": "problem_rfc_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.problem_rfc_value", "block_contents": "The unique identifier or name associated with the Request for Change (RFC) linked to the problem."}, "doc.servicenow.subcategory": {"name": "subcategory", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.subcategory", "block_contents": "The specific subcategory or classification of the record, providing more detailed information about its nature."}, "doc.servicenow.problem_subcategory": {"name": "problem_subcategory", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.problem_subcategory", "block_contents": "The specific subcategory or classification of the issue, providing more detailed information about its nature."}, "doc.servicenow.workaround": {"name": "workaround", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.workaround", "block_contents": "A description of a temporary or alternative solution that can be applied to address the issue before a permanent fix \nis implemented."}, "doc.servicenow.workaround_applied": {"name": "workaround_applied", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.workaround_applied", "block_contents": "Indicates whether a workaround has been applied to address the issue."}, "doc.servicenow.workaround_communicated_at": {"name": "workaround_communicated_at", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.workaround_communicated_at", "block_contents": "The timestamp indicating when the workaround for the issue was communicated."}, "doc.servicenow.workaround_communicated_by_link": {"name": "workaround_communicated_by_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.workaround_communicated_by_link", "block_contents": "A link to the person or entity who communicated the workaround for the issue."}, "doc.servicenow.workaround_communicated_by_value": {"name": "workaround_communicated_by_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.workaround_communicated_by_value", "block_contents": "The name or identifier of the person or entity who communicated the workaround for the issue."}, "doc.servicenow.cause_code": {"name": "cause_code", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.cause_code", "block_contents": "The code or identifier associated with the cause of the issue or problem."}, "doc.servicenow.problem_task_cause_code": {"name": "problem_task_cause_code", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.problem_task_cause_code", "block_contents": "The code or identifier associated with the cause of the issue or problem."}, "doc.servicenow.close_code": {"name": "close_code", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.close_code", "block_contents": "The code or identifier associated with the closure or resolution."}, "doc.servicenow.problem_task_close_code": {"name": "problem_task_close_code", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.problem_task_close_code", "block_contents": "The code or identifier associated with the closure or resolution of the problem task."}, "doc.servicenow.change_task_close_code": {"name": "change_task_close_code", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.change_task_close_code", "block_contents": "The code or identifier associated with the closure or resolution of the change task."}, "doc.servicenow.change_request_close_code": {"name": "change_request_close_code", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.change_request_close_code", "block_contents": "The code or identifier associated with the closure or resolution of the change request."}, "doc.servicenow.other_reason": {"name": "other_reason", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.other_reason", "block_contents": "Additional information or reasons associated with the issue, especially if it falls outside standard categories."}, "doc.servicenow.problem_link": {"name": "problem_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.problem_link", "block_contents": "A link to the problem record associated with the issue or incident."}, "doc.servicenow.problem_task_type": {"name": "problem_task_type", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.problem_task_type", "block_contents": "The type or category of the task associated with the problem or issue."}, "doc.servicenow.problem_value": {"name": "problem_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.problem_value", "block_contents": "The unique identifier or name associated with the problem record linked to the issue."}, "doc.servicenow.started_at": {"name": "started_at", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.started_at", "block_contents": "The timestamp indicating when the issue or incident was initiated or started."}, "doc.servicenow.problem_task_started_at": {"name": "problem_task_started_at", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.problem_task_started_at", "block_contents": "The timestamp indicating when the issue or incident was initiated or started."}, "doc.servicenow.started_by_link": {"name": "started_by_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.started_by_link", "block_contents": "A link to the person or entity who initiated or started the issue or incident."}, "doc.servicenow.started_by_value": {"name": "started_by_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.started_by_value", "block_contents": "The name or identifier of the person or entity who initiated or started the issue or incident."}, "doc.servicenow.vendor_link": {"name": "vendor_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.vendor_link", "block_contents": "A link to the vendor or external entity associated with the record."}, "doc.servicenow.vendor_value": {"name": "vendor_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.vendor_value", "block_contents": "The name or identifier of the vendor or external entity linked to the record."}, "doc.servicenow.business_impact": {"name": "business_impact", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.business_impact", "block_contents": "Information about the impact of the issue on business operations or services."}, "doc.servicenow.business_stc": {"name": "business_stc", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.business_stc", "block_contents": "The business service that is impacted by the issue or incident."}, "doc.servicenow.calendar_stc": {"name": "calendar_stc", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.calendar_stc", "block_contents": "The calendar or schedule associated with the business service impacted by the issue."}, "doc.servicenow.caller_id_link": {"name": "caller_id_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.caller_id_link", "block_contents": "A link to the person or entity identified as the caller or reporter of the issue or incident."}, "doc.servicenow.caller_id_value": {"name": "caller_id_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.caller_id_value", "block_contents": "The name or identifier of the person or entity identified as the caller or reporter of the issue."}, "doc.servicenow.cause": {"name": "cause", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.cause", "block_contents": "A description or explanation of the root cause of the issue or incident."}, "doc.servicenow.caused_by_link": {"name": "caused_by_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.caused_by_link", "block_contents": "A link to the record or entity that caused or triggered the issue or incident."}, "doc.servicenow.caused_by_value": {"name": "caused_by_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.caused_by_value", "block_contents": "The name or identifier of the record or entity that caused or triggered the issue or incident."}, "doc.servicenow.child_incidents": {"name": "child_incidents", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.child_incidents", "block_contents": "Information about other incidents that are identified as child incidents linked to the current incident."}, "doc.servicenow.hold_reason": {"name": "hold_reason", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.hold_reason", "block_contents": "The reason or rationale for placing the issue or incident on hold."}, "doc.servicenow.incident_state": {"name": "incident_state", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.incident_state", "block_contents": "The current state or status of the incident."}, "doc.servicenow.notify": {"name": "notify", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.notify", "block_contents": "Indicates whether notifications or alerts have been configured for the issue or incident."}, "doc.servicenow.origin_id_link": {"name": "origin_id_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.origin_id_link", "block_contents": "A link to the original or source record from which the current record originated."}, "doc.servicenow.origin_id_value": {"name": "origin_id_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.origin_id_value", "block_contents": "The unique identifier or name associated with the original or source record linked to the current record."}, "doc.servicenow.parent_incident_link": {"name": "parent_incident_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.parent_incident_link", "block_contents": "A link to the parent incident record, indicating the incident from which the current incident is derived or related."}, "doc.servicenow.parent_incident_value": {"name": "parent_incident_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.parent_incident_value", "block_contents": "The unique identifier or name associated with the parent incident record linked to the current incident."}, "doc.servicenow.problem_id_link": {"name": "problem_id_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.problem_id_link", "block_contents": "A link to the problem record associated with the current issue or incident."}, "doc.servicenow.problem_id_value": {"name": "problem_id_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.problem_id_value", "block_contents": "The unique identifier or name associated with the problem record linked to the current issue or incident."}, "doc.servicenow.reopened_time": {"name": "reopened_time", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.reopened_time", "block_contents": "The timestamp indicating when the issue or incident was reopened after being previously resolved."}, "doc.servicenow.severity": {"name": "severity", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.severity", "block_contents": "The level of impact or seriousness assigned to the issue or incident."}, "doc.servicenow.change_request_link": {"name": "change_request_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.change_request_link", "block_contents": "A link to the change request record associated with the issue or incident."}, "doc.servicenow.change_request_value": {"name": "change_request_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.change_request_value", "block_contents": "The unique identifier or name associated with the change request record linked to the issue or incident."}, "doc.servicenow.change_task_type": {"name": "change_task_type", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.change_task_type", "block_contents": "The type or category of the task associated with the change request or change record."}, "doc.servicenow.created_from": {"name": "created_from", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.created_from", "block_contents": "Information about the source or origin of the current record, indicating how it was created or generated."}, "doc.servicenow.change_task_created_from": {"name": "change_task_created_from", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.change_task_created_from", "block_contents": "Information about the source or origin of the current record, indicating how it was created or generated."}, "doc.servicenow.on_hold": {"name": "on_hold", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.on_hold", "block_contents": "Indicates whether the issue or incident is currently on hold or paused."}, "doc.servicenow.is_change_on_hold": {"name": "is_change_on_hold", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.is_change_on_hold", "block_contents": "Indicates whether the change task is currently on hold or paused."}, "doc.servicenow.is_change_request_on_hold": {"name": "is_change_request_on_hold", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.is_change_request_on_hold", "block_contents": "Indicates whether the change is currently on hold or paused."}, "doc.servicenow.on_hold_reason": {"name": "on_hold_reason", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.on_hold_reason", "block_contents": "The reason or rationale for placing the associated record on hold."}, "doc.servicenow.change_task_on_hold_reason": {"name": "change_task_on_hold_reason", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.change_task_on_hold_reason", "block_contents": "The reason or rationale for placing the change task on hold."}, "doc.servicenow.change_request_on_hold_reason": {"name": "change_request_on_hold_reason", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.change_request_on_hold_reason", "block_contents": "The reason or rationale for placing the change on hold."}, "doc.servicenow.planned_end_date": {"name": "planned_end_date", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.planned_end_date", "block_contents": "The planned or scheduled end date for the change request or change record."}, "doc.servicenow.change_task_planned_end_date": {"name": "change_task_planned_end_date", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.change_task_planned_end_date", "block_contents": "The planned or scheduled end date for the change request or change record."}, "doc.servicenow.planned_start_date": {"name": "planned_start_date", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.planned_start_date", "block_contents": "The planned or scheduled start date for the change request or change record."}, "doc.servicenow.change_task_planned_start_date": {"name": "change_task_planned_start_date", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.change_task_planned_start_date", "block_contents": "The planned or scheduled start date for the change request or change record."}, "doc.servicenow.backout_plan": {"name": "backout_plan", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.backout_plan", "block_contents": "Information about the plan or process for backing out or undoing the changes associated with the current record."}, "doc.servicenow.cab_date": {"name": "cab_date", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.cab_date", "block_contents": "The date of the Change Advisory Board (CAB) meeting associated with the change request or change record."}, "doc.servicenow.cab_date_time": {"name": "cab_date_time", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.cab_date_time", "block_contents": "The date and time of the Change Advisory Board (CAB) meeting associated with the change request or change record."}, "doc.servicenow.cab_delegate_link": {"name": "cab_delegate_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.cab_delegate_link", "block_contents": "A link to the person or entity delegated to represent or act on behalf of the Change Advisory Board (CAB) in relation \nto the change request."}, "doc.servicenow.cab_delegate_value": {"name": "cab_delegate_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.cab_delegate_value", "block_contents": "The name or identifier of the person or entity delegated to represent or act on behalf of the Change Advisory Board (CAB) \nin relation to the change request."}, "doc.servicenow.cab_recommendation": {"name": "cab_recommendation", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.cab_recommendation", "block_contents": "The recommendation or decision made by the Change Advisory Board (CAB) regarding the change request."}, "doc.servicenow.cab_required": {"name": "cab_required", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.cab_required", "block_contents": "Indicates whether the Change Advisory Board (CAB) approval is required for the change request."}, "doc.servicenow.is_cab_required": {"name": "is_cab_required", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.is_cab_required", "block_contents": "Indicates whether the Change Advisory Board (CAB) approval is required for the change request."}, "doc.servicenow.change_plan": {"name": "change_plan", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.change_plan", "block_contents": "Information about the plan or process for implementing the changes associated with the current record."}, "doc.servicenow.chg_model_link": {"name": "chg_model_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.chg_model_link", "block_contents": "A link to the change model or template associated with the change request or change record."}, "doc.servicenow.chg_model_value": {"name": "chg_model_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.chg_model_value", "block_contents": "The name or identifier of the change model or template linked to the change request or change record."}, "doc.servicenow.conflict_last_run": {"name": "conflict_last_run", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.conflict_last_run", "block_contents": "The timestamp indicating when the conflict detection was last run for the change request or change record."}, "doc.servicenow.conflict_status": {"name": "conflict_status", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.conflict_status", "block_contents": "The status or outcome of the conflict detection process for the change request or change record."}, "doc.servicenow.end_date": {"name": "end_date", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.end_date", "block_contents": "The end date for the implementation or execution associated with the current record."}, "doc.servicenow.change_end_date": {"name": "change_end_date", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.change_end_date", "block_contents": "The end date for the change or execution of the changes associated with the current record."}, "doc.servicenow.implementation_plan": {"name": "implementation_plan", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.implementation_plan", "block_contents": "Information about the plan or process for implementing the changes associated with the current record."}, "doc.servicenow.change_implementation_plan": {"name": "change_implementation_plan", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.change_implementation_plan", "block_contents": "Information about the plan or process for implementing the changes associated with the current record."}, "doc.servicenow.justification": {"name": "justification", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.justification", "block_contents": "The reasoning or justification behind the changes associated with the current record, providing context or explanation for the modifications made."}, "doc.servicenow.change_justification": {"name": "change_justification", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.change_justification", "block_contents": "The reasoning or justification behind the changes associated with the current record, providing context or explanation for the modifications made."}, "doc.servicenow.change_request_end_date": {"name": "change_request_end_date", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.change_request_end_date", "block_contents": "The end date for the change or execution of the change request associated with the current record."}, "doc.servicenow.change_request_implementation_plan": {"name": "change_request_implementation_plan", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.change_request_implementation_plan", "block_contents": "Information about the plan or process for implementing the changes associated with the current record."}, "doc.servicenow.change_request_justification": {"name": "change_request_justification", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.change_request_justification", "block_contents": "The reasoning or justification behind the changes associated with the current record, providing context or explanation for the modifications made."}, "doc.servicenow.on_hold_task": {"name": "on_hold_task", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.on_hold_task", "block_contents": "A link to the task or activity that indicates the current record is on hold, specifying the task associated with the \nhold status."}, "doc.servicenow.outside_maintenance_schedule": {"name": "outside_maintenance_schedule", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.outside_maintenance_schedule", "block_contents": "Indicates whether the changes associated with the current record fall outside the regular maintenance schedule or window."}, "doc.servicenow.phase": {"name": "phase", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.phase", "block_contents": "The phase or stage of the change request or change record within the change management process, indicating its progress or status."}, "doc.servicenow.change_phase": {"name": "change_phase", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.change_phase", "block_contents": "The phase or stage of the change request or change record within the change management process, indicating its progress or status."}, "doc.servicenow.phase_state": {"name": "phase_state", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.phase_state", "block_contents": "The current state or status of the phase associated with the change request or change record."}, "doc.servicenow.change_phase_state": {"name": "change_phase_state", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.change_phase_state", "block_contents": "The current state or status of the phase associated with the change request or change record."}, "doc.servicenow.production_system": {"name": "production_system", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.production_system", "block_contents": "Indicates whether the changes associated with the current record are intended for the production environment or system."}, "doc.servicenow.is_production_system": {"name": "is_production_system", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.is_production_system", "block_contents": "Indicates whether the changes associated with the current record are intended for the production environment or system."}, "doc.servicenow.reason": {"name": "reason", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.reason", "block_contents": "The reason or rationale behind the changes requested by the current record, providing context or explanation for the modifications made."}, "doc.servicenow.change_reason": {"name": "change_reason", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.change_reason", "block_contents": "The reason or rationale behind the changes associated with the current record, providing context or explanation for the modifications made."}, "doc.servicenow.requested_by_date": {"name": "requested_by_date", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.requested_by_date", "block_contents": "The date when the changes associated with the current record were requested or initiated."}, "doc.servicenow.change_requested_by_date": {"name": "change_requested_by_date", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.change_requested_by_date", "block_contents": "The date when the changes associated with the current record were requested or initiated."}, "doc.servicenow.requested_by_link": {"name": "requested_by_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.requested_by_link", "block_contents": "A link to the person or entity who requested or initiated the changes associated with the current record."}, "doc.servicenow.change_requested_by_link": {"name": "change_requested_by_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.change_requested_by_link", "block_contents": "A link to the person or entity who requested or initiated the changes associated with the current record."}, "doc.servicenow.requested_by_value": {"name": "requested_by_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.requested_by_value", "block_contents": "The name or identifier of the person or entity who requested or initiated the changes associated with the current record."}, "doc.servicenow.change_requested_by_value": {"name": "change_requested_by_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.change_requested_by_value", "block_contents": "The name or identifier of the person or entity who requested or initiated the changes associated with the current record."}, "doc.servicenow.review_comments": {"name": "review_comments", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.review_comments", "block_contents": "Comments or feedback provided during the review process for the changes associated with the current record."}, "doc.servicenow.review_date": {"name": "review_date", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.review_date", "block_contents": "The date when the record was reviewed or evaluated."}, "doc.servicenow.change_review_date": {"name": "change_review_date", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.change_review_date", "block_contents": "The date when the changes associated with the current record were reviewed or evaluated."}, "doc.servicenow.change_request_review_date": {"name": "change_request_review_date", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.change_request_review_date", "block_contents": "The date when the change request was reviewed or evaluated."}, "doc.servicenow.review_status": {"name": "review_status", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.review_status", "block_contents": "The status or outcome of the review process associated with the current record."}, "doc.servicenow.change_request_review_status": {"name": "change_request_review_status", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.change_request_review_status", "block_contents": "The status or outcome of the review process for the change request associated with the current record."}, "doc.servicenow.risk": {"name": "risk", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.risk", "block_contents": "The level of risk associated with the changes, indicating the potential impact or consequences of implementing the modifications outlined in the current record."}, "doc.servicenow.change_request_risk": {"name": "change_request_risk", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.change_request_risk", "block_contents": "The level of risk associated with the changes, indicating the potential impact or consequences of implementing the modifications outlined in the current record."}, "doc.servicenow.risk_impact_analysis": {"name": "risk_impact_analysis", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.risk_impact_analysis", "block_contents": "An analysis or assessment of the impact or consequences of the changes outlined in the current record."}, "doc.servicenow.scope": {"name": "scope", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.scope", "block_contents": "The scope or extent of the changes outlined in the current record, specifying the areas or components affected by the modifications."}, "doc.servicenow.change_request_scope": {"name": "change_request_scope", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.change_request_scope", "block_contents": "The scope or extent of the changes outlined in the current record, specifying the areas or components affected by the modifications."}, "doc.servicenow.change_request_start_date": {"name": "change_request_start_date", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.change_request_start_date", "block_contents": "The requested start date for the implementation or execution of the changes associated with the current record."}, "doc.servicenow.start_date": {"name": "start_date", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.start_date", "block_contents": "The start date associated with the current record."}, "doc.servicenow.std_change_producer_version_link": {"name": "std_change_producer_version_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.std_change_producer_version_link", "block_contents": "A link to the version of the standard change producer associated with the current record."}, "doc.servicenow.std_change_producer_version_value": {"name": "std_change_producer_version_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.std_change_producer_version_value", "block_contents": "The name or identifier of the version of the standard change producer linked to the current record."}, "doc.servicenow.test_plan": {"name": "test_plan", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.test_plan", "block_contents": "Information about the plan or process for testing the changes associated with the current record."}, "doc.servicenow.change_request_test_plan": {"name": "change_request_test_plan", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.change_request_test_plan", "block_contents": "Information about the plan or process for testing the changes requested by the change request of this record."}, "doc.servicenow.type": {"name": "type", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.type", "block_contents": "The type or category regarding the current record"}, "doc.servicenow.change_request_type": {"name": "change_request_type", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.change_request_type", "block_contents": "The type or category of the changes outlined in the current record, indicating the nature or purpose of the modifications."}, "doc.servicenow.unauthorized": {"name": "unauthorized", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.unauthorized", "block_contents": "Indicates whether the changes associated with the current record were made without proper authorization or approval."}, "doc.servicenow.is_change_request_unauthorized": {"name": "is_change_request_unauthorized", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.is_change_request_unauthorized", "block_contents": "Indicates whether the changes associated with the current record were made without proper authorization or approval."}, "doc.servicenow.category": {"name": "category", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.category", "block_contents": "The category of the record."}, "doc.servicenow.change_category": {"name": "change_category", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.change_category", "block_contents": "The category of the change."}, "doc.servicenow.problem_category": {"name": "problem_category", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.problem_category", "block_contents": "The category of the problem."}, "doc.servicenow.servicenow__task_enhanced": {"name": "servicenow__task_enhanced", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.servicenow__task_enhanced", "block_contents": "Each record represents a task with additional information about its associated problem, incident, or change request. Finally, it contains user information for who opened, started, updated, reported, fixed, closed, requested, reported, or confirmed the task."}, "doc.servicenow.is_problem_task": {"name": "is_problem_task", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.is_problem_task", "block_contents": "A boolean of whether the task is a problem task."}, "doc.servicenow.is_change_task": {"name": "is_change_task", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.is_change_task", "block_contents": "A boolean of whether the task is a change task."}, "doc.servicenow.task_minutes_open_to_close": {"name": "task_minutes_open_to_close", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.task_minutes_open_to_close", "block_contents": "The number of minutes from time that the task was opened to the time that the task was closed."}, "doc.servicenow.associated_problem_id": {"name": "associated_problem_id", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.associated_problem_id", "block_contents": "The associated problem with this task; the sys_id from the problem object."}, "doc.servicenow.associated_change_request_id": {"name": "associated_change_request_id", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.associated_change_request_id", "block_contents": "The associated change request with this task; the sys_id from the change request object."}, "doc.servicenow.servicenow__activity_summary": {"name": "servicenow__activity_summary", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.servicenow__activity_summary", "block_contents": "Each record represents aggregate task, problem, change, incident, and change request data by varying grains including update date, status, priority, impact, and urgency."}, "doc.servicenow.total_incidents_caused_by_problem": {"name": "total_incidents_caused_by_problem", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.total_incidents_caused_by_problem", "block_contents": "The total number of incidents associated with this problem."}, "doc.servicenow.total_active_tasks": {"name": "total_active_tasks", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.total_active_tasks", "block_contents": "Total number of active tasks"}, "doc.servicenow.total_active_problem_tasks": {"name": "total_active_problem_tasks", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.total_active_problem_tasks", "block_contents": "Total number of active problem tasks"}, "doc.servicenow.total_active_change_tasks": {"name": "total_active_change_tasks", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.total_active_change_tasks", "block_contents": "Total number of active change tasks"}, "doc.servicenow.total_associated_problems": {"name": "total_associated_problems", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.total_associated_problems", "block_contents": "Total number of problems"}, "doc.servicenow.total_incidents_caused_by_problems": {"name": "total_incidents_caused_by_problems", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.total_incidents_caused_by_problems", "block_contents": "Total number of incidents caused by associated problems"}, "doc.servicenow.total_change_requests": {"name": "total_change_requests", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.total_change_requests", "block_contents": "Total number of change requests"}, "doc.servicenow.total_closed_tasks": {"name": "total_closed_tasks", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.total_closed_tasks", "block_contents": "Total number of closed tasks"}, "doc.servicenow.average_minutes_open_to_close": {"name": "average_minutes_open_to_close", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.average_minutes_open_to_close", "block_contents": "Average number of minutes between the time that the task was opened to the time that the task was closed."}, "doc.servicenow.total_tasks_made_slas": {"name": "total_tasks_made_slas", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.total_tasks_made_slas", "block_contents": "The count of total tasks where is_made_sla = True"}, "doc.servicenow.customer": {"name": "customer", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.customer", "block_contents": "Boolean of whether the company is a customer."}, "doc.servicenow.fax_phone": {"name": "fax_phone", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.fax_phone", "block_contents": "Fax phone number of the record."}, "doc.servicenow.fiscal_year": {"name": "fiscal_year", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.fiscal_year", "block_contents": "Company's fiscal year"}, "doc.servicenow.notes": {"name": "notes", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.notes", "block_contents": "Notes about the record"}, "doc.servicenow.address_state": {"name": "address_state", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.address_state", "block_contents": "The geographical state to which the record belongs"}, "doc.servicenow.street": {"name": "street", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.street", "block_contents": "The street to which the record belongs"}, "doc.servicenow.vendor": {"name": "vendor", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.vendor", "block_contents": "Boolean of whether the company is a vendor"}, "doc.servicenow.vendor_type": {"name": "vendor_type", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.vendor_type", "block_contents": "Vendor types group vendors that offer similar goods and services, and are useful for reporting and comparing vendor performance. Example: Hardware, Services"}, "doc.servicenow.website": {"name": "website", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.website", "block_contents": "Company website"}, "doc.servicenow.stg_servicenow__core_company": {"name": "stg_servicenow__core_company", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.stg_servicenow__core_company", "block_contents": "Staging table containing all records relating to companies."}, "doc.servicenow.core_company": {"name": "core_company", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.core_company", "block_contents": "Table containing all company related information."}, "doc.servicenow.cmdb_ci": {"name": "cmdb_ci", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.cmdb_ci", "block_contents": "The base table for all CI (Configuration Item) tables in the CMDB (Configuration Management Database)"}, "doc.servicenow.stg_servicenow__cmdb_ci": {"name": "stg_servicenow__cmdb_ci", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.stg_servicenow__cmdb_ci", "block_contents": "Staging table containing all records relating to CI(Configuration Item) tables in the CMDB (Configuration Management Database)"}, "doc.servicenow.cmdb_ci_service": {"name": "cmdb_ci_service", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.cmdb_ci_service", "block_contents": "Table containing all information related to application service areas. An application service is work or goods that are supported by an IT infrastructure. For example, delivering email service to an employee can require services such as email servers, web servers, and the work to configure the user's account. An application service management map graphically displays the configuration items (CI) that support an application service and the relationships between the CIs."}, "doc.servicenow.stg_servicenow__cmdb_ci_service": {"name": "stg_servicenow__cmdb_ci_service", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.stg_servicenow__cmdb_ci_service", "block_contents": "Staging table containing all records related to CMDB CI service areas."}, "doc.servicenow.sys_user_group": {"name": "sys_user_group", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.sys_user_group", "block_contents": "Table containing all information related to user groups."}, "doc.servicenow.stg_servicenow__sys_user_group": {"name": "stg_servicenow__sys_user_group", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.stg_servicenow__sys_user_group", "block_contents": "Staging table containing all information related to user groups."}, "doc.servicenow.attributes": {"name": "attributes", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.attributes", "block_contents": "Data elements which describe the characteristics of CIs"}, "doc.servicenow.business_unit_link": {"name": "business_unit_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.business_unit_link", "block_contents": "Link to business unit. Business units usually comprise departments and are associated with a company"}, "doc.servicenow.business_unit_value": {"name": "business_unit_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.business_unit_value", "block_contents": "The ID of the business unit."}, "doc.servicenow.cost": {"name": "cost", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.cost", "block_contents": "The cost related to the record."}, "doc.servicenow.cost_cc": {"name": "cost_cc", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.cost_cc", "block_contents": "The cost center that the record belongs to."}, "doc.servicenow.managed_by_link": {"name": "managed_by_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.managed_by_link", "block_contents": "The link to the user profile that manages this record."}, "doc.servicenow.managed_by_value": {"name": "managed_by_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.managed_by_value", "block_contents": "The ID of the user profile that manages this record."}, "doc.servicenow.manufacturer_link": {"name": "manufacturer_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.manufacturer_link", "block_contents": "The link to the manufacturer that manages this record."}, "doc.servicenow.manufacturer_value": {"name": "manufacturer_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.manufacturer_value", "block_contents": "The ID of the manufacturer that manages this record."}, "doc.servicenow.model_id_link": {"name": "model_id_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.model_id_link", "block_contents": "The link to the model related to the CI."}, "doc.servicenow.model_id_value": {"name": "model_id_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.model_id_value", "block_contents": "The ID to the model related to the CI."}, "doc.servicenow.model_number": {"name": "model_number", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.model_number", "block_contents": "The number of the model related to the IC."}, "doc.servicenow.owned_by_link": {"name": "owned_by_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.owned_by_link", "block_contents": "The link to the owner of the CI related to this record."}, "doc.servicenow.owned_by_value": {"name": "owned_by_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.owned_by_value", "block_contents": "The ID to the owner of the CI related to this record."}, "doc.servicenow.sys_class_path": {"name": "sys_class_path", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.sys_class_path", "block_contents": "Where a particular CI class is within the overall hierarchy of classes."}, "doc.servicenow.service_classification": {"name": "service_classification", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.service_classification", "block_contents": "The type of service. Each type contains groups of CI services that share attributes."}, "doc.servicenow.service_level_requirement": {"name": "service_level_requirement", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.service_level_requirement", "block_contents": "Requirement specified to maintain service commitments between parties."}, "doc.servicenow.default_assignee_link": {"name": "default_assignee_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.default_assignee_link", "block_contents": "Link to the user that is the default assignee for this record."}, "doc.servicenow.default_assignee_value": {"name": "default_assignee_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.default_assignee_value", "block_contents": "ID of the user that is the default assignee for this record."}, "doc.servicenow.exclude_manager": {"name": "exclude_manager", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.exclude_manager", "block_contents": "Boolean of whether the group manager receives email notifications."}, "doc.servicenow.include_members": {"name": "include_members", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.include_members", "block_contents": "Boolean of whether the group members receive individual emails when someone sends an email to the Group Email address."}, "doc.servicenow.sys_user_group_parent_value": {"name": "sys_user_group_parent_value", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.sys_user_group_parent_value", "block_contents": "ID of the other group of which this group is a member. If a group has a parent, the child group inherits the roles of the parent group. The members of the child group are not members of the parent group."}, "doc.servicenow.sys_user_group_parent_link": {"name": "sys_user_group_parent_link", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.sys_user_group_parent_link", "block_contents": "Link to the other group of which this group is a member. If a group has a parent, the child group inherits the roles of the parent group. The members of the child group are not members of the parent group."}, "doc.servicenow.cmdb_ci_name": {"name": "cmdb_ci_name", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.cmdb_ci_name", "block_contents": "Name of the relevant CMDB CI."}, "doc.servicenow.assignment_group_name": {"name": "assignment_group_name", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.assignment_group_name", "block_contents": "Name of the relevant assignment group."}, "doc.servicenow.business_service_name": {"name": "business_service_name", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.business_service_name", "block_contents": "Name of the relevant business service."}, "doc.servicenow.task_updated_date": {"name": "task_updated_date", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.task_updated_date", "block_contents": "The day the task last got updated."}, "doc.servicenow.unverified": {"name": "unverified", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.unverified", "block_contents": "Boolean indicating if the change task is unverified."}, "doc.servicenow.monitor": {"name": "monitor", "resource_type": "doc", "package_name": "servicenow", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.servicenow.monitor", "block_contents": "Monitor in relation to the cmdb_ci_service."}}, "exposures": {}, "metrics": {}, "groups": {}, "selectors": {}, "disabled": {}, "parent_map": {"model.servicenow.servicenow__activity_summary": ["model.servicenow.servicenow__task_enhanced"], "model.servicenow.servicenow__task_enhanced": ["model.servicenow.stg_servicenow__change_request", "model.servicenow.stg_servicenow__change_task", "model.servicenow.stg_servicenow__cmdb_ci", "model.servicenow.stg_servicenow__cmdb_ci_service", "model.servicenow.stg_servicenow__core_company", "model.servicenow.stg_servicenow__problem", "model.servicenow.stg_servicenow__problem_task", "model.servicenow.stg_servicenow__sys_user", "model.servicenow.stg_servicenow__sys_user_group", "model.servicenow.stg_servicenow__task"], "model.servicenow.stg_servicenow__task": ["model.servicenow.stg_servicenow__task_base"], "model.servicenow.stg_servicenow__cmdb_ci": ["model.servicenow.stg_servicenow__cmdb_ci_base"], "model.servicenow.stg_servicenow__cmdb_ci_service": ["model.servicenow.stg_servicenow__cmdb_ci_service_base"], "model.servicenow.stg_servicenow__change_task": ["model.servicenow.stg_servicenow__change_task_base"], "model.servicenow.stg_servicenow__sys_user_group": ["model.servicenow.stg_servicenow__sys_user_group_base"], "model.servicenow.stg_servicenow__incident": ["model.servicenow.stg_servicenow__incident_base"], "model.servicenow.stg_servicenow__task_sla": ["model.servicenow.stg_servicenow__task_sla_base"], "model.servicenow.stg_servicenow__core_company": ["model.servicenow.stg_servicenow__core_company_base"], "model.servicenow.stg_servicenow__sys_user": ["model.servicenow.stg_servicenow__sys_user_base"], "model.servicenow.stg_servicenow__change_request": ["model.servicenow.stg_servicenow__change_request_base"], "model.servicenow.stg_servicenow__problem_task": ["model.servicenow.stg_servicenow__problem_task_base"], "model.servicenow.stg_servicenow__problem": ["model.servicenow.stg_servicenow__problem_base"], "model.servicenow.stg_servicenow__task_base": ["source.servicenow.servicenow.task"], "model.servicenow.stg_servicenow__incident_base": ["source.servicenow.servicenow.incident"], "model.servicenow.stg_servicenow__cmdb_ci_service_base": ["source.servicenow.servicenow.cmdb_ci_service"], "model.servicenow.stg_servicenow__problem_base": ["source.servicenow.servicenow.problem"], "model.servicenow.stg_servicenow__cmdb_ci_base": ["source.servicenow.servicenow.cmdb_ci"], "model.servicenow.stg_servicenow__sys_user_group_base": ["source.servicenow.servicenow.sys_user_group"], "model.servicenow.stg_servicenow__problem_task_base": ["source.servicenow.servicenow.problem_task"], "model.servicenow.stg_servicenow__change_request_base": ["source.servicenow.servicenow.change_request"], "model.servicenow.stg_servicenow__task_sla_base": ["source.servicenow.servicenow.task_sla"], "model.servicenow.stg_servicenow__core_company_base": ["source.servicenow.servicenow.core_company"], "model.servicenow.stg_servicenow__change_task_base": ["source.servicenow.servicenow.change_task"], "model.servicenow.stg_servicenow__sys_user_base": ["source.servicenow.servicenow.sys_user"], "test.servicenow.unique_servicenow__task_enhanced_task_id.a974c4dbbc": ["model.servicenow.servicenow__task_enhanced"], "test.servicenow.not_null_servicenow__task_enhanced_task_id.76cea62cda": ["model.servicenow.servicenow__task_enhanced"], "test.servicenow.dbt_utils_unique_combination_of_columns_servicenow__activity_summary_task_updated_date__task_state__priority__impact__urgency__source_relation.8ca2665c4e": ["model.servicenow.servicenow__activity_summary"], "test.servicenow.not_null_stg_servicenow__task_task_id.7a50a91303": ["model.servicenow.stg_servicenow__task"], "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__task_task_id__source_relation.4b5ec4b727": ["model.servicenow.stg_servicenow__task"], "test.servicenow.not_null_stg_servicenow__task_sla_task_sla_id.c67b0e6fdf": ["model.servicenow.stg_servicenow__task_sla"], "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__task_sla_task_sla_id__source_relation.e9939b7a70": ["model.servicenow.stg_servicenow__task_sla"], "test.servicenow.not_null_stg_servicenow__sys_user_user_id.90a8733b9d": ["model.servicenow.stg_servicenow__sys_user"], "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__sys_user_user_id__source_relation.2a8836be3c": ["model.servicenow.stg_servicenow__sys_user"], "test.servicenow.not_null_stg_servicenow__problem_problem_id.2b0f45ffad": ["model.servicenow.stg_servicenow__problem"], "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__problem_problem_id__source_relation.135d98438b": ["model.servicenow.stg_servicenow__problem"], "test.servicenow.not_null_stg_servicenow__problem_task_problem_task_id.2d07d24f54": ["model.servicenow.stg_servicenow__problem_task"], "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__problem_task_problem_task_id__source_relation.e59f50cae6": ["model.servicenow.stg_servicenow__problem_task"], "test.servicenow.not_null_stg_servicenow__incident_incident_id.b01cee4a78": ["model.servicenow.stg_servicenow__incident"], "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__incident_incident_id__source_relation.4383616e6a": ["model.servicenow.stg_servicenow__incident"], "test.servicenow.not_null_stg_servicenow__change_task_change_task_id.2d5ae34a7b": ["model.servicenow.stg_servicenow__change_task"], "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__change_task_change_task_id__source_relation.11bf5182ff": ["model.servicenow.stg_servicenow__change_task"], "test.servicenow.not_null_stg_servicenow__change_request_change_request_id.0f2ee81c5f": ["model.servicenow.stg_servicenow__change_request"], "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__change_request_change_request_id__source_relation.f8d65569ae": ["model.servicenow.stg_servicenow__change_request"], "test.servicenow.not_null_stg_servicenow__core_company_core_company_id.e8ef462897": ["model.servicenow.stg_servicenow__core_company"], "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__core_company_core_company_id__source_relation.85b30d325b": ["model.servicenow.stg_servicenow__core_company"], "test.servicenow.not_null_stg_servicenow__cmdb_ci_cmdb_ci_id.83f2c6d37c": ["model.servicenow.stg_servicenow__cmdb_ci"], "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__cmdb_ci_cmdb_ci_id__source_relation.4d25f1839d": ["model.servicenow.stg_servicenow__cmdb_ci"], "test.servicenow.not_null_stg_servicenow__cmdb_ci_service_cmdb_ci_service_id.f7770250de": ["model.servicenow.stg_servicenow__cmdb_ci_service"], "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__cmdb_ci_service_cmdb_ci_service_id__source_relation.e596372710": ["model.servicenow.stg_servicenow__cmdb_ci_service"], "test.servicenow.not_null_stg_servicenow__sys_user_group_sys_user_group_id.a4600fb5c8": ["model.servicenow.stg_servicenow__sys_user_group"], "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__sys_user_group_sys_user_group_id__source_relation.6fd66f39ed": ["model.servicenow.stg_servicenow__sys_user_group"], "source.servicenow.servicenow.task": [], "source.servicenow.servicenow.task_sla": [], "source.servicenow.servicenow.sys_user": [], "source.servicenow.servicenow.problem": [], "source.servicenow.servicenow.problem_task": [], "source.servicenow.servicenow.incident": [], "source.servicenow.servicenow.change_task": [], "source.servicenow.servicenow.change_request": [], "source.servicenow.servicenow.core_company": [], "source.servicenow.servicenow.cmdb_ci": [], "source.servicenow.servicenow.cmdb_ci_service": [], "source.servicenow.servicenow.sys_user_group": []}, "child_map": {"model.servicenow.servicenow__activity_summary": ["test.servicenow.dbt_utils_unique_combination_of_columns_servicenow__activity_summary_task_updated_date__task_state__priority__impact__urgency__source_relation.8ca2665c4e"], "model.servicenow.servicenow__task_enhanced": ["model.servicenow.servicenow__activity_summary", "test.servicenow.not_null_servicenow__task_enhanced_task_id.76cea62cda", "test.servicenow.unique_servicenow__task_enhanced_task_id.a974c4dbbc"], "model.servicenow.stg_servicenow__task": ["model.servicenow.servicenow__task_enhanced", "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__task_task_id__source_relation.4b5ec4b727", "test.servicenow.not_null_stg_servicenow__task_task_id.7a50a91303"], "model.servicenow.stg_servicenow__cmdb_ci": ["model.servicenow.servicenow__task_enhanced", "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__cmdb_ci_cmdb_ci_id__source_relation.4d25f1839d", "test.servicenow.not_null_stg_servicenow__cmdb_ci_cmdb_ci_id.83f2c6d37c"], "model.servicenow.stg_servicenow__cmdb_ci_service": ["model.servicenow.servicenow__task_enhanced", "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__cmdb_ci_service_cmdb_ci_service_id__source_relation.e596372710", "test.servicenow.not_null_stg_servicenow__cmdb_ci_service_cmdb_ci_service_id.f7770250de"], "model.servicenow.stg_servicenow__change_task": ["model.servicenow.servicenow__task_enhanced", "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__change_task_change_task_id__source_relation.11bf5182ff", "test.servicenow.not_null_stg_servicenow__change_task_change_task_id.2d5ae34a7b"], "model.servicenow.stg_servicenow__sys_user_group": ["model.servicenow.servicenow__task_enhanced", "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__sys_user_group_sys_user_group_id__source_relation.6fd66f39ed", "test.servicenow.not_null_stg_servicenow__sys_user_group_sys_user_group_id.a4600fb5c8"], "model.servicenow.stg_servicenow__incident": ["test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__incident_incident_id__source_relation.4383616e6a", "test.servicenow.not_null_stg_servicenow__incident_incident_id.b01cee4a78"], "model.servicenow.stg_servicenow__task_sla": ["test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__task_sla_task_sla_id__source_relation.e9939b7a70", "test.servicenow.not_null_stg_servicenow__task_sla_task_sla_id.c67b0e6fdf"], "model.servicenow.stg_servicenow__core_company": ["model.servicenow.servicenow__task_enhanced", "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__core_company_core_company_id__source_relation.85b30d325b", "test.servicenow.not_null_stg_servicenow__core_company_core_company_id.e8ef462897"], "model.servicenow.stg_servicenow__sys_user": ["model.servicenow.servicenow__task_enhanced", "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__sys_user_user_id__source_relation.2a8836be3c", "test.servicenow.not_null_stg_servicenow__sys_user_user_id.90a8733b9d"], "model.servicenow.stg_servicenow__change_request": ["model.servicenow.servicenow__task_enhanced", "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__change_request_change_request_id__source_relation.f8d65569ae", "test.servicenow.not_null_stg_servicenow__change_request_change_request_id.0f2ee81c5f"], "model.servicenow.stg_servicenow__problem_task": ["model.servicenow.servicenow__task_enhanced", "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__problem_task_problem_task_id__source_relation.e59f50cae6", "test.servicenow.not_null_stg_servicenow__problem_task_problem_task_id.2d07d24f54"], "model.servicenow.stg_servicenow__problem": ["model.servicenow.servicenow__task_enhanced", "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__problem_problem_id__source_relation.135d98438b", "test.servicenow.not_null_stg_servicenow__problem_problem_id.2b0f45ffad"], "model.servicenow.stg_servicenow__task_base": ["model.servicenow.stg_servicenow__task"], "model.servicenow.stg_servicenow__incident_base": ["model.servicenow.stg_servicenow__incident"], "model.servicenow.stg_servicenow__cmdb_ci_service_base": ["model.servicenow.stg_servicenow__cmdb_ci_service"], "model.servicenow.stg_servicenow__problem_base": ["model.servicenow.stg_servicenow__problem"], "model.servicenow.stg_servicenow__cmdb_ci_base": ["model.servicenow.stg_servicenow__cmdb_ci"], "model.servicenow.stg_servicenow__sys_user_group_base": ["model.servicenow.stg_servicenow__sys_user_group"], "model.servicenow.stg_servicenow__problem_task_base": ["model.servicenow.stg_servicenow__problem_task"], "model.servicenow.stg_servicenow__change_request_base": ["model.servicenow.stg_servicenow__change_request"], "model.servicenow.stg_servicenow__task_sla_base": ["model.servicenow.stg_servicenow__task_sla"], "model.servicenow.stg_servicenow__core_company_base": ["model.servicenow.stg_servicenow__core_company"], "model.servicenow.stg_servicenow__change_task_base": ["model.servicenow.stg_servicenow__change_task"], "model.servicenow.stg_servicenow__sys_user_base": ["model.servicenow.stg_servicenow__sys_user"], "test.servicenow.unique_servicenow__task_enhanced_task_id.a974c4dbbc": [], "test.servicenow.not_null_servicenow__task_enhanced_task_id.76cea62cda": [], "test.servicenow.dbt_utils_unique_combination_of_columns_servicenow__activity_summary_task_updated_date__task_state__priority__impact__urgency__source_relation.8ca2665c4e": [], "test.servicenow.not_null_stg_servicenow__task_task_id.7a50a91303": [], "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__task_task_id__source_relation.4b5ec4b727": [], "test.servicenow.not_null_stg_servicenow__task_sla_task_sla_id.c67b0e6fdf": [], "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__task_sla_task_sla_id__source_relation.e9939b7a70": [], "test.servicenow.not_null_stg_servicenow__sys_user_user_id.90a8733b9d": [], "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__sys_user_user_id__source_relation.2a8836be3c": [], "test.servicenow.not_null_stg_servicenow__problem_problem_id.2b0f45ffad": [], "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__problem_problem_id__source_relation.135d98438b": [], "test.servicenow.not_null_stg_servicenow__problem_task_problem_task_id.2d07d24f54": [], "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__problem_task_problem_task_id__source_relation.e59f50cae6": [], "test.servicenow.not_null_stg_servicenow__incident_incident_id.b01cee4a78": [], "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__incident_incident_id__source_relation.4383616e6a": [], "test.servicenow.not_null_stg_servicenow__change_task_change_task_id.2d5ae34a7b": [], "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__change_task_change_task_id__source_relation.11bf5182ff": [], "test.servicenow.not_null_stg_servicenow__change_request_change_request_id.0f2ee81c5f": [], "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__change_request_change_request_id__source_relation.f8d65569ae": [], "test.servicenow.not_null_stg_servicenow__core_company_core_company_id.e8ef462897": [], "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__core_company_core_company_id__source_relation.85b30d325b": [], "test.servicenow.not_null_stg_servicenow__cmdb_ci_cmdb_ci_id.83f2c6d37c": [], "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__cmdb_ci_cmdb_ci_id__source_relation.4d25f1839d": [], "test.servicenow.not_null_stg_servicenow__cmdb_ci_service_cmdb_ci_service_id.f7770250de": [], "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__cmdb_ci_service_cmdb_ci_service_id__source_relation.e596372710": [], "test.servicenow.not_null_stg_servicenow__sys_user_group_sys_user_group_id.a4600fb5c8": [], "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__sys_user_group_sys_user_group_id__source_relation.6fd66f39ed": [], "source.servicenow.servicenow.task": ["model.servicenow.stg_servicenow__task_base"], "source.servicenow.servicenow.task_sla": ["model.servicenow.stg_servicenow__task_sla_base"], "source.servicenow.servicenow.sys_user": ["model.servicenow.stg_servicenow__sys_user_base"], "source.servicenow.servicenow.problem": ["model.servicenow.stg_servicenow__problem_base"], "source.servicenow.servicenow.problem_task": ["model.servicenow.stg_servicenow__problem_task_base"], "source.servicenow.servicenow.incident": ["model.servicenow.stg_servicenow__incident_base"], "source.servicenow.servicenow.change_task": ["model.servicenow.stg_servicenow__change_task_base"], "source.servicenow.servicenow.change_request": ["model.servicenow.stg_servicenow__change_request_base"], "source.servicenow.servicenow.core_company": ["model.servicenow.stg_servicenow__core_company_base"], "source.servicenow.servicenow.cmdb_ci": ["model.servicenow.stg_servicenow__cmdb_ci_base"], "source.servicenow.servicenow.cmdb_ci_service": ["model.servicenow.stg_servicenow__cmdb_ci_service_base"], "source.servicenow.servicenow.sys_user_group": ["model.servicenow.stg_servicenow__sys_user_group_base"]}, "group_map": {}, "semantic_models": {}} \ No newline at end of file diff --git a/docs/run_results.json b/docs/run_results.json index f43b6f4..850cc3f 100644 --- a/docs/run_results.json +++ b/docs/run_results.json @@ -1 +1 @@ -{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/run-results/v5.json", "dbt_version": "1.7.4", "generated_at": "2024-01-18T19:41:45.880532Z", "invocation_id": "a6c6f095-5c56-4d80-b9ea-baf4b7420184", "env": {}}, "results": [{"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-18T19:41:43.945706Z", "completed_at": "2024-01-18T19:41:44.275130Z"}, {"name": "execute", "started_at": "2024-01-18T19:41:44.275671Z", "completed_at": "2024-01-18T19:41:44.275687Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.3576531410217285, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.servicenow.stg_servicenow__change_request_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"servicenow_integration_tests_3\".\"change_request_data\"", "relation_name": "\"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__change_request_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-18T19:41:44.301942Z", "completed_at": "2024-01-18T19:41:44.306520Z"}, {"name": "execute", "started_at": "2024-01-18T19:41:44.307049Z", "completed_at": "2024-01-18T19:41:44.307055Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.006171226501464844, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.servicenow.stg_servicenow__core_company_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n select \n cast(null as TEXT) as _dbt_source_relation\n limit 0", "relation_name": "\"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__core_company_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-18T19:41:44.308974Z", "completed_at": "2024-01-18T19:41:44.312123Z"}, {"name": "execute", "started_at": "2024-01-18T19:41:44.312656Z", "completed_at": "2024-01-18T19:41:44.312661Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.00490117073059082, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.servicenow.stg_servicenow__incident_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"servicenow_integration_tests_3\".\"incident_data\"", "relation_name": "\"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__incident_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-18T19:41:44.314889Z", "completed_at": "2024-01-18T19:41:44.318116Z"}, {"name": "execute", "started_at": "2024-01-18T19:41:44.318749Z", "completed_at": "2024-01-18T19:41:44.318754Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.005404949188232422, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.servicenow.stg_servicenow__problem_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"servicenow_integration_tests_3\".\"problem_data\"", "relation_name": "\"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__problem_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-18T19:41:44.320484Z", "completed_at": "2024-01-18T19:41:44.323636Z"}, {"name": "execute", "started_at": "2024-01-18T19:41:44.324347Z", "completed_at": "2024-01-18T19:41:44.324357Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.0050640106201171875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.servicenow.stg_servicenow__problem_task_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"servicenow_integration_tests_3\".\"problem_task_data\"", "relation_name": "\"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__problem_task_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-18T19:41:44.326872Z", "completed_at": "2024-01-18T19:41:44.371567Z"}, {"name": "execute", "started_at": "2024-01-18T19:41:44.374025Z", "completed_at": "2024-01-18T19:41:44.374034Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.04930686950683594, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.servicenow.stg_servicenow__sys_user_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"servicenow_integration_tests_3\".\"sys_user_data\"", "relation_name": "\"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__sys_user_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-18T19:41:44.379122Z", "completed_at": "2024-01-18T19:41:44.382923Z"}, {"name": "execute", "started_at": "2024-01-18T19:41:44.383469Z", "completed_at": "2024-01-18T19:41:44.383475Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.006474971771240234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.servicenow.stg_servicenow__sys_user_group_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n select \n cast(null as TEXT) as _dbt_source_relation\n limit 0", "relation_name": "\"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__sys_user_group_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-18T19:41:44.385167Z", "completed_at": "2024-01-18T19:41:44.387814Z"}, {"name": "execute", "started_at": "2024-01-18T19:41:44.388315Z", "completed_at": "2024-01-18T19:41:44.388319Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.004255771636962891, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.servicenow.stg_servicenow__task_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"servicenow_integration_tests_3\".\"task_data\"", "relation_name": "\"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__task_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-18T19:41:44.390527Z", "completed_at": "2024-01-18T19:41:44.393581Z"}, {"name": "execute", "started_at": "2024-01-18T19:41:44.394094Z", "completed_at": "2024-01-18T19:41:44.394099Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.004790067672729492, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.servicenow.stg_servicenow__task_sla_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"servicenow_integration_tests_3\".\"task_sla_data\"", "relation_name": "\"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__task_sla_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-18T19:41:44.395754Z", "completed_at": "2024-01-18T19:41:44.396908Z"}, {"name": "execute", "started_at": "2024-01-18T19:41:44.397533Z", "completed_at": "2024-01-18T19:41:44.397538Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.0028159618377685547, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.servicenow_integration_tests.change_request_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-18T19:41:44.399391Z", "completed_at": "2024-01-18T19:41:44.400459Z"}, {"name": "execute", "started_at": "2024-01-18T19:41:44.401015Z", "completed_at": "2024-01-18T19:41:44.401020Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.0028460025787353516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.servicenow_integration_tests.change_task_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-18T19:41:43.966107Z", "completed_at": "2024-01-18T19:41:44.373727Z"}, {"name": "execute", "started_at": "2024-01-18T19:41:44.375526Z", "completed_at": "2024-01-18T19:41:44.375529Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.46325087547302246, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.servicenow.stg_servicenow__change_task_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"servicenow_integration_tests_3\".\"change_task_data\"", "relation_name": "\"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__change_task_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-18T19:41:43.971756Z", "completed_at": "2024-01-18T19:41:44.374654Z"}, {"name": "execute", "started_at": "2024-01-18T19:41:44.377067Z", "completed_at": "2024-01-18T19:41:44.377070Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.4630579948425293, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.servicenow.stg_servicenow__cmdb_ci_service_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n select \n cast(null as TEXT) as _dbt_source_relation\n limit 0", "relation_name": "\"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__cmdb_ci_service_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-18T19:41:44.402686Z", "completed_at": "2024-01-18T19:41:44.404702Z"}, {"name": "execute", "started_at": "2024-01-18T19:41:44.406077Z", "completed_at": "2024-01-18T19:41:44.406083Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.00599980354309082, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.servicenow_integration_tests.incident_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-18T19:41:43.969237Z", "completed_at": "2024-01-18T19:41:44.375776Z"}, {"name": "execute", "started_at": "2024-01-18T19:41:44.378029Z", "completed_at": "2024-01-18T19:41:44.378036Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.4657878875732422, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.servicenow.stg_servicenow__cmdb_ci_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n \n select \n cast(null as TEXT) as _dbt_source_relation\n limit 0", "relation_name": "\"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__cmdb_ci_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-18T19:41:44.412742Z", "completed_at": "2024-01-18T19:41:44.413924Z"}, {"name": "execute", "started_at": "2024-01-18T19:41:44.418469Z", "completed_at": "2024-01-18T19:41:44.418474Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.009564876556396484, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.servicenow_integration_tests.problem_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-18T19:41:44.414264Z", "completed_at": "2024-01-18T19:41:44.415159Z"}, {"name": "execute", "started_at": "2024-01-18T19:41:44.418739Z", "completed_at": "2024-01-18T19:41:44.418743Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.009772062301635742, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.servicenow_integration_tests.problem_task_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-18T19:41:44.415447Z", "completed_at": "2024-01-18T19:41:44.416272Z"}, {"name": "execute", "started_at": "2024-01-18T19:41:44.419020Z", "completed_at": "2024-01-18T19:41:44.419022Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.009912967681884766, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.servicenow_integration_tests.sys_user_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-18T19:41:44.417364Z", "completed_at": "2024-01-18T19:41:44.418213Z"}, {"name": "execute", "started_at": "2024-01-18T19:41:44.421063Z", "completed_at": "2024-01-18T19:41:44.421066Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.010008096694946289, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.servicenow_integration_tests.task_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-18T19:41:44.425021Z", "completed_at": "2024-01-18T19:41:44.426205Z"}, {"name": "execute", "started_at": "2024-01-18T19:41:44.444415Z", "completed_at": "2024-01-18T19:41:44.444423Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.023005008697509766, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.servicenow_integration_tests.task_sla_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-18T19:41:44.434359Z", "completed_at": "2024-01-18T19:41:44.778593Z"}, {"name": "execute", "started_at": "2024-01-18T19:41:44.780440Z", "completed_at": "2024-01-18T19:41:44.780443Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.3857290744781494, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.servicenow.stg_servicenow__core_company", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__core_company_base\"\n),\n\nfields as (\n\n select\n \n cast(null as boolean) as \n \n _fivetran_deleted\n \n , \n cast(null as timestamp) as \n \n _fivetran_synced\n \n , \n cast(null as TEXT) as \n \n sys_id\n \n , \n cast(null as TEXT) as \n \n city\n \n , \n cast(null as TEXT) as \n \n country\n \n , \n cast(null as boolean) as \n \n customer\n \n , \n cast(null as TEXT) as \n \n fax_phone\n \n , \n cast(null as TEXT) as \n \n fiscal_year\n \n , \n cast(null as TEXT) as \n \n name\n \n , \n cast(null as TEXT) as \n \n notes\n \n , \n cast(null as TEXT) as \n \n phone\n \n , \n cast(null as TEXT) as \n \n state\n \n , \n cast(null as TEXT) as \n \n street\n \n , \n cast(null as TEXT) as \n \n sys_class_name\n \n , \n cast(null as TEXT) as \n \n sys_created_by\n \n , \n cast(null as TEXT) as \n \n sys_created_on\n \n , \n cast(null as integer) as \n \n sys_mod_count\n \n , \n cast(null as TEXT) as \n \n sys_updated_by\n \n , \n cast(null as timestamp) as \n \n sys_updated_on\n \n , \n cast(null as boolean) as \n \n vendor\n \n , \n cast(null as TEXT) as \n \n vendor_type\n \n , \n cast(null as TEXT) as \n \n website\n \n , \n cast(null as integer) as \n \n zip\n \n \n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n cast(sys_id as TEXT) as core_company_id,\n city as company_city,\n country as company_country,\n customer as is_customer,\n fax_phone as company_fax_phone,\n fiscal_year,\n name as company_name,\n notes,\n phone as company_phone,\n state as company_state,\n street as company_street,\n sys_class_name,\n sys_created_by,\n sys_created_on,\n sys_mod_count,\n sys_updated_by,\n sys_updated_on,\n vendor as is_vendor,\n vendor_type,\n website as company_website,\n zip as company_zip\n from fields\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__core_company\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-18T19:41:44.439130Z", "completed_at": "2024-01-18T19:41:44.778287Z"}, {"name": "execute", "started_at": "2024-01-18T19:41:44.780176Z", "completed_at": "2024-01-18T19:41:44.780184Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.3850250244140625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.servicenow.stg_servicenow__incident", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__incident_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n business_impact\n \n as \n \n business_impact\n \n, \n \n \n business_stc\n \n as \n \n business_stc\n \n, \n \n \n calendar_stc\n \n as \n \n calendar_stc\n \n, \n \n \n caller_id_link\n \n as \n \n caller_id_link\n \n, \n \n \n caller_id_value\n \n as \n \n caller_id_value\n \n, \n \n \n category\n \n as \n \n category\n \n, \n \n \n cause\n \n as \n \n cause\n \n, \n \n \n caused_by_link\n \n as \n \n caused_by_link\n \n, \n \n \n caused_by_value\n \n as \n \n caused_by_value\n \n, \n \n \n child_incidents\n \n as \n \n child_incidents\n \n, \n \n \n close_code\n \n as \n \n close_code\n \n, \n \n \n hold_reason\n \n as \n \n hold_reason\n \n, \n \n \n incident_state\n \n as \n \n incident_state\n \n, \n \n \n notify\n \n as \n \n notify\n \n, \n \n \n origin_id_link\n \n as \n \n origin_id_link\n \n, \n \n \n origin_id_value\n \n as \n \n origin_id_value\n \n, \n \n \n parent_incident_link\n \n as \n \n parent_incident_link\n \n, \n \n \n parent_incident_value\n \n as \n \n parent_incident_value\n \n, \n \n \n problem_id_link\n \n as \n \n problem_id_link\n \n, \n \n \n problem_id_value\n \n as \n \n problem_id_value\n \n, \n \n \n reopen_count\n \n as \n \n reopen_count\n \n, \n \n \n reopened_by_link\n \n as \n \n reopened_by_link\n \n, \n \n \n reopened_by_value\n \n as \n \n reopened_by_value\n \n, \n \n \n reopened_time\n \n as \n \n reopened_time\n \n, \n \n \n resolved_at\n \n as \n \n resolved_at\n \n, \n \n \n resolved_by_link\n \n as \n \n resolved_by_link\n \n, \n \n \n resolved_by_value\n \n as \n \n resolved_by_value\n \n, \n \n \n rfc_link\n \n as \n \n rfc_link\n \n, \n \n \n rfc_value\n \n as \n \n rfc_value\n \n, \n \n \n severity\n \n as \n \n severity\n \n, \n \n \n subcategory\n \n as \n \n subcategory\n \n, \n \n \n sys_created_on\n \n as \n \n sys_created_on\n \n, \n \n \n sys_id\n \n as \n \n sys_id\n \n, \n \n \n sys_updated_on\n \n as \n \n sys_updated_on\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation, \n cast(sys_id as TEXT) as incident_id,\n cast(sys_created_on as timestamp) as incident_created_at,\n cast(sys_updated_on as timestamp) as incident_updated_at,\n _fivetran_deleted,\n _fivetran_synced,\n business_impact,\n business_stc,\n calendar_stc,\n caller_id_link,\n cast(caller_id_value as TEXT) as caller_id_value,\n category,\n cause,\n caused_by_link,\n cast(caused_by_value as TEXT) as caused_by_value,\n child_incidents,\n close_code,\n hold_reason,\n incident_state,\n notify,\n origin_id_link,\n cast(origin_id_value as TEXT) as origin_id_value,\n parent_incident_link,\n cast(parent_incident_value as TEXT) as parent_incident_value,\n problem_id_link,\n cast(problem_id_value as TEXT) as problem_id_value,\n reopen_count,\n reopened_by_link,\n cast(reopened_by_value as TEXT) as reopened_by_value,\n reopened_time,\n resolved_at,\n resolved_by_link,\n cast(resolved_by_value as TEXT) as resolved_by_value,\n rfc_link,\n cast(rfc_value as TEXT) as rfc_value,\n severity,\n subcategory\n from fields\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__incident\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-18T19:41:44.447467Z", "completed_at": "2024-01-18T19:41:44.779685Z"}, {"name": "execute", "started_at": "2024-01-18T19:41:44.781845Z", "completed_at": "2024-01-18T19:41:44.781849Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.36360597610473633, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.servicenow.stg_servicenow__problem", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__problem_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n category\n \n as \n \n category\n \n, \n \n \n cause_notes\n \n as \n \n cause_notes\n \n, \n \n \n confirmed_at\n \n as \n \n confirmed_at\n \n, \n \n \n confirmed_by_link\n \n as \n \n confirmed_by_link\n \n, \n \n \n confirmed_by_value\n \n as \n \n confirmed_by_value\n \n, \n \n \n duplicate_of_link\n \n as \n \n duplicate_of_link\n \n, \n \n \n duplicate_of_value\n \n as \n \n duplicate_of_value\n \n, \n \n \n first_reported_by_task_link\n \n as \n \n first_reported_by_task_link\n \n, \n \n \n first_reported_by_task_value\n \n as \n \n first_reported_by_task_value\n \n, \n \n \n fix_at\n \n as \n \n fix_at\n \n, \n \n \n fix_by_link\n \n as \n \n fix_by_link\n \n, \n \n \n fix_by_value\n \n as \n \n fix_by_value\n \n, \n \n \n fix_communicated_at\n \n as \n \n fix_communicated_at\n \n, \n \n \n fix_communicated_by_link\n \n as \n \n fix_communicated_by_link\n \n, \n \n \n fix_communicated_by_value\n \n as \n \n fix_communicated_by_value\n \n, \n \n \n fix_notes\n \n as \n \n fix_notes\n \n, \n \n \n known_error\n \n as \n \n known_error\n \n, \n \n \n major_problem\n \n as \n \n major_problem\n \n, \n \n \n problem_state\n \n as \n \n problem_state\n \n, \n \n \n related_incidents\n \n as \n \n related_incidents\n \n, \n \n \n reopen_count\n \n as \n \n reopen_count\n \n, \n \n \n reopened_at\n \n as \n \n reopened_at\n \n, \n \n \n reopened_by_link\n \n as \n \n reopened_by_link\n \n, \n \n \n reopened_by_value\n \n as \n \n reopened_by_value\n \n, \n \n \n resolution_code\n \n as \n \n resolution_code\n \n, \n \n \n resolved_at\n \n as \n \n resolved_at\n \n, \n \n \n resolved_by_link\n \n as \n \n resolved_by_link\n \n, \n \n \n resolved_by_value\n \n as \n \n resolved_by_value\n \n, \n \n \n review_outcome\n \n as \n \n review_outcome\n \n, \n \n \n rfc_link\n \n as \n \n rfc_link\n \n, \n \n \n rfc_value\n \n as \n \n rfc_value\n \n, \n \n \n subcategory\n \n as \n \n subcategory\n \n, \n \n \n sys_created_on\n \n as \n \n sys_created_on\n \n, \n \n \n sys_id\n \n as \n \n sys_id\n \n, \n \n \n sys_updated_on\n \n as \n \n sys_updated_on\n \n, \n \n \n workaround\n \n as \n \n workaround\n \n, \n \n \n workaround_applied\n \n as \n \n workaround_applied\n \n, \n \n \n workaround_communicated_at\n \n as \n \n workaround_communicated_at\n \n, \n \n \n workaround_communicated_by_link\n \n as \n \n workaround_communicated_by_link\n \n, \n \n \n workaround_communicated_by_value\n \n as \n \n workaround_communicated_by_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n cast(sys_id as TEXT) as problem_id,\n cast(sys_created_on as timestamp) as problem_created_at,\n cast(sys_updated_on as timestamp) as problem_updated_at,\n _fivetran_deleted,\n _fivetran_synced,\n category as problem_category,\n cause_notes,\n confirmed_at as problem_confirmed_at,\n confirmed_by_link as problem_confirmed_by_link,\n cast(confirmed_by_value as TEXT) as problem_confirmed_by_value,\n duplicate_of_link,\n cast(duplicate_of_value as TEXT) as duplicate_of_value,\n first_reported_by_task_link as problem_first_reported_by_task_link,\n first_reported_by_task_value as problem_first_reported_by_task_value,\n fix_at as problem_fix_at,\n fix_by_link as problem_fix_by_link,\n cast(fix_by_value as TEXT) as problem_fix_by_value,\n fix_communicated_at,\n fix_communicated_by_link,\n cast(fix_communicated_by_value as TEXT) as fix_communicated_by_value,\n fix_notes as problem_fix_notes,\n known_error as is_known_error,\n major_problem as is_major_problem,\n problem_state,\n related_incidents as problem_related_incidents,\n reopen_count,\n reopened_at,\n reopened_by_link,\n cast(reopened_by_value as TEXT) as reopened_by_value,\n resolution_code as problem_resolution_code,\n resolved_at as problem_resolved_at,\n resolved_by_link,\n cast(resolved_by_value as TEXT) as problem_resolved_by_value,\n review_outcome,\n rfc_link,\n cast(rfc_value as TEXT) as rfc_value,\n subcategory as problem_subcategory,\n workaround,\n workaround_applied,\n workaround_communicated_at,\n workaround_communicated_by_link,\n cast(workaround_communicated_by_value as TEXT) as workaround_communicated_by_value \n from fields\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__problem\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-18T19:41:44.426592Z", "completed_at": "2024-01-18T19:41:44.778864Z"}, {"name": "execute", "started_at": "2024-01-18T19:41:44.780967Z", "completed_at": "2024-01-18T19:41:44.780971Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.38936281204223633, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.servicenow.stg_servicenow__change_request", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__change_request_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n backout_plan\n \n as \n \n backout_plan\n \n, \n \n \n cab_date\n \n as \n \n cab_date\n \n, \n \n \n cab_date_time\n \n as \n \n cab_date_time\n \n, \n \n \n cab_delegate_link\n \n as \n \n cab_delegate_link\n \n, \n \n \n cab_delegate_value\n \n as \n \n cab_delegate_value\n \n, \n \n \n cab_recommendation\n \n as \n \n cab_recommendation\n \n, \n \n \n cab_required\n \n as \n \n cab_required\n \n, \n \n \n category\n \n as \n \n category\n \n, \n \n \n change_plan\n \n as \n \n change_plan\n \n, \n \n \n chg_model_link\n \n as \n \n chg_model_link\n \n, \n \n \n chg_model_value\n \n as \n \n chg_model_value\n \n, \n \n \n close_code\n \n as \n \n close_code\n \n, \n \n \n conflict_last_run\n \n as \n \n conflict_last_run\n \n, \n \n \n conflict_status\n \n as \n \n conflict_status\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n implementation_plan\n \n as \n \n implementation_plan\n \n, \n \n \n justification\n \n as \n \n justification\n \n, \n \n \n on_hold\n \n as \n \n on_hold\n \n, \n \n \n on_hold_reason\n \n as \n \n on_hold_reason\n \n, \n \n \n on_hold_task\n \n as \n \n on_hold_task\n \n, \n \n \n outside_maintenance_schedule\n \n as \n \n outside_maintenance_schedule\n \n, \n \n \n phase\n \n as \n \n phase\n \n, \n \n \n phase_state\n \n as \n \n phase_state\n \n, \n \n \n production_system\n \n as \n \n production_system\n \n, \n \n \n reason\n \n as \n \n reason\n \n, \n \n \n requested_by_date\n \n as \n \n requested_by_date\n \n, \n \n \n requested_by_link\n \n as \n \n requested_by_link\n \n, \n \n \n requested_by_value\n \n as \n \n requested_by_value\n \n, \n \n \n review_comments\n \n as \n \n review_comments\n \n, \n \n \n review_date\n \n as \n \n review_date\n \n, \n \n \n review_status\n \n as \n \n review_status\n \n, \n \n \n risk\n \n as \n \n risk\n \n, \n \n \n risk_impact_analysis\n \n as \n \n risk_impact_analysis\n \n, \n \n \n scope\n \n as \n \n scope\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n std_change_producer_version_link\n \n as \n \n std_change_producer_version_link\n \n, \n \n \n std_change_producer_version_value\n \n as \n \n std_change_producer_version_value\n \n, \n \n \n sys_created_on\n \n as \n \n sys_created_on\n \n, \n \n \n sys_id\n \n as \n \n sys_id\n \n, \n \n \n sys_updated_on\n \n as \n \n sys_updated_on\n \n, \n \n \n test_plan\n \n as \n \n test_plan\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n unauthorized\n \n as \n \n unauthorized\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation, \n cast(sys_id as TEXT) as change_request_id,\n cast(sys_created_on as timestamp) as change_request_created_at,\n cast(sys_updated_on as timestamp) as change_request_updated_at,\n _fivetran_deleted,\n _fivetran_synced,\n backout_plan,\n cab_date,\n cab_date_time,\n cab_delegate_link,\n cast(cab_delegate_value as TEXT) as cab_delegate_value,\n cab_recommendation,\n cab_required as is_cab_required,\n category as change_request_category,\n change_plan,\n chg_model_link,\n cast(chg_model_value as TEXT) as chg_model_value,\n close_code as change_request_close_code,\n conflict_last_run,\n conflict_status,\n end_date as change_request_end_date, -- sometimes the actual change and the change request timelines don't line up, so let's specify this is pertaining to the change request.\n implementation_plan as change_request_implementation_plan,\n justification as change_request_justification,\n on_hold as is_change_request_on_hold,\n on_hold_reason as change_request_on_hold_reason,\n on_hold_task,\n outside_maintenance_schedule,\n phase as change_request_phase,\n phase_state as change_request_phase_state,\n production_system as is_production_system,\n reason as change_request_reason,\n requested_by_date as change_requested_by_date,\n requested_by_link as change_requested_by_link,\n cast(requested_by_value as TEXT) as change_requested_by_value,\n review_comments,\n review_date as change_request_review_date,\n review_status as change_request_review_status,\n risk as change_request_risk,\n risk_impact_analysis,\n scope as change_request_scope,\n start_date as change_request_start_date,\n test_plan as change_request_test_plan,\n type as change_request_type,\n unauthorized as is_change_request_unauthorized\n from fields\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__change_request\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-18T19:41:44.817964Z", "completed_at": "2024-01-18T19:41:45.197924Z"}, {"name": "execute", "started_at": "2024-01-18T19:41:45.198499Z", "completed_at": "2024-01-18T19:41:45.198506Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.46814990043640137, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.servicenow.stg_servicenow__problem_task", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__problem_task_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n cause_code\n \n as \n \n cause_code\n \n, \n \n \n close_code\n \n as \n \n close_code\n \n, \n \n \n other_reason\n \n as \n \n other_reason\n \n, \n \n \n problem_link\n \n as \n \n problem_link\n \n, \n \n \n problem_task_type\n \n as \n \n problem_task_type\n \n, \n \n \n problem_value\n \n as \n \n problem_value\n \n, \n \n \n reopen_count\n \n as \n \n reopen_count\n \n, \n \n \n reopened_at\n \n as \n \n reopened_at\n \n, \n \n \n reopened_by_link\n \n as \n \n reopened_by_link\n \n, \n \n \n reopened_by_value\n \n as \n \n reopened_by_value\n \n, \n \n \n started_at\n \n as \n \n started_at\n \n, \n \n \n started_by_link\n \n as \n \n started_by_link\n \n, \n \n \n started_by_value\n \n as \n \n started_by_value\n \n, \n \n \n sys_created_on\n \n as \n \n sys_created_on\n \n, \n \n \n sys_id\n \n as \n \n sys_id\n \n, \n \n \n sys_updated_on\n \n as \n \n sys_updated_on\n \n, \n \n \n vendor_link\n \n as \n \n vendor_link\n \n, \n \n \n vendor_value\n \n as \n \n vendor_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation, \n cast(sys_id as TEXT) as problem_task_id,\n cast(sys_created_on as timestamp) as problem_task_created_at,\n cast(sys_updated_on as timestamp) as problem_task_updated_at,\n _fivetran_deleted,\n _fivetran_synced,\n cause_code as problem_task_cause_code,\n close_code as problem_task_close_code,\n other_reason,\n problem_link,\n problem_task_type,\n cast(problem_value as TEXT) as problem_value,\n reopen_count,\n reopened_at,\n reopened_by_link,\n cast(reopened_by_value as TEXT) as reopened_by_value,\n started_at as problem_task_started_at,\n started_by_link,\n cast(started_by_value as TEXT) as started_by_value,\n vendor_link,\n cast(vendor_value as TEXT) as vendor_value \n from fields\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__problem_task\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-18T19:41:44.828230Z", "completed_at": "2024-01-18T19:41:45.292822Z"}, {"name": "execute", "started_at": "2024-01-18T19:41:45.294602Z", "completed_at": "2024-01-18T19:41:45.294605Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.5061781406402588, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.servicenow.stg_servicenow__sys_user_group", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__sys_user_group_base\"\n),\n\nfields as (\n\n select\n \n cast(null as boolean) as \n \n _fivetran_deleted\n \n , \n cast(null as timestamp) as \n \n _fivetran_synced\n \n , \n cast(null as boolean) as \n \n active\n \n , \n cast(null as TEXT) as \n \n cost_center_link\n \n , \n cast(null as TEXT) as \n \n cost_center_value\n \n , \n cast(null as TEXT) as \n \n default_assignee_link\n \n , \n cast(null as TEXT) as \n \n default_assignee_value\n \n , \n cast(null as TEXT) as \n \n description\n \n , \n cast(null as TEXT) as \n \n email\n \n , \n cast(null as boolean) as \n \n exclude_manager\n \n , \n cast(null as boolean) as \n \n include_members\n \n , \n cast(null as TEXT) as \n \n manager_link\n \n , \n cast(null as TEXT) as \n \n manager_value\n \n , \n cast(null as TEXT) as \n \n name\n \n , \n cast(null as TEXT) as \n \n parent_link\n \n , \n cast(null as TEXT) as \n \n parent_value\n \n , \n cast(null as TEXT) as \n \n roles\n \n , \n cast(null as TEXT) as \n \n source\n \n , \n cast(null as TEXT) as \n \n sys_created_by\n \n , \n cast(null as timestamp) as \n \n sys_created_on\n \n , \n cast(null as TEXT) as \n \n sys_id\n \n , \n cast(null as integer) as \n \n sys_mod_count\n \n , \n cast(null as TEXT) as \n \n sys_updated_by\n \n , \n cast(null as timestamp) as \n \n sys_updated_on\n \n , \n cast(null as TEXT) as \n \n type\n \n \n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n source_relation, \n cast(sys_id as TEXT) as sys_user_group_id,\n cast(sys_created_on as timestamp) as sys_user_group_created_at,\n cast(sys_updated_on as timestamp) as sys_user_group_updated_at,\n _fivetran_deleted,\n _fivetran_synced,\n active,\n cost_center_link,\n cast(cost_center_value as TEXT) as cost_center_value,\n default_assignee_link,\n cast(default_assignee_value as TEXT) as default_assignee_value,\n description,\n email,\n exclude_manager,\n include_members,\n manager_link,\n cast(manager_value as TEXT) as manager_value,\n name as sys_user_group_name,\n parent_link,\n cast(parent_value as TEXT) as parent_value,\n roles,\n source,\n sys_created_by,\n sys_mod_count,\n sys_updated_by,\n type\n from fields\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__sys_user_group\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-18T19:41:44.832836Z", "completed_at": "2024-01-18T19:41:45.293101Z"}, {"name": "execute", "started_at": "2024-01-18T19:41:45.294876Z", "completed_at": "2024-01-18T19:41:45.294879Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.5063331127166748, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.servicenow.stg_servicenow__task", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__task_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n activity_due\n \n as \n \n activity_due\n \n, \n \n \n additional_assignee_list\n \n as \n \n additional_assignee_list\n \n, \n \n \n approval\n \n as \n \n approval\n \n, \n \n \n approval_history\n \n as \n \n approval_history\n \n, \n \n \n approval_set\n \n as \n \n approval_set\n \n, \n \n \n assigned_to_link\n \n as \n \n assigned_to_link\n \n, \n \n \n assigned_to_value\n \n as \n \n assigned_to_value\n \n, \n \n \n assignment_group_link\n \n as \n \n assignment_group_link\n \n, \n \n \n assignment_group_value\n \n as \n \n assignment_group_value\n \n, \n \n \n business_duration\n \n as \n \n business_duration\n \n, \n \n \n business_service_link\n \n as \n \n business_service_link\n \n, \n \n \n business_service_value\n \n as \n \n business_service_value\n \n, \n \n \n calendar_duration\n \n as \n \n calendar_duration\n \n, \n \n \n close_notes\n \n as \n \n close_notes\n \n, \n \n \n closed_at\n \n as \n \n closed_at\n \n, \n \n \n closed_by_link\n \n as \n \n closed_by_link\n \n, \n \n \n closed_by_value\n \n as \n \n closed_by_value\n \n, \n \n \n cmdb_ci_link\n \n as \n \n cmdb_ci_link\n \n, \n \n \n cmdb_ci_value\n \n as \n \n cmdb_ci_value\n \n, \n \n \n comments\n \n as \n \n comments\n \n, \n \n \n comments_and_work_notes\n \n as \n \n comments_and_work_notes\n \n, \n \n \n company_link\n \n as \n \n company_link\n \n, \n \n \n company_value\n \n as \n \n company_value\n \n, \n \n \n contact_type\n \n as \n \n contact_type\n \n, \n \n \n contract_link\n \n as \n \n contract_link\n \n, \n \n \n contract_value\n \n as \n \n contract_value\n \n, \n \n \n correlation_display\n \n as \n \n correlation_display\n \n, \n \n \n correlation_id\n \n as \n \n correlation_id\n \n, \n \n \n delivery_plan_link\n \n as \n \n delivery_plan_link\n \n, \n \n \n delivery_plan_value\n \n as \n \n delivery_plan_value\n \n, \n \n \n delivery_task_link\n \n as \n \n delivery_task_link\n \n, \n \n \n delivery_task_value\n \n as \n \n delivery_task_value\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n due_date\n \n as \n \n due_date\n \n, \n \n \n escalation\n \n as \n \n escalation\n \n, \n \n \n expected_start\n \n as \n \n expected_start\n \n, \n \n \n follow_up\n \n as \n \n follow_up\n \n, \n \n \n group_list\n \n as \n \n group_list\n \n, \n \n \n impact\n \n as \n \n impact\n \n, \n \n \n knowledge\n \n as \n \n knowledge\n \n, \n \n \n location_link\n \n as \n \n location_link\n \n, \n \n \n location_value\n \n as \n \n location_value\n \n, \n \n \n made_sla\n \n as \n \n made_sla\n \n, \n \n \n number\n \n as \n \n number\n \n, \n \n \n opened_at\n \n as \n \n opened_at\n \n, \n \n \n opened_by_link\n \n as \n \n opened_by_link\n \n, \n \n \n opened_by_value\n \n as \n \n opened_by_value\n \n, \n \n \n \n \n \"order\"\n \n \n \n as task_order , \n \n \n parent_link\n \n as \n \n parent_link\n \n, \n \n \n parent_value\n \n as \n \n parent_value\n \n, \n \n \n priority\n \n as \n \n priority\n \n, \n \n \n reassignment_count\n \n as \n \n reassignment_count\n \n, \n \n \n rejection_goto_link\n \n as \n \n rejection_goto_link\n \n, \n \n \n rejection_goto_value\n \n as \n \n rejection_goto_value\n \n, \n \n \n route_reason\n \n as \n \n route_reason\n \n, \n \n \n service_offering_link\n \n as \n \n service_offering_link\n \n, \n \n \n service_offering_value\n \n as \n \n service_offering_value\n \n, \n \n \n short_description\n \n as \n \n short_description\n \n, \n \n \n sla_due\n \n as \n \n sla_due\n \n, \n \n \n state\n \n as \n \n state\n \n, \n \n \n sys_class_name\n \n as \n \n sys_class_name\n \n, \n \n \n sys_created_by\n \n as \n \n sys_created_by\n \n, \n \n \n sys_created_on\n \n as \n \n sys_created_on\n \n, \n \n \n sys_domain_link\n \n as \n \n sys_domain_link\n \n, \n \n \n sys_domain_path\n \n as \n \n sys_domain_path\n \n, \n \n \n sys_domain_value\n \n as \n \n sys_domain_value\n \n, \n \n \n sys_id\n \n as \n \n sys_id\n \n, \n \n \n sys_mod_count\n \n as \n \n sys_mod_count\n \n, \n \n \n sys_updated_by\n \n as \n \n sys_updated_by\n \n, \n \n \n sys_updated_on\n \n as \n \n sys_updated_on\n \n, \n \n \n task_effective_number\n \n as \n \n task_effective_number\n \n, \n \n \n universal_request_link\n \n as \n \n universal_request_link\n \n, \n \n \n universal_request_value\n \n as \n \n universal_request_value\n \n, \n \n \n upon_approval\n \n as \n \n upon_approval\n \n, \n \n \n upon_reject\n \n as \n \n upon_reject\n \n, \n \n \n urgency\n \n as \n \n urgency\n \n, \n \n \n watch_list\n \n as \n \n watch_list\n \n, \n \n \n wf_activity_link\n \n as \n \n wf_activity_link\n \n, \n \n \n wf_activity_value\n \n as \n \n wf_activity_value\n \n, \n \n \n work_end\n \n as \n \n work_end\n \n, \n \n \n work_notes\n \n as \n \n work_notes\n \n, \n \n \n work_notes_list\n \n as \n \n work_notes_list\n \n, \n \n \n work_start\n \n as \n \n work_start\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n cast(sys_id as TEXT) as task_id,\n cast(sys_created_on as timestamp) as task_created_at,\n cast(sys_updated_on as timestamp) as task_updated_at,\n _fivetran_deleted,\n _fivetran_synced,\n active as is_task_active,\n activity_due,\n additional_assignee_list,\n approval,\n approval_history,\n approval_set,\n assigned_to_link,\n cast(assigned_to_value as TEXT) as assigned_to_value,\n assignment_group_link,\n cast(assignment_group_value as TEXT) as assignment_group_value,\n business_duration,\n business_service_link,\n cast(business_service_value as TEXT) as business_service_value,\n calendar_duration,\n close_notes,\n closed_at as task_closed_at,\n closed_by_link,\n cast(closed_by_value as TEXT) as closed_by_value,\n cmdb_ci_link,\n cast(cmdb_ci_value as TEXT) as cmdb_ci_value,\n comments,\n comments_and_work_notes,\n company_link,\n cast(company_value as TEXT) as company_value,\n contact_type,\n contract_link,\n cast(contract_value as TEXT) as contract_value,\n correlation_display,\n correlation_id,\n delivery_plan_link,\n cast(delivery_plan_value as TEXT) as delivery_plan_value,\n delivery_task_link,\n cast(delivery_task_value as TEXT) as delivery_task_value,\n description as task_description,\n due_date as task_due_date_at,\n escalation,\n expected_start,\n follow_up as task_follow_up_at,\n group_list,\n impact,\n knowledge,\n location_link,\n cast(location_value as TEXT) as location_value,\n made_sla as is_made_sla,\n number as task_number,\n opened_at as task_opened_at,\n opened_by_link,\n cast(opened_by_value as TEXT) as opened_by_value,\n task_order, -- Renamed within the get_task_columns() macro.\n parent_link,\n cast(parent_value as TEXT) as parent_value,\n priority,\n reassignment_count,\n rejection_goto_link,\n cast(rejection_goto_value as TEXT) as rejection_goto_value,\n route_reason,\n service_offering_link,\n cast(service_offering_value as TEXT) as service_offering_value,\n short_description,\n sla_due,\n state as task_state,\n sys_class_name,\n sys_created_by,\n sys_domain_link,\n sys_domain_path,\n cast(sys_domain_value as TEXT) as sys_domain_value,\n sys_mod_count,\n sys_updated_by,\n task_effective_number,\n universal_request_link,\n cast(universal_request_value as TEXT) as universal_request_value,\n upon_approval,\n upon_reject,\n urgency,\n watch_list,\n wf_activity_link,\n cast(wf_activity_value as TEXT) as wf_activity_value,\n work_end,\n work_notes,\n work_notes_list,\n work_start\n from fields\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__task\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-18T19:41:44.822633Z", "completed_at": "2024-01-18T19:41:45.292535Z"}, {"name": "execute", "started_at": "2024-01-18T19:41:45.294331Z", "completed_at": "2024-01-18T19:41:45.294337Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.5088319778442383, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.servicenow.stg_servicenow__sys_user", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__sys_user_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n accumulated_roles\n \n as \n \n accumulated_roles\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n avatar\n \n as \n \n avatar\n \n, \n \n \n building_link\n \n as \n \n building_link\n \n, \n \n \n building_value\n \n as \n \n building_value\n \n, \n \n \n calendar_integration\n \n as \n \n calendar_integration\n \n, \n \n \n city\n \n as \n \n city\n \n, \n \n \n company_link\n \n as \n \n company_link\n \n, \n \n \n company_value\n \n as \n \n company_value\n \n, \n \n \n cost_center_link\n \n as \n \n cost_center_link\n \n, \n \n \n cost_center_value\n \n as \n \n cost_center_value\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n date_format\n \n as \n \n date_format\n \n, \n \n \n default_perspective_link\n \n as \n \n default_perspective_link\n \n, \n \n \n default_perspective_value\n \n as \n \n default_perspective_value\n \n, \n \n \n department_link\n \n as \n \n department_link\n \n, \n \n \n department_value\n \n as \n \n department_value\n \n, \n \n \n edu_status\n \n as \n \n edu_status\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n employee_number\n \n as \n \n employee_number\n \n, \n \n \n enable_multifactor_authn\n \n as \n \n enable_multifactor_authn\n \n, \n \n \n failed_attempts\n \n as \n \n failed_attempts\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hashed_user_id\n \n as \n \n hashed_user_id\n \n, \n \n \n home_phone\n \n as \n \n home_phone\n \n, \n \n \n internal_integration_user\n \n as \n \n internal_integration_user\n \n, \n \n \n introduction\n \n as \n \n introduction\n \n, \n \n \n last_login\n \n as \n \n last_login\n \n, \n \n \n last_login_device\n \n as \n \n last_login_device\n \n, \n \n \n last_login_time\n \n as \n \n last_login_time\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n last_password\n \n as \n \n last_password\n \n, \n \n \n ldap_server_link\n \n as \n \n ldap_server_link\n \n, \n \n \n ldap_server_value\n \n as \n \n ldap_server_value\n \n, \n \n \n location_link\n \n as \n \n location_link\n \n, \n \n \n location_value\n \n as \n \n location_value\n \n, \n \n \n locked_out\n \n as \n \n locked_out\n \n, \n \n \n manager_link\n \n as \n \n manager_link\n \n, \n \n \n manager_value\n \n as \n \n manager_value\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n mobile_phone\n \n as \n \n mobile_phone\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n notification\n \n as \n \n notification\n \n, \n \n \n password_needs_reset\n \n as \n \n password_needs_reset\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n photo\n \n as \n \n photo\n \n, \n \n \n preferred_language\n \n as \n \n preferred_language\n \n, \n \n \n roles\n \n as \n \n roles\n \n, \n \n \n schedule_link\n \n as \n \n schedule_link\n \n, \n \n \n schedule_value\n \n as \n \n schedule_value\n \n, \n \n \n source\n \n as \n \n source\n \n, \n \n \n state\n \n as \n \n state\n \n, \n \n \n sys_class_name\n \n as \n \n sys_class_name\n \n, \n \n \n sys_created_by\n \n as \n \n sys_created_by\n \n, \n \n \n sys_created_on\n \n as \n \n sys_created_on\n \n, \n \n \n sys_domain_link\n \n as \n \n sys_domain_link\n \n, \n \n \n sys_domain_path\n \n as \n \n sys_domain_path\n \n, \n \n \n sys_domain_value\n \n as \n \n sys_domain_value\n \n, \n \n \n sys_id\n \n as \n \n sys_id\n \n, \n \n \n sys_mod_count\n \n as \n \n sys_mod_count\n \n, \n \n \n sys_updated_by\n \n as \n \n sys_updated_by\n \n, \n \n \n sys_updated_on\n \n as \n \n sys_updated_on\n \n, \n \n \n time_format\n \n as \n \n time_format\n \n, \n \n \n time_zone\n \n as \n \n time_zone\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n user_name\n \n as \n \n user_name\n \n, \n \n \n user_password\n \n as \n \n user_password\n \n, \n \n \n vip\n \n as \n \n vip\n \n, \n \n \n web_service_access_only\n \n as \n \n web_service_access_only\n \n, \n \n \n zip\n \n as \n \n zip\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n cast(sys_id as TEXT) as user_id,\n cast(sys_created_on as timestamp) as user_created_at,\n cast(sys_updated_on as timestamp) as user_updated_at,\n _fivetran_deleted,\n _fivetran_synced,\n accumulated_roles,\n active as is_active,\n avatar,\n building_link,\n cast(building_value as TEXT) as building_value,\n calendar_integration,\n city,\n company_link,\n cast(company_value as TEXT) as company_value,\n cost_center_link,\n cast(cost_center_value as TEXT) as cost_center_value,\n country,\n date_format,\n default_perspective_link,\n cast(default_perspective_value as TEXT) as default_perspective_value,\n department_link,\n cast(department_value as TEXT) as department_value,\n edu_status,\n email,\n employee_number,\n enable_multifactor_authn,\n failed_attempts,\n first_name,\n gender,\n hashed_user_id,\n home_phone,\n internal_integration_user,\n introduction,\n last_login as last_login_day_date,\n last_login_device,\n last_login_time as last_login_at,\n last_name,\n last_password,\n ldap_server_link,\n cast(ldap_server_value as TEXT) as ldap_server_value,\n location_link,\n cast(location_value as TEXT) as location_value,\n locked_out,\n manager_link,\n cast(manager_value as TEXT) as manager_value,\n middle_name,\n mobile_phone,\n name as sys_user_name,\n notification,\n password_needs_reset,\n phone,\n photo,\n preferred_language,\n roles,\n schedule_link,\n cast(schedule_value as TEXT) as schedule_value,\n source,\n state,\n sys_class_name,\n sys_created_by,\n sys_domain_link,\n sys_domain_path,\n cast(sys_domain_value as TEXT) as sys_domain_value,\n sys_mod_count,\n sys_updated_by,\n time_format,\n time_zone,\n title,\n user_name,\n user_password,\n vip,\n web_service_access_only,\n zip\n from fields\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__sys_user\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-18T19:41:45.331164Z", "completed_at": "2024-01-18T19:41:45.594944Z"}, {"name": "execute", "started_at": "2024-01-18T19:41:45.595462Z", "completed_at": "2024-01-18T19:41:45.595465Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.2974967956542969, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.servicenow.stg_servicenow__cmdb_ci_service", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__cmdb_ci_service_base\"\n),\n\nfields as (\n\n select\n \n cast(null as boolean) as \n \n _fivetran_deleted\n \n , \n cast(null as timestamp) as \n \n _fivetran_synced\n \n , \n cast(null as TEXT) as \n \n attributes\n \n , \n cast(null as TEXT) as \n \n business_unit_link\n \n , \n cast(null as TEXT) as \n \n business_unit_value\n \n , \n cast(null as TEXT) as \n \n category\n \n , \n cast(null as TEXT) as \n \n company_link\n \n , \n cast(null as TEXT) as \n \n company_value\n \n , \n cast(null as float) as \n \n cost\n \n , \n cast(null as TEXT) as \n \n cost_cc\n \n , \n cast(null as TEXT) as \n \n cost_center_link\n \n , \n cast(null as TEXT) as \n \n cost_center_value\n \n , \n cast(null as TEXT) as \n \n managed_by_link\n \n , \n cast(null as TEXT) as \n \n managed_by_value\n \n , \n cast(null as TEXT) as \n \n manufacturer_link\n \n , \n cast(null as TEXT) as \n \n manufacturer_value\n \n , \n cast(null as TEXT) as \n \n model_id_link\n \n , \n cast(null as TEXT) as \n \n model_id_value\n \n , \n cast(null as TEXT) as \n \n model_number\n \n , \n cast(null as boolean) as \n \n monitor\n \n , \n cast(null as TEXT) as \n \n name\n \n , \n cast(null as TEXT) as \n \n owned_by_link\n \n , \n cast(null as TEXT) as \n \n owned_by_value\n \n , \n cast(null as TEXT) as \n \n service_classification\n \n , \n cast(null as TEXT) as \n \n service_level_requirement\n \n , \n cast(null as TEXT) as \n \n service_owner_delegate_link\n \n , \n cast(null as TEXT) as \n \n service_owner_delegate_value\n \n , \n cast(null as TEXT) as \n \n short_description\n \n , \n cast(null as TEXT) as \n \n sla_link\n \n , \n cast(null as TEXT) as \n \n sla_value\n \n , \n cast(null as TEXT) as \n \n state\n \n , \n cast(null as TEXT) as \n \n subcategory\n \n , \n cast(null as TEXT) as \n \n sys_class_name\n \n , \n cast(null as TEXT) as \n \n sys_class_path\n \n , \n cast(null as TEXT) as \n \n sys_created_by\n \n , \n cast(null as timestamp) as \n \n sys_created_on\n \n , \n cast(null as TEXT) as \n \n sys_domain_link\n \n , \n cast(null as TEXT) as \n \n sys_domain_path\n \n , \n cast(null as TEXT) as \n \n sys_domain_value\n \n , \n cast(null as TEXT) as \n \n sys_id\n \n , \n cast(null as integer) as \n \n sys_mod_count\n \n , \n cast(null as TEXT) as \n \n sys_updated_by\n \n , \n cast(null as timestamp) as \n \n sys_updated_on\n \n , \n cast(null as TEXT) as \n \n vendor_link\n \n , \n cast(null as TEXT) as \n \n vendor_value\n \n \n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n source_relation,\n cast(sys_id as TEXT) as cmdb_ci_service_id,\n cast(sys_created_on as timestamp) as cmdb_ci_service_created_at,\n cast(sys_updated_on as timestamp) as cmdb_ci_service_updated_at,\n _fivetran_deleted,\n _fivetran_synced,\n attributes,\n business_unit_link,\n cast(business_unit_value as TEXT) as business_unit_value,\n category,\n company_link,\n cast(company_value as TEXT) as company_value,\n cost,\n cost_cc,\n cost_center_link,\n cast(cost_center_value as TEXT) as cost_center_value,\n managed_by_link,\n cast(managed_by_value as TEXT) as managed_by_value,\n manufacturer_link,\n cast(manufacturer_value as TEXT) as manufacturer_value,\n model_id_link,\n cast(model_id_value as TEXT) as model_id_value,\n model_number,\n monitor,\n name as cmdb_ci_service_name,\n owned_by_link,\n cast(owned_by_value as TEXT) as owned_by_value,\n service_classification,\n service_level_requirement,\n short_description,\n sla_link,\n cast(sla_value as TEXT) as sla_value,\n state as cmdb_ci_service_state,\n subcategory,\n sys_class_name,\n sys_class_path,\n sys_created_by,\n sys_domain_link,\n sys_domain_path,\n cast(sys_domain_value as TEXT) as sys_domain_value,\n sys_mod_count,\n sys_updated_by,\n vendor_link,\n cast(vendor_value as TEXT) as vendor_value\n from fields\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__cmdb_ci_service\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-18T19:41:45.287764Z", "completed_at": "2024-01-18T19:41:45.579494Z"}, {"name": "execute", "started_at": "2024-01-18T19:41:45.594274Z", "completed_at": "2024-01-18T19:41:45.594283Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.34272074699401855, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.servicenow.stg_servicenow__task_sla", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__task_sla_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n business_duration\n \n as \n \n business_duration\n \n, \n \n \n business_pause_duration\n \n as \n \n business_pause_duration\n \n, \n \n \n business_percentage\n \n as \n \n business_percentage\n \n, \n \n \n business_time_left\n \n as \n \n business_time_left\n \n, \n \n \n duration\n \n as \n \n duration\n \n, \n \n \n end_time\n \n as \n \n end_time\n \n, \n \n \n has_breached\n \n as \n \n has_breached\n \n, \n \n \n original_breach_time\n \n as \n \n original_breach_time\n \n, \n \n \n pause_duration\n \n as \n \n pause_duration\n \n, \n \n \n pause_time\n \n as \n \n pause_time\n \n, \n \n \n percentage\n \n as \n \n percentage\n \n, \n \n \n planned_end_time\n \n as \n \n planned_end_time\n \n, \n \n \n schedule_link\n \n as \n \n schedule_link\n \n, \n \n \n schedule_value\n \n as \n \n schedule_value\n \n, \n \n \n sla_link\n \n as \n \n sla_link\n \n, \n \n \n sla_value\n \n as \n \n sla_value\n \n, \n \n \n stage\n \n as \n \n stage\n \n, \n \n \n start_time\n \n as \n \n start_time\n \n, \n \n \n sys_created_by\n \n as \n \n sys_created_by\n \n, \n \n \n sys_created_on\n \n as \n \n sys_created_on\n \n, \n \n \n sys_id\n \n as \n \n sys_id\n \n, \n \n \n sys_mod_count\n \n as \n \n sys_mod_count\n \n, \n \n \n sys_updated_by\n \n as \n \n sys_updated_by\n \n, \n \n \n sys_updated_on\n \n as \n \n sys_updated_on\n \n, \n \n \n task_link\n \n as \n \n task_link\n \n, \n \n \n task_value\n \n as \n \n task_value\n \n, \n \n \n time_left\n \n as \n \n time_left\n \n, \n \n \n timezone\n \n as \n \n timezone\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation, \n cast(sys_id as TEXT) as task_sla_id,\n cast(sys_created_on as timestamp) as task_sla_created_at,\n cast(sys_updated_on as timestamp) as task_sla_updated_at,\n _fivetran_deleted,\n _fivetran_synced,\n active,\n business_duration,\n business_pause_duration,\n business_percentage,\n business_time_left,\n duration,\n end_time,\n has_breached,\n original_breach_time,\n pause_duration,\n pause_time,\n percentage,\n planned_end_time,\n schedule_link,\n cast(schedule_value as TEXT) as schedule_value,\n sla_link,\n cast(sla_value as TEXT) as sla_value,\n stage,\n start_time,\n sys_created_by,\n sys_mod_count,\n sys_updated_by,\n task_link,\n cast(task_value as TEXT) as task_value,\n time_left,\n timezone\n from fields\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__task_sla\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-18T19:41:45.623716Z", "completed_at": "2024-01-18T19:41:45.649915Z"}, {"name": "execute", "started_at": "2024-01-18T19:41:45.668351Z", "completed_at": "2024-01-18T19:41:45.668361Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.04629802703857422, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__core_company_core_company_id__source_relation.85b30d325b", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n core_company_id, source_relation\n from \"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__core_company\"\n group by core_company_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-18T19:41:45.662357Z", "completed_at": "2024-01-18T19:41:45.670198Z"}, {"name": "execute", "started_at": "2024-01-18T19:41:45.672526Z", "completed_at": "2024-01-18T19:41:45.672531Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.0395662784576416, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.servicenow.not_null_stg_servicenow__core_company_core_company_id.e8ef462897", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect core_company_id\nfrom \"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__core_company\"\nwhere core_company_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-18T19:41:45.674011Z", "completed_at": "2024-01-18T19:41:45.682113Z"}, {"name": "execute", "started_at": "2024-01-18T19:41:45.682711Z", "completed_at": "2024-01-18T19:41:45.682720Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.011663675308227539, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__incident_incident_id__source_relation.4383616e6a", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n incident_id, source_relation\n from \"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__incident\"\n group by incident_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-18T19:41:45.678671Z", "completed_at": "2024-01-18T19:41:45.683943Z"}, {"name": "execute", "started_at": "2024-01-18T19:41:45.685326Z", "completed_at": "2024-01-18T19:41:45.685331Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.05475306510925293, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.servicenow.not_null_stg_servicenow__incident_incident_id.b01cee4a78", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect incident_id\nfrom \"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__incident\"\nwhere incident_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-18T19:41:45.337006Z", "completed_at": "2024-01-18T19:41:45.670708Z"}, {"name": "execute", "started_at": "2024-01-18T19:41:45.673059Z", "completed_at": "2024-01-18T19:41:45.673063Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.4034268856048584, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.servicenow.stg_servicenow__cmdb_ci", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__cmdb_ci_base\"\n),\n\nfields as (\n\n select\n \n cast(null as boolean) as \n \n _fivetran_deleted\n \n , \n cast(null as timestamp) as \n \n _fivetran_synced\n \n , \n cast(null as TEXT) as \n \n attributes\n \n , \n cast(null as TEXT) as \n \n business_unit_link\n \n , \n cast(null as TEXT) as \n \n business_unit_value\n \n , \n cast(null as TEXT) as \n \n category\n \n , \n cast(null as TEXT) as \n \n company_link\n \n , \n cast(null as TEXT) as \n \n company_value\n \n , \n cast(null as float) as \n \n cost\n \n , \n cast(null as TEXT) as \n \n cost_cc\n \n , \n cast(null as TEXT) as \n \n cost_center_link\n \n , \n cast(null as TEXT) as \n \n cost_center_value\n \n , \n cast(null as TEXT) as \n \n managed_by_link\n \n , \n cast(null as TEXT) as \n \n managed_by_value\n \n , \n cast(null as TEXT) as \n \n manufacturer_link\n \n , \n cast(null as TEXT) as \n \n manufacturer_value\n \n , \n cast(null as TEXT) as \n \n model_id_link\n \n , \n cast(null as TEXT) as \n \n model_id_value\n \n , \n cast(null as TEXT) as \n \n model_number\n \n , \n cast(null as TEXT) as \n \n name\n \n , \n cast(null as TEXT) as \n \n owned_by_link\n \n , \n cast(null as TEXT) as \n \n owned_by_value\n \n , \n cast(null as TEXT) as \n \n subcategory\n \n , \n cast(null as TEXT) as \n \n sys_class_name\n \n , \n cast(null as TEXT) as \n \n sys_class_path\n \n , \n cast(null as TEXT) as \n \n sys_created_by\n \n , \n cast(null as timestamp) as \n \n sys_created_on\n \n , \n cast(null as TEXT) as \n \n sys_domain_link\n \n , \n cast(null as TEXT) as \n \n sys_domain_path\n \n , \n cast(null as TEXT) as \n \n sys_domain_value\n \n , \n cast(null as TEXT) as \n \n sys_id\n \n , \n cast(null as integer) as \n \n sys_mod_count\n \n , \n cast(null as TEXT) as \n \n sys_updated_by\n \n , \n cast(null as timestamp) as \n \n sys_updated_on\n \n , \n cast(null as boolean) as \n \n unverified\n \n , \n cast(null as TEXT) as \n \n vendor_link\n \n , \n cast(null as TEXT) as \n \n vendor_value\n \n \n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation, \n cast(sys_id as TEXT) as cmdb_ci_id,\n cast(sys_created_on as timestamp) as cmdb_ci_created_at,\n cast(sys_updated_on as timestamp) as cmdb_ci_updated_at,\n _fivetran_deleted,\n _fivetran_synced,\n attributes,\n business_unit_link,\n cast(business_unit_value as TEXT) as business_unit_value,\n category,\n company_link,\n cast(company_value as TEXT) as company_value,\n cost,\n cost_cc,\n cost_center_link,\n cast(cost_center_value as TEXT) as cost_center_value,\n managed_by_link,\n cast(managed_by_value as TEXT) as managed_by_value,\n manufacturer_link,\n cast(manufacturer_value as TEXT) as manufacturer_value,\n model_id_link,\n cast(model_id_value as TEXT) as model_id_value,\n model_number,\n name as cmdb_ci_name,\n owned_by_link,\n cast(owned_by_value as TEXT) as owned_by_value,\n subcategory,\n sys_class_name,\n sys_class_path,\n sys_created_by,\n sys_domain_link,\n sys_domain_path,\n cast(sys_domain_value as TEXT) as sys_domain_value,\n sys_mod_count,\n sys_updated_by,\n unverified,\n vendor_link,\n cast(vendor_value as TEXT) as vendor_value\n from fields\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__cmdb_ci\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-18T19:41:45.325966Z", "completed_at": "2024-01-18T19:41:45.668752Z"}, {"name": "execute", "started_at": "2024-01-18T19:41:45.670975Z", "completed_at": "2024-01-18T19:41:45.670980Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.4106631278991699, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.servicenow.stg_servicenow__change_task", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__change_task_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n change_request_link\n \n as \n \n change_request_link\n \n, \n \n \n change_request_value\n \n as \n \n change_request_value\n \n, \n \n \n change_task_type\n \n as \n \n change_task_type\n \n, \n \n \n close_code\n \n as \n \n close_code\n \n, \n \n \n created_from\n \n as \n \n created_from\n \n, \n \n \n on_hold\n \n as \n \n on_hold\n \n, \n \n \n on_hold_reason\n \n as \n \n on_hold_reason\n \n, \n \n \n planned_end_date\n \n as \n \n planned_end_date\n \n, \n \n \n planned_start_date\n \n as \n \n planned_start_date\n \n, \n \n \n sys_created_on\n \n as \n \n sys_created_on\n \n, \n \n \n sys_id\n \n as \n \n sys_id\n \n, \n \n \n sys_updated_on\n \n as \n \n sys_updated_on\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation, \n cast(sys_id as TEXT) as change_task_id,\n cast(sys_created_on as timestamp) as change_task_created_at,\n cast(sys_updated_on as timestamp) as change_task_updated_at,\n _fivetran_deleted,\n _fivetran_synced,\n change_request_link,\n cast(change_request_value as TEXT) as change_request_value,\n change_task_type,\n close_code as change_task_close_code,\n created_from as change_task_created_from,\n on_hold as is_change_on_hold,\n on_hold_reason as change_on_hold_reason,\n planned_end_date as change_task_planned_end_date,\n planned_start_date as change_task_planned_start_date\n from fields\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__change_task\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-18T19:41:45.685608Z", "completed_at": "2024-01-18T19:41:45.735561Z"}, {"name": "execute", "started_at": "2024-01-18T19:41:45.740972Z", "completed_at": "2024-01-18T19:41:45.740978Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.05791115760803223, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__problem_problem_id__source_relation.135d98438b", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n problem_id, source_relation\n from \"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__problem\"\n group by problem_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-18T19:41:45.737692Z", "completed_at": "2024-01-18T19:41:45.748906Z"}, {"name": "execute", "started_at": "2024-01-18T19:41:45.750540Z", "completed_at": "2024-01-18T19:41:45.750547Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.016888141632080078, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.servicenow.not_null_stg_servicenow__problem_problem_id.2b0f45ffad", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect problem_id\nfrom \"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__problem\"\nwhere problem_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-18T19:41:45.745787Z", "completed_at": "2024-01-18T19:41:45.750812Z"}, {"name": "execute", "started_at": "2024-01-18T19:41:45.756892Z", "completed_at": "2024-01-18T19:41:45.756899Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.02114582061767578, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.servicenow.not_null_stg_servicenow__change_request_change_request_id.0f2ee81c5f", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect change_request_id\nfrom \"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__change_request\"\nwhere change_request_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-18T19:41:45.742654Z", "completed_at": "2024-01-18T19:41:45.751128Z"}, {"name": "execute", "started_at": "2024-01-18T19:41:45.757274Z", "completed_at": "2024-01-18T19:41:45.757279Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.022083044052124023, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__change_request_change_request_id__source_relation.f8d65569ae", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n change_request_id, source_relation\n from \"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__change_request\"\n group by change_request_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-18T19:41:45.752761Z", "completed_at": "2024-01-18T19:41:45.759323Z"}, {"name": "execute", "started_at": "2024-01-18T19:41:45.765647Z", "completed_at": "2024-01-18T19:41:45.765653Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.016710996627807617, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__problem_task_problem_task_id__source_relation.e59f50cae6", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n problem_task_id, source_relation\n from \"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__problem_task\"\n group by problem_task_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-18T19:41:45.760692Z", "completed_at": "2024-01-18T19:41:45.770536Z"}, {"name": "execute", "started_at": "2024-01-18T19:41:45.776099Z", "completed_at": "2024-01-18T19:41:45.776105Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.019640207290649414, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.servicenow.not_null_stg_servicenow__problem_task_problem_task_id.2d07d24f54", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect problem_task_id\nfrom \"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__problem_task\"\nwhere problem_task_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-18T19:41:45.767215Z", "completed_at": "2024-01-18T19:41:45.775741Z"}, {"name": "execute", "started_at": "2024-01-18T19:41:45.781066Z", "completed_at": "2024-01-18T19:41:45.781072Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.017599105834960938, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__sys_user_group_sys_user_group_id__source_relation.6fd66f39ed", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n sys_user_group_id, source_relation\n from \"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__sys_user_group\"\n group by sys_user_group_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-18T19:41:45.770833Z", "completed_at": "2024-01-18T19:41:45.776645Z"}, {"name": "execute", "started_at": "2024-01-18T19:41:45.781781Z", "completed_at": "2024-01-18T19:41:45.781784Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.01822519302368164, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__task_task_id__source_relation.4b5ec4b727", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n task_id, source_relation\n from \"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__task\"\n group by task_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-18T19:41:45.777705Z", "completed_at": "2024-01-18T19:41:45.783000Z"}, {"name": "execute", "started_at": "2024-01-18T19:41:45.787924Z", "completed_at": "2024-01-18T19:41:45.787929Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.013777971267700195, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.servicenow.not_null_stg_servicenow__sys_user_group_sys_user_group_id.a4600fb5c8", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect sys_user_group_id\nfrom \"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__sys_user_group\"\nwhere sys_user_group_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-18T19:41:45.785144Z", "completed_at": "2024-01-18T19:41:45.793433Z"}, {"name": "execute", "started_at": "2024-01-18T19:41:45.797596Z", "completed_at": "2024-01-18T19:41:45.797602Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.016196727752685547, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.servicenow.not_null_stg_servicenow__task_task_id.7a50a91303", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect task_id\nfrom \"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__task\"\nwhere task_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-18T19:41:45.789590Z", "completed_at": "2024-01-18T19:41:45.797333Z"}, {"name": "execute", "started_at": "2024-01-18T19:41:45.802154Z", "completed_at": "2024-01-18T19:41:45.802160Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.018397808074951172, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__sys_user_user_id__source_relation.2a8836be3c", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n user_id, source_relation\n from \"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__sys_user\"\n group by user_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-18T19:41:45.794001Z", "completed_at": "2024-01-18T19:41:45.798312Z"}, {"name": "execute", "started_at": "2024-01-18T19:41:45.803504Z", "completed_at": "2024-01-18T19:41:45.803508Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.01666116714477539, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.servicenow.not_null_stg_servicenow__sys_user_user_id.90a8733b9d", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect user_id\nfrom \"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__sys_user\"\nwhere user_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-18T19:41:45.799140Z", "completed_at": "2024-01-18T19:41:45.804128Z"}, {"name": "execute", "started_at": "2024-01-18T19:41:45.809835Z", "completed_at": "2024-01-18T19:41:45.809842Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.014119386672973633, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__cmdb_ci_service_cmdb_ci_service_id__source_relation.e596372710", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n cmdb_ci_service_id, source_relation\n from \"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__cmdb_ci_service\"\n group by cmdb_ci_service_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-18T19:41:45.806470Z", "completed_at": "2024-01-18T19:41:45.814351Z"}, {"name": "execute", "started_at": "2024-01-18T19:41:45.819762Z", "completed_at": "2024-01-18T19:41:45.819767Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.017165184020996094, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__task_sla_task_sla_id__source_relation.e9939b7a70", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n task_sla_id, source_relation\n from \"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__task_sla\"\n group by task_sla_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-18T19:41:45.811383Z", "completed_at": "2024-01-18T19:41:45.819453Z"}, {"name": "execute", "started_at": "2024-01-18T19:41:45.831875Z", "completed_at": "2024-01-18T19:41:45.831883Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.027230024337768555, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.servicenow.not_null_stg_servicenow__cmdb_ci_service_cmdb_ci_service_id.f7770250de", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect cmdb_ci_service_id\nfrom \"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__cmdb_ci_service\"\nwhere cmdb_ci_service_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-18T19:41:45.815030Z", "completed_at": "2024-01-18T19:41:45.820496Z"}, {"name": "execute", "started_at": "2024-01-18T19:41:45.833357Z", "completed_at": "2024-01-18T19:41:45.833360Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.024241924285888672, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.servicenow.not_null_stg_servicenow__task_sla_task_sla_id.c67b0e6fdf", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect task_sla_id\nfrom \"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__task_sla\"\nwhere task_sla_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-18T19:41:45.821322Z", "completed_at": "2024-01-18T19:41:45.834259Z"}, {"name": "execute", "started_at": "2024-01-18T19:41:45.839489Z", "completed_at": "2024-01-18T19:41:45.839494Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.024292945861816406, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.servicenow.servicenow__task_enhanced", "compiled": true, "compiled_code": "with task as (\n\n select *\n from \"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__task\"\n),\n\nproblem_task as (\n \n select *\n from \"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__problem_task\"\n),\n\nproblem as (\n \n select *\n from \"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__problem\"\n),\n\nchange_task as (\n \n select *\n from \"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__change_task\"\n),\n\nchange_request as (\n \n select *\n from \"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__change_request\"\n),\n\nsys_user as (\n \n select *\n from \"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__sys_user\"\n),\n\nsys_user_group as (\n \n select *\n from \"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__sys_user_group\"\n),\n\ncore_company as (\n \n select *\n from \"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__core_company\"\n),\n\ncmdb_ci as (\n\n select *\n from \"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__cmdb_ci\"\n),\n\ncmdb_ci_service as (\n\n select *\n from \"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__cmdb_ci_service\"\n),\n\ntask_enhanced as (\n\nselect \n\n task.task_id,\n task.is_task_active,\n task.task_description,\n task.activity_due,\n task.priority,\n task.impact,\n task.urgency,\n task.task_state,\n task.task_number,\n task.task_order,\n case when problem_task.problem_task_id is not null \n then true \n else false \n end as is_problem_task,\n case when change_task.change_task_id is not null \n then true \n else false \n end as is_change_task,\n task.task_created_at,\n task.sys_created_by,\n task.cmdb_ci_link,\n task.cmdb_ci_value,\n cmdb_ci.cmdb_ci_name,\n creator.email as creator_email,\n creator.manager_value as creator_manager_value,\n creator.department_value as creator_department_value,\n creator.sys_user_name as creator_name,\n creator.roles as creator_roles,\n task.task_updated_at,\n cast (date_trunc('day', task.task_updated_at) as date) as task_updated_date,\n task.sys_updated_by,\n updater.email as updater_email,\n updater.manager_value as updater_manager_value,\n updater.department_value as updater_department_value,\n updater.sys_user_name as updater_name,\n updater.roles as updater_roles,\n task.task_opened_at,\n task.opened_by_link,\n task.opened_by_value, \n opener.manager_value as opener_manager_value,\n opener.email as opener_email,\n opener.department_value as opener_department_value,\n opener.sys_user_name as opener_name,\n opener.roles as opener_roles,\n task.assigned_to_link, \n task.assigned_to_value,\n assignee.email as assignee_email,\n assignee.manager_value as assignee_manager_value,\n assignee.department_value as assignee_department_value,\n assignee.sys_user_name as assignee_name,\n assignee.roles as assignee_roles,\n task.task_closed_at,\n \n (\n (\n ((task.task_closed_at)::date - (task.task_opened_at)::date)\n * 24 + date_part('hour', (task.task_closed_at)::timestamp) - date_part('hour', (task.task_opened_at)::timestamp))\n * 60 + date_part('minute', (task.task_closed_at)::timestamp) - date_part('minute', (task.task_opened_at)::timestamp))\n as task_minutes_open_to_close,\n task.closed_by_link,\n task.closed_by_value,\n closer.email as closer_email,\n closer.manager_value as closer_manager_value,\n closer.department_value as closer_department_value,\n closer.sys_user_name as closer_name,\n closer.roles as closer_roles,\n task.task_effective_number,\n task.additional_assignee_list,\n task.approval,\n task.approval_history,\n task.approval_set,\n task.assignment_group_link,\n task.assignment_group_value,\n assignment_group.sys_user_group_name as assignment_group_name,\n task.business_duration,\n task.calendar_duration,\n task.business_service_link,\n task.business_service_value,\n business_service.cmdb_ci_service_name as business_service_name,\n task.close_notes,\n task.comments,\n task.comments_and_work_notes,\n task.company_link,\n task.company_value, \n core_company.company_name,\n task.contact_type, \n task.task_due_date_at,\n task.expected_start,\n task.task_follow_up_at,\n task.group_list,\n task.knowledge,\n task.is_made_sla,\n task.sla_due,\n task.parent_link, \n task.parent_value,\n task.reassignment_count,\n task.route_reason,\n task.short_description,\n task.sys_class_name,\n task.sys_domain_link,\n task.sys_domain_path,\n task.sys_domain_value,\n task.upon_approval,\n task.upon_reject,\n task.watch_list,\n task.work_start,\n task.work_end,\n task.work_notes,\n task.work_notes_list,\n problem_task.problem_task_cause_code,\n problem_task.problem_task_close_code,\n problem_task.problem_task_type,\n problem_task.problem_task_started_at,\n problem_task.started_by_value,\n problem_task_starter.email as problem_task_starter_email,\n problem_task_starter.manager_value as problem_task_starter_manager_value,\n problem_task_starter.department_value as problem_task_starter_department_value,\n problem_task_starter.sys_user_name as problem_task_starter_name,\n problem_task_starter.roles as problem_task_starter_roles, \n problem.problem_id as associated_problem_id,\n problem.problem_category,\n problem.cause_notes,\n problem.problem_confirmed_at,\n problem.problem_confirmed_by_value,\n problem_confirmer.email as problem_confirmer_email,\n problem_confirmer.manager_value as problem_confirmer_manager_value,\n problem_confirmer.department_value as problem_confirmer_department_value,\n problem_confirmer.sys_user_name as problem_confirmer_name,\n problem_confirmer.roles as problem_confirmer_roles,\n problem.problem_first_reported_by_task_value,\n problem_reporter.email as problem_reporter_email,\n problem_reporter.manager_value as problem_reporter_manager_value,\n problem_reporter.department_value as problem_reporter_department_value,\n problem_reporter.sys_user_name as problem_reporter_name,\n problem_reporter.roles as problem_reporter_roles,\n problem.problem_fix_at,\n problem.problem_fix_by_value,\n problem_fixer.email as problem_fixer_email,\n problem_fixer.manager_value as problem_fixer_manager_value,\n problem_fixer.department_value as problem_fixer_department_value,\n problem_fixer.sys_user_name as problem_fixer_name,\n problem_fixer.roles as problem_fixer_roles,\n problem.problem_fix_notes,\n problem.is_known_error as problem_is_known_error,\n problem.is_major_problem,\n problem.problem_state,\n problem.problem_related_incidents,\n problem.problem_resolution_code,\n problem.problem_resolved_at,\n problem.problem_resolved_by_value,\n problem.workaround_applied,\n problem_resolver.email as problem_resolver_email,\n problem_resolver.manager_value as problem_resolver_manager_value,\n problem_resolver.department_value as problem_resolver_department_value,\n problem_resolver.sys_user_name as problem_resolver_name,\n problem_resolver.roles as problem_resolver_roles,\n problem.problem_subcategory,\n problem.problem_created_at,\n problem.problem_updated_at,\n change_task.change_task_type,\n change_task.change_task_close_code,\n change_task.change_task_created_from,\n change_task.is_change_on_hold,\n change_task.change_on_hold_reason,\n change_task.change_task_planned_end_date,\n change_task.change_task_planned_start_date,\n change_request.change_request_id as associated_change_request_id,\n change_request.change_request_created_at,\n change_request.change_request_updated_at,\n change_request.change_request_category,\n change_request.change_plan,\n change_request.change_request_close_code,\n change_request.change_request_end_date,\n change_request.change_request_implementation_plan,\n change_request.change_request_justification,\n change_request.is_change_request_on_hold,\n change_request.change_request_on_hold_reason,\n change_request.change_request_phase,\n change_request.change_request_phase_state,\n change_request.change_request_reason,\n change_request.change_requested_by_date,\n change_request.change_requested_by_value,\n change_requester.email as change_requester_email,\n change_requester.manager_value as change_requester_manager_value,\n change_requester.department_value as change_requester_department_value,\n change_requester.sys_user_name as change_requester_name,\n change_requester.roles as change_requester_roles,\n change_request.change_request_review_date,\n change_request.change_request_review_status,\n change_request.change_request_risk,\n change_request.change_request_scope,\n change_request.change_request_start_date,\n change_request.change_request_test_plan,\n change_request.change_request_type,\n change_request.is_change_request_unauthorized,\n task.source_relation\n\nfrom task\nleft join core_company\n on task.company_value = core_company.core_company_id\nleft join problem_task\n on task.task_id = problem_task.problem_task_id\nleft join sys_user problem_task_starter\n on problem_task.started_by_value = problem_task_starter.user_id\nleft join problem\n on problem_task.problem_value = problem.problem_id\nleft join sys_user problem_confirmer\n on problem.problem_confirmed_by_value = problem_confirmer.user_id\nleft join sys_user problem_reporter\n on problem.problem_first_reported_by_task_value = problem_reporter.user_id\nleft join sys_user problem_fixer\n on problem.problem_fix_by_value = problem_fixer.user_id\nleft join sys_user problem_resolver\n on problem.problem_resolved_by_value = problem_resolver.user_id\nleft join change_task\n on task.task_id = change_task.change_task_id\nleft join change_request\n on change_task.change_request_value = change_request.change_request_id\nleft join sys_user change_requester\n on change_request.change_requested_by_value = change_requester.user_id\nleft join sys_user assignee\n on task.assigned_to_value = assignee.user_id\nleft join sys_user closer \n on task.closed_by_value = closer.user_id\nleft join sys_user opener\n on task.opened_by_value = opener.user_id\nleft join sys_user creator\n on task.sys_created_by = creator.user_id\nleft join sys_user updater\n on task.sys_updated_by = updater.user_id\nleft join sys_user_group assignment_group\n on task.assignment_group_value = assignment_group.sys_user_group_id\nleft join cmdb_ci\n on task.cmdb_ci_value = cmdb_ci.cmdb_ci_id\nleft join cmdb_ci_service business_service\n on task.business_service_value = business_service.cmdb_ci_service_id\n)\n\nselect *\nfrom task_enhanced", "relation_name": "\"postgres\".\"reddit_ads_integration_tests_3_servicenow\".\"servicenow__task_enhanced\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-18T19:41:45.836016Z", "completed_at": "2024-01-18T19:41:45.843983Z"}, {"name": "execute", "started_at": "2024-01-18T19:41:45.848774Z", "completed_at": "2024-01-18T19:41:45.848780Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.016417980194091797, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__change_task_change_task_id__source_relation.11bf5182ff", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n change_task_id, source_relation\n from \"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__change_task\"\n group by change_task_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-18T19:41:45.840218Z", "completed_at": "2024-01-18T19:41:45.844716Z"}, {"name": "execute", "started_at": "2024-01-18T19:41:45.849360Z", "completed_at": "2024-01-18T19:41:45.849364Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.018854856491088867, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__cmdb_ci_cmdb_ci_id__source_relation.4d25f1839d", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n cmdb_ci_id, source_relation\n from \"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__cmdb_ci\"\n group by cmdb_ci_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-18T19:41:45.844976Z", "completed_at": "2024-01-18T19:41:45.849622Z"}, {"name": "execute", "started_at": "2024-01-18T19:41:45.855266Z", "completed_at": "2024-01-18T19:41:45.855270Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.017102956771850586, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.servicenow.not_null_stg_servicenow__change_task_change_task_id.2d5ae34a7b", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect change_task_id\nfrom \"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__change_task\"\nwhere change_task_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-18T19:41:45.850402Z", "completed_at": "2024-01-18T19:41:45.855918Z"}, {"name": "execute", "started_at": "2024-01-18T19:41:45.859993Z", "completed_at": "2024-01-18T19:41:45.859997Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.015517950057983398, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.servicenow.not_null_stg_servicenow__cmdb_ci_cmdb_ci_id.83f2c6d37c", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect cmdb_ci_id\nfrom \"postgres\".\"reddit_ads_integration_tests_3_stg_servicenow\".\"stg_servicenow__cmdb_ci\"\nwhere cmdb_ci_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-18T19:41:45.858127Z", "completed_at": "2024-01-18T19:41:45.864253Z"}, {"name": "execute", "started_at": "2024-01-18T19:41:45.869192Z", "completed_at": "2024-01-18T19:41:45.869198Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.014606952667236328, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.servicenow.servicenow__activity_summary", "compiled": true, "compiled_code": "with ticket_enhanced as (\n\n select * \n from \"postgres\".\"reddit_ads_integration_tests_3_servicenow\".\"servicenow__task_enhanced\"\n)\n\nselect \n task_updated_date,\n task_state,\n priority,\n impact,\n urgency,\n source_relation,\n count(distinct case when is_task_active then task_id end) as total_active_tasks,\n count(distinct case when is_problem_task and is_task_active then task_id end) as total_active_problem_tasks,\n count(distinct case when is_change_task and is_task_active then task_id end) as total_active_change_tasks,\n count(distinct associated_problem_id) as total_associated_problems, \n sum(problem_related_incidents) as total_incidents_caused_by_problems,\n count(distinct associated_change_request_id) as total_change_requests,\n count(distinct case when task_closed_at is not null then task_id end) as total_closed_tasks,\n avg(task_minutes_open_to_close) as average_minutes_open_to_close,\n count(case when is_made_sla then 1 end) as total_tasks_made_slas\n\nfrom ticket_enhanced\ngroup by 1,2,3,4,5,6", "relation_name": "\"postgres\".\"reddit_ads_integration_tests_3_servicenow\".\"servicenow__activity_summary\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-18T19:41:45.860254Z", "completed_at": "2024-01-18T19:41:45.868889Z"}, {"name": "execute", "started_at": "2024-01-18T19:41:45.870473Z", "completed_at": "2024-01-18T19:41:45.870477Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.015184164047241211, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.servicenow.not_null_servicenow__task_enhanced_task_id.76cea62cda", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect task_id\nfrom \"postgres\".\"reddit_ads_integration_tests_3_servicenow\".\"servicenow__task_enhanced\"\nwhere task_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-18T19:41:45.864630Z", "completed_at": "2024-01-18T19:41:45.869688Z"}, {"name": "execute", "started_at": "2024-01-18T19:41:45.871844Z", "completed_at": "2024-01-18T19:41:45.871847Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.009823083877563477, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.servicenow.unique_servicenow__task_enhanced_task_id.a974c4dbbc", "compiled": true, "compiled_code": "\n \n \n\nselect\n task_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"reddit_ads_integration_tests_3_servicenow\".\"servicenow__task_enhanced\"\nwhere task_id is not null\ngroup by task_id\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-18T19:41:45.873391Z", "completed_at": "2024-01-18T19:41:45.877846Z"}, {"name": "execute", "started_at": "2024-01-18T19:41:45.878376Z", "completed_at": "2024-01-18T19:41:45.878381Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.00668787956237793, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.servicenow.dbt_utils_unique_combination_of_columns_servicenow__activity_summary_task_updated_date__task_state__priority__impact__urgency__source_relation.8ca2665c4e", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n task_updated_date, task_state, priority, impact, urgency, source_relation\n from \"postgres\".\"reddit_ads_integration_tests_3_servicenow\".\"servicenow__activity_summary\"\n group by task_updated_date, task_state, priority, impact, urgency, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}], "elapsed_time": 2.874755620956421, "args": {"show_resource_report": false, "select": [], "favor_state": false, "printer_width": 80, "introspect": true, "log_path": "/Users/joseph.markiewicz/Documents/dbt_packages/servicenow/dbt_servicenow/integration_tests/logs", "target": "postgres", "vars": {}, "cache_selected_only": false, "defer": false, "print": true, "exclude": [], "warn_error_options": {"include": [], "exclude": []}, "use_colors_file": true, "quiet": false, "populate_cache": true, "partial_parse": true, "strict_mode": false, "use_colors": true, "enable_legacy_logger": false, "log_level_file": "debug", "partial_parse_file_diff": true, "static_parser": true, "send_anonymous_usage_stats": true, "log_file_max_bytes": 10485760, "log_level": "info", "project_dir": "/Users/joseph.markiewicz/Documents/dbt_packages/servicenow/dbt_servicenow/integration_tests", "indirect_selection": "eager", "macro_debugging": false, "write_json": true, "invocation_command": "dbt docs generate -t postgres", "profiles_dir": "/Users/joseph.markiewicz/.dbt", "empty_catalog": false, "static": false, "version_check": true, "log_format": "default", "compile": true, "log_format_file": "debug", "which": "generate"}} \ No newline at end of file +{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/run-results/v4.json", "dbt_version": "1.6.1", "generated_at": "2024-02-22T22:24:24.136646Z", "invocation_id": "7971e914-73f2-4b1f-8950-b1a9debcdda9", "env": {}}, "results": [{"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-22T22:24:20.475012Z", "completed_at": "2024-02-22T22:24:20.933408Z"}, {"name": "execute", "started_at": "2024-02-22T22:24:20.934605Z", "completed_at": "2024-02-22T22:24:20.934658Z"}], "thread_id": "Thread-3", "execution_time": 0.4762554168701172, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.servicenow.stg_servicenow__cmdb_ci_base"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-22T22:24:20.483676Z", "completed_at": "2024-02-22T22:24:20.948568Z"}, {"name": "execute", "started_at": "2024-02-22T22:24:20.949790Z", "completed_at": "2024-02-22T22:24:20.949803Z"}], "thread_id": "Thread-4", "execution_time": 0.49043893814086914, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.servicenow.stg_servicenow__cmdb_ci_service_base"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-22T22:24:20.472524Z", "completed_at": "2024-02-22T22:24:20.965471Z"}, {"name": "execute", "started_at": "2024-02-22T22:24:20.966810Z", "completed_at": "2024-02-22T22:24:20.966823Z"}], "thread_id": "Thread-2", "execution_time": 0.5099031925201416, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.servicenow.stg_servicenow__change_task_base"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-22T22:24:20.464260Z", "completed_at": "2024-02-22T22:24:20.978935Z"}, {"name": "execute", "started_at": "2024-02-22T22:24:20.981106Z", "completed_at": "2024-02-22T22:24:20.981120Z"}], "thread_id": "Thread-1", "execution_time": 0.5255701541900635, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.servicenow.stg_servicenow__change_request_base"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-22T22:24:20.954687Z", "completed_at": "2024-02-22T22:24:21.307595Z"}, {"name": "execute", "started_at": "2024-02-22T22:24:21.309801Z", "completed_at": "2024-02-22T22:24:21.309816Z"}], "thread_id": "Thread-4", "execution_time": 0.3585829734802246, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.servicenow.stg_servicenow__incident_base"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-22T22:24:20.938556Z", "completed_at": "2024-02-22T22:24:21.309037Z"}, {"name": "execute", "started_at": "2024-02-22T22:24:21.312781Z", "completed_at": "2024-02-22T22:24:21.312795Z"}], "thread_id": "Thread-3", "execution_time": 0.37790489196777344, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.servicenow.stg_servicenow__core_company_base"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-22T22:24:20.985681Z", "completed_at": "2024-02-22T22:24:21.343214Z"}, {"name": "execute", "started_at": "2024-02-22T22:24:21.344702Z", "completed_at": "2024-02-22T22:24:21.344717Z"}], "thread_id": "Thread-1", "execution_time": 0.3620331287384033, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.servicenow.stg_servicenow__problem_task_base"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-22T22:24:20.972335Z", "completed_at": "2024-02-22T22:24:21.361722Z"}, {"name": "execute", "started_at": "2024-02-22T22:24:21.363484Z", "completed_at": "2024-02-22T22:24:21.363502Z"}], "thread_id": "Thread-2", "execution_time": 0.39487600326538086, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.servicenow.stg_servicenow__problem_base"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-22T22:24:21.328228Z", "completed_at": "2024-02-22T22:24:21.677753Z"}, {"name": "execute", "started_at": "2024-02-22T22:24:21.679497Z", "completed_at": "2024-02-22T22:24:21.679514Z"}], "thread_id": "Thread-3", "execution_time": 0.36214613914489746, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.servicenow.stg_servicenow__sys_user_group_base"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-22T22:24:21.349908Z", "completed_at": "2024-02-22T22:24:21.723378Z"}, {"name": "execute", "started_at": "2024-02-22T22:24:21.726379Z", "completed_at": "2024-02-22T22:24:21.726395Z"}], "thread_id": "Thread-1", "execution_time": 0.3805418014526367, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.servicenow.stg_servicenow__task_base"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-22T22:24:21.368096Z", "completed_at": "2024-02-22T22:24:21.724242Z"}, {"name": "execute", "started_at": "2024-02-22T22:24:21.727158Z", "completed_at": "2024-02-22T22:24:21.727168Z"}], "thread_id": "Thread-2", "execution_time": 0.3638448715209961, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.servicenow.stg_servicenow__task_sla_base"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-22T22:24:21.319896Z", "completed_at": "2024-02-22T22:24:21.911867Z"}, {"name": "execute", "started_at": "2024-02-22T22:24:21.913442Z", "completed_at": "2024-02-22T22:24:21.913457Z"}], "thread_id": "Thread-4", "execution_time": 0.5984971523284912, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.servicenow.stg_servicenow__sys_user_base"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-22T22:24:21.736533Z", "completed_at": "2024-02-22T22:24:22.383279Z"}, {"name": "execute", "started_at": "2024-02-22T22:24:22.386344Z", "completed_at": "2024-02-22T22:24:22.386357Z"}], "thread_id": "Thread-1", "execution_time": 0.6553130149841309, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.servicenow.stg_servicenow__cmdb_ci_service"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-22T22:24:21.918091Z", "completed_at": "2024-02-22T22:24:22.384024Z"}, {"name": "execute", "started_at": "2024-02-22T22:24:22.387524Z", "completed_at": "2024-02-22T22:24:22.387536Z"}], "thread_id": "Thread-4", "execution_time": 0.47398877143859863, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.servicenow.stg_servicenow__change_request"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-22T22:24:21.685166Z", "completed_at": "2024-02-22T22:24:22.385190Z"}, {"name": "execute", "started_at": "2024-02-22T22:24:22.389454Z", "completed_at": "2024-02-22T22:24:22.389463Z"}], "thread_id": "Thread-3", "execution_time": 0.7101938724517822, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.servicenow.stg_servicenow__cmdb_ci"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-22T22:24:21.747888Z", "completed_at": "2024-02-22T22:24:22.449196Z"}, {"name": "execute", "started_at": "2024-02-22T22:24:22.450627Z", "completed_at": "2024-02-22T22:24:22.450643Z"}], "thread_id": "Thread-2", "execution_time": 0.7174930572509766, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.servicenow.stg_servicenow__change_task"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-22T22:24:22.420575Z", "completed_at": "2024-02-22T22:24:22.828506Z"}, {"name": "execute", "started_at": "2024-02-22T22:24:22.829991Z", "completed_at": "2024-02-22T22:24:22.830008Z"}], "thread_id": "Thread-3", "execution_time": 0.4323599338531494, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.servicenow.stg_servicenow__problem_task"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-22T22:24:22.400738Z", "completed_at": "2024-02-22T22:24:23.138110Z"}, {"name": "execute", "started_at": "2024-02-22T22:24:23.162880Z", "completed_at": "2024-02-22T22:24:23.162895Z"}], "thread_id": "Thread-1", "execution_time": 0.7703752517700195, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.servicenow.stg_servicenow__incident"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-22T22:24:22.455201Z", "completed_at": "2024-02-22T22:24:23.154729Z"}, {"name": "execute", "started_at": "2024-02-22T22:24:23.163567Z", "completed_at": "2024-02-22T22:24:23.163578Z"}], "thread_id": "Thread-2", "execution_time": 0.7133481502532959, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.servicenow.stg_servicenow__problem"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-22T22:24:22.413225Z", "completed_at": "2024-02-22T22:24:23.159937Z"}, {"name": "execute", "started_at": "2024-02-22T22:24:23.164844Z", "completed_at": "2024-02-22T22:24:23.164853Z"}], "thread_id": "Thread-4", "execution_time": 0.7712640762329102, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.servicenow.stg_servicenow__core_company"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-22T22:24:22.835360Z", "completed_at": "2024-02-22T22:24:23.164198Z"}, {"name": "execute", "started_at": "2024-02-22T22:24:23.171146Z", "completed_at": "2024-02-22T22:24:23.171157Z"}], "thread_id": "Thread-3", "execution_time": 0.3419771194458008, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.servicenow.stg_servicenow__sys_user_group"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-22T22:24:23.215084Z", "completed_at": "2024-02-22T22:24:23.224881Z"}, {"name": "execute", "started_at": "2024-02-22T22:24:23.226555Z", "completed_at": "2024-02-22T22:24:23.226570Z"}], "thread_id": "Thread-3", "execution_time": 0.027247190475463867, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__cmdb_ci_service_cmdb_ci_service_id__source_relation.e596372710"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-22T22:24:23.231864Z", "completed_at": "2024-02-22T22:24:23.244822Z"}, {"name": "execute", "started_at": "2024-02-22T22:24:23.246024Z", "completed_at": "2024-02-22T22:24:23.246037Z"}], "thread_id": "Thread-3", "execution_time": 0.016730785369873047, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.servicenow.not_null_stg_servicenow__cmdb_ci_service_cmdb_ci_service_id.f7770250de"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-22T22:24:23.250441Z", "completed_at": "2024-02-22T22:24:23.258068Z"}, {"name": "execute", "started_at": "2024-02-22T22:24:23.259348Z", "completed_at": "2024-02-22T22:24:23.259360Z"}], "thread_id": "Thread-3", "execution_time": 0.01143193244934082, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__change_request_change_request_id__source_relation.f8d65569ae"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-22T22:24:23.263123Z", "completed_at": "2024-02-22T22:24:23.269324Z"}, {"name": "execute", "started_at": "2024-02-22T22:24:23.270652Z", "completed_at": "2024-02-22T22:24:23.270665Z"}], "thread_id": "Thread-3", "execution_time": 0.00984501838684082, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.servicenow.not_null_stg_servicenow__change_request_change_request_id.0f2ee81c5f"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-22T22:24:23.274455Z", "completed_at": "2024-02-22T22:24:23.281479Z"}, {"name": "execute", "started_at": "2024-02-22T22:24:23.282744Z", "completed_at": "2024-02-22T22:24:23.282757Z"}], "thread_id": "Thread-3", "execution_time": 0.010828018188476562, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__cmdb_ci_cmdb_ci_id__source_relation.4d25f1839d"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-22T22:24:23.286677Z", "completed_at": "2024-02-22T22:24:23.293272Z"}, {"name": "execute", "started_at": "2024-02-22T22:24:23.294927Z", "completed_at": "2024-02-22T22:24:23.294941Z"}], "thread_id": "Thread-3", "execution_time": 0.010689973831176758, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.servicenow.not_null_stg_servicenow__cmdb_ci_cmdb_ci_id.83f2c6d37c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-22T22:24:23.298900Z", "completed_at": "2024-02-22T22:24:23.306440Z"}, {"name": "execute", "started_at": "2024-02-22T22:24:23.307656Z", "completed_at": "2024-02-22T22:24:23.307669Z"}], "thread_id": "Thread-3", "execution_time": 0.011069059371948242, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__change_task_change_task_id__source_relation.11bf5182ff"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-22T22:24:23.311303Z", "completed_at": "2024-02-22T22:24:23.318913Z"}, {"name": "execute", "started_at": "2024-02-22T22:24:23.320295Z", "completed_at": "2024-02-22T22:24:23.320308Z"}], "thread_id": "Thread-3", "execution_time": 0.011444091796875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.servicenow.not_null_stg_servicenow__change_task_change_task_id.2d5ae34a7b"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-22T22:24:23.325145Z", "completed_at": "2024-02-22T22:24:23.336828Z"}, {"name": "execute", "started_at": "2024-02-22T22:24:23.339285Z", "completed_at": "2024-02-22T22:24:23.339307Z"}], "thread_id": "Thread-3", "execution_time": 0.017983198165893555, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__problem_task_problem_task_id__source_relation.e59f50cae6"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-22T22:24:23.344593Z", "completed_at": "2024-02-22T22:24:23.352615Z"}, {"name": "execute", "started_at": "2024-02-22T22:24:23.354001Z", "completed_at": "2024-02-22T22:24:23.354015Z"}], "thread_id": "Thread-3", "execution_time": 0.012171030044555664, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.servicenow.not_null_stg_servicenow__problem_task_problem_task_id.2d07d24f54"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-22T22:24:23.358668Z", "completed_at": "2024-02-22T22:24:23.366523Z"}, {"name": "execute", "started_at": "2024-02-22T22:24:23.367878Z", "completed_at": "2024-02-22T22:24:23.367891Z"}], "thread_id": "Thread-3", "execution_time": 0.01193380355834961, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__incident_incident_id__source_relation.4383616e6a"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-22T22:24:23.372948Z", "completed_at": "2024-02-22T22:24:23.381178Z"}, {"name": "execute", "started_at": "2024-02-22T22:24:23.384129Z", "completed_at": "2024-02-22T22:24:23.384152Z"}], "thread_id": "Thread-3", "execution_time": 0.015088081359863281, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.servicenow.not_null_stg_servicenow__incident_incident_id.b01cee4a78"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-22T22:24:23.391380Z", "completed_at": "2024-02-22T22:24:23.400533Z"}, {"name": "execute", "started_at": "2024-02-22T22:24:23.402106Z", "completed_at": "2024-02-22T22:24:23.402122Z"}], "thread_id": "Thread-3", "execution_time": 0.013875007629394531, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__problem_problem_id__source_relation.135d98438b"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-22T22:24:23.407642Z", "completed_at": "2024-02-22T22:24:23.417054Z"}, {"name": "execute", "started_at": "2024-02-22T22:24:23.418520Z", "completed_at": "2024-02-22T22:24:23.418535Z"}], "thread_id": "Thread-3", "execution_time": 0.01425790786743164, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.servicenow.not_null_stg_servicenow__problem_problem_id.2b0f45ffad"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-22T22:24:23.422863Z", "completed_at": "2024-02-22T22:24:23.431434Z"}, {"name": "execute", "started_at": "2024-02-22T22:24:23.432888Z", "completed_at": "2024-02-22T22:24:23.432902Z"}], "thread_id": "Thread-3", "execution_time": 0.012816190719604492, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__core_company_core_company_id__source_relation.85b30d325b"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-22T22:24:23.437330Z", "completed_at": "2024-02-22T22:24:23.445306Z"}, {"name": "execute", "started_at": "2024-02-22T22:24:23.446926Z", "completed_at": "2024-02-22T22:24:23.446941Z"}], "thread_id": "Thread-3", "execution_time": 0.012632131576538086, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.servicenow.not_null_stg_servicenow__core_company_core_company_id.e8ef462897"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-22T22:24:23.452721Z", "completed_at": "2024-02-22T22:24:23.462255Z"}, {"name": "execute", "started_at": "2024-02-22T22:24:23.463709Z", "completed_at": "2024-02-22T22:24:23.463723Z"}], "thread_id": "Thread-3", "execution_time": 0.014083147048950195, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__sys_user_group_sys_user_group_id__source_relation.6fd66f39ed"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-22T22:24:23.468042Z", "completed_at": "2024-02-22T22:24:23.475231Z"}, {"name": "execute", "started_at": "2024-02-22T22:24:23.476534Z", "completed_at": "2024-02-22T22:24:23.476546Z"}], "thread_id": "Thread-3", "execution_time": 0.011085987091064453, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.servicenow.not_null_stg_servicenow__sys_user_group_sys_user_group_id.a4600fb5c8"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-22T22:24:23.193123Z", "completed_at": "2024-02-22T22:24:23.762437Z"}, {"name": "execute", "started_at": "2024-02-22T22:24:23.763976Z", "completed_at": "2024-02-22T22:24:23.763990Z"}], "thread_id": "Thread-2", "execution_time": 0.5916109085083008, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.servicenow.stg_servicenow__task_sla"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-22T22:24:23.201398Z", "completed_at": "2024-02-22T22:24:23.766412Z"}, {"name": "execute", "started_at": "2024-02-22T22:24:23.771160Z", "completed_at": "2024-02-22T22:24:23.771180Z"}], "thread_id": "Thread-4", "execution_time": 0.5982460975646973, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.servicenow.stg_servicenow__sys_user"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-22T22:24:23.782811Z", "completed_at": "2024-02-22T22:24:23.798249Z"}, {"name": "execute", "started_at": "2024-02-22T22:24:23.806324Z", "completed_at": "2024-02-22T22:24:23.806350Z"}], "thread_id": "Thread-2", "execution_time": 0.039092063903808594, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.servicenow.not_null_stg_servicenow__task_sla_task_sla_id.c67b0e6fdf"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-22T22:24:23.775473Z", "completed_at": "2024-02-22T22:24:23.804774Z"}, {"name": "execute", "started_at": "2024-02-22T22:24:23.811679Z", "completed_at": "2024-02-22T22:24:23.811696Z"}], "thread_id": "Thread-3", "execution_time": 0.04516196250915527, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__task_sla_task_sla_id__source_relation.e9939b7a70"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-22T22:24:23.792897Z", "completed_at": "2024-02-22T22:24:23.810880Z"}, {"name": "execute", "started_at": "2024-02-22T22:24:23.816158Z", "completed_at": "2024-02-22T22:24:23.816168Z"}], "thread_id": "Thread-4", "execution_time": 0.02709484100341797, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__sys_user_user_id__source_relation.2a8836be3c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-22T22:24:23.819241Z", "completed_at": "2024-02-22T22:24:23.826535Z"}, {"name": "execute", "started_at": "2024-02-22T22:24:23.827847Z", "completed_at": "2024-02-22T22:24:23.827858Z"}], "thread_id": "Thread-2", "execution_time": 0.013694047927856445, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.servicenow.not_null_stg_servicenow__sys_user_user_id.90a8733b9d"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-22T22:24:23.180433Z", "completed_at": "2024-02-22T22:24:24.032889Z"}, {"name": "execute", "started_at": "2024-02-22T22:24:24.034294Z", "completed_at": "2024-02-22T22:24:24.034308Z"}], "thread_id": "Thread-1", "execution_time": 0.862908124923706, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.servicenow.stg_servicenow__task"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-22T22:24:24.044392Z", "completed_at": "2024-02-22T22:24:24.072993Z"}, {"name": "execute", "started_at": "2024-02-22T22:24:24.076523Z", "completed_at": "2024-02-22T22:24:24.076537Z"}], "thread_id": "Thread-3", "execution_time": 0.04000711441040039, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.servicenow.servicenow__task_enhanced"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-22T22:24:24.058141Z", "completed_at": "2024-02-22T22:24:24.073832Z"}, {"name": "execute", "started_at": "2024-02-22T22:24:24.077898Z", "completed_at": "2024-02-22T22:24:24.077910Z"}], "thread_id": "Thread-4", "execution_time": 0.04096412658691406, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.servicenow.dbt_utils_unique_combination_of_columns_stg_servicenow__task_task_id__source_relation.4b5ec4b727"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-22T22:24:24.065533Z", "completed_at": "2024-02-22T22:24:24.075160Z"}, {"name": "execute", "started_at": "2024-02-22T22:24:24.080136Z", "completed_at": "2024-02-22T22:24:24.080148Z"}], "thread_id": "Thread-2", "execution_time": 0.0414888858795166, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.servicenow.not_null_stg_servicenow__task_task_id.7a50a91303"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-22T22:24:24.089762Z", "completed_at": "2024-02-22T22:24:24.111524Z"}, {"name": "execute", "started_at": "2024-02-22T22:24:24.113512Z", "completed_at": "2024-02-22T22:24:24.113527Z"}], "thread_id": "Thread-1", "execution_time": 0.030038833618164062, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.servicenow.servicenow__activity_summary"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-22T22:24:24.101828Z", "completed_at": "2024-02-22T22:24:24.112863Z"}, {"name": "execute", "started_at": "2024-02-22T22:24:24.117141Z", "completed_at": "2024-02-22T22:24:24.117151Z"}], "thread_id": "Thread-4", "execution_time": 0.03218793869018555, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.servicenow.unique_servicenow__task_enhanced_task_id.a974c4dbbc"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-22T22:24:24.094304Z", "completed_at": "2024-02-22T22:24:24.114240Z"}, {"name": "execute", "started_at": "2024-02-22T22:24:24.118026Z", "completed_at": "2024-02-22T22:24:24.118037Z"}], "thread_id": "Thread-3", "execution_time": 0.03406882286071777, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.servicenow.not_null_servicenow__task_enhanced_task_id.76cea62cda"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-22T22:24:24.123312Z", "completed_at": "2024-02-22T22:24:24.130621Z"}, {"name": "execute", "started_at": "2024-02-22T22:24:24.131807Z", "completed_at": "2024-02-22T22:24:24.131819Z"}], "thread_id": "Thread-2", "execution_time": 0.01130819320678711, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.servicenow.dbt_utils_unique_combination_of_columns_servicenow__activity_summary_task_updated_date__task_state__priority__impact__urgency__source_relation.8ca2665c4e"}], "elapsed_time": 4.386932134628296, "args": {"log_level": "info", "log_level_file": "debug", "indirect_selection": "eager", "static_parser": true, "printer_width": 80, "favor_state": false, "empty_catalog": false, "enable_legacy_logger": false, "profiles_dir": "/Users/renee.li/.dbt", "log_format_file": "debug", "strict_mode": false, "use_colors_file": true, "version_check": true, "introspect": true, "send_anonymous_usage_stats": true, "partial_parse": true, "project_dir": "/Users/renee.li/Documents/dbt/service_now/develop", "quiet": false, "log_format": "default", "compile": true, "vars": {}, "macro_debugging": false, "partial_parse_file_diff": true, "populate_cache": true, "use_colors": true, "exclude": [], "invocation_command": "dbt docs generate", "cache_selected_only": false, "select": [], "print": true, "defer": false, "warn_error_options": {"include": [], "exclude": []}, "log_file_max_bytes": 10485760, "which": "generate", "write_json": true, "log_path": "/Users/renee.li/Documents/dbt/service_now/develop/logs"}} \ No newline at end of file From a11ea20f6659b3465353372ecd62fac6d92c8dc1 Mon Sep 17 00:00:00 2001 From: fivetran-reneeli Date: Thu, 22 Feb 2024 17:30:31 -0500 Subject: [PATCH 4/9] new schema --- integration_tests/ci/sample.profiles.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/integration_tests/ci/sample.profiles.yml b/integration_tests/ci/sample.profiles.yml index 468304d..5e58a60 100644 --- a/integration_tests/ci/sample.profiles.yml +++ b/integration_tests/ci/sample.profiles.yml @@ -16,13 +16,13 @@ integration_tests: pass: "{{ env_var('CI_REDSHIFT_DBT_PASS') }}" dbname: "{{ env_var('CI_REDSHIFT_DBT_DBNAME') }}" port: 5439 - schema: servicenow_integration_tests_445 + schema: servicenow_integration_tests_5 threads: 8 bigquery: type: bigquery method: service-account-json project: 'dbt-package-testing' - schema: servicenow_integration_tests_445 + schema: servicenow_integration_tests_5 threads: 8 keyfile_json: "{{ env_var('GCLOUD_SERVICE_KEY') | as_native }}" snowflake: @@ -33,7 +33,7 @@ integration_tests: role: "{{ env_var('CI_SNOWFLAKE_DBT_ROLE') }}" database: "{{ env_var('CI_SNOWFLAKE_DBT_DATABASE') }}" warehouse: "{{ env_var('CI_SNOWFLAKE_DBT_WAREHOUSE') }}" - schema: servicenow_integration_tests_445 + schema: servicenow_integration_tests_5 threads: 8 postgres: type: postgres @@ -42,13 +42,13 @@ integration_tests: pass: "{{ env_var('CI_POSTGRES_DBT_PASS') }}" dbname: "{{ env_var('CI_POSTGRES_DBT_DBNAME') }}" port: 5432 - schema: servicenow_integration_tests_445 + schema: servicenow_integration_tests_5 threads: 8 databricks: catalog: "{{ env_var('CI_DATABRICKS_DBT_CATALOG') }}" host: "{{ env_var('CI_DATABRICKS_DBT_HOST') }}" http_path: "{{ env_var('CI_DATABRICKS_DBT_HTTP_PATH') }}" - schema: servicenow_integration_tests_445 + schema: servicenow_integration_tests_5 threads: 8 token: "{{ env_var('CI_DATABRICKS_DBT_TOKEN') }}" type: databricks \ No newline at end of file From cb8e2e304e89c120a87d68b1dbe763e63ea86c7e Mon Sep 17 00:00:00 2001 From: fivetran-reneeli Date: Fri, 23 Feb 2024 11:28:35 -0500 Subject: [PATCH 5/9] new schema didn't push --- integration_tests/dbt_project.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integration_tests/dbt_project.yml b/integration_tests/dbt_project.yml index 93f64da..d5017bd 100644 --- a/integration_tests/dbt_project.yml +++ b/integration_tests/dbt_project.yml @@ -10,7 +10,7 @@ dispatch: vars: servicenow: - servicenow_schema: servicenow_integration_tests_445 + servicenow_schema: servicenow_integration_tests_5 servicenow_task_identifier: "task_data" servicenow_task_sla_identifier: "task_sla_data" servicenow_sys_user_identifier: "sys_user_data" From 625c0c5d5439c9fc84a9e4e4359288a30f29d185 Mon Sep 17 00:00:00 2001 From: Renee Li <91097070+fivetran-reneeli@users.noreply.github.com> Date: Fri, 23 Feb 2024 20:01:40 +0000 Subject: [PATCH 6/9] Update CHANGELOG.md Co-authored-by: Joe Markiewicz <74217849+fivetran-joemarkiewicz@users.noreply.github.com> --- CHANGELOG.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e743259..5f4cbe6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # dbt_servicenow v0.1.1 -[PR #7](https://github.com/fivetran/dbt_servicenow/pull/7) documents the DECISIONLOG in the README and moves the DECISIONLOG out of the /models folder, so that customers will be able to easily find it as a resource. +[PR #7](https://github.com/fivetran/dbt_servicenow/pull/7) includes the following updates: + +## Documentation Updates +- Documents the DECISIONLOG in the README and moves the DECISIONLOG out of the `/models` folder, so that customers will be able to easily find it as a resource. # dbt_servicenow v0.1.0 This is the initial release of the ServiceNow dbt package! From 3f91e1d1e68a84485e755d7030deb5fce339b164 Mon Sep 17 00:00:00 2001 From: fivetran-reneeli Date: Fri, 23 Feb 2024 15:11:31 -0500 Subject: [PATCH 7/9] wording --- README.md | 2 +- models/servicenow__problem_enhanced.sql | 26 +++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 models/servicenow__problem_enhanced.sql diff --git a/README.md b/README.md index 1857598..dcb7322 100644 --- a/README.md +++ b/README.md @@ -153,7 +153,7 @@ We highly encourage and welcome contributions to this package. Check out [this d The ServiceNow Connector provides thousands of tables. We developed our data models based on the tables with highest usage across Fivetran customers. -For more information on table relationships and how they informed our model development, you may refer to the [DECISIONLOG](DECISIONLOG.md). +Servicenow tables can be complex, for example exhibiting many-to-many relationships. For more information on table relationships and how they informed our model development, you may refer to the [DECISIONLOG](DECISIONLOG.md). # 🏪 Are there any resources available? - If you have questions or want to reach out for help, please refer to the [GitHub Issue](https://github.com/fivetran/dbt_servicenow/issues/new/choose) section to find the right avenue of support for you. diff --git a/models/servicenow__problem_enhanced.sql b/models/servicenow__problem_enhanced.sql new file mode 100644 index 0000000..bb76256 --- /dev/null +++ b/models/servicenow__problem_enhanced.sql @@ -0,0 +1,26 @@ + +with problem as ( + + select * + from {{ ref('stg_servicenow__problem') }} +), + +problem_task as ( + + select * + from {{ ref('stg_servicenow__problem_task') }} +), + +problem_enhanced as ( + +select + + problem.problem_id, + + +from problem +left join +) + +select * +from problem_enhanced \ No newline at end of file From 718708c62e156c0db6393032b9a11ebd55271a49 Mon Sep 17 00:00:00 2001 From: fivetran-reneeli Date: Fri, 23 Feb 2024 15:13:34 -0500 Subject: [PATCH 8/9] belongs to other branch --- models/servicenow__problem_enhanced.sql | 26 ------------------------- 1 file changed, 26 deletions(-) delete mode 100644 models/servicenow__problem_enhanced.sql diff --git a/models/servicenow__problem_enhanced.sql b/models/servicenow__problem_enhanced.sql deleted file mode 100644 index bb76256..0000000 --- a/models/servicenow__problem_enhanced.sql +++ /dev/null @@ -1,26 +0,0 @@ - -with problem as ( - - select * - from {{ ref('stg_servicenow__problem') }} -), - -problem_task as ( - - select * - from {{ ref('stg_servicenow__problem_task') }} -), - -problem_enhanced as ( - -select - - problem.problem_id, - - -from problem -left join -) - -select * -from problem_enhanced \ No newline at end of file From 7cb4899923fd6e8649dad070b51a24f4c82d78b1 Mon Sep 17 00:00:00 2001 From: fivetran-reneeli Date: Mon, 26 Feb 2024 13:20:08 -0500 Subject: [PATCH 9/9] readme update --- README.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/README.md b/README.md index dcb7322..9a66914 100644 --- a/README.md +++ b/README.md @@ -151,8 +151,6 @@ We highly encourage and welcome contributions to this package. Check out [this d ## Opinionated Modelling Decisions -The ServiceNow Connector provides thousands of tables. We developed our data models based on the tables with highest usage across Fivetran customers. - Servicenow tables can be complex, for example exhibiting many-to-many relationships. For more information on table relationships and how they informed our model development, you may refer to the [DECISIONLOG](DECISIONLOG.md). # 🏪 Are there any resources available?