From e08585828b1524af525fd49f15dfcb303667e26c Mon Sep 17 00:00:00 2001 From: fivetran-joemarkiewicz Date: Tue, 6 Apr 2021 10:10:14 -0500 Subject: [PATCH 1/6] james feedback integration --- dbt_project.yml | 2 +- docs/catalog.json | 2 +- docs/manifest.json | 2 +- docs/run_results.json | 2 +- integration_tests/data/company_data.csv | 126 +++------------ integration_tests/data/contact_data.csv | 124 +++------------ integration_tests/data/deal_data.csv | 146 ++++++------------ integration_tests/data/ticket_data.csv | 35 +++-- integration_tests/dbt_project.yml | 2 +- macros/get_company_columns.sql | 12 +- macros/get_contact_columns.sql | 8 +- macros/get_deal_columns.sql | 7 +- macros/get_ticket_columns.sql | 12 +- models/src_hubspot.yml | 86 ++++++++++- models/stg_hubspot__company.sql | 12 +- models/stg_hubspot__company.yml | 30 ++++ models/stg_hubspot__contact.sql | 9 +- models/stg_hubspot__contact.yml | 22 ++- models/stg_hubspot__deal.sql | 7 +- models/stg_hubspot__deal.yml | 15 ++ models/stg_hubspot__ticket.sql | 12 +- models/stg_hubspot__ticket.yml | 32 ++-- models/stg_hubspot__ticket_pipeline.sql | 2 +- models/stg_hubspot__ticket_pipeline_stage.sql | 2 +- 24 files changed, 364 insertions(+), 345 deletions(-) diff --git a/dbt_project.yml b/dbt_project.yml index b3698c9..4abed44 100644 --- a/dbt_project.yml +++ b/dbt_project.yml @@ -1,5 +1,5 @@ name: 'hubspot_source' -version: '0.3.1' +version: '0.3.2' config-version: 2 require-dbt-version: [">=0.18.0", "<0.20.0"] diff --git a/docs/catalog.json b/docs/catalog.json index d117afe..c26253b 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": "0.19.0", "generated_at": "2021-04-01T21:53:31.069659Z", "invocation_id": "9195e932-840a-413e-924c-97cda8b5b067", "env": {}}, "nodes": {"model.hubspot_source.stg_hubspot__contact_property_history_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "stg_hubspot__contact_property_history_tmp", "comment": null, "owner": null}, "columns": {"contact_id": {"type": "INT64", "comment": null, "index": 1, "name": "contact_id"}, "timestamp": {"type": "STRING", "comment": null, "index": 2, "name": "timestamp"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 3, "name": "_fivetran_synced"}, "source": {"type": "STRING", "comment": null, "index": 4, "name": "source"}, "name": {"type": "STRING", "comment": null, "index": 5, "name": "name"}, "value": {"type": "STRING", "comment": null, "index": 6, "name": "value"}, "source_id": {"type": "STRING", "comment": null, "index": 7, "name": "source_id"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__contact_property_history_tmp"}, "model.hubspot_source.stg_hubspot__email_event_click": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "stg_hubspot__email_event_click", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "comment": null, "index": 1, "name": "_fivetran_synced"}, "browser": {"type": "STRING", "comment": null, "index": 2, "name": "browser"}, "event_id": {"type": "STRING", "comment": null, "index": 3, "name": "event_id"}, "ip_address": {"type": "INT64", "comment": null, "index": 4, "name": "ip_address"}, "geo_location": {"type": "STRING", "comment": null, "index": 5, "name": "geo_location"}, "referer_url": {"type": "INT64", "comment": null, "index": 6, "name": "referer_url"}, "click_url": {"type": "STRING", "comment": null, "index": 7, "name": "click_url"}, "user_agent": {"type": "STRING", "comment": null, "index": 8, "name": "user_agent"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 17100.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__email_event_click"}, "model.hubspot_source.stg_hubspot__engagement_call_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "stg_hubspot__engagement_call_tmp", "comment": null, "owner": null}, "columns": {"engagement_id": {"type": "INT64", "comment": null, "index": 1, "name": "engagement_id"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 2, "name": "_fivetran_synced"}, "callee_object_id": {"type": "INT64", "comment": null, "index": 3, "name": "callee_object_id"}, "callee_object_type": {"type": "INT64", "comment": null, "index": 4, "name": "callee_object_type"}, "disposition": {"type": "STRING", "comment": null, "index": 5, "name": "disposition"}, "duration_milliseconds": {"type": "INT64", "comment": null, "index": 6, "name": "duration_milliseconds"}, "external_account_id": {"type": "INT64", "comment": null, "index": 7, "name": "external_account_id"}, "external_id": {"type": "INT64", "comment": null, "index": 8, "name": "external_id"}, "from_number": {"type": "INT64", "comment": null, "index": 9, "name": "from_number"}, "recording_url": {"type": "INT64", "comment": null, "index": 10, "name": "recording_url"}, "status": {"type": "INT64", "comment": null, "index": 11, "name": "status"}, "to_number": {"type": "INT64", "comment": null, "index": 12, "name": "to_number"}, "transcription_id": {"type": "INT64", "comment": null, "index": 13, "name": "transcription_id"}, "unknown_visitor_conversation": {"type": "INT64", "comment": null, "index": 14, "name": "unknown_visitor_conversation"}, "body": {"type": "STRING", "comment": null, "index": 15, "name": "body"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__engagement_call_tmp"}, "seed.hubspot_source_integration_tests.ticket_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "ticket_data", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "property_closed_date": {"type": "STRING", "comment": null, "index": 2, "name": "property_closed_date"}, "property_createdate": {"type": "STRING", "comment": null, "index": 3, "name": "property_createdate"}, "property_hubspot_owner_id": {"type": "INT64", "comment": null, "index": 4, "name": "property_hubspot_owner_id"}, "property_hs_pipeline": {"type": "INT64", "comment": null, "index": 5, "name": "property_hs_pipeline"}, "property_hs_pipeline_stage": {"type": "INT64", "comment": null, "index": 6, "name": "property_hs_pipeline_stage"}, "is_deleted": {"type": "BOOL", "comment": null, "index": 7, "name": "is_deleted"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 9.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 747.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.hubspot_source_integration_tests.ticket_data"}, "model.hubspot_source.stg_hubspot__email_event_deferred": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "stg_hubspot__email_event_deferred", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "comment": null, "index": 1, "name": "_fivetran_synced"}, "attempt_number": {"type": "INT64", "comment": null, "index": 2, "name": "attempt_number"}, "event_id": {"type": "STRING", "comment": null, "index": 3, "name": "event_id"}, "returned_response": {"type": "INT64", "comment": null, "index": 4, "name": "returned_response"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 7500.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__email_event_deferred"}, "model.hubspot_source.stg_hubspot__ticket_pipeline": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "stg_hubspot__ticket_pipeline", "comment": null, "owner": null}, "columns": {"pipeline_id": {"type": "INT64", "comment": null, "index": 1, "name": "pipeline_id"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 2, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "is_active": {"type": "BOOL", "comment": null, "index": 4, "name": "is_active"}, "display_order": {"type": "INT64", "comment": null, "index": 5, "name": "display_order"}, "label": {"type": "STRING", "comment": null, "index": 6, "name": "label"}, "object_type_id": {"type": "STRING", "comment": null, "index": 7, "name": "object_type_id"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 8.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 520.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__ticket_pipeline"}, "seed.hubspot_source_integration_tests.company_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "company_data", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "is_deleted": {"type": "BOOL", "comment": null, "index": 2, "name": "is_deleted"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 900.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.hubspot_source_integration_tests.company_data"}, "seed.hubspot_source_integration_tests.contact_list_member_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "contact_list_member_data", "comment": null, "owner": null}, "columns": {"contact_id": {"type": "INT64", "comment": null, "index": 1, "name": "contact_id"}, "contact_list_id": {"type": "INT64", "comment": null, "index": 2, "name": "contact_list_id"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 3, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 4, "name": "_fivetran_synced"}, "added_at": {"type": "STRING", "comment": null, "index": 5, "name": "added_at"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 7500.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.hubspot_source_integration_tests.contact_list_member_data"}, "model.hubspot_source.stg_hubspot__email_event_forward_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "stg_hubspot__email_event_forward_tmp", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "comment": null, "index": 1, "name": "id"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 2, "name": "_fivetran_synced"}, "browser": {"type": "STRING", "comment": null, "index": 3, "name": "browser"}, "ip_address": {"type": "INT64", "comment": null, "index": 4, "name": "ip_address"}, "location": {"type": "STRING", "comment": null, "index": 5, "name": "location"}, "user_agent": {"type": "STRING", "comment": null, "index": 6, "name": "user_agent"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__email_event_forward_tmp"}, "seed.hubspot_source_integration_tests.engagement_call_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "engagement_call_data", "comment": null, "owner": null}, "columns": {"engagement_id": {"type": "INT64", "comment": null, "index": 1, "name": "engagement_id"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 2, "name": "_fivetran_synced"}, "callee_object_id": {"type": "INT64", "comment": null, "index": 3, "name": "callee_object_id"}, "callee_object_type": {"type": "INT64", "comment": null, "index": 4, "name": "callee_object_type"}, "disposition": {"type": "STRING", "comment": null, "index": 5, "name": "disposition"}, "duration_milliseconds": {"type": "INT64", "comment": null, "index": 6, "name": "duration_milliseconds"}, "external_account_id": {"type": "INT64", "comment": null, "index": 7, "name": "external_account_id"}, "external_id": {"type": "INT64", "comment": null, "index": 8, "name": "external_id"}, "from_number": {"type": "INT64", "comment": null, "index": 9, "name": "from_number"}, "recording_url": {"type": "INT64", "comment": null, "index": 10, "name": "recording_url"}, "status": {"type": "INT64", "comment": null, "index": 11, "name": "status"}, "to_number": {"type": "INT64", "comment": null, "index": 12, "name": "to_number"}, "transcription_id": {"type": "INT64", "comment": null, "index": 13, "name": "transcription_id"}, "unknown_visitor_conversation": {"type": "INT64", "comment": null, "index": 14, "name": "unknown_visitor_conversation"}, "body": {"type": "STRING", "comment": null, "index": 15, "name": "body"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 10706.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.hubspot_source_integration_tests.engagement_call_data"}, "model.hubspot_source.stg_hubspot__engagement_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "stg_hubspot__engagement_tmp", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 2, "name": "_fivetran_synced"}, "active": {"type": "BOOL", "comment": null, "index": 3, "name": "active"}, "activity_type": {"type": "INT64", "comment": null, "index": 4, "name": "activity_type"}, "created_at": {"type": "STRING", "comment": null, "index": 5, "name": "created_at"}, "last_updated": {"type": "STRING", "comment": null, "index": 6, "name": "last_updated"}, "owner_id": {"type": "INT64", "comment": null, "index": 7, "name": "owner_id"}, "portal_id": {"type": "INT64", "comment": null, "index": 8, "name": "portal_id"}, "timestamp": {"type": "STRING", "comment": null, "index": 9, "name": "timestamp"}, "type": {"type": "STRING", "comment": null, "index": 10, "name": "type"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__engagement_tmp"}, "model.hubspot_source.stg_hubspot__owner_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "stg_hubspot__owner_tmp", "comment": null, "owner": null}, "columns": {"owner_id": {"type": "INT64", "comment": null, "index": 1, "name": "owner_id"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 2, "name": "_fivetran_synced"}, "created_at": {"type": "STRING", "comment": null, "index": 3, "name": "created_at"}, "portal_id": {"type": "INT64", "comment": null, "index": 4, "name": "portal_id"}, "type": {"type": "STRING", "comment": null, "index": 5, "name": "type"}, "updated_at": {"type": "STRING", "comment": null, "index": 6, "name": "updated_at"}, "email": {"type": "STRING", "comment": null, "index": 7, "name": "email"}, "first_name": {"type": "STRING", "comment": null, "index": 8, "name": "first_name"}, "last_name": {"type": "STRING", "comment": null, "index": 9, "name": "last_name"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__owner_tmp"}, "model.hubspot_source.stg_hubspot__email_event_bounce": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "stg_hubspot__email_event_bounce", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "comment": null, "index": 1, "name": "_fivetran_synced"}, "bounce_category": {"type": "STRING", "comment": null, "index": 2, "name": "bounce_category"}, "event_id": {"type": "STRING", "comment": null, "index": 3, "name": "event_id"}, "returned_response": {"type": "STRING", "comment": null, "index": 4, "name": "returned_response"}, "returned_status": {"type": "INT64", "comment": null, "index": 5, "name": "returned_status"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 11265.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__email_event_bounce"}, "seed.hubspot_source_integration_tests.ticket_pipeline_stage_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "ticket_pipeline_stage_data", "comment": null, "owner": null}, "columns": {"stage_id": {"type": "INT64", "comment": null, "index": 1, "name": "stage_id"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 2, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "active": {"type": "BOOL", "comment": null, "index": 4, "name": "active"}, "display_order": {"type": "INT64", "comment": null, "index": 5, "name": "display_order"}, "is_closed": {"type": "BOOL", "comment": null, "index": 6, "name": "is_closed"}, "label": {"type": "STRING", "comment": null, "index": 7, "name": "label"}, "pipeline_id": {"type": "INT64", "comment": null, "index": 8, "name": "pipeline_id"}, "ticket_state": {"type": "STRING", "comment": null, "index": 9, "name": "ticket_state"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 11.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 825.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.hubspot_source_integration_tests.ticket_pipeline_stage_data"}, "seed.hubspot_source_integration_tests.engagement_task_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "engagement_task_data", "comment": null, "owner": null}, "columns": {"engagement_id": {"type": "INT64", "comment": null, "index": 1, "name": "engagement_id"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 2, "name": "_fivetran_synced"}, "completion_date": {"type": "INT64", "comment": null, "index": 3, "name": "completion_date"}, "for_object_type": {"type": "STRING", "comment": null, "index": 4, "name": "for_object_type"}, "is_all_day": {"type": "INT64", "comment": null, "index": 5, "name": "is_all_day"}, "priority": {"type": "STRING", "comment": null, "index": 6, "name": "priority"}, "probability_to_complete": {"type": "INT64", "comment": null, "index": 7, "name": "probability_to_complete"}, "status": {"type": "STRING", "comment": null, "index": 8, "name": "status"}, "subject": {"type": "STRING", "comment": null, "index": 9, "name": "subject"}, "task_type": {"type": "STRING", "comment": null, "index": 10, "name": "task_type"}, "body": {"type": "STRING", "comment": null, "index": 11, "name": "body"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 9092.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.hubspot_source_integration_tests.engagement_task_data"}, "seed.hubspot_source_integration_tests.ticket_engagement_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "ticket_engagement_data", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "comment": null, "index": 1, "name": "_fivetran_synced"}, "ticket_id": {"type": "INT64", "comment": null, "index": 2, "name": "ticket_id"}, "engagement_id": {"type": "INT64", "comment": null, "index": 3, "name": "engagement_id"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 9.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 369.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.hubspot_source_integration_tests.ticket_engagement_data"}, "model.hubspot_source.stg_hubspot__ticket_property_history": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "stg_hubspot__ticket_property_history", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "comment": null, "index": 1, "name": "_fivetran_synced"}, "ticket_id": {"type": "INT64", "comment": null, "index": 2, "name": "ticket_id"}, "field_name": {"type": "STRING", "comment": null, "index": 3, "name": "field_name"}, "change_source": {"type": "STRING", "comment": null, "index": 4, "name": "change_source"}, "change_source_id": {"type": "STRING", "comment": null, "index": 5, "name": "change_source_id"}, "change_timestamp": {"type": "STRING", "comment": null, "index": 6, "name": "change_timestamp"}, "new_value": {"type": "STRING", "comment": null, "index": 7, "name": "new_value"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 11.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1185.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__ticket_property_history"}, "model.hubspot_source.stg_hubspot__email_event_delivered": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "stg_hubspot__email_event_delivered", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "comment": null, "index": 1, "name": "_fivetran_synced"}, "event_id": {"type": "STRING", "comment": null, "index": 2, "name": "event_id"}, "returned_response": {"type": "STRING", "comment": null, "index": 3, "name": "returned_response"}, "smtp_id": {"type": "STRING", "comment": null, "index": 4, "name": "smtp_id"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 12214.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__email_event_delivered"}, "model.hubspot_source.stg_hubspot__engagement": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "stg_hubspot__engagement", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "comment": null, "index": 1, "name": "_fivetran_synced"}, "is_active": {"type": "BOOL", "comment": null, "index": 2, "name": "is_active"}, "activity_type": {"type": "INT64", "comment": null, "index": 3, "name": "activity_type"}, "created_timestamp": {"type": "STRING", "comment": null, "index": 4, "name": "created_timestamp"}, "engagement_id": {"type": "INT64", "comment": null, "index": 5, "name": "engagement_id"}, "last_updated_timestamp": {"type": "STRING", "comment": null, "index": 6, "name": "last_updated_timestamp"}, "owner_id": {"type": "INT64", "comment": null, "index": 7, "name": "owner_id"}, "portal_id": {"type": "INT64", "comment": null, "index": 8, "name": "portal_id"}, "occurred_timestamp": {"type": "STRING", "comment": null, "index": 9, "name": "occurred_timestamp"}, "engagement_type": {"type": "STRING", "comment": null, "index": 10, "name": "engagement_type"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 14300.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__engagement"}, "model.hubspot_source.stg_hubspot__ticket_engagement_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "stg_hubspot__ticket_engagement_tmp", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "comment": null, "index": 1, "name": "_fivetran_synced"}, "ticket_id": {"type": "INT64", "comment": null, "index": 2, "name": "ticket_id"}, "engagement_id": {"type": "INT64", "comment": null, "index": 3, "name": "engagement_id"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__ticket_engagement_tmp"}, "seed.hubspot_source_integration_tests.email_event_print_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "email_event_print_data", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "comment": null, "index": 1, "name": "id"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 2, "name": "_fivetran_synced"}, "browser": {"type": "STRING", "comment": null, "index": 3, "name": "browser"}, "ip_address": {"type": "INT64", "comment": null, "index": 4, "name": "ip_address"}, "location": {"type": "STRING", "comment": null, "index": 5, "name": "location"}, "user_agent": {"type": "STRING", "comment": null, "index": 6, "name": "user_agent"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 5.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 725.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.hubspot_source_integration_tests.email_event_print_data"}, "seed.hubspot_source_integration_tests.email_event_spam_report_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "email_event_spam_report_data", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "comment": null, "index": 1, "name": "id"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 2, "name": "_fivetran_synced"}, "ip_address": {"type": "INT64", "comment": null, "index": 3, "name": "ip_address"}, "user_agent": {"type": "INT64", "comment": null, "index": 4, "name": "user_agent"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 32.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 2144.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.hubspot_source_integration_tests.email_event_spam_report_data"}, "model.hubspot_source.stg_hubspot__engagement_deal_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "stg_hubspot__engagement_deal_tmp", "comment": null, "owner": null}, "columns": {"deal_id": {"type": "INT64", "comment": null, "index": 1, "name": "deal_id"}, "engagement_id": {"type": "INT64", "comment": null, "index": 2, "name": "engagement_id"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 3, "name": "_fivetran_synced"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__engagement_deal_tmp"}, "model.hubspot_source.stg_hubspot__ticket_contact": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "stg_hubspot__ticket_contact", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "comment": null, "index": 1, "name": "_fivetran_synced"}, "ticket_id": {"type": "INT64", "comment": null, "index": 2, "name": "ticket_id"}, "contact_id": {"type": "INT64", "comment": null, "index": 3, "name": "contact_id"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 9.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 369.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__ticket_contact"}, "seed.hubspot_source_integration_tests.ticket_property_history_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "ticket_property_history_data", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "comment": null, "index": 1, "name": "_fivetran_synced"}, "ticket_id": {"type": "INT64", "comment": null, "index": 2, "name": "ticket_id"}, "name": {"type": "STRING", "comment": null, "index": 3, "name": "name"}, "source": {"type": "STRING", "comment": null, "index": 4, "name": "source"}, "source_id": {"type": "STRING", "comment": null, "index": 5, "name": "source_id"}, "timestamp_instant": {"type": "STRING", "comment": null, "index": 6, "name": "timestamp_instant"}, "value": {"type": "STRING", "comment": null, "index": 7, "name": "value"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 11.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1185.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.hubspot_source_integration_tests.ticket_property_history_data"}, "model.hubspot_source.stg_hubspot__email_event_open_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "stg_hubspot__email_event_open_tmp", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "comment": null, "index": 1, "name": "id"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 2, "name": "_fivetran_synced"}, "duration": {"type": "INT64", "comment": null, "index": 3, "name": "duration"}, "browser": {"type": "STRING", "comment": null, "index": 4, "name": "browser"}, "ip_address": {"type": "INT64", "comment": null, "index": 5, "name": "ip_address"}, "location": {"type": "STRING", "comment": null, "index": 6, "name": "location"}, "user_agent": {"type": "STRING", "comment": null, "index": 7, "name": "user_agent"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__email_event_open_tmp"}, "model.hubspot_source.stg_hubspot__engagement_company_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "stg_hubspot__engagement_company_tmp", "comment": null, "owner": null}, "columns": {"company_id": {"type": "INT64", "comment": null, "index": 1, "name": "company_id"}, "engagement_id": {"type": "INT64", "comment": null, "index": 2, "name": "engagement_id"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 3, "name": "_fivetran_synced"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__engagement_company_tmp"}, "seed.hubspot_source_integration_tests.deal_pipeline_stage_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "deal_pipeline_stage_data", "comment": null, "owner": null}, "columns": {"_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 1, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 2, "name": "_fivetran_synced"}, "active": {"type": "BOOL", "comment": null, "index": 3, "name": "active"}, "closed_won": {"type": "BOOL", "comment": null, "index": 4, "name": "closed_won"}, "display_order": {"type": "INT64", "comment": null, "index": 5, "name": "display_order"}, "probability": {"type": "FLOAT64", "comment": null, "index": 6, "name": "probability"}, "stage_id": {"type": "STRING", "comment": null, "index": 7, "name": "stage_id"}, "label": {"type": "STRING", "comment": null, "index": 8, "name": "label"}, "pipeline_id": {"type": "STRING", "comment": null, "index": 9, "name": "pipeline_id"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 71.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 8946.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.hubspot_source_integration_tests.deal_pipeline_stage_data"}, "seed.hubspot_source_integration_tests.ticket_deal_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "ticket_deal_data", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "comment": null, "index": 1, "name": "_fivetran_synced"}, "ticket_id": {"type": "INT64", "comment": null, "index": 2, "name": "ticket_id"}, "deal_id": {"type": "INT64", "comment": null, "index": 3, "name": "deal_id"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 9.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 369.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.hubspot_source_integration_tests.ticket_deal_data"}, "seed.hubspot_source_integration_tests.deal_stage_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "deal_stage_data", "comment": null, "owner": null}, "columns": {"_fivetran_start": {"type": "DATETIME", "comment": null, "index": 1, "name": "_fivetran_start"}, "deal_id": {"type": "INT64", "comment": null, "index": 2, "name": "deal_id"}, "_fivetran_active": {"type": "BOOL", "comment": null, "index": 3, "name": "_fivetran_active"}, "_fivetran_end": {"type": "STRING", "comment": null, "index": 4, "name": "_fivetran_end"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 5, "name": "_fivetran_synced"}, "date_entered": {"type": "DATETIME", "comment": null, "index": 6, "name": "date_entered"}, "source": {"type": "STRING", "comment": null, "index": 7, "name": "source"}, "source_id": {"type": "STRING", "comment": null, "index": 8, "name": "source_id"}, "value": {"type": "STRING", "comment": null, "index": 9, "name": "value"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 14.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 2184.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.hubspot_source_integration_tests.deal_stage_data"}, "model.hubspot_source.stg_hubspot__contact_list_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "stg_hubspot__contact_list_tmp", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 2, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 3, "name": "_fivetran_synced"}, "created_at": {"type": "STRING", "comment": null, "index": 4, "name": "created_at"}, "deleteable": {"type": "BOOL", "comment": null, "index": 5, "name": "deleteable"}, "dynamic": {"type": "BOOL", "comment": null, "index": 6, "name": "dynamic"}, "metadata_error": {"type": "INT64", "comment": null, "index": 7, "name": "metadata_error"}, "metadata_last_processing_state_change_at": {"type": "STRING", "comment": null, "index": 8, "name": "metadata_last_processing_state_change_at"}, "metadata_last_size_change_at": {"type": "STRING", "comment": null, "index": 9, "name": "metadata_last_size_change_at"}, "metadata_processing": {"type": "STRING", "comment": null, "index": 10, "name": "metadata_processing"}, "metadata_size": {"type": "INT64", "comment": null, "index": 11, "name": "metadata_size"}, "offset": {"type": "INT64", "comment": null, "index": 12, "name": "offset"}, "portal_id": {"type": "INT64", "comment": null, "index": 13, "name": "portal_id"}, "updated_at": {"type": "STRING", "comment": null, "index": 14, "name": "updated_at"}, "name": {"type": "STRING", "comment": null, "index": 15, "name": "name"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__contact_list_tmp"}, "model.hubspot_source.stg_hubspot__company": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "stg_hubspot__company", "comment": null, "owner": null}, "columns": {"company_id": {"type": "INT64", "comment": null, "index": 1, "name": "company_id"}, "_fivetran_synced": {"type": "TIMESTAMP", "comment": null, "index": 2, "name": "_fivetran_synced"}, "is_deleted": {"type": "BOOL", "comment": null, "index": 3, "name": "is_deleted"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 900.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__company"}, "model.hubspot_source.stg_hubspot__contact_property_history": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "stg_hubspot__contact_property_history", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "comment": null, "index": 1, "name": "_fivetran_synced"}, "contact_id": {"type": "INT64", "comment": null, "index": 2, "name": "contact_id"}, "field_name": {"type": "STRING", "comment": null, "index": 3, "name": "field_name"}, "change_source": {"type": "STRING", "comment": null, "index": 4, "name": "change_source"}, "change_source_id": {"type": "STRING", "comment": null, "index": 5, "name": "change_source_id"}, "change_timestamp": {"type": "STRING", "comment": null, "index": 6, "name": "change_timestamp"}, "new_value": {"type": "STRING", "comment": null, "index": 7, "name": "new_value"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 14773.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__contact_property_history"}, "model.hubspot_source.stg_hubspot__email_event_spam_report": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "stg_hubspot__email_event_spam_report", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "comment": null, "index": 1, "name": "_fivetran_synced"}, "event_id": {"type": "STRING", "comment": null, "index": 2, "name": "event_id"}, "ip_address": {"type": "INT64", "comment": null, "index": 3, "name": "ip_address"}, "user_agent": {"type": "INT64", "comment": null, "index": 4, "name": "user_agent"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 32.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 2144.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__email_event_spam_report"}, "model.hubspot_source.stg_hubspot__contact_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "stg_hubspot__contact_tmp", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "property_email": {"type": "STRING", "comment": null, "index": 2, "name": "property_email"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 3, "name": "_fivetran_deleted"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__contact_tmp"}, "model.hubspot_source.stg_hubspot__email_event_print_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "stg_hubspot__email_event_print_tmp", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "comment": null, "index": 1, "name": "id"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 2, "name": "_fivetran_synced"}, "browser": {"type": "STRING", "comment": null, "index": 3, "name": "browser"}, "ip_address": {"type": "INT64", "comment": null, "index": 4, "name": "ip_address"}, "location": {"type": "STRING", "comment": null, "index": 5, "name": "location"}, "user_agent": {"type": "STRING", "comment": null, "index": 6, "name": "user_agent"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__email_event_print_tmp"}, "model.hubspot_source.stg_hubspot__engagement_contact": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "stg_hubspot__engagement_contact", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "comment": null, "index": 1, "name": "_fivetran_synced"}, "contact_id": {"type": "INT64", "comment": null, "index": 2, "name": "contact_id"}, "engagement_id": {"type": "INT64", "comment": null, "index": 3, "name": "engagement_id"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 4472.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__engagement_contact"}, "model.hubspot_source.stg_hubspot__contact": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "stg_hubspot__contact", "comment": null, "owner": null}, "columns": {"_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 1, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "TIMESTAMP", "comment": null, "index": 2, "name": "_fivetran_synced"}, "contact_id": {"type": "INT64", "comment": null, "index": 3, "name": "contact_id"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 900.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__contact"}, "model.hubspot_source.stg_hubspot__owner": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "stg_hubspot__owner", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "comment": null, "index": 1, "name": "_fivetran_synced"}, "created_timestamp": {"type": "STRING", "comment": null, "index": 2, "name": "created_timestamp"}, "email_address": {"type": "STRING", "comment": null, "index": 3, "name": "email_address"}, "first_name": {"type": "STRING", "comment": null, "index": 4, "name": "first_name"}, "last_name": {"type": "STRING", "comment": null, "index": 5, "name": "last_name"}, "owner_id": {"type": "INT64", "comment": null, "index": 6, "name": "owner_id"}, "portal_id": {"type": "INT64", "comment": null, "index": 7, "name": "portal_id"}, "owner_type": {"type": "STRING", "comment": null, "index": 8, "name": "owner_type"}, "updated_timestamp": {"type": "STRING", "comment": null, "index": 9, "name": "updated_timestamp"}, "full_name": {"type": "STRING", "comment": null, "index": 10, "name": "full_name"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 24000.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__owner"}, "seed.hubspot_source_integration_tests.engagement_email_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "engagement_email_data", "comment": null, "owner": null}, "columns": {"engagement_id": {"type": "INT64", "comment": null, "index": 1, "name": "engagement_id"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 2, "name": "_fivetran_synced"}, "attached_video_id": {"type": "INT64", "comment": null, "index": 3, "name": "attached_video_id"}, "attached_video_opened": {"type": "BOOL", "comment": null, "index": 4, "name": "attached_video_opened"}, "attached_video_watched": {"type": "BOOL", "comment": null, "index": 5, "name": "attached_video_watched"}, "email_send_event_id_created": {"type": "INT64", "comment": null, "index": 6, "name": "email_send_event_id_created"}, "email_send_event_id_id": {"type": "INT64", "comment": null, "index": 7, "name": "email_send_event_id_id"}, "error_message": {"type": "INT64", "comment": null, "index": 8, "name": "error_message"}, "facsimile_send_id": {"type": "STRING", "comment": null, "index": 9, "name": "facsimile_send_id"}, "logged_from": {"type": "STRING", "comment": null, "index": 10, "name": "logged_from"}, "media_processing_status": {"type": "STRING", "comment": null, "index": 11, "name": "media_processing_status"}, "message_id": {"type": "STRING", "comment": null, "index": 12, "name": "message_id"}, "post_send_status": {"type": "STRING", "comment": null, "index": 13, "name": "post_send_status"}, "recipient_drop_reasons": {"type": "INT64", "comment": null, "index": 14, "name": "recipient_drop_reasons"}, "sent_via": {"type": "STRING", "comment": null, "index": 15, "name": "sent_via"}, "status": {"type": "STRING", "comment": null, "index": 16, "name": "status"}, "thread_id": {"type": "STRING", "comment": null, "index": 17, "name": "thread_id"}, "tracker_key": {"type": "STRING", "comment": null, "index": 18, "name": "tracker_key"}, "validation_skipped": {"type": "STRING", "comment": null, "index": 19, "name": "validation_skipped"}, "from_email": {"type": "STRING", "comment": null, "index": 20, "name": "from_email"}, "from_first_name": {"type": "STRING", "comment": null, "index": 21, "name": "from_first_name"}, "from_last_name": {"type": "STRING", "comment": null, "index": 22, "name": "from_last_name"}, "html": {"type": "STRING", "comment": null, "index": 23, "name": "html"}, "subject": {"type": "STRING", "comment": null, "index": 24, "name": "subject"}, "text": {"type": "STRING", "comment": null, "index": 25, "name": "text"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 36203.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.hubspot_source_integration_tests.engagement_email_data"}, "model.hubspot_source.stg_hubspot__company_property_history": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "stg_hubspot__company_property_history", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "comment": null, "index": 1, "name": "_fivetran_synced"}, "company_id": {"type": "INT64", "comment": null, "index": 2, "name": "company_id"}, "field_name": {"type": "STRING", "comment": null, "index": 3, "name": "field_name"}, "change_source": {"type": "STRING", "comment": null, "index": 4, "name": "change_source"}, "change_source_id": {"type": "INT64", "comment": null, "index": 5, "name": "change_source_id"}, "change_timestamp": {"type": "STRING", "comment": null, "index": 6, "name": "change_timestamp"}, "new_value": {"type": "STRING", "comment": null, "index": 7, "name": "new_value"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 13000.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__company_property_history"}, "model.hubspot_source.stg_hubspot__email_event_status_change_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "stg_hubspot__email_event_status_change_tmp", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "comment": null, "index": 1, "name": "id"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 2, "name": "_fivetran_synced"}, "bounced": {"type": "INT64", "comment": null, "index": 3, "name": "bounced"}, "portal_subscription_status": {"type": "STRING", "comment": null, "index": 4, "name": "portal_subscription_status"}, "requested_by": {"type": "INT64", "comment": null, "index": 5, "name": "requested_by"}, "source": {"type": "STRING", "comment": null, "index": 6, "name": "source"}, "subscriptions": {"type": "STRING", "comment": null, "index": 7, "name": "subscriptions"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__email_event_status_change_tmp"}, "seed.hubspot_source_integration_tests.deal_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "deal_data", "comment": null, "owner": null}, "columns": {"deal_id": {"type": "INT64", "comment": null, "index": 1, "name": "deal_id"}, "owner_id": {"type": "INT64", "comment": null, "index": 2, "name": "owner_id"}, "deal_pipeline_id": {"type": "STRING", "comment": null, "index": 3, "name": "deal_pipeline_id"}, "deal_pipeline_stage_id": {"type": "STRING", "comment": null, "index": 4, "name": "deal_pipeline_stage_id"}, "is_deleted": {"type": "BOOL", "comment": null, "index": 5, "name": "is_deleted"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1948.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.hubspot_source_integration_tests.deal_data"}, "model.hubspot_source.stg_hubspot__email_event_print": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "stg_hubspot__email_event_print", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "comment": null, "index": 1, "name": "_fivetran_synced"}, "browser": {"type": "STRING", "comment": null, "index": 2, "name": "browser"}, "event_id": {"type": "STRING", "comment": null, "index": 3, "name": "event_id"}, "ip_address": {"type": "INT64", "comment": null, "index": 4, "name": "ip_address"}, "geo_location": {"type": "STRING", "comment": null, "index": 5, "name": "geo_location"}, "user_agent": {"type": "STRING", "comment": null, "index": 6, "name": "user_agent"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 5.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 725.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__email_event_print"}, "model.hubspot_source.stg_hubspot__deal_pipeline_stage": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "stg_hubspot__deal_pipeline_stage", "comment": null, "owner": null}, "columns": {"_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 1, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 2, "name": "_fivetran_synced"}, "is_active": {"type": "BOOL", "comment": null, "index": 3, "name": "is_active"}, "is_closed_won": {"type": "BOOL", "comment": null, "index": 4, "name": "is_closed_won"}, "display_order": {"type": "INT64", "comment": null, "index": 5, "name": "display_order"}, "pipeline_stage_label": {"type": "STRING", "comment": null, "index": 6, "name": "pipeline_stage_label"}, "deal_pipeline_id": {"type": "STRING", "comment": null, "index": 7, "name": "deal_pipeline_id"}, "probability": {"type": "FLOAT64", "comment": null, "index": 8, "name": "probability"}, "deal_pipeline_stage_id": {"type": "STRING", "comment": null, "index": 9, "name": "deal_pipeline_stage_id"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 69.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 8694.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__deal_pipeline_stage"}, "model.hubspot_source.stg_hubspot__email_event_delivered_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "stg_hubspot__email_event_delivered_tmp", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "comment": null, "index": 1, "name": "id"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 2, "name": "_fivetran_synced"}, "response": {"type": "STRING", "comment": null, "index": 3, "name": "response"}, "smtp_id": {"type": "STRING", "comment": null, "index": 4, "name": "smtp_id"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__email_event_delivered_tmp"}, "model.hubspot_source.stg_hubspot__engagement_note": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "stg_hubspot__engagement_note", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "comment": null, "index": 1, "name": "_fivetran_synced"}, "note": {"type": "STRING", "comment": null, "index": 2, "name": "note"}, "engagement_id": {"type": "INT64", "comment": null, "index": 3, "name": "engagement_id"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 6300.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__engagement_note"}, "model.hubspot_source.stg_hubspot__contact_list": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "stg_hubspot__contact_list", "comment": null, "owner": null}, "columns": {"_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 1, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 2, "name": "_fivetran_synced"}, "created_timestamp": {"type": "STRING", "comment": null, "index": 3, "name": "created_timestamp"}, "is_deletable": {"type": "BOOL", "comment": null, "index": 4, "name": "is_deletable"}, "is_dynamic": {"type": "BOOL", "comment": null, "index": 5, "name": "is_dynamic"}, "contact_list_id": {"type": "INT64", "comment": null, "index": 6, "name": "contact_list_id"}, "metadata_error": {"type": "INT64", "comment": null, "index": 7, "name": "metadata_error"}, "metadata_last_processing_state_change_at": {"type": "STRING", "comment": null, "index": 8, "name": "metadata_last_processing_state_change_at"}, "metadata_last_size_change_at": {"type": "STRING", "comment": null, "index": 9, "name": "metadata_last_size_change_at"}, "metadata_processing": {"type": "STRING", "comment": null, "index": 10, "name": "metadata_processing"}, "metadata_size": {"type": "INT64", "comment": null, "index": 11, "name": "metadata_size"}, "contact_list_name": {"type": "STRING", "comment": null, "index": 12, "name": "contact_list_name"}, "portal_id": {"type": "INT64", "comment": null, "index": 13, "name": "portal_id"}, "updated_timestamp": {"type": "STRING", "comment": null, "index": 14, "name": "updated_timestamp"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 60.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 12196.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__contact_list"}, "model.hubspot_source.stg_hubspot__email_campaign": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "stg_hubspot__email_campaign", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "comment": null, "index": 1, "name": "_fivetran_synced"}, "app_id": {"type": "INT64", "comment": null, "index": 2, "name": "app_id"}, "app_name": {"type": "STRING", "comment": null, "index": 3, "name": "app_name"}, "content_id": {"type": "INT64", "comment": null, "index": 4, "name": "content_id"}, "email_campaign_id": {"type": "INT64", "comment": null, "index": 5, "name": "email_campaign_id"}, "email_campaign_name": {"type": "STRING", "comment": null, "index": 6, "name": "email_campaign_name"}, "num_included": {"type": "INT64", "comment": null, "index": 7, "name": "num_included"}, "num_queued": {"type": "INT64", "comment": null, "index": 8, "name": "num_queued"}, "email_campaign_sub_type": {"type": "INT64", "comment": null, "index": 9, "name": "email_campaign_sub_type"}, "email_campaign_subject": {"type": "STRING", "comment": null, "index": 10, "name": "email_campaign_subject"}, "email_campaign_type": {"type": "STRING", "comment": null, "index": 11, "name": "email_campaign_type"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 14726.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__email_campaign"}, "model.hubspot_source.stg_hubspot__email_event_deferred_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "stg_hubspot__email_event_deferred_tmp", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "comment": null, "index": 1, "name": "id"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 2, "name": "_fivetran_synced"}, "attempt": {"type": "INT64", "comment": null, "index": 3, "name": "attempt"}, "response": {"type": "INT64", "comment": null, "index": 4, "name": "response"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__email_event_deferred_tmp"}, "model.hubspot_source.stg_hubspot__deal_pipeline": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "stg_hubspot__deal_pipeline", "comment": null, "owner": null}, "columns": {"_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 1, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 2, "name": "_fivetran_synced"}, "is_active": {"type": "BOOL", "comment": null, "index": 3, "name": "is_active"}, "display_order": {"type": "INT64", "comment": null, "index": 4, "name": "display_order"}, "pipeline_label": {"type": "STRING", "comment": null, "index": 5, "name": "pipeline_label"}, "deal_pipeline_id": {"type": "STRING", "comment": null, "index": 6, "name": "deal_pipeline_id"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 6.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 509.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__deal_pipeline"}, "model.hubspot_source.stg_hubspot__engagement_meeting": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "stg_hubspot__engagement_meeting", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "comment": null, "index": 1, "name": "_fivetran_synced"}, "meeting_notes": {"type": "STRING", "comment": null, "index": 2, "name": "meeting_notes"}, "created_from_link_id": {"type": "INT64", "comment": null, "index": 3, "name": "created_from_link_id"}, "end_timestamp": {"type": "STRING", "comment": null, "index": 4, "name": "end_timestamp"}, "engagement_id": {"type": "INT64", "comment": null, "index": 5, "name": "engagement_id"}, "external_url": {"type": "STRING", "comment": null, "index": 6, "name": "external_url"}, "meeting_outcome": {"type": "INT64", "comment": null, "index": 7, "name": "meeting_outcome"}, "pre_meeting_prospect_reminders": {"type": "STRING", "comment": null, "index": 8, "name": "pre_meeting_prospect_reminders"}, "source": {"type": "STRING", "comment": null, "index": 9, "name": "source"}, "source_id": {"type": "STRING", "comment": null, "index": 10, "name": "source_id"}, "start_timestamp": {"type": "STRING", "comment": null, "index": 11, "name": "start_timestamp"}, "meeting_title": {"type": "STRING", "comment": null, "index": 12, "name": "meeting_title"}, "web_conference_meeting_id": {"type": "INT64", "comment": null, "index": 13, "name": "web_conference_meeting_id"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 22845.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__engagement_meeting"}, "model.hubspot_source.stg_hubspot__engagement_email_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "stg_hubspot__engagement_email_tmp", "comment": null, "owner": null}, "columns": {"engagement_id": {"type": "INT64", "comment": null, "index": 1, "name": "engagement_id"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 2, "name": "_fivetran_synced"}, "attached_video_id": {"type": "INT64", "comment": null, "index": 3, "name": "attached_video_id"}, "attached_video_opened": {"type": "BOOL", "comment": null, "index": 4, "name": "attached_video_opened"}, "attached_video_watched": {"type": "BOOL", "comment": null, "index": 5, "name": "attached_video_watched"}, "email_send_event_id_created": {"type": "INT64", "comment": null, "index": 6, "name": "email_send_event_id_created"}, "email_send_event_id_id": {"type": "INT64", "comment": null, "index": 7, "name": "email_send_event_id_id"}, "error_message": {"type": "INT64", "comment": null, "index": 8, "name": "error_message"}, "facsimile_send_id": {"type": "STRING", "comment": null, "index": 9, "name": "facsimile_send_id"}, "logged_from": {"type": "STRING", "comment": null, "index": 10, "name": "logged_from"}, "media_processing_status": {"type": "STRING", "comment": null, "index": 11, "name": "media_processing_status"}, "message_id": {"type": "STRING", "comment": null, "index": 12, "name": "message_id"}, "post_send_status": {"type": "STRING", "comment": null, "index": 13, "name": "post_send_status"}, "recipient_drop_reasons": {"type": "INT64", "comment": null, "index": 14, "name": "recipient_drop_reasons"}, "sent_via": {"type": "STRING", "comment": null, "index": 15, "name": "sent_via"}, "status": {"type": "STRING", "comment": null, "index": 16, "name": "status"}, "thread_id": {"type": "STRING", "comment": null, "index": 17, "name": "thread_id"}, "tracker_key": {"type": "STRING", "comment": null, "index": 18, "name": "tracker_key"}, "validation_skipped": {"type": "STRING", "comment": null, "index": 19, "name": "validation_skipped"}, "from_email": {"type": "STRING", "comment": null, "index": 20, "name": "from_email"}, "from_first_name": {"type": "STRING", "comment": null, "index": 21, "name": "from_first_name"}, "from_last_name": {"type": "STRING", "comment": null, "index": 22, "name": "from_last_name"}, "html": {"type": "STRING", "comment": null, "index": 23, "name": "html"}, "subject": {"type": "STRING", "comment": null, "index": 24, "name": "subject"}, "text": {"type": "STRING", "comment": null, "index": 25, "name": "text"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__engagement_email_tmp"}, "seed.hubspot_source_integration_tests.engagement_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "engagement_data", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 2, "name": "_fivetran_synced"}, "active": {"type": "BOOL", "comment": null, "index": 3, "name": "active"}, "activity_type": {"type": "INT64", "comment": null, "index": 4, "name": "activity_type"}, "created_at": {"type": "STRING", "comment": null, "index": 5, "name": "created_at"}, "last_updated": {"type": "STRING", "comment": null, "index": 6, "name": "last_updated"}, "owner_id": {"type": "INT64", "comment": null, "index": 7, "name": "owner_id"}, "portal_id": {"type": "INT64", "comment": null, "index": 8, "name": "portal_id"}, "timestamp": {"type": "STRING", "comment": null, "index": 9, "name": "timestamp"}, "type": {"type": "STRING", "comment": null, "index": 10, "name": "type"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 14300.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.hubspot_source_integration_tests.engagement_data"}, "model.hubspot_source.stg_hubspot__deal": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "stg_hubspot__deal", "comment": null, "owner": null}, "columns": {"deal_id": {"type": "INT64", "comment": null, "index": 1, "name": "deal_id"}, "deal_pipeline_id": {"type": "STRING", "comment": null, "index": 2, "name": "deal_pipeline_id"}, "deal_pipeline_stage_id": {"type": "STRING", "comment": null, "index": 3, "name": "deal_pipeline_stage_id"}, "is_deleted": {"type": "BOOL", "comment": null, "index": 4, "name": "is_deleted"}, "owner_id": {"type": "INT64", "comment": null, "index": 5, "name": "owner_id"}, "portal_id": {"type": "INT64", "comment": null, "index": 6, "name": "portal_id"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1948.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__deal"}, "model.hubspot_source.stg_hubspot__email_event_sent_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "stg_hubspot__email_event_sent_tmp", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "comment": null, "index": 1, "name": "id"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 2, "name": "_fivetran_synced"}, "bcc": {"type": "STRING", "comment": null, "index": 3, "name": "bcc"}, "cc": {"type": "STRING", "comment": null, "index": 4, "name": "cc"}, "from": {"type": "STRING", "comment": null, "index": 5, "name": "from"}, "reply_to": {"type": "STRING", "comment": null, "index": 6, "name": "reply_to"}, "subject": {"type": "STRING", "comment": null, "index": 7, "name": "subject"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__email_event_sent_tmp"}, "seed.hubspot_source_integration_tests.email_campaign_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "email_campaign_data", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 2, "name": "_fivetran_synced"}, "app_id": {"type": "INT64", "comment": null, "index": 3, "name": "app_id"}, "content_id": {"type": "INT64", "comment": null, "index": 4, "name": "content_id"}, "num_included": {"type": "INT64", "comment": null, "index": 5, "name": "num_included"}, "num_queued": {"type": "INT64", "comment": null, "index": 6, "name": "num_queued"}, "sub_type": {"type": "INT64", "comment": null, "index": 7, "name": "sub_type"}, "type": {"type": "STRING", "comment": null, "index": 8, "name": "type"}, "app_name": {"type": "STRING", "comment": null, "index": 9, "name": "app_name"}, "name": {"type": "STRING", "comment": null, "index": 10, "name": "name"}, "subject": {"type": "STRING", "comment": null, "index": 11, "name": "subject"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 14726.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.hubspot_source_integration_tests.email_campaign_data"}, "model.hubspot_source.stg_hubspot__email_event_open": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "stg_hubspot__email_event_open", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "comment": null, "index": 1, "name": "_fivetran_synced"}, "browser": {"type": "STRING", "comment": null, "index": 2, "name": "browser"}, "duration_open": {"type": "INT64", "comment": null, "index": 3, "name": "duration_open"}, "event_id": {"type": "STRING", "comment": null, "index": 4, "name": "event_id"}, "ip_address": {"type": "INT64", "comment": null, "index": 5, "name": "ip_address"}, "geo_location": {"type": "STRING", "comment": null, "index": 6, "name": "geo_location"}, "user_agent": {"type": "STRING", "comment": null, "index": 7, "name": "user_agent"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 15300.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__email_event_open"}, "model.hubspot_source.stg_hubspot__company_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "stg_hubspot__company_tmp", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "is_deleted": {"type": "BOOL", "comment": null, "index": 2, "name": "is_deleted"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__company_tmp"}, "model.hubspot_source.stg_hubspot__deal_stage_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "stg_hubspot__deal_stage_tmp", "comment": null, "owner": null}, "columns": {"_fivetran_start": {"type": "DATETIME", "comment": null, "index": 1, "name": "_fivetran_start"}, "deal_id": {"type": "INT64", "comment": null, "index": 2, "name": "deal_id"}, "_fivetran_active": {"type": "BOOL", "comment": null, "index": 3, "name": "_fivetran_active"}, "_fivetran_end": {"type": "STRING", "comment": null, "index": 4, "name": "_fivetran_end"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 5, "name": "_fivetran_synced"}, "date_entered": {"type": "DATETIME", "comment": null, "index": 6, "name": "date_entered"}, "source": {"type": "STRING", "comment": null, "index": 7, "name": "source"}, "source_id": {"type": "STRING", "comment": null, "index": 8, "name": "source_id"}, "value": {"type": "STRING", "comment": null, "index": 9, "name": "value"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__deal_stage_tmp"}, "model.hubspot_source.stg_hubspot__email_event_bounce_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "stg_hubspot__email_event_bounce_tmp", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "comment": null, "index": 1, "name": "id"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 2, "name": "_fivetran_synced"}, "category": {"type": "STRING", "comment": null, "index": 3, "name": "category"}, "status": {"type": "INT64", "comment": null, "index": 4, "name": "status"}, "response": {"type": "STRING", "comment": null, "index": 5, "name": "response"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__email_event_bounce_tmp"}, "model.hubspot_source.stg_hubspot__deal_pipeline_stage_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "stg_hubspot__deal_pipeline_stage_tmp", "comment": null, "owner": null}, "columns": {"_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 1, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 2, "name": "_fivetran_synced"}, "active": {"type": "BOOL", "comment": null, "index": 3, "name": "active"}, "closed_won": {"type": "BOOL", "comment": null, "index": 4, "name": "closed_won"}, "display_order": {"type": "INT64", "comment": null, "index": 5, "name": "display_order"}, "probability": {"type": "FLOAT64", "comment": null, "index": 6, "name": "probability"}, "stage_id": {"type": "STRING", "comment": null, "index": 7, "name": "stage_id"}, "label": {"type": "STRING", "comment": null, "index": 8, "name": "label"}, "pipeline_id": {"type": "STRING", "comment": null, "index": 9, "name": "pipeline_id"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__deal_pipeline_stage_tmp"}, "model.hubspot_source.stg_hubspot__email_campaign_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "stg_hubspot__email_campaign_tmp", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 2, "name": "_fivetran_synced"}, "app_id": {"type": "INT64", "comment": null, "index": 3, "name": "app_id"}, "content_id": {"type": "INT64", "comment": null, "index": 4, "name": "content_id"}, "num_included": {"type": "INT64", "comment": null, "index": 5, "name": "num_included"}, "num_queued": {"type": "INT64", "comment": null, "index": 6, "name": "num_queued"}, "sub_type": {"type": "INT64", "comment": null, "index": 7, "name": "sub_type"}, "type": {"type": "STRING", "comment": null, "index": 8, "name": "type"}, "app_name": {"type": "STRING", "comment": null, "index": 9, "name": "app_name"}, "name": {"type": "STRING", "comment": null, "index": 10, "name": "name"}, "subject": {"type": "STRING", "comment": null, "index": 11, "name": "subject"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__email_campaign_tmp"}, "seed.hubspot_source_integration_tests.deal_property_history_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "deal_property_history_data", "comment": null, "owner": null}, "columns": {"deal_id": {"type": "INT64", "comment": null, "index": 1, "name": "deal_id"}, "timestamp": {"type": "STRING", "comment": null, "index": 2, "name": "timestamp"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 3, "name": "_fivetran_synced"}, "source": {"type": "STRING", "comment": null, "index": 4, "name": "source"}, "name": {"type": "STRING", "comment": null, "index": 5, "name": "name"}, "source_id": {"type": "STRING", "comment": null, "index": 6, "name": "source_id"}, "value": {"type": "STRING", "comment": null, "index": 7, "name": "value"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 15432.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.hubspot_source_integration_tests.deal_property_history_data"}, "seed.hubspot_source_integration_tests.engagement_company_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "engagement_company_data", "comment": null, "owner": null}, "columns": {"company_id": {"type": "INT64", "comment": null, "index": 1, "name": "company_id"}, "engagement_id": {"type": "INT64", "comment": null, "index": 2, "name": "engagement_id"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 3, "name": "_fivetran_synced"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 4500.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.hubspot_source_integration_tests.engagement_company_data"}, "seed.hubspot_source_integration_tests.email_event_bounce_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "email_event_bounce_data", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "comment": null, "index": 1, "name": "id"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 2, "name": "_fivetran_synced"}, "category": {"type": "STRING", "comment": null, "index": 3, "name": "category"}, "status": {"type": "INT64", "comment": null, "index": 4, "name": "status"}, "response": {"type": "STRING", "comment": null, "index": 5, "name": "response"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 11265.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.hubspot_source_integration_tests.email_event_bounce_data"}, "model.hubspot_source.stg_hubspot__deal_company_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "stg_hubspot__deal_company_tmp", "comment": null, "owner": null}, "columns": {"company_id": {"type": "INT64", "comment": null, "index": 1, "name": "company_id"}, "deal_id": {"type": "INT64", "comment": null, "index": 2, "name": "deal_id"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__deal_company_tmp"}, "seed.hubspot_source_integration_tests.ticket_contact_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "ticket_contact_data", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "comment": null, "index": 1, "name": "_fivetran_synced"}, "ticket_id": {"type": "INT64", "comment": null, "index": 2, "name": "ticket_id"}, "contact_id": {"type": "INT64", "comment": null, "index": 3, "name": "contact_id"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 9.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 369.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.hubspot_source_integration_tests.ticket_contact_data"}, "model.hubspot_source.stg_hubspot__engagement_task": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "stg_hubspot__engagement_task", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "comment": null, "index": 1, "name": "_fivetran_synced"}, "task_note": {"type": "STRING", "comment": null, "index": 2, "name": "task_note"}, "completion_timestamp": {"type": "INT64", "comment": null, "index": 3, "name": "completion_timestamp"}, "engagement_id": {"type": "INT64", "comment": null, "index": 4, "name": "engagement_id"}, "for_object_type": {"type": "STRING", "comment": null, "index": 5, "name": "for_object_type"}, "is_all_day": {"type": "INT64", "comment": null, "index": 6, "name": "is_all_day"}, "priority": {"type": "STRING", "comment": null, "index": 7, "name": "priority"}, "probability_to_complete": {"type": "INT64", "comment": null, "index": 8, "name": "probability_to_complete"}, "task_status": {"type": "STRING", "comment": null, "index": 9, "name": "task_status"}, "task_subject": {"type": "STRING", "comment": null, "index": 10, "name": "task_subject"}, "task_type": {"type": "STRING", "comment": null, "index": 11, "name": "task_type"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 9092.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__engagement_task"}, "seed.hubspot_source_integration_tests.engagement_contact_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "engagement_contact_data", "comment": null, "owner": null}, "columns": {"contact_id": {"type": "INT64", "comment": null, "index": 1, "name": "contact_id"}, "engagement_id": {"type": "INT64", "comment": null, "index": 2, "name": "engagement_id"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 3, "name": "_fivetran_synced"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 4472.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.hubspot_source_integration_tests.engagement_contact_data"}, "seed.hubspot_source_integration_tests.email_event_delivered_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "email_event_delivered_data", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "comment": null, "index": 1, "name": "id"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 2, "name": "_fivetran_synced"}, "response": {"type": "STRING", "comment": null, "index": 3, "name": "response"}, "smtp_id": {"type": "STRING", "comment": null, "index": 4, "name": "smtp_id"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 12214.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.hubspot_source_integration_tests.email_event_delivered_data"}, "model.hubspot_source.stg_hubspot__engagement_contact_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "stg_hubspot__engagement_contact_tmp", "comment": null, "owner": null}, "columns": {"contact_id": {"type": "INT64", "comment": null, "index": 1, "name": "contact_id"}, "engagement_id": {"type": "INT64", "comment": null, "index": 2, "name": "engagement_id"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 3, "name": "_fivetran_synced"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__engagement_contact_tmp"}, "model.hubspot_source.stg_hubspot__ticket_pipeline_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "stg_hubspot__ticket_pipeline_tmp", "comment": null, "owner": null}, "columns": {"pipeline_id": {"type": "INT64", "comment": null, "index": 1, "name": "pipeline_id"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 2, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "active": {"type": "BOOL", "comment": null, "index": 4, "name": "active"}, "display_order": {"type": "INT64", "comment": null, "index": 5, "name": "display_order"}, "label": {"type": "STRING", "comment": null, "index": 6, "name": "label"}, "object_type_id": {"type": "STRING", "comment": null, "index": 7, "name": "object_type_id"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__ticket_pipeline_tmp"}, "model.hubspot_source.stg_hubspot__engagement_deal": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "stg_hubspot__engagement_deal", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "comment": null, "index": 1, "name": "_fivetran_synced"}, "deal_id": {"type": "INT64", "comment": null, "index": 2, "name": "deal_id"}, "engagement_id": {"type": "INT64", "comment": null, "index": 3, "name": "engagement_id"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 4496.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__engagement_deal"}, "model.hubspot_source.stg_hubspot__ticket": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "stg_hubspot__ticket", "comment": null, "owner": null}, "columns": {"ticket_id": {"type": "INT64", "comment": null, "index": 1, "name": "ticket_id"}, "_fivetran_synced": {"type": "TIMESTAMP", "comment": null, "index": 2, "name": "_fivetran_synced"}, "is_deleted": {"type": "BOOL", "comment": null, "index": 3, "name": "is_deleted"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 9.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 81.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__ticket"}, "model.hubspot_source.stg_hubspot__email_event_forward": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "stg_hubspot__email_event_forward", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "comment": null, "index": 1, "name": "_fivetran_synced"}, "browser": {"type": "STRING", "comment": null, "index": 2, "name": "browser"}, "event_id": {"type": "STRING", "comment": null, "index": 3, "name": "event_id"}, "ip_address": {"type": "INT64", "comment": null, "index": 4, "name": "ip_address"}, "geo_location": {"type": "STRING", "comment": null, "index": 5, "name": "geo_location"}, "user_agent": {"type": "STRING", "comment": null, "index": 6, "name": "user_agent"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 14500.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__email_event_forward"}, "seed.hubspot_source_integration_tests.email_event_click_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "email_event_click_data", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "comment": null, "index": 1, "name": "id"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 2, "name": "_fivetran_synced"}, "referer": {"type": "INT64", "comment": null, "index": 3, "name": "referer"}, "browser": {"type": "STRING", "comment": null, "index": 4, "name": "browser"}, "location": {"type": "STRING", "comment": null, "index": 5, "name": "location"}, "ip_address": {"type": "INT64", "comment": null, "index": 6, "name": "ip_address"}, "url": {"type": "STRING", "comment": null, "index": 7, "name": "url"}, "user_agent": {"type": "STRING", "comment": null, "index": 8, "name": "user_agent"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 17100.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.hubspot_source_integration_tests.email_event_click_data"}, "seed.hubspot_source_integration_tests.email_event_dropped_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "email_event_dropped_data", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "comment": null, "index": 1, "name": "id"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 2, "name": "_fivetran_synced"}, "drop_reason": {"type": "STRING", "comment": null, "index": 3, "name": "drop_reason"}, "bcc": {"type": "STRING", "comment": null, "index": 4, "name": "bcc"}, "cc": {"type": "STRING", "comment": null, "index": 5, "name": "cc"}, "drop_message": {"type": "STRING", "comment": null, "index": 6, "name": "drop_message"}, "from": {"type": "STRING", "comment": null, "index": 7, "name": "from"}, "reply_to": {"type": "STRING", "comment": null, "index": 8, "name": "reply_to"}, "subject": {"type": "STRING", "comment": null, "index": 9, "name": "subject"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 24670.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.hubspot_source_integration_tests.email_event_dropped_data"}, "model.hubspot_source.stg_hubspot__engagement_task_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "stg_hubspot__engagement_task_tmp", "comment": null, "owner": null}, "columns": {"engagement_id": {"type": "INT64", "comment": null, "index": 1, "name": "engagement_id"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 2, "name": "_fivetran_synced"}, "completion_date": {"type": "INT64", "comment": null, "index": 3, "name": "completion_date"}, "for_object_type": {"type": "STRING", "comment": null, "index": 4, "name": "for_object_type"}, "is_all_day": {"type": "INT64", "comment": null, "index": 5, "name": "is_all_day"}, "priority": {"type": "STRING", "comment": null, "index": 6, "name": "priority"}, "probability_to_complete": {"type": "INT64", "comment": null, "index": 7, "name": "probability_to_complete"}, "status": {"type": "STRING", "comment": null, "index": 8, "name": "status"}, "subject": {"type": "STRING", "comment": null, "index": 9, "name": "subject"}, "task_type": {"type": "STRING", "comment": null, "index": 10, "name": "task_type"}, "body": {"type": "STRING", "comment": null, "index": 11, "name": "body"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__engagement_task_tmp"}, "model.hubspot_source.stg_hubspot__ticket_engagement": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "stg_hubspot__ticket_engagement", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "comment": null, "index": 1, "name": "_fivetran_synced"}, "ticket_id": {"type": "INT64", "comment": null, "index": 2, "name": "ticket_id"}, "engagement_id": {"type": "INT64", "comment": null, "index": 3, "name": "engagement_id"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 9.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 369.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__ticket_engagement"}, "model.hubspot_source.stg_hubspot__deal_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "stg_hubspot__deal_tmp", "comment": null, "owner": null}, "columns": {"deal_id": {"type": "INT64", "comment": null, "index": 1, "name": "deal_id"}, "owner_id": {"type": "INT64", "comment": null, "index": 2, "name": "owner_id"}, "deal_pipeline_id": {"type": "STRING", "comment": null, "index": 3, "name": "deal_pipeline_id"}, "deal_pipeline_stage_id": {"type": "STRING", "comment": null, "index": 4, "name": "deal_pipeline_stage_id"}, "is_deleted": {"type": "BOOL", "comment": null, "index": 5, "name": "is_deleted"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__deal_tmp"}, "model.hubspot_source.stg_hubspot__company_property_history_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "stg_hubspot__company_property_history_tmp", "comment": null, "owner": null}, "columns": {"company_id": {"type": "INT64", "comment": null, "index": 1, "name": "company_id"}, "timestamp": {"type": "STRING", "comment": null, "index": 2, "name": "timestamp"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 3, "name": "_fivetran_synced"}, "source": {"type": "STRING", "comment": null, "index": 4, "name": "source"}, "source_id": {"type": "INT64", "comment": null, "index": 5, "name": "source_id"}, "name": {"type": "STRING", "comment": null, "index": 6, "name": "name"}, "value": {"type": "STRING", "comment": null, "index": 7, "name": "value"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__company_property_history_tmp"}, "model.hubspot_source.stg_hubspot__contact_list_member": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "stg_hubspot__contact_list_member", "comment": null, "owner": null}, "columns": {"_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 1, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 2, "name": "_fivetran_synced"}, "added_timestamp": {"type": "STRING", "comment": null, "index": 3, "name": "added_timestamp"}, "contact_id": {"type": "INT64", "comment": null, "index": 4, "name": "contact_id"}, "contact_list_id": {"type": "INT64", "comment": null, "index": 5, "name": "contact_list_id"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 68.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 5100.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__contact_list_member"}, "seed.hubspot_source_integration_tests.email_event_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "email_event_data", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "comment": null, "index": 1, "name": "id"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 2, "name": "_fivetran_synced"}, "app_id": {"type": "INT64", "comment": null, "index": 3, "name": "app_id"}, "caused_by_created": {"type": "INT64", "comment": null, "index": 4, "name": "caused_by_created"}, "caused_by_id": {"type": "INT64", "comment": null, "index": 5, "name": "caused_by_id"}, "created": {"type": "STRING", "comment": null, "index": 6, "name": "created"}, "email_campaign_id": {"type": "INT64", "comment": null, "index": 7, "name": "email_campaign_id"}, "obsoleted_by_created": {"type": "INT64", "comment": null, "index": 8, "name": "obsoleted_by_created"}, "obsoleted_by_id": {"type": "INT64", "comment": null, "index": 9, "name": "obsoleted_by_id"}, "portal_id": {"type": "INT64", "comment": null, "index": 10, "name": "portal_id"}, "sent_by_created": {"type": "STRING", "comment": null, "index": 11, "name": "sent_by_created"}, "sent_by_id": {"type": "STRING", "comment": null, "index": 12, "name": "sent_by_id"}, "type": {"type": "STRING", "comment": null, "index": 13, "name": "type"}, "filtered_event": {"type": "BOOL", "comment": null, "index": 14, "name": "filtered_event"}, "recipient": {"type": "STRING", "comment": null, "index": 15, "name": "recipient"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 22016.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.hubspot_source_integration_tests.email_event_data"}, "model.hubspot_source.stg_hubspot__ticket_deal": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "stg_hubspot__ticket_deal", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "comment": null, "index": 1, "name": "_fivetran_synced"}, "ticket_id": {"type": "INT64", "comment": null, "index": 2, "name": "ticket_id"}, "deal_id": {"type": "INT64", "comment": null, "index": 3, "name": "deal_id"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 9.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 369.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__ticket_deal"}, "seed.hubspot_source_integration_tests.email_event_status_change_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "email_event_status_change_data", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "comment": null, "index": 1, "name": "id"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 2, "name": "_fivetran_synced"}, "bounced": {"type": "INT64", "comment": null, "index": 3, "name": "bounced"}, "portal_subscription_status": {"type": "STRING", "comment": null, "index": 4, "name": "portal_subscription_status"}, "requested_by": {"type": "INT64", "comment": null, "index": 5, "name": "requested_by"}, "source": {"type": "STRING", "comment": null, "index": 6, "name": "source"}, "subscriptions": {"type": "STRING", "comment": null, "index": 7, "name": "subscriptions"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 10300.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.hubspot_source_integration_tests.email_event_status_change_data"}, "seed.hubspot_source_integration_tests.email_event_forward_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "email_event_forward_data", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "comment": null, "index": 1, "name": "id"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 2, "name": "_fivetran_synced"}, "browser": {"type": "STRING", "comment": null, "index": 3, "name": "browser"}, "ip_address": {"type": "INT64", "comment": null, "index": 4, "name": "ip_address"}, "location": {"type": "STRING", "comment": null, "index": 5, "name": "location"}, "user_agent": {"type": "STRING", "comment": null, "index": 6, "name": "user_agent"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 14500.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.hubspot_source_integration_tests.email_event_forward_data"}, "seed.hubspot_source_integration_tests.email_event_open_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "email_event_open_data", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "comment": null, "index": 1, "name": "id"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 2, "name": "_fivetran_synced"}, "duration": {"type": "INT64", "comment": null, "index": 3, "name": "duration"}, "browser": {"type": "STRING", "comment": null, "index": 4, "name": "browser"}, "ip_address": {"type": "INT64", "comment": null, "index": 5, "name": "ip_address"}, "location": {"type": "STRING", "comment": null, "index": 6, "name": "location"}, "user_agent": {"type": "STRING", "comment": null, "index": 7, "name": "user_agent"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 15300.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.hubspot_source_integration_tests.email_event_open_data"}, "model.hubspot_source.stg_hubspot__engagement_meeting_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "stg_hubspot__engagement_meeting_tmp", "comment": null, "owner": null}, "columns": {"engagement_id": {"type": "INT64", "comment": null, "index": 1, "name": "engagement_id"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 2, "name": "_fivetran_synced"}, "created_from_link_id": {"type": "INT64", "comment": null, "index": 3, "name": "created_from_link_id"}, "end_time": {"type": "STRING", "comment": null, "index": 4, "name": "end_time"}, "pre_meeting_prospect_reminders": {"type": "STRING", "comment": null, "index": 5, "name": "pre_meeting_prospect_reminders"}, "source": {"type": "STRING", "comment": null, "index": 6, "name": "source"}, "source_id": {"type": "STRING", "comment": null, "index": 7, "name": "source_id"}, "start_time": {"type": "STRING", "comment": null, "index": 8, "name": "start_time"}, "web_conference_meeting_id": {"type": "INT64", "comment": null, "index": 9, "name": "web_conference_meeting_id"}, "meeting_outcome": {"type": "INT64", "comment": null, "index": 10, "name": "meeting_outcome"}, "body": {"type": "STRING", "comment": null, "index": 11, "name": "body"}, "external_url": {"type": "STRING", "comment": null, "index": 12, "name": "external_url"}, "title": {"type": "STRING", "comment": null, "index": 13, "name": "title"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__engagement_meeting_tmp"}, "model.hubspot_source.stg_hubspot__engagement_note_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "stg_hubspot__engagement_note_tmp", "comment": null, "owner": null}, "columns": {"engagement_id": {"type": "INT64", "comment": null, "index": 1, "name": "engagement_id"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 2, "name": "_fivetran_synced"}, "body": {"type": "STRING", "comment": null, "index": 3, "name": "body"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__engagement_note_tmp"}, "seed.hubspot_source_integration_tests.email_event_deferred_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "email_event_deferred_data", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "comment": null, "index": 1, "name": "id"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 2, "name": "_fivetran_synced"}, "attempt": {"type": "INT64", "comment": null, "index": 3, "name": "attempt"}, "response": {"type": "INT64", "comment": null, "index": 4, "name": "response"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 7500.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.hubspot_source_integration_tests.email_event_deferred_data"}, "seed.hubspot_source_integration_tests.engagement_note_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "engagement_note_data", "comment": null, "owner": null}, "columns": {"engagement_id": {"type": "INT64", "comment": null, "index": 1, "name": "engagement_id"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 2, "name": "_fivetran_synced"}, "body": {"type": "STRING", "comment": null, "index": 3, "name": "body"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 6300.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.hubspot_source_integration_tests.engagement_note_data"}, "model.hubspot_source.stg_hubspot__ticket_deal_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "stg_hubspot__ticket_deal_tmp", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "comment": null, "index": 1, "name": "_fivetran_synced"}, "ticket_id": {"type": "INT64", "comment": null, "index": 2, "name": "ticket_id"}, "deal_id": {"type": "INT64", "comment": null, "index": 3, "name": "deal_id"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__ticket_deal_tmp"}, "seed.hubspot_source_integration_tests.email_event_sent_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "email_event_sent_data", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "comment": null, "index": 1, "name": "id"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 2, "name": "_fivetran_synced"}, "bcc": {"type": "STRING", "comment": null, "index": 3, "name": "bcc"}, "cc": {"type": "STRING", "comment": null, "index": 4, "name": "cc"}, "from": {"type": "STRING", "comment": null, "index": 5, "name": "from"}, "reply_to": {"type": "STRING", "comment": null, "index": 6, "name": "reply_to"}, "subject": {"type": "STRING", "comment": null, "index": 7, "name": "subject"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 19700.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.hubspot_source_integration_tests.email_event_sent_data"}, "model.hubspot_source.stg_hubspot__deal_company": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "stg_hubspot__deal_company", "comment": null, "owner": null}, "columns": {"company_id": {"type": "INT64", "comment": null, "index": 1, "name": "company_id"}, "deal_id": {"type": "INT64", "comment": null, "index": 2, "name": "deal_id"}, "_fivetran_synced": {"type": "TIMESTAMP", "comment": null, "index": 3, "name": "_fivetran_synced"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 2.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 32.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__deal_company"}, "model.hubspot_source.stg_hubspot__email_event_click_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "stg_hubspot__email_event_click_tmp", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "comment": null, "index": 1, "name": "id"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 2, "name": "_fivetran_synced"}, "referer": {"type": "INT64", "comment": null, "index": 3, "name": "referer"}, "browser": {"type": "STRING", "comment": null, "index": 4, "name": "browser"}, "location": {"type": "STRING", "comment": null, "index": 5, "name": "location"}, "ip_address": {"type": "INT64", "comment": null, "index": 6, "name": "ip_address"}, "url": {"type": "STRING", "comment": null, "index": 7, "name": "url"}, "user_agent": {"type": "STRING", "comment": null, "index": 8, "name": "user_agent"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__email_event_click_tmp"}, "seed.hubspot_source_integration_tests.deal_company_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "deal_company_data", "comment": null, "owner": null}, "columns": {"company_id": {"type": "INT64", "comment": null, "index": 1, "name": "company_id"}, "deal_id": {"type": "INT64", "comment": null, "index": 2, "name": "deal_id"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 2.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 32.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.hubspot_source_integration_tests.deal_company_data"}, "model.hubspot_source.stg_hubspot__deal_stage": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "stg_hubspot__deal_stage", "comment": null, "owner": null}, "columns": {"date_entered": {"type": "DATETIME", "comment": null, "index": 1, "name": "date_entered"}, "deal_id": {"type": "INT64", "comment": null, "index": 2, "name": "deal_id"}, "source": {"type": "STRING", "comment": null, "index": 3, "name": "source"}, "source_id": {"type": "STRING", "comment": null, "index": 4, "name": "source_id"}, "deal_stage_name": {"type": "STRING", "comment": null, "index": 5, "name": "deal_stage_name"}, "_fivetran_active": {"type": "BOOL", "comment": null, "index": 6, "name": "_fivetran_active"}, "_fivetran_end": {"type": "STRING", "comment": null, "index": 7, "name": "_fivetran_end"}, "_fivetran_start": {"type": "DATETIME", "comment": null, "index": 8, "name": "_fivetran_start"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 14.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 2072.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__deal_stage"}, "model.hubspot_source.stg_hubspot__engagement_call": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "stg_hubspot__engagement_call", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "comment": null, "index": 1, "name": "_fivetran_synced"}, "call_notes": {"type": "STRING", "comment": null, "index": 2, "name": "call_notes"}, "callee_object_id": {"type": "INT64", "comment": null, "index": 3, "name": "callee_object_id"}, "callee_object_type": {"type": "INT64", "comment": null, "index": 4, "name": "callee_object_type"}, "disposition_id": {"type": "STRING", "comment": null, "index": 5, "name": "disposition_id"}, "call_duration_milliseconds": {"type": "INT64", "comment": null, "index": 6, "name": "call_duration_milliseconds"}, "engagement_id": {"type": "INT64", "comment": null, "index": 7, "name": "engagement_id"}, "external_account_id": {"type": "INT64", "comment": null, "index": 8, "name": "external_account_id"}, "external_id": {"type": "INT64", "comment": null, "index": 9, "name": "external_id"}, "from_number": {"type": "INT64", "comment": null, "index": 10, "name": "from_number"}, "recording_url": {"type": "INT64", "comment": null, "index": 11, "name": "recording_url"}, "call_status": {"type": "INT64", "comment": null, "index": 12, "name": "call_status"}, "to_number": {"type": "INT64", "comment": null, "index": 13, "name": "to_number"}, "transcription_id": {"type": "INT64", "comment": null, "index": 14, "name": "transcription_id"}, "unknown_visitor_conversation": {"type": "INT64", "comment": null, "index": 15, "name": "unknown_visitor_conversation"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 10706.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__engagement_call"}, "model.hubspot_source.stg_hubspot__ticket_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "stg_hubspot__ticket_tmp", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "property_closed_date": {"type": "STRING", "comment": null, "index": 2, "name": "property_closed_date"}, "property_createdate": {"type": "STRING", "comment": null, "index": 3, "name": "property_createdate"}, "property_hubspot_owner_id": {"type": "INT64", "comment": null, "index": 4, "name": "property_hubspot_owner_id"}, "property_hs_pipeline": {"type": "INT64", "comment": null, "index": 5, "name": "property_hs_pipeline"}, "property_hs_pipeline_stage": {"type": "INT64", "comment": null, "index": 6, "name": "property_hs_pipeline_stage"}, "is_deleted": {"type": "BOOL", "comment": null, "index": 7, "name": "is_deleted"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__ticket_tmp"}, "seed.hubspot_source_integration_tests.contact_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "contact_data", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "property_email": {"type": "STRING", "comment": null, "index": 2, "name": "property_email"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 3, "name": "_fivetran_deleted"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 3500.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.hubspot_source_integration_tests.contact_data"}, "model.hubspot_source.stg_hubspot__deal_pipeline_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "stg_hubspot__deal_pipeline_tmp", "comment": null, "owner": null}, "columns": {"pipeline_id": {"type": "STRING", "comment": null, "index": 1, "name": "pipeline_id"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 2, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 3, "name": "_fivetran_synced"}, "active": {"type": "BOOL", "comment": null, "index": 4, "name": "active"}, "display_order": {"type": "INT64", "comment": null, "index": 5, "name": "display_order"}, "label": {"type": "STRING", "comment": null, "index": 6, "name": "label"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__deal_pipeline_tmp"}, "seed.hubspot_source_integration_tests.ticket_pipeline_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "ticket_pipeline_data", "comment": null, "owner": null}, "columns": {"pipeline_id": {"type": "INT64", "comment": null, "index": 1, "name": "pipeline_id"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 2, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "active": {"type": "BOOL", "comment": null, "index": 4, "name": "active"}, "display_order": {"type": "INT64", "comment": null, "index": 5, "name": "display_order"}, "label": {"type": "STRING", "comment": null, "index": 6, "name": "label"}, "object_type_id": {"type": "STRING", "comment": null, "index": 7, "name": "object_type_id"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 8.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 520.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.hubspot_source_integration_tests.ticket_pipeline_data"}, "model.hubspot_source.stg_hubspot__ticket_company": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "stg_hubspot__ticket_company", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "comment": null, "index": 1, "name": "_fivetran_synced"}, "ticket_id": {"type": "INT64", "comment": null, "index": 2, "name": "ticket_id"}, "company_id": {"type": "INT64", "comment": null, "index": 3, "name": "company_id"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 9.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 369.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__ticket_company"}, "seed.hubspot_source_integration_tests.contact_property_history_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "contact_property_history_data", "comment": null, "owner": null}, "columns": {"contact_id": {"type": "INT64", "comment": null, "index": 1, "name": "contact_id"}, "timestamp": {"type": "STRING", "comment": null, "index": 2, "name": "timestamp"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 3, "name": "_fivetran_synced"}, "source": {"type": "STRING", "comment": null, "index": 4, "name": "source"}, "name": {"type": "STRING", "comment": null, "index": 5, "name": "name"}, "value": {"type": "STRING", "comment": null, "index": 6, "name": "value"}, "source_id": {"type": "STRING", "comment": null, "index": 7, "name": "source_id"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 14773.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.hubspot_source_integration_tests.contact_property_history_data"}, "model.hubspot_source.stg_hubspot__ticket_pipeline_stage_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "stg_hubspot__ticket_pipeline_stage_tmp", "comment": null, "owner": null}, "columns": {"stage_id": {"type": "INT64", "comment": null, "index": 1, "name": "stage_id"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 2, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "active": {"type": "BOOL", "comment": null, "index": 4, "name": "active"}, "display_order": {"type": "INT64", "comment": null, "index": 5, "name": "display_order"}, "is_closed": {"type": "BOOL", "comment": null, "index": 6, "name": "is_closed"}, "label": {"type": "STRING", "comment": null, "index": 7, "name": "label"}, "pipeline_id": {"type": "INT64", "comment": null, "index": 8, "name": "pipeline_id"}, "ticket_state": {"type": "STRING", "comment": null, "index": 9, "name": "ticket_state"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__ticket_pipeline_stage_tmp"}, "model.hubspot_source.stg_hubspot__engagement_email": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "stg_hubspot__engagement_email", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "comment": null, "index": 1, "name": "_fivetran_synced"}, "attached_video_id": {"type": "INT64", "comment": null, "index": 2, "name": "attached_video_id"}, "was_attached_video_opened": {"type": "BOOL", "comment": null, "index": 3, "name": "was_attached_video_opened"}, "was_attached_video_watched": {"type": "BOOL", "comment": null, "index": 4, "name": "was_attached_video_watched"}, "email_send_event_created_timestamp": {"type": "INT64", "comment": null, "index": 5, "name": "email_send_event_created_timestamp"}, "email_send_event_id": {"type": "INT64", "comment": null, "index": 6, "name": "email_send_event_id"}, "engagement_id": {"type": "INT64", "comment": null, "index": 7, "name": "engagement_id"}, "error_message": {"type": "INT64", "comment": null, "index": 8, "name": "error_message"}, "facsimile_send_id": {"type": "STRING", "comment": null, "index": 9, "name": "facsimile_send_id"}, "from_email": {"type": "STRING", "comment": null, "index": 10, "name": "from_email"}, "from_first_name": {"type": "STRING", "comment": null, "index": 11, "name": "from_first_name"}, "from_last_name": {"type": "STRING", "comment": null, "index": 12, "name": "from_last_name"}, "email_html": {"type": "STRING", "comment": null, "index": 13, "name": "email_html"}, "logged_from": {"type": "STRING", "comment": null, "index": 14, "name": "logged_from"}, "media_processing_status": {"type": "STRING", "comment": null, "index": 15, "name": "media_processing_status"}, "message_id": {"type": "STRING", "comment": null, "index": 16, "name": "message_id"}, "post_send_status": {"type": "STRING", "comment": null, "index": 17, "name": "post_send_status"}, "recipient_drop_reasons": {"type": "INT64", "comment": null, "index": 18, "name": "recipient_drop_reasons"}, "sent_via": {"type": "STRING", "comment": null, "index": 19, "name": "sent_via"}, "email_status": {"type": "STRING", "comment": null, "index": 20, "name": "email_status"}, "email_subject": {"type": "STRING", "comment": null, "index": 21, "name": "email_subject"}, "email_text": {"type": "STRING", "comment": null, "index": 22, "name": "email_text"}, "thread_id": {"type": "STRING", "comment": null, "index": 23, "name": "thread_id"}, "tracker_key": {"type": "STRING", "comment": null, "index": 24, "name": "tracker_key"}, "validation_skipped": {"type": "STRING", "comment": null, "index": 25, "name": "validation_skipped"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 36203.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__engagement_email"}, "seed.hubspot_source_integration_tests.ticket_company_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "ticket_company_data", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "comment": null, "index": 1, "name": "_fivetran_synced"}, "ticket_id": {"type": "INT64", "comment": null, "index": 2, "name": "ticket_id"}, "company_id": {"type": "INT64", "comment": null, "index": 3, "name": "company_id"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 9.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 369.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.hubspot_source_integration_tests.ticket_company_data"}, "seed.hubspot_source_integration_tests.engagement_meeting_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "engagement_meeting_data", "comment": null, "owner": null}, "columns": {"engagement_id": {"type": "INT64", "comment": null, "index": 1, "name": "engagement_id"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 2, "name": "_fivetran_synced"}, "created_from_link_id": {"type": "INT64", "comment": null, "index": 3, "name": "created_from_link_id"}, "end_time": {"type": "STRING", "comment": null, "index": 4, "name": "end_time"}, "pre_meeting_prospect_reminders": {"type": "STRING", "comment": null, "index": 5, "name": "pre_meeting_prospect_reminders"}, "source": {"type": "STRING", "comment": null, "index": 6, "name": "source"}, "source_id": {"type": "STRING", "comment": null, "index": 7, "name": "source_id"}, "start_time": {"type": "STRING", "comment": null, "index": 8, "name": "start_time"}, "web_conference_meeting_id": {"type": "INT64", "comment": null, "index": 9, "name": "web_conference_meeting_id"}, "meeting_outcome": {"type": "INT64", "comment": null, "index": 10, "name": "meeting_outcome"}, "body": {"type": "STRING", "comment": null, "index": 11, "name": "body"}, "external_url": {"type": "STRING", "comment": null, "index": 12, "name": "external_url"}, "title": {"type": "STRING", "comment": null, "index": 13, "name": "title"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 22845.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.hubspot_source_integration_tests.engagement_meeting_data"}, "model.hubspot_source.stg_hubspot__email_event_spam_report_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "stg_hubspot__email_event_spam_report_tmp", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "comment": null, "index": 1, "name": "id"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 2, "name": "_fivetran_synced"}, "ip_address": {"type": "INT64", "comment": null, "index": 3, "name": "ip_address"}, "user_agent": {"type": "INT64", "comment": null, "index": 4, "name": "user_agent"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__email_event_spam_report_tmp"}, "seed.hubspot_source_integration_tests.contact_list_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "contact_list_data", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 2, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 3, "name": "_fivetran_synced"}, "created_at": {"type": "STRING", "comment": null, "index": 4, "name": "created_at"}, "deleteable": {"type": "BOOL", "comment": null, "index": 5, "name": "deleteable"}, "dynamic": {"type": "BOOL", "comment": null, "index": 6, "name": "dynamic"}, "metadata_error": {"type": "INT64", "comment": null, "index": 7, "name": "metadata_error"}, "metadata_last_processing_state_change_at": {"type": "STRING", "comment": null, "index": 8, "name": "metadata_last_processing_state_change_at"}, "metadata_last_size_change_at": {"type": "STRING", "comment": null, "index": 9, "name": "metadata_last_size_change_at"}, "metadata_processing": {"type": "STRING", "comment": null, "index": 10, "name": "metadata_processing"}, "metadata_size": {"type": "INT64", "comment": null, "index": 11, "name": "metadata_size"}, "offset": {"type": "INT64", "comment": null, "index": 12, "name": "offset"}, "portal_id": {"type": "INT64", "comment": null, "index": 13, "name": "portal_id"}, "updated_at": {"type": "STRING", "comment": null, "index": 14, "name": "updated_at"}, "name": {"type": "STRING", "comment": null, "index": 15, "name": "name"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 60.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 12196.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.hubspot_source_integration_tests.contact_list_data"}, "model.hubspot_source.stg_hubspot__deal_property_history": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "stg_hubspot__deal_property_history", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "comment": null, "index": 1, "name": "_fivetran_synced"}, "deal_id": {"type": "INT64", "comment": null, "index": 2, "name": "deal_id"}, "field_name": {"type": "STRING", "comment": null, "index": 3, "name": "field_name"}, "change_source": {"type": "STRING", "comment": null, "index": 4, "name": "change_source"}, "change_source_id": {"type": "STRING", "comment": null, "index": 5, "name": "change_source_id"}, "change_timestamp": {"type": "STRING", "comment": null, "index": 6, "name": "change_timestamp"}, "new_value": {"type": "STRING", "comment": null, "index": 7, "name": "new_value"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 15432.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__deal_property_history"}, "seed.hubspot_source_integration_tests.company_property_history_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "company_property_history_data", "comment": null, "owner": null}, "columns": {"company_id": {"type": "INT64", "comment": null, "index": 1, "name": "company_id"}, "timestamp": {"type": "STRING", "comment": null, "index": 2, "name": "timestamp"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 3, "name": "_fivetran_synced"}, "source": {"type": "STRING", "comment": null, "index": 4, "name": "source"}, "source_id": {"type": "INT64", "comment": null, "index": 5, "name": "source_id"}, "name": {"type": "STRING", "comment": null, "index": 6, "name": "name"}, "value": {"type": "STRING", "comment": null, "index": 7, "name": "value"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 13000.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.hubspot_source_integration_tests.company_property_history_data"}, "model.hubspot_source.stg_hubspot__email_event_dropped": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "stg_hubspot__email_event_dropped", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "comment": null, "index": 1, "name": "_fivetran_synced"}, "bcc_emails": {"type": "STRING", "comment": null, "index": 2, "name": "bcc_emails"}, "cc_emails": {"type": "STRING", "comment": null, "index": 3, "name": "cc_emails"}, "drop_message": {"type": "STRING", "comment": null, "index": 4, "name": "drop_message"}, "drop_reason": {"type": "STRING", "comment": null, "index": 5, "name": "drop_reason"}, "from_email": {"type": "STRING", "comment": null, "index": 6, "name": "from_email"}, "event_id": {"type": "STRING", "comment": null, "index": 7, "name": "event_id"}, "reply_to_email": {"type": "STRING", "comment": null, "index": 8, "name": "reply_to_email"}, "email_subject": {"type": "STRING", "comment": null, "index": 9, "name": "email_subject"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 24670.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__email_event_dropped"}, "model.hubspot_source.stg_hubspot__ticket_pipeline_stage": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "stg_hubspot__ticket_pipeline_stage", "comment": null, "owner": null}, "columns": {"_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 1, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 2, "name": "_fivetran_synced"}, "is_active": {"type": "BOOL", "comment": null, "index": 3, "name": "is_active"}, "display_order": {"type": "INT64", "comment": null, "index": 4, "name": "display_order"}, "is_closed": {"type": "BOOL", "comment": null, "index": 5, "name": "is_closed"}, "label": {"type": "STRING", "comment": null, "index": 6, "name": "label"}, "pipeline_id": {"type": "INT64", "comment": null, "index": 7, "name": "pipeline_id"}, "stage_id": {"type": "INT64", "comment": null, "index": 8, "name": "stage_id"}, "ticket_state": {"type": "STRING", "comment": null, "index": 9, "name": "ticket_state"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 11.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 825.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__ticket_pipeline_stage"}, "model.hubspot_source.stg_hubspot__email_event_dropped_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "stg_hubspot__email_event_dropped_tmp", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "comment": null, "index": 1, "name": "id"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 2, "name": "_fivetran_synced"}, "drop_reason": {"type": "STRING", "comment": null, "index": 3, "name": "drop_reason"}, "bcc": {"type": "STRING", "comment": null, "index": 4, "name": "bcc"}, "cc": {"type": "STRING", "comment": null, "index": 5, "name": "cc"}, "drop_message": {"type": "STRING", "comment": null, "index": 6, "name": "drop_message"}, "from": {"type": "STRING", "comment": null, "index": 7, "name": "from"}, "reply_to": {"type": "STRING", "comment": null, "index": 8, "name": "reply_to"}, "subject": {"type": "STRING", "comment": null, "index": 9, "name": "subject"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__email_event_dropped_tmp"}, "model.hubspot_source.stg_hubspot__engagement_company": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "stg_hubspot__engagement_company", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "comment": null, "index": 1, "name": "_fivetran_synced"}, "company_id": {"type": "INT64", "comment": null, "index": 2, "name": "company_id"}, "engagement_id": {"type": "INT64", "comment": null, "index": 3, "name": "engagement_id"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 4500.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__engagement_company"}, "model.hubspot_source.stg_hubspot__ticket_company_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "stg_hubspot__ticket_company_tmp", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "comment": null, "index": 1, "name": "_fivetran_synced"}, "ticket_id": {"type": "INT64", "comment": null, "index": 2, "name": "ticket_id"}, "company_id": {"type": "INT64", "comment": null, "index": 3, "name": "company_id"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__ticket_company_tmp"}, "seed.hubspot_source_integration_tests.deal_pipeline_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "deal_pipeline_data", "comment": null, "owner": null}, "columns": {"pipeline_id": {"type": "STRING", "comment": null, "index": 1, "name": "pipeline_id"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 2, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 3, "name": "_fivetran_synced"}, "active": {"type": "BOOL", "comment": null, "index": 4, "name": "active"}, "display_order": {"type": "INT64", "comment": null, "index": 5, "name": "display_order"}, "label": {"type": "STRING", "comment": null, "index": 6, "name": "label"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 6.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 509.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.hubspot_source_integration_tests.deal_pipeline_data"}, "model.hubspot_source.stg_hubspot__email_event_sent": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "stg_hubspot__email_event_sent", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "comment": null, "index": 1, "name": "_fivetran_synced"}, "bcc_emails": {"type": "STRING", "comment": null, "index": 2, "name": "bcc_emails"}, "cc_emails": {"type": "STRING", "comment": null, "index": 3, "name": "cc_emails"}, "from_email": {"type": "STRING", "comment": null, "index": 4, "name": "from_email"}, "event_id": {"type": "STRING", "comment": null, "index": 5, "name": "event_id"}, "reply_to_email": {"type": "STRING", "comment": null, "index": 6, "name": "reply_to_email"}, "email_subject": {"type": "STRING", "comment": null, "index": 7, "name": "email_subject"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 19700.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__email_event_sent"}, "model.hubspot_source.stg_hubspot__email_event_status_change": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "stg_hubspot__email_event_status_change", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "comment": null, "index": 1, "name": "_fivetran_synced"}, "is_bounced": {"type": "INT64", "comment": null, "index": 2, "name": "is_bounced"}, "event_id": {"type": "STRING", "comment": null, "index": 3, "name": "event_id"}, "subscription_status": {"type": "STRING", "comment": null, "index": 4, "name": "subscription_status"}, "requested_by_email": {"type": "INT64", "comment": null, "index": 5, "name": "requested_by_email"}, "change_source": {"type": "STRING", "comment": null, "index": 6, "name": "change_source"}, "subscriptions": {"type": "STRING", "comment": null, "index": 7, "name": "subscriptions"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 10300.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__email_event_status_change"}, "model.hubspot_source.stg_hubspot__ticket_contact_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "stg_hubspot__ticket_contact_tmp", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "comment": null, "index": 1, "name": "_fivetran_synced"}, "ticket_id": {"type": "INT64", "comment": null, "index": 2, "name": "ticket_id"}, "contact_id": {"type": "INT64", "comment": null, "index": 3, "name": "contact_id"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__ticket_contact_tmp"}, "model.hubspot_source.stg_hubspot__email_event": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "stg_hubspot__email_event", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "comment": null, "index": 1, "name": "_fivetran_synced"}, "app_id": {"type": "INT64", "comment": null, "index": 2, "name": "app_id"}, "caused_timestamp": {"type": "INT64", "comment": null, "index": 3, "name": "caused_timestamp"}, "caused_by_event_id": {"type": "INT64", "comment": null, "index": 4, "name": "caused_by_event_id"}, "created_timestamp": {"type": "STRING", "comment": null, "index": 5, "name": "created_timestamp"}, "email_campaign_id": {"type": "INT64", "comment": null, "index": 6, "name": "email_campaign_id"}, "is_filtered_event": {"type": "BOOL", "comment": null, "index": 7, "name": "is_filtered_event"}, "event_id": {"type": "STRING", "comment": null, "index": 8, "name": "event_id"}, "obsoleted_timestamp": {"type": "INT64", "comment": null, "index": 9, "name": "obsoleted_timestamp"}, "obsoleted_by_event_id": {"type": "INT64", "comment": null, "index": 10, "name": "obsoleted_by_event_id"}, "portal_id": {"type": "INT64", "comment": null, "index": 11, "name": "portal_id"}, "recipient_email_address": {"type": "STRING", "comment": null, "index": 12, "name": "recipient_email_address"}, "sent_timestamp": {"type": "STRING", "comment": null, "index": 13, "name": "sent_timestamp"}, "sent_by_event_id": {"type": "STRING", "comment": null, "index": 14, "name": "sent_by_event_id"}, "event_type": {"type": "STRING", "comment": null, "index": 15, "name": "event_type"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 22016.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__email_event"}, "seed.hubspot_source_integration_tests.engagement_deal_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "engagement_deal_data", "comment": null, "owner": null}, "columns": {"deal_id": {"type": "INT64", "comment": null, "index": 1, "name": "deal_id"}, "engagement_id": {"type": "INT64", "comment": null, "index": 2, "name": "engagement_id"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 3, "name": "_fivetran_synced"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 4496.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.hubspot_source_integration_tests.engagement_deal_data"}, "seed.hubspot_source_integration_tests.owner_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "owner_data", "comment": null, "owner": null}, "columns": {"owner_id": {"type": "INT64", "comment": null, "index": 1, "name": "owner_id"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 2, "name": "_fivetran_synced"}, "created_at": {"type": "STRING", "comment": null, "index": 3, "name": "created_at"}, "portal_id": {"type": "INT64", "comment": null, "index": 4, "name": "portal_id"}, "type": {"type": "STRING", "comment": null, "index": 5, "name": "type"}, "updated_at": {"type": "STRING", "comment": null, "index": 6, "name": "updated_at"}, "email": {"type": "STRING", "comment": null, "index": 7, "name": "email"}, "first_name": {"type": "STRING", "comment": null, "index": 8, "name": "first_name"}, "last_name": {"type": "STRING", "comment": null, "index": 9, "name": "last_name"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 18900.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.hubspot_source_integration_tests.owner_data"}, "model.hubspot_source.stg_hubspot__deal_property_history_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "stg_hubspot__deal_property_history_tmp", "comment": null, "owner": null}, "columns": {"deal_id": {"type": "INT64", "comment": null, "index": 1, "name": "deal_id"}, "timestamp": {"type": "STRING", "comment": null, "index": 2, "name": "timestamp"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 3, "name": "_fivetran_synced"}, "source": {"type": "STRING", "comment": null, "index": 4, "name": "source"}, "name": {"type": "STRING", "comment": null, "index": 5, "name": "name"}, "source_id": {"type": "STRING", "comment": null, "index": 6, "name": "source_id"}, "value": {"type": "STRING", "comment": null, "index": 7, "name": "value"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__deal_property_history_tmp"}, "model.hubspot_source.stg_hubspot__email_event_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "stg_hubspot__email_event_tmp", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "comment": null, "index": 1, "name": "id"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 2, "name": "_fivetran_synced"}, "app_id": {"type": "INT64", "comment": null, "index": 3, "name": "app_id"}, "caused_by_created": {"type": "INT64", "comment": null, "index": 4, "name": "caused_by_created"}, "caused_by_id": {"type": "INT64", "comment": null, "index": 5, "name": "caused_by_id"}, "created": {"type": "STRING", "comment": null, "index": 6, "name": "created"}, "email_campaign_id": {"type": "INT64", "comment": null, "index": 7, "name": "email_campaign_id"}, "obsoleted_by_created": {"type": "INT64", "comment": null, "index": 8, "name": "obsoleted_by_created"}, "obsoleted_by_id": {"type": "INT64", "comment": null, "index": 9, "name": "obsoleted_by_id"}, "portal_id": {"type": "INT64", "comment": null, "index": 10, "name": "portal_id"}, "sent_by_created": {"type": "STRING", "comment": null, "index": 11, "name": "sent_by_created"}, "sent_by_id": {"type": "STRING", "comment": null, "index": 12, "name": "sent_by_id"}, "type": {"type": "STRING", "comment": null, "index": 13, "name": "type"}, "filtered_event": {"type": "BOOL", "comment": null, "index": 14, "name": "filtered_event"}, "recipient": {"type": "STRING", "comment": null, "index": 15, "name": "recipient"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__email_event_tmp"}, "model.hubspot_source.stg_hubspot__contact_list_member_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "stg_hubspot__contact_list_member_tmp", "comment": null, "owner": null}, "columns": {"contact_id": {"type": "INT64", "comment": null, "index": 1, "name": "contact_id"}, "contact_list_id": {"type": "INT64", "comment": null, "index": 2, "name": "contact_list_id"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 3, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 4, "name": "_fivetran_synced"}, "added_at": {"type": "STRING", "comment": null, "index": 5, "name": "added_at"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__contact_list_member_tmp"}, "model.hubspot_source.stg_hubspot__ticket_property_history_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "stg_hubspot__ticket_property_history_tmp", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "comment": null, "index": 1, "name": "_fivetran_synced"}, "ticket_id": {"type": "INT64", "comment": null, "index": 2, "name": "ticket_id"}, "name": {"type": "STRING", "comment": null, "index": 3, "name": "name"}, "source": {"type": "STRING", "comment": null, "index": 4, "name": "source"}, "source_id": {"type": "STRING", "comment": null, "index": 5, "name": "source_id"}, "timestamp_instant": {"type": "STRING", "comment": null, "index": 6, "name": "timestamp_instant"}, "value": {"type": "STRING", "comment": null, "index": 7, "name": "value"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__ticket_property_history_tmp"}}, "sources": {}, "errors": null} \ No newline at end of file +{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/catalog/v1.json", "dbt_version": "0.19.0", "generated_at": "2021-04-06T15:07:37.159063Z", "invocation_id": "96770ca8-34ed-4397-b376-b40fa34cd6bc", "env": {}}, "nodes": {"model.hubspot_source.stg_hubspot__email_event_delivered": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "stg_hubspot__email_event_delivered", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "comment": null, "index": 1, "name": "_fivetran_synced"}, "event_id": {"type": "STRING", "comment": null, "index": 2, "name": "event_id"}, "returned_response": {"type": "STRING", "comment": null, "index": 3, "name": "returned_response"}, "smtp_id": {"type": "STRING", "comment": null, "index": 4, "name": "smtp_id"}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 12214.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__email_event_delivered"}, "model.hubspot_source.stg_hubspot__email_event_spam_report": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "stg_hubspot__email_event_spam_report", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "comment": null, "index": 1, "name": "_fivetran_synced"}, "event_id": {"type": "STRING", "comment": null, "index": 2, "name": "event_id"}, "ip_address": {"type": "INT64", "comment": null, "index": 3, "name": "ip_address"}, "user_agent": {"type": "INT64", "comment": null, "index": 4, "name": "user_agent"}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 2144.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 32.0, "description": "Approximate count of rows in this table", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__email_event_spam_report"}, "seed.hubspot_source_integration_tests.contact_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "contact_data", "comment": null, "owner": null}, "columns": {"_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 1, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 2, "name": "_fivetran_synced"}, "property_email": {"type": "STRING", "comment": null, "index": 3, "name": "property_email"}, "id": {"type": "INT64", "comment": null, "index": 4, "name": "id"}, "property_company": {"type": "STRING", "comment": null, "index": 5, "name": "property_company"}, "property_firstname": {"type": "STRING", "comment": null, "index": 6, "name": "property_firstname"}, "property_lastname": {"type": "STRING", "comment": null, "index": 7, "name": "property_lastname"}, "property_email_1": {"type": "STRING", "comment": null, "index": 8, "name": "property_email_1"}, "property_createdate": {"type": "DATETIME", "comment": null, "index": 9, "name": "property_createdate"}, "property_jobtitle": {"type": "INT64", "comment": null, "index": 10, "name": "property_jobtitle"}, "property_annualrevenue": {"type": "INT64", "comment": null, "index": 11, "name": "property_annualrevenue"}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 3565.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 22.0, "description": "Approximate count of rows in this table", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.hubspot_source_integration_tests.contact_data"}, "model.hubspot_source.stg_hubspot__email_event_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "stg_hubspot__email_event_tmp", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "comment": null, "index": 1, "name": "id"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 2, "name": "_fivetran_synced"}, "app_id": {"type": "INT64", "comment": null, "index": 3, "name": "app_id"}, "caused_by_created": {"type": "INT64", "comment": null, "index": 4, "name": "caused_by_created"}, "caused_by_id": {"type": "INT64", "comment": null, "index": 5, "name": "caused_by_id"}, "created": {"type": "STRING", "comment": null, "index": 6, "name": "created"}, "email_campaign_id": {"type": "INT64", "comment": null, "index": 7, "name": "email_campaign_id"}, "obsoleted_by_created": {"type": "INT64", "comment": null, "index": 8, "name": "obsoleted_by_created"}, "obsoleted_by_id": {"type": "INT64", "comment": null, "index": 9, "name": "obsoleted_by_id"}, "portal_id": {"type": "INT64", "comment": null, "index": 10, "name": "portal_id"}, "sent_by_created": {"type": "STRING", "comment": null, "index": 11, "name": "sent_by_created"}, "sent_by_id": {"type": "STRING", "comment": null, "index": 12, "name": "sent_by_id"}, "type": {"type": "STRING", "comment": null, "index": 13, "name": "type"}, "filtered_event": {"type": "BOOL", "comment": null, "index": 14, "name": "filtered_event"}, "recipient": {"type": "STRING", "comment": null, "index": 15, "name": "recipient"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__email_event_tmp"}, "seed.hubspot_source_integration_tests.email_event_sent_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "email_event_sent_data", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "comment": null, "index": 1, "name": "id"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 2, "name": "_fivetran_synced"}, "bcc": {"type": "STRING", "comment": null, "index": 3, "name": "bcc"}, "cc": {"type": "STRING", "comment": null, "index": 4, "name": "cc"}, "from": {"type": "STRING", "comment": null, "index": 5, "name": "from"}, "reply_to": {"type": "STRING", "comment": null, "index": 6, "name": "reply_to"}, "subject": {"type": "STRING", "comment": null, "index": 7, "name": "subject"}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 19700.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.hubspot_source_integration_tests.email_event_sent_data"}, "seed.hubspot_source_integration_tests.deal_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "deal_data", "comment": null, "owner": null}, "columns": {"deal_id": {"type": "INT64", "comment": null, "index": 1, "name": "deal_id"}, "is_deleted": {"type": "BOOL", "comment": null, "index": 2, "name": "is_deleted"}, "deal_pipeline_id": {"type": "INT64", "comment": null, "index": 3, "name": "deal_pipeline_id"}, "deal_pipeline_stage_id": {"type": "INT64", "comment": null, "index": 4, "name": "deal_pipeline_stage_id"}, "owner_id": {"type": "INT64", "comment": null, "index": 5, "name": "owner_id"}, "portal_id": {"type": "INT64", "comment": null, "index": 6, "name": "portal_id"}, "property_dealname": {"type": "STRING", "comment": null, "index": 7, "name": "property_dealname"}, "property_description": {"type": "INT64", "comment": null, "index": 8, "name": "property_description"}, "property_amount": {"type": "INT64", "comment": null, "index": 9, "name": "property_amount"}, "property_closedate": {"type": "INT64", "comment": null, "index": 10, "name": "property_closedate"}, "property_createdate": {"type": "DATETIME", "comment": null, "index": 11, "name": "property_createdate"}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 2772.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 44.0, "description": "Approximate count of rows in this table", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.hubspot_source_integration_tests.deal_data"}, "seed.hubspot_source_integration_tests.email_event_bounce_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "email_event_bounce_data", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "comment": null, "index": 1, "name": "id"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 2, "name": "_fivetran_synced"}, "category": {"type": "STRING", "comment": null, "index": 3, "name": "category"}, "status": {"type": "INT64", "comment": null, "index": 4, "name": "status"}, "response": {"type": "STRING", "comment": null, "index": 5, "name": "response"}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 11265.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.hubspot_source_integration_tests.email_event_bounce_data"}, "model.hubspot_source.stg_hubspot__engagement_task": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "stg_hubspot__engagement_task", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "comment": null, "index": 1, "name": "_fivetran_synced"}, "task_note": {"type": "STRING", "comment": null, "index": 2, "name": "task_note"}, "completion_timestamp": {"type": "INT64", "comment": null, "index": 3, "name": "completion_timestamp"}, "engagement_id": {"type": "INT64", "comment": null, "index": 4, "name": "engagement_id"}, "for_object_type": {"type": "STRING", "comment": null, "index": 5, "name": "for_object_type"}, "is_all_day": {"type": "INT64", "comment": null, "index": 6, "name": "is_all_day"}, "priority": {"type": "STRING", "comment": null, "index": 7, "name": "priority"}, "probability_to_complete": {"type": "INT64", "comment": null, "index": 8, "name": "probability_to_complete"}, "task_status": {"type": "STRING", "comment": null, "index": 9, "name": "task_status"}, "task_subject": {"type": "STRING", "comment": null, "index": 10, "name": "task_subject"}, "task_type": {"type": "STRING", "comment": null, "index": 11, "name": "task_type"}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 9092.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__engagement_task"}, "seed.hubspot_source_integration_tests.email_event_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "email_event_data", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "comment": null, "index": 1, "name": "id"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 2, "name": "_fivetran_synced"}, "app_id": {"type": "INT64", "comment": null, "index": 3, "name": "app_id"}, "caused_by_created": {"type": "INT64", "comment": null, "index": 4, "name": "caused_by_created"}, "caused_by_id": {"type": "INT64", "comment": null, "index": 5, "name": "caused_by_id"}, "created": {"type": "STRING", "comment": null, "index": 6, "name": "created"}, "email_campaign_id": {"type": "INT64", "comment": null, "index": 7, "name": "email_campaign_id"}, "obsoleted_by_created": {"type": "INT64", "comment": null, "index": 8, "name": "obsoleted_by_created"}, "obsoleted_by_id": {"type": "INT64", "comment": null, "index": 9, "name": "obsoleted_by_id"}, "portal_id": {"type": "INT64", "comment": null, "index": 10, "name": "portal_id"}, "sent_by_created": {"type": "STRING", "comment": null, "index": 11, "name": "sent_by_created"}, "sent_by_id": {"type": "STRING", "comment": null, "index": 12, "name": "sent_by_id"}, "type": {"type": "STRING", "comment": null, "index": 13, "name": "type"}, "filtered_event": {"type": "BOOL", "comment": null, "index": 14, "name": "filtered_event"}, "recipient": {"type": "STRING", "comment": null, "index": 15, "name": "recipient"}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 22016.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.hubspot_source_integration_tests.email_event_data"}, "model.hubspot_source.stg_hubspot__engagement": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "stg_hubspot__engagement", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "comment": null, "index": 1, "name": "_fivetran_synced"}, "is_active": {"type": "BOOL", "comment": null, "index": 2, "name": "is_active"}, "activity_type": {"type": "INT64", "comment": null, "index": 3, "name": "activity_type"}, "created_timestamp": {"type": "STRING", "comment": null, "index": 4, "name": "created_timestamp"}, "engagement_id": {"type": "INT64", "comment": null, "index": 5, "name": "engagement_id"}, "last_updated_timestamp": {"type": "STRING", "comment": null, "index": 6, "name": "last_updated_timestamp"}, "owner_id": {"type": "INT64", "comment": null, "index": 7, "name": "owner_id"}, "portal_id": {"type": "INT64", "comment": null, "index": 8, "name": "portal_id"}, "occurred_timestamp": {"type": "STRING", "comment": null, "index": 9, "name": "occurred_timestamp"}, "engagement_type": {"type": "STRING", "comment": null, "index": 10, "name": "engagement_type"}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 14300.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__engagement"}, "model.hubspot_source.stg_hubspot__contact_list": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "stg_hubspot__contact_list", "comment": null, "owner": null}, "columns": {"_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 1, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 2, "name": "_fivetran_synced"}, "created_timestamp": {"type": "STRING", "comment": null, "index": 3, "name": "created_timestamp"}, "is_deletable": {"type": "BOOL", "comment": null, "index": 4, "name": "is_deletable"}, "is_dynamic": {"type": "BOOL", "comment": null, "index": 5, "name": "is_dynamic"}, "contact_list_id": {"type": "INT64", "comment": null, "index": 6, "name": "contact_list_id"}, "metadata_error": {"type": "INT64", "comment": null, "index": 7, "name": "metadata_error"}, "metadata_last_processing_state_change_at": {"type": "STRING", "comment": null, "index": 8, "name": "metadata_last_processing_state_change_at"}, "metadata_last_size_change_at": {"type": "STRING", "comment": null, "index": 9, "name": "metadata_last_size_change_at"}, "metadata_processing": {"type": "STRING", "comment": null, "index": 10, "name": "metadata_processing"}, "metadata_size": {"type": "INT64", "comment": null, "index": 11, "name": "metadata_size"}, "contact_list_name": {"type": "STRING", "comment": null, "index": 12, "name": "contact_list_name"}, "portal_id": {"type": "INT64", "comment": null, "index": 13, "name": "portal_id"}, "updated_timestamp": {"type": "STRING", "comment": null, "index": 14, "name": "updated_timestamp"}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 12196.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 60.0, "description": "Approximate count of rows in this table", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__contact_list"}, "seed.hubspot_source_integration_tests.engagement_contact_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "engagement_contact_data", "comment": null, "owner": null}, "columns": {"contact_id": {"type": "INT64", "comment": null, "index": 1, "name": "contact_id"}, "engagement_id": {"type": "INT64", "comment": null, "index": 2, "name": "engagement_id"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 3, "name": "_fivetran_synced"}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 4472.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.hubspot_source_integration_tests.engagement_contact_data"}, "seed.hubspot_source_integration_tests.contact_list_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "contact_list_data", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 2, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 3, "name": "_fivetran_synced"}, "created_at": {"type": "STRING", "comment": null, "index": 4, "name": "created_at"}, "deleteable": {"type": "BOOL", "comment": null, "index": 5, "name": "deleteable"}, "dynamic": {"type": "BOOL", "comment": null, "index": 6, "name": "dynamic"}, "metadata_error": {"type": "INT64", "comment": null, "index": 7, "name": "metadata_error"}, "metadata_last_processing_state_change_at": {"type": "STRING", "comment": null, "index": 8, "name": "metadata_last_processing_state_change_at"}, "metadata_last_size_change_at": {"type": "STRING", "comment": null, "index": 9, "name": "metadata_last_size_change_at"}, "metadata_processing": {"type": "STRING", "comment": null, "index": 10, "name": "metadata_processing"}, "metadata_size": {"type": "INT64", "comment": null, "index": 11, "name": "metadata_size"}, "offset": {"type": "INT64", "comment": null, "index": 12, "name": "offset"}, "portal_id": {"type": "INT64", "comment": null, "index": 13, "name": "portal_id"}, "updated_at": {"type": "STRING", "comment": null, "index": 14, "name": "updated_at"}, "name": {"type": "STRING", "comment": null, "index": 15, "name": "name"}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 12196.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 60.0, "description": "Approximate count of rows in this table", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.hubspot_source_integration_tests.contact_list_data"}, "seed.hubspot_source_integration_tests.engagement_company_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "engagement_company_data", "comment": null, "owner": null}, "columns": {"company_id": {"type": "INT64", "comment": null, "index": 1, "name": "company_id"}, "engagement_id": {"type": "INT64", "comment": null, "index": 2, "name": "engagement_id"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 3, "name": "_fivetran_synced"}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 4500.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.hubspot_source_integration_tests.engagement_company_data"}, "seed.hubspot_source_integration_tests.email_event_deferred_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "email_event_deferred_data", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "comment": null, "index": 1, "name": "id"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 2, "name": "_fivetran_synced"}, "attempt": {"type": "INT64", "comment": null, "index": 3, "name": "attempt"}, "response": {"type": "INT64", "comment": null, "index": 4, "name": "response"}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 7500.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.hubspot_source_integration_tests.email_event_deferred_data"}, "model.hubspot_source.stg_hubspot__engagement_meeting_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "stg_hubspot__engagement_meeting_tmp", "comment": null, "owner": null}, "columns": {"engagement_id": {"type": "INT64", "comment": null, "index": 1, "name": "engagement_id"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 2, "name": "_fivetran_synced"}, "created_from_link_id": {"type": "INT64", "comment": null, "index": 3, "name": "created_from_link_id"}, "end_time": {"type": "STRING", "comment": null, "index": 4, "name": "end_time"}, "pre_meeting_prospect_reminders": {"type": "STRING", "comment": null, "index": 5, "name": "pre_meeting_prospect_reminders"}, "source": {"type": "STRING", "comment": null, "index": 6, "name": "source"}, "source_id": {"type": "STRING", "comment": null, "index": 7, "name": "source_id"}, "start_time": {"type": "STRING", "comment": null, "index": 8, "name": "start_time"}, "web_conference_meeting_id": {"type": "INT64", "comment": null, "index": 9, "name": "web_conference_meeting_id"}, "meeting_outcome": {"type": "INT64", "comment": null, "index": 10, "name": "meeting_outcome"}, "body": {"type": "STRING", "comment": null, "index": 11, "name": "body"}, "external_url": {"type": "STRING", "comment": null, "index": 12, "name": "external_url"}, "title": {"type": "STRING", "comment": null, "index": 13, "name": "title"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__engagement_meeting_tmp"}, "model.hubspot_source.stg_hubspot__email_event_forward": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "stg_hubspot__email_event_forward", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "comment": null, "index": 1, "name": "_fivetran_synced"}, "browser": {"type": "STRING", "comment": null, "index": 2, "name": "browser"}, "event_id": {"type": "STRING", "comment": null, "index": 3, "name": "event_id"}, "ip_address": {"type": "INT64", "comment": null, "index": 4, "name": "ip_address"}, "geo_location": {"type": "STRING", "comment": null, "index": 5, "name": "geo_location"}, "user_agent": {"type": "STRING", "comment": null, "index": 6, "name": "user_agent"}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 14500.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__email_event_forward"}, "model.hubspot_source.stg_hubspot__email_event_status_change": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "stg_hubspot__email_event_status_change", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "comment": null, "index": 1, "name": "_fivetran_synced"}, "is_bounced": {"type": "INT64", "comment": null, "index": 2, "name": "is_bounced"}, "event_id": {"type": "STRING", "comment": null, "index": 3, "name": "event_id"}, "subscription_status": {"type": "STRING", "comment": null, "index": 4, "name": "subscription_status"}, "requested_by_email": {"type": "INT64", "comment": null, "index": 5, "name": "requested_by_email"}, "change_source": {"type": "STRING", "comment": null, "index": 6, "name": "change_source"}, "subscriptions": {"type": "STRING", "comment": null, "index": 7, "name": "subscriptions"}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 10300.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__email_event_status_change"}, "model.hubspot_source.stg_hubspot__engagement_meeting": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "stg_hubspot__engagement_meeting", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "comment": null, "index": 1, "name": "_fivetran_synced"}, "meeting_notes": {"type": "STRING", "comment": null, "index": 2, "name": "meeting_notes"}, "created_from_link_id": {"type": "INT64", "comment": null, "index": 3, "name": "created_from_link_id"}, "end_timestamp": {"type": "STRING", "comment": null, "index": 4, "name": "end_timestamp"}, "engagement_id": {"type": "INT64", "comment": null, "index": 5, "name": "engagement_id"}, "external_url": {"type": "STRING", "comment": null, "index": 6, "name": "external_url"}, "meeting_outcome": {"type": "INT64", "comment": null, "index": 7, "name": "meeting_outcome"}, "pre_meeting_prospect_reminders": {"type": "STRING", "comment": null, "index": 8, "name": "pre_meeting_prospect_reminders"}, "source": {"type": "STRING", "comment": null, "index": 9, "name": "source"}, "source_id": {"type": "STRING", "comment": null, "index": 10, "name": "source_id"}, "start_timestamp": {"type": "STRING", "comment": null, "index": 11, "name": "start_timestamp"}, "meeting_title": {"type": "STRING", "comment": null, "index": 12, "name": "meeting_title"}, "web_conference_meeting_id": {"type": "INT64", "comment": null, "index": 13, "name": "web_conference_meeting_id"}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 22845.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__engagement_meeting"}, "model.hubspot_source.stg_hubspot__ticket_property_history": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "stg_hubspot__ticket_property_history", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "comment": null, "index": 1, "name": "_fivetran_synced"}, "ticket_id": {"type": "INT64", "comment": null, "index": 2, "name": "ticket_id"}, "field_name": {"type": "STRING", "comment": null, "index": 3, "name": "field_name"}, "change_source": {"type": "STRING", "comment": null, "index": 4, "name": "change_source"}, "change_source_id": {"type": "STRING", "comment": null, "index": 5, "name": "change_source_id"}, "change_timestamp": {"type": "STRING", "comment": null, "index": 6, "name": "change_timestamp"}, "new_value": {"type": "STRING", "comment": null, "index": 7, "name": "new_value"}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1185.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 11.0, "description": "Approximate count of rows in this table", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__ticket_property_history"}, "seed.hubspot_source_integration_tests.contact_property_history_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "contact_property_history_data", "comment": null, "owner": null}, "columns": {"contact_id": {"type": "INT64", "comment": null, "index": 1, "name": "contact_id"}, "timestamp": {"type": "STRING", "comment": null, "index": 2, "name": "timestamp"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 3, "name": "_fivetran_synced"}, "source": {"type": "STRING", "comment": null, "index": 4, "name": "source"}, "name": {"type": "STRING", "comment": null, "index": 5, "name": "name"}, "value": {"type": "STRING", "comment": null, "index": 6, "name": "value"}, "source_id": {"type": "STRING", "comment": null, "index": 7, "name": "source_id"}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 14773.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.hubspot_source_integration_tests.contact_property_history_data"}, "seed.hubspot_source_integration_tests.deal_pipeline_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "deal_pipeline_data", "comment": null, "owner": null}, "columns": {"pipeline_id": {"type": "STRING", "comment": null, "index": 1, "name": "pipeline_id"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 2, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 3, "name": "_fivetran_synced"}, "active": {"type": "BOOL", "comment": null, "index": 4, "name": "active"}, "display_order": {"type": "INT64", "comment": null, "index": 5, "name": "display_order"}, "label": {"type": "STRING", "comment": null, "index": 6, "name": "label"}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 509.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 6.0, "description": "Approximate count of rows in this table", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.hubspot_source_integration_tests.deal_pipeline_data"}, "model.hubspot_source.stg_hubspot__email_event_bounce": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "stg_hubspot__email_event_bounce", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "comment": null, "index": 1, "name": "_fivetran_synced"}, "bounce_category": {"type": "STRING", "comment": null, "index": 2, "name": "bounce_category"}, "event_id": {"type": "STRING", "comment": null, "index": 3, "name": "event_id"}, "returned_response": {"type": "STRING", "comment": null, "index": 4, "name": "returned_response"}, "returned_status": {"type": "INT64", "comment": null, "index": 5, "name": "returned_status"}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 11265.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__email_event_bounce"}, "model.hubspot_source.stg_hubspot__contact": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "stg_hubspot__contact", "comment": null, "owner": null}, "columns": {"_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 1, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 2, "name": "_fivetran_synced"}, "email": {"type": "STRING", "comment": null, "index": 3, "name": "email"}, "contact_id": {"type": "INT64", "comment": null, "index": 4, "name": "contact_id"}, "contact_company": {"type": "STRING", "comment": null, "index": 5, "name": "contact_company"}, "first_name": {"type": "STRING", "comment": null, "index": 6, "name": "first_name"}, "last_name": {"type": "STRING", "comment": null, "index": 7, "name": "last_name"}, "created_at": {"type": "DATETIME", "comment": null, "index": 8, "name": "created_at"}, "job_title": {"type": "INT64", "comment": null, "index": 9, "name": "job_title"}, "company_annual_revenue": {"type": "INT64", "comment": null, "index": 10, "name": "company_annual_revenue"}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 2817.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 22.0, "description": "Approximate count of rows in this table", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__contact"}, "model.hubspot_source.stg_hubspot__engagement_contact": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "stg_hubspot__engagement_contact", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "comment": null, "index": 1, "name": "_fivetran_synced"}, "contact_id": {"type": "INT64", "comment": null, "index": 2, "name": "contact_id"}, "engagement_id": {"type": "INT64", "comment": null, "index": 3, "name": "engagement_id"}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 4472.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__engagement_contact"}, "model.hubspot_source.stg_hubspot__deal_pipeline": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "stg_hubspot__deal_pipeline", "comment": null, "owner": null}, "columns": {"_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 1, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 2, "name": "_fivetran_synced"}, "is_active": {"type": "BOOL", "comment": null, "index": 3, "name": "is_active"}, "display_order": {"type": "INT64", "comment": null, "index": 4, "name": "display_order"}, "pipeline_label": {"type": "STRING", "comment": null, "index": 5, "name": "pipeline_label"}, "deal_pipeline_id": {"type": "STRING", "comment": null, "index": 6, "name": "deal_pipeline_id"}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 509.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 6.0, "description": "Approximate count of rows in this table", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__deal_pipeline"}, "model.hubspot_source.stg_hubspot__email_event_deferred": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "stg_hubspot__email_event_deferred", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "comment": null, "index": 1, "name": "_fivetran_synced"}, "attempt_number": {"type": "INT64", "comment": null, "index": 2, "name": "attempt_number"}, "event_id": {"type": "STRING", "comment": null, "index": 3, "name": "event_id"}, "returned_response": {"type": "INT64", "comment": null, "index": 4, "name": "returned_response"}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 7500.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__email_event_deferred"}, "model.hubspot_source.stg_hubspot__ticket_property_history_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "stg_hubspot__ticket_property_history_tmp", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "comment": null, "index": 1, "name": "_fivetran_synced"}, "ticket_id": {"type": "INT64", "comment": null, "index": 2, "name": "ticket_id"}, "name": {"type": "STRING", "comment": null, "index": 3, "name": "name"}, "source": {"type": "STRING", "comment": null, "index": 4, "name": "source"}, "source_id": {"type": "STRING", "comment": null, "index": 5, "name": "source_id"}, "timestamp_instant": {"type": "STRING", "comment": null, "index": 6, "name": "timestamp_instant"}, "value": {"type": "STRING", "comment": null, "index": 7, "name": "value"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__ticket_property_history_tmp"}, "model.hubspot_source.stg_hubspot__engagement_task_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "stg_hubspot__engagement_task_tmp", "comment": null, "owner": null}, "columns": {"engagement_id": {"type": "INT64", "comment": null, "index": 1, "name": "engagement_id"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 2, "name": "_fivetran_synced"}, "completion_date": {"type": "INT64", "comment": null, "index": 3, "name": "completion_date"}, "for_object_type": {"type": "STRING", "comment": null, "index": 4, "name": "for_object_type"}, "is_all_day": {"type": "INT64", "comment": null, "index": 5, "name": "is_all_day"}, "priority": {"type": "STRING", "comment": null, "index": 6, "name": "priority"}, "probability_to_complete": {"type": "INT64", "comment": null, "index": 7, "name": "probability_to_complete"}, "status": {"type": "STRING", "comment": null, "index": 8, "name": "status"}, "subject": {"type": "STRING", "comment": null, "index": 9, "name": "subject"}, "task_type": {"type": "STRING", "comment": null, "index": 10, "name": "task_type"}, "body": {"type": "STRING", "comment": null, "index": 11, "name": "body"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__engagement_task_tmp"}, "model.hubspot_source.stg_hubspot__owner_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "stg_hubspot__owner_tmp", "comment": null, "owner": null}, "columns": {"owner_id": {"type": "INT64", "comment": null, "index": 1, "name": "owner_id"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 2, "name": "_fivetran_synced"}, "created_at": {"type": "STRING", "comment": null, "index": 3, "name": "created_at"}, "portal_id": {"type": "INT64", "comment": null, "index": 4, "name": "portal_id"}, "type": {"type": "STRING", "comment": null, "index": 5, "name": "type"}, "updated_at": {"type": "STRING", "comment": null, "index": 6, "name": "updated_at"}, "email": {"type": "STRING", "comment": null, "index": 7, "name": "email"}, "first_name": {"type": "STRING", "comment": null, "index": 8, "name": "first_name"}, "last_name": {"type": "STRING", "comment": null, "index": 9, "name": "last_name"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__owner_tmp"}, "model.hubspot_source.stg_hubspot__email_event_deferred_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "stg_hubspot__email_event_deferred_tmp", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "comment": null, "index": 1, "name": "id"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 2, "name": "_fivetran_synced"}, "attempt": {"type": "INT64", "comment": null, "index": 3, "name": "attempt"}, "response": {"type": "INT64", "comment": null, "index": 4, "name": "response"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__email_event_deferred_tmp"}, "model.hubspot_source.stg_hubspot__engagement_company_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "stg_hubspot__engagement_company_tmp", "comment": null, "owner": null}, "columns": {"company_id": {"type": "INT64", "comment": null, "index": 1, "name": "company_id"}, "engagement_id": {"type": "INT64", "comment": null, "index": 2, "name": "engagement_id"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 3, "name": "_fivetran_synced"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__engagement_company_tmp"}, "model.hubspot_source.stg_hubspot__email_event_spam_report_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "stg_hubspot__email_event_spam_report_tmp", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "comment": null, "index": 1, "name": "id"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 2, "name": "_fivetran_synced"}, "ip_address": {"type": "INT64", "comment": null, "index": 3, "name": "ip_address"}, "user_agent": {"type": "INT64", "comment": null, "index": 4, "name": "user_agent"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__email_event_spam_report_tmp"}, "model.hubspot_source.stg_hubspot__email_event_click_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "stg_hubspot__email_event_click_tmp", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "comment": null, "index": 1, "name": "id"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 2, "name": "_fivetran_synced"}, "referer": {"type": "INT64", "comment": null, "index": 3, "name": "referer"}, "browser": {"type": "STRING", "comment": null, "index": 4, "name": "browser"}, "location": {"type": "STRING", "comment": null, "index": 5, "name": "location"}, "ip_address": {"type": "INT64", "comment": null, "index": 6, "name": "ip_address"}, "url": {"type": "STRING", "comment": null, "index": 7, "name": "url"}, "user_agent": {"type": "STRING", "comment": null, "index": 8, "name": "user_agent"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__email_event_click_tmp"}, "model.hubspot_source.stg_hubspot__engagement_contact_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "stg_hubspot__engagement_contact_tmp", "comment": null, "owner": null}, "columns": {"contact_id": {"type": "INT64", "comment": null, "index": 1, "name": "contact_id"}, "engagement_id": {"type": "INT64", "comment": null, "index": 2, "name": "engagement_id"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 3, "name": "_fivetran_synced"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__engagement_contact_tmp"}, "seed.hubspot_source_integration_tests.ticket_pipeline_stage_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "ticket_pipeline_stage_data", "comment": null, "owner": null}, "columns": {"stage_id": {"type": "INT64", "comment": null, "index": 1, "name": "stage_id"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 2, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "active": {"type": "BOOL", "comment": null, "index": 4, "name": "active"}, "display_order": {"type": "INT64", "comment": null, "index": 5, "name": "display_order"}, "is_closed": {"type": "BOOL", "comment": null, "index": 6, "name": "is_closed"}, "label": {"type": "STRING", "comment": null, "index": 7, "name": "label"}, "pipeline_id": {"type": "INT64", "comment": null, "index": 8, "name": "pipeline_id"}, "ticket_state": {"type": "STRING", "comment": null, "index": 9, "name": "ticket_state"}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 825.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 11.0, "description": "Approximate count of rows in this table", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.hubspot_source_integration_tests.ticket_pipeline_stage_data"}, "seed.hubspot_source_integration_tests.contact_list_member_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "contact_list_member_data", "comment": null, "owner": null}, "columns": {"contact_id": {"type": "INT64", "comment": null, "index": 1, "name": "contact_id"}, "contact_list_id": {"type": "INT64", "comment": null, "index": 2, "name": "contact_list_id"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 3, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 4, "name": "_fivetran_synced"}, "added_at": {"type": "STRING", "comment": null, "index": 5, "name": "added_at"}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 7500.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.hubspot_source_integration_tests.contact_list_member_data"}, "seed.hubspot_source_integration_tests.ticket_engagement_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "ticket_engagement_data", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "comment": null, "index": 1, "name": "_fivetran_synced"}, "ticket_id": {"type": "INT64", "comment": null, "index": 2, "name": "ticket_id"}, "engagement_id": {"type": "INT64", "comment": null, "index": 3, "name": "engagement_id"}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 369.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 9.0, "description": "Approximate count of rows in this table", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.hubspot_source_integration_tests.ticket_engagement_data"}, "seed.hubspot_source_integration_tests.ticket_property_history_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "ticket_property_history_data", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "comment": null, "index": 1, "name": "_fivetran_synced"}, "ticket_id": {"type": "INT64", "comment": null, "index": 2, "name": "ticket_id"}, "name": {"type": "STRING", "comment": null, "index": 3, "name": "name"}, "source": {"type": "STRING", "comment": null, "index": 4, "name": "source"}, "source_id": {"type": "STRING", "comment": null, "index": 5, "name": "source_id"}, "timestamp_instant": {"type": "STRING", "comment": null, "index": 6, "name": "timestamp_instant"}, "value": {"type": "STRING", "comment": null, "index": 7, "name": "value"}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1185.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 11.0, "description": "Approximate count of rows in this table", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.hubspot_source_integration_tests.ticket_property_history_data"}, "model.hubspot_source.stg_hubspot__engagement_deal_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "stg_hubspot__engagement_deal_tmp", "comment": null, "owner": null}, "columns": {"deal_id": {"type": "INT64", "comment": null, "index": 1, "name": "deal_id"}, "engagement_id": {"type": "INT64", "comment": null, "index": 2, "name": "engagement_id"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 3, "name": "_fivetran_synced"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__engagement_deal_tmp"}, "seed.hubspot_source_integration_tests.engagement_task_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "engagement_task_data", "comment": null, "owner": null}, "columns": {"engagement_id": {"type": "INT64", "comment": null, "index": 1, "name": "engagement_id"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 2, "name": "_fivetran_synced"}, "completion_date": {"type": "INT64", "comment": null, "index": 3, "name": "completion_date"}, "for_object_type": {"type": "STRING", "comment": null, "index": 4, "name": "for_object_type"}, "is_all_day": {"type": "INT64", "comment": null, "index": 5, "name": "is_all_day"}, "priority": {"type": "STRING", "comment": null, "index": 6, "name": "priority"}, "probability_to_complete": {"type": "INT64", "comment": null, "index": 7, "name": "probability_to_complete"}, "status": {"type": "STRING", "comment": null, "index": 8, "name": "status"}, "subject": {"type": "STRING", "comment": null, "index": 9, "name": "subject"}, "task_type": {"type": "STRING", "comment": null, "index": 10, "name": "task_type"}, "body": {"type": "STRING", "comment": null, "index": 11, "name": "body"}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 9092.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.hubspot_source_integration_tests.engagement_task_data"}, "model.hubspot_source.stg_hubspot__deal_property_history_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "stg_hubspot__deal_property_history_tmp", "comment": null, "owner": null}, "columns": {"deal_id": {"type": "INT64", "comment": null, "index": 1, "name": "deal_id"}, "timestamp": {"type": "STRING", "comment": null, "index": 2, "name": "timestamp"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 3, "name": "_fivetran_synced"}, "source": {"type": "STRING", "comment": null, "index": 4, "name": "source"}, "name": {"type": "STRING", "comment": null, "index": 5, "name": "name"}, "source_id": {"type": "STRING", "comment": null, "index": 6, "name": "source_id"}, "value": {"type": "STRING", "comment": null, "index": 7, "name": "value"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__deal_property_history_tmp"}, "seed.hubspot_source_integration_tests.engagement_note_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "engagement_note_data", "comment": null, "owner": null}, "columns": {"engagement_id": {"type": "INT64", "comment": null, "index": 1, "name": "engagement_id"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 2, "name": "_fivetran_synced"}, "body": {"type": "STRING", "comment": null, "index": 3, "name": "body"}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 6300.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.hubspot_source_integration_tests.engagement_note_data"}, "model.hubspot_source.stg_hubspot__ticket_pipeline_stage_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "stg_hubspot__ticket_pipeline_stage_tmp", "comment": null, "owner": null}, "columns": {"stage_id": {"type": "INT64", "comment": null, "index": 1, "name": "stage_id"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 2, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "active": {"type": "BOOL", "comment": null, "index": 4, "name": "active"}, "display_order": {"type": "INT64", "comment": null, "index": 5, "name": "display_order"}, "is_closed": {"type": "BOOL", "comment": null, "index": 6, "name": "is_closed"}, "label": {"type": "STRING", "comment": null, "index": 7, "name": "label"}, "pipeline_id": {"type": "INT64", "comment": null, "index": 8, "name": "pipeline_id"}, "ticket_state": {"type": "STRING", "comment": null, "index": 9, "name": "ticket_state"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__ticket_pipeline_stage_tmp"}, "model.hubspot_source.stg_hubspot__contact_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "stg_hubspot__contact_tmp", "comment": null, "owner": null}, "columns": {"_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 1, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 2, "name": "_fivetran_synced"}, "property_email": {"type": "STRING", "comment": null, "index": 3, "name": "property_email"}, "id": {"type": "INT64", "comment": null, "index": 4, "name": "id"}, "property_company": {"type": "STRING", "comment": null, "index": 5, "name": "property_company"}, "property_firstname": {"type": "STRING", "comment": null, "index": 6, "name": "property_firstname"}, "property_lastname": {"type": "STRING", "comment": null, "index": 7, "name": "property_lastname"}, "property_email_1": {"type": "STRING", "comment": null, "index": 8, "name": "property_email_1"}, "property_createdate": {"type": "DATETIME", "comment": null, "index": 9, "name": "property_createdate"}, "property_jobtitle": {"type": "INT64", "comment": null, "index": 10, "name": "property_jobtitle"}, "property_annualrevenue": {"type": "INT64", "comment": null, "index": 11, "name": "property_annualrevenue"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__contact_tmp"}, "model.hubspot_source.stg_hubspot__deal_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "stg_hubspot__deal_tmp", "comment": null, "owner": null}, "columns": {"deal_id": {"type": "INT64", "comment": null, "index": 1, "name": "deal_id"}, "is_deleted": {"type": "BOOL", "comment": null, "index": 2, "name": "is_deleted"}, "deal_pipeline_id": {"type": "INT64", "comment": null, "index": 3, "name": "deal_pipeline_id"}, "deal_pipeline_stage_id": {"type": "INT64", "comment": null, "index": 4, "name": "deal_pipeline_stage_id"}, "owner_id": {"type": "INT64", "comment": null, "index": 5, "name": "owner_id"}, "portal_id": {"type": "INT64", "comment": null, "index": 6, "name": "portal_id"}, "property_dealname": {"type": "STRING", "comment": null, "index": 7, "name": "property_dealname"}, "property_description": {"type": "INT64", "comment": null, "index": 8, "name": "property_description"}, "property_amount": {"type": "INT64", "comment": null, "index": 9, "name": "property_amount"}, "property_closedate": {"type": "INT64", "comment": null, "index": 10, "name": "property_closedate"}, "property_createdate": {"type": "DATETIME", "comment": null, "index": 11, "name": "property_createdate"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__deal_tmp"}, "seed.hubspot_source_integration_tests.ticket_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "ticket_data", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 1, "name": "_fivetran_synced"}, "id": {"type": "INT64", "comment": null, "index": 2, "name": "id"}, "is_deleted": {"type": "BOOL", "comment": null, "index": 3, "name": "is_deleted"}, "property_closed_date": {"type": "DATETIME", "comment": null, "index": 4, "name": "property_closed_date"}, "property_createdate": {"type": "DATETIME", "comment": null, "index": 5, "name": "property_createdate"}, "property_first_agent_reply_date": {"type": "DATETIME", "comment": null, "index": 6, "name": "property_first_agent_reply_date"}, "property_hs_pipeline": {"type": "INT64", "comment": null, "index": 7, "name": "property_hs_pipeline"}, "property_hs_pipeline_stage": {"type": "INT64", "comment": null, "index": 8, "name": "property_hs_pipeline_stage"}, "property_hs_ticket_category": {"type": "STRING", "comment": null, "index": 9, "name": "property_hs_ticket_category"}, "property_hs_ticket_priority": {"type": "INT64", "comment": null, "index": 10, "name": "property_hs_ticket_priority"}, "property_hubspot_owner_id": {"type": "INT64", "comment": null, "index": 11, "name": "property_hubspot_owner_id"}, "property_subject": {"type": "STRING", "comment": null, "index": 12, "name": "property_subject"}, "property_content": {"type": "STRING", "comment": null, "index": 13, "name": "property_content"}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 2918.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 24.0, "description": "Approximate count of rows in this table", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.hubspot_source_integration_tests.ticket_data"}, "seed.hubspot_source_integration_tests.ticket_deal_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "ticket_deal_data", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "comment": null, "index": 1, "name": "_fivetran_synced"}, "ticket_id": {"type": "INT64", "comment": null, "index": 2, "name": "ticket_id"}, "deal_id": {"type": "INT64", "comment": null, "index": 3, "name": "deal_id"}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 369.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 9.0, "description": "Approximate count of rows in this table", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.hubspot_source_integration_tests.ticket_deal_data"}, "model.hubspot_source.stg_hubspot__ticket_company": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "stg_hubspot__ticket_company", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "comment": null, "index": 1, "name": "_fivetran_synced"}, "ticket_id": {"type": "INT64", "comment": null, "index": 2, "name": "ticket_id"}, "company_id": {"type": "INT64", "comment": null, "index": 3, "name": "company_id"}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 369.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 9.0, "description": "Approximate count of rows in this table", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__ticket_company"}, "model.hubspot_source.stg_hubspot__contact_list_member": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "stg_hubspot__contact_list_member", "comment": null, "owner": null}, "columns": {"_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 1, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 2, "name": "_fivetran_synced"}, "added_timestamp": {"type": "STRING", "comment": null, "index": 3, "name": "added_timestamp"}, "contact_id": {"type": "INT64", "comment": null, "index": 4, "name": "contact_id"}, "contact_list_id": {"type": "INT64", "comment": null, "index": 5, "name": "contact_list_id"}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 5100.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 68.0, "description": "Approximate count of rows in this table", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__contact_list_member"}, "model.hubspot_source.stg_hubspot__email_campaign_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "stg_hubspot__email_campaign_tmp", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 2, "name": "_fivetran_synced"}, "app_id": {"type": "INT64", "comment": null, "index": 3, "name": "app_id"}, "content_id": {"type": "INT64", "comment": null, "index": 4, "name": "content_id"}, "num_included": {"type": "INT64", "comment": null, "index": 5, "name": "num_included"}, "num_queued": {"type": "INT64", "comment": null, "index": 6, "name": "num_queued"}, "sub_type": {"type": "INT64", "comment": null, "index": 7, "name": "sub_type"}, "type": {"type": "STRING", "comment": null, "index": 8, "name": "type"}, "app_name": {"type": "STRING", "comment": null, "index": 9, "name": "app_name"}, "name": {"type": "STRING", "comment": null, "index": 10, "name": "name"}, "subject": {"type": "STRING", "comment": null, "index": 11, "name": "subject"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__email_campaign_tmp"}, "model.hubspot_source.stg_hubspot__engagement_company": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "stg_hubspot__engagement_company", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "comment": null, "index": 1, "name": "_fivetran_synced"}, "company_id": {"type": "INT64", "comment": null, "index": 2, "name": "company_id"}, "engagement_id": {"type": "INT64", "comment": null, "index": 3, "name": "engagement_id"}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 4500.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__engagement_company"}, "model.hubspot_source.stg_hubspot__email_event_dropped": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "stg_hubspot__email_event_dropped", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "comment": null, "index": 1, "name": "_fivetran_synced"}, "bcc_emails": {"type": "STRING", "comment": null, "index": 2, "name": "bcc_emails"}, "cc_emails": {"type": "STRING", "comment": null, "index": 3, "name": "cc_emails"}, "drop_message": {"type": "STRING", "comment": null, "index": 4, "name": "drop_message"}, "drop_reason": {"type": "STRING", "comment": null, "index": 5, "name": "drop_reason"}, "from_email": {"type": "STRING", "comment": null, "index": 6, "name": "from_email"}, "event_id": {"type": "STRING", "comment": null, "index": 7, "name": "event_id"}, "reply_to_email": {"type": "STRING", "comment": null, "index": 8, "name": "reply_to_email"}, "email_subject": {"type": "STRING", "comment": null, "index": 9, "name": "email_subject"}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 24670.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__email_event_dropped"}, "model.hubspot_source.stg_hubspot__engagement_deal": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "stg_hubspot__engagement_deal", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "comment": null, "index": 1, "name": "_fivetran_synced"}, "deal_id": {"type": "INT64", "comment": null, "index": 2, "name": "deal_id"}, "engagement_id": {"type": "INT64", "comment": null, "index": 3, "name": "engagement_id"}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 4496.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__engagement_deal"}, "model.hubspot_source.stg_hubspot__email_campaign": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "stg_hubspot__email_campaign", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "comment": null, "index": 1, "name": "_fivetran_synced"}, "app_id": {"type": "INT64", "comment": null, "index": 2, "name": "app_id"}, "app_name": {"type": "STRING", "comment": null, "index": 3, "name": "app_name"}, "content_id": {"type": "INT64", "comment": null, "index": 4, "name": "content_id"}, "email_campaign_id": {"type": "INT64", "comment": null, "index": 5, "name": "email_campaign_id"}, "email_campaign_name": {"type": "STRING", "comment": null, "index": 6, "name": "email_campaign_name"}, "num_included": {"type": "INT64", "comment": null, "index": 7, "name": "num_included"}, "num_queued": {"type": "INT64", "comment": null, "index": 8, "name": "num_queued"}, "email_campaign_sub_type": {"type": "INT64", "comment": null, "index": 9, "name": "email_campaign_sub_type"}, "email_campaign_subject": {"type": "STRING", "comment": null, "index": 10, "name": "email_campaign_subject"}, "email_campaign_type": {"type": "STRING", "comment": null, "index": 11, "name": "email_campaign_type"}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 14726.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__email_campaign"}, "model.hubspot_source.stg_hubspot__company": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "stg_hubspot__company", "comment": null, "owner": null}, "columns": {"company_id": {"type": "INT64", "comment": null, "index": 1, "name": "company_id"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 2, "name": "_fivetran_synced"}, "company_name": {"type": "STRING", "comment": null, "index": 3, "name": "company_name"}, "description": {"type": "STRING", "comment": null, "index": 4, "name": "description"}, "created_at": {"type": "DATETIME", "comment": null, "index": 5, "name": "created_at"}, "industry": {"type": "STRING", "comment": null, "index": 6, "name": "industry"}, "street_address": {"type": "STRING", "comment": null, "index": 7, "name": "street_address"}, "street_address_2": {"type": "STRING", "comment": null, "index": 8, "name": "street_address_2"}, "city": {"type": "STRING", "comment": null, "index": 9, "name": "city"}, "state": {"type": "STRING", "comment": null, "index": 10, "name": "state"}, "country": {"type": "STRING", "comment": null, "index": 11, "name": "country"}, "company_annual_revenue": {"type": "INT64", "comment": null, "index": 12, "name": "company_annual_revenue"}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 6088.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 24.0, "description": "Approximate count of rows in this table", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__company"}, "model.hubspot_source.stg_hubspot__deal_pipeline_stage_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "stg_hubspot__deal_pipeline_stage_tmp", "comment": null, "owner": null}, "columns": {"_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 1, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 2, "name": "_fivetran_synced"}, "active": {"type": "BOOL", "comment": null, "index": 3, "name": "active"}, "closed_won": {"type": "BOOL", "comment": null, "index": 4, "name": "closed_won"}, "display_order": {"type": "INT64", "comment": null, "index": 5, "name": "display_order"}, "probability": {"type": "FLOAT64", "comment": null, "index": 6, "name": "probability"}, "stage_id": {"type": "STRING", "comment": null, "index": 7, "name": "stage_id"}, "label": {"type": "STRING", "comment": null, "index": 8, "name": "label"}, "pipeline_id": {"type": "STRING", "comment": null, "index": 9, "name": "pipeline_id"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__deal_pipeline_stage_tmp"}, "model.hubspot_source.stg_hubspot__email_event_dropped_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "stg_hubspot__email_event_dropped_tmp", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "comment": null, "index": 1, "name": "id"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 2, "name": "_fivetran_synced"}, "drop_reason": {"type": "STRING", "comment": null, "index": 3, "name": "drop_reason"}, "bcc": {"type": "STRING", "comment": null, "index": 4, "name": "bcc"}, "cc": {"type": "STRING", "comment": null, "index": 5, "name": "cc"}, "drop_message": {"type": "STRING", "comment": null, "index": 6, "name": "drop_message"}, "from": {"type": "STRING", "comment": null, "index": 7, "name": "from"}, "reply_to": {"type": "STRING", "comment": null, "index": 8, "name": "reply_to"}, "subject": {"type": "STRING", "comment": null, "index": 9, "name": "subject"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__email_event_dropped_tmp"}, "model.hubspot_source.stg_hubspot__contact_property_history": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "stg_hubspot__contact_property_history", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "comment": null, "index": 1, "name": "_fivetran_synced"}, "contact_id": {"type": "INT64", "comment": null, "index": 2, "name": "contact_id"}, "field_name": {"type": "STRING", "comment": null, "index": 3, "name": "field_name"}, "change_source": {"type": "STRING", "comment": null, "index": 4, "name": "change_source"}, "change_source_id": {"type": "STRING", "comment": null, "index": 5, "name": "change_source_id"}, "change_timestamp": {"type": "STRING", "comment": null, "index": 6, "name": "change_timestamp"}, "new_value": {"type": "STRING", "comment": null, "index": 7, "name": "new_value"}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 14773.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__contact_property_history"}, "seed.hubspot_source_integration_tests.engagement_meeting_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "engagement_meeting_data", "comment": null, "owner": null}, "columns": {"engagement_id": {"type": "INT64", "comment": null, "index": 1, "name": "engagement_id"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 2, "name": "_fivetran_synced"}, "created_from_link_id": {"type": "INT64", "comment": null, "index": 3, "name": "created_from_link_id"}, "end_time": {"type": "STRING", "comment": null, "index": 4, "name": "end_time"}, "pre_meeting_prospect_reminders": {"type": "STRING", "comment": null, "index": 5, "name": "pre_meeting_prospect_reminders"}, "source": {"type": "STRING", "comment": null, "index": 6, "name": "source"}, "source_id": {"type": "STRING", "comment": null, "index": 7, "name": "source_id"}, "start_time": {"type": "STRING", "comment": null, "index": 8, "name": "start_time"}, "web_conference_meeting_id": {"type": "INT64", "comment": null, "index": 9, "name": "web_conference_meeting_id"}, "meeting_outcome": {"type": "INT64", "comment": null, "index": 10, "name": "meeting_outcome"}, "body": {"type": "STRING", "comment": null, "index": 11, "name": "body"}, "external_url": {"type": "STRING", "comment": null, "index": 12, "name": "external_url"}, "title": {"type": "STRING", "comment": null, "index": 13, "name": "title"}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 22845.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.hubspot_source_integration_tests.engagement_meeting_data"}, "seed.hubspot_source_integration_tests.owner_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "owner_data", "comment": null, "owner": null}, "columns": {"owner_id": {"type": "INT64", "comment": null, "index": 1, "name": "owner_id"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 2, "name": "_fivetran_synced"}, "created_at": {"type": "STRING", "comment": null, "index": 3, "name": "created_at"}, "portal_id": {"type": "INT64", "comment": null, "index": 4, "name": "portal_id"}, "type": {"type": "STRING", "comment": null, "index": 5, "name": "type"}, "updated_at": {"type": "STRING", "comment": null, "index": 6, "name": "updated_at"}, "email": {"type": "STRING", "comment": null, "index": 7, "name": "email"}, "first_name": {"type": "STRING", "comment": null, "index": 8, "name": "first_name"}, "last_name": {"type": "STRING", "comment": null, "index": 9, "name": "last_name"}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 18900.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.hubspot_source_integration_tests.owner_data"}, "model.hubspot_source.stg_hubspot__email_event_bounce_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "stg_hubspot__email_event_bounce_tmp", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "comment": null, "index": 1, "name": "id"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 2, "name": "_fivetran_synced"}, "category": {"type": "STRING", "comment": null, "index": 3, "name": "category"}, "status": {"type": "INT64", "comment": null, "index": 4, "name": "status"}, "response": {"type": "STRING", "comment": null, "index": 5, "name": "response"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__email_event_bounce_tmp"}, "seed.hubspot_source_integration_tests.engagement_email_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "engagement_email_data", "comment": null, "owner": null}, "columns": {"engagement_id": {"type": "INT64", "comment": null, "index": 1, "name": "engagement_id"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 2, "name": "_fivetran_synced"}, "attached_video_id": {"type": "INT64", "comment": null, "index": 3, "name": "attached_video_id"}, "attached_video_opened": {"type": "BOOL", "comment": null, "index": 4, "name": "attached_video_opened"}, "attached_video_watched": {"type": "BOOL", "comment": null, "index": 5, "name": "attached_video_watched"}, "email_send_event_id_created": {"type": "INT64", "comment": null, "index": 6, "name": "email_send_event_id_created"}, "email_send_event_id_id": {"type": "INT64", "comment": null, "index": 7, "name": "email_send_event_id_id"}, "error_message": {"type": "INT64", "comment": null, "index": 8, "name": "error_message"}, "facsimile_send_id": {"type": "STRING", "comment": null, "index": 9, "name": "facsimile_send_id"}, "logged_from": {"type": "STRING", "comment": null, "index": 10, "name": "logged_from"}, "media_processing_status": {"type": "STRING", "comment": null, "index": 11, "name": "media_processing_status"}, "message_id": {"type": "STRING", "comment": null, "index": 12, "name": "message_id"}, "post_send_status": {"type": "STRING", "comment": null, "index": 13, "name": "post_send_status"}, "recipient_drop_reasons": {"type": "INT64", "comment": null, "index": 14, "name": "recipient_drop_reasons"}, "sent_via": {"type": "STRING", "comment": null, "index": 15, "name": "sent_via"}, "status": {"type": "STRING", "comment": null, "index": 16, "name": "status"}, "thread_id": {"type": "STRING", "comment": null, "index": 17, "name": "thread_id"}, "tracker_key": {"type": "STRING", "comment": null, "index": 18, "name": "tracker_key"}, "validation_skipped": {"type": "STRING", "comment": null, "index": 19, "name": "validation_skipped"}, "from_email": {"type": "STRING", "comment": null, "index": 20, "name": "from_email"}, "from_first_name": {"type": "STRING", "comment": null, "index": 21, "name": "from_first_name"}, "from_last_name": {"type": "STRING", "comment": null, "index": 22, "name": "from_last_name"}, "html": {"type": "STRING", "comment": null, "index": 23, "name": "html"}, "subject": {"type": "STRING", "comment": null, "index": 24, "name": "subject"}, "text": {"type": "STRING", "comment": null, "index": 25, "name": "text"}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 36203.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.hubspot_source_integration_tests.engagement_email_data"}, "model.hubspot_source.stg_hubspot__company_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "stg_hubspot__company_tmp", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "is_deleted": {"type": "BOOL", "comment": null, "index": 2, "name": "is_deleted"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "property_name": {"type": "STRING", "comment": null, "index": 4, "name": "property_name"}, "property_description": {"type": "STRING", "comment": null, "index": 5, "name": "property_description"}, "property_createdate": {"type": "DATETIME", "comment": null, "index": 6, "name": "property_createdate"}, "property_industry": {"type": "STRING", "comment": null, "index": 7, "name": "property_industry"}, "property_address": {"type": "STRING", "comment": null, "index": 8, "name": "property_address"}, "property_address_2": {"type": "STRING", "comment": null, "index": 9, "name": "property_address_2"}, "property_city": {"type": "STRING", "comment": null, "index": 10, "name": "property_city"}, "property_state": {"type": "STRING", "comment": null, "index": 11, "name": "property_state"}, "property_country": {"type": "STRING", "comment": null, "index": 12, "name": "property_country"}, "property_annualrevenue": {"type": "INT64", "comment": null, "index": 13, "name": "property_annualrevenue"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__company_tmp"}, "model.hubspot_source.stg_hubspot__engagement_email_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "stg_hubspot__engagement_email_tmp", "comment": null, "owner": null}, "columns": {"engagement_id": {"type": "INT64", "comment": null, "index": 1, "name": "engagement_id"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 2, "name": "_fivetran_synced"}, "attached_video_id": {"type": "INT64", "comment": null, "index": 3, "name": "attached_video_id"}, "attached_video_opened": {"type": "BOOL", "comment": null, "index": 4, "name": "attached_video_opened"}, "attached_video_watched": {"type": "BOOL", "comment": null, "index": 5, "name": "attached_video_watched"}, "email_send_event_id_created": {"type": "INT64", "comment": null, "index": 6, "name": "email_send_event_id_created"}, "email_send_event_id_id": {"type": "INT64", "comment": null, "index": 7, "name": "email_send_event_id_id"}, "error_message": {"type": "INT64", "comment": null, "index": 8, "name": "error_message"}, "facsimile_send_id": {"type": "STRING", "comment": null, "index": 9, "name": "facsimile_send_id"}, "logged_from": {"type": "STRING", "comment": null, "index": 10, "name": "logged_from"}, "media_processing_status": {"type": "STRING", "comment": null, "index": 11, "name": "media_processing_status"}, "message_id": {"type": "STRING", "comment": null, "index": 12, "name": "message_id"}, "post_send_status": {"type": "STRING", "comment": null, "index": 13, "name": "post_send_status"}, "recipient_drop_reasons": {"type": "INT64", "comment": null, "index": 14, "name": "recipient_drop_reasons"}, "sent_via": {"type": "STRING", "comment": null, "index": 15, "name": "sent_via"}, "status": {"type": "STRING", "comment": null, "index": 16, "name": "status"}, "thread_id": {"type": "STRING", "comment": null, "index": 17, "name": "thread_id"}, "tracker_key": {"type": "STRING", "comment": null, "index": 18, "name": "tracker_key"}, "validation_skipped": {"type": "STRING", "comment": null, "index": 19, "name": "validation_skipped"}, "from_email": {"type": "STRING", "comment": null, "index": 20, "name": "from_email"}, "from_first_name": {"type": "STRING", "comment": null, "index": 21, "name": "from_first_name"}, "from_last_name": {"type": "STRING", "comment": null, "index": 22, "name": "from_last_name"}, "html": {"type": "STRING", "comment": null, "index": 23, "name": "html"}, "subject": {"type": "STRING", "comment": null, "index": 24, "name": "subject"}, "text": {"type": "STRING", "comment": null, "index": 25, "name": "text"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__engagement_email_tmp"}, "model.hubspot_source.stg_hubspot__ticket": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "stg_hubspot__ticket", "comment": null, "owner": null}, "columns": {"ticket_id": {"type": "INT64", "comment": null, "index": 1, "name": "ticket_id"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 2, "name": "_fivetran_synced"}, "is_deleted": {"type": "BOOL", "comment": null, "index": 3, "name": "is_deleted"}, "closed_at": {"type": "DATETIME", "comment": null, "index": 4, "name": "closed_at"}, "created_at": {"type": "DATETIME", "comment": null, "index": 5, "name": "created_at"}, "first_agent_reply_at": {"type": "DATETIME", "comment": null, "index": 6, "name": "first_agent_reply_at"}, "ticket_pipeline_id": {"type": "INT64", "comment": null, "index": 7, "name": "ticket_pipeline_id"}, "ticket_pipeline_stage_id": {"type": "INT64", "comment": null, "index": 8, "name": "ticket_pipeline_stage_id"}, "ticket_category": {"type": "STRING", "comment": null, "index": 9, "name": "ticket_category"}, "ticket_priority": {"type": "INT64", "comment": null, "index": 10, "name": "ticket_priority"}, "owner_id": {"type": "INT64", "comment": null, "index": 11, "name": "owner_id"}, "ticket_subject": {"type": "STRING", "comment": null, "index": 12, "name": "ticket_subject"}, "ticket_content": {"type": "STRING", "comment": null, "index": 13, "name": "ticket_content"}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 2918.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 24.0, "description": "Approximate count of rows in this table", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__ticket"}, "model.hubspot_source.stg_hubspot__deal_stage": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "stg_hubspot__deal_stage", "comment": null, "owner": null}, "columns": {"date_entered": {"type": "DATETIME", "comment": null, "index": 1, "name": "date_entered"}, "deal_id": {"type": "INT64", "comment": null, "index": 2, "name": "deal_id"}, "source": {"type": "STRING", "comment": null, "index": 3, "name": "source"}, "source_id": {"type": "STRING", "comment": null, "index": 4, "name": "source_id"}, "deal_stage_name": {"type": "STRING", "comment": null, "index": 5, "name": "deal_stage_name"}, "_fivetran_active": {"type": "BOOL", "comment": null, "index": 6, "name": "_fivetran_active"}, "_fivetran_end": {"type": "STRING", "comment": null, "index": 7, "name": "_fivetran_end"}, "_fivetran_start": {"type": "DATETIME", "comment": null, "index": 8, "name": "_fivetran_start"}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 2072.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 14.0, "description": "Approximate count of rows in this table", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__deal_stage"}, "model.hubspot_source.stg_hubspot__ticket_engagement_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "stg_hubspot__ticket_engagement_tmp", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "comment": null, "index": 1, "name": "_fivetran_synced"}, "ticket_id": {"type": "INT64", "comment": null, "index": 2, "name": "ticket_id"}, "engagement_id": {"type": "INT64", "comment": null, "index": 3, "name": "engagement_id"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__ticket_engagement_tmp"}, "seed.hubspot_source_integration_tests.email_campaign_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "email_campaign_data", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 2, "name": "_fivetran_synced"}, "app_id": {"type": "INT64", "comment": null, "index": 3, "name": "app_id"}, "content_id": {"type": "INT64", "comment": null, "index": 4, "name": "content_id"}, "num_included": {"type": "INT64", "comment": null, "index": 5, "name": "num_included"}, "num_queued": {"type": "INT64", "comment": null, "index": 6, "name": "num_queued"}, "sub_type": {"type": "INT64", "comment": null, "index": 7, "name": "sub_type"}, "type": {"type": "STRING", "comment": null, "index": 8, "name": "type"}, "app_name": {"type": "STRING", "comment": null, "index": 9, "name": "app_name"}, "name": {"type": "STRING", "comment": null, "index": 10, "name": "name"}, "subject": {"type": "STRING", "comment": null, "index": 11, "name": "subject"}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 14726.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.hubspot_source_integration_tests.email_campaign_data"}, "model.hubspot_source.stg_hubspot__ticket_pipeline": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "stg_hubspot__ticket_pipeline", "comment": null, "owner": null}, "columns": {"ticket_pipeline_id": {"type": "INT64", "comment": null, "index": 1, "name": "ticket_pipeline_id"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 2, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "is_active": {"type": "BOOL", "comment": null, "index": 4, "name": "is_active"}, "display_order": {"type": "INT64", "comment": null, "index": 5, "name": "display_order"}, "label": {"type": "STRING", "comment": null, "index": 6, "name": "label"}, "object_type_id": {"type": "STRING", "comment": null, "index": 7, "name": "object_type_id"}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 520.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 8.0, "description": "Approximate count of rows in this table", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__ticket_pipeline"}, "model.hubspot_source.stg_hubspot__ticket_pipeline_stage": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "stg_hubspot__ticket_pipeline_stage", "comment": null, "owner": null}, "columns": {"_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 1, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 2, "name": "_fivetran_synced"}, "is_active": {"type": "BOOL", "comment": null, "index": 3, "name": "is_active"}, "display_order": {"type": "INT64", "comment": null, "index": 4, "name": "display_order"}, "is_closed": {"type": "BOOL", "comment": null, "index": 5, "name": "is_closed"}, "label": {"type": "STRING", "comment": null, "index": 6, "name": "label"}, "ticket_pipeline_id": {"type": "INT64", "comment": null, "index": 7, "name": "ticket_pipeline_id"}, "stage_id": {"type": "INT64", "comment": null, "index": 8, "name": "stage_id"}, "ticket_state": {"type": "STRING", "comment": null, "index": 9, "name": "ticket_state"}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 825.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 11.0, "description": "Approximate count of rows in this table", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__ticket_pipeline_stage"}, "model.hubspot_source.stg_hubspot__ticket_deal": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "stg_hubspot__ticket_deal", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "comment": null, "index": 1, "name": "_fivetran_synced"}, "ticket_id": {"type": "INT64", "comment": null, "index": 2, "name": "ticket_id"}, "deal_id": {"type": "INT64", "comment": null, "index": 3, "name": "deal_id"}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 369.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 9.0, "description": "Approximate count of rows in this table", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__ticket_deal"}, "model.hubspot_source.stg_hubspot__company_property_history": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "stg_hubspot__company_property_history", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "comment": null, "index": 1, "name": "_fivetran_synced"}, "company_id": {"type": "INT64", "comment": null, "index": 2, "name": "company_id"}, "field_name": {"type": "STRING", "comment": null, "index": 3, "name": "field_name"}, "change_source": {"type": "STRING", "comment": null, "index": 4, "name": "change_source"}, "change_source_id": {"type": "INT64", "comment": null, "index": 5, "name": "change_source_id"}, "change_timestamp": {"type": "STRING", "comment": null, "index": 6, "name": "change_timestamp"}, "new_value": {"type": "STRING", "comment": null, "index": 7, "name": "new_value"}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 13000.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__company_property_history"}, "seed.hubspot_source_integration_tests.email_event_status_change_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "email_event_status_change_data", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "comment": null, "index": 1, "name": "id"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 2, "name": "_fivetran_synced"}, "bounced": {"type": "INT64", "comment": null, "index": 3, "name": "bounced"}, "portal_subscription_status": {"type": "STRING", "comment": null, "index": 4, "name": "portal_subscription_status"}, "requested_by": {"type": "INT64", "comment": null, "index": 5, "name": "requested_by"}, "source": {"type": "STRING", "comment": null, "index": 6, "name": "source"}, "subscriptions": {"type": "STRING", "comment": null, "index": 7, "name": "subscriptions"}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 10300.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.hubspot_source_integration_tests.email_event_status_change_data"}, "model.hubspot_source.stg_hubspot__deal_pipeline_stage": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "stg_hubspot__deal_pipeline_stage", "comment": null, "owner": null}, "columns": {"_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 1, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 2, "name": "_fivetran_synced"}, "is_active": {"type": "BOOL", "comment": null, "index": 3, "name": "is_active"}, "is_closed_won": {"type": "BOOL", "comment": null, "index": 4, "name": "is_closed_won"}, "display_order": {"type": "INT64", "comment": null, "index": 5, "name": "display_order"}, "pipeline_stage_label": {"type": "STRING", "comment": null, "index": 6, "name": "pipeline_stage_label"}, "deal_pipeline_id": {"type": "STRING", "comment": null, "index": 7, "name": "deal_pipeline_id"}, "probability": {"type": "FLOAT64", "comment": null, "index": 8, "name": "probability"}, "deal_pipeline_stage_id": {"type": "STRING", "comment": null, "index": 9, "name": "deal_pipeline_stage_id"}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 8694.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 69.0, "description": "Approximate count of rows in this table", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__deal_pipeline_stage"}, "model.hubspot_source.stg_hubspot__ticket_contact_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "stg_hubspot__ticket_contact_tmp", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "comment": null, "index": 1, "name": "_fivetran_synced"}, "ticket_id": {"type": "INT64", "comment": null, "index": 2, "name": "ticket_id"}, "contact_id": {"type": "INT64", "comment": null, "index": 3, "name": "contact_id"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__ticket_contact_tmp"}, "seed.hubspot_source_integration_tests.email_event_open_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "email_event_open_data", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "comment": null, "index": 1, "name": "id"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 2, "name": "_fivetran_synced"}, "duration": {"type": "INT64", "comment": null, "index": 3, "name": "duration"}, "browser": {"type": "STRING", "comment": null, "index": 4, "name": "browser"}, "ip_address": {"type": "INT64", "comment": null, "index": 5, "name": "ip_address"}, "location": {"type": "STRING", "comment": null, "index": 6, "name": "location"}, "user_agent": {"type": "STRING", "comment": null, "index": 7, "name": "user_agent"}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 15300.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.hubspot_source_integration_tests.email_event_open_data"}, "model.hubspot_source.stg_hubspot__deal_company": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "stg_hubspot__deal_company", "comment": null, "owner": null}, "columns": {"company_id": {"type": "INT64", "comment": null, "index": 1, "name": "company_id"}, "deal_id": {"type": "INT64", "comment": null, "index": 2, "name": "deal_id"}, "_fivetran_synced": {"type": "TIMESTAMP", "comment": null, "index": 3, "name": "_fivetran_synced"}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 32.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 2.0, "description": "Approximate count of rows in this table", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__deal_company"}, "model.hubspot_source.stg_hubspot__ticket_contact": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "stg_hubspot__ticket_contact", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "comment": null, "index": 1, "name": "_fivetran_synced"}, "ticket_id": {"type": "INT64", "comment": null, "index": 2, "name": "ticket_id"}, "contact_id": {"type": "INT64", "comment": null, "index": 3, "name": "contact_id"}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 369.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 9.0, "description": "Approximate count of rows in this table", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__ticket_contact"}, "seed.hubspot_source_integration_tests.ticket_company_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "ticket_company_data", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "comment": null, "index": 1, "name": "_fivetran_synced"}, "ticket_id": {"type": "INT64", "comment": null, "index": 2, "name": "ticket_id"}, "company_id": {"type": "INT64", "comment": null, "index": 3, "name": "company_id"}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 369.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 9.0, "description": "Approximate count of rows in this table", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.hubspot_source_integration_tests.ticket_company_data"}, "model.hubspot_source.stg_hubspot__engagement_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "stg_hubspot__engagement_tmp", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 2, "name": "_fivetran_synced"}, "active": {"type": "BOOL", "comment": null, "index": 3, "name": "active"}, "activity_type": {"type": "INT64", "comment": null, "index": 4, "name": "activity_type"}, "created_at": {"type": "STRING", "comment": null, "index": 5, "name": "created_at"}, "last_updated": {"type": "STRING", "comment": null, "index": 6, "name": "last_updated"}, "owner_id": {"type": "INT64", "comment": null, "index": 7, "name": "owner_id"}, "portal_id": {"type": "INT64", "comment": null, "index": 8, "name": "portal_id"}, "timestamp": {"type": "STRING", "comment": null, "index": 9, "name": "timestamp"}, "type": {"type": "STRING", "comment": null, "index": 10, "name": "type"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__engagement_tmp"}, "seed.hubspot_source_integration_tests.deal_company_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "deal_company_data", "comment": null, "owner": null}, "columns": {"company_id": {"type": "INT64", "comment": null, "index": 1, "name": "company_id"}, "deal_id": {"type": "INT64", "comment": null, "index": 2, "name": "deal_id"}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 32.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 2.0, "description": "Approximate count of rows in this table", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.hubspot_source_integration_tests.deal_company_data"}, "model.hubspot_source.stg_hubspot__contact_property_history_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "stg_hubspot__contact_property_history_tmp", "comment": null, "owner": null}, "columns": {"contact_id": {"type": "INT64", "comment": null, "index": 1, "name": "contact_id"}, "timestamp": {"type": "STRING", "comment": null, "index": 2, "name": "timestamp"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 3, "name": "_fivetran_synced"}, "source": {"type": "STRING", "comment": null, "index": 4, "name": "source"}, "name": {"type": "STRING", "comment": null, "index": 5, "name": "name"}, "value": {"type": "STRING", "comment": null, "index": 6, "name": "value"}, "source_id": {"type": "STRING", "comment": null, "index": 7, "name": "source_id"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__contact_property_history_tmp"}, "seed.hubspot_source_integration_tests.deal_pipeline_stage_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "deal_pipeline_stage_data", "comment": null, "owner": null}, "columns": {"_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 1, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 2, "name": "_fivetran_synced"}, "active": {"type": "BOOL", "comment": null, "index": 3, "name": "active"}, "closed_won": {"type": "BOOL", "comment": null, "index": 4, "name": "closed_won"}, "display_order": {"type": "INT64", "comment": null, "index": 5, "name": "display_order"}, "probability": {"type": "FLOAT64", "comment": null, "index": 6, "name": "probability"}, "stage_id": {"type": "STRING", "comment": null, "index": 7, "name": "stage_id"}, "label": {"type": "STRING", "comment": null, "index": 8, "name": "label"}, "pipeline_id": {"type": "STRING", "comment": null, "index": 9, "name": "pipeline_id"}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 8946.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 71.0, "description": "Approximate count of rows in this table", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.hubspot_source_integration_tests.deal_pipeline_stage_data"}, "model.hubspot_source.stg_hubspot__email_event_print": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "stg_hubspot__email_event_print", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "comment": null, "index": 1, "name": "_fivetran_synced"}, "browser": {"type": "STRING", "comment": null, "index": 2, "name": "browser"}, "event_id": {"type": "STRING", "comment": null, "index": 3, "name": "event_id"}, "ip_address": {"type": "INT64", "comment": null, "index": 4, "name": "ip_address"}, "geo_location": {"type": "STRING", "comment": null, "index": 5, "name": "geo_location"}, "user_agent": {"type": "STRING", "comment": null, "index": 6, "name": "user_agent"}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 725.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 5.0, "description": "Approximate count of rows in this table", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__email_event_print"}, "model.hubspot_source.stg_hubspot__company_property_history_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "stg_hubspot__company_property_history_tmp", "comment": null, "owner": null}, "columns": {"company_id": {"type": "INT64", "comment": null, "index": 1, "name": "company_id"}, "timestamp": {"type": "STRING", "comment": null, "index": 2, "name": "timestamp"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 3, "name": "_fivetran_synced"}, "source": {"type": "STRING", "comment": null, "index": 4, "name": "source"}, "source_id": {"type": "INT64", "comment": null, "index": 5, "name": "source_id"}, "name": {"type": "STRING", "comment": null, "index": 6, "name": "name"}, "value": {"type": "STRING", "comment": null, "index": 7, "name": "value"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__company_property_history_tmp"}, "seed.hubspot_source_integration_tests.email_event_spam_report_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "email_event_spam_report_data", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "comment": null, "index": 1, "name": "id"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 2, "name": "_fivetran_synced"}, "ip_address": {"type": "INT64", "comment": null, "index": 3, "name": "ip_address"}, "user_agent": {"type": "INT64", "comment": null, "index": 4, "name": "user_agent"}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 2144.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 32.0, "description": "Approximate count of rows in this table", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.hubspot_source_integration_tests.email_event_spam_report_data"}, "model.hubspot_source.stg_hubspot__ticket_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "stg_hubspot__ticket_tmp", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 1, "name": "_fivetran_synced"}, "id": {"type": "INT64", "comment": null, "index": 2, "name": "id"}, "is_deleted": {"type": "BOOL", "comment": null, "index": 3, "name": "is_deleted"}, "property_closed_date": {"type": "DATETIME", "comment": null, "index": 4, "name": "property_closed_date"}, "property_createdate": {"type": "DATETIME", "comment": null, "index": 5, "name": "property_createdate"}, "property_first_agent_reply_date": {"type": "DATETIME", "comment": null, "index": 6, "name": "property_first_agent_reply_date"}, "property_hs_pipeline": {"type": "INT64", "comment": null, "index": 7, "name": "property_hs_pipeline"}, "property_hs_pipeline_stage": {"type": "INT64", "comment": null, "index": 8, "name": "property_hs_pipeline_stage"}, "property_hs_ticket_category": {"type": "STRING", "comment": null, "index": 9, "name": "property_hs_ticket_category"}, "property_hs_ticket_priority": {"type": "INT64", "comment": null, "index": 10, "name": "property_hs_ticket_priority"}, "property_hubspot_owner_id": {"type": "INT64", "comment": null, "index": 11, "name": "property_hubspot_owner_id"}, "property_subject": {"type": "STRING", "comment": null, "index": 12, "name": "property_subject"}, "property_content": {"type": "STRING", "comment": null, "index": 13, "name": "property_content"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__ticket_tmp"}, "seed.hubspot_source_integration_tests.deal_property_history_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "deal_property_history_data", "comment": null, "owner": null}, "columns": {"deal_id": {"type": "INT64", "comment": null, "index": 1, "name": "deal_id"}, "timestamp": {"type": "STRING", "comment": null, "index": 2, "name": "timestamp"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 3, "name": "_fivetran_synced"}, "source": {"type": "STRING", "comment": null, "index": 4, "name": "source"}, "name": {"type": "STRING", "comment": null, "index": 5, "name": "name"}, "source_id": {"type": "STRING", "comment": null, "index": 6, "name": "source_id"}, "value": {"type": "STRING", "comment": null, "index": 7, "name": "value"}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 15432.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.hubspot_source_integration_tests.deal_property_history_data"}, "model.hubspot_source.stg_hubspot__email_event_status_change_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "stg_hubspot__email_event_status_change_tmp", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "comment": null, "index": 1, "name": "id"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 2, "name": "_fivetran_synced"}, "bounced": {"type": "INT64", "comment": null, "index": 3, "name": "bounced"}, "portal_subscription_status": {"type": "STRING", "comment": null, "index": 4, "name": "portal_subscription_status"}, "requested_by": {"type": "INT64", "comment": null, "index": 5, "name": "requested_by"}, "source": {"type": "STRING", "comment": null, "index": 6, "name": "source"}, "subscriptions": {"type": "STRING", "comment": null, "index": 7, "name": "subscriptions"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__email_event_status_change_tmp"}, "seed.hubspot_source_integration_tests.email_event_print_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "email_event_print_data", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "comment": null, "index": 1, "name": "id"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 2, "name": "_fivetran_synced"}, "browser": {"type": "STRING", "comment": null, "index": 3, "name": "browser"}, "ip_address": {"type": "INT64", "comment": null, "index": 4, "name": "ip_address"}, "location": {"type": "STRING", "comment": null, "index": 5, "name": "location"}, "user_agent": {"type": "STRING", "comment": null, "index": 6, "name": "user_agent"}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 725.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 5.0, "description": "Approximate count of rows in this table", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.hubspot_source_integration_tests.email_event_print_data"}, "model.hubspot_source.stg_hubspot__deal_pipeline_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "stg_hubspot__deal_pipeline_tmp", "comment": null, "owner": null}, "columns": {"pipeline_id": {"type": "STRING", "comment": null, "index": 1, "name": "pipeline_id"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 2, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 3, "name": "_fivetran_synced"}, "active": {"type": "BOOL", "comment": null, "index": 4, "name": "active"}, "display_order": {"type": "INT64", "comment": null, "index": 5, "name": "display_order"}, "label": {"type": "STRING", "comment": null, "index": 6, "name": "label"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__deal_pipeline_tmp"}, "model.hubspot_source.stg_hubspot__deal_stage_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "stg_hubspot__deal_stage_tmp", "comment": null, "owner": null}, "columns": {"_fivetran_start": {"type": "DATETIME", "comment": null, "index": 1, "name": "_fivetran_start"}, "deal_id": {"type": "INT64", "comment": null, "index": 2, "name": "deal_id"}, "_fivetran_active": {"type": "BOOL", "comment": null, "index": 3, "name": "_fivetran_active"}, "_fivetran_end": {"type": "STRING", "comment": null, "index": 4, "name": "_fivetran_end"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 5, "name": "_fivetran_synced"}, "date_entered": {"type": "DATETIME", "comment": null, "index": 6, "name": "date_entered"}, "source": {"type": "STRING", "comment": null, "index": 7, "name": "source"}, "source_id": {"type": "STRING", "comment": null, "index": 8, "name": "source_id"}, "value": {"type": "STRING", "comment": null, "index": 9, "name": "value"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__deal_stage_tmp"}, "seed.hubspot_source_integration_tests.ticket_contact_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "ticket_contact_data", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "comment": null, "index": 1, "name": "_fivetran_synced"}, "ticket_id": {"type": "INT64", "comment": null, "index": 2, "name": "ticket_id"}, "contact_id": {"type": "INT64", "comment": null, "index": 3, "name": "contact_id"}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 369.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 9.0, "description": "Approximate count of rows in this table", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.hubspot_source_integration_tests.ticket_contact_data"}, "model.hubspot_source.stg_hubspot__email_event_forward_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "stg_hubspot__email_event_forward_tmp", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "comment": null, "index": 1, "name": "id"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 2, "name": "_fivetran_synced"}, "browser": {"type": "STRING", "comment": null, "index": 3, "name": "browser"}, "ip_address": {"type": "INT64", "comment": null, "index": 4, "name": "ip_address"}, "location": {"type": "STRING", "comment": null, "index": 5, "name": "location"}, "user_agent": {"type": "STRING", "comment": null, "index": 6, "name": "user_agent"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__email_event_forward_tmp"}, "model.hubspot_source.stg_hubspot__engagement_note": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "stg_hubspot__engagement_note", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "comment": null, "index": 1, "name": "_fivetran_synced"}, "note": {"type": "STRING", "comment": null, "index": 2, "name": "note"}, "engagement_id": {"type": "INT64", "comment": null, "index": 3, "name": "engagement_id"}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 6300.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__engagement_note"}, "model.hubspot_source.stg_hubspot__ticket_pipeline_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "stg_hubspot__ticket_pipeline_tmp", "comment": null, "owner": null}, "columns": {"pipeline_id": {"type": "INT64", "comment": null, "index": 1, "name": "pipeline_id"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 2, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "active": {"type": "BOOL", "comment": null, "index": 4, "name": "active"}, "display_order": {"type": "INT64", "comment": null, "index": 5, "name": "display_order"}, "label": {"type": "STRING", "comment": null, "index": 6, "name": "label"}, "object_type_id": {"type": "STRING", "comment": null, "index": 7, "name": "object_type_id"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__ticket_pipeline_tmp"}, "model.hubspot_source.stg_hubspot__email_event_sent": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "stg_hubspot__email_event_sent", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "comment": null, "index": 1, "name": "_fivetran_synced"}, "bcc_emails": {"type": "STRING", "comment": null, "index": 2, "name": "bcc_emails"}, "cc_emails": {"type": "STRING", "comment": null, "index": 3, "name": "cc_emails"}, "from_email": {"type": "STRING", "comment": null, "index": 4, "name": "from_email"}, "event_id": {"type": "STRING", "comment": null, "index": 5, "name": "event_id"}, "reply_to_email": {"type": "STRING", "comment": null, "index": 6, "name": "reply_to_email"}, "email_subject": {"type": "STRING", "comment": null, "index": 7, "name": "email_subject"}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 19700.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__email_event_sent"}, "model.hubspot_source.stg_hubspot__owner": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "stg_hubspot__owner", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "comment": null, "index": 1, "name": "_fivetran_synced"}, "created_timestamp": {"type": "STRING", "comment": null, "index": 2, "name": "created_timestamp"}, "email_address": {"type": "STRING", "comment": null, "index": 3, "name": "email_address"}, "first_name": {"type": "STRING", "comment": null, "index": 4, "name": "first_name"}, "last_name": {"type": "STRING", "comment": null, "index": 5, "name": "last_name"}, "owner_id": {"type": "INT64", "comment": null, "index": 6, "name": "owner_id"}, "portal_id": {"type": "INT64", "comment": null, "index": 7, "name": "portal_id"}, "owner_type": {"type": "STRING", "comment": null, "index": 8, "name": "owner_type"}, "updated_timestamp": {"type": "STRING", "comment": null, "index": 9, "name": "updated_timestamp"}, "full_name": {"type": "STRING", "comment": null, "index": 10, "name": "full_name"}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 24000.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__owner"}, "model.hubspot_source.stg_hubspot__ticket_deal_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "stg_hubspot__ticket_deal_tmp", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "comment": null, "index": 1, "name": "_fivetran_synced"}, "ticket_id": {"type": "INT64", "comment": null, "index": 2, "name": "ticket_id"}, "deal_id": {"type": "INT64", "comment": null, "index": 3, "name": "deal_id"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__ticket_deal_tmp"}, "seed.hubspot_source_integration_tests.company_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "company_data", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "is_deleted": {"type": "BOOL", "comment": null, "index": 2, "name": "is_deleted"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "property_name": {"type": "STRING", "comment": null, "index": 4, "name": "property_name"}, "property_description": {"type": "STRING", "comment": null, "index": 5, "name": "property_description"}, "property_createdate": {"type": "DATETIME", "comment": null, "index": 6, "name": "property_createdate"}, "property_industry": {"type": "STRING", "comment": null, "index": 7, "name": "property_industry"}, "property_address": {"type": "STRING", "comment": null, "index": 8, "name": "property_address"}, "property_address_2": {"type": "STRING", "comment": null, "index": 9, "name": "property_address_2"}, "property_city": {"type": "STRING", "comment": null, "index": 10, "name": "property_city"}, "property_state": {"type": "STRING", "comment": null, "index": 11, "name": "property_state"}, "property_country": {"type": "STRING", "comment": null, "index": 12, "name": "property_country"}, "property_annualrevenue": {"type": "INT64", "comment": null, "index": 13, "name": "property_annualrevenue"}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 6112.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 24.0, "description": "Approximate count of rows in this table", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.hubspot_source_integration_tests.company_data"}, "seed.hubspot_source_integration_tests.engagement_deal_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "engagement_deal_data", "comment": null, "owner": null}, "columns": {"deal_id": {"type": "INT64", "comment": null, "index": 1, "name": "deal_id"}, "engagement_id": {"type": "INT64", "comment": null, "index": 2, "name": "engagement_id"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 3, "name": "_fivetran_synced"}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 4496.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.hubspot_source_integration_tests.engagement_deal_data"}, "model.hubspot_source.stg_hubspot__ticket_company_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "stg_hubspot__ticket_company_tmp", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "comment": null, "index": 1, "name": "_fivetran_synced"}, "ticket_id": {"type": "INT64", "comment": null, "index": 2, "name": "ticket_id"}, "company_id": {"type": "INT64", "comment": null, "index": 3, "name": "company_id"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__ticket_company_tmp"}, "model.hubspot_source.stg_hubspot__engagement_note_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "stg_hubspot__engagement_note_tmp", "comment": null, "owner": null}, "columns": {"engagement_id": {"type": "INT64", "comment": null, "index": 1, "name": "engagement_id"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 2, "name": "_fivetran_synced"}, "body": {"type": "STRING", "comment": null, "index": 3, "name": "body"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__engagement_note_tmp"}, "model.hubspot_source.stg_hubspot__engagement_call": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "stg_hubspot__engagement_call", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "comment": null, "index": 1, "name": "_fivetran_synced"}, "call_notes": {"type": "STRING", "comment": null, "index": 2, "name": "call_notes"}, "callee_object_id": {"type": "INT64", "comment": null, "index": 3, "name": "callee_object_id"}, "callee_object_type": {"type": "INT64", "comment": null, "index": 4, "name": "callee_object_type"}, "disposition_id": {"type": "STRING", "comment": null, "index": 5, "name": "disposition_id"}, "call_duration_milliseconds": {"type": "INT64", "comment": null, "index": 6, "name": "call_duration_milliseconds"}, "engagement_id": {"type": "INT64", "comment": null, "index": 7, "name": "engagement_id"}, "external_account_id": {"type": "INT64", "comment": null, "index": 8, "name": "external_account_id"}, "external_id": {"type": "INT64", "comment": null, "index": 9, "name": "external_id"}, "from_number": {"type": "INT64", "comment": null, "index": 10, "name": "from_number"}, "recording_url": {"type": "INT64", "comment": null, "index": 11, "name": "recording_url"}, "call_status": {"type": "INT64", "comment": null, "index": 12, "name": "call_status"}, "to_number": {"type": "INT64", "comment": null, "index": 13, "name": "to_number"}, "transcription_id": {"type": "INT64", "comment": null, "index": 14, "name": "transcription_id"}, "unknown_visitor_conversation": {"type": "INT64", "comment": null, "index": 15, "name": "unknown_visitor_conversation"}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 10706.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__engagement_call"}, "seed.hubspot_source_integration_tests.email_event_click_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "email_event_click_data", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "comment": null, "index": 1, "name": "id"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 2, "name": "_fivetran_synced"}, "referer": {"type": "INT64", "comment": null, "index": 3, "name": "referer"}, "browser": {"type": "STRING", "comment": null, "index": 4, "name": "browser"}, "location": {"type": "STRING", "comment": null, "index": 5, "name": "location"}, "ip_address": {"type": "INT64", "comment": null, "index": 6, "name": "ip_address"}, "url": {"type": "STRING", "comment": null, "index": 7, "name": "url"}, "user_agent": {"type": "STRING", "comment": null, "index": 8, "name": "user_agent"}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 17100.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.hubspot_source_integration_tests.email_event_click_data"}, "seed.hubspot_source_integration_tests.engagement_call_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "engagement_call_data", "comment": null, "owner": null}, "columns": {"engagement_id": {"type": "INT64", "comment": null, "index": 1, "name": "engagement_id"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 2, "name": "_fivetran_synced"}, "callee_object_id": {"type": "INT64", "comment": null, "index": 3, "name": "callee_object_id"}, "callee_object_type": {"type": "INT64", "comment": null, "index": 4, "name": "callee_object_type"}, "disposition": {"type": "STRING", "comment": null, "index": 5, "name": "disposition"}, "duration_milliseconds": {"type": "INT64", "comment": null, "index": 6, "name": "duration_milliseconds"}, "external_account_id": {"type": "INT64", "comment": null, "index": 7, "name": "external_account_id"}, "external_id": {"type": "INT64", "comment": null, "index": 8, "name": "external_id"}, "from_number": {"type": "INT64", "comment": null, "index": 9, "name": "from_number"}, "recording_url": {"type": "INT64", "comment": null, "index": 10, "name": "recording_url"}, "status": {"type": "INT64", "comment": null, "index": 11, "name": "status"}, "to_number": {"type": "INT64", "comment": null, "index": 12, "name": "to_number"}, "transcription_id": {"type": "INT64", "comment": null, "index": 13, "name": "transcription_id"}, "unknown_visitor_conversation": {"type": "INT64", "comment": null, "index": 14, "name": "unknown_visitor_conversation"}, "body": {"type": "STRING", "comment": null, "index": 15, "name": "body"}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 10706.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.hubspot_source_integration_tests.engagement_call_data"}, "model.hubspot_source.stg_hubspot__email_event_open_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "stg_hubspot__email_event_open_tmp", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "comment": null, "index": 1, "name": "id"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 2, "name": "_fivetran_synced"}, "duration": {"type": "INT64", "comment": null, "index": 3, "name": "duration"}, "browser": {"type": "STRING", "comment": null, "index": 4, "name": "browser"}, "ip_address": {"type": "INT64", "comment": null, "index": 5, "name": "ip_address"}, "location": {"type": "STRING", "comment": null, "index": 6, "name": "location"}, "user_agent": {"type": "STRING", "comment": null, "index": 7, "name": "user_agent"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__email_event_open_tmp"}, "seed.hubspot_source_integration_tests.email_event_dropped_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "email_event_dropped_data", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "comment": null, "index": 1, "name": "id"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 2, "name": "_fivetran_synced"}, "drop_reason": {"type": "STRING", "comment": null, "index": 3, "name": "drop_reason"}, "bcc": {"type": "STRING", "comment": null, "index": 4, "name": "bcc"}, "cc": {"type": "STRING", "comment": null, "index": 5, "name": "cc"}, "drop_message": {"type": "STRING", "comment": null, "index": 6, "name": "drop_message"}, "from": {"type": "STRING", "comment": null, "index": 7, "name": "from"}, "reply_to": {"type": "STRING", "comment": null, "index": 8, "name": "reply_to"}, "subject": {"type": "STRING", "comment": null, "index": 9, "name": "subject"}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 24670.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.hubspot_source_integration_tests.email_event_dropped_data"}, "model.hubspot_source.stg_hubspot__deal_company_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "stg_hubspot__deal_company_tmp", "comment": null, "owner": null}, "columns": {"company_id": {"type": "INT64", "comment": null, "index": 1, "name": "company_id"}, "deal_id": {"type": "INT64", "comment": null, "index": 2, "name": "deal_id"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__deal_company_tmp"}, "model.hubspot_source.stg_hubspot__contact_list_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "stg_hubspot__contact_list_tmp", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 2, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 3, "name": "_fivetran_synced"}, "created_at": {"type": "STRING", "comment": null, "index": 4, "name": "created_at"}, "deleteable": {"type": "BOOL", "comment": null, "index": 5, "name": "deleteable"}, "dynamic": {"type": "BOOL", "comment": null, "index": 6, "name": "dynamic"}, "metadata_error": {"type": "INT64", "comment": null, "index": 7, "name": "metadata_error"}, "metadata_last_processing_state_change_at": {"type": "STRING", "comment": null, "index": 8, "name": "metadata_last_processing_state_change_at"}, "metadata_last_size_change_at": {"type": "STRING", "comment": null, "index": 9, "name": "metadata_last_size_change_at"}, "metadata_processing": {"type": "STRING", "comment": null, "index": 10, "name": "metadata_processing"}, "metadata_size": {"type": "INT64", "comment": null, "index": 11, "name": "metadata_size"}, "offset": {"type": "INT64", "comment": null, "index": 12, "name": "offset"}, "portal_id": {"type": "INT64", "comment": null, "index": 13, "name": "portal_id"}, "updated_at": {"type": "STRING", "comment": null, "index": 14, "name": "updated_at"}, "name": {"type": "STRING", "comment": null, "index": 15, "name": "name"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__contact_list_tmp"}, "seed.hubspot_source_integration_tests.ticket_pipeline_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "ticket_pipeline_data", "comment": null, "owner": null}, "columns": {"pipeline_id": {"type": "INT64", "comment": null, "index": 1, "name": "pipeline_id"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 2, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "active": {"type": "BOOL", "comment": null, "index": 4, "name": "active"}, "display_order": {"type": "INT64", "comment": null, "index": 5, "name": "display_order"}, "label": {"type": "STRING", "comment": null, "index": 6, "name": "label"}, "object_type_id": {"type": "STRING", "comment": null, "index": 7, "name": "object_type_id"}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 520.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 8.0, "description": "Approximate count of rows in this table", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.hubspot_source_integration_tests.ticket_pipeline_data"}, "seed.hubspot_source_integration_tests.company_property_history_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "company_property_history_data", "comment": null, "owner": null}, "columns": {"company_id": {"type": "INT64", "comment": null, "index": 1, "name": "company_id"}, "timestamp": {"type": "STRING", "comment": null, "index": 2, "name": "timestamp"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 3, "name": "_fivetran_synced"}, "source": {"type": "STRING", "comment": null, "index": 4, "name": "source"}, "source_id": {"type": "INT64", "comment": null, "index": 5, "name": "source_id"}, "name": {"type": "STRING", "comment": null, "index": 6, "name": "name"}, "value": {"type": "STRING", "comment": null, "index": 7, "name": "value"}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 13000.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.hubspot_source_integration_tests.company_property_history_data"}, "model.hubspot_source.stg_hubspot__email_event": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "stg_hubspot__email_event", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "comment": null, "index": 1, "name": "_fivetran_synced"}, "app_id": {"type": "INT64", "comment": null, "index": 2, "name": "app_id"}, "caused_timestamp": {"type": "INT64", "comment": null, "index": 3, "name": "caused_timestamp"}, "caused_by_event_id": {"type": "INT64", "comment": null, "index": 4, "name": "caused_by_event_id"}, "created_timestamp": {"type": "STRING", "comment": null, "index": 5, "name": "created_timestamp"}, "email_campaign_id": {"type": "INT64", "comment": null, "index": 6, "name": "email_campaign_id"}, "is_filtered_event": {"type": "BOOL", "comment": null, "index": 7, "name": "is_filtered_event"}, "event_id": {"type": "STRING", "comment": null, "index": 8, "name": "event_id"}, "obsoleted_timestamp": {"type": "INT64", "comment": null, "index": 9, "name": "obsoleted_timestamp"}, "obsoleted_by_event_id": {"type": "INT64", "comment": null, "index": 10, "name": "obsoleted_by_event_id"}, "portal_id": {"type": "INT64", "comment": null, "index": 11, "name": "portal_id"}, "recipient_email_address": {"type": "STRING", "comment": null, "index": 12, "name": "recipient_email_address"}, "sent_timestamp": {"type": "STRING", "comment": null, "index": 13, "name": "sent_timestamp"}, "sent_by_event_id": {"type": "STRING", "comment": null, "index": 14, "name": "sent_by_event_id"}, "event_type": {"type": "STRING", "comment": null, "index": 15, "name": "event_type"}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 22016.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__email_event"}, "model.hubspot_source.stg_hubspot__email_event_open": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "stg_hubspot__email_event_open", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "comment": null, "index": 1, "name": "_fivetran_synced"}, "browser": {"type": "STRING", "comment": null, "index": 2, "name": "browser"}, "duration_open": {"type": "INT64", "comment": null, "index": 3, "name": "duration_open"}, "event_id": {"type": "STRING", "comment": null, "index": 4, "name": "event_id"}, "ip_address": {"type": "INT64", "comment": null, "index": 5, "name": "ip_address"}, "geo_location": {"type": "STRING", "comment": null, "index": 6, "name": "geo_location"}, "user_agent": {"type": "STRING", "comment": null, "index": 7, "name": "user_agent"}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 15300.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__email_event_open"}, "model.hubspot_source.stg_hubspot__email_event_print_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "stg_hubspot__email_event_print_tmp", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "comment": null, "index": 1, "name": "id"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 2, "name": "_fivetran_synced"}, "browser": {"type": "STRING", "comment": null, "index": 3, "name": "browser"}, "ip_address": {"type": "INT64", "comment": null, "index": 4, "name": "ip_address"}, "location": {"type": "STRING", "comment": null, "index": 5, "name": "location"}, "user_agent": {"type": "STRING", "comment": null, "index": 6, "name": "user_agent"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__email_event_print_tmp"}, "model.hubspot_source.stg_hubspot__email_event_sent_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "stg_hubspot__email_event_sent_tmp", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "comment": null, "index": 1, "name": "id"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 2, "name": "_fivetran_synced"}, "bcc": {"type": "STRING", "comment": null, "index": 3, "name": "bcc"}, "cc": {"type": "STRING", "comment": null, "index": 4, "name": "cc"}, "from": {"type": "STRING", "comment": null, "index": 5, "name": "from"}, "reply_to": {"type": "STRING", "comment": null, "index": 6, "name": "reply_to"}, "subject": {"type": "STRING", "comment": null, "index": 7, "name": "subject"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__email_event_sent_tmp"}, "seed.hubspot_source_integration_tests.email_event_forward_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "email_event_forward_data", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "comment": null, "index": 1, "name": "id"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 2, "name": "_fivetran_synced"}, "browser": {"type": "STRING", "comment": null, "index": 3, "name": "browser"}, "ip_address": {"type": "INT64", "comment": null, "index": 4, "name": "ip_address"}, "location": {"type": "STRING", "comment": null, "index": 5, "name": "location"}, "user_agent": {"type": "STRING", "comment": null, "index": 6, "name": "user_agent"}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 14500.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.hubspot_source_integration_tests.email_event_forward_data"}, "model.hubspot_source.stg_hubspot__engagement_email": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "stg_hubspot__engagement_email", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "comment": null, "index": 1, "name": "_fivetran_synced"}, "attached_video_id": {"type": "INT64", "comment": null, "index": 2, "name": "attached_video_id"}, "was_attached_video_opened": {"type": "BOOL", "comment": null, "index": 3, "name": "was_attached_video_opened"}, "was_attached_video_watched": {"type": "BOOL", "comment": null, "index": 4, "name": "was_attached_video_watched"}, "email_send_event_created_timestamp": {"type": "INT64", "comment": null, "index": 5, "name": "email_send_event_created_timestamp"}, "email_send_event_id": {"type": "INT64", "comment": null, "index": 6, "name": "email_send_event_id"}, "engagement_id": {"type": "INT64", "comment": null, "index": 7, "name": "engagement_id"}, "error_message": {"type": "INT64", "comment": null, "index": 8, "name": "error_message"}, "facsimile_send_id": {"type": "STRING", "comment": null, "index": 9, "name": "facsimile_send_id"}, "from_email": {"type": "STRING", "comment": null, "index": 10, "name": "from_email"}, "from_first_name": {"type": "STRING", "comment": null, "index": 11, "name": "from_first_name"}, "from_last_name": {"type": "STRING", "comment": null, "index": 12, "name": "from_last_name"}, "email_html": {"type": "STRING", "comment": null, "index": 13, "name": "email_html"}, "logged_from": {"type": "STRING", "comment": null, "index": 14, "name": "logged_from"}, "media_processing_status": {"type": "STRING", "comment": null, "index": 15, "name": "media_processing_status"}, "message_id": {"type": "STRING", "comment": null, "index": 16, "name": "message_id"}, "post_send_status": {"type": "STRING", "comment": null, "index": 17, "name": "post_send_status"}, "recipient_drop_reasons": {"type": "INT64", "comment": null, "index": 18, "name": "recipient_drop_reasons"}, "sent_via": {"type": "STRING", "comment": null, "index": 19, "name": "sent_via"}, "email_status": {"type": "STRING", "comment": null, "index": 20, "name": "email_status"}, "email_subject": {"type": "STRING", "comment": null, "index": 21, "name": "email_subject"}, "email_text": {"type": "STRING", "comment": null, "index": 22, "name": "email_text"}, "thread_id": {"type": "STRING", "comment": null, "index": 23, "name": "thread_id"}, "tracker_key": {"type": "STRING", "comment": null, "index": 24, "name": "tracker_key"}, "validation_skipped": {"type": "STRING", "comment": null, "index": 25, "name": "validation_skipped"}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 36203.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__engagement_email"}, "model.hubspot_source.stg_hubspot__ticket_engagement": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "stg_hubspot__ticket_engagement", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "comment": null, "index": 1, "name": "_fivetran_synced"}, "ticket_id": {"type": "INT64", "comment": null, "index": 2, "name": "ticket_id"}, "engagement_id": {"type": "INT64", "comment": null, "index": 3, "name": "engagement_id"}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 369.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 9.0, "description": "Approximate count of rows in this table", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__ticket_engagement"}, "model.hubspot_source.stg_hubspot__deal_property_history": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "stg_hubspot__deal_property_history", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "comment": null, "index": 1, "name": "_fivetran_synced"}, "deal_id": {"type": "INT64", "comment": null, "index": 2, "name": "deal_id"}, "field_name": {"type": "STRING", "comment": null, "index": 3, "name": "field_name"}, "change_source": {"type": "STRING", "comment": null, "index": 4, "name": "change_source"}, "change_source_id": {"type": "STRING", "comment": null, "index": 5, "name": "change_source_id"}, "change_timestamp": {"type": "STRING", "comment": null, "index": 6, "name": "change_timestamp"}, "new_value": {"type": "STRING", "comment": null, "index": 7, "name": "new_value"}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 15432.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__deal_property_history"}, "model.hubspot_source.stg_hubspot__email_event_click": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "stg_hubspot__email_event_click", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "STRING", "comment": null, "index": 1, "name": "_fivetran_synced"}, "browser": {"type": "STRING", "comment": null, "index": 2, "name": "browser"}, "event_id": {"type": "STRING", "comment": null, "index": 3, "name": "event_id"}, "ip_address": {"type": "INT64", "comment": null, "index": 4, "name": "ip_address"}, "geo_location": {"type": "STRING", "comment": null, "index": 5, "name": "geo_location"}, "referer_url": {"type": "INT64", "comment": null, "index": 6, "name": "referer_url"}, "click_url": {"type": "STRING", "comment": null, "index": 7, "name": "click_url"}, "user_agent": {"type": "STRING", "comment": null, "index": 8, "name": "user_agent"}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 17100.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__email_event_click"}, "seed.hubspot_source_integration_tests.deal_stage_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "deal_stage_data", "comment": null, "owner": null}, "columns": {"_fivetran_start": {"type": "DATETIME", "comment": null, "index": 1, "name": "_fivetran_start"}, "deal_id": {"type": "INT64", "comment": null, "index": 2, "name": "deal_id"}, "_fivetran_active": {"type": "BOOL", "comment": null, "index": 3, "name": "_fivetran_active"}, "_fivetran_end": {"type": "STRING", "comment": null, "index": 4, "name": "_fivetran_end"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 5, "name": "_fivetran_synced"}, "date_entered": {"type": "DATETIME", "comment": null, "index": 6, "name": "date_entered"}, "source": {"type": "STRING", "comment": null, "index": 7, "name": "source"}, "source_id": {"type": "STRING", "comment": null, "index": 8, "name": "source_id"}, "value": {"type": "STRING", "comment": null, "index": 9, "name": "value"}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 2184.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 14.0, "description": "Approximate count of rows in this table", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.hubspot_source_integration_tests.deal_stage_data"}, "model.hubspot_source.stg_hubspot__contact_list_member_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "stg_hubspot__contact_list_member_tmp", "comment": null, "owner": null}, "columns": {"contact_id": {"type": "INT64", "comment": null, "index": 1, "name": "contact_id"}, "contact_list_id": {"type": "INT64", "comment": null, "index": 2, "name": "contact_list_id"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 3, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 4, "name": "_fivetran_synced"}, "added_at": {"type": "STRING", "comment": null, "index": 5, "name": "added_at"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__contact_list_member_tmp"}, "seed.hubspot_source_integration_tests.email_event_delivered_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "email_event_delivered_data", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "comment": null, "index": 1, "name": "id"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 2, "name": "_fivetran_synced"}, "response": {"type": "STRING", "comment": null, "index": 3, "name": "response"}, "smtp_id": {"type": "STRING", "comment": null, "index": 4, "name": "smtp_id"}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 12214.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.hubspot_source_integration_tests.email_event_delivered_data"}, "model.hubspot_source.stg_hubspot__deal": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "stg_hubspot__deal", "comment": null, "owner": null}, "columns": {"deal_id": {"type": "INT64", "comment": null, "index": 1, "name": "deal_id"}, "deal_pipeline_id": {"type": "INT64", "comment": null, "index": 2, "name": "deal_pipeline_id"}, "deal_pipeline_stage_id": {"type": "INT64", "comment": null, "index": 3, "name": "deal_pipeline_stage_id"}, "owner_id": {"type": "INT64", "comment": null, "index": 4, "name": "owner_id"}, "portal_id": {"type": "INT64", "comment": null, "index": 5, "name": "portal_id"}, "deal_name": {"type": "STRING", "comment": null, "index": 6, "name": "deal_name"}, "description": {"type": "INT64", "comment": null, "index": 7, "name": "description"}, "amount": {"type": "INT64", "comment": null, "index": 8, "name": "amount"}, "closed_at": {"type": "INT64", "comment": null, "index": 9, "name": "closed_at"}, "created_at": {"type": "DATETIME", "comment": null, "index": 10, "name": "created_at"}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 2728.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 44.0, "description": "Approximate count of rows in this table", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__deal"}, "model.hubspot_source.stg_hubspot__engagement_call_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "stg_hubspot__engagement_call_tmp", "comment": null, "owner": null}, "columns": {"engagement_id": {"type": "INT64", "comment": null, "index": 1, "name": "engagement_id"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 2, "name": "_fivetran_synced"}, "callee_object_id": {"type": "INT64", "comment": null, "index": 3, "name": "callee_object_id"}, "callee_object_type": {"type": "INT64", "comment": null, "index": 4, "name": "callee_object_type"}, "disposition": {"type": "STRING", "comment": null, "index": 5, "name": "disposition"}, "duration_milliseconds": {"type": "INT64", "comment": null, "index": 6, "name": "duration_milliseconds"}, "external_account_id": {"type": "INT64", "comment": null, "index": 7, "name": "external_account_id"}, "external_id": {"type": "INT64", "comment": null, "index": 8, "name": "external_id"}, "from_number": {"type": "INT64", "comment": null, "index": 9, "name": "from_number"}, "recording_url": {"type": "INT64", "comment": null, "index": 10, "name": "recording_url"}, "status": {"type": "INT64", "comment": null, "index": 11, "name": "status"}, "to_number": {"type": "INT64", "comment": null, "index": 12, "name": "to_number"}, "transcription_id": {"type": "INT64", "comment": null, "index": 13, "name": "transcription_id"}, "unknown_visitor_conversation": {"type": "INT64", "comment": null, "index": 14, "name": "unknown_visitor_conversation"}, "body": {"type": "STRING", "comment": null, "index": 15, "name": "body"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__engagement_call_tmp"}, "seed.hubspot_source_integration_tests.engagement_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "engagement_data", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 2, "name": "_fivetran_synced"}, "active": {"type": "BOOL", "comment": null, "index": 3, "name": "active"}, "activity_type": {"type": "INT64", "comment": null, "index": 4, "name": "activity_type"}, "created_at": {"type": "STRING", "comment": null, "index": 5, "name": "created_at"}, "last_updated": {"type": "STRING", "comment": null, "index": 6, "name": "last_updated"}, "owner_id": {"type": "INT64", "comment": null, "index": 7, "name": "owner_id"}, "portal_id": {"type": "INT64", "comment": null, "index": 8, "name": "portal_id"}, "timestamp": {"type": "STRING", "comment": null, "index": 9, "name": "timestamp"}, "type": {"type": "STRING", "comment": null, "index": 10, "name": "type"}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 14300.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 100.0, "description": "Approximate count of rows in this table", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.hubspot_source_integration_tests.engagement_data"}, "model.hubspot_source.stg_hubspot__email_event_delivered_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "name": "stg_hubspot__email_event_delivered_tmp", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "comment": null, "index": 1, "name": "id"}, "_fivetran_synced": {"type": "STRING", "comment": null, "index": 2, "name": "_fivetran_synced"}, "response": {"type": "STRING", "comment": null, "index": 3, "name": "response"}, "smtp_id": {"type": "STRING", "comment": null, "index": 4, "name": "smtp_id"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.hubspot_source.stg_hubspot__email_event_delivered_tmp"}}, "sources": {}, "errors": null} \ No newline at end of file diff --git a/docs/manifest.json b/docs/manifest.json index 6b67d95..f61034d 100644 --- a/docs/manifest.json +++ b/docs/manifest.json @@ -1 +1 @@ -{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/manifest/v1.json", "dbt_version": "0.19.0", "generated_at": "2021-04-01T21:53:15.033481Z", "invocation_id": "9195e932-840a-413e-924c-97cda8b5b067", "env": {}, "project_id": "39dd6cabb1b7b5f4dd1b7ea99f6c783e", "user_id": "57178664-37b2-4047-9572-68ec8b488cd7", "send_anonymous_usage_stats": true, "adapter_type": "bigquery"}, "nodes": {"seed.hubspot_source_integration_tests.email_event_delivered_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source_integration_tests", "email_event_delivered_data"], "unique_id": "seed.hubspot_source_integration_tests.email_event_delivered_data", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "email_event_delivered_data.csv", "original_file_path": "data/email_event_delivered_data.csv", "name": "email_event_delivered_data", "resource_type": "seed", "alias": "email_event_delivered_data", "checksum": {"name": "sha256", "checksum": "bac0832d9511cdf5afdd52248082bfa1e1c7f53a043271b3ef421bd4acd9cfb2"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`email_event_delivered_data`"}, "seed.hubspot_source_integration_tests.ticket_pipeline_stage_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source_integration_tests", "ticket_pipeline_stage_data"], "unique_id": "seed.hubspot_source_integration_tests.ticket_pipeline_stage_data", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "ticket_pipeline_stage_data.csv", "original_file_path": "data/ticket_pipeline_stage_data.csv", "name": "ticket_pipeline_stage_data", "resource_type": "seed", "alias": "ticket_pipeline_stage_data", "checksum": {"name": "sha256", "checksum": "a8bf2dd2e6efcf7bbeb80c4a2f6531d6102cf78de61d6e2481e1e251b9328de4"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`ticket_pipeline_stage_data`"}, "seed.hubspot_source_integration_tests.ticket_contact_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source_integration_tests", "ticket_contact_data"], "unique_id": "seed.hubspot_source_integration_tests.ticket_contact_data", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "ticket_contact_data.csv", "original_file_path": "data/ticket_contact_data.csv", "name": "ticket_contact_data", "resource_type": "seed", "alias": "ticket_contact_data", "checksum": {"name": "sha256", "checksum": "0ee95e57c2a3a9655933450436ce250fda2f9a1372e886f55fa7030e798693f7"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`ticket_contact_data`"}, "seed.hubspot_source_integration_tests.email_event_status_change_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source_integration_tests", "email_event_status_change_data"], "unique_id": "seed.hubspot_source_integration_tests.email_event_status_change_data", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "email_event_status_change_data.csv", "original_file_path": "data/email_event_status_change_data.csv", "name": "email_event_status_change_data", "resource_type": "seed", "alias": "email_event_status_change_data", "checksum": {"name": "sha256", "checksum": "4ebf917113fb6696a3c05c53bd9693f8912353cae6e3d501b5218bcd3ffd8ca8"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`email_event_status_change_data`"}, "seed.hubspot_source_integration_tests.ticket_company_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source_integration_tests", "ticket_company_data"], "unique_id": "seed.hubspot_source_integration_tests.ticket_company_data", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "ticket_company_data.csv", "original_file_path": "data/ticket_company_data.csv", "name": "ticket_company_data", "resource_type": "seed", "alias": "ticket_company_data", "checksum": {"name": "sha256", "checksum": "862f241f80795c00ee08a4eb02441d069a06f935d5f3304d5e448d02b8a25193"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`ticket_company_data`"}, "seed.hubspot_source_integration_tests.engagement_deal_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source_integration_tests", "engagement_deal_data"], "unique_id": "seed.hubspot_source_integration_tests.engagement_deal_data", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "engagement_deal_data.csv", "original_file_path": "data/engagement_deal_data.csv", "name": "engagement_deal_data", "resource_type": "seed", "alias": "engagement_deal_data", "checksum": {"name": "sha256", "checksum": "851831bb563e331d84db49071e5c7eb6c110c0146fede28719f3925be3bac5b3"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {"engagement_id": "int64", "deal_id": "int64"}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "column_types": {"engagement_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "deal_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}"}}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`engagement_deal_data`"}, "seed.hubspot_source_integration_tests.deal_stage_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source_integration_tests", "deal_stage_data"], "unique_id": "seed.hubspot_source_integration_tests.deal_stage_data", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "deal_stage_data.csv", "original_file_path": "data/deal_stage_data.csv", "name": "deal_stage_data", "resource_type": "seed", "alias": "deal_stage_data", "checksum": {"name": "sha256", "checksum": "d554a9a32c5c0eac1fe5b65c543fbb1b2add1193329d302c67d513ca4b8dd391"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {"deal_id": "int64"}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "column_types": {"deal_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}"}}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`deal_stage_data`"}, "seed.hubspot_source_integration_tests.email_campaign_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source_integration_tests", "email_campaign_data"], "unique_id": "seed.hubspot_source_integration_tests.email_campaign_data", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "email_campaign_data.csv", "original_file_path": "data/email_campaign_data.csv", "name": "email_campaign_data", "resource_type": "seed", "alias": "email_campaign_data", "checksum": {"name": "sha256", "checksum": "646c26031131923064e3d756bd5e354c69884b1f1d123d40a289631b6afa3bc0"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {"id": "int64", "content_id": "int64"}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "column_types": {"id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "content_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}"}}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`email_campaign_data`"}, "seed.hubspot_source_integration_tests.engagement_call_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source_integration_tests", "engagement_call_data"], "unique_id": "seed.hubspot_source_integration_tests.engagement_call_data", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "engagement_call_data.csv", "original_file_path": "data/engagement_call_data.csv", "name": "engagement_call_data", "resource_type": "seed", "alias": "engagement_call_data", "checksum": {"name": "sha256", "checksum": "a14b53204e4bc88615b9071b41e9d017859b8332573b96e5d0329c23bc2403bf"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {"engagement_id": "int64"}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "column_types": {"engagement_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}"}}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`engagement_call_data`"}, "seed.hubspot_source_integration_tests.email_event_print_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source_integration_tests", "email_event_print_data"], "unique_id": "seed.hubspot_source_integration_tests.email_event_print_data", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "email_event_print_data.csv", "original_file_path": "data/email_event_print_data.csv", "name": "email_event_print_data", "resource_type": "seed", "alias": "email_event_print_data", "checksum": {"name": "sha256", "checksum": "4fd71501b3918ac0f75f86fffb30f73dc25de86973ec142716ade954ead8987e"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`email_event_print_data`"}, "seed.hubspot_source_integration_tests.email_event_spam_report_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source_integration_tests", "email_event_spam_report_data"], "unique_id": "seed.hubspot_source_integration_tests.email_event_spam_report_data", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "email_event_spam_report_data.csv", "original_file_path": "data/email_event_spam_report_data.csv", "name": "email_event_spam_report_data", "resource_type": "seed", "alias": "email_event_spam_report_data", "checksum": {"name": "sha256", "checksum": "42c9e30686405fdae6401bd728369be29e94201b946ea45aa9bff0329e677e04"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`email_event_spam_report_data`"}, "seed.hubspot_source_integration_tests.ticket_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source_integration_tests", "ticket_data"], "unique_id": "seed.hubspot_source_integration_tests.ticket_data", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "ticket_data.csv", "original_file_path": "data/ticket_data.csv", "name": "ticket_data", "resource_type": "seed", "alias": "ticket_data", "checksum": {"name": "sha256", "checksum": "c47a2f3798e6c9a73bf7900955393eb9ac1fa6ea41a1b3dd45c5e093f911c4fd"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`ticket_data`"}, "seed.hubspot_source_integration_tests.ticket_pipeline_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source_integration_tests", "ticket_pipeline_data"], "unique_id": "seed.hubspot_source_integration_tests.ticket_pipeline_data", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "ticket_pipeline_data.csv", "original_file_path": "data/ticket_pipeline_data.csv", "name": "ticket_pipeline_data", "resource_type": "seed", "alias": "ticket_pipeline_data", "checksum": {"name": "sha256", "checksum": "c7634af8897faf2c7bb5a843f4a67901575ede0f741308bb7c1ed4d9b2cdd76f"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`ticket_pipeline_data`"}, "seed.hubspot_source_integration_tests.contact_list_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source_integration_tests", "contact_list_data"], "unique_id": "seed.hubspot_source_integration_tests.contact_list_data", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "contact_list_data.csv", "original_file_path": "data/contact_list_data.csv", "name": "contact_list_data", "resource_type": "seed", "alias": "contact_list_data", "checksum": {"name": "sha256", "checksum": "82789af9bccebcc6867b7e0d2029808f02bd9cbd7e3bedd43704d742ae565e94"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "enabled": "{{ true if target.type != 'postgres' else false }}"}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`contact_list_data`"}, "seed.hubspot_source_integration_tests.email_event_click_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source_integration_tests", "email_event_click_data"], "unique_id": "seed.hubspot_source_integration_tests.email_event_click_data", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "email_event_click_data.csv", "original_file_path": "data/email_event_click_data.csv", "name": "email_event_click_data", "resource_type": "seed", "alias": "email_event_click_data", "checksum": {"name": "sha256", "checksum": "5f2ae2a37b9c3862c09d680744fd3c391483ac00a859046dd616db2785540c71"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`email_event_click_data`"}, "seed.hubspot_source_integration_tests.email_event_deferred_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source_integration_tests", "email_event_deferred_data"], "unique_id": "seed.hubspot_source_integration_tests.email_event_deferred_data", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "email_event_deferred_data.csv", "original_file_path": "data/email_event_deferred_data.csv", "name": "email_event_deferred_data", "resource_type": "seed", "alias": "email_event_deferred_data", "checksum": {"name": "sha256", "checksum": "a091eadc8b7953cc5ef605241e1f11c195a8d38fd3151ae75c590879d5c05c51"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`email_event_deferred_data`"}, "seed.hubspot_source_integration_tests.email_event_open_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source_integration_tests", "email_event_open_data"], "unique_id": "seed.hubspot_source_integration_tests.email_event_open_data", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "email_event_open_data.csv", "original_file_path": "data/email_event_open_data.csv", "name": "email_event_open_data", "resource_type": "seed", "alias": "email_event_open_data", "checksum": {"name": "sha256", "checksum": "642853dc3235221a5f8f2879b460414670f1ee6b2d2f3c1930e566fee476be30"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`email_event_open_data`"}, "seed.hubspot_source_integration_tests.company_property_history_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source_integration_tests", "company_property_history_data"], "unique_id": "seed.hubspot_source_integration_tests.company_property_history_data", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "company_property_history_data.csv", "original_file_path": "data/company_property_history_data.csv", "name": "company_property_history_data", "resource_type": "seed", "alias": "company_property_history_data", "checksum": {"name": "sha256", "checksum": "52c2f598754cd8b962bbeaf2a20b7cc8f82eb9a647e3f1fb08348ebb4c779c44"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {"company_id": "int64"}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "column_types": {"company_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}"}}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`company_property_history_data`"}, "seed.hubspot_source_integration_tests.engagement_email_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source_integration_tests", "engagement_email_data"], "unique_id": "seed.hubspot_source_integration_tests.engagement_email_data", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "engagement_email_data.csv", "original_file_path": "data/engagement_email_data.csv", "name": "engagement_email_data", "resource_type": "seed", "alias": "engagement_email_data", "checksum": {"name": "sha256", "checksum": "893e4cc3d0ab0cf86cbf59052b53c316e5e64a7432c4789f97c45dcead3eebc7"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {"engagement_id": "int64"}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "column_types": {"engagement_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}"}}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`engagement_email_data`"}, "seed.hubspot_source_integration_tests.deal_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source_integration_tests", "deal_data"], "unique_id": "seed.hubspot_source_integration_tests.deal_data", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "deal_data.csv", "original_file_path": "data/deal_data.csv", "name": "deal_data", "resource_type": "seed", "alias": "deal_data", "checksum": {"name": "sha256", "checksum": "092a6a2227f655822c156448b13e1cb645e38486405affcce7653dbba0dfad27"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {"deal_id": "int64", "owner_id": "int64"}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "column_types": {"deal_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "owner_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}"}}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`deal_data`"}, "seed.hubspot_source_integration_tests.engagement_note_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source_integration_tests", "engagement_note_data"], "unique_id": "seed.hubspot_source_integration_tests.engagement_note_data", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "engagement_note_data.csv", "original_file_path": "data/engagement_note_data.csv", "name": "engagement_note_data", "resource_type": "seed", "alias": "engagement_note_data", "checksum": {"name": "sha256", "checksum": "cee44946dc82d0a0ddb2a374562a6a5d927dc9c06c0b477bbe2b992114867e15"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {"engagement_id": "int64"}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "column_types": {"engagement_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}"}}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`engagement_note_data`"}, "seed.hubspot_source_integration_tests.deal_pipeline_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source_integration_tests", "deal_pipeline_data"], "unique_id": "seed.hubspot_source_integration_tests.deal_pipeline_data", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "deal_pipeline_data.csv", "original_file_path": "data/deal_pipeline_data.csv", "name": "deal_pipeline_data", "resource_type": "seed", "alias": "deal_pipeline_data", "checksum": {"name": "sha256", "checksum": "bf413926570c4630b2c2f6835282070e1217e15268543dbbfc2060c1e018ba3f"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`deal_pipeline_data`"}, "seed.hubspot_source_integration_tests.email_event_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source_integration_tests", "email_event_data"], "unique_id": "seed.hubspot_source_integration_tests.email_event_data", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "email_event_data.csv", "original_file_path": "data/email_event_data.csv", "name": "email_event_data", "resource_type": "seed", "alias": "email_event_data", "checksum": {"name": "sha256", "checksum": "e5baab5fa8523995b5b9ac0f84be3a94fb43a8e92214feb33b91a92364d1cbbd"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`email_event_data`"}, "seed.hubspot_source_integration_tests.engagement_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source_integration_tests", "engagement_data"], "unique_id": "seed.hubspot_source_integration_tests.engagement_data", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "engagement_data.csv", "original_file_path": "data/engagement_data.csv", "name": "engagement_data", "resource_type": "seed", "alias": "engagement_data", "checksum": {"name": "sha256", "checksum": "bc0116d99bbb4a5298349790e172681232dbb19655a95911dfb47527a5b1626c"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {"id": "int64"}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "column_types": {"id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}"}}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`engagement_data`"}, "seed.hubspot_source_integration_tests.email_event_dropped_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source_integration_tests", "email_event_dropped_data"], "unique_id": "seed.hubspot_source_integration_tests.email_event_dropped_data", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "email_event_dropped_data.csv", "original_file_path": "data/email_event_dropped_data.csv", "name": "email_event_dropped_data", "resource_type": "seed", "alias": "email_event_dropped_data", "checksum": {"name": "sha256", "checksum": "8823d2c069348f748f2329a9a0652ac56616cd93194559ae01c6f397143850b8"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "enabled": "{{ true if target.type not in ('snowflake', 'postgres') else false }}"}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`email_event_dropped_data`"}, "seed.hubspot_source_integration_tests.owner_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source_integration_tests", "owner_data"], "unique_id": "seed.hubspot_source_integration_tests.owner_data", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "owner_data.csv", "original_file_path": "data/owner_data.csv", "name": "owner_data", "resource_type": "seed", "alias": "owner_data", "checksum": {"name": "sha256", "checksum": "468986814827029c1ce9ab5bb57808f038a888b6ad5426f403a5d67bd8500469"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {"owner_id": "int64"}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "column_types": {"owner_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}"}}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`owner_data`"}, "seed.hubspot_source_integration_tests.engagement_meeting_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source_integration_tests", "engagement_meeting_data"], "unique_id": "seed.hubspot_source_integration_tests.engagement_meeting_data", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "engagement_meeting_data.csv", "original_file_path": "data/engagement_meeting_data.csv", "name": "engagement_meeting_data", "resource_type": "seed", "alias": "engagement_meeting_data", "checksum": {"name": "sha256", "checksum": "13bdd431034bcf89a45d1c5e7ac03c1cc61e92188f652b244b7ee3ccc287eaa1"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {"engagement_id": "int64"}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "column_types": {"engagement_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}"}}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`engagement_meeting_data`"}, "seed.hubspot_source_integration_tests.email_event_forward_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source_integration_tests", "email_event_forward_data"], "unique_id": "seed.hubspot_source_integration_tests.email_event_forward_data", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "email_event_forward_data.csv", "original_file_path": "data/email_event_forward_data.csv", "name": "email_event_forward_data", "resource_type": "seed", "alias": "email_event_forward_data", "checksum": {"name": "sha256", "checksum": "8fc1066f680e8427a98c275e951906ea5e1235e9de8c2eb0a2e59cebd8524251"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`email_event_forward_data`"}, "seed.hubspot_source_integration_tests.deal_pipeline_stage_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source_integration_tests", "deal_pipeline_stage_data"], "unique_id": "seed.hubspot_source_integration_tests.deal_pipeline_stage_data", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "deal_pipeline_stage_data.csv", "original_file_path": "data/deal_pipeline_stage_data.csv", "name": "deal_pipeline_stage_data", "resource_type": "seed", "alias": "deal_pipeline_stage_data", "checksum": {"name": "sha256", "checksum": "6847909107b6e19f87fe8306cb2a960e0aab531862989b615183a177e1440ada"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`deal_pipeline_stage_data`"}, "seed.hubspot_source_integration_tests.company_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source_integration_tests", "company_data"], "unique_id": "seed.hubspot_source_integration_tests.company_data", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "company_data.csv", "original_file_path": "data/company_data.csv", "name": "company_data", "resource_type": "seed", "alias": "company_data", "checksum": {"name": "sha256", "checksum": "7c07290d2bb20b6800a72e7a1e2be622d5cfd6e90271b3669de13bf676b8cc7d"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {"id": "int64"}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "column_types": {"id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}"}}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`company_data`"}, "seed.hubspot_source_integration_tests.contact_list_member_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source_integration_tests", "contact_list_member_data"], "unique_id": "seed.hubspot_source_integration_tests.contact_list_member_data", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "contact_list_member_data.csv", "original_file_path": "data/contact_list_member_data.csv", "name": "contact_list_member_data", "resource_type": "seed", "alias": "contact_list_member_data", "checksum": {"name": "sha256", "checksum": "17e5b2c82e8253e96f19e744ddaa56392ca4a265565904768e2abbead0e2bf9e"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`contact_list_member_data`"}, "seed.hubspot_source_integration_tests.contact_property_history_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source_integration_tests", "contact_property_history_data"], "unique_id": "seed.hubspot_source_integration_tests.contact_property_history_data", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "contact_property_history_data.csv", "original_file_path": "data/contact_property_history_data.csv", "name": "contact_property_history_data", "resource_type": "seed", "alias": "contact_property_history_data", "checksum": {"name": "sha256", "checksum": "3f25c81e8be97b3eb0d2e3d97df3c5c1000051ea46e09b04063d7336e6ed6648"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`contact_property_history_data`"}, "seed.hubspot_source_integration_tests.deal_property_history_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source_integration_tests", "deal_property_history_data"], "unique_id": "seed.hubspot_source_integration_tests.deal_property_history_data", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "deal_property_history_data.csv", "original_file_path": "data/deal_property_history_data.csv", "name": "deal_property_history_data", "resource_type": "seed", "alias": "deal_property_history_data", "checksum": {"name": "sha256", "checksum": "57c14bbf7f8deae1838ab6acaa2689391c3859a2ae2c3331aca9876ef5b615ee"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {"deal_id": "int64"}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "column_types": {"deal_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}"}}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`deal_property_history_data`"}, "seed.hubspot_source_integration_tests.email_event_bounce_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source_integration_tests", "email_event_bounce_data"], "unique_id": "seed.hubspot_source_integration_tests.email_event_bounce_data", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "email_event_bounce_data.csv", "original_file_path": "data/email_event_bounce_data.csv", "name": "email_event_bounce_data", "resource_type": "seed", "alias": "email_event_bounce_data", "checksum": {"name": "sha256", "checksum": "8d61c401a95d57a403f5476b94e8c562be2a167fb6c9df0fa39444d4b71b86a1"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`email_event_bounce_data`"}, "seed.hubspot_source_integration_tests.engagement_contact_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source_integration_tests", "engagement_contact_data"], "unique_id": "seed.hubspot_source_integration_tests.engagement_contact_data", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "engagement_contact_data.csv", "original_file_path": "data/engagement_contact_data.csv", "name": "engagement_contact_data", "resource_type": "seed", "alias": "engagement_contact_data", "checksum": {"name": "sha256", "checksum": "50c5e0326fc2aca3df96f0411dff6e8f6c997608685b51ea224ddf28cd49f66f"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {"engagement_id": "int64", "contact_id": "int64"}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "column_types": {"engagement_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "contact_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}"}}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`engagement_contact_data`"}, "seed.hubspot_source_integration_tests.ticket_engagement_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source_integration_tests", "ticket_engagement_data"], "unique_id": "seed.hubspot_source_integration_tests.ticket_engagement_data", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "ticket_engagement_data.csv", "original_file_path": "data/ticket_engagement_data.csv", "name": "ticket_engagement_data", "resource_type": "seed", "alias": "ticket_engagement_data", "checksum": {"name": "sha256", "checksum": "33fd8c0a98772a789e101839fcb2c856e89e025802075376305ffed36c4e59b5"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`ticket_engagement_data`"}, "seed.hubspot_source_integration_tests.email_event_sent_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source_integration_tests", "email_event_sent_data"], "unique_id": "seed.hubspot_source_integration_tests.email_event_sent_data", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "email_event_sent_data.csv", "original_file_path": "data/email_event_sent_data.csv", "name": "email_event_sent_data", "resource_type": "seed", "alias": "email_event_sent_data", "checksum": {"name": "sha256", "checksum": "dccc8671299c2a4bdfc5d9f055e495edf9a1aee6fb8a963106a1fc8929921b4a"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "enabled": "{{ true if target.type not in ('snowflake', 'postgres') else false }}"}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`email_event_sent_data`"}, "seed.hubspot_source_integration_tests.contact_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source_integration_tests", "contact_data"], "unique_id": "seed.hubspot_source_integration_tests.contact_data", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "contact_data.csv", "original_file_path": "data/contact_data.csv", "name": "contact_data", "resource_type": "seed", "alias": "contact_data", "checksum": {"name": "sha256", "checksum": "a549a63fa9d4c928bc6212168d0dbc230a6dea8069fa4f74186db691d779bf46"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`contact_data`"}, "seed.hubspot_source_integration_tests.ticket_deal_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source_integration_tests", "ticket_deal_data"], "unique_id": "seed.hubspot_source_integration_tests.ticket_deal_data", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "ticket_deal_data.csv", "original_file_path": "data/ticket_deal_data.csv", "name": "ticket_deal_data", "resource_type": "seed", "alias": "ticket_deal_data", "checksum": {"name": "sha256", "checksum": "3028ffec2fb820cf75ca4aae759cb4af012e8b0ec42f4e56b1fe6e01cde48a5a"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`ticket_deal_data`"}, "seed.hubspot_source_integration_tests.deal_company_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source_integration_tests", "deal_company_data"], "unique_id": "seed.hubspot_source_integration_tests.deal_company_data", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "deal_company_data.csv", "original_file_path": "data/deal_company_data.csv", "name": "deal_company_data", "resource_type": "seed", "alias": "deal_company_data", "checksum": {"name": "sha256", "checksum": "5cc92a73a5fe90aaa4346802255045b0d1e1e7ab8d6397dd1ea6bab7905cde83"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`deal_company_data`"}, "seed.hubspot_source_integration_tests.ticket_property_history_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source_integration_tests", "ticket_property_history_data"], "unique_id": "seed.hubspot_source_integration_tests.ticket_property_history_data", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "ticket_property_history_data.csv", "original_file_path": "data/ticket_property_history_data.csv", "name": "ticket_property_history_data", "resource_type": "seed", "alias": "ticket_property_history_data", "checksum": {"name": "sha256", "checksum": "c296dd65ffbae9b153bed842efec717f956fac89a1e6fc88da2bbc48b4c91a74"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`ticket_property_history_data`"}, "seed.hubspot_source_integration_tests.engagement_task_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source_integration_tests", "engagement_task_data"], "unique_id": "seed.hubspot_source_integration_tests.engagement_task_data", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "engagement_task_data.csv", "original_file_path": "data/engagement_task_data.csv", "name": "engagement_task_data", "resource_type": "seed", "alias": "engagement_task_data", "checksum": {"name": "sha256", "checksum": "b4f39add751ab9de319aa7de033921c3080964e656f3101e55347adef468f2b8"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {"engagement_id": "int64", "completion_date": "int64"}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "column_types": {"engagement_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "completion_date": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}"}}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`engagement_task_data`"}, "seed.hubspot_source_integration_tests.engagement_company_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source_integration_tests", "engagement_company_data"], "unique_id": "seed.hubspot_source_integration_tests.engagement_company_data", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "engagement_company_data.csv", "original_file_path": "data/engagement_company_data.csv", "name": "engagement_company_data", "resource_type": "seed", "alias": "engagement_company_data", "checksum": {"name": "sha256", "checksum": "942de68372d1c4466fb1e5fca096ef06c8461085b3ea0005ffe3456f203268e2"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {"engagement_id": "int64", "company_id": "int64"}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "column_types": {"engagement_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "company_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}"}}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`engagement_company_data`"}, "model.hubspot_source.stg_hubspot__engagement_task": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_sales_enabled','hubspot_engagement_enabled','hubspot_engagement_task_enabled'])) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_hubspot__engagement_task_tmp') }}\n\n), macro as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_hubspot__engagement_task_tmp')),\n staging_columns=get_engagement_task_columns()\n )\n }}\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n body as task_note,\n completion_date as completion_timestamp,\n engagement_id,\n for_object_type,\n is_all_day,\n priority,\n probability_to_complete,\n status as task_status,\n subject as task_subject,\n task_type\n from macro\n \n)\n\nselect *\nfrom fields", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "stg_hubspot__engagement_task"], "unique_id": "model.hubspot_source.stg_hubspot__engagement_task", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "stg_hubspot__engagement_task.sql", "original_file_path": "models/stg_hubspot__engagement_task.sql", "name": "stg_hubspot__engagement_task", "resource_type": "model", "alias": "stg_hubspot__engagement_task", "checksum": {"name": "sha256", "checksum": "86b6893064361bc42f725f85b0933c5117be49f91825b07d781397531c6aa6c9"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_hubspot__engagement_task_tmp"], ["stg_hubspot__engagement_task_tmp"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.hubspot_source.get_engagement_task_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.hubspot_source.stg_hubspot__engagement_task_tmp", "model.hubspot_source.stg_hubspot__engagement_task_tmp"]}, "description": "Each record represents a TASK engagement event.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "completion_timestamp": {"name": "completion_timestamp", "description": "The timestamp the task was completed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "engagement_id": {"name": "engagement_id", "description": "The ID of the engagement.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "for_object_type": {"name": "for_object_type", "description": "One of CONTACT or COMPANY, what object type the task is for.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_all_day": {"name": "is_all_day", "description": "Whether it is an all day task.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "priority": {"name": "priority", "description": "The priority of the task.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "probability_to_complete": {"name": "probability_to_complete", "description": "The probability that the task will be completed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "task_note": {"name": "task_note", "description": "The body or details of the task.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "task_status": {"name": "task_status", "description": "The status of the task.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "task_subject": {"name": "task_subject", "description": "The subject or title of the task", "meta": {}, "data_type": null, "quote": null, "tags": []}, "task_type": {"name": "task_type", "description": "The type of task", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_hubspot__engagement.yml", "build_path": "target/compiled/hubspot_source/models/stg_hubspot__engagement_task.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "enabled": true}, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__engagement_task_tmp`\n\n), macro as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n body\n \n as \n \n body\n \n, \n \n \n completion_date\n \n as \n \n completion_date\n \n, \n \n \n engagement_id\n \n as \n \n engagement_id\n \n, \n \n \n for_object_type\n \n as \n \n for_object_type\n \n, \n \n \n is_all_day\n \n as \n \n is_all_day\n \n, \n \n \n priority\n \n as \n \n priority\n \n, \n \n \n probability_to_complete\n \n as \n \n probability_to_complete\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n subject\n \n as \n \n subject\n \n, \n \n \n task_type\n \n as \n \n task_type\n \n\n\n\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n body as task_note,\n completion_date as completion_timestamp,\n engagement_id,\n for_object_type,\n is_all_day,\n priority,\n probability_to_complete,\n status as task_status,\n subject as task_subject,\n task_type\n from macro\n \n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__engagement_task`"}, "model.hubspot_source.stg_hubspot__engagement_deal": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_sales_enabled','hubspot_engagement_enabled','hubspot_engagement_deal_enabled'])) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_hubspot__engagement_deal_tmp') }}\n\n), macro as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_hubspot__engagement_deal_tmp')),\n staging_columns=get_engagement_deal_columns()\n )\n }}\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n deal_id,\n engagement_id\n from macro\n \n)\n\nselect *\nfrom fields", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "stg_hubspot__engagement_deal"], "unique_id": "model.hubspot_source.stg_hubspot__engagement_deal", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "stg_hubspot__engagement_deal.sql", "original_file_path": "models/stg_hubspot__engagement_deal.sql", "name": "stg_hubspot__engagement_deal", "resource_type": "model", "alias": "stg_hubspot__engagement_deal", "checksum": {"name": "sha256", "checksum": "898021a7f60addee81c2019a93b4f484169bd967975bedbfdf78cf3af94c2cc8"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_hubspot__engagement_deal_tmp"], ["stg_hubspot__engagement_deal_tmp"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.hubspot_source.get_engagement_deal_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.hubspot_source.stg_hubspot__engagement_deal_tmp", "model.hubspot_source.stg_hubspot__engagement_deal_tmp"]}, "description": "Each record represents a 'link' between a deal and an engagement.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deal_id": {"name": "deal_id", "description": "The ID of the related contact.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "engagement_id": {"name": "engagement_id", "description": "The ID of the related engagement.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_hubspot__engagement.yml", "build_path": "target/compiled/hubspot_source/models/stg_hubspot__engagement_deal.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "enabled": true}, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__engagement_deal_tmp`\n\n), macro as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n deal_id\n \n as \n \n deal_id\n \n, \n \n \n engagement_id\n \n as \n \n engagement_id\n \n\n\n\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n deal_id,\n engagement_id\n from macro\n \n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__engagement_deal`"}, "model.hubspot_source.stg_hubspot__company_property_history": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_sales_enabled','hubspot_company_enabled'])) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_hubspot__company_property_history_tmp') }}\n\n), macro as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_hubspot__company_property_history_tmp')),\n staging_columns=get_company_property_history_columns()\n )\n }}\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n company_id,\n name as field_name,\n source as change_source,\n source_id as change_source_id,\n change_timestamp,\n value as new_value\n from macro\n \n)\n\nselect *\nfrom fields", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "stg_hubspot__company_property_history"], "unique_id": "model.hubspot_source.stg_hubspot__company_property_history", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "stg_hubspot__company_property_history.sql", "original_file_path": "models/stg_hubspot__company_property_history.sql", "name": "stg_hubspot__company_property_history", "resource_type": "model", "alias": "stg_hubspot__company_property_history", "checksum": {"name": "sha256", "checksum": "59dea02252bdf8822fdd523bd457e25ed57a8be7e7045427e3a62a3676481c23"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_hubspot__company_property_history_tmp"], ["stg_hubspot__company_property_history_tmp"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.hubspot_source.get_company_property_history_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.hubspot_source.stg_hubspot__company_property_history_tmp", "model.hubspot_source.stg_hubspot__company_property_history_tmp"]}, "description": "Each record represents a change to company record in Hubspot.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "change_source": {"name": "change_source", "description": "The source (reason) of the change.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "change_source_id": {"name": "change_source_id", "description": "The ID of the object that caused the change, if applicable.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "change_timestamp": {"name": "change_timestamp", "description": "The timestamp the changed occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "company_id": {"name": "company_id", "description": "The ID of the related company record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "field_name": {"name": "field_name", "description": "The name of the field being changed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "new_value": {"name": "new_value", "description": "The new value of the field.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_hubspot__company.yml", "build_path": "target/compiled/hubspot_source/models/stg_hubspot__company_property_history.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "enabled": true}, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__company_property_history_tmp`\n\n), macro as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n company_id\n \n as \n \n company_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n source\n \n as \n \n source\n \n, \n \n \n source_id\n \n as \n \n source_id\n \n, \n \n \n timestamp\n \n as change_timestamp , \n \n \n value\n \n as \n \n value\n \n\n\n\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n company_id,\n name as field_name,\n source as change_source,\n source_id as change_source_id,\n change_timestamp,\n value as new_value\n from macro\n \n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__company_property_history`"}, "model.hubspot_source.stg_hubspot__email_event_delivered": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_marketing_enabled','hubspot_email_event_enabled','hubspot_email_event_delivered_enabled'])) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_hubspot__email_event_delivered_tmp') }}\n\n), macro as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_hubspot__email_event_delivered_tmp')),\n staging_columns=get_email_event_delivered_columns()\n )\n }}\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n id as event_id,\n response as returned_response,\n smtp_id\n from macro\n \n)\n\nselect *\nfrom fields", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "stg_hubspot__email_event_delivered"], "unique_id": "model.hubspot_source.stg_hubspot__email_event_delivered", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "stg_hubspot__email_event_delivered.sql", "original_file_path": "models/stg_hubspot__email_event_delivered.sql", "name": "stg_hubspot__email_event_delivered", "resource_type": "model", "alias": "stg_hubspot__email_event_delivered", "checksum": {"name": "sha256", "checksum": "a2b5ac41bde0c92869fe7e96ecc82b021c45ce01df87dbcac040fa1bfa4ab6dd"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_hubspot__email_event_delivered_tmp"], ["stg_hubspot__email_event_delivered_tmp"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.hubspot_source.get_email_event_delivered_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.hubspot_source.stg_hubspot__email_event_delivered_tmp", "model.hubspot_source.stg_hubspot__email_event_delivered_tmp"]}, "description": "Each record represents a DELIVERED email event.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "event_id": {"name": "event_id", "description": "The ID of the event.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "returned_response": {"name": "returned_response", "description": "The full response from the recipient's email server.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "smtp_id": {"name": "smtp_id", "description": "An ID attached to the message by HubSpot.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_hubspot__email.yml", "build_path": "target/compiled/hubspot_source/models/stg_hubspot__email_event_delivered.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "enabled": true}, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__email_event_delivered_tmp`\n\n), macro as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n response\n \n as \n \n response\n \n, \n \n \n smtp_id\n \n as \n \n smtp_id\n \n\n\n\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n id as event_id,\n response as returned_response,\n smtp_id\n from macro\n \n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__email_event_delivered`"}, "model.hubspot_source.stg_hubspot__owner": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_sales_enabled','hubspot_owner_enabled'])) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_hubspot__owner_tmp') }}\n\n), macro as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_hubspot__owner_tmp')),\n staging_columns=get_owner_columns()\n )\n }}\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n created_at as created_timestamp,\n email as email_address,\n first_name,\n last_name,\n owner_id,\n portal_id,\n type as owner_type,\n updated_at as updated_timestamp,\n trim( {{ dbt_utils.concat(['first_name', \"' '\", 'last_name']) }} ) as full_name\n from macro\n \n)\n\nselect *\nfrom fields", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "stg_hubspot__owner"], "unique_id": "model.hubspot_source.stg_hubspot__owner", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "stg_hubspot__owner.sql", "original_file_path": "models/stg_hubspot__owner.sql", "name": "stg_hubspot__owner", "resource_type": "model", "alias": "stg_hubspot__owner", "checksum": {"name": "sha256", "checksum": "626ce2b5147c5f027d6c45dbc4e4b7601787b13202e2181ce1fd06a6e2a1308c"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_hubspot__owner_tmp"], ["stg_hubspot__owner_tmp"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.hubspot_source.get_owner_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.concat"], "nodes": ["model.hubspot_source.stg_hubspot__owner_tmp", "model.hubspot_source.stg_hubspot__owner_tmp"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__owner.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "enabled": true}, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__owner_tmp`\n\n), macro as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n owner_id\n \n as \n \n owner_id\n \n, \n \n \n portal_id\n \n as \n \n portal_id\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n created_at as created_timestamp,\n email as email_address,\n first_name,\n last_name,\n owner_id,\n portal_id,\n type as owner_type,\n updated_at as updated_timestamp,\n trim( concat(first_name, ' ', last_name) ) as full_name\n from macro\n \n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__owner`"}, "model.hubspot_source.stg_hubspot__email_event": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_marketing_enabled','hubspot_email_event_enabled'])) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_hubspot__email_event_tmp') }}\n\n), macro as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_hubspot__email_event_tmp')),\n staging_columns=get_email_event_columns()\n )\n }}\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n app_id,\n caused_by_created as caused_timestamp,\n caused_by_id as caused_by_event_id,\n created as created_timestamp,\n email_campaign_id,\n filtered_event as is_filtered_event,\n id as event_id,\n obsoleted_by_created as obsoleted_timestamp,\n obsoleted_by_id as obsoleted_by_event_id,\n portal_id,\n recipient as recipient_email_address,\n sent_by_created as sent_timestamp,\n sent_by_id as sent_by_event_id,\n type as event_type\n from macro\n \n)\n\nselect *\nfrom fields", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "stg_hubspot__email_event"], "unique_id": "model.hubspot_source.stg_hubspot__email_event", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "stg_hubspot__email_event.sql", "original_file_path": "models/stg_hubspot__email_event.sql", "name": "stg_hubspot__email_event", "resource_type": "model", "alias": "stg_hubspot__email_event", "checksum": {"name": "sha256", "checksum": "bb1e2e17bfe96ee5eee95744f9c9bb5834309f76e7dba67159225ec074341d24"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_hubspot__email_event_tmp"], ["stg_hubspot__email_event_tmp"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.hubspot_source.get_email_event_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.hubspot_source.stg_hubspot__email_event_tmp", "model.hubspot_source.stg_hubspot__email_event_tmp"]}, "description": "Each record represents an email event in Hubspot.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "app_id": {"name": "app_id", "description": "The ID of the app that sent the email.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "caused_by_event_id": {"name": "caused_by_event_id", "description": "The event ID which uniquely identifies the event which directly caused this event. If not applicable, this property is omitted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "caused_timestamp": {"name": "caused_timestamp", "description": "The timestamp of the event that caused this event.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_timestamp": {"name": "created_timestamp", "description": "The created timestamp of the event.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "email_campaign_id": {"name": "email_campaign_id", "description": "The ID of the related email campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "event_id": {"name": "event_id", "description": "The ID of the event.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "event_type": {"name": "event_type", "description": "The type of event.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_filtered_event": {"name": "is_filtered_event", "description": "A boolean representing whether the event has been filtered out of reporting based on customer reports settings or not.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "obsoleted_by_event_id": {"name": "obsoleted_by_event_id", "description": "The event ID which uniquely identifies the follow-on event which makes this current event obsolete. If not applicable, this property is omitted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "obsoleted_timestamp": {"name": "obsoleted_timestamp", "description": "The timestamp of the event that made the current event obsolete.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "portal_id": {"name": "portal_id", "description": "The hub ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "recipient_email_address": {"name": "recipient_email_address", "description": "The email address of the contact related to the event.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sent_by_event_id": {"name": "sent_by_event_id", "description": "The event ID which uniquely identifies the email message's SENT event. If not applicable, this property is omitted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sent_timestamp": {"name": "sent_timestamp", "description": "The timestamp of the SENT event related to this event.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_hubspot__email.yml", "build_path": "target/compiled/hubspot_source/models/stg_hubspot__email_event.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "enabled": true}, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__email_event_tmp`\n\n), macro as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n app_id\n \n as \n \n app_id\n \n, \n \n \n caused_by_created\n \n as \n \n caused_by_created\n \n, \n \n \n caused_by_id\n \n as \n \n caused_by_id\n \n, \n \n \n created\n \n as \n \n created\n \n, \n \n \n email_campaign_id\n \n as \n \n email_campaign_id\n \n, \n \n \n filtered_event\n \n as \n \n filtered_event\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n obsoleted_by_created\n \n as \n \n obsoleted_by_created\n \n, \n \n \n obsoleted_by_id\n \n as \n \n obsoleted_by_id\n \n, \n \n \n portal_id\n \n as \n \n portal_id\n \n, \n \n \n recipient\n \n as \n \n recipient\n \n, \n \n \n sent_by_created\n \n as \n \n sent_by_created\n \n, \n \n \n sent_by_id\n \n as \n \n sent_by_id\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n app_id,\n caused_by_created as caused_timestamp,\n caused_by_id as caused_by_event_id,\n created as created_timestamp,\n email_campaign_id,\n filtered_event as is_filtered_event,\n id as event_id,\n obsoleted_by_created as obsoleted_timestamp,\n obsoleted_by_id as obsoleted_by_event_id,\n portal_id,\n recipient as recipient_email_address,\n sent_by_created as sent_timestamp,\n sent_by_id as sent_by_event_id,\n type as event_type\n from macro\n \n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__email_event`"}, "model.hubspot_source.stg_hubspot__engagement_meeting": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_sales_enabled','hubspot_engagement_enabled','hubspot_engagement_email_enabled'])) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_hubspot__engagement_meeting_tmp') }}\n\n), macro as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_hubspot__engagement_meeting_tmp')),\n staging_columns=get_engagement_meeting_columns()\n )\n }}\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n body as meeting_notes,\n created_from_link_id,\n end_time as end_timestamp,\n engagement_id,\n external_url,\n meeting_outcome,\n pre_meeting_prospect_reminders,\n source,\n source_id,\n start_time as start_timestamp,\n title as meeting_title,\n web_conference_meeting_id\n from macro\n \n)\n\nselect *\nfrom fields", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "stg_hubspot__engagement_meeting"], "unique_id": "model.hubspot_source.stg_hubspot__engagement_meeting", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "stg_hubspot__engagement_meeting.sql", "original_file_path": "models/stg_hubspot__engagement_meeting.sql", "name": "stg_hubspot__engagement_meeting", "resource_type": "model", "alias": "stg_hubspot__engagement_meeting", "checksum": {"name": "sha256", "checksum": "d910723f79bca69c002268a0d48154cf925a26a01204efde0e5e3e3d10f4caaa"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_hubspot__engagement_meeting_tmp"], ["stg_hubspot__engagement_meeting_tmp"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.hubspot_source.get_engagement_meeting_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.hubspot_source.stg_hubspot__engagement_meeting_tmp", "model.hubspot_source.stg_hubspot__engagement_meeting_tmp"]}, "description": "Each record represents a MEETING engagement event.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "end_timestamp": {"name": "end_timestamp", "description": "A timestamp representing the end time of the meeting", "meta": {}, "data_type": null, "quote": null, "tags": []}, "engagement_id": {"name": "engagement_id", "description": "The ID of the engagement.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "external_url": {"name": "external_url", "description": "The external URL of the engagement.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "meeting_notes": {"name": "meeting_notes", "description": "The details or body of the meeting.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "meeting_outcome": {"name": "meeting_outcome", "description": "The meeting outcome.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "meeting_title": {"name": "meeting_title", "description": "The title or subject of the meeting", "meta": {}, "data_type": null, "quote": null, "tags": []}, "source": {"name": "source", "description": "The source of the meeting.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "source_id": {"name": "source_id", "description": "The internal ID of the meeting source.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "start_timestamp": {"name": "start_timestamp", "description": "A timestamp representing the start time of the meeting", "meta": {}, "data_type": null, "quote": null, "tags": []}, "web_conference_meeting_id": {"name": "web_conference_meeting_id", "description": "The ID of the web conference meeting.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_hubspot__engagement.yml", "build_path": "target/compiled/hubspot_source/models/stg_hubspot__engagement_meeting.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "enabled": true}, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__engagement_meeting_tmp`\n\n), macro as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n body\n \n as \n \n body\n \n, \n \n \n created_from_link_id\n \n as \n \n created_from_link_id\n \n, \n \n \n end_time\n \n as \n \n end_time\n \n, \n \n \n engagement_id\n \n as \n \n engagement_id\n \n, \n \n \n external_url\n \n as \n \n external_url\n \n, \n cast(null as \n string\n) as \n \n location\n \n , \n \n \n meeting_outcome\n \n as \n \n meeting_outcome\n \n, \n \n \n pre_meeting_prospect_reminders\n \n as \n \n pre_meeting_prospect_reminders\n \n, \n \n \n source\n \n as \n \n source\n \n, \n \n \n source_id\n \n as \n \n source_id\n \n, \n \n \n start_time\n \n as \n \n start_time\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n web_conference_meeting_id\n \n as \n \n web_conference_meeting_id\n \n\n\n\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n body as meeting_notes,\n created_from_link_id,\n end_time as end_timestamp,\n engagement_id,\n external_url,\n meeting_outcome,\n pre_meeting_prospect_reminders,\n source,\n source_id,\n start_time as start_timestamp,\n title as meeting_title,\n web_conference_meeting_id\n from macro\n \n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__engagement_meeting`"}, "model.hubspot_source.stg_hubspot__engagement_email": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_sales_enabled','hubspot_engagement_enabled','hubspot_engagement_email_enabled'])) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_hubspot__engagement_email_tmp') }}\n\n), macro as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_hubspot__engagement_email_tmp')),\n staging_columns=get_engagement_email_columns()\n )\n }}\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n attached_video_id,\n attached_video_opened as was_attached_video_opened,\n attached_video_watched as was_attached_video_watched,\n email_send_event_id_created as email_send_event_created_timestamp,\n email_send_event_id_id as email_send_event_id,\n engagement_id,\n error_message,\n facsimile_send_id,\n from_email,\n from_first_name,\n from_last_name,\n html as email_html,\n logged_from,\n media_processing_status,\n message_id,\n post_send_status,\n recipient_drop_reasons,\n sent_via,\n status as email_status,\n subject as email_subject,\n text as email_text,\n thread_id,\n tracker_key,\n validation_skipped\n from macro\n \n)\n\nselect *\nfrom fields", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "stg_hubspot__engagement_email"], "unique_id": "model.hubspot_source.stg_hubspot__engagement_email", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "stg_hubspot__engagement_email.sql", "original_file_path": "models/stg_hubspot__engagement_email.sql", "name": "stg_hubspot__engagement_email", "resource_type": "model", "alias": "stg_hubspot__engagement_email", "checksum": {"name": "sha256", "checksum": "edd7d47164f70610df36c264e85497c09e96507a9fb7cba4d4116f31eb16c0e4"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_hubspot__engagement_email_tmp"], ["stg_hubspot__engagement_email_tmp"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.hubspot_source.get_engagement_email_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.hubspot_source.stg_hubspot__engagement_email_tmp", "model.hubspot_source.stg_hubspot__engagement_email_tmp"]}, "description": "Each record represents an EMAIL engagement event.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "attached_video_id": {"name": "attached_video_id", "description": "The ID of the video attached.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "email_html": {"name": "email_html", "description": "The body of the HTML email.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "email_send_event_created_timestamp": {"name": "email_send_event_created_timestamp", "description": "When the SENT event occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "email_send_event_id": {"name": "email_send_event_id", "description": "The ID of the related SENT email event.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "email_status": {"name": "email_status", "description": "The status of the engagement.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "email_subject": {"name": "email_subject", "description": "The subject of the email.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "email_text": {"name": "email_text", "description": "The body of the text-only email.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "engagement_id": {"name": "engagement_id", "description": "The ID of the engagement.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "error_message": {"name": "error_message", "description": "The error message, if applicable.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "from_email": {"name": "from_email", "description": "The email address of the sender.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "from_first_name": {"name": "from_first_name", "description": "The first name of the sender.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "from_last_name": {"name": "from_last_name", "description": "The last name of the sender.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "media_processing_status": {"name": "media_processing_status", "description": "The processing status of the media content in the email.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "message_id": {"name": "message_id", "description": "The ID of the message.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sent_via": {"name": "sent_via", "description": "How the email was sent.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "thread_id": {"name": "thread_id", "description": "The ID of the email thread.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "was_attached_video_opened": {"name": "was_attached_video_opened", "description": "Whether the the attached video was opened.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "was_attached_video_watched": {"name": "was_attached_video_watched", "description": "Whether the the attached video was watched.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_hubspot__engagement.yml", "build_path": "target/compiled/hubspot_source/models/stg_hubspot__engagement_email.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "enabled": true}, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__engagement_email_tmp`\n\n), macro as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n attached_video_id\n \n as \n \n attached_video_id\n \n, \n \n \n attached_video_opened\n \n as \n \n attached_video_opened\n \n, \n \n \n attached_video_watched\n \n as \n \n attached_video_watched\n \n, \n \n \n email_send_event_id_created\n \n as \n \n email_send_event_id_created\n \n, \n \n \n email_send_event_id_id\n \n as \n \n email_send_event_id_id\n \n, \n \n \n engagement_id\n \n as \n \n engagement_id\n \n, \n \n \n error_message\n \n as \n \n error_message\n \n, \n \n \n facsimile_send_id\n \n as \n \n facsimile_send_id\n \n, \n \n \n from_email\n \n as \n \n from_email\n \n, \n \n \n from_first_name\n \n as \n \n from_first_name\n \n, \n \n \n from_last_name\n \n as \n \n from_last_name\n \n, \n \n \n html\n \n as \n \n html\n \n, \n \n \n logged_from\n \n as \n \n logged_from\n \n, \n \n \n media_processing_status\n \n as \n \n media_processing_status\n \n, \n cast(null as boolean) as \n \n member_of_forwarded_subthread\n \n , \n \n \n message_id\n \n as \n \n message_id\n \n, \n \n \n post_send_status\n \n as \n \n post_send_status\n \n, \n \n \n recipient_drop_reasons\n \n as \n \n recipient_drop_reasons\n \n, \n \n \n sent_via\n \n as \n \n sent_via\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n subject\n \n as \n \n subject\n \n, \n \n \n text\n \n as \n \n text\n \n, \n \n \n thread_id\n \n as \n \n thread_id\n \n, \n \n \n tracker_key\n \n as \n \n tracker_key\n \n, \n \n \n validation_skipped\n \n as \n \n validation_skipped\n \n\n\n\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n attached_video_id,\n attached_video_opened as was_attached_video_opened,\n attached_video_watched as was_attached_video_watched,\n email_send_event_id_created as email_send_event_created_timestamp,\n email_send_event_id_id as email_send_event_id,\n engagement_id,\n error_message,\n facsimile_send_id,\n from_email,\n from_first_name,\n from_last_name,\n html as email_html,\n logged_from,\n media_processing_status,\n message_id,\n post_send_status,\n recipient_drop_reasons,\n sent_via,\n status as email_status,\n subject as email_subject,\n text as email_text,\n thread_id,\n tracker_key,\n validation_skipped\n from macro\n \n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__engagement_email`"}, "model.hubspot_source.stg_hubspot__ticket_contact": {"raw_sql": "{{ config(enabled=var('hubspot_service_enabled', False)) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_hubspot__ticket_contact_tmp') }}\n\n), macro as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_hubspot__ticket_contact_tmp')),\n staging_columns=get_ticket_contact_columns()\n )\n }}\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n ticket_id,\n contact_id\n\n from macro\n\n)\n\nselect *\nfrom fields", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "stg_hubspot__ticket_contact"], "unique_id": "model.hubspot_source.stg_hubspot__ticket_contact", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "stg_hubspot__ticket_contact.sql", "original_file_path": "models/stg_hubspot__ticket_contact.sql", "name": "stg_hubspot__ticket_contact", "resource_type": "model", "alias": "stg_hubspot__ticket_contact", "checksum": {"name": "sha256", "checksum": "8b4ea45115ac9528415e6e70165c58a88ecaada0c684632e4a8437ca43f87081"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_hubspot__ticket_contact_tmp"], ["stg_hubspot__ticket_contact_tmp"]], "sources": [], "depends_on": {"macros": ["macro.hubspot_source.get_ticket_contact_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.hubspot_source.stg_hubspot__ticket_contact_tmp", "model.hubspot_source.stg_hubspot__ticket_contact_tmp"]}, "description": "Each record represents a 'link' between a ticket and a contact.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ticket_id": {"name": "ticket_id", "description": "The ID of the related ticket.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "contact_id": {"name": "contact_id", "description": "The ID of the related contact.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_hubspot__ticket.yml", "build_path": "target/compiled/hubspot_source/models/stg_hubspot__ticket_contact.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "enabled": true}, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__ticket_contact_tmp`\n\n), macro as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ticket_id\n \n as \n \n ticket_id\n \n, \n \n \n contact_id\n \n as \n \n contact_id\n \n\n\n\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n ticket_id,\n contact_id\n\n from macro\n\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__ticket_contact`"}, "model.hubspot_source.stg_hubspot__email_event_status_change": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_marketing_enabled','hubspot_email_event_enabled','hubspot_email_event_status_change_enabled'])) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_hubspot__email_event_status_change_tmp') }}\n\n), macro as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_hubspot__email_event_status_change_tmp')),\n staging_columns=get_email_event_status_change_columns()\n )\n }}\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n bounced as is_bounced,\n id as event_id,\n portal_subscription_status as subscription_status,\n requested_by as requested_by_email,\n source as change_source,\n subscriptions\n from macro\n \n)\n\nselect *\nfrom fields", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "stg_hubspot__email_event_status_change"], "unique_id": "model.hubspot_source.stg_hubspot__email_event_status_change", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "stg_hubspot__email_event_status_change.sql", "original_file_path": "models/stg_hubspot__email_event_status_change.sql", "name": "stg_hubspot__email_event_status_change", "resource_type": "model", "alias": "stg_hubspot__email_event_status_change", "checksum": {"name": "sha256", "checksum": "47cf9452432fd6984c4804eafa08188df00800c45c65d7be98bc993031756230"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_hubspot__email_event_status_change_tmp"], ["stg_hubspot__email_event_status_change_tmp"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.hubspot_source.get_email_event_status_change_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.hubspot_source.stg_hubspot__email_event_status_change_tmp", "model.hubspot_source.stg_hubspot__email_event_status_change_tmp"]}, "description": "Each record represents a STATUS_CHANGE email event in Hubspot.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "change_source": {"name": "change_source", "description": "The source of the subscription change.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "event_id": {"name": "event_id", "description": "The ID of the event.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_bounced": {"name": "is_bounced", "description": "A HubSpot employee explicitly initiated the status change to block messages to the recipient. \n(Note this usage has been deprecated in favor of dropping messages with a 'dropReason' of BLOCKED_ADDRESS.)\n", "meta": {}, "data_type": null, "quote": null, "tags": []}, "requested_by_email": {"name": "requested_by_email", "description": "The email address of the person requesting the change on behalf of the recipient. If not applicable, this property is omitted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "subscription_status": {"name": "subscription_status", "description": "The recipient's portal subscription status. \nNote that if this is 'UNSUBSCRIBED', the property 'subscriptions' is not necessarily an empty array, nor are all \nsubscriptions contained in it necessarily going to have their statuses set to 'UNSUBSCRIBED'.)\n", "meta": {}, "data_type": null, "quote": null, "tags": []}, "subscriptions": {"name": "subscriptions", "description": "An array of JSON objects representing the status of subscriptions for the recipient. \nEach JSON subscription object is comprised of the properties: 'id', 'status'.\n", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_hubspot__email.yml", "build_path": "target/compiled/hubspot_source/models/stg_hubspot__email_event_status_change.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "enabled": true}, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__email_event_status_change_tmp`\n\n), macro as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n bounced\n \n as \n \n bounced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n portal_subscription_status\n \n as \n \n portal_subscription_status\n \n, \n \n \n requested_by\n \n as \n \n requested_by\n \n, \n \n \n source\n \n as \n \n source\n \n, \n \n \n subscriptions\n \n as \n \n subscriptions\n \n\n\n\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n bounced as is_bounced,\n id as event_id,\n portal_subscription_status as subscription_status,\n requested_by as requested_by_email,\n source as change_source,\n subscriptions\n from macro\n \n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__email_event_status_change`"}, "model.hubspot_source.stg_hubspot__contact_list_member": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_marketing_enabled', 'hubspot_contact_list_member_enabled'])) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_hubspot__contact_list_member_tmp') }}\n where not coalesce(_fivetran_deleted, false) \n\n), macro as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_hubspot__contact_list_member_tmp')),\n staging_columns=get_contact_list_member_columns()\n )\n }}\n from base\n\n), fields as (\n\n select\n _fivetran_deleted,\n _fivetran_synced,\n added_at as added_timestamp,\n contact_id,\n contact_list_id\n from macro\n \n)\n\nselect *\nfrom fields", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "stg_hubspot__contact_list_member"], "unique_id": "model.hubspot_source.stg_hubspot__contact_list_member", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "stg_hubspot__contact_list_member.sql", "original_file_path": "models/stg_hubspot__contact_list_member.sql", "name": "stg_hubspot__contact_list_member", "resource_type": "model", "alias": "stg_hubspot__contact_list_member", "checksum": {"name": "sha256", "checksum": "529ddc64ce4980fd6d4259fcba04a31bd34acdf98fbd61001ffcf1d8c50d5fa1"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_hubspot__contact_list_member_tmp"], ["stg_hubspot__contact_list_member_tmp"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.hubspot_source.get_contact_list_member_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.hubspot_source.stg_hubspot__contact_list_member_tmp", "model.hubspot_source.stg_hubspot__contact_list_member_tmp"]}, "description": "Each record represents a 'link' between a contact and a contact list.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Timestamp of when Fivetran marked a record as deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "added_timestamp": {"name": "added_timestamp", "description": "The timestamp a contact was added to a list.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "contact_id": {"name": "contact_id", "description": "The ID of the related contact.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "contact_list_id": {"name": "contact_list_id", "description": "The ID of the related contact list.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_hubspot__contact.yml", "build_path": "target/compiled/hubspot_source/models/stg_hubspot__contact_list_member.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "enabled": true}, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__contact_list_member_tmp`\n where not coalesce(_fivetran_deleted, false) \n\n), macro as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n added_at\n \n as \n \n added_at\n \n, \n \n \n contact_id\n \n as \n \n contact_id\n \n, \n \n \n contact_list_id\n \n as \n \n contact_list_id\n \n\n\n\n from base\n\n), fields as (\n\n select\n _fivetran_deleted,\n _fivetran_synced,\n added_at as added_timestamp,\n contact_id,\n contact_list_id\n from macro\n \n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__contact_list_member`"}, "model.hubspot_source.stg_hubspot__contact": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_marketing_enabled', 'hubspot_contact_enabled'])) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_hubspot__contact_tmp') }}\n where not coalesce(_fivetran_deleted, false) \n\n), macro as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_hubspot__contact_tmp')),\n staging_columns=get_contact_columns()\n )\n }}\n from base\n\n), fields as (\n\n select\n _fivetran_deleted,\n _fivetran_synced,\n id as contact_id\n\n --The below macro adds the fields defined within your hubspot__contact_pass_through_columns variable into the staging model\n {{ fivetran_utils.fill_pass_through_columns('hubspot__contact_pass_through_columns') }}\n\n from macro\n \n)\n\nselect *\nfrom fields", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "stg_hubspot__contact"], "unique_id": "model.hubspot_source.stg_hubspot__contact", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "stg_hubspot__contact.sql", "original_file_path": "models/stg_hubspot__contact.sql", "name": "stg_hubspot__contact", "resource_type": "model", "alias": "stg_hubspot__contact", "checksum": {"name": "sha256", "checksum": "81e25d8c5165ed4222cbba407c37caff26bbefb2caf10b0d3fccf3c8a2f8e73e"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_hubspot__contact_tmp"], ["stg_hubspot__contact_tmp"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.hubspot_source.get_contact_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.hubspot_source.stg_hubspot__contact_tmp", "model.hubspot_source.stg_hubspot__contact_tmp"]}, "description": "Each record represents a contact in Hubspot.", "columns": {"contact_id": {"name": "contact_id", "description": "The ID of the contact.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "email": {"name": "email", "description": "The email address of the contact.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_hubspot__contact.yml", "build_path": "target/compiled/hubspot_source/models/stg_hubspot__contact.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "enabled": true}, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__contact_tmp`\n where not coalesce(_fivetran_deleted, false) \n\n), macro as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n cast(null as \n timestamp\n) as \n \n _fivetran_synced\n \n , \n \n \n id\n \n as \n \n id\n \n\n\n\n from base\n\n), fields as (\n\n select\n _fivetran_deleted,\n _fivetran_synced,\n id as contact_id\n\n --The below macro adds the fields defined within your hubspot__contact_pass_through_columns variable into the staging model\n \n\n\n\n\n\n from macro\n \n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__contact`"}, "model.hubspot_source.stg_hubspot__deal": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_sales_enabled','hubspot_deal_enabled'])) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_hubspot__deal_tmp') }}\n where not coalesce(is_deleted, false) \n\n), macro as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_hubspot__deal_tmp')),\n staging_columns=get_deal_columns()\n )\n }}\n from base\n\n), fields as (\n\n select\n deal_id,\n deal_pipeline_id,\n deal_pipeline_stage_id,\n is_deleted,\n owner_id,\n portal_id\n\n --The below macro adds the fields defined within your hubspot__deal_pass_through_columns variable into the staging model\n {{ fivetran_utils.fill_pass_through_columns('hubspot__deal_pass_through_columns') }}\n\n from macro\n \n)\n\nselect *\nfrom fields", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "stg_hubspot__deal"], "unique_id": "model.hubspot_source.stg_hubspot__deal", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "stg_hubspot__deal.sql", "original_file_path": "models/stg_hubspot__deal.sql", "name": "stg_hubspot__deal", "resource_type": "model", "alias": "stg_hubspot__deal", "checksum": {"name": "sha256", "checksum": "831fe4e771668ab8be6c1dad9e1fc42490772fc7eda7ca02647193c94cb1fe0a"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_hubspot__deal_tmp"], ["stg_hubspot__deal_tmp"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.hubspot_source.get_deal_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.hubspot_source.stg_hubspot__deal_tmp", "model.hubspot_source.stg_hubspot__deal_tmp"]}, "description": "Each record represents a deal in Hubspot.", "columns": {"deal_id": {"name": "deal_id", "description": "The ID of the deal", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_deleted": {"name": "is_deleted", "description": "Whether the record was deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "portal_id": {"name": "portal_id", "description": "The hub ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deal_pipeline_id": {"name": "deal_pipeline_id", "description": "The ID of the deal's pipeline.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deal_pipeline_stage_id": {"name": "deal_pipeline_stage_id", "description": "The ID of the deal's pipeline stage.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "owner_id": {"name": "owner_id", "description": "The ID of the deal's owner.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_hubspot__deal.yml", "build_path": "target/compiled/hubspot_source/models/stg_hubspot__deal.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "enabled": true}, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__deal_tmp`\n where not coalesce(is_deleted, false) \n\n), macro as (\n\n select\n \n cast(null as \n timestamp\n) as \n \n _fivetran_synced\n \n , \n \n \n deal_id\n \n as \n \n deal_id\n \n, \n \n \n deal_pipeline_id\n \n as \n \n deal_pipeline_id\n \n, \n \n \n deal_pipeline_stage_id\n \n as \n \n deal_pipeline_stage_id\n \n, \n \n \n is_deleted\n \n as \n \n is_deleted\n \n, \n \n \n owner_id\n \n as \n \n owner_id\n \n, \n cast(null as \n int64\n) as \n \n portal_id\n \n \n\n\n from base\n\n), fields as (\n\n select\n deal_id,\n deal_pipeline_id,\n deal_pipeline_stage_id,\n is_deleted,\n owner_id,\n portal_id\n\n --The below macro adds the fields defined within your hubspot__deal_pass_through_columns variable into the staging model\n \n\n\n\n\n\n from macro\n \n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__deal`"}, "model.hubspot_source.stg_hubspot__deal_pipeline": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_sales_enabled','hubspot_deal_enabled'])) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_hubspot__deal_pipeline_tmp') }}\n where not coalesce(_fivetran_deleted, false) \n\n), macro as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_hubspot__deal_pipeline_tmp')),\n staging_columns=get_deal_pipeline_columns()\n )\n }}\n from base\n\n), fields as (\n\n select\n _fivetran_deleted,\n _fivetran_synced,\n active as is_active,\n display_order,\n label as pipeline_label,\n pipeline_id as deal_pipeline_id\n from macro\n \n)\n\nselect *\nfrom fields", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "stg_hubspot__deal_pipeline"], "unique_id": "model.hubspot_source.stg_hubspot__deal_pipeline", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "stg_hubspot__deal_pipeline.sql", "original_file_path": "models/stg_hubspot__deal_pipeline.sql", "name": "stg_hubspot__deal_pipeline", "resource_type": "model", "alias": "stg_hubspot__deal_pipeline", "checksum": {"name": "sha256", "checksum": "f7439518b3b019ce528c4a95b210edbf32f3bf08cc6b1735cd929627b1306f18"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_hubspot__deal_pipeline_tmp"], ["stg_hubspot__deal_pipeline_tmp"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.hubspot_source.get_deal_pipeline_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.hubspot_source.stg_hubspot__deal_pipeline_tmp", "model.hubspot_source.stg_hubspot__deal_pipeline_tmp"]}, "description": "Each record represents a pipeline in Hubspot.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Timestamp of when Fivetran marked a record as deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deal_pipeline_id": {"name": "deal_pipeline_id", "description": "The ID of the pipeline.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "display_order": {"name": "display_order", "description": "Used to determine the order in which the pipelines appear when viewed in HubSpot", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Whether the stage is currently in use.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "pipeline_label": {"name": "pipeline_label", "description": "The human-readable label for the pipeline. The label is used when showing the pipeline in HubSpot.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_hubspot__deal.yml", "build_path": "target/compiled/hubspot_source/models/stg_hubspot__deal_pipeline.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "enabled": true}, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__deal_pipeline_tmp`\n where not coalesce(_fivetran_deleted, false) \n\n), macro as (\n\n select\n \n \n \n _fivetran_deleted\n \n 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 display_order\n \n as \n \n display_order\n \n, \n \n \n label\n \n as \n \n label\n \n, \n \n \n pipeline_id\n \n as \n \n pipeline_id\n \n\n\n\n from base\n\n), fields as (\n\n select\n _fivetran_deleted,\n _fivetran_synced,\n active as is_active,\n display_order,\n label as pipeline_label,\n pipeline_id as deal_pipeline_id\n from macro\n \n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__deal_pipeline`"}, "model.hubspot_source.stg_hubspot__deal_company": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_sales_enabled','hubspot_deal_enabled','hubspot_deal_company_enabled'])) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_hubspot__deal_company_tmp') }}\n\n), macro as (\n\n select \n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_hubspot__deal_company_tmp')),\n staging_columns=get_deal_company_columns()\n )\n }}\n from base\n\n), fields as (\n\n select\n company_id,\n deal_id,\n _fivetran_synced\n \n from macro\n \n)\n\nselect *\nfrom fields", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "stg_hubspot__deal_company"], "unique_id": "model.hubspot_source.stg_hubspot__deal_company", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "stg_hubspot__deal_company.sql", "original_file_path": "models/stg_hubspot__deal_company.sql", "name": "stg_hubspot__deal_company", "resource_type": "model", "alias": "stg_hubspot__deal_company", "checksum": {"name": "sha256", "checksum": "c983b53b3367493154bef750609cb5e6985ae420a959fb1c0685ad9a781f2372"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_hubspot__deal_company_tmp"], ["stg_hubspot__deal_company_tmp"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.hubspot_source.get_deal_company_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.hubspot_source.stg_hubspot__deal_company_tmp", "model.hubspot_source.stg_hubspot__deal_company_tmp"]}, "description": "Each record represents a 'link' between a deal and company.", "columns": {"company_id": {"name": "company_id", "description": "The ID of the company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deal_id": {"name": "deal_id", "description": "The ID of the deal.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_hubspot__deal.yml", "build_path": "target/compiled/hubspot_source/models/stg_hubspot__deal_company.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "enabled": true}, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__deal_company_tmp`\n\n), macro as (\n\n select \n \n cast(null as \n timestamp\n) as \n \n _fivetran_synced\n \n , \n \n \n deal_id\n \n as \n \n deal_id\n \n, \n \n \n company_id\n \n as \n \n company_id\n \n\n\n\n from base\n\n), fields as (\n\n select\n company_id,\n deal_id,\n _fivetran_synced\n \n from macro\n \n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__deal_company`"}, "model.hubspot_source.stg_hubspot__engagement_note": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_sales_enabled','hubspot_engagement_enabled','hubspot_engagement_note_enabled'])) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_hubspot__engagement_note_tmp') }}\n\n), macro as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_hubspot__engagement_note_tmp')),\n staging_columns=get_engagement_note_columns()\n )\n }}\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n body as note,\n engagement_id\n from macro\n \n)\n\nselect *\nfrom fields", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "stg_hubspot__engagement_note"], "unique_id": "model.hubspot_source.stg_hubspot__engagement_note", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "stg_hubspot__engagement_note.sql", "original_file_path": "models/stg_hubspot__engagement_note.sql", "name": "stg_hubspot__engagement_note", "resource_type": "model", "alias": "stg_hubspot__engagement_note", "checksum": {"name": "sha256", "checksum": "7b310c029c7520e9bbf11fcdde24318af6cf4e23b59f246479f692b7893809e6"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_hubspot__engagement_note_tmp"], ["stg_hubspot__engagement_note_tmp"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.hubspot_source.get_engagement_note_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.hubspot_source.stg_hubspot__engagement_note_tmp", "model.hubspot_source.stg_hubspot__engagement_note_tmp"]}, "description": "Each record represents a NOTE engagement event.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "engagement_id": {"name": "engagement_id", "description": "The ID of the engagement.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "note": {"name": "note", "description": "The body of the note. The body has a limit of 65536 characters.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_hubspot__engagement.yml", "build_path": "target/compiled/hubspot_source/models/stg_hubspot__engagement_note.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "enabled": true}, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__engagement_note_tmp`\n\n), macro as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n body\n \n as \n \n body\n \n, \n \n \n engagement_id\n \n as \n \n engagement_id\n \n\n\n\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n body as note,\n engagement_id\n from macro\n \n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__engagement_note`"}, "model.hubspot_source.stg_hubspot__engagement_contact": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_sales_enabled','hubspot_engagement_enabled','hubspot_engagement_contact_enabled'])) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_hubspot__engagement_contact_tmp') }}\n\n), macro as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_hubspot__engagement_contact_tmp')),\n staging_columns=get_engagement_contact_columns()\n )\n }}\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n contact_id,\n engagement_id\n from macro\n \n)\n\nselect *\nfrom fields", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "stg_hubspot__engagement_contact"], "unique_id": "model.hubspot_source.stg_hubspot__engagement_contact", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "stg_hubspot__engagement_contact.sql", "original_file_path": "models/stg_hubspot__engagement_contact.sql", "name": "stg_hubspot__engagement_contact", "resource_type": "model", "alias": "stg_hubspot__engagement_contact", "checksum": {"name": "sha256", "checksum": "b19c1faca89259973191ee9267a2f2ac0af262a365eb881c9ea16e702478435a"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_hubspot__engagement_contact_tmp"], ["stg_hubspot__engagement_contact_tmp"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.hubspot_source.get_engagement_contact_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.hubspot_source.stg_hubspot__engagement_contact_tmp", "model.hubspot_source.stg_hubspot__engagement_contact_tmp"]}, "description": "Each record represents a 'link' between a contact and an engagement.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "contact_id": {"name": "contact_id", "description": "The ID of the related contact.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "engagement_id": {"name": "engagement_id", "description": "The ID of the related engagement.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_hubspot__engagement.yml", "build_path": "target/compiled/hubspot_source/models/stg_hubspot__engagement_contact.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "enabled": true}, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__engagement_contact_tmp`\n\n), macro as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n contact_id\n \n as \n \n contact_id\n \n, \n \n \n engagement_id\n \n as \n \n engagement_id\n \n\n\n\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n contact_id,\n engagement_id\n from macro\n \n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__engagement_contact`"}, "model.hubspot_source.stg_hubspot__contact_list": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_marketing_enabled', 'hubspot_contact_list_enabled'])) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_hubspot__contact_list_tmp') }}\n where not coalesce(_fivetran_deleted, false) \n\n), macro as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_hubspot__contact_list_tmp')),\n staging_columns=get_contact_list_columns()\n )\n }}\n from base\n\n), fields as (\n\n select\n _fivetran_deleted,\n _fivetran_synced,\n created_at as created_timestamp,\n deleteable as is_deletable,\n dynamic as is_dynamic,\n id as contact_list_id,\n metadata_error,\n metadata_last_processing_state_change_at,\n metadata_last_size_change_at,\n metadata_processing,\n metadata_size,\n name as contact_list_name,\n portal_id,\n updated_at as updated_timestamp\n from macro\n \n)\n\nselect *\nfrom fields", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "stg_hubspot__contact_list"], "unique_id": "model.hubspot_source.stg_hubspot__contact_list", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "stg_hubspot__contact_list.sql", "original_file_path": "models/stg_hubspot__contact_list.sql", "name": "stg_hubspot__contact_list", "resource_type": "model", "alias": "stg_hubspot__contact_list", "checksum": {"name": "sha256", "checksum": "f40198e9164b014074254e8104223f9dfa3dbf488bb46fa3952f3cca348518f6"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_hubspot__contact_list_tmp"], ["stg_hubspot__contact_list_tmp"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.hubspot_source.get_contact_list_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.hubspot_source.stg_hubspot__contact_list_tmp", "model.hubspot_source.stg_hubspot__contact_list_tmp"]}, "description": "Each record represents a contact list in Hubspot.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Timestamp of when Fivetran marked a record as deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran marked a record as deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "contact_list_id": {"name": "contact_list_id", "description": "The ID of the contact list.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "contact_list_name": {"name": "contact_list_name", "description": "The name of the contact list.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_timestamp": {"name": "created_timestamp", "description": "A timestamp of the time the list was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_deletable": {"name": "is_deletable", "description": "If this is false, this is a system list and cannot be deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_dynamic": {"name": "is_dynamic", "description": "Whether the contact list is dynamic.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "metadata_error": {"name": "metadata_error", "description": "Any errors that happened the last time the list was processed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "metadata_last_processing_state_change_at": {"name": "metadata_last_processing_state_change_at", "description": "A timestamp of the last time that the processing state changed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "metadata_last_size_change_at": {"name": "metadata_last_size_change_at", "description": "A timestamp of the last time that the size of the list changed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "metadata_processing": {"name": "metadata_processing", "description": "One of DONE, REFRESHING, INITIALIZING, or PROCESSING. \nDONE indicates the list has finished processing, any other value indicates that list membership is being evaluated.\n", "meta": {}, "data_type": null, "quote": null, "tags": []}, "metadata_size": {"name": "metadata_size", "description": "The approximate number of contacts in the list.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "portal_id": {"name": "portal_id", "description": "The hub ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "A timestamp of the time that the list was last modified.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_hubspot__contact.yml", "build_path": "target/compiled/hubspot_source/models/stg_hubspot__contact_list.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "enabled": true}, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__contact_list_tmp`\n where not coalesce(_fivetran_deleted, false) \n\n), macro as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n deleteable\n \n as \n \n deleteable\n \n, \n \n \n dynamic\n \n as \n \n dynamic\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n metadata_error\n \n as \n \n metadata_error\n \n, \n \n \n metadata_last_processing_state_change_at\n \n as \n \n metadata_last_processing_state_change_at\n \n, \n \n \n metadata_last_size_change_at\n \n as \n \n metadata_last_size_change_at\n \n, \n \n \n metadata_processing\n \n as \n \n metadata_processing\n \n, \n \n \n metadata_size\n \n as \n \n metadata_size\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n portal_id\n \n as \n \n portal_id\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n from base\n\n), fields as (\n\n select\n _fivetran_deleted,\n _fivetran_synced,\n created_at as created_timestamp,\n deleteable as is_deletable,\n dynamic as is_dynamic,\n id as contact_list_id,\n metadata_error,\n metadata_last_processing_state_change_at,\n metadata_last_size_change_at,\n metadata_processing,\n metadata_size,\n name as contact_list_name,\n portal_id,\n updated_at as updated_timestamp\n from macro\n \n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__contact_list`"}, "model.hubspot_source.stg_hubspot__ticket_pipeline": {"raw_sql": "{{ config(enabled=var('hubspot_service_enabled', False)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_hubspot__ticket_pipeline_tmp') }}\n\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_hubspot__ticket_pipeline_tmp')),\n staging_columns=get_ticket_pipeline_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(pipeline_id as {{ dbt_utils.type_int() }} ) as pipeline_id,\n _fivetran_deleted,\n _fivetran_synced,\n active as is_active,\n display_order,\n label,\n object_type_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "stg_hubspot__ticket_pipeline"], "unique_id": "model.hubspot_source.stg_hubspot__ticket_pipeline", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "stg_hubspot__ticket_pipeline.sql", "original_file_path": "models/stg_hubspot__ticket_pipeline.sql", "name": "stg_hubspot__ticket_pipeline", "resource_type": "model", "alias": "stg_hubspot__ticket_pipeline", "checksum": {"name": "sha256", "checksum": "48a4b8cf389d8f372866c42c0a7c4832f09eeb919e62df390a4dffd3bc1f934a"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_hubspot__ticket_pipeline_tmp"], ["stg_hubspot__ticket_pipeline_tmp"]], "sources": [], "depends_on": {"macros": ["macro.hubspot_source.get_ticket_pipeline_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_int"], "nodes": ["model.hubspot_source.stg_hubspot__ticket_pipeline_tmp", "model.hubspot_source.stg_hubspot__ticket_pipeline_tmp"]}, "description": "Each record represents a ticket pipeline.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Timestamp of when Fivetran marked a record as deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Boolean indicating whether the pipeline is active.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "display_order": {"name": "display_order", "description": "Used to determine the order in which the stages appear when viewed in HubSpot.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "label": {"name": "label", "description": "The human-readable label for the stage. The label is used when showing the stage in HubSpot.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "object_type_id": {"name": "object_type_id", "description": "Reference to the object type.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "pipeline_id": {"name": "pipeline_id", "description": "Reference to the pipeline.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_hubspot__ticket.yml", "build_path": "target/compiled/hubspot_source/models/stg_hubspot__ticket_pipeline.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "enabled": true}, "compiled_sql": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__ticket_pipeline_tmp`\n\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n 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 display_order\n \n as \n \n display_order\n \n, \n \n \n label\n \n as \n \n label\n \n, \n \n \n object_type_id\n \n as \n \n object_type_id\n \n, \n \n \n pipeline_id\n \n as \n \n pipeline_id\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(pipeline_id as \n int64\n ) as pipeline_id,\n _fivetran_deleted,\n _fivetran_synced,\n active as is_active,\n display_order,\n label,\n object_type_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__ticket_pipeline`"}, "model.hubspot_source.stg_hubspot__email_event_spam_report": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_marketing_enabled','hubspot_email_event_enabled','hubspot_email_event_spam_report_enabled'])) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_hubspot__email_event_spam_report_tmp') }}\n\n), macro as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_hubspot__email_event_spam_report_tmp')),\n staging_columns=get_email_event_spam_report_columns()\n )\n }}\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n id as event_id,\n ip_address,\n user_agent\n from macro\n \n)\n\nselect *\nfrom fields", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "stg_hubspot__email_event_spam_report"], "unique_id": "model.hubspot_source.stg_hubspot__email_event_spam_report", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "stg_hubspot__email_event_spam_report.sql", "original_file_path": "models/stg_hubspot__email_event_spam_report.sql", "name": "stg_hubspot__email_event_spam_report", "resource_type": "model", "alias": "stg_hubspot__email_event_spam_report", "checksum": {"name": "sha256", "checksum": "85421198bb7bbdce49003dbf19fccf4704af2b5f9725d4bce09b5d4bbee33826"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_hubspot__email_event_spam_report_tmp"], ["stg_hubspot__email_event_spam_report_tmp"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.hubspot_source.get_email_event_spam_report_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.hubspot_source.stg_hubspot__email_event_spam_report_tmp", "model.hubspot_source.stg_hubspot__email_event_spam_report_tmp"]}, "description": "Each record represents a SPAM_REPORT email event.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "event_id": {"name": "event_id", "description": "The ID of the event.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ip_address": {"name": "ip_address", "description": "The contact's IP address when the event occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "user_agent": {"name": "user_agent", "description": "The user agent responsible for the event, e.g. \u201cMozilla/5.0 (Macintosh; Intel Mac OS X 10_8_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.95 Safari/537.36\u201d", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_hubspot__email.yml", "build_path": "target/compiled/hubspot_source/models/stg_hubspot__email_event_spam_report.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "enabled": true}, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__email_event_spam_report_tmp`\n\n), macro as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n ip_address\n \n as \n \n ip_address\n \n, \n \n \n user_agent\n \n as \n \n user_agent\n \n\n\n\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n id as event_id,\n ip_address,\n user_agent\n from macro\n \n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__email_event_spam_report`"}, "model.hubspot_source.stg_hubspot__deal_pipeline_stage": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_sales_enabled','hubspot_deal_enabled'])) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_hubspot__deal_pipeline_stage_tmp') }}\n where not coalesce(_fivetran_deleted, false) \n\n), macro as (\n\n select \n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_hubspot__deal_pipeline_stage_tmp')),\n staging_columns=get_deal_pipeline_stage_columns()\n )\n }}\n from base\n\n), fields as (\n\n select\n _fivetran_deleted,\n _fivetran_synced,\n active as is_active,\n closed_won as is_closed_won,\n display_order,\n label as pipeline_stage_label,\n pipeline_id as deal_pipeline_id,\n probability,\n stage_id as deal_pipeline_stage_id\n from macro\n \n)\n\nselect *\nfrom fields", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "stg_hubspot__deal_pipeline_stage"], "unique_id": "model.hubspot_source.stg_hubspot__deal_pipeline_stage", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "stg_hubspot__deal_pipeline_stage.sql", "original_file_path": "models/stg_hubspot__deal_pipeline_stage.sql", "name": "stg_hubspot__deal_pipeline_stage", "resource_type": "model", "alias": "stg_hubspot__deal_pipeline_stage", "checksum": {"name": "sha256", "checksum": "4085b0857f377e535d2b83f6909a18e6a31c4d44d1f738408f75fb906136777f"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_hubspot__deal_pipeline_stage_tmp"], ["stg_hubspot__deal_pipeline_stage_tmp"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.hubspot_source.get_deal_pipeline_stage_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.hubspot_source.stg_hubspot__deal_pipeline_stage_tmp", "model.hubspot_source.stg_hubspot__deal_pipeline_stage_tmp"]}, "description": "Each record represents a pipeline stage in Hubspot.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Timestamp of when Fivetran marked a record as deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deal_pipeline_id": {"name": "deal_pipeline_id", "description": "The ID of the related pipeline.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deal_pipeline_stage_id": {"name": "deal_pipeline_stage_id", "description": "The ID of the pipeline stage.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "display_order": {"name": "display_order", "description": "Used to determine the order in which the stages appear when viewed in HubSpot.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Whether the pipeline stage is currently in use.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_closed_won": {"name": "is_closed_won", "description": "Whether the stage represents a Closed Won deal.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "pipeline_stage_label": {"name": "pipeline_stage_label", "description": "The human-readable label for the stage. The label is used when showing the stage in HubSpot.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "probability": {"name": "probability", "description": "The probability that the deal will close. Used for the deal forecast.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_hubspot__deal.yml", "build_path": "target/compiled/hubspot_source/models/stg_hubspot__deal_pipeline_stage.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "enabled": true}, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__deal_pipeline_stage_tmp`\n where not coalesce(_fivetran_deleted, false) \n\n), macro as (\n\n select \n \n \n \n _fivetran_deleted\n \n 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 closed_won\n \n as \n \n closed_won\n \n, \n \n \n display_order\n \n as \n \n display_order\n \n, \n \n \n label\n \n as \n \n label\n \n, \n \n \n pipeline_id\n \n as \n \n pipeline_id\n \n, \n \n \n probability\n \n as \n \n probability\n \n, \n \n \n stage_id\n \n as \n \n stage_id\n \n\n\n\n from base\n\n), fields as (\n\n select\n _fivetran_deleted,\n _fivetran_synced,\n active as is_active,\n closed_won as is_closed_won,\n display_order,\n label as pipeline_stage_label,\n pipeline_id as deal_pipeline_id,\n probability,\n stage_id as deal_pipeline_stage_id\n from macro\n \n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__deal_pipeline_stage`"}, "model.hubspot_source.stg_hubspot__email_event_dropped": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_marketing_enabled','hubspot_email_event_enabled','hubspot_email_event_dropped_enabled'])) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_hubspot__email_event_dropped_tmp') }}\n\n), macro as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_hubspot__email_event_dropped_tmp')),\n staging_columns=get_email_event_dropped_columns()\n )\n }}\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n bcc as bcc_emails,\n cc as cc_emails,\n drop_message,\n drop_reason,\n from_email,\n id as event_id,\n reply_to as reply_to_email,\n subject as email_subject\n from macro\n \n)\n\nselect *\nfrom fields", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "stg_hubspot__email_event_dropped"], "unique_id": "model.hubspot_source.stg_hubspot__email_event_dropped", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "stg_hubspot__email_event_dropped.sql", "original_file_path": "models/stg_hubspot__email_event_dropped.sql", "name": "stg_hubspot__email_event_dropped", "resource_type": "model", "alias": "stg_hubspot__email_event_dropped", "checksum": {"name": "sha256", "checksum": "2d5939db8f2fb9a3bfbc5e734b8554fad4dbd3dfc3401c90cad38a532ba467f0"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_hubspot__email_event_dropped_tmp"], ["stg_hubspot__email_event_dropped_tmp"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.hubspot_source.get_email_event_dropped_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.hubspot_source.stg_hubspot__email_event_dropped_tmp", "model.hubspot_source.stg_hubspot__email_event_dropped_tmp"]}, "description": "Each record represents a DROPPED email event.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bcc_emails": {"name": "bcc_emails", "description": "The 'bcc' field of the email message.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cc_emails": {"name": "cc_emails", "description": "The 'cc' field of the email message.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "drop_message": {"name": "drop_message", "description": "The raw message describing why the email message was dropped. This will usually provide additional details beyond 'dropReason'.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "drop_reason": {"name": "drop_reason", "description": "The reason why the email message was dropped. See below for the possible values.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "email_subject": {"name": "email_subject", "description": "The subject line of the email message.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "event_id": {"name": "event_id", "description": "The ID of the event.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "from_email": {"name": "from_email", "description": "The 'from' field of the email message.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "reply_to_email": {"name": "reply_to_email", "description": "The 'reply-to' field of the email message.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_hubspot__email.yml", "build_path": "target/compiled/hubspot_source/models/stg_hubspot__email_event_dropped.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "enabled": true}, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__email_event_dropped_tmp`\n\n), macro as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n bcc\n \n as \n \n bcc\n \n, \n \n \n cc\n \n as \n \n cc\n \n, \n \n \n drop_message\n \n as \n \n drop_message\n \n, \n \n \n drop_reason\n \n as \n \n drop_reason\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n reply_to\n \n as \n \n reply_to\n \n, \n \n \n subject\n \n as \n \n subject\n \n, \n \n \n \n \n `from`\n \n \n \n as from_email \n\n\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n bcc as bcc_emails,\n cc as cc_emails,\n drop_message,\n drop_reason,\n from_email,\n id as event_id,\n reply_to as reply_to_email,\n subject as email_subject\n from macro\n \n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__email_event_dropped`"}, "model.hubspot_source.stg_hubspot__deal_stage": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_sales_enabled','hubspot_deal_enabled'])) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_hubspot__deal_stage_tmp') }}\n\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_hubspot__deal_stage_tmp')),\n staging_columns=get_deal_stage_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n date_entered,\n deal_id,\n source,\n source_id,\n value as deal_stage_name,\n _fivetran_active,\n _fivetran_end,\n _fivetran_start\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "stg_hubspot__deal_stage"], "unique_id": "model.hubspot_source.stg_hubspot__deal_stage", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "stg_hubspot__deal_stage.sql", "original_file_path": "models/stg_hubspot__deal_stage.sql", "name": "stg_hubspot__deal_stage", "resource_type": "model", "alias": "stg_hubspot__deal_stage", "checksum": {"name": "sha256", "checksum": "bb5e4d21137deba5d5a08fcf0c5e6d646ac24eff16a58fb067f3193acf6eb05e"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_hubspot__deal_stage_tmp"], ["stg_hubspot__deal_stage_tmp"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.hubspot_source.get_deal_stage_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.hubspot_source.stg_hubspot__deal_stage_tmp", "model.hubspot_source.stg_hubspot__deal_stage_tmp"]}, "description": "Each record represents a deal stage.", "columns": {"_fivetran_active": {"name": "_fivetran_active", "description": "Boolean indicating whether the deal stage is active.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "The Fivetran calculated exist time of the deal stage.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "The date the deal stage was entered.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "date_entered": {"name": "date_entered", "description": "The timestamp the deal stage was entered.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deal_id": {"name": "deal_id", "description": "Reference to the deal.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "source": {"name": "source", "description": "The relevant source of the deal stage.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "source_id": {"name": "source_id", "description": "Reference to the source.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deal_stage_name": {"name": "deal_stage_name", "description": "The value of the deal stage. Typically the name of the stage.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_hubspot__deal.yml", "build_path": "target/compiled/hubspot_source/models/stg_hubspot__deal_stage.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "enabled": true}, "compiled_sql": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__deal_stage_tmp`\n\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n date_entered\n \n as \n \n date_entered\n \n, \n \n \n deal_id\n \n as \n \n deal_id\n \n, \n \n \n source\n \n as \n \n source\n \n, \n \n \n source_id\n \n as \n \n source_id\n \n, \n \n \n value\n \n as \n \n value\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n date_entered,\n deal_id,\n source,\n source_id,\n value as deal_stage_name,\n _fivetran_active,\n _fivetran_end,\n _fivetran_start\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__deal_stage`"}, "model.hubspot_source.stg_hubspot__deal_property_history": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_sales_enabled','hubspot_deal_enabled'])) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_hubspot__deal_property_history_tmp') }}\n\n), macro as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_hubspot__deal_property_history_tmp')),\n staging_columns=get_deal_property_history_columns()\n )\n }}\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n deal_id,\n name as field_name,\n source as change_source,\n source_id as change_source_id,\n change_timestamp,\n value as new_value\n from macro\n \n)\n\nselect *\nfrom fields", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "stg_hubspot__deal_property_history"], "unique_id": "model.hubspot_source.stg_hubspot__deal_property_history", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "stg_hubspot__deal_property_history.sql", "original_file_path": "models/stg_hubspot__deal_property_history.sql", "name": "stg_hubspot__deal_property_history", "resource_type": "model", "alias": "stg_hubspot__deal_property_history", "checksum": {"name": "sha256", "checksum": "d5a1b5ea2f28e232ad9e562b7baac22d94d4aece9b549a47a84ffba8f7d867f5"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_hubspot__deal_property_history_tmp"], ["stg_hubspot__deal_property_history_tmp"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.hubspot_source.get_deal_property_history_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.hubspot_source.stg_hubspot__deal_property_history_tmp", "model.hubspot_source.stg_hubspot__deal_property_history_tmp"]}, "description": "Each record represents the details of your deal properties.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "change_source": {"name": "change_source", "description": "The source (reason) of the change.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "change_source_id": {"name": "change_source_id", "description": "The ID of the object that caused the change, if applicable.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "change_timestamp": {"name": "change_timestamp", "description": "The timestamp the changed occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deal_id": {"name": "deal_id", "description": "The ID of the related deal record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "field_name": {"name": "field_name", "description": "The name of the field being changed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "new_value": {"name": "new_value", "description": "The new value of the field.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_hubspot__deal.yml", "build_path": "target/compiled/hubspot_source/models/stg_hubspot__deal_property_history.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "enabled": true}, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__deal_property_history_tmp`\n\n), macro as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n deal_id\n \n as \n \n deal_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n source\n \n as \n \n source\n \n, \n \n \n source_id\n \n as \n \n source_id\n \n, \n \n \n timestamp\n \n as change_timestamp , \n \n \n value\n \n as \n \n value\n \n\n\n\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n deal_id,\n name as field_name,\n source as change_source,\n source_id as change_source_id,\n change_timestamp,\n value as new_value\n from macro\n \n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__deal_property_history`"}, "model.hubspot_source.stg_hubspot__email_event_forward": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_marketing_enabled','hubspot_email_event_enabled','hubspot_email_event_forward_enabled'])) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_hubspot__email_event_forward_tmp') }}\n\n), macro as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_hubspot__email_event_forward_tmp')),\n staging_columns=get_email_event_forward_columns()\n )\n }}\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n browser,\n id as event_id,\n ip_address,\n location as geo_location,\n user_agent\n from macro\n \n)\n\nselect *\nfrom fields", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "stg_hubspot__email_event_forward"], "unique_id": "model.hubspot_source.stg_hubspot__email_event_forward", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "stg_hubspot__email_event_forward.sql", "original_file_path": "models/stg_hubspot__email_event_forward.sql", "name": "stg_hubspot__email_event_forward", "resource_type": "model", "alias": "stg_hubspot__email_event_forward", "checksum": {"name": "sha256", "checksum": "00813368b7860a58153dc20ec275a28fc00a8dd68d9713af5f7d2ea784f8d205"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_hubspot__email_event_forward_tmp"], ["stg_hubspot__email_event_forward_tmp"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.hubspot_source.get_email_event_forward_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.hubspot_source.stg_hubspot__email_event_forward_tmp", "model.hubspot_source.stg_hubspot__email_event_forward_tmp"]}, "description": "Each record represents a FORWARD email event.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "browser": {"name": "browser", "description": "A JSON object representing the browser which serviced the event. Its comprised of the properties: 'name', 'family', 'producer', 'producer_url', 'type', 'url', 'version'.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "event_id": {"name": "event_id", "description": "The ID of the event.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "geo_location": {"name": "geo_location", "description": "A JSON object representing the location where the event occurred. It's comprised of the properties: 'city', 'state', 'country'.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ip_address": {"name": "ip_address", "description": "The contact's IP address when the event occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "user_agent": {"name": "user_agent", "description": "The user agent responsible for the event, e.g. \u201cMozilla/5.0 (Macintosh; Intel Mac OS X 10_8_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.95 Safari/537.36\u201d", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_hubspot__email.yml", "build_path": "target/compiled/hubspot_source/models/stg_hubspot__email_event_forward.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "enabled": true}, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__email_event_forward_tmp`\n\n), macro as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n browser\n \n as \n \n browser\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n ip_address\n \n as \n \n ip_address\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n user_agent\n \n as \n \n user_agent\n \n\n\n\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n browser,\n id as event_id,\n ip_address,\n location as geo_location,\n user_agent\n from macro\n \n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__email_event_forward`"}, "model.hubspot_source.stg_hubspot__ticket_deal": {"raw_sql": "{{ config(enabled=var('hubspot_service_enabled', False)) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_hubspot__ticket_deal_tmp') }}\n\n), macro as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_hubspot__ticket_deal_tmp')),\n staging_columns=get_ticket_deal_columns()\n )\n }}\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n ticket_id,\n deal_id\n\n from macro\n\n)\n\nselect *\nfrom fields", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "stg_hubspot__ticket_deal"], "unique_id": "model.hubspot_source.stg_hubspot__ticket_deal", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "stg_hubspot__ticket_deal.sql", "original_file_path": "models/stg_hubspot__ticket_deal.sql", "name": "stg_hubspot__ticket_deal", "resource_type": "model", "alias": "stg_hubspot__ticket_deal", "checksum": {"name": "sha256", "checksum": "3619012836ee6540ec7bc0f8a6f8c36b4866eebadaaf15443b6477978a47a30c"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_hubspot__ticket_deal_tmp"], ["stg_hubspot__ticket_deal_tmp"]], "sources": [], "depends_on": {"macros": ["macro.hubspot_source.get_ticket_deal_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.hubspot_source.stg_hubspot__ticket_deal_tmp", "model.hubspot_source.stg_hubspot__ticket_deal_tmp"]}, "description": "Each record represents a 'link' between a ticket and a deal.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ticket_id": {"name": "ticket_id", "description": "The ID of the related ticket.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deal_id": {"name": "deal_id", "description": "The ID of the related deal.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_hubspot__ticket.yml", "build_path": "target/compiled/hubspot_source/models/stg_hubspot__ticket_deal.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "enabled": true}, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__ticket_deal_tmp`\n\n), macro as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ticket_id\n \n as \n \n ticket_id\n \n, \n \n \n deal_id\n \n as \n \n deal_id\n \n\n\n\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n ticket_id,\n deal_id\n\n from macro\n\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__ticket_deal`"}, "model.hubspot_source.stg_hubspot__email_event_bounce": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_marketing_enabled','hubspot_email_event_enabled','hubspot_email_event_bounce_enabled'])) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_hubspot__email_event_bounce_tmp') }}\n\n), macro as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_hubspot__email_event_bounce_tmp')),\n staging_columns=get_email_event_bounce_columns()\n )\n }}\n from base\n \n), fields as (\n\n select\n _fivetran_synced,\n category as bounce_category,\n id as event_id,\n response as returned_response,\n status as returned_status\n from macro\n \n)\n\nselect *\nfrom fields", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "stg_hubspot__email_event_bounce"], "unique_id": "model.hubspot_source.stg_hubspot__email_event_bounce", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "stg_hubspot__email_event_bounce.sql", "original_file_path": "models/stg_hubspot__email_event_bounce.sql", "name": "stg_hubspot__email_event_bounce", "resource_type": "model", "alias": "stg_hubspot__email_event_bounce", "checksum": {"name": "sha256", "checksum": "025e8ac7e6d46d4db4879f113c367e3ba915d1179642f26a1afb35d61cf78d77"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_hubspot__email_event_bounce_tmp"], ["stg_hubspot__email_event_bounce_tmp"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.hubspot_source.get_email_event_bounce_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.hubspot_source.stg_hubspot__email_event_bounce_tmp", "model.hubspot_source.stg_hubspot__email_event_bounce_tmp"]}, "description": "Each record represents a BOUNCE email event.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bounce_category": {"name": "bounce_category", "description": "The best-guess of the type of bounce encountered. \nIf an appropriate category couldn't be determined, this property is omitted. See below for the possible values. \nNote that this is a derived value, and may be modified at any time to improve the accuracy of classification.\n", "meta": {}, "data_type": null, "quote": null, "tags": []}, "event_id": {"name": "event_id", "description": "The ID of the event.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "returned_response": {"name": "returned_response", "description": "The full response from the recipient's email server.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "returned_status": {"name": "returned_status", "description": "The status code returned from the recipient's email server.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_hubspot__email.yml", "build_path": "target/compiled/hubspot_source/models/stg_hubspot__email_event_bounce.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "enabled": true}, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__email_event_bounce_tmp`\n\n), macro as (\n\n select\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 id\n \n as \n \n id\n \n, \n \n \n response\n \n as \n \n response\n \n, \n \n \n status\n \n as \n \n status\n \n\n\n\n from base\n \n), fields as (\n\n select\n _fivetran_synced,\n category as bounce_category,\n id as event_id,\n response as returned_response,\n status as returned_status\n from macro\n \n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__email_event_bounce`"}, "model.hubspot_source.stg_hubspot__ticket_engagement": {"raw_sql": "{{ config(enabled=var('hubspot_service_enabled', False)) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_hubspot__ticket_engagement_tmp') }}\n\n), macro as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_hubspot__ticket_engagement_tmp')),\n staging_columns=get_ticket_engagement_columns()\n )\n }}\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n ticket_id,\n engagement_id\n\n from macro\n\n)\n\nselect *\nfrom fields", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "stg_hubspot__ticket_engagement"], "unique_id": "model.hubspot_source.stg_hubspot__ticket_engagement", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "stg_hubspot__ticket_engagement.sql", "original_file_path": "models/stg_hubspot__ticket_engagement.sql", "name": "stg_hubspot__ticket_engagement", "resource_type": "model", "alias": "stg_hubspot__ticket_engagement", "checksum": {"name": "sha256", "checksum": "80a21d05bc43aae084adc9211f637bb29c7cab32359d7e1b70643895c67f8d2b"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_hubspot__ticket_engagement_tmp"], ["stg_hubspot__ticket_engagement_tmp"]], "sources": [], "depends_on": {"macros": ["macro.hubspot_source.get_ticket_engagement_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.hubspot_source.stg_hubspot__ticket_engagement_tmp", "model.hubspot_source.stg_hubspot__ticket_engagement_tmp"]}, "description": "Each record represents a 'link' between a ticket and an engagement.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ticket_id": {"name": "ticket_id", "description": "The ID of the related ticket.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "engagement_id": {"name": "engagement_id", "description": "The ID of the related deal.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_hubspot__ticket.yml", "build_path": "target/compiled/hubspot_source/models/stg_hubspot__ticket_engagement.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "enabled": true}, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__ticket_engagement_tmp`\n\n), macro as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ticket_id\n \n as \n \n ticket_id\n \n, \n \n \n engagement_id\n \n as \n \n engagement_id\n \n\n\n\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n ticket_id,\n engagement_id\n\n from macro\n\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__ticket_engagement`"}, "model.hubspot_source.stg_hubspot__ticket_pipeline_stage": {"raw_sql": "{{ config(enabled=var('hubspot_service_enabled', False)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_hubspot__ticket_pipeline_stage_tmp') }}\n\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_hubspot__ticket_pipeline_stage_tmp')),\n staging_columns=get_ticket_pipeline_stage_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n _fivetran_deleted,\n _fivetran_synced,\n active as is_active,\n display_order,\n is_closed,\n label,\n cast(pipeline_id as {{ dbt_utils.type_int() }} ) as pipeline_id,\n stage_id,\n ticket_state\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "stg_hubspot__ticket_pipeline_stage"], "unique_id": "model.hubspot_source.stg_hubspot__ticket_pipeline_stage", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "stg_hubspot__ticket_pipeline_stage.sql", "original_file_path": "models/stg_hubspot__ticket_pipeline_stage.sql", "name": "stg_hubspot__ticket_pipeline_stage", "resource_type": "model", "alias": "stg_hubspot__ticket_pipeline_stage", "checksum": {"name": "sha256", "checksum": "1c5b933fa86e2416e0bb8dd1e33b24c54cda379a0408754aadb71fd5293c0525"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_hubspot__ticket_pipeline_stage_tmp"], ["stg_hubspot__ticket_pipeline_stage_tmp"]], "sources": [], "depends_on": {"macros": ["macro.hubspot_source.get_ticket_pipeline_stage_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_int"], "nodes": ["model.hubspot_source.stg_hubspot__ticket_pipeline_stage_tmp", "model.hubspot_source.stg_hubspot__ticket_pipeline_stage_tmp"]}, "description": "Each record represents a ticket pipeline stage.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Timestamp of when Fivetran marked a record as deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Boolean indicating whether the pipeline stage is active.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "display_order": {"name": "display_order", "description": "Used to determine the order in which the stages appear when viewed in HubSpot.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_closed": {"name": "is_closed", "description": "Boolean indicating if the pipeline stage is closed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "label": {"name": "label", "description": "The human-readable label for the stage. The label is used when showing the stage in HubSpot.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "pipeline_id": {"name": "pipeline_id", "description": "The ID of the pipeline.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "stage_id": {"name": "stage_id", "description": "The ID of the pipeline stage.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ticket_state": {"name": "ticket_state", "description": "State of the ticket.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_hubspot__ticket.yml", "build_path": "target/compiled/hubspot_source/models/stg_hubspot__ticket_pipeline_stage.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "enabled": true}, "compiled_sql": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__ticket_pipeline_stage_tmp`\n\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n 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 display_order\n \n as \n \n display_order\n \n, \n \n \n is_closed\n \n as \n \n is_closed\n \n, \n \n \n label\n \n as \n \n label\n \n, \n \n \n pipeline_id\n \n as \n \n pipeline_id\n \n, \n \n \n stage_id\n \n as \n \n stage_id\n \n, \n \n \n ticket_state\n \n as \n \n ticket_state\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n _fivetran_deleted,\n _fivetran_synced,\n active as is_active,\n display_order,\n is_closed,\n label,\n cast(pipeline_id as \n int64\n ) as pipeline_id,\n stage_id,\n ticket_state\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__ticket_pipeline_stage`"}, "model.hubspot_source.stg_hubspot__engagement_company": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_sales_enabled','hubspot_engagement_enabled','hubspot_engagement_company_enabled'])) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_hubspot__engagement_company_tmp') }}\n\n), macro as (\n\n select \n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_hubspot__engagement_company_tmp')),\n staging_columns=get_engagement_company_columns()\n )\n }}\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n company_id,\n engagement_id\n from macro\n \n)\n\nselect *\nfrom fields", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "stg_hubspot__engagement_company"], "unique_id": "model.hubspot_source.stg_hubspot__engagement_company", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "stg_hubspot__engagement_company.sql", "original_file_path": "models/stg_hubspot__engagement_company.sql", "name": "stg_hubspot__engagement_company", "resource_type": "model", "alias": "stg_hubspot__engagement_company", "checksum": {"name": "sha256", "checksum": "a82033c7d83fb6aa8c725ec650e15509e3f63bb9cc935ad55e8f500d16e876a0"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_hubspot__engagement_company_tmp"], ["stg_hubspot__engagement_company_tmp"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.hubspot_source.get_engagement_company_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.hubspot_source.stg_hubspot__engagement_company_tmp", "model.hubspot_source.stg_hubspot__engagement_company_tmp"]}, "description": "Each record represents a 'link' between a company and an engagement.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "company_id": {"name": "company_id", "description": "The ID of the related company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "engagement_id": {"name": "engagement_id", "description": "The ID of the related engagement.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_hubspot__engagement.yml", "build_path": "target/compiled/hubspot_source/models/stg_hubspot__engagement_company.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "enabled": true}, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__engagement_company_tmp`\n\n), macro as (\n\n select \n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n company_id\n \n as \n \n company_id\n \n, \n \n \n engagement_id\n \n as \n \n engagement_id\n \n\n\n\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n company_id,\n engagement_id\n from macro\n \n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__engagement_company`"}, "model.hubspot_source.stg_hubspot__email_event_deferred": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_marketing_enabled','hubspot_email_event_enabled','hubspot_email_event_deferred_enabled'])) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_hubspot__email_event_deferred_tmp') }}\n\n), macro as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_hubspot__email_event_deferred_tmp')),\n staging_columns=get_email_event_deferred_columns()\n )\n }}\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n attempt as attempt_number,\n id as event_id,\n response as returned_response\n from macro\n \n)\n\nselect *\nfrom fields", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "stg_hubspot__email_event_deferred"], "unique_id": "model.hubspot_source.stg_hubspot__email_event_deferred", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "stg_hubspot__email_event_deferred.sql", "original_file_path": "models/stg_hubspot__email_event_deferred.sql", "name": "stg_hubspot__email_event_deferred", "resource_type": "model", "alias": "stg_hubspot__email_event_deferred", "checksum": {"name": "sha256", "checksum": "48b248becf6638995434435185f496caa08055bb06a77aa97929f0e9bddcaa3d"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_hubspot__email_event_deferred_tmp"], ["stg_hubspot__email_event_deferred_tmp"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.hubspot_source.get_email_event_deferred_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.hubspot_source.stg_hubspot__email_event_deferred_tmp", "model.hubspot_source.stg_hubspot__email_event_deferred_tmp"]}, "description": "Each record represents a DEFERRED email event.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "attempt_number": {"name": "attempt_number", "description": "The delivery attempt number.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "event_id": {"name": "event_id", "description": "The ID of the event.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "returned_response": {"name": "returned_response", "description": "The full response from the recipient's email server.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_hubspot__email.yml", "build_path": "target/compiled/hubspot_source/models/stg_hubspot__email_event_deferred.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "enabled": true}, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__email_event_deferred_tmp`\n\n), macro as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n attempt\n \n as \n \n attempt\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n response\n \n as \n \n response\n \n\n\n\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n attempt as attempt_number,\n id as event_id,\n response as returned_response\n from macro\n \n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__email_event_deferred`"}, "model.hubspot_source.stg_hubspot__company": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_sales_enabled','hubspot_company_enabled'])) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_hubspot__company_tmp') }}\n where not coalesce(is_deleted, false) \n\n), macro as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_hubspot__company_tmp')),\n staging_columns=get_company_columns()\n )\n }}\n from base\n\n), fields as (\n\n select\n id as company_id, \n _fivetran_synced,\n is_deleted\n\n --The below macro adds the fields defined within your hubspot__ticket_pass_through_columns variable into the staging model\n {{ fivetran_utils.fill_pass_through_columns('hubspot__company_pass_through_columns') }}\n \n from macro\n \n)\n\nselect *\nfrom fields", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "stg_hubspot__company"], "unique_id": "model.hubspot_source.stg_hubspot__company", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "stg_hubspot__company.sql", "original_file_path": "models/stg_hubspot__company.sql", "name": "stg_hubspot__company", "resource_type": "model", "alias": "stg_hubspot__company", "checksum": {"name": "sha256", "checksum": "c1d40cb82fc4811cac477bd7ec6ac66301664168fb046bc3f8725dbab4fd1c7c"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_hubspot__company_tmp"], ["stg_hubspot__company_tmp"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.hubspot_source.get_company_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.hubspot_source.stg_hubspot__company_tmp", "model.hubspot_source.stg_hubspot__company_tmp"]}, "description": "Each record represents a company in Hubspot.", "columns": {"company_id": {"name": "company_id", "description": "The ID of the company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "portal_id": {"name": "portal_id", "description": "The hub ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_deleted": {"name": "is_deleted", "description": "Whether the record has been deleted in Hubspot.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_hubspot__company.yml", "build_path": "target/compiled/hubspot_source/models/stg_hubspot__company.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "enabled": true}, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__company_tmp`\n where not coalesce(is_deleted, false) \n\n), macro as (\n\n select\n \n cast(null as \n timestamp\n) as \n \n _fivetran_synced\n \n , \n \n \n id\n \n as \n \n id\n \n, \n \n \n is_deleted\n \n as \n \n is_deleted\n \n\n\n\n from base\n\n), fields as (\n\n select\n id as company_id, \n _fivetran_synced,\n is_deleted\n\n --The below macro adds the fields defined within your hubspot__ticket_pass_through_columns variable into the staging model\n \n\n\n\n\n \n from macro\n \n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__company`"}, "model.hubspot_source.stg_hubspot__email_event_click": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_marketing_enabled','hubspot_email_event_enabled','hubspot_email_event_click_enabled'])) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_hubspot__email_event_click_tmp') }}\n\n), macro as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_hubspot__email_event_click_tmp')),\n staging_columns=get_email_event_click_columns()\n )\n }}\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n browser,\n id as event_id,\n ip_address,\n location as geo_location,\n referer as referer_url,\n url as click_url,\n user_agent\n from macro\n \n)\n\nselect *\nfrom fields", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "stg_hubspot__email_event_click"], "unique_id": "model.hubspot_source.stg_hubspot__email_event_click", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "stg_hubspot__email_event_click.sql", "original_file_path": "models/stg_hubspot__email_event_click.sql", "name": "stg_hubspot__email_event_click", "resource_type": "model", "alias": "stg_hubspot__email_event_click", "checksum": {"name": "sha256", "checksum": "9b390439502d6d4b7fc06e29435dc73e8af78365e92c4577749d8108ebd3c0b5"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_hubspot__email_event_click_tmp"], ["stg_hubspot__email_event_click_tmp"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.hubspot_source.get_email_event_click_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.hubspot_source.stg_hubspot__email_event_click_tmp", "model.hubspot_source.stg_hubspot__email_event_click_tmp"]}, "description": "Each record represents a CLICK email event.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "browser": {"name": "browser", "description": "A JSON object representing the browser which serviced the event. Its comprised of the properties: 'name', 'family', 'producer', 'producer_url', 'type', 'url', 'version'.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "click_url": {"name": "click_url", "description": "The URL within the message that the recipient clicked.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "event_id": {"name": "event_id", "description": "The ID of the event.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "geo_location": {"name": "geo_location", "description": "A JSON object representing the location where the event occurred. It's comprised of the properties: 'city', 'state', 'country'.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ip_address": {"name": "ip_address", "description": "The contact's IP address when the event occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "referer_url": {"name": "referer_url", "description": "The URL of the webpage that linked to the URL clicked. Whether this is provided, and what its value is, is determined by the recipient's email client.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "user_agent": {"name": "user_agent", "description": "The user agent responsible for the event, e.g. \u201cMozilla/5.0 (Macintosh; Intel Mac OS X 10_8_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.95 Safari/537.36\u201d", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_hubspot__email.yml", "build_path": "target/compiled/hubspot_source/models/stg_hubspot__email_event_click.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "enabled": true}, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__email_event_click_tmp`\n\n), macro as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n browser\n \n as \n \n browser\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n ip_address\n \n as \n \n ip_address\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n referer\n \n as \n \n referer\n \n, \n \n \n url\n \n as \n \n url\n \n, \n \n \n user_agent\n \n as \n \n user_agent\n \n\n\n\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n browser,\n id as event_id,\n ip_address,\n location as geo_location,\n referer as referer_url,\n url as click_url,\n user_agent\n from macro\n \n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__email_event_click`"}, "model.hubspot_source.stg_hubspot__engagement_call": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_sales_enabled','hubspot_engagement_enabled','hubspot_engagement_call_enabled'])) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_hubspot__engagement_call_tmp') }}\n\n), macro as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_hubspot__engagement_call_tmp')),\n staging_columns=get_engagement_call_columns()\n )\n }}\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n body as call_notes,\n callee_object_id,\n callee_object_type,\n disposition as disposition_id,\n duration_milliseconds as call_duration_milliseconds,\n engagement_id,\n external_account_id,\n external_id,\n from_number,\n recording_url,\n status as call_status,\n to_number,\n transcription_id,\n unknown_visitor_conversation\n from macro\n \n)\n\nselect *\nfrom fields", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "stg_hubspot__engagement_call"], "unique_id": "model.hubspot_source.stg_hubspot__engagement_call", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "stg_hubspot__engagement_call.sql", "original_file_path": "models/stg_hubspot__engagement_call.sql", "name": "stg_hubspot__engagement_call", "resource_type": "model", "alias": "stg_hubspot__engagement_call", "checksum": {"name": "sha256", "checksum": "dc7d0533bf3301520d71db2b46ddf5c79a76392ba12bac6b464815e00a727a09"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_hubspot__engagement_call_tmp"], ["stg_hubspot__engagement_call_tmp"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.hubspot_source.get_engagement_call_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.hubspot_source.stg_hubspot__engagement_call_tmp", "model.hubspot_source.stg_hubspot__engagement_call_tmp"]}, "description": "Each record represents a CALL engagement event.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "call_duration_milliseconds": {"name": "call_duration_milliseconds", "description": "The length of the call in milliseconds", "meta": {}, "data_type": null, "quote": null, "tags": []}, "disposition_id": {"name": "disposition_id", "description": "The internal ID for the call outcome.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "engagement_id": {"name": "engagement_id", "description": "The ID of the engagement.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "external_account_id": {"name": "external_account_id", "description": "For calls made in HubSpot, this will be the internal ID of the account used to make the call.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "external_id": {"name": "external_id", "description": "For calls made in HubSpot, this will be the internal ID of the call.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "from_number": {"name": "from_number", "description": "The phone number that was used as the from number.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "recording_url": {"name": "recording_url", "description": "The URL of the recording file .", "meta": {}, "data_type": null, "quote": null, "tags": []}, "to_number": {"name": "to_number", "description": "The phone number that was called.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_hubspot__engagement.yml", "build_path": "target/compiled/hubspot_source/models/stg_hubspot__engagement_call.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "enabled": true}, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__engagement_call_tmp`\n\n), macro as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n body\n \n as \n \n body\n \n, \n \n \n callee_object_id\n \n as \n \n callee_object_id\n \n, \n \n \n callee_object_type\n \n as \n \n callee_object_type\n \n, \n \n \n disposition\n \n as \n \n disposition\n \n, \n \n \n duration_milliseconds\n \n as \n \n duration_milliseconds\n \n, \n \n \n engagement_id\n \n as \n \n engagement_id\n \n, \n \n \n external_account_id\n \n as \n \n external_account_id\n \n, \n \n \n external_id\n \n as \n \n external_id\n \n, \n \n \n from_number\n \n as \n \n from_number\n \n, \n \n \n recording_url\n \n as \n \n recording_url\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n to_number\n \n as \n \n to_number\n \n, \n \n \n transcription_id\n \n as \n \n transcription_id\n \n, \n \n \n unknown_visitor_conversation\n \n as \n \n unknown_visitor_conversation\n \n\n\n\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n body as call_notes,\n callee_object_id,\n callee_object_type,\n disposition as disposition_id,\n duration_milliseconds as call_duration_milliseconds,\n engagement_id,\n external_account_id,\n external_id,\n from_number,\n recording_url,\n status as call_status,\n to_number,\n transcription_id,\n unknown_visitor_conversation\n from macro\n \n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__engagement_call`"}, "model.hubspot_source.stg_hubspot__engagement": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_sales_enabled','hubspot_engagement_enabled'])) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_hubspot__engagement_tmp') }}\n\n), macro as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_hubspot__engagement_tmp')),\n staging_columns=get_engagement_columns()\n )\n }}\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n active as is_active,\n activity_type,\n created_at as created_timestamp,\n id as engagement_id,\n last_updated as last_updated_timestamp,\n owner_id,\n portal_id,\n occurred_timestamp,\n engagement_type\n from macro\n \n)\n\nselect *\nfrom fields", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "stg_hubspot__engagement"], "unique_id": "model.hubspot_source.stg_hubspot__engagement", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "stg_hubspot__engagement.sql", "original_file_path": "models/stg_hubspot__engagement.sql", "name": "stg_hubspot__engagement", "resource_type": "model", "alias": "stg_hubspot__engagement", "checksum": {"name": "sha256", "checksum": "05bf5578777dbb9ae9a0facdee9187c1f9daa7a80b970ca6166d9baa7e50d2e7"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_hubspot__engagement_tmp"], ["stg_hubspot__engagement_tmp"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.hubspot_source.get_engagement_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.hubspot_source.stg_hubspot__engagement_tmp", "model.hubspot_source.stg_hubspot__engagement_tmp"]}, "description": "Each record represents an engagement", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "activity_type": {"name": "activity_type", "description": "The engagement's activity type.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_timestamp": {"name": "created_timestamp", "description": "A timestamp representing when the engagement was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "engagement_id": {"name": "engagement_id", "description": "The ID of the engagement.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "engagement_type": {"name": "engagement_type", "description": "One of NOTE, EMAIL, TASK, MEETING, or CALL, the type of the engagement.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Whether the engagement is currently being shown in the UI.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_updated_timestamp": {"name": "last_updated_timestamp", "description": "A timestamp in representing when the engagement was last updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "occurred_timestamp": {"name": "occurred_timestamp", "description": "A timestamp in representing the time that the engagement should appear in the timeline.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "owner_id": {"name": "owner_id", "description": "The ID of the engagement's owner.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "portal_id": {"name": "portal_id", "description": "The hub ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_hubspot__engagement.yml", "build_path": "target/compiled/hubspot_source/models/stg_hubspot__engagement.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "enabled": true}, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__engagement_tmp`\n\n), macro as (\n\n select\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_type\n \n as \n \n activity_type\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_updated\n \n as \n \n last_updated\n \n, \n \n \n owner_id\n \n as \n \n owner_id\n \n, \n \n \n portal_id\n \n as \n \n portal_id\n \n, \n \n \n timestamp\n \n as occurred_timestamp , \n \n \n type\n \n as engagement_type \n\n\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n active as is_active,\n activity_type,\n created_at as created_timestamp,\n id as engagement_id,\n last_updated as last_updated_timestamp,\n owner_id,\n portal_id,\n occurred_timestamp,\n engagement_type\n from macro\n \n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__engagement`"}, "model.hubspot_source.stg_hubspot__ticket_company": {"raw_sql": "{{ config(enabled=var('hubspot_service_enabled', False)) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_hubspot__ticket_company_tmp') }}\n\n), macro as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_hubspot__ticket_company_tmp')),\n staging_columns=get_ticket_company_columns()\n )\n }}\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n ticket_id,\n company_id\n\n from macro\n\n)\n\nselect *\nfrom fields", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "stg_hubspot__ticket_company"], "unique_id": "model.hubspot_source.stg_hubspot__ticket_company", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "stg_hubspot__ticket_company.sql", "original_file_path": "models/stg_hubspot__ticket_company.sql", "name": "stg_hubspot__ticket_company", "resource_type": "model", "alias": "stg_hubspot__ticket_company", "checksum": {"name": "sha256", "checksum": "546903116d5a8e4505345c48c4eba23b6126c4d0ebeba3bb936db69dce2b5395"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_hubspot__ticket_company_tmp"], ["stg_hubspot__ticket_company_tmp"]], "sources": [], "depends_on": {"macros": ["macro.hubspot_source.get_ticket_company_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.hubspot_source.stg_hubspot__ticket_company_tmp", "model.hubspot_source.stg_hubspot__ticket_company_tmp"]}, "description": "Each record represents a 'link' between a ticket and company.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ticket_id": {"name": "ticket_id", "description": "The ID of the related ticket.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "company_id": {"name": "company_id", "description": "The ID of the related company.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_hubspot__ticket.yml", "build_path": "target/compiled/hubspot_source/models/stg_hubspot__ticket_company.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "enabled": true}, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__ticket_company_tmp`\n\n), macro as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ticket_id\n \n as \n \n ticket_id\n \n, \n \n \n company_id\n \n as \n \n company_id\n \n\n\n\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n ticket_id,\n company_id\n\n from macro\n\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__ticket_company`"}, "model.hubspot_source.stg_hubspot__email_campaign": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_marketing_enabled','hubspot_email_event_enabled'])) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_hubspot__email_campaign_tmp') }}\n\n), macro as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_hubspot__email_campaign_tmp')),\n staging_columns=get_email_campaign_columns()\n )\n }}\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n app_id,\n app_name,\n content_id,\n id as email_campaign_id,\n name as email_campaign_name,\n num_included,\n num_queued,\n sub_type as email_campaign_sub_type,\n subject as email_campaign_subject,\n type as email_campaign_type\n from macro\n \n)\n\nselect *\nfrom fields", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "stg_hubspot__email_campaign"], "unique_id": "model.hubspot_source.stg_hubspot__email_campaign", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "stg_hubspot__email_campaign.sql", "original_file_path": "models/stg_hubspot__email_campaign.sql", "name": "stg_hubspot__email_campaign", "resource_type": "model", "alias": "stg_hubspot__email_campaign", "checksum": {"name": "sha256", "checksum": "d13056dfea036822ae4400b796b742196e648d1ae5aad273f005f3ab80ad525f"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_hubspot__email_campaign_tmp"], ["stg_hubspot__email_campaign_tmp"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.hubspot_source.get_email_campaign_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.hubspot_source.stg_hubspot__email_campaign_tmp", "model.hubspot_source.stg_hubspot__email_campaign_tmp"]}, "description": "Each record represents an email campaign in Hubspot.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "app_id": {"name": "app_id", "description": "The app ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "app_name": {"name": "app_name", "description": "The app name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "content_id": {"name": "content_id", "description": "The ID of the content.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "email_campaign_id": {"name": "email_campaign_id", "description": "The ID of the email campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "email_campaign_name": {"name": "email_campaign_name", "description": "The name of the email campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "email_campaign_sub_type": {"name": "email_campaign_sub_type", "description": "The email campaign sub-type.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "email_campaign_subject": {"name": "email_campaign_subject", "description": "The subject of the email campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "email_campaign_type": {"name": "email_campaign_type", "description": "The email campaign type.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "num_included": {"name": "num_included", "description": "The number of messages included as part of the email campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "num_queued": {"name": "num_queued", "description": "The number of messages queued as part of the email campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_hubspot__email.yml", "build_path": "target/compiled/hubspot_source/models/stg_hubspot__email_campaign.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "enabled": true}, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__email_campaign_tmp`\n\n), macro as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n app_id\n \n as \n \n app_id\n \n, \n \n \n app_name\n \n as \n \n app_name\n \n, \n \n \n content_id\n \n as \n \n content_id\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n num_included\n \n as \n \n num_included\n \n, \n \n \n num_queued\n \n as \n \n num_queued\n \n, \n \n \n sub_type\n \n as \n \n sub_type\n \n, \n \n \n subject\n \n as \n \n subject\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n app_id,\n app_name,\n content_id,\n id as email_campaign_id,\n name as email_campaign_name,\n num_included,\n num_queued,\n sub_type as email_campaign_sub_type,\n subject as email_campaign_subject,\n type as email_campaign_type\n from macro\n \n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__email_campaign`"}, "model.hubspot_source.stg_hubspot__email_event_print": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_marketing_enabled','hubspot_email_event_enabled','hubspot_email_event_print_enabled'])) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_hubspot__email_event_print_tmp') }}\n\n), macro as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_hubspot__email_event_print_tmp')),\n staging_columns=get_email_event_print_columns()\n )\n }}\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n browser,\n id as event_id,\n ip_address,\n location as geo_location,\n user_agent\n from macro\n \n)\n\nselect *\nfrom fields", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "stg_hubspot__email_event_print"], "unique_id": "model.hubspot_source.stg_hubspot__email_event_print", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "stg_hubspot__email_event_print.sql", "original_file_path": "models/stg_hubspot__email_event_print.sql", "name": "stg_hubspot__email_event_print", "resource_type": "model", "alias": "stg_hubspot__email_event_print", "checksum": {"name": "sha256", "checksum": "4f85478e5950ad6676e59750250108ce65c0419781a741346e461f1a5f949fd2"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_hubspot__email_event_print_tmp"], ["stg_hubspot__email_event_print_tmp"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.hubspot_source.get_email_event_print_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.hubspot_source.stg_hubspot__email_event_print_tmp", "model.hubspot_source.stg_hubspot__email_event_print_tmp"]}, "description": "Each record represents a PRINT email event.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "browser": {"name": "browser", "description": "A JSON object representing the browser which serviced the event. Its comprised of the properties: 'name', 'family', 'producer', 'producer_url', 'type', 'url', 'version'.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "event_id": {"name": "event_id", "description": "The ID of the event.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "geo_location": {"name": "geo_location", "description": "A JSON object representing the location where the event occurred. It's comprised of the properties: 'city', 'state', 'country'.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ip_address": {"name": "ip_address", "description": "The contact's IP address when the event occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "user_agent": {"name": "user_agent", "description": "The user agent responsible for the event, e.g. \u201cMozilla/5.0 (Macintosh; Intel Mac OS X 10_8_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.95 Safari/537.36\u201d", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_hubspot__email.yml", "build_path": "target/compiled/hubspot_source/models/stg_hubspot__email_event_print.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "enabled": true}, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__email_event_print_tmp`\n\n), macro as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n browser\n \n as \n \n browser\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n ip_address\n \n as \n \n ip_address\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n user_agent\n \n as \n \n user_agent\n \n\n\n\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n browser,\n id as event_id,\n ip_address,\n location as geo_location,\n user_agent\n from macro\n \n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__email_event_print`"}, "model.hubspot_source.stg_hubspot__contact_property_history": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_marketing_enabled', 'hubspot_contact_property_enabled'])) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_hubspot__contact_property_history_tmp') }}\n\n), macro as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_hubspot__contact_property_history_tmp')),\n staging_columns=get_contact_property_history_columns()\n )\n }}\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n contact_id,\n name as field_name,\n source as change_source,\n source_id as change_source_id,\n change_timestamp,\n value as new_value\n from macro\n \n)\n\nselect *\nfrom fields", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "stg_hubspot__contact_property_history"], "unique_id": "model.hubspot_source.stg_hubspot__contact_property_history", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "stg_hubspot__contact_property_history.sql", "original_file_path": "models/stg_hubspot__contact_property_history.sql", "name": "stg_hubspot__contact_property_history", "resource_type": "model", "alias": "stg_hubspot__contact_property_history", "checksum": {"name": "sha256", "checksum": "41a20615d43c724be78ee13ea4bacf6ec049df1fe93ae87f691a261c5cfe0754"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_hubspot__contact_property_history_tmp"], ["stg_hubspot__contact_property_history_tmp"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.hubspot_source.get_contact_property_history_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.hubspot_source.stg_hubspot__contact_property_history_tmp", "model.hubspot_source.stg_hubspot__contact_property_history_tmp"]}, "description": "Each record represents a change to contact record in Hubspot.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "change_source": {"name": "change_source", "description": "The source (reason) of the change.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "change_source_id": {"name": "change_source_id", "description": "The ID of the object that caused the change, if applicable.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "change_timestamp": {"name": "change_timestamp", "description": "The timestamp the changed occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "contact_id": {"name": "contact_id", "description": "The ID of the related contact record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "field_name": {"name": "field_name", "description": "The name of the field being changed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "new_value": {"name": "new_value", "description": "The new value of the field.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_hubspot__contact.yml", "build_path": "target/compiled/hubspot_source/models/stg_hubspot__contact_property_history.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "enabled": true}, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__contact_property_history_tmp`\n\n), macro as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n contact_id\n \n as \n \n contact_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n source\n \n as \n \n source\n \n, \n \n \n source_id\n \n as \n \n source_id\n \n, \n \n \n timestamp\n \n as change_timestamp , \n \n \n value\n \n as \n \n value\n \n\n\n\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n contact_id,\n name as field_name,\n source as change_source,\n source_id as change_source_id,\n change_timestamp,\n value as new_value\n from macro\n \n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__contact_property_history`"}, "model.hubspot_source.stg_hubspot__ticket_property_history": {"raw_sql": "{{ config(enabled=var('hubspot_service_enabled', False)) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_hubspot__ticket_property_history_tmp') }}\n\n), macro as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_hubspot__ticket_property_history_tmp')),\n staging_columns=get_ticket_property_history_columns()\n )\n }}\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n ticket_id,\n name as field_name,\n source as change_source,\n source_id as change_source_id,\n timestamp_instant as change_timestamp,\n value as new_value\n\n from macro\n\n)\n\nselect *\nfrom fields", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "stg_hubspot__ticket_property_history"], "unique_id": "model.hubspot_source.stg_hubspot__ticket_property_history", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "stg_hubspot__ticket_property_history.sql", "original_file_path": "models/stg_hubspot__ticket_property_history.sql", "name": "stg_hubspot__ticket_property_history", "resource_type": "model", "alias": "stg_hubspot__ticket_property_history", "checksum": {"name": "sha256", "checksum": "0d94a7503e79169b585536da66cf8c8c2c138f0aa769ff800e147392c5dadb5a"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_hubspot__ticket_property_history_tmp"], ["stg_hubspot__ticket_property_history_tmp"]], "sources": [], "depends_on": {"macros": ["macro.hubspot_source.get_ticket_property_history_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.hubspot_source.stg_hubspot__ticket_property_history_tmp", "model.hubspot_source.stg_hubspot__ticket_property_history_tmp"]}, "description": "Each record represents a change to ticket record in Hubspot.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "change_source": {"name": "change_source", "description": "The source (reason) of the change.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "change_source_id": {"name": "change_source_id", "description": "The ID of the object that caused the change, if applicable.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "change_timestamp": {"name": "change_timestamp", "description": "The timestamp the changed occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ticket_id": {"name": "ticket_id", "description": "The ID of the related ticket record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "field_name": {"name": "field_name", "description": "The name of the field being changed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "new_value": {"name": "new_value", "description": "The new value of the field.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_hubspot__ticket.yml", "build_path": "target/compiled/hubspot_source/models/stg_hubspot__ticket_property_history.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "enabled": true}, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__ticket_property_history_tmp`\n\n), macro as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ticket_id\n \n as \n \n ticket_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n source\n \n as \n \n source\n \n, \n \n \n source_id\n \n as \n \n source_id\n \n, \n \n \n timestamp_instant\n \n as \n \n timestamp_instant\n \n, \n \n \n value\n \n as \n \n value\n \n\n\n\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n ticket_id,\n name as field_name,\n source as change_source,\n source_id as change_source_id,\n timestamp_instant as change_timestamp,\n value as new_value\n\n from macro\n\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__ticket_property_history`"}, "model.hubspot_source.stg_hubspot__email_event_open": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_marketing_enabled','hubspot_email_event_enabled','hubspot_email_event_open_enabled'])) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_hubspot__email_event_open_tmp') }}\n\n), macro as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_hubspot__email_event_open_tmp')),\n staging_columns=get_email_event_open_columns()\n )\n }}\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n browser,\n duration as duration_open,\n id as event_id,\n ip_address,\n location as geo_location,\n user_agent\n from macro\n \n)\n\nselect *\nfrom fields", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "stg_hubspot__email_event_open"], "unique_id": "model.hubspot_source.stg_hubspot__email_event_open", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "stg_hubspot__email_event_open.sql", "original_file_path": "models/stg_hubspot__email_event_open.sql", "name": "stg_hubspot__email_event_open", "resource_type": "model", "alias": "stg_hubspot__email_event_open", "checksum": {"name": "sha256", "checksum": "d889037fe49d3d49be46e693b50f152013f882c31d692beb0af2cfc35d2b9ed4"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_hubspot__email_event_open_tmp"], ["stg_hubspot__email_event_open_tmp"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.hubspot_source.get_email_event_open_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.hubspot_source.stg_hubspot__email_event_open_tmp", "model.hubspot_source.stg_hubspot__email_event_open_tmp"]}, "description": "Each record represents a OPEN email event.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "browser": {"name": "browser", "description": "A JSON object representing the browser which serviced the event. Its comprised of the properties: 'name', 'family', 'producer', 'producer_url', 'type', 'url', 'version'.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "duration_open": {"name": "duration_open", "description": "If provided and nonzero, the approximate number of milliseconds the user had opened the email.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "event_id": {"name": "event_id", "description": "The ID of the event.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "geo_location": {"name": "geo_location", "description": "A JSON object representing the location where the event occurred. It's comprised of the properties: 'city', 'state', 'country'.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ip_address": {"name": "ip_address", "description": "The contact's IP address when the event occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "user_agent": {"name": "user_agent", "description": "The user agent responsible for the event, e.g. \u201cMozilla/5.0 (Macintosh; Intel Mac OS X 10_8_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.95 Safari/537.36\u201d", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_hubspot__email.yml", "build_path": "target/compiled/hubspot_source/models/stg_hubspot__email_event_open.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "enabled": true}, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__email_event_open_tmp`\n\n), macro as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n browser\n \n as \n \n browser\n \n, \n \n \n duration\n \n as \n \n duration\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n ip_address\n \n as \n \n ip_address\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n user_agent\n \n as \n \n user_agent\n \n\n\n\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n browser,\n duration as duration_open,\n id as event_id,\n ip_address,\n location as geo_location,\n user_agent\n from macro\n \n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__email_event_open`"}, "model.hubspot_source.stg_hubspot__email_event_sent": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_marketing_enabled','hubspot_email_event_enabled','hubspot_email_event_sent_enabled'])) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_hubspot__email_event_sent_tmp') }}\n\n), macro as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_hubspot__email_event_sent_tmp')),\n staging_columns=get_email_event_sent_columns()\n )\n }}\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n bcc as bcc_emails,\n cc as cc_emails,\n from_email,\n id as event_id,\n reply_to as reply_to_email,\n subject as email_subject\n from macro\n \n)\n\nselect *\nfrom fields", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "stg_hubspot__email_event_sent"], "unique_id": "model.hubspot_source.stg_hubspot__email_event_sent", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "stg_hubspot__email_event_sent.sql", "original_file_path": "models/stg_hubspot__email_event_sent.sql", "name": "stg_hubspot__email_event_sent", "resource_type": "model", "alias": "stg_hubspot__email_event_sent", "checksum": {"name": "sha256", "checksum": "0a148b58f423ac9c54192caf4a28011dbce37267b06f0983a42f01050c197f50"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_hubspot__email_event_sent_tmp"], ["stg_hubspot__email_event_sent_tmp"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.hubspot_source.get_email_event_sent_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.hubspot_source.stg_hubspot__email_event_sent_tmp", "model.hubspot_source.stg_hubspot__email_event_sent_tmp"]}, "description": "Each record represents a SENT email event.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bcc_emails": {"name": "bcc_emails", "description": "The 'cc' field of the email message.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cc_emails": {"name": "cc_emails", "description": "The 'bcc' field of the email message.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "email_subject": {"name": "email_subject", "description": "The subject line of the email message.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "event_id": {"name": "event_id", "description": "The ID of the event.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "from_email": {"name": "from_email", "description": "The 'from' field of the email message.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "reply_to_email": {"name": "reply_to_email", "description": "The 'reply-to' field of the email message.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_hubspot__email.yml", "build_path": "target/compiled/hubspot_source/models/stg_hubspot__email_event_sent.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "enabled": true}, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__email_event_sent_tmp`\n\n), macro as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n bcc\n \n as \n \n bcc\n \n, \n \n \n cc\n \n as \n \n cc\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n reply_to\n \n as \n \n reply_to\n \n, \n \n \n subject\n \n as \n \n subject\n \n, \n \n \n \n \n `from`\n \n \n \n as from_email \n\n\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n bcc as bcc_emails,\n cc as cc_emails,\n from_email,\n id as event_id,\n reply_to as reply_to_email,\n subject as email_subject\n from macro\n \n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__email_event_sent`"}, "model.hubspot_source.stg_hubspot__ticket": {"raw_sql": "{{ config(enabled=var('hubspot_service_enabled', False)) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_hubspot__ticket_tmp') }}\n where not coalesce(is_deleted, false) \n\n), macro as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_hubspot__ticket_tmp')),\n staging_columns=get_ticket_columns()\n )\n }}\n from base\n\n), fields as (\n\n select\n id as ticket_id,\n _fivetran_synced,\n is_deleted\n\n --The below macro adds the fields defined within your hubspot__ticket_pass_through_columns variable into the staging model\n {{ fivetran_utils.fill_pass_through_columns('hubspot__ticket_pass_through_columns') }}\n \n from macro\n \n)\n\nselect *\nfrom fields", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "stg_hubspot__ticket"], "unique_id": "model.hubspot_source.stg_hubspot__ticket", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "stg_hubspot__ticket.sql", "original_file_path": "models/stg_hubspot__ticket.sql", "name": "stg_hubspot__ticket", "resource_type": "model", "alias": "stg_hubspot__ticket", "checksum": {"name": "sha256", "checksum": "179c7f217e1ba66a7f8d12f945db2856f85b379ca35b87b32bba05229554750d"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_hubspot__ticket_tmp"], ["stg_hubspot__ticket_tmp"]], "sources": [], "depends_on": {"macros": ["macro.hubspot_source.get_ticket_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.hubspot_source.stg_hubspot__ticket_tmp", "model.hubspot_source.stg_hubspot__ticket_tmp"]}, "description": "Each record represents a ticket in Hubspot.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ticket_id": {"name": "ticket_id", "description": "ID of the ticket.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_deleted": {"name": "is_deleted", "description": "Whether the record was deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "portal_id": {"name": "portal_id", "description": "The hub ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ticket_pipeline_id": {"name": "ticket_pipeline_id", "description": "The ID of the ticket's pipeline.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ticket_pipeline_stage_id": {"name": "ticket_pipeline_stage_id", "description": "The ID of the ticket's pipeline stage.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "owner_id": {"name": "owner_id", "description": "The ID of the deal's owner.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "subject": {"name": "subject", "description": "Short summary of ticket.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "content": {"name": "content", "description": "Text in body of the ticket.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "reason_for_contact": {"name": "reason_for_contact", "description": "Reason for customer contact.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "root_cause": {"name": "root_cause", "description": "Root cause of customer contact.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_hubspot__ticket.yml", "build_path": "target/compiled/hubspot_source/models/stg_hubspot__ticket.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "enabled": true}, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__ticket_tmp`\n where not coalesce(is_deleted, false) \n\n), macro as (\n\n select\n \n cast(null as \n timestamp\n) as \n \n _fivetran_synced\n \n , \n \n \n id\n \n as \n \n id\n \n, \n \n \n is_deleted\n \n as \n \n is_deleted\n \n\n\n\n from base\n\n), fields as (\n\n select\n id as ticket_id,\n _fivetran_synced,\n is_deleted\n\n --The below macro adds the fields defined within your hubspot__ticket_pass_through_columns variable into the staging model\n \n\n\n\n\n \n from macro\n \n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__ticket`"}, "model.hubspot_source.stg_hubspot__contact_property_history_tmp": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_marketing_enabled', 'hubspot_contact_property_enabled'])) }}\n\nselect *\nfrom {{ var('contact_property_history') }}", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "tmp", "stg_hubspot__contact_property_history_tmp"], "unique_id": "model.hubspot_source.stg_hubspot__contact_property_history_tmp", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "tmp/stg_hubspot__contact_property_history_tmp.sql", "original_file_path": "models/tmp/stg_hubspot__contact_property_history_tmp.sql", "name": "stg_hubspot__contact_property_history_tmp", "resource_type": "model", "alias": "stg_hubspot__contact_property_history_tmp", "checksum": {"name": "sha256", "checksum": "94e046ad79ff164894e3d2ee9fa6d094236277d5e4eb61c16ba48a454a9d1092"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["contact_property_history_data"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars"], "nodes": ["seed.hubspot_source_integration_tests.contact_property_history_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/tmp/stg_hubspot__contact_property_history_tmp.sql", "deferred": false, "unrendered_config": {"materialized": "view", "schema": null, "enabled": true}, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`zendesk_integration_tests`.`contact_property_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__contact_property_history_tmp`"}, "model.hubspot_source.stg_hubspot__email_event_dropped_tmp": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_marketing_enabled','hubspot_email_event_enabled','hubspot_email_event_dropped_enabled'])) }}\n\nselect *\nfrom {{ var('email_event_dropped') }}", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "tmp", "stg_hubspot__email_event_dropped_tmp"], "unique_id": "model.hubspot_source.stg_hubspot__email_event_dropped_tmp", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "tmp/stg_hubspot__email_event_dropped_tmp.sql", "original_file_path": "models/tmp/stg_hubspot__email_event_dropped_tmp.sql", "name": "stg_hubspot__email_event_dropped_tmp", "resource_type": "model", "alias": "stg_hubspot__email_event_dropped_tmp", "checksum": {"name": "sha256", "checksum": "6ea29cc5169d736f3d306ada0e68c21d47fdffaadf1d92fa7e63df762b71c67c"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["email_event_dropped_data"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.fivetran_utils.seed_data_helper"], "nodes": ["seed.hubspot_source_integration_tests.email_event_dropped_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/tmp/stg_hubspot__email_event_dropped_tmp.sql", "deferred": false, "unrendered_config": {"materialized": "view", "schema": null, "enabled": true}, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`zendesk_integration_tests`.`email_event_dropped_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__email_event_dropped_tmp`"}, "model.hubspot_source.stg_hubspot__email_event_sent_tmp": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_marketing_enabled','hubspot_email_event_enabled','hubspot_email_event_sent_enabled'])) }}\n\nselect *\nfrom {{ var('email_event_sent') }}", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "tmp", "stg_hubspot__email_event_sent_tmp"], "unique_id": "model.hubspot_source.stg_hubspot__email_event_sent_tmp", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "tmp/stg_hubspot__email_event_sent_tmp.sql", "original_file_path": "models/tmp/stg_hubspot__email_event_sent_tmp.sql", "name": "stg_hubspot__email_event_sent_tmp", "resource_type": "model", "alias": "stg_hubspot__email_event_sent_tmp", "checksum": {"name": "sha256", "checksum": "c755ee8e2ade057381ab3f7264b0aff04fb1e666940b91bbc35d9dab8f6c79df"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["email_event_sent_data"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.fivetran_utils.seed_data_helper"], "nodes": ["seed.hubspot_source_integration_tests.email_event_sent_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/tmp/stg_hubspot__email_event_sent_tmp.sql", "deferred": false, "unrendered_config": {"materialized": "view", "schema": null, "enabled": true}, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`zendesk_integration_tests`.`email_event_sent_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__email_event_sent_tmp`"}, "model.hubspot_source.stg_hubspot__deal_tmp": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_sales_enabled','hubspot_deal_enabled'])) }}\n\nselect *\nfrom {{ var('deal') }}", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "tmp", "stg_hubspot__deal_tmp"], "unique_id": "model.hubspot_source.stg_hubspot__deal_tmp", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "tmp/stg_hubspot__deal_tmp.sql", "original_file_path": "models/tmp/stg_hubspot__deal_tmp.sql", "name": "stg_hubspot__deal_tmp", "resource_type": "model", "alias": "stg_hubspot__deal_tmp", "checksum": {"name": "sha256", "checksum": "124a98f73b4fa274b33cb876e1627e3bd328f16b00633a8af0904bd05a1eaf7e"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["deal_data"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars"], "nodes": ["seed.hubspot_source_integration_tests.deal_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/tmp/stg_hubspot__deal_tmp.sql", "deferred": false, "unrendered_config": {"materialized": "view", "schema": null, "enabled": true}, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`zendesk_integration_tests`.`deal_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__deal_tmp`"}, "model.hubspot_source.stg_hubspot__ticket_company_tmp": {"raw_sql": "{{ config(enabled=var('hubspot_service_enabled', True)) }}\n\nselect *\nfrom {{ var('ticket_company') }}", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "tmp", "stg_hubspot__ticket_company_tmp"], "unique_id": "model.hubspot_source.stg_hubspot__ticket_company_tmp", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "tmp/stg_hubspot__ticket_company_tmp.sql", "original_file_path": "models/tmp/stg_hubspot__ticket_company_tmp.sql", "name": "stg_hubspot__ticket_company_tmp", "resource_type": "model", "alias": "stg_hubspot__ticket_company_tmp", "checksum": {"name": "sha256", "checksum": "ab866a39ca7843eb128425f98bca66a6e8242dd2f5fe84af179d68fcab7d5ac4"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["ticket_company_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.hubspot_source_integration_tests.ticket_company_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/tmp/stg_hubspot__ticket_company_tmp.sql", "deferred": false, "unrendered_config": {"materialized": "view", "schema": null, "enabled": true}, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`zendesk_integration_tests`.`ticket_company_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__ticket_company_tmp`"}, "model.hubspot_source.stg_hubspot__contact_list_member_tmp": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_marketing_enabled', 'hubspot_contact_list_member_enabled'])) }}\n\nselect *\nfrom {{ var('contact_list_member') }}", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "tmp", "stg_hubspot__contact_list_member_tmp"], "unique_id": "model.hubspot_source.stg_hubspot__contact_list_member_tmp", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "tmp/stg_hubspot__contact_list_member_tmp.sql", "original_file_path": "models/tmp/stg_hubspot__contact_list_member_tmp.sql", "name": "stg_hubspot__contact_list_member_tmp", "resource_type": "model", "alias": "stg_hubspot__contact_list_member_tmp", "checksum": {"name": "sha256", "checksum": "c5f4b38033f7e73b8c560ae9b10c959ab53636db77febaea2878864bfcbd47e8"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["contact_list_member_data"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars"], "nodes": ["seed.hubspot_source_integration_tests.contact_list_member_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/tmp/stg_hubspot__contact_list_member_tmp.sql", "deferred": false, "unrendered_config": {"materialized": "view", "schema": null, "enabled": true}, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`zendesk_integration_tests`.`contact_list_member_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__contact_list_member_tmp`"}, "model.hubspot_source.stg_hubspot__owner_tmp": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_sales_enabled','hubspot_owner_enabled'])) }}\n\nselect *\nfrom {{ var('owner') }}", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "tmp", "stg_hubspot__owner_tmp"], "unique_id": "model.hubspot_source.stg_hubspot__owner_tmp", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "tmp/stg_hubspot__owner_tmp.sql", "original_file_path": "models/tmp/stg_hubspot__owner_tmp.sql", "name": "stg_hubspot__owner_tmp", "resource_type": "model", "alias": "stg_hubspot__owner_tmp", "checksum": {"name": "sha256", "checksum": "8b06d5fa0a2f2102fcc69868ed48699af552e012171048d5c9afccc2e3074859"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["owner_data"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars"], "nodes": ["seed.hubspot_source_integration_tests.owner_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/tmp/stg_hubspot__owner_tmp.sql", "deferred": false, "unrendered_config": {"materialized": "view", "schema": null, "enabled": true}, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`zendesk_integration_tests`.`owner_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__owner_tmp`"}, "model.hubspot_source.stg_hubspot__deal_stage_tmp": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_sales_enabled','hubspot_deal_enabled'])) }}\n\nselect * \nfrom {{ var('deal_stage') }}", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "tmp", "stg_hubspot__deal_stage_tmp"], "unique_id": "model.hubspot_source.stg_hubspot__deal_stage_tmp", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "tmp/stg_hubspot__deal_stage_tmp.sql", "original_file_path": "models/tmp/stg_hubspot__deal_stage_tmp.sql", "name": "stg_hubspot__deal_stage_tmp", "resource_type": "model", "alias": "stg_hubspot__deal_stage_tmp", "checksum": {"name": "sha256", "checksum": "ec97e0066c2090f43c12562580a53d3de824e0c1408f86af9f1279119eec35e9"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["deal_stage_data"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars"], "nodes": ["seed.hubspot_source_integration_tests.deal_stage_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/tmp/stg_hubspot__deal_stage_tmp.sql", "deferred": false, "unrendered_config": {"materialized": "view", "schema": null, "enabled": true}, "compiled_sql": "\n\nselect * \nfrom `dbt-package-testing`.`zendesk_integration_tests`.`deal_stage_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__deal_stage_tmp`"}, "model.hubspot_source.stg_hubspot__deal_pipeline_tmp": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_sales_enabled','hubspot_deal_enabled'])) }}\n\nselect *\nfrom {{ var('deal_pipeline') }}", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "tmp", "stg_hubspot__deal_pipeline_tmp"], "unique_id": "model.hubspot_source.stg_hubspot__deal_pipeline_tmp", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "tmp/stg_hubspot__deal_pipeline_tmp.sql", "original_file_path": "models/tmp/stg_hubspot__deal_pipeline_tmp.sql", "name": "stg_hubspot__deal_pipeline_tmp", "resource_type": "model", "alias": "stg_hubspot__deal_pipeline_tmp", "checksum": {"name": "sha256", "checksum": "5ec1c0f28d2a898b8e0d02a04aba6b9721c90b43e037d327e43c6c327cc0fb8f"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["deal_pipeline_data"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars"], "nodes": ["seed.hubspot_source_integration_tests.deal_pipeline_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/tmp/stg_hubspot__deal_pipeline_tmp.sql", "deferred": false, "unrendered_config": {"materialized": "view", "schema": null, "enabled": true}, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`zendesk_integration_tests`.`deal_pipeline_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__deal_pipeline_tmp`"}, "model.hubspot_source.stg_hubspot__ticket_tmp": {"raw_sql": "{{ config(enabled=var('hubspot_service_enabled', True)) }}\n\nselect *\nfrom {{ var('ticket') }}", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "tmp", "stg_hubspot__ticket_tmp"], "unique_id": "model.hubspot_source.stg_hubspot__ticket_tmp", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "tmp/stg_hubspot__ticket_tmp.sql", "original_file_path": "models/tmp/stg_hubspot__ticket_tmp.sql", "name": "stg_hubspot__ticket_tmp", "resource_type": "model", "alias": "stg_hubspot__ticket_tmp", "checksum": {"name": "sha256", "checksum": "dbdffdb858fa36e96eebbd51cf045349e7681163d8b5e8c54cc120b72a77a56b"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["ticket_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.hubspot_source_integration_tests.ticket_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/tmp/stg_hubspot__ticket_tmp.sql", "deferred": false, "unrendered_config": {"materialized": "view", "schema": null, "enabled": true}, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`zendesk_integration_tests`.`ticket_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__ticket_tmp`"}, "model.hubspot_source.stg_hubspot__ticket_property_history_tmp": {"raw_sql": "{{ config(enabled=var('hubspot_service_enabled', True)) }}\n\nselect *\nfrom {{ var('ticket_property_history') }}", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "tmp", "stg_hubspot__ticket_property_history_tmp"], "unique_id": "model.hubspot_source.stg_hubspot__ticket_property_history_tmp", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "tmp/stg_hubspot__ticket_property_history_tmp.sql", "original_file_path": "models/tmp/stg_hubspot__ticket_property_history_tmp.sql", "name": "stg_hubspot__ticket_property_history_tmp", "resource_type": "model", "alias": "stg_hubspot__ticket_property_history_tmp", "checksum": {"name": "sha256", "checksum": "853d46ebcf3774eb8c899e344655ece1ee9aec1495b5487e45a78ae921d95af8"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["ticket_property_history_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.hubspot_source_integration_tests.ticket_property_history_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/tmp/stg_hubspot__ticket_property_history_tmp.sql", "deferred": false, "unrendered_config": {"materialized": "view", "schema": null, "enabled": true}, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`zendesk_integration_tests`.`ticket_property_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__ticket_property_history_tmp`"}, "model.hubspot_source.stg_hubspot__ticket_pipeline_tmp": {"raw_sql": "{{ config(enabled=var('hubspot_service_enabled', False)) }}\n\nselect * \nfrom {{ var('ticket_pipeline') }}", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "tmp", "stg_hubspot__ticket_pipeline_tmp"], "unique_id": "model.hubspot_source.stg_hubspot__ticket_pipeline_tmp", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "tmp/stg_hubspot__ticket_pipeline_tmp.sql", "original_file_path": "models/tmp/stg_hubspot__ticket_pipeline_tmp.sql", "name": "stg_hubspot__ticket_pipeline_tmp", "resource_type": "model", "alias": "stg_hubspot__ticket_pipeline_tmp", "checksum": {"name": "sha256", "checksum": "6d288825ed33116c29e43605b52be8b6d49c182536ca3830dcc034653b74e359"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["ticket_pipeline_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.hubspot_source_integration_tests.ticket_pipeline_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/tmp/stg_hubspot__ticket_pipeline_tmp.sql", "deferred": false, "unrendered_config": {"materialized": "view", "schema": null, "enabled": true}, "compiled_sql": "\n\nselect * \nfrom `dbt-package-testing`.`zendesk_integration_tests`.`ticket_pipeline_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__ticket_pipeline_tmp`"}, "model.hubspot_source.stg_hubspot__engagement_company_tmp": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_sales_enabled','hubspot_engagement_enabled','hubspot_engagement_company_enabled'])) }}\n\nselect *\nfrom {{ var('engagement_company') }}", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "tmp", "stg_hubspot__engagement_company_tmp"], "unique_id": "model.hubspot_source.stg_hubspot__engagement_company_tmp", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "tmp/stg_hubspot__engagement_company_tmp.sql", "original_file_path": "models/tmp/stg_hubspot__engagement_company_tmp.sql", "name": "stg_hubspot__engagement_company_tmp", "resource_type": "model", "alias": "stg_hubspot__engagement_company_tmp", "checksum": {"name": "sha256", "checksum": "d3e3765d608bc56f3bc07549accc1026e5d5ca93d650eb66d5522d4ad33bf3bc"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["engagement_company_data"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars"], "nodes": ["seed.hubspot_source_integration_tests.engagement_company_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/tmp/stg_hubspot__engagement_company_tmp.sql", "deferred": false, "unrendered_config": {"materialized": "view", "schema": null, "enabled": true}, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`zendesk_integration_tests`.`engagement_company_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__engagement_company_tmp`"}, "model.hubspot_source.stg_hubspot__contact_tmp": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_marketing_enabled', 'hubspot_contact_enabled'])) }}\n\nselect *\nfrom {{ var('contact') }}", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "tmp", "stg_hubspot__contact_tmp"], "unique_id": "model.hubspot_source.stg_hubspot__contact_tmp", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "tmp/stg_hubspot__contact_tmp.sql", "original_file_path": "models/tmp/stg_hubspot__contact_tmp.sql", "name": "stg_hubspot__contact_tmp", "resource_type": "model", "alias": "stg_hubspot__contact_tmp", "checksum": {"name": "sha256", "checksum": "17272cbcc9301857a35b6df8ea8a8426315db16044249a83a6dee8a13bda051d"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["contact_data"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars"], "nodes": ["seed.hubspot_source_integration_tests.contact_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/tmp/stg_hubspot__contact_tmp.sql", "deferred": false, "unrendered_config": {"materialized": "view", "schema": null, "enabled": true}, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`zendesk_integration_tests`.`contact_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__contact_tmp`"}, "model.hubspot_source.stg_hubspot__email_event_status_change_tmp": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_marketing_enabled','hubspot_email_event_enabled','hubspot_email_event_status_change_enabled'])) }}\n\nselect *\nfrom {{ var('email_event_status_change') }}", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "tmp", "stg_hubspot__email_event_status_change_tmp"], "unique_id": "model.hubspot_source.stg_hubspot__email_event_status_change_tmp", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "tmp/stg_hubspot__email_event_status_change_tmp.sql", "original_file_path": "models/tmp/stg_hubspot__email_event_status_change_tmp.sql", "name": "stg_hubspot__email_event_status_change_tmp", "resource_type": "model", "alias": "stg_hubspot__email_event_status_change_tmp", "checksum": {"name": "sha256", "checksum": "4834d0413d972cb9b335efa782358855be7be2c4b7f70f2473ae5b13dda09c08"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["email_event_status_change_data"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars"], "nodes": ["seed.hubspot_source_integration_tests.email_event_status_change_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/tmp/stg_hubspot__email_event_status_change_tmp.sql", "deferred": false, "unrendered_config": {"materialized": "view", "schema": null, "enabled": true}, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`zendesk_integration_tests`.`email_event_status_change_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__email_event_status_change_tmp`"}, "model.hubspot_source.stg_hubspot__engagement_note_tmp": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_sales_enabled','hubspot_engagement_enabled','hubspot_engagement_note_enabled'])) }}\n\nselect *\nfrom {{ var('engagement_note') }}", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "tmp", "stg_hubspot__engagement_note_tmp"], "unique_id": "model.hubspot_source.stg_hubspot__engagement_note_tmp", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "tmp/stg_hubspot__engagement_note_tmp.sql", "original_file_path": "models/tmp/stg_hubspot__engagement_note_tmp.sql", "name": "stg_hubspot__engagement_note_tmp", "resource_type": "model", "alias": "stg_hubspot__engagement_note_tmp", "checksum": {"name": "sha256", "checksum": "bd3aa3ac5c07c206010b172fb2049c3724cdea3cc838cd1b536071f88543b79d"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["engagement_note_data"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars"], "nodes": ["seed.hubspot_source_integration_tests.engagement_note_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/tmp/stg_hubspot__engagement_note_tmp.sql", "deferred": false, "unrendered_config": {"materialized": "view", "schema": null, "enabled": true}, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`zendesk_integration_tests`.`engagement_note_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__engagement_note_tmp`"}, "model.hubspot_source.stg_hubspot__ticket_contact_tmp": {"raw_sql": "{{ config(enabled=var('hubspot_service_enabled', True)) }}\n\nselect *\nfrom {{ var('ticket_contact') }}", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "tmp", "stg_hubspot__ticket_contact_tmp"], "unique_id": "model.hubspot_source.stg_hubspot__ticket_contact_tmp", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "tmp/stg_hubspot__ticket_contact_tmp.sql", "original_file_path": "models/tmp/stg_hubspot__ticket_contact_tmp.sql", "name": "stg_hubspot__ticket_contact_tmp", "resource_type": "model", "alias": "stg_hubspot__ticket_contact_tmp", "checksum": {"name": "sha256", "checksum": "f9f143f93f0b5a0a431686e75ea785ee7ca7454287c9722ac1f7107e35539595"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["ticket_contact_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.hubspot_source_integration_tests.ticket_contact_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/tmp/stg_hubspot__ticket_contact_tmp.sql", "deferred": false, "unrendered_config": {"materialized": "view", "schema": null, "enabled": true}, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`zendesk_integration_tests`.`ticket_contact_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__ticket_contact_tmp`"}, "model.hubspot_source.stg_hubspot__deal_company_tmp": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_sales_enabled','hubspot_deal_enabled','hubspot_deal_company_enabled'])) }}\n\nselect *\nfrom {{ var('deal_company') }}", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "tmp", "stg_hubspot__deal_company_tmp"], "unique_id": "model.hubspot_source.stg_hubspot__deal_company_tmp", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "tmp/stg_hubspot__deal_company_tmp.sql", "original_file_path": "models/tmp/stg_hubspot__deal_company_tmp.sql", "name": "stg_hubspot__deal_company_tmp", "resource_type": "model", "alias": "stg_hubspot__deal_company_tmp", "checksum": {"name": "sha256", "checksum": "dd18ea003d261853bceba6b07f5f614d9719b423a1d54fbc0305590ca499d9c5"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["deal_company_data"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars"], "nodes": ["seed.hubspot_source_integration_tests.deal_company_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/tmp/stg_hubspot__deal_company_tmp.sql", "deferred": false, "unrendered_config": {"materialized": "view", "schema": null, "enabled": true}, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`zendesk_integration_tests`.`deal_company_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__deal_company_tmp`"}, "model.hubspot_source.stg_hubspot__engagement_deal_tmp": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_sales_enabled','hubspot_engagement_enabled','hubspot_engagement_deal_enabled'])) }}\n\nselect *\nfrom {{ var('engagement_deal') }}", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "tmp", "stg_hubspot__engagement_deal_tmp"], "unique_id": "model.hubspot_source.stg_hubspot__engagement_deal_tmp", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "tmp/stg_hubspot__engagement_deal_tmp.sql", "original_file_path": "models/tmp/stg_hubspot__engagement_deal_tmp.sql", "name": "stg_hubspot__engagement_deal_tmp", "resource_type": "model", "alias": "stg_hubspot__engagement_deal_tmp", "checksum": {"name": "sha256", "checksum": "700d960779a56df2619e3c72d555fd04f536d5cec3459618b2ca3e3ac5cfe25b"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["engagement_deal_data"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars"], "nodes": ["seed.hubspot_source_integration_tests.engagement_deal_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/tmp/stg_hubspot__engagement_deal_tmp.sql", "deferred": false, "unrendered_config": {"materialized": "view", "schema": null, "enabled": true}, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`zendesk_integration_tests`.`engagement_deal_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__engagement_deal_tmp`"}, "model.hubspot_source.stg_hubspot__email_event_print_tmp": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_marketing_enabled','hubspot_email_event_enabled','hubspot_email_event_print_enabled'])) }}\n\nselect *\nfrom {{ var('email_event_print') }}", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "tmp", "stg_hubspot__email_event_print_tmp"], "unique_id": "model.hubspot_source.stg_hubspot__email_event_print_tmp", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "tmp/stg_hubspot__email_event_print_tmp.sql", "original_file_path": "models/tmp/stg_hubspot__email_event_print_tmp.sql", "name": "stg_hubspot__email_event_print_tmp", "resource_type": "model", "alias": "stg_hubspot__email_event_print_tmp", "checksum": {"name": "sha256", "checksum": "e1492dcb7f40e0a445b55f116658d58a9380ec0cf1dcbc0237b77e0d7b37e34a"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["email_event_print_data"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars"], "nodes": ["seed.hubspot_source_integration_tests.email_event_print_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/tmp/stg_hubspot__email_event_print_tmp.sql", "deferred": false, "unrendered_config": {"materialized": "view", "schema": null, "enabled": true}, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`zendesk_integration_tests`.`email_event_print_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__email_event_print_tmp`"}, "model.hubspot_source.stg_hubspot__company_property_history_tmp": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_sales_enabled','hubspot_company_enabled'])) }}\n\nselect *\nfrom {{ var('company_property_history') }}", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "tmp", "stg_hubspot__company_property_history_tmp"], "unique_id": "model.hubspot_source.stg_hubspot__company_property_history_tmp", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "tmp/stg_hubspot__company_property_history_tmp.sql", "original_file_path": "models/tmp/stg_hubspot__company_property_history_tmp.sql", "name": "stg_hubspot__company_property_history_tmp", "resource_type": "model", "alias": "stg_hubspot__company_property_history_tmp", "checksum": {"name": "sha256", "checksum": "c63579bdf13286d3fef53cd3fc735d3e299f41623a8d2bb19c63bb5d1195df93"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["company_property_history_data"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars"], "nodes": ["seed.hubspot_source_integration_tests.company_property_history_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/tmp/stg_hubspot__company_property_history_tmp.sql", "deferred": false, "unrendered_config": {"materialized": "view", "schema": null, "enabled": true}, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`zendesk_integration_tests`.`company_property_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__company_property_history_tmp`"}, "model.hubspot_source.stg_hubspot__email_event_tmp": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_marketing_enabled','hubspot_email_event_enabled'])) }}\n\nselect *\nfrom {{ var('email_event') }}", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "tmp", "stg_hubspot__email_event_tmp"], "unique_id": "model.hubspot_source.stg_hubspot__email_event_tmp", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "tmp/stg_hubspot__email_event_tmp.sql", "original_file_path": "models/tmp/stg_hubspot__email_event_tmp.sql", "name": "stg_hubspot__email_event_tmp", "resource_type": "model", "alias": "stg_hubspot__email_event_tmp", "checksum": {"name": "sha256", "checksum": "bd2e785786c99cc9fca040403c1a44c02605d01c2fb1f8828631b22218761fcb"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["email_event_data"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars"], "nodes": ["seed.hubspot_source_integration_tests.email_event_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/tmp/stg_hubspot__email_event_tmp.sql", "deferred": false, "unrendered_config": {"materialized": "view", "schema": null, "enabled": true}, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`zendesk_integration_tests`.`email_event_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__email_event_tmp`"}, "model.hubspot_source.stg_hubspot__company_tmp": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_sales_enabled','hubspot_company_enabled'])) }}\n\nselect *\nfrom {{ var('company') }}", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "tmp", "stg_hubspot__company_tmp"], "unique_id": "model.hubspot_source.stg_hubspot__company_tmp", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "tmp/stg_hubspot__company_tmp.sql", "original_file_path": "models/tmp/stg_hubspot__company_tmp.sql", "name": "stg_hubspot__company_tmp", "resource_type": "model", "alias": "stg_hubspot__company_tmp", "checksum": {"name": "sha256", "checksum": "71e14b733d49851913c34d2a6a973e8e696bb05d7779e51cffdae2718fc65059"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["company_data"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars"], "nodes": ["seed.hubspot_source_integration_tests.company_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/tmp/stg_hubspot__company_tmp.sql", "deferred": false, "unrendered_config": {"materialized": "view", "schema": null, "enabled": true}, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`zendesk_integration_tests`.`company_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__company_tmp`"}, "model.hubspot_source.stg_hubspot__email_event_click_tmp": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_marketing_enabled','hubspot_email_event_enabled','hubspot_email_event_click_enabled'])) }}\n\nselect *\nfrom {{ var('email_event_click') }}", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "tmp", "stg_hubspot__email_event_click_tmp"], "unique_id": "model.hubspot_source.stg_hubspot__email_event_click_tmp", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "tmp/stg_hubspot__email_event_click_tmp.sql", "original_file_path": "models/tmp/stg_hubspot__email_event_click_tmp.sql", "name": "stg_hubspot__email_event_click_tmp", "resource_type": "model", "alias": "stg_hubspot__email_event_click_tmp", "checksum": {"name": "sha256", "checksum": "6b724be03dd8dbaec06b9515c1143a84c95d5b3a4c7a674cb6544cefb449bf74"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["email_event_click_data"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars"], "nodes": ["seed.hubspot_source_integration_tests.email_event_click_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/tmp/stg_hubspot__email_event_click_tmp.sql", "deferred": false, "unrendered_config": {"materialized": "view", "schema": null, "enabled": true}, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`zendesk_integration_tests`.`email_event_click_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__email_event_click_tmp`"}, "model.hubspot_source.stg_hubspot__engagement_contact_tmp": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_sales_enabled','hubspot_engagement_enabled','hubspot_engagement_contact_enabled'])) }}\n\nselect *\nfrom {{ var('engagement_contact') }}", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "tmp", "stg_hubspot__engagement_contact_tmp"], "unique_id": "model.hubspot_source.stg_hubspot__engagement_contact_tmp", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "tmp/stg_hubspot__engagement_contact_tmp.sql", "original_file_path": "models/tmp/stg_hubspot__engagement_contact_tmp.sql", "name": "stg_hubspot__engagement_contact_tmp", "resource_type": "model", "alias": "stg_hubspot__engagement_contact_tmp", "checksum": {"name": "sha256", "checksum": "68896f07089718c2878b9e71accc1f75d6d35516b996a7be2c0541d6b13c4508"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["engagement_contact_data"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars"], "nodes": ["seed.hubspot_source_integration_tests.engagement_contact_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/tmp/stg_hubspot__engagement_contact_tmp.sql", "deferred": false, "unrendered_config": {"materialized": "view", "schema": null, "enabled": true}, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`zendesk_integration_tests`.`engagement_contact_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__engagement_contact_tmp`"}, "model.hubspot_source.stg_hubspot__contact_list_tmp": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_marketing_enabled', 'hubspot_contact_list_enabled'])) }}\n\nselect *\nfrom {{ var('contact_list') }}", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "tmp", "stg_hubspot__contact_list_tmp"], "unique_id": "model.hubspot_source.stg_hubspot__contact_list_tmp", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "tmp/stg_hubspot__contact_list_tmp.sql", "original_file_path": "models/tmp/stg_hubspot__contact_list_tmp.sql", "name": "stg_hubspot__contact_list_tmp", "resource_type": "model", "alias": "stg_hubspot__contact_list_tmp", "checksum": {"name": "sha256", "checksum": "fd9af8e7a35d01dc575bf5c19d751d25794d7acb7d5bb1463e5caeab72d857a2"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["contact_list_data"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.fivetran_utils.seed_data_helper"], "nodes": ["seed.hubspot_source_integration_tests.contact_list_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/tmp/stg_hubspot__contact_list_tmp.sql", "deferred": false, "unrendered_config": {"materialized": "view", "schema": null, "enabled": true}, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`zendesk_integration_tests`.`contact_list_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__contact_list_tmp`"}, "model.hubspot_source.stg_hubspot__engagement_meeting_tmp": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_sales_enabled','hubspot_engagement_enabled','hubspot_engagement_email_enabled'])) }}\n\nselect *\nfrom {{ var('engagement_meeting') }}", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "tmp", "stg_hubspot__engagement_meeting_tmp"], "unique_id": "model.hubspot_source.stg_hubspot__engagement_meeting_tmp", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "tmp/stg_hubspot__engagement_meeting_tmp.sql", "original_file_path": "models/tmp/stg_hubspot__engagement_meeting_tmp.sql", "name": "stg_hubspot__engagement_meeting_tmp", "resource_type": "model", "alias": "stg_hubspot__engagement_meeting_tmp", "checksum": {"name": "sha256", "checksum": "a58491a8d1b6fd5215742826e225c96c32641c971ca4471fc186d15baebe0069"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["engagement_meeting_data"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars"], "nodes": ["seed.hubspot_source_integration_tests.engagement_meeting_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/tmp/stg_hubspot__engagement_meeting_tmp.sql", "deferred": false, "unrendered_config": {"materialized": "view", "schema": null, "enabled": true}, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`zendesk_integration_tests`.`engagement_meeting_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__engagement_meeting_tmp`"}, "model.hubspot_source.stg_hubspot__engagement_tmp": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_sales_enabled','hubspot_engagement_enabled'])) }}\n\nselect *\nfrom {{ var('engagement') }}", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "tmp", "stg_hubspot__engagement_tmp"], "unique_id": "model.hubspot_source.stg_hubspot__engagement_tmp", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "tmp/stg_hubspot__engagement_tmp.sql", "original_file_path": "models/tmp/stg_hubspot__engagement_tmp.sql", "name": "stg_hubspot__engagement_tmp", "resource_type": "model", "alias": "stg_hubspot__engagement_tmp", "checksum": {"name": "sha256", "checksum": "5ac51429780d9f7160a9e98ac3c4735e92321b47835e9793189c928bf9299da7"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["engagement_data"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars"], "nodes": ["seed.hubspot_source_integration_tests.engagement_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/tmp/stg_hubspot__engagement_tmp.sql", "deferred": false, "unrendered_config": {"materialized": "view", "schema": null, "enabled": true}, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`zendesk_integration_tests`.`engagement_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__engagement_tmp`"}, "model.hubspot_source.stg_hubspot__email_event_delivered_tmp": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_marketing_enabled','hubspot_email_event_enabled','hubspot_email_event_delivered_enabled'])) }}\n\nselect *\nfrom {{ var('email_event_delivered') }}", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "tmp", "stg_hubspot__email_event_delivered_tmp"], "unique_id": "model.hubspot_source.stg_hubspot__email_event_delivered_tmp", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "tmp/stg_hubspot__email_event_delivered_tmp.sql", "original_file_path": "models/tmp/stg_hubspot__email_event_delivered_tmp.sql", "name": "stg_hubspot__email_event_delivered_tmp", "resource_type": "model", "alias": "stg_hubspot__email_event_delivered_tmp", "checksum": {"name": "sha256", "checksum": "f0d72c7ce2193ae96b6a3b5c317755bc9e53a598f3a1668496d4ded7b42dce2b"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["email_event_delivered_data"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars"], "nodes": ["seed.hubspot_source_integration_tests.email_event_delivered_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/tmp/stg_hubspot__email_event_delivered_tmp.sql", "deferred": false, "unrendered_config": {"materialized": "view", "schema": null, "enabled": true}, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`zendesk_integration_tests`.`email_event_delivered_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__email_event_delivered_tmp`"}, "model.hubspot_source.stg_hubspot__engagement_email_tmp": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_sales_enabled','hubspot_engagement_enabled','hubspot_engagement_email_enabled'])) }}\n\nselect *\nfrom {{ var('engagement_email') }}", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "tmp", "stg_hubspot__engagement_email_tmp"], "unique_id": "model.hubspot_source.stg_hubspot__engagement_email_tmp", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "tmp/stg_hubspot__engagement_email_tmp.sql", "original_file_path": "models/tmp/stg_hubspot__engagement_email_tmp.sql", "name": "stg_hubspot__engagement_email_tmp", "resource_type": "model", "alias": "stg_hubspot__engagement_email_tmp", "checksum": {"name": "sha256", "checksum": "6b83154fa1de07667ec47ca47bb8be3450fb5ad4bb983f86656630df3fdbb8a9"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["engagement_email_data"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars"], "nodes": ["seed.hubspot_source_integration_tests.engagement_email_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/tmp/stg_hubspot__engagement_email_tmp.sql", "deferred": false, "unrendered_config": {"materialized": "view", "schema": null, "enabled": true}, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`zendesk_integration_tests`.`engagement_email_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__engagement_email_tmp`"}, "model.hubspot_source.stg_hubspot__email_event_forward_tmp": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_marketing_enabled','hubspot_email_event_enabled','hubspot_email_event_forward_enabled'])) }}\n\nselect *\nfrom {{ var('email_event_forward') }}", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "tmp", "stg_hubspot__email_event_forward_tmp"], "unique_id": "model.hubspot_source.stg_hubspot__email_event_forward_tmp", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "tmp/stg_hubspot__email_event_forward_tmp.sql", "original_file_path": "models/tmp/stg_hubspot__email_event_forward_tmp.sql", "name": "stg_hubspot__email_event_forward_tmp", "resource_type": "model", "alias": "stg_hubspot__email_event_forward_tmp", "checksum": {"name": "sha256", "checksum": "e84459ef11badbd945ca410cbdeccb77f66ce169f85e3c9ee7384798669ea5c6"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["email_event_forward_data"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars"], "nodes": ["seed.hubspot_source_integration_tests.email_event_forward_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/tmp/stg_hubspot__email_event_forward_tmp.sql", "deferred": false, "unrendered_config": {"materialized": "view", "schema": null, "enabled": true}, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`zendesk_integration_tests`.`email_event_forward_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__email_event_forward_tmp`"}, "model.hubspot_source.stg_hubspot__email_event_spam_report_tmp": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_marketing_enabled','hubspot_email_event_enabled','hubspot_email_event_spam_report_enabled'])) }}\n\nselect *\nfrom {{ var('email_event_spam_report') }}", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "tmp", "stg_hubspot__email_event_spam_report_tmp"], "unique_id": "model.hubspot_source.stg_hubspot__email_event_spam_report_tmp", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "tmp/stg_hubspot__email_event_spam_report_tmp.sql", "original_file_path": "models/tmp/stg_hubspot__email_event_spam_report_tmp.sql", "name": "stg_hubspot__email_event_spam_report_tmp", "resource_type": "model", "alias": "stg_hubspot__email_event_spam_report_tmp", "checksum": {"name": "sha256", "checksum": "86e3d74a05d22e93b2031516eb80c73cc43c061c804f52d16d35a11bfae1a468"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["email_event_spam_report_data"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars"], "nodes": ["seed.hubspot_source_integration_tests.email_event_spam_report_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/tmp/stg_hubspot__email_event_spam_report_tmp.sql", "deferred": false, "unrendered_config": {"materialized": "view", "schema": null, "enabled": true}, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`zendesk_integration_tests`.`email_event_spam_report_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__email_event_spam_report_tmp`"}, "model.hubspot_source.stg_hubspot__ticket_engagement_tmp": {"raw_sql": "{{ config(enabled=var('hubspot_service_enabled', True)) }}\n\nselect *\nfrom {{ var('ticket_engagement') }}", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "tmp", "stg_hubspot__ticket_engagement_tmp"], "unique_id": "model.hubspot_source.stg_hubspot__ticket_engagement_tmp", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "tmp/stg_hubspot__ticket_engagement_tmp.sql", "original_file_path": "models/tmp/stg_hubspot__ticket_engagement_tmp.sql", "name": "stg_hubspot__ticket_engagement_tmp", "resource_type": "model", "alias": "stg_hubspot__ticket_engagement_tmp", "checksum": {"name": "sha256", "checksum": "ca941bf35a2fe42b308d809bc5742bfa83198620fb031bcc8f20f09163efe38e"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["ticket_engagement_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.hubspot_source_integration_tests.ticket_engagement_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/tmp/stg_hubspot__ticket_engagement_tmp.sql", "deferred": false, "unrendered_config": {"materialized": "view", "schema": null, "enabled": true}, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`zendesk_integration_tests`.`ticket_engagement_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__ticket_engagement_tmp`"}, "model.hubspot_source.stg_hubspot__email_event_bounce_tmp": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_marketing_enabled','hubspot_email_event_enabled','hubspot_email_event_bounce_enabled'])) }}\n\nselect *\nfrom {{ var('email_event_bounce') }}", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "tmp", "stg_hubspot__email_event_bounce_tmp"], "unique_id": "model.hubspot_source.stg_hubspot__email_event_bounce_tmp", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "tmp/stg_hubspot__email_event_bounce_tmp.sql", "original_file_path": "models/tmp/stg_hubspot__email_event_bounce_tmp.sql", "name": "stg_hubspot__email_event_bounce_tmp", "resource_type": "model", "alias": "stg_hubspot__email_event_bounce_tmp", "checksum": {"name": "sha256", "checksum": "5cf2f855ec70b4296cb2a2c12a040e5eaef869d317876a4979e9f1671ebb2ca3"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["email_event_bounce_data"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars"], "nodes": ["seed.hubspot_source_integration_tests.email_event_bounce_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/tmp/stg_hubspot__email_event_bounce_tmp.sql", "deferred": false, "unrendered_config": {"materialized": "view", "schema": null, "enabled": true}, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`zendesk_integration_tests`.`email_event_bounce_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__email_event_bounce_tmp`"}, "model.hubspot_source.stg_hubspot__engagement_call_tmp": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_sales_enabled','hubspot_engagement_enabled','hubspot_engagement_call_enabled'])) }}\n\nselect *\nfrom {{ var('engagement_call') }}", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "tmp", "stg_hubspot__engagement_call_tmp"], "unique_id": "model.hubspot_source.stg_hubspot__engagement_call_tmp", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "tmp/stg_hubspot__engagement_call_tmp.sql", "original_file_path": "models/tmp/stg_hubspot__engagement_call_tmp.sql", "name": "stg_hubspot__engagement_call_tmp", "resource_type": "model", "alias": "stg_hubspot__engagement_call_tmp", "checksum": {"name": "sha256", "checksum": "69b0b24222e906148931a0ccf9ff6b546b8dba794fbab4e375e4b787d1e93110"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["engagement_call_data"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars"], "nodes": ["seed.hubspot_source_integration_tests.engagement_call_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/tmp/stg_hubspot__engagement_call_tmp.sql", "deferred": false, "unrendered_config": {"materialized": "view", "schema": null, "enabled": true}, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`zendesk_integration_tests`.`engagement_call_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__engagement_call_tmp`"}, "model.hubspot_source.stg_hubspot__ticket_pipeline_stage_tmp": {"raw_sql": "{{ config(enabled=var('hubspot_service_enabled', False)) }}\n\nselect * \nfrom {{ var('ticket_pipeline_stage') }}", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "tmp", "stg_hubspot__ticket_pipeline_stage_tmp"], "unique_id": "model.hubspot_source.stg_hubspot__ticket_pipeline_stage_tmp", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "tmp/stg_hubspot__ticket_pipeline_stage_tmp.sql", "original_file_path": "models/tmp/stg_hubspot__ticket_pipeline_stage_tmp.sql", "name": "stg_hubspot__ticket_pipeline_stage_tmp", "resource_type": "model", "alias": "stg_hubspot__ticket_pipeline_stage_tmp", "checksum": {"name": "sha256", "checksum": "cb25ff2d6490eaf08d7c136559ce3cc8eaf04bc27005c99c2b3b0997ad6b67cd"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["ticket_pipeline_stage_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.hubspot_source_integration_tests.ticket_pipeline_stage_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/tmp/stg_hubspot__ticket_pipeline_stage_tmp.sql", "deferred": false, "unrendered_config": {"materialized": "view", "schema": null, "enabled": true}, "compiled_sql": "\n\nselect * \nfrom `dbt-package-testing`.`zendesk_integration_tests`.`ticket_pipeline_stage_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__ticket_pipeline_stage_tmp`"}, "model.hubspot_source.stg_hubspot__deal_pipeline_stage_tmp": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_sales_enabled','hubspot_deal_enabled'])) }}\n\nselect *\nfrom {{ var('deal_pipeline_stage') }}", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "tmp", "stg_hubspot__deal_pipeline_stage_tmp"], "unique_id": "model.hubspot_source.stg_hubspot__deal_pipeline_stage_tmp", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "tmp/stg_hubspot__deal_pipeline_stage_tmp.sql", "original_file_path": "models/tmp/stg_hubspot__deal_pipeline_stage_tmp.sql", "name": "stg_hubspot__deal_pipeline_stage_tmp", "resource_type": "model", "alias": "stg_hubspot__deal_pipeline_stage_tmp", "checksum": {"name": "sha256", "checksum": "1600e72fdab295282f0c932e6476a36d14de2beeddba11eef56704c5e19dfece"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["deal_pipeline_stage_data"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars"], "nodes": ["seed.hubspot_source_integration_tests.deal_pipeline_stage_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/tmp/stg_hubspot__deal_pipeline_stage_tmp.sql", "deferred": false, "unrendered_config": {"materialized": "view", "schema": null, "enabled": true}, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`zendesk_integration_tests`.`deal_pipeline_stage_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__deal_pipeline_stage_tmp`"}, "model.hubspot_source.stg_hubspot__engagement_task_tmp": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_sales_enabled','hubspot_engagement_enabled','hubspot_engagement_task_enabled'])) }}\n\nselect *\nfrom {{ var('engagement_task') }}", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "tmp", "stg_hubspot__engagement_task_tmp"], "unique_id": "model.hubspot_source.stg_hubspot__engagement_task_tmp", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "tmp/stg_hubspot__engagement_task_tmp.sql", "original_file_path": "models/tmp/stg_hubspot__engagement_task_tmp.sql", "name": "stg_hubspot__engagement_task_tmp", "resource_type": "model", "alias": "stg_hubspot__engagement_task_tmp", "checksum": {"name": "sha256", "checksum": "77c59970e529c5fbcbe4aa4d15d0b2bee88de8ba394efb53a0a998b722e941bb"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["engagement_task_data"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars"], "nodes": ["seed.hubspot_source_integration_tests.engagement_task_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/tmp/stg_hubspot__engagement_task_tmp.sql", "deferred": false, "unrendered_config": {"materialized": "view", "schema": null, "enabled": true}, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`zendesk_integration_tests`.`engagement_task_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__engagement_task_tmp`"}, "model.hubspot_source.stg_hubspot__email_event_open_tmp": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_marketing_enabled','hubspot_email_event_enabled','hubspot_email_event_open_enabled'])) }}\n\nselect *\nfrom {{ var('email_event_open') }}", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "tmp", "stg_hubspot__email_event_open_tmp"], "unique_id": "model.hubspot_source.stg_hubspot__email_event_open_tmp", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "tmp/stg_hubspot__email_event_open_tmp.sql", "original_file_path": "models/tmp/stg_hubspot__email_event_open_tmp.sql", "name": "stg_hubspot__email_event_open_tmp", "resource_type": "model", "alias": "stg_hubspot__email_event_open_tmp", "checksum": {"name": "sha256", "checksum": "f3ada0551ce1bab0ca3302c0464e2d17c8bbe5f4f74daccdf0bf84ee5fcd0a81"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["email_event_open_data"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars"], "nodes": ["seed.hubspot_source_integration_tests.email_event_open_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/tmp/stg_hubspot__email_event_open_tmp.sql", "deferred": false, "unrendered_config": {"materialized": "view", "schema": null, "enabled": true}, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`zendesk_integration_tests`.`email_event_open_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__email_event_open_tmp`"}, "model.hubspot_source.stg_hubspot__deal_property_history_tmp": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_sales_enabled','hubspot_deal_enabled'])) }}\n\nselect *\nfrom {{ var('deal_property_history') }}", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "tmp", "stg_hubspot__deal_property_history_tmp"], "unique_id": "model.hubspot_source.stg_hubspot__deal_property_history_tmp", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "tmp/stg_hubspot__deal_property_history_tmp.sql", "original_file_path": "models/tmp/stg_hubspot__deal_property_history_tmp.sql", "name": "stg_hubspot__deal_property_history_tmp", "resource_type": "model", "alias": "stg_hubspot__deal_property_history_tmp", "checksum": {"name": "sha256", "checksum": "168adec4f1836e664cfd6ae9d122a38bfd62840a758c7ade3ff13e7373bbfb31"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["deal_property_history_data"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars"], "nodes": ["seed.hubspot_source_integration_tests.deal_property_history_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/tmp/stg_hubspot__deal_property_history_tmp.sql", "deferred": false, "unrendered_config": {"materialized": "view", "schema": null, "enabled": true}, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`zendesk_integration_tests`.`deal_property_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__deal_property_history_tmp`"}, "model.hubspot_source.stg_hubspot__email_event_deferred_tmp": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_marketing_enabled','hubspot_email_event_enabled','hubspot_email_event_deferred_enabled'])) }}\n\nselect *\nfrom {{ var('email_event_deferred') }}", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "tmp", "stg_hubspot__email_event_deferred_tmp"], "unique_id": "model.hubspot_source.stg_hubspot__email_event_deferred_tmp", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "tmp/stg_hubspot__email_event_deferred_tmp.sql", "original_file_path": "models/tmp/stg_hubspot__email_event_deferred_tmp.sql", "name": "stg_hubspot__email_event_deferred_tmp", "resource_type": "model", "alias": "stg_hubspot__email_event_deferred_tmp", "checksum": {"name": "sha256", "checksum": "49cc95430e8375d3d61ea116f5e866c90d1e094df57a2afc11aaa879856003af"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["email_event_deferred_data"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars"], "nodes": ["seed.hubspot_source_integration_tests.email_event_deferred_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/tmp/stg_hubspot__email_event_deferred_tmp.sql", "deferred": false, "unrendered_config": {"materialized": "view", "schema": null, "enabled": true}, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`zendesk_integration_tests`.`email_event_deferred_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__email_event_deferred_tmp`"}, "model.hubspot_source.stg_hubspot__email_campaign_tmp": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_marketing_enabled','hubspot_email_event_enabled'])) }}\n\nselect *\nfrom {{ var('email_campaign') }}", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "tmp", "stg_hubspot__email_campaign_tmp"], "unique_id": "model.hubspot_source.stg_hubspot__email_campaign_tmp", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "tmp/stg_hubspot__email_campaign_tmp.sql", "original_file_path": "models/tmp/stg_hubspot__email_campaign_tmp.sql", "name": "stg_hubspot__email_campaign_tmp", "resource_type": "model", "alias": "stg_hubspot__email_campaign_tmp", "checksum": {"name": "sha256", "checksum": "82140dbdec643b7ca1159e66138817a6e05cacce7ed8ddefdd9934f40f6afc38"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["email_campaign_data"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars"], "nodes": ["seed.hubspot_source_integration_tests.email_campaign_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/tmp/stg_hubspot__email_campaign_tmp.sql", "deferred": false, "unrendered_config": {"materialized": "view", "schema": null, "enabled": true}, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`zendesk_integration_tests`.`email_campaign_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__email_campaign_tmp`"}, "model.hubspot_source.stg_hubspot__ticket_deal_tmp": {"raw_sql": "{{ config(enabled=var('hubspot_service_enabled', True)) }}\n\nselect *\nfrom {{ var('ticket_deal') }}", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "tmp", "stg_hubspot__ticket_deal_tmp"], "unique_id": "model.hubspot_source.stg_hubspot__ticket_deal_tmp", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "tmp/stg_hubspot__ticket_deal_tmp.sql", "original_file_path": "models/tmp/stg_hubspot__ticket_deal_tmp.sql", "name": "stg_hubspot__ticket_deal_tmp", "resource_type": "model", "alias": "stg_hubspot__ticket_deal_tmp", "checksum": {"name": "sha256", "checksum": "294e6e8090e0238cf87a927a3e95b0a7f7de7255a4e6a80c66ad8227181a8a3e"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["ticket_deal_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.hubspot_source_integration_tests.ticket_deal_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/tmp/stg_hubspot__ticket_deal_tmp.sql", "deferred": false, "unrendered_config": {"materialized": "view", "schema": null, "enabled": true}, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`zendesk_integration_tests`.`ticket_deal_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__ticket_deal_tmp`"}, "test.hubspot_source.unique_stg_hubspot__deal_pipeline_stage_deal_pipeline_stage_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "unique", "kwargs": {"column_name": "deal_pipeline_stage_id", "model": "{{ ref('stg_hubspot__deal_pipeline_stage') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "schema_test", "unique_stg_hubspot__deal_pipeline_stage_deal_pipeline_stage_id"], "unique_id": "test.hubspot_source.unique_stg_hubspot__deal_pipeline_stage_deal_pipeline_stage_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/unique_stg_hubspot__deal_pipeline_stage_deal_pipeline_stage_id.sql", "original_file_path": "models/stg_hubspot__deal.yml", "name": "unique_stg_hubspot__deal_pipeline_stage_deal_pipeline_stage_id", "resource_type": "test", "alias": "unique_stg_hubspot__deal_pipeline_stage_deal_pipeline_stage_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__deal_pipeline_stage"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.hubspot_source.stg_hubspot__deal_pipeline_stage"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__deal.yml/schema_test/unique_stg_hubspot__deal_pipeline_stage_deal_pipeline_stage_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom (\n\n select\n deal_pipeline_stage_id\n\n from `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__deal_pipeline_stage`\n where deal_pipeline_stage_id is not null\n group by deal_pipeline_stage_id\n having count(*) > 1\n\n) validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "deal_pipeline_stage_id"}, "test.hubspot_source.not_null_stg_hubspot__deal_pipeline_stage_deal_pipeline_stage_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "deal_pipeline_stage_id", "model": "{{ ref('stg_hubspot__deal_pipeline_stage') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "schema_test", "not_null_stg_hubspot__deal_pipeline_stage_deal_pipeline_stage_id"], "unique_id": "test.hubspot_source.not_null_stg_hubspot__deal_pipeline_stage_deal_pipeline_stage_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/not_null_stg_hubspot__deal_pipeline_stage_deal_pipeline_stage_id.sql", "original_file_path": "models/stg_hubspot__deal.yml", "name": "not_null_stg_hubspot__deal_pipeline_stage_deal_pipeline_stage_id", "resource_type": "test", "alias": "not_null_stg_hubspot__deal_pipeline_stage_deal_pipeline_stage_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__deal_pipeline_stage"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.hubspot_source.stg_hubspot__deal_pipeline_stage"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__deal.yml/schema_test/not_null_stg_hubspot__deal_pipeline_stage_deal_pipeline_stage_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__deal_pipeline_stage`\nwhere deal_pipeline_stage_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "deal_pipeline_stage_id"}, "test.hubspot_source.unique_stg_hubspot__deal_pipeline_deal_pipeline_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "unique", "kwargs": {"column_name": "deal_pipeline_id", "model": "{{ ref('stg_hubspot__deal_pipeline') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "schema_test", "unique_stg_hubspot__deal_pipeline_deal_pipeline_id"], "unique_id": "test.hubspot_source.unique_stg_hubspot__deal_pipeline_deal_pipeline_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/unique_stg_hubspot__deal_pipeline_deal_pipeline_id.sql", "original_file_path": "models/stg_hubspot__deal.yml", "name": "unique_stg_hubspot__deal_pipeline_deal_pipeline_id", "resource_type": "test", "alias": "unique_stg_hubspot__deal_pipeline_deal_pipeline_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__deal_pipeline"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.hubspot_source.stg_hubspot__deal_pipeline"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__deal.yml/schema_test/unique_stg_hubspot__deal_pipeline_deal_pipeline_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom (\n\n select\n deal_pipeline_id\n\n from `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__deal_pipeline`\n where deal_pipeline_id is not null\n group by deal_pipeline_id\n having count(*) > 1\n\n) validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "deal_pipeline_id"}, "test.hubspot_source.not_null_stg_hubspot__deal_pipeline_deal_pipeline_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "deal_pipeline_id", "model": "{{ ref('stg_hubspot__deal_pipeline') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "schema_test", "not_null_stg_hubspot__deal_pipeline_deal_pipeline_id"], "unique_id": "test.hubspot_source.not_null_stg_hubspot__deal_pipeline_deal_pipeline_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/not_null_stg_hubspot__deal_pipeline_deal_pipeline_id.sql", "original_file_path": "models/stg_hubspot__deal.yml", "name": "not_null_stg_hubspot__deal_pipeline_deal_pipeline_id", "resource_type": "test", "alias": "not_null_stg_hubspot__deal_pipeline_deal_pipeline_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__deal_pipeline"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.hubspot_source.stg_hubspot__deal_pipeline"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__deal.yml/schema_test/not_null_stg_hubspot__deal_pipeline_deal_pipeline_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__deal_pipeline`\nwhere deal_pipeline_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "deal_pipeline_id"}, "test.hubspot_source.not_null_stg_hubspot__deal_deal_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "deal_id", "model": "{{ ref('stg_hubspot__deal') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "schema_test", "not_null_stg_hubspot__deal_deal_id"], "unique_id": "test.hubspot_source.not_null_stg_hubspot__deal_deal_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/not_null_stg_hubspot__deal_deal_id.sql", "original_file_path": "models/stg_hubspot__deal.yml", "name": "not_null_stg_hubspot__deal_deal_id", "resource_type": "test", "alias": "not_null_stg_hubspot__deal_deal_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__deal"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.hubspot_source.stg_hubspot__deal"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__deal.yml/schema_test/not_null_stg_hubspot__deal_deal_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__deal`\nwhere deal_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "deal_id"}, "test.hubspot_source.unique_stg_hubspot__deal_deal_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "unique", "kwargs": {"column_name": "deal_id", "model": "{{ ref('stg_hubspot__deal') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "schema_test", "unique_stg_hubspot__deal_deal_id"], "unique_id": "test.hubspot_source.unique_stg_hubspot__deal_deal_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/unique_stg_hubspot__deal_deal_id.sql", "original_file_path": "models/stg_hubspot__deal.yml", "name": "unique_stg_hubspot__deal_deal_id", "resource_type": "test", "alias": "unique_stg_hubspot__deal_deal_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__deal"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.hubspot_source.stg_hubspot__deal"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__deal.yml/schema_test/unique_stg_hubspot__deal_deal_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom (\n\n select\n deal_id\n\n from `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__deal`\n where deal_id is not null\n group by deal_id\n having count(*) > 1\n\n) validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "deal_id"}, "test.hubspot_source.unique_stg_hubspot__contact_list_contact_list_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "unique", "kwargs": {"column_name": "contact_list_id", "model": "{{ ref('stg_hubspot__contact_list') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "schema_test", "unique_stg_hubspot__contact_list_contact_list_id"], "unique_id": "test.hubspot_source.unique_stg_hubspot__contact_list_contact_list_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/unique_stg_hubspot__contact_list_contact_list_id.sql", "original_file_path": "models/stg_hubspot__contact.yml", "name": "unique_stg_hubspot__contact_list_contact_list_id", "resource_type": "test", "alias": "unique_stg_hubspot__contact_list_contact_list_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__contact_list"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.hubspot_source.stg_hubspot__contact_list"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__contact.yml/schema_test/unique_stg_hubspot__contact_list_contact_list_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom (\n\n select\n contact_list_id\n\n from `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__contact_list`\n where contact_list_id is not null\n group by contact_list_id\n having count(*) > 1\n\n) validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "contact_list_id"}, "test.hubspot_source.not_null_stg_hubspot__contact_list_contact_list_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "contact_list_id", "model": "{{ ref('stg_hubspot__contact_list') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "schema_test", "not_null_stg_hubspot__contact_list_contact_list_id"], "unique_id": "test.hubspot_source.not_null_stg_hubspot__contact_list_contact_list_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/not_null_stg_hubspot__contact_list_contact_list_id.sql", "original_file_path": "models/stg_hubspot__contact.yml", "name": "not_null_stg_hubspot__contact_list_contact_list_id", "resource_type": "test", "alias": "not_null_stg_hubspot__contact_list_contact_list_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__contact_list"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.hubspot_source.stg_hubspot__contact_list"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__contact.yml/schema_test/not_null_stg_hubspot__contact_list_contact_list_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__contact_list`\nwhere contact_list_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "contact_list_id"}, "test.hubspot_source.unique_stg_hubspot__contact_contact_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "unique", "kwargs": {"column_name": "contact_id", "model": "{{ ref('stg_hubspot__contact') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "schema_test", "unique_stg_hubspot__contact_contact_id"], "unique_id": "test.hubspot_source.unique_stg_hubspot__contact_contact_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/unique_stg_hubspot__contact_contact_id.sql", "original_file_path": "models/stg_hubspot__contact.yml", "name": "unique_stg_hubspot__contact_contact_id", "resource_type": "test", "alias": "unique_stg_hubspot__contact_contact_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__contact"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.hubspot_source.stg_hubspot__contact"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__contact.yml/schema_test/unique_stg_hubspot__contact_contact_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom (\n\n select\n contact_id\n\n from `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__contact`\n where contact_id is not null\n group by contact_id\n having count(*) > 1\n\n) validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "contact_id"}, "test.hubspot_source.not_null_stg_hubspot__contact_contact_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "contact_id", "model": "{{ ref('stg_hubspot__contact') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "schema_test", "not_null_stg_hubspot__contact_contact_id"], "unique_id": "test.hubspot_source.not_null_stg_hubspot__contact_contact_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/not_null_stg_hubspot__contact_contact_id.sql", "original_file_path": "models/stg_hubspot__contact.yml", "name": "not_null_stg_hubspot__contact_contact_id", "resource_type": "test", "alias": "not_null_stg_hubspot__contact_contact_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__contact"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.hubspot_source.stg_hubspot__contact"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__contact.yml/schema_test/not_null_stg_hubspot__contact_contact_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__contact`\nwhere contact_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "contact_id"}, "test.hubspot_source.unique_stg_hubspot__email_event_bounce_event_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "unique", "kwargs": {"column_name": "event_id", "model": "{{ ref('stg_hubspot__email_event_bounce') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "schema_test", "unique_stg_hubspot__email_event_bounce_event_id"], "unique_id": "test.hubspot_source.unique_stg_hubspot__email_event_bounce_event_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/unique_stg_hubspot__email_event_bounce_event_id.sql", "original_file_path": "models/stg_hubspot__email.yml", "name": "unique_stg_hubspot__email_event_bounce_event_id", "resource_type": "test", "alias": "unique_stg_hubspot__email_event_bounce_event_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__email_event_bounce"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.hubspot_source.stg_hubspot__email_event_bounce"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__email.yml/schema_test/unique_stg_hubspot__email_event_bounce_event_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom (\n\n select\n event_id\n\n from `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__email_event_bounce`\n where event_id is not null\n group by event_id\n having count(*) > 1\n\n) validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "event_id"}, "test.hubspot_source.not_null_stg_hubspot__email_event_bounce_event_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "event_id", "model": "{{ ref('stg_hubspot__email_event_bounce') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "schema_test", "not_null_stg_hubspot__email_event_bounce_event_id"], "unique_id": "test.hubspot_source.not_null_stg_hubspot__email_event_bounce_event_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/not_null_stg_hubspot__email_event_bounce_event_id.sql", "original_file_path": "models/stg_hubspot__email.yml", "name": "not_null_stg_hubspot__email_event_bounce_event_id", "resource_type": "test", "alias": "not_null_stg_hubspot__email_event_bounce_event_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__email_event_bounce"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.hubspot_source.stg_hubspot__email_event_bounce"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__email.yml/schema_test/not_null_stg_hubspot__email_event_bounce_event_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__email_event_bounce`\nwhere event_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "event_id"}, "test.hubspot_source.unique_stg_hubspot__email_event_click_event_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "unique", "kwargs": {"column_name": "event_id", "model": "{{ ref('stg_hubspot__email_event_click') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "schema_test", "unique_stg_hubspot__email_event_click_event_id"], "unique_id": "test.hubspot_source.unique_stg_hubspot__email_event_click_event_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/unique_stg_hubspot__email_event_click_event_id.sql", "original_file_path": "models/stg_hubspot__email.yml", "name": "unique_stg_hubspot__email_event_click_event_id", "resource_type": "test", "alias": "unique_stg_hubspot__email_event_click_event_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__email_event_click"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.hubspot_source.stg_hubspot__email_event_click"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__email.yml/schema_test/unique_stg_hubspot__email_event_click_event_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom (\n\n select\n event_id\n\n from `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__email_event_click`\n where event_id is not null\n group by event_id\n having count(*) > 1\n\n) validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "event_id"}, "test.hubspot_source.not_null_stg_hubspot__email_event_click_event_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "event_id", "model": "{{ ref('stg_hubspot__email_event_click') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "schema_test", "not_null_stg_hubspot__email_event_click_event_id"], "unique_id": "test.hubspot_source.not_null_stg_hubspot__email_event_click_event_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/not_null_stg_hubspot__email_event_click_event_id.sql", "original_file_path": "models/stg_hubspot__email.yml", "name": "not_null_stg_hubspot__email_event_click_event_id", "resource_type": "test", "alias": "not_null_stg_hubspot__email_event_click_event_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__email_event_click"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.hubspot_source.stg_hubspot__email_event_click"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__email.yml/schema_test/not_null_stg_hubspot__email_event_click_event_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__email_event_click`\nwhere event_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "event_id"}, "test.hubspot_source.unique_stg_hubspot__email_event_deferred_event_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "unique", "kwargs": {"column_name": "event_id", "model": "{{ ref('stg_hubspot__email_event_deferred') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "schema_test", "unique_stg_hubspot__email_event_deferred_event_id"], "unique_id": "test.hubspot_source.unique_stg_hubspot__email_event_deferred_event_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/unique_stg_hubspot__email_event_deferred_event_id.sql", "original_file_path": "models/stg_hubspot__email.yml", "name": "unique_stg_hubspot__email_event_deferred_event_id", "resource_type": "test", "alias": "unique_stg_hubspot__email_event_deferred_event_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__email_event_deferred"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.hubspot_source.stg_hubspot__email_event_deferred"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__email.yml/schema_test/unique_stg_hubspot__email_event_deferred_event_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom (\n\n select\n event_id\n\n from `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__email_event_deferred`\n where event_id is not null\n group by event_id\n having count(*) > 1\n\n) validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "event_id"}, "test.hubspot_source.not_null_stg_hubspot__email_event_deferred_event_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "event_id", "model": "{{ ref('stg_hubspot__email_event_deferred') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "schema_test", "not_null_stg_hubspot__email_event_deferred_event_id"], "unique_id": "test.hubspot_source.not_null_stg_hubspot__email_event_deferred_event_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/not_null_stg_hubspot__email_event_deferred_event_id.sql", "original_file_path": "models/stg_hubspot__email.yml", "name": "not_null_stg_hubspot__email_event_deferred_event_id", "resource_type": "test", "alias": "not_null_stg_hubspot__email_event_deferred_event_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__email_event_deferred"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.hubspot_source.stg_hubspot__email_event_deferred"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__email.yml/schema_test/not_null_stg_hubspot__email_event_deferred_event_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__email_event_deferred`\nwhere event_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "event_id"}, "test.hubspot_source.unique_stg_hubspot__email_event_delivered_event_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "unique", "kwargs": {"column_name": "event_id", "model": "{{ ref('stg_hubspot__email_event_delivered') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "schema_test", "unique_stg_hubspot__email_event_delivered_event_id"], "unique_id": "test.hubspot_source.unique_stg_hubspot__email_event_delivered_event_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/unique_stg_hubspot__email_event_delivered_event_id.sql", "original_file_path": "models/stg_hubspot__email.yml", "name": "unique_stg_hubspot__email_event_delivered_event_id", "resource_type": "test", "alias": "unique_stg_hubspot__email_event_delivered_event_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__email_event_delivered"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.hubspot_source.stg_hubspot__email_event_delivered"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__email.yml/schema_test/unique_stg_hubspot__email_event_delivered_event_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom (\n\n select\n event_id\n\n from `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__email_event_delivered`\n where event_id is not null\n group by event_id\n having count(*) > 1\n\n) validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "event_id"}, "test.hubspot_source.not_null_stg_hubspot__email_event_delivered_event_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "event_id", "model": "{{ ref('stg_hubspot__email_event_delivered') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "schema_test", "not_null_stg_hubspot__email_event_delivered_event_id"], "unique_id": "test.hubspot_source.not_null_stg_hubspot__email_event_delivered_event_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/not_null_stg_hubspot__email_event_delivered_event_id.sql", "original_file_path": "models/stg_hubspot__email.yml", "name": "not_null_stg_hubspot__email_event_delivered_event_id", "resource_type": "test", "alias": "not_null_stg_hubspot__email_event_delivered_event_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__email_event_delivered"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.hubspot_source.stg_hubspot__email_event_delivered"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__email.yml/schema_test/not_null_stg_hubspot__email_event_delivered_event_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__email_event_delivered`\nwhere event_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "event_id"}, "test.hubspot_source.unique_stg_hubspot__email_event_dropped_event_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "unique", "kwargs": {"column_name": "event_id", "model": "{{ ref('stg_hubspot__email_event_dropped') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "schema_test", "unique_stg_hubspot__email_event_dropped_event_id"], "unique_id": "test.hubspot_source.unique_stg_hubspot__email_event_dropped_event_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/unique_stg_hubspot__email_event_dropped_event_id.sql", "original_file_path": "models/stg_hubspot__email.yml", "name": "unique_stg_hubspot__email_event_dropped_event_id", "resource_type": "test", "alias": "unique_stg_hubspot__email_event_dropped_event_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__email_event_dropped"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.hubspot_source.stg_hubspot__email_event_dropped"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__email.yml/schema_test/unique_stg_hubspot__email_event_dropped_event_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom (\n\n select\n event_id\n\n from `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__email_event_dropped`\n where event_id is not null\n group by event_id\n having count(*) > 1\n\n) validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "event_id"}, "test.hubspot_source.not_null_stg_hubspot__email_event_dropped_event_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "event_id", "model": "{{ ref('stg_hubspot__email_event_dropped') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "schema_test", "not_null_stg_hubspot__email_event_dropped_event_id"], "unique_id": "test.hubspot_source.not_null_stg_hubspot__email_event_dropped_event_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/not_null_stg_hubspot__email_event_dropped_event_id.sql", "original_file_path": "models/stg_hubspot__email.yml", "name": "not_null_stg_hubspot__email_event_dropped_event_id", "resource_type": "test", "alias": "not_null_stg_hubspot__email_event_dropped_event_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__email_event_dropped"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.hubspot_source.stg_hubspot__email_event_dropped"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__email.yml/schema_test/not_null_stg_hubspot__email_event_dropped_event_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__email_event_dropped`\nwhere event_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "event_id"}, "test.hubspot_source.unique_stg_hubspot__email_event_forward_event_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "unique", "kwargs": {"column_name": "event_id", "model": "{{ ref('stg_hubspot__email_event_forward') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "schema_test", "unique_stg_hubspot__email_event_forward_event_id"], "unique_id": "test.hubspot_source.unique_stg_hubspot__email_event_forward_event_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/unique_stg_hubspot__email_event_forward_event_id.sql", "original_file_path": "models/stg_hubspot__email.yml", "name": "unique_stg_hubspot__email_event_forward_event_id", "resource_type": "test", "alias": "unique_stg_hubspot__email_event_forward_event_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__email_event_forward"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.hubspot_source.stg_hubspot__email_event_forward"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__email.yml/schema_test/unique_stg_hubspot__email_event_forward_event_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom (\n\n select\n event_id\n\n from `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__email_event_forward`\n where event_id is not null\n group by event_id\n having count(*) > 1\n\n) validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "event_id"}, "test.hubspot_source.not_null_stg_hubspot__email_event_forward_event_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "event_id", "model": "{{ ref('stg_hubspot__email_event_forward') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "schema_test", "not_null_stg_hubspot__email_event_forward_event_id"], "unique_id": "test.hubspot_source.not_null_stg_hubspot__email_event_forward_event_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/not_null_stg_hubspot__email_event_forward_event_id.sql", "original_file_path": "models/stg_hubspot__email.yml", "name": "not_null_stg_hubspot__email_event_forward_event_id", "resource_type": "test", "alias": "not_null_stg_hubspot__email_event_forward_event_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__email_event_forward"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.hubspot_source.stg_hubspot__email_event_forward"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__email.yml/schema_test/not_null_stg_hubspot__email_event_forward_event_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__email_event_forward`\nwhere event_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "event_id"}, "test.hubspot_source.unique_stg_hubspot__email_event_open_event_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "unique", "kwargs": {"column_name": "event_id", "model": "{{ ref('stg_hubspot__email_event_open') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "schema_test", "unique_stg_hubspot__email_event_open_event_id"], "unique_id": "test.hubspot_source.unique_stg_hubspot__email_event_open_event_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/unique_stg_hubspot__email_event_open_event_id.sql", "original_file_path": "models/stg_hubspot__email.yml", "name": "unique_stg_hubspot__email_event_open_event_id", "resource_type": "test", "alias": "unique_stg_hubspot__email_event_open_event_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__email_event_open"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.hubspot_source.stg_hubspot__email_event_open"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__email.yml/schema_test/unique_stg_hubspot__email_event_open_event_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom (\n\n select\n event_id\n\n from `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__email_event_open`\n where event_id is not null\n group by event_id\n having count(*) > 1\n\n) validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "event_id"}, "test.hubspot_source.not_null_stg_hubspot__email_event_open_event_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "event_id", "model": "{{ ref('stg_hubspot__email_event_open') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "schema_test", "not_null_stg_hubspot__email_event_open_event_id"], "unique_id": "test.hubspot_source.not_null_stg_hubspot__email_event_open_event_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/not_null_stg_hubspot__email_event_open_event_id.sql", "original_file_path": "models/stg_hubspot__email.yml", "name": "not_null_stg_hubspot__email_event_open_event_id", "resource_type": "test", "alias": "not_null_stg_hubspot__email_event_open_event_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__email_event_open"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.hubspot_source.stg_hubspot__email_event_open"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__email.yml/schema_test/not_null_stg_hubspot__email_event_open_event_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__email_event_open`\nwhere event_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "event_id"}, "test.hubspot_source.unique_stg_hubspot__email_event_print_event_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "unique", "kwargs": {"column_name": "event_id", "model": "{{ ref('stg_hubspot__email_event_print') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "schema_test", "unique_stg_hubspot__email_event_print_event_id"], "unique_id": "test.hubspot_source.unique_stg_hubspot__email_event_print_event_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/unique_stg_hubspot__email_event_print_event_id.sql", "original_file_path": "models/stg_hubspot__email.yml", "name": "unique_stg_hubspot__email_event_print_event_id", "resource_type": "test", "alias": "unique_stg_hubspot__email_event_print_event_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__email_event_print"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.hubspot_source.stg_hubspot__email_event_print"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__email.yml/schema_test/unique_stg_hubspot__email_event_print_event_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom (\n\n select\n event_id\n\n from `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__email_event_print`\n where event_id is not null\n group by event_id\n having count(*) > 1\n\n) validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "event_id"}, "test.hubspot_source.not_null_stg_hubspot__email_event_print_event_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "event_id", "model": "{{ ref('stg_hubspot__email_event_print') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "schema_test", "not_null_stg_hubspot__email_event_print_event_id"], "unique_id": "test.hubspot_source.not_null_stg_hubspot__email_event_print_event_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/not_null_stg_hubspot__email_event_print_event_id.sql", "original_file_path": "models/stg_hubspot__email.yml", "name": "not_null_stg_hubspot__email_event_print_event_id", "resource_type": "test", "alias": "not_null_stg_hubspot__email_event_print_event_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__email_event_print"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.hubspot_source.stg_hubspot__email_event_print"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__email.yml/schema_test/not_null_stg_hubspot__email_event_print_event_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__email_event_print`\nwhere event_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "event_id"}, "test.hubspot_source.unique_stg_hubspot__email_event_sent_event_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "unique", "kwargs": {"column_name": "event_id", "model": "{{ ref('stg_hubspot__email_event_sent') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "schema_test", "unique_stg_hubspot__email_event_sent_event_id"], "unique_id": "test.hubspot_source.unique_stg_hubspot__email_event_sent_event_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/unique_stg_hubspot__email_event_sent_event_id.sql", "original_file_path": "models/stg_hubspot__email.yml", "name": "unique_stg_hubspot__email_event_sent_event_id", "resource_type": "test", "alias": "unique_stg_hubspot__email_event_sent_event_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__email_event_sent"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.hubspot_source.stg_hubspot__email_event_sent"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__email.yml/schema_test/unique_stg_hubspot__email_event_sent_event_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom (\n\n select\n event_id\n\n from `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__email_event_sent`\n where event_id is not null\n group by event_id\n having count(*) > 1\n\n) validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "event_id"}, "test.hubspot_source.not_null_stg_hubspot__email_event_sent_event_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "event_id", "model": "{{ ref('stg_hubspot__email_event_sent') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "schema_test", "not_null_stg_hubspot__email_event_sent_event_id"], "unique_id": "test.hubspot_source.not_null_stg_hubspot__email_event_sent_event_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/not_null_stg_hubspot__email_event_sent_event_id.sql", "original_file_path": "models/stg_hubspot__email.yml", "name": "not_null_stg_hubspot__email_event_sent_event_id", "resource_type": "test", "alias": "not_null_stg_hubspot__email_event_sent_event_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__email_event_sent"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.hubspot_source.stg_hubspot__email_event_sent"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__email.yml/schema_test/not_null_stg_hubspot__email_event_sent_event_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__email_event_sent`\nwhere event_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "event_id"}, "test.hubspot_source.unique_stg_hubspot__email_event_spam_report_event_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "unique", "kwargs": {"column_name": "event_id", "model": "{{ ref('stg_hubspot__email_event_spam_report') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "schema_test", "unique_stg_hubspot__email_event_spam_report_event_id"], "unique_id": "test.hubspot_source.unique_stg_hubspot__email_event_spam_report_event_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/unique_stg_hubspot__email_event_spam_report_event_id.sql", "original_file_path": "models/stg_hubspot__email.yml", "name": "unique_stg_hubspot__email_event_spam_report_event_id", "resource_type": "test", "alias": "unique_stg_hubspot__email_event_spam_report_event_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__email_event_spam_report"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.hubspot_source.stg_hubspot__email_event_spam_report"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__email.yml/schema_test/unique_stg_hubspot__email_event_spam_report_event_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom (\n\n select\n event_id\n\n from `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__email_event_spam_report`\n where event_id is not null\n group by event_id\n having count(*) > 1\n\n) validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "event_id"}, "test.hubspot_source.not_null_stg_hubspot__email_event_spam_report_event_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "event_id", "model": "{{ ref('stg_hubspot__email_event_spam_report') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "schema_test", "not_null_stg_hubspot__email_event_spam_report_event_id"], "unique_id": "test.hubspot_source.not_null_stg_hubspot__email_event_spam_report_event_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/not_null_stg_hubspot__email_event_spam_report_event_id.sql", "original_file_path": "models/stg_hubspot__email.yml", "name": "not_null_stg_hubspot__email_event_spam_report_event_id", "resource_type": "test", "alias": "not_null_stg_hubspot__email_event_spam_report_event_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__email_event_spam_report"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.hubspot_source.stg_hubspot__email_event_spam_report"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__email.yml/schema_test/not_null_stg_hubspot__email_event_spam_report_event_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__email_event_spam_report`\nwhere event_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "event_id"}, "test.hubspot_source.unique_stg_hubspot__email_event_status_change_event_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "unique", "kwargs": {"column_name": "event_id", "model": "{{ ref('stg_hubspot__email_event_status_change') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "schema_test", "unique_stg_hubspot__email_event_status_change_event_id"], "unique_id": "test.hubspot_source.unique_stg_hubspot__email_event_status_change_event_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/unique_stg_hubspot__email_event_status_change_event_id.sql", "original_file_path": "models/stg_hubspot__email.yml", "name": "unique_stg_hubspot__email_event_status_change_event_id", "resource_type": "test", "alias": "unique_stg_hubspot__email_event_status_change_event_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__email_event_status_change"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.hubspot_source.stg_hubspot__email_event_status_change"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__email.yml/schema_test/unique_stg_hubspot__email_event_status_change_event_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom (\n\n select\n event_id\n\n from `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__email_event_status_change`\n where event_id is not null\n group by event_id\n having count(*) > 1\n\n) validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "event_id"}, "test.hubspot_source.not_null_stg_hubspot__email_event_status_change_event_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "event_id", "model": "{{ ref('stg_hubspot__email_event_status_change') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "schema_test", "not_null_stg_hubspot__email_event_status_change_event_id"], "unique_id": "test.hubspot_source.not_null_stg_hubspot__email_event_status_change_event_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/not_null_stg_hubspot__email_event_status_change_event_id.sql", "original_file_path": "models/stg_hubspot__email.yml", "name": "not_null_stg_hubspot__email_event_status_change_event_id", "resource_type": "test", "alias": "not_null_stg_hubspot__email_event_status_change_event_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__email_event_status_change"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.hubspot_source.stg_hubspot__email_event_status_change"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__email.yml/schema_test/not_null_stg_hubspot__email_event_status_change_event_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__email_event_status_change`\nwhere event_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "event_id"}, "test.hubspot_source.unique_stg_hubspot__email_event_event_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "unique", "kwargs": {"column_name": "event_id", "model": "{{ ref('stg_hubspot__email_event') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "schema_test", "unique_stg_hubspot__email_event_event_id"], "unique_id": "test.hubspot_source.unique_stg_hubspot__email_event_event_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/unique_stg_hubspot__email_event_event_id.sql", "original_file_path": "models/stg_hubspot__email.yml", "name": "unique_stg_hubspot__email_event_event_id", "resource_type": "test", "alias": "unique_stg_hubspot__email_event_event_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__email_event"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.hubspot_source.stg_hubspot__email_event"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__email.yml/schema_test/unique_stg_hubspot__email_event_event_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom (\n\n select\n event_id\n\n from `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__email_event`\n where event_id is not null\n group by event_id\n having count(*) > 1\n\n) validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "event_id"}, "test.hubspot_source.not_null_stg_hubspot__email_event_event_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "event_id", "model": "{{ ref('stg_hubspot__email_event') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "schema_test", "not_null_stg_hubspot__email_event_event_id"], "unique_id": "test.hubspot_source.not_null_stg_hubspot__email_event_event_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/not_null_stg_hubspot__email_event_event_id.sql", "original_file_path": "models/stg_hubspot__email.yml", "name": "not_null_stg_hubspot__email_event_event_id", "resource_type": "test", "alias": "not_null_stg_hubspot__email_event_event_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__email_event"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.hubspot_source.stg_hubspot__email_event"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__email.yml/schema_test/not_null_stg_hubspot__email_event_event_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__email_event`\nwhere event_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "event_id"}, "test.hubspot_source.unique_stg_hubspot__email_campaign_email_campaign_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "unique", "kwargs": {"column_name": "email_campaign_id", "model": "{{ ref('stg_hubspot__email_campaign') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "schema_test", "unique_stg_hubspot__email_campaign_email_campaign_id"], "unique_id": "test.hubspot_source.unique_stg_hubspot__email_campaign_email_campaign_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/unique_stg_hubspot__email_campaign_email_campaign_id.sql", "original_file_path": "models/stg_hubspot__email.yml", "name": "unique_stg_hubspot__email_campaign_email_campaign_id", "resource_type": "test", "alias": "unique_stg_hubspot__email_campaign_email_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__email_campaign"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.hubspot_source.stg_hubspot__email_campaign"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__email.yml/schema_test/unique_stg_hubspot__email_campaign_email_campaign_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom (\n\n select\n email_campaign_id\n\n from `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__email_campaign`\n where email_campaign_id is not null\n group by email_campaign_id\n having count(*) > 1\n\n) validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "email_campaign_id"}, "test.hubspot_source.not_null_stg_hubspot__email_campaign_email_campaign_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "email_campaign_id", "model": "{{ ref('stg_hubspot__email_campaign') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "schema_test", "not_null_stg_hubspot__email_campaign_email_campaign_id"], "unique_id": "test.hubspot_source.not_null_stg_hubspot__email_campaign_email_campaign_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/not_null_stg_hubspot__email_campaign_email_campaign_id.sql", "original_file_path": "models/stg_hubspot__email.yml", "name": "not_null_stg_hubspot__email_campaign_email_campaign_id", "resource_type": "test", "alias": "not_null_stg_hubspot__email_campaign_email_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__email_campaign"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.hubspot_source.stg_hubspot__email_campaign"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__email.yml/schema_test/not_null_stg_hubspot__email_campaign_email_campaign_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__email_campaign`\nwhere email_campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "email_campaign_id"}, "test.hubspot_source.not_null_stg_hubspot__engagement_call_engagement_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "engagement_id", "model": "{{ ref('stg_hubspot__engagement_call') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "schema_test", "not_null_stg_hubspot__engagement_call_engagement_id"], "unique_id": "test.hubspot_source.not_null_stg_hubspot__engagement_call_engagement_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/not_null_stg_hubspot__engagement_call_engagement_id.sql", "original_file_path": "models/stg_hubspot__engagement.yml", "name": "not_null_stg_hubspot__engagement_call_engagement_id", "resource_type": "test", "alias": "not_null_stg_hubspot__engagement_call_engagement_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__engagement_call"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.hubspot_source.stg_hubspot__engagement_call"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__engagement.yml/schema_test/not_null_stg_hubspot__engagement_call_engagement_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__engagement_call`\nwhere engagement_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "engagement_id"}, "test.hubspot_source.unique_stg_hubspot__engagement_call_engagement_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "unique", "kwargs": {"column_name": "engagement_id", "model": "{{ ref('stg_hubspot__engagement_call') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "schema_test", "unique_stg_hubspot__engagement_call_engagement_id"], "unique_id": "test.hubspot_source.unique_stg_hubspot__engagement_call_engagement_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/unique_stg_hubspot__engagement_call_engagement_id.sql", "original_file_path": "models/stg_hubspot__engagement.yml", "name": "unique_stg_hubspot__engagement_call_engagement_id", "resource_type": "test", "alias": "unique_stg_hubspot__engagement_call_engagement_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__engagement_call"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.hubspot_source.stg_hubspot__engagement_call"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__engagement.yml/schema_test/unique_stg_hubspot__engagement_call_engagement_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom (\n\n select\n engagement_id\n\n from `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__engagement_call`\n where engagement_id is not null\n group by engagement_id\n having count(*) > 1\n\n) validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "engagement_id"}, "test.hubspot_source.not_null_stg_hubspot__engagement_email_engagement_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "engagement_id", "model": "{{ ref('stg_hubspot__engagement_email') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "schema_test", "not_null_stg_hubspot__engagement_email_engagement_id"], "unique_id": "test.hubspot_source.not_null_stg_hubspot__engagement_email_engagement_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/not_null_stg_hubspot__engagement_email_engagement_id.sql", "original_file_path": "models/stg_hubspot__engagement.yml", "name": "not_null_stg_hubspot__engagement_email_engagement_id", "resource_type": "test", "alias": "not_null_stg_hubspot__engagement_email_engagement_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__engagement_email"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.hubspot_source.stg_hubspot__engagement_email"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__engagement.yml/schema_test/not_null_stg_hubspot__engagement_email_engagement_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__engagement_email`\nwhere engagement_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "engagement_id"}, "test.hubspot_source.unique_stg_hubspot__engagement_email_engagement_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "unique", "kwargs": {"column_name": "engagement_id", "model": "{{ ref('stg_hubspot__engagement_email') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "schema_test", "unique_stg_hubspot__engagement_email_engagement_id"], "unique_id": "test.hubspot_source.unique_stg_hubspot__engagement_email_engagement_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/unique_stg_hubspot__engagement_email_engagement_id.sql", "original_file_path": "models/stg_hubspot__engagement.yml", "name": "unique_stg_hubspot__engagement_email_engagement_id", "resource_type": "test", "alias": "unique_stg_hubspot__engagement_email_engagement_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__engagement_email"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.hubspot_source.stg_hubspot__engagement_email"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__engagement.yml/schema_test/unique_stg_hubspot__engagement_email_engagement_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom (\n\n select\n engagement_id\n\n from `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__engagement_email`\n where engagement_id is not null\n group by engagement_id\n having count(*) > 1\n\n) validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "engagement_id"}, "test.hubspot_source.not_null_stg_hubspot__engagement_meeting_engagement_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "engagement_id", "model": "{{ ref('stg_hubspot__engagement_meeting') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "schema_test", "not_null_stg_hubspot__engagement_meeting_engagement_id"], "unique_id": "test.hubspot_source.not_null_stg_hubspot__engagement_meeting_engagement_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/not_null_stg_hubspot__engagement_meeting_engagement_id.sql", "original_file_path": "models/stg_hubspot__engagement.yml", "name": "not_null_stg_hubspot__engagement_meeting_engagement_id", "resource_type": "test", "alias": "not_null_stg_hubspot__engagement_meeting_engagement_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__engagement_meeting"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.hubspot_source.stg_hubspot__engagement_meeting"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__engagement.yml/schema_test/not_null_stg_hubspot__engagement_meeting_engagement_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__engagement_meeting`\nwhere engagement_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "engagement_id"}, "test.hubspot_source.unique_stg_hubspot__engagement_meeting_engagement_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "unique", "kwargs": {"column_name": "engagement_id", "model": "{{ ref('stg_hubspot__engagement_meeting') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "schema_test", "unique_stg_hubspot__engagement_meeting_engagement_id"], "unique_id": "test.hubspot_source.unique_stg_hubspot__engagement_meeting_engagement_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/unique_stg_hubspot__engagement_meeting_engagement_id.sql", "original_file_path": "models/stg_hubspot__engagement.yml", "name": "unique_stg_hubspot__engagement_meeting_engagement_id", "resource_type": "test", "alias": "unique_stg_hubspot__engagement_meeting_engagement_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__engagement_meeting"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.hubspot_source.stg_hubspot__engagement_meeting"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__engagement.yml/schema_test/unique_stg_hubspot__engagement_meeting_engagement_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom (\n\n select\n engagement_id\n\n from `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__engagement_meeting`\n where engagement_id is not null\n group by engagement_id\n having count(*) > 1\n\n) validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "engagement_id"}, "test.hubspot_source.not_null_stg_hubspot__engagement_note_engagement_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "engagement_id", "model": "{{ ref('stg_hubspot__engagement_note') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "schema_test", "not_null_stg_hubspot__engagement_note_engagement_id"], "unique_id": "test.hubspot_source.not_null_stg_hubspot__engagement_note_engagement_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/not_null_stg_hubspot__engagement_note_engagement_id.sql", "original_file_path": "models/stg_hubspot__engagement.yml", "name": "not_null_stg_hubspot__engagement_note_engagement_id", "resource_type": "test", "alias": "not_null_stg_hubspot__engagement_note_engagement_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__engagement_note"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.hubspot_source.stg_hubspot__engagement_note"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__engagement.yml/schema_test/not_null_stg_hubspot__engagement_note_engagement_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__engagement_note`\nwhere engagement_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "engagement_id"}, "test.hubspot_source.unique_stg_hubspot__engagement_note_engagement_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "unique", "kwargs": {"column_name": "engagement_id", "model": "{{ ref('stg_hubspot__engagement_note') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "schema_test", "unique_stg_hubspot__engagement_note_engagement_id"], "unique_id": "test.hubspot_source.unique_stg_hubspot__engagement_note_engagement_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/unique_stg_hubspot__engagement_note_engagement_id.sql", "original_file_path": "models/stg_hubspot__engagement.yml", "name": "unique_stg_hubspot__engagement_note_engagement_id", "resource_type": "test", "alias": "unique_stg_hubspot__engagement_note_engagement_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__engagement_note"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.hubspot_source.stg_hubspot__engagement_note"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__engagement.yml/schema_test/unique_stg_hubspot__engagement_note_engagement_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom (\n\n select\n engagement_id\n\n from `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__engagement_note`\n where engagement_id is not null\n group by engagement_id\n having count(*) > 1\n\n) validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "engagement_id"}, "test.hubspot_source.not_null_stg_hubspot__engagement_task_engagement_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "engagement_id", "model": "{{ ref('stg_hubspot__engagement_task') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "schema_test", "not_null_stg_hubspot__engagement_task_engagement_id"], "unique_id": "test.hubspot_source.not_null_stg_hubspot__engagement_task_engagement_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/not_null_stg_hubspot__engagement_task_engagement_id.sql", "original_file_path": "models/stg_hubspot__engagement.yml", "name": "not_null_stg_hubspot__engagement_task_engagement_id", "resource_type": "test", "alias": "not_null_stg_hubspot__engagement_task_engagement_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__engagement_task"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.hubspot_source.stg_hubspot__engagement_task"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__engagement.yml/schema_test/not_null_stg_hubspot__engagement_task_engagement_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__engagement_task`\nwhere engagement_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "engagement_id"}, "test.hubspot_source.unique_stg_hubspot__engagement_task_engagement_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "unique", "kwargs": {"column_name": "engagement_id", "model": "{{ ref('stg_hubspot__engagement_task') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "schema_test", "unique_stg_hubspot__engagement_task_engagement_id"], "unique_id": "test.hubspot_source.unique_stg_hubspot__engagement_task_engagement_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/unique_stg_hubspot__engagement_task_engagement_id.sql", "original_file_path": "models/stg_hubspot__engagement.yml", "name": "unique_stg_hubspot__engagement_task_engagement_id", "resource_type": "test", "alias": "unique_stg_hubspot__engagement_task_engagement_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__engagement_task"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.hubspot_source.stg_hubspot__engagement_task"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__engagement.yml/schema_test/unique_stg_hubspot__engagement_task_engagement_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom (\n\n select\n engagement_id\n\n from `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__engagement_task`\n where engagement_id is not null\n group by engagement_id\n having count(*) > 1\n\n) validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "engagement_id"}, "test.hubspot_source.not_null_stg_hubspot__engagement_engagement_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "engagement_id", "model": "{{ ref('stg_hubspot__engagement') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "schema_test", "not_null_stg_hubspot__engagement_engagement_id"], "unique_id": "test.hubspot_source.not_null_stg_hubspot__engagement_engagement_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/not_null_stg_hubspot__engagement_engagement_id.sql", "original_file_path": "models/stg_hubspot__engagement.yml", "name": "not_null_stg_hubspot__engagement_engagement_id", "resource_type": "test", "alias": "not_null_stg_hubspot__engagement_engagement_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__engagement"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.hubspot_source.stg_hubspot__engagement"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__engagement.yml/schema_test/not_null_stg_hubspot__engagement_engagement_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__engagement`\nwhere engagement_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "engagement_id"}, "test.hubspot_source.unique_stg_hubspot__engagement_engagement_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "unique", "kwargs": {"column_name": "engagement_id", "model": "{{ ref('stg_hubspot__engagement') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "schema_test", "unique_stg_hubspot__engagement_engagement_id"], "unique_id": "test.hubspot_source.unique_stg_hubspot__engagement_engagement_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/unique_stg_hubspot__engagement_engagement_id.sql", "original_file_path": "models/stg_hubspot__engagement.yml", "name": "unique_stg_hubspot__engagement_engagement_id", "resource_type": "test", "alias": "unique_stg_hubspot__engagement_engagement_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__engagement"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.hubspot_source.stg_hubspot__engagement"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__engagement.yml/schema_test/unique_stg_hubspot__engagement_engagement_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom (\n\n select\n engagement_id\n\n from `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__engagement`\n where engagement_id is not null\n group by engagement_id\n having count(*) > 1\n\n) validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "engagement_id"}, "test.hubspot_source.unique_stg_hubspot__ticket_ticket_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "unique", "kwargs": {"column_name": "ticket_id", "model": "{{ ref('stg_hubspot__ticket') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "schema_test", "unique_stg_hubspot__ticket_ticket_id"], "unique_id": "test.hubspot_source.unique_stg_hubspot__ticket_ticket_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/unique_stg_hubspot__ticket_ticket_id.sql", "original_file_path": "models/stg_hubspot__ticket.yml", "name": "unique_stg_hubspot__ticket_ticket_id", "resource_type": "test", "alias": "unique_stg_hubspot__ticket_ticket_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__ticket"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.hubspot_source.stg_hubspot__ticket"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__ticket.yml/schema_test/unique_stg_hubspot__ticket_ticket_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom (\n\n select\n ticket_id\n\n from `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__ticket`\n where ticket_id is not null\n group by ticket_id\n having count(*) > 1\n\n) validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ticket_id"}, "test.hubspot_source.not_null_stg_hubspot__ticket_ticket_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "ticket_id", "model": "{{ ref('stg_hubspot__ticket') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "schema_test", "not_null_stg_hubspot__ticket_ticket_id"], "unique_id": "test.hubspot_source.not_null_stg_hubspot__ticket_ticket_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/not_null_stg_hubspot__ticket_ticket_id.sql", "original_file_path": "models/stg_hubspot__ticket.yml", "name": "not_null_stg_hubspot__ticket_ticket_id", "resource_type": "test", "alias": "not_null_stg_hubspot__ticket_ticket_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__ticket"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.hubspot_source.stg_hubspot__ticket"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__ticket.yml/schema_test/not_null_stg_hubspot__ticket_ticket_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__ticket`\nwhere ticket_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ticket_id"}, "test.hubspot_source.unique_stg_hubspot__company_company_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "unique", "kwargs": {"column_name": "company_id", "model": "{{ ref('stg_hubspot__company') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "schema_test", "unique_stg_hubspot__company_company_id"], "unique_id": "test.hubspot_source.unique_stg_hubspot__company_company_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/unique_stg_hubspot__company_company_id.sql", "original_file_path": "models/stg_hubspot__company.yml", "name": "unique_stg_hubspot__company_company_id", "resource_type": "test", "alias": "unique_stg_hubspot__company_company_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__company"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.hubspot_source.stg_hubspot__company"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__company.yml/schema_test/unique_stg_hubspot__company_company_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom (\n\n select\n company_id\n\n from `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__company`\n where company_id is not null\n group by company_id\n having count(*) > 1\n\n) validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "company_id"}, "test.hubspot_source.not_null_stg_hubspot__company_company_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "company_id", "model": "{{ ref('stg_hubspot__company') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source", "schema_test", "not_null_stg_hubspot__company_company_id"], "unique_id": "test.hubspot_source.not_null_stg_hubspot__company_company_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/not_null_stg_hubspot__company_company_id.sql", "original_file_path": "models/stg_hubspot__company.yml", "name": "not_null_stg_hubspot__company_company_id", "resource_type": "test", "alias": "not_null_stg_hubspot__company_company_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__company"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.hubspot_source.stg_hubspot__company"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__company.yml/schema_test/not_null_stg_hubspot__company_company_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests`.`stg_hubspot__company`\nwhere company_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "company_id"}}, "sources": {"source.hubspot_source.hubspot.calendar_event": {"fqn": ["hubspot_source", "hubspot", "calendar_event"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.calendar_event", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "calendar_event", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "calendar_event", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents a calendar event.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "avatar_url": {"name": "avatar_url", "description": "URL of image associated with social media event.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_guid": {"name": "campaign_guid", "description": "Value of campaign GUID associated with Task.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "category": {"name": "category", "description": "Type of event. If the event type is PUBLISHING_TASK, it is one of BLOG_POST, EMAIL, LANDING_PAGE, CUSTOM.\nIf event type is SOCIAL, it is one of twitter, facebook, linkedin, googlepluspages.\nIf event type is CONTENT, it is one of email, recurring-email, blog-post, landing-page, legacy-page, site-page.\n", "meta": {}, "data_type": null, "quote": null, "tags": []}, "category_id": {"name": "category_id", "description": "For event type of PUBLISHING_TASK, a numeric value corresponding to the type of task; one of 3 (BLOG_POST), 2 (EMAIL), 1 (LANDING_PAGE), 0 (CUSTOM).\nFor event type of SOCIAL, this is 0.\nIf event type is CONTENT, it is one of 2 (email, recurring-email), 3 (blog-post), 1 (landing-page), 5 (legacy-page), 4 (site-page).\n", "meta": {}, "data_type": null, "quote": null, "tags": []}, "content_group_id": {"name": "content_group_id", "description": "The ID of the content group (aka blog) that the associated Blog Post belongs to, if any.\nOtherwise null. Only populated for single task GETs and for Blog Post Tasks.\n", "meta": {}, "data_type": null, "quote": null, "tags": []}, "content_id": {"name": "content_id", "description": "ID value of the COS content object associated with the event, null for social or if nothing associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_by": {"name": "created_by", "description": "HubSpot ID of the user that the event was created by.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of Event.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "event_date": {"name": "event_date", "description": "If task, When the task is set to be due, otherwise when the event is/ was scheduled for; in milliseconds since the epoch.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "event_type": {"name": "event_type", "description": "Type of calendar event; for tasks this is PUBLISHING_TASK, for COS Items, this is CONTENT, for social media events, this is SOCIAL", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The unique ID of the task.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_recurring": {"name": "is_recurring", "description": "Whether the event is recurring.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of Event.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "owner_id": {"name": "owner_id", "description": "TASK - HubSpot ID of the user that the task is assigned to.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "portal_id": {"name": "portal_id", "description": "The hub ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "preview_key": {"name": "preview_key", "description": "Preview key of content object; used for showing previews of unpublished items.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "social_display_name": {"name": "social_display_name", "description": "Social media full name associate with event.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "social_username": {"name": "social_username", "description": "Social media user name associated with event.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "state": {"name": "state", "description": "For type publishing task, value of TODO or DONE, for others, a value of SCHEDULED, PUBLISHED, PUBLISHED_OR_SCHEDULED.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "topic_ids": {"name": "topic_ids", "description": "The list of IDs of topics associated with the associated Blog Post, if any. Otherwise null. Only populated for single task GETs and for Blog Post Tasks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "url": {"name": "url", "description": "Public URL of content item.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`calendar_event`"}, "source.hubspot_source.hubspot.company": {"fqn": ["hubspot_source", "hubspot", "company"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.company", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "company", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "company", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents a company in Hubspot.", "columns": {"id": {"name": "id", "description": "The ID of the company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "portal_id": {"name": "portal_id", "description": "The hub ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_deleted": {"name": "is_deleted", "description": "Whether the record has been deleted in Hubspot.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`company`"}, "source.hubspot_source.hubspot.company_property_history": {"fqn": ["hubspot_source", "hubspot", "company_property_history"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.company_property_history", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "company_property_history", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "company_property_history", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents a change to company record in Hubspot.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "company_id": {"name": "company_id", "description": "The ID of the related company record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the field being changed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "source": {"name": "source", "description": "The source (reason) of the change.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "source_id": {"name": "source_id", "description": "The ID of the object that caused the change, if applicable.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "timestamp": {"name": "timestamp", "description": "The timestamp the changed occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "value": {"name": "value", "description": "The new value of the field.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`company_property_history`"}, "source.hubspot_source.hubspot.contact": {"fqn": ["hubspot_source", "hubspot", "contact"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.contact", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "contact", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "contact", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 84, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents a contact in Hubspot.", "columns": {"id": {"name": "id", "description": "The ID of the contact.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "property_email": {"name": "property_email", "description": "The email address of the contact.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`contact`"}, "source.hubspot_source.hubspot.contact_form_submission": {"fqn": ["hubspot_source", "hubspot", "contact_form_submission"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.contact_form_submission", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "contact_form_submission", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "contact_form_submission", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "TBD", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "contact_id": {"name": "contact_id", "description": "The ID of the related contact.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "conversion_id": {"name": "conversion_id", "description": "A Unique ID for the specific form conversion.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "form_id": {"name": "form_id", "description": "The GUID of the form that the submission belongs to.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "page_url": {"name": "page_url", "description": "The URL that the form was submitted on, if applicable.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "portal_id": {"name": "portal_id", "description": "The hub ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "timestamp": {"name": "timestamp", "description": "A Unix timestamp in milliseconds of the time the submission occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "title": {"name": "title", "description": "The title of the page that the form was submitted on. This will default to the name of the form if no title is provided.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`contact_form_submission`"}, "source.hubspot_source.hubspot.contact_list": {"fqn": ["hubspot_source", "hubspot", "contact_list"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.contact_list", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "contact_list", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "contact_list", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents a contact list in Hubspot.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Timestamp of when Fivetran marked a record as deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran marked a record as deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "A timestamp of the time the list was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deleteable": {"name": "deleteable", "description": "If this is false, this is a system list and cannot be deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "dynamic": {"name": "dynamic", "description": "Whether the contact list is dynamic.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the contact list.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "metadata_error": {"name": "metadata_error", "description": "Any errors that happened the last time the list was processed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "metadata_last_processing_state_change_at": {"name": "metadata_last_processing_state_change_at", "description": "A timestamp of the last time that the processing state changed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "metadata_last_size_change_at": {"name": "metadata_last_size_change_at", "description": "A timestamp of the last time that the size of the list changed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "metadata_processing": {"name": "metadata_processing", "description": "One of DONE, REFRESHING, INITIALIZING, or PROCESSING.\nDONE indicates the list has finished processing, any other value indicates that list membership is being evaluated.\n", "meta": {}, "data_type": null, "quote": null, "tags": []}, "metadata_size": {"name": "metadata_size", "description": "The approximate number of contacts in the list.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the contact list.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "portal_id": {"name": "portal_id", "description": "The hub ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "A timestamp of the time that the list was last modified.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`contact_list`"}, "source.hubspot_source.hubspot.contact_list_member": {"fqn": ["hubspot_source", "hubspot", "contact_list_member"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.contact_list_member", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "contact_list_member", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "contact_list_member", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents a 'link' between a contact and a contact list.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Timestamp of when Fivetran marked a record as deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "added_at": {"name": "added_at", "description": "The timestamp a contact was added to a list.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "contact_id": {"name": "contact_id", "description": "The ID of the related contact.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "contact_list_id": {"name": "contact_list_id", "description": "The ID of the related contact list.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`contact_list_member`"}, "source.hubspot_source.hubspot.contact_property_history": {"fqn": ["hubspot_source", "hubspot", "contact_property_history"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.contact_property_history", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "contact_property_history", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "contact_property_history", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 84, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents a change to contact record in Hubspot.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "contact_id": {"name": "contact_id", "description": "The ID of the related contact record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the field being changed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "source": {"name": "source", "description": "The source (reason) of the change.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "source_id": {"name": "source_id", "description": "The ID of the object that caused the change, if applicable.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "timestamp": {"name": "timestamp", "description": "The timestamp the changed occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "value": {"name": "value", "description": "The new value of the field.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`contact_property_history`"}, "source.hubspot_source.hubspot.deal": {"fqn": ["hubspot_source", "hubspot", "deal"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.deal", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "deal", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "deal", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents a deal in Hubspot.", "columns": {"id": {"name": "id", "description": "The ID of the deal.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_deleted": {"name": "is_deleted", "description": "Whether the record was deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "portal_id": {"name": "portal_id", "description": "The hub ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deal_pipeline_id": {"name": "deal_pipeline_id", "description": "The ID of the deal's pipeline.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deal_pipeline_stage_id": {"name": "deal_pipeline_stage_id", "description": "The ID of the deal's pipeline stage.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "owner_id": {"name": "owner_id", "description": "The ID of the deal's owner.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`deal`"}, "source.hubspot_source.hubspot.deal_stage": {"fqn": ["hubspot_source", "hubspot", "deal_stage"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.deal_stage", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "deal_stage", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "deal_stage", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents a deal stage.", "columns": {"_fivetran_active": {"name": "_fivetran_active", "description": "Boolean indicating whether the deal stage is active.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "The Fivetran calculated exist time of the deal stage.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "The date the deal stage was entered.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "date_entered": {"name": "date_entered", "description": "The timestamp the deal stage was entered.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deal_id": {"name": "deal_id", "description": "Reference to the deal.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "source": {"name": "source", "description": "The relevant source of the deal stage.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "source_id": {"name": "source_id", "description": "Reference to the source.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "value": {"name": "value", "description": "The value of the deal stage. Typically the name of the stage.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`deal_stage`"}, "source.hubspot_source.hubspot.deal_company": {"fqn": ["hubspot_source", "hubspot", "deal_company"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.deal_company", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "deal_company", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "deal_company", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents a 'link' between a deal and company.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "company_id": {"name": "company_id", "description": "The ID of the company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deal_id": {"name": "deal_id", "description": "The ID of the deal.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`deal_company`"}, "source.hubspot_source.hubspot.deal_contact": {"fqn": ["hubspot_source", "hubspot", "deal_contact"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.deal_contact", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "deal_contact", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "deal_contact", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents a 'link' between a deal and a contact.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "contact_id": {"name": "contact_id", "description": "The ID of the contact.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deal_id": {"name": "deal_id", "description": "The ID of the deal.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`deal_contact`"}, "source.hubspot_source.hubspot.deal_pipeline": {"fqn": ["hubspot_source", "hubspot", "deal_pipeline"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.deal_pipeline", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "deal_pipeline", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "deal_pipeline", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents a pipeline in Hubspot.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Timestamp of when Fivetran marked a record as deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "active": {"name": "active", "description": "Whether the stage is currently in use.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "display_order": {"name": "display_order", "description": "Used to determine the order in which the pipelines appear when viewed in HubSpot", "meta": {}, "data_type": null, "quote": null, "tags": []}, "label": {"name": "label", "description": "The human-readable label for the pipeline. The label is used when showing the pipeline in HubSpot.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "pipeline_id": {"name": "pipeline_id", "description": "The ID of the pipeline.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`deal_pipeline`"}, "source.hubspot_source.hubspot.deal_pipeline_stage": {"fqn": ["hubspot_source", "hubspot", "deal_pipeline_stage"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.deal_pipeline_stage", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "deal_pipeline_stage", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "deal_pipeline_stage", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents a pipeline stage in Hubspot.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Timestamp of when Fivetran marked a record as deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "active": {"name": "active", "description": "Whether the pipeline stage is currently in use.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "closed_won": {"name": "closed_won", "description": "Whether the stage represents a Closed Won deal.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "display_order": {"name": "display_order", "description": "Used to determine the order in which the stages appear when viewed in HubSpot.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "label": {"name": "label", "description": "The human-readable label for the stage. The label is used when showing the stage in HubSpot.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "pipeline_id": {"name": "pipeline_id", "description": "The ID of the related pipeline.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "probability": {"name": "probability", "description": "The probability that the deal will close. Used for the deal forecast.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "stage_id": {"name": "stage_id", "description": "The ID of the pipeline stage.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`deal_pipeline_stage`"}, "source.hubspot_source.hubspot.deal_property_history": {"fqn": ["hubspot_source", "hubspot", "deal_property_history"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.deal_property_history", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "deal_property_history", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "deal_property_history", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents a change to deal record in Hubspot.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deal_id": {"name": "deal_id", "description": "The ID of the related deal record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the field being changed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "source": {"name": "source", "description": "The source (reason) of the change.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "source_id": {"name": "source_id", "description": "The ID of the object that caused the change, if applicable.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "timestamp": {"name": "timestamp", "description": "The timestamp the changed occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "value": {"name": "value", "description": "The new value of the field.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`deal_property_history`"}, "source.hubspot_source.hubspot.email_campaign": {"fqn": ["hubspot_source", "hubspot", "email_campaign"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.email_campaign", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "email_campaign", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "email_campaign", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents an email campaign in Hubspot.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "app_id": {"name": "app_id", "description": "The app ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "app_name": {"name": "app_name", "description": "The app name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "content_id": {"name": "content_id", "description": "The ID of the content.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the email campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the email campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "num_included": {"name": "num_included", "description": "The number of messages included as part of the email campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "num_queued": {"name": "num_queued", "description": "The number of messages queued as part of the email campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sub_type": {"name": "sub_type", "description": "The email campaign sub-type.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "subject": {"name": "subject", "description": "The subject of the email campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "type": {"name": "type", "description": "The email campaign type.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`email_campaign`"}, "source.hubspot_source.hubspot.email_event": {"fqn": ["hubspot_source", "hubspot", "email_event"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.email_event", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "email_event", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "email_event", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 84, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents an email event in Hubspot.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "app_id": {"name": "app_id", "description": "The ID of the app that sent the email.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "caused_by_created": {"name": "caused_by_created", "description": "The timestamp of the event that caused this event.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "caused_by_id": {"name": "caused_by_id", "description": "The event ID which uniquely identifies the event which directly caused this event. If not applicable, this property is omitted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created": {"name": "created", "description": "The created timestamp of the event.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "email_campaign_id": {"name": "email_campaign_id", "description": "The ID of the related email campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "filtered_event": {"name": "filtered_event", "description": "A boolean representing whether the event has been filtered out of reporting based on customer reports settings or not.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the event.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "obsoleted_by_created": {"name": "obsoleted_by_created", "description": "The timestamp of the event that made the current event obsolete.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "obsoleted_by_id": {"name": "obsoleted_by_id", "description": "The event ID which uniquely identifies the follow-on event which makes this current event obsolete. If not applicable, this property is omitted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "portal_id": {"name": "portal_id", "description": "The hub ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "recipient": {"name": "recipient", "description": "The email address of the contact related to the event.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sent_by_created": {"name": "sent_by_created", "description": "The timestamp of the SENT event related to this event.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sent_by_id": {"name": "sent_by_id", "description": "The event ID which uniquely identifies the email message's SENT event. If not applicable, this property is omitted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "type": {"name": "type", "description": "The type of event.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`email_event`"}, "source.hubspot_source.hubspot.email_event_bounce": {"fqn": ["hubspot_source", "hubspot", "email_event_bounce"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.email_event_bounce", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "email_event_bounce", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "email_event_bounce", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents a BOUNCE email event.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "category": {"name": "category", "description": "The best-guess of the type of bounce encountered.\nIf an appropriate category couldn't be determined, this property is omitted. See below for the possible values.\nNote that this is a derived value, and may be modified at any time to improve the accuracy of classification.\n", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the event.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "response": {"name": "response", "description": "The full response from the recipient's email server.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "The status code returned from the recipient's email server.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`email_event_bounce`"}, "source.hubspot_source.hubspot.email_event_click": {"fqn": ["hubspot_source", "hubspot", "email_event_click"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.email_event_click", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "email_event_click", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "email_event_click", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents a CLICK email event.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "browser": {"name": "browser", "description": "A JSON object representing the browser which serviced the event. Its comprised of the properties: 'name', 'family', 'producer', 'producer_url', 'type', 'url', 'version'.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the event.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ip_address": {"name": "ip_address", "description": "The contact's IP address when the event occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "location": {"name": "location", "description": "A JSON object representing the location where the event occurred. It's comprised of the properties: 'city', 'state', 'country'.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "referer": {"name": "referer", "description": "The URL of the webpage that linked to the URL clicked. Whether this is provided, and what its value is, is determined by the recipient's email client.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "url": {"name": "url", "description": "The URL within the message that the recipient clicked.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "user_agent": {"name": "user_agent", "description": "The user agent responsible for the event, e.g. \u201cMozilla/5.0 (Macintosh; Intel Mac OS X 10_8_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.95 Safari/537.36\u201d", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`email_event_click`"}, "source.hubspot_source.hubspot.email_event_deferred": {"fqn": ["hubspot_source", "hubspot", "email_event_deferred"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.email_event_deferred", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "email_event_deferred", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "email_event_deferred", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents a DEFERRED email event.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "attempt": {"name": "attempt", "description": "The delivery attempt number.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the event.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "response": {"name": "response", "description": "The full response from the recipient's email server.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`email_event_deferred`"}, "source.hubspot_source.hubspot.email_event_delivered": {"fqn": ["hubspot_source", "hubspot", "email_event_delivered"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.email_event_delivered", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "email_event_delivered", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "email_event_delivered", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents a DELIVERED email event.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the event.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "response": {"name": "response", "description": "The full response from the recipient's email server.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "smtp_id": {"name": "smtp_id", "description": "An ID attached to the message by HubSpot.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`email_event_delivered`"}, "source.hubspot_source.hubspot.email_event_dropped": {"fqn": ["hubspot_source", "hubspot", "email_event_dropped"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.email_event_dropped", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "email_event_dropped", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "email_event_dropped", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents a DROPPED email event.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bcc": {"name": "bcc", "description": "The 'bcc' field of the email message.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cc": {"name": "cc", "description": "The 'cc' field of the email message.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "drop_message": {"name": "drop_message", "description": "The raw message describing why the email message was dropped. This will usually provide additional details beyond 'dropReason'.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "drop_reason": {"name": "drop_reason", "description": "The reason why the email message was dropped. See below for the possible values.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "from": {"name": "from", "description": "The 'from' field of the email message.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the event.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "reply_to": {"name": "reply_to", "description": "The 'reply-to' field of the email message.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "subject": {"name": "subject", "description": "The subject line of the email message.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`email_event_dropped`"}, "source.hubspot_source.hubspot.email_event_forward": {"fqn": ["hubspot_source", "hubspot", "email_event_forward"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.email_event_forward", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "email_event_forward", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "email_event_forward", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents a FORWARD email event.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "browser": {"name": "browser", "description": "A JSON object representing the browser which serviced the event. Its comprised of the properties: 'name', 'family', 'producer', 'producer_url', 'type', 'url', 'version'.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the event.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ip_address": {"name": "ip_address", "description": "The contact's IP address when the event occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "location": {"name": "location", "description": "A JSON object representing the location where the event occurred. It's comprised of the properties: 'city', 'state', 'country'.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "user_agent": {"name": "user_agent", "description": "The user agent responsible for the event, e.g. \u201cMozilla/5.0 (Macintosh; Intel Mac OS X 10_8_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.95 Safari/537.36\u201d", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`email_event_forward`"}, "source.hubspot_source.hubspot.email_event_open": {"fqn": ["hubspot_source", "hubspot", "email_event_open"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.email_event_open", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "email_event_open", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "email_event_open", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents a OPEN email event.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "browser": {"name": "browser", "description": "A JSON object representing the browser which serviced the event. Its comprised of the properties: 'name', 'family', 'producer', 'producer_url', 'type', 'url', 'version'.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "duration": {"name": "duration", "description": "If provided and nonzero, the approximate number of milliseconds the user had opened the email.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the event.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ip_address": {"name": "ip_address", "description": "The contact's IP address when the event occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "location": {"name": "location", "description": "A JSON object representing the location where the event occurred. It's comprised of the properties: 'city', 'state', 'country'.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "user_agent": {"name": "user_agent", "description": "The user agent responsible for the event, e.g. \u201cMozilla/5.0 (Macintosh; Intel Mac OS X 10_8_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.95 Safari/537.36\u201d", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`email_event_open`"}, "source.hubspot_source.hubspot.email_event_print": {"fqn": ["hubspot_source", "hubspot", "email_event_print"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.email_event_print", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "email_event_print", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "email_event_print", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents a PRINT email event.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "browser": {"name": "browser", "description": "A JSON object representing the browser which serviced the event. Its comprised of the properties: 'name', 'family', 'producer', 'producer_url', 'type', 'url', 'version'.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the event.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ip_address": {"name": "ip_address", "description": "The contact's IP address when the event occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "location": {"name": "location", "description": "A JSON object representing the location where the event occurred. It's comprised of the properties: 'city', 'state', 'country'.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "user_agent": {"name": "user_agent", "description": "The user agent responsible for the event, e.g. \u201cMozilla/5.0 (Macintosh; Intel Mac OS X 10_8_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.95 Safari/537.36\u201d", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`email_event_print`"}, "source.hubspot_source.hubspot.email_event_sent": {"fqn": ["hubspot_source", "hubspot", "email_event_sent"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.email_event_sent", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "email_event_sent", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "email_event_sent", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents a SENT email event.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bcc": {"name": "bcc", "description": "The 'cc' field of the email message.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cc": {"name": "cc", "description": "The 'bcc' field of the email message.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "from": {"name": "from", "description": "The 'from' field of the email message.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the event.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "reply_to": {"name": "reply_to", "description": "The 'reply-to' field of the email message.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "subject": {"name": "subject", "description": "The subject line of the email message.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`email_event_sent`"}, "source.hubspot_source.hubspot.email_event_spam_report": {"fqn": ["hubspot_source", "hubspot", "email_event_spam_report"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.email_event_spam_report", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "email_event_spam_report", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "email_event_spam_report", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents a SPAM_REPORT email event.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the event.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ip_address": {"name": "ip_address", "description": "The contact's IP address when the event occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "user_agent": {"name": "user_agent", "description": "The user agent responsible for the event, e.g. \u201cMozilla/5.0 (Macintosh; Intel Mac OS X 10_8_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.95 Safari/537.36\u201d", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`email_event_spam_report`"}, "source.hubspot_source.hubspot.email_event_status_change": {"fqn": ["hubspot_source", "hubspot", "email_event_status_change"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.email_event_status_change", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "email_event_status_change", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "email_event_status_change", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents a STATUS_CHANGE email event in Hubspot.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bounced": {"name": "bounced", "description": "A HubSpot employee explicitly initiated the status change to block messages to the recipient.\n(Note this usage has been deprecated in favor of dropping messages with a 'dropReason' of BLOCKED_ADDRESS.)\n", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the event.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "portal_subscription_status": {"name": "portal_subscription_status", "description": "The recipient's portal subscription status.\nNote that if this is 'UNSUBSCRIBED', the property 'subscriptions' is not necessarily an empty array, nor are all\nsubscriptions contained in it necessarily going to have their statuses set to 'UNSUBSCRIBED'.)\n", "meta": {}, "data_type": null, "quote": null, "tags": []}, "requested_by": {"name": "requested_by", "description": "The email address of the person requesting the change on behalf of the recipient. If not applicable, this property is omitted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "source": {"name": "source", "description": "The source of the subscription change.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "subscriptions": {"name": "subscriptions", "description": "An array of JSON objects representing the status of subscriptions for the recipient.\nEach JSON subscription object is comprised of the properties: 'id', 'status'.\n", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`email_event_status_change`"}, "source.hubspot_source.hubspot.email_subscription": {"fqn": ["hubspot_source", "hubspot", "email_subscription"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.email_subscription", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "email_subscription", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "email_subscription", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents an email subscription in Hubspot.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "active": {"name": "active", "description": "Whether the subscription is active.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "The description of the subscription.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the email subscription.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the email subscription.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "portal_id": {"name": "portal_id", "description": "The hub ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`email_subscription`"}, "source.hubspot_source.hubspot.email_subscription_change": {"fqn": ["hubspot_source", "hubspot", "email_subscription_change"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.email_subscription_change", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "email_subscription_change", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "email_subscription_change", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents a change to an email subscription in Hubspot.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "caused_by_event_id": {"name": "caused_by_event_id", "description": "The ID of the event that caused the subscription change.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "change": {"name": "change", "description": "The change which occurred. This enumeration is specific to the 'changeType'; see below for the possible values.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "change_type": {"name": "change_type", "description": "The type of change which occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "email_subscription_id": {"name": "email_subscription_id", "description": "The ID of the related email subscription.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "portal_id": {"name": "portal_id", "description": "The hub ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "recipient": {"name": "recipient", "description": "The email address of the related contact.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "source": {"name": "source", "description": "The source of the subscription change.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "timestamp": {"name": "timestamp", "description": "The timestamp when this change occurred. If 'causedByEvent' is present, this will be absent.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`email_subscription_change`"}, "source.hubspot_source.hubspot.engagement": {"fqn": ["hubspot_source", "hubspot", "engagement"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.engagement", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "engagement", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "engagement", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents an engagement", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "active": {"name": "active", "description": "Whether the engagement is currently being shown in the UI.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "activity_type": {"name": "activity_type", "description": "The engagement's activity type.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "A timestamp representing when the engagement was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the engagement.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_updated": {"name": "last_updated", "description": "A timestamp in representing when the engagement was last updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "owner_id": {"name": "owner_id", "description": "The ID of the engagement's owner.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "portal_id": {"name": "portal_id", "description": "The hub ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "timestamp": {"name": "timestamp", "description": "A timestamp in representing the time that the engagement should appear in the timeline.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "type": {"name": "type", "description": "One of NOTE, EMAIL, TASK, MEETING, or CALL, the type of the engagement.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`engagement`"}, "source.hubspot_source.hubspot.engagement_call": {"fqn": ["hubspot_source", "hubspot", "engagement_call"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.engagement_call", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "engagement_call", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "engagement_call", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents a CALL engagement event.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "body": {"name": "body", "description": "The details or notes of the call", "meta": {}, "data_type": null, "quote": null, "tags": []}, "disposition": {"name": "disposition", "description": "The internal ID for the call outcome.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "duration_milliseconds": {"name": "duration_milliseconds", "description": "The length of the call in milliseconds", "meta": {}, "data_type": null, "quote": null, "tags": []}, "engagement_id": {"name": "engagement_id", "description": "The ID of the engagement.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "external_account_id": {"name": "external_account_id", "description": "For calls made in HubSpot, this will be the internal ID of the account used to make the call.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "external_id": {"name": "external_id", "description": "For calls made in HubSpot, this will be the internal ID of the call.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "from_number": {"name": "from_number", "description": "The phone number that was used as the from number.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "recording_url": {"name": "recording_url", "description": "The URL of the recording file .", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "Will be COMPLETED once the call is finished.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "to_number": {"name": "to_number", "description": "The phone number that was called.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`engagement_call`"}, "source.hubspot_source.hubspot.engagement_company": {"fqn": ["hubspot_source", "hubspot", "engagement_company"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.engagement_company", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "engagement_company", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "engagement_company", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents a 'link' between a company and an engagement.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "company_id": {"name": "company_id", "description": "The ID of the related company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "engagement_id": {"name": "engagement_id", "description": "The ID of the related engagement.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`engagement_company`"}, "source.hubspot_source.hubspot.engagement_contact": {"fqn": ["hubspot_source", "hubspot", "engagement_contact"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.engagement_contact", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "engagement_contact", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "engagement_contact", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents a 'link' between a contact and an engagement.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "contact_id": {"name": "contact_id", "description": "The ID of the related contact.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "engagement_id": {"name": "engagement_id", "description": "The ID of the related engagement.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`engagement_contact`"}, "source.hubspot_source.hubspot.engagement_deal": {"fqn": ["hubspot_source", "hubspot", "engagement_deal"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.engagement_deal", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "engagement_deal", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "engagement_deal", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents a 'link' between a deal and an engagement.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deal_id": {"name": "deal_id", "description": "The ID of the related contact.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "engagement_id": {"name": "engagement_id", "description": "The ID of the related engagement.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`engagement_deal`"}, "source.hubspot_source.hubspot.engagement_email": {"fqn": ["hubspot_source", "hubspot", "engagement_email"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.engagement_email", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "engagement_email", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "engagement_email", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents an EMAIL engagement event.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "attached_video_id": {"name": "attached_video_id", "description": "The ID of the video attached.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "attached_video_opened": {"name": "attached_video_opened", "description": "Whether the the attached video was opened.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "attached_video_watched": {"name": "attached_video_watched", "description": "Whether the the attached video was watched.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "email_send_event_id_created": {"name": "email_send_event_id_created", "description": "When the SENT event occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "email_send_event_id_id": {"name": "email_send_event_id_id", "description": "The ID of the related SENT email event.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "engagement_id": {"name": "engagement_id", "description": "The ID of the engagement.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "error_message": {"name": "error_message", "description": "The error message, if applicable.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "from_email": {"name": "from_email", "description": "The email address of the sender.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "from_first_name": {"name": "from_first_name", "description": "The first name of the sender.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "from_last_name": {"name": "from_last_name", "description": "The last name of the sender.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "html": {"name": "html", "description": "The body of the HTML email.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "media_processing_status": {"name": "media_processing_status", "description": "The processing status of the media content in the email.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "message_id": {"name": "message_id", "description": "The ID of the message.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sent_via": {"name": "sent_via", "description": "How the email was sent.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "The status of the engagement.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "subject": {"name": "subject", "description": "The subject of the email.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "text": {"name": "text", "description": "The body of the text-only email.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "thread_id": {"name": "thread_id", "description": "The ID of the email thread.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`engagement_email`"}, "source.hubspot_source.hubspot.engagement_email_cc": {"fqn": ["hubspot_source", "hubspot", "engagement_email_cc"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.engagement_email_cc", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "engagement_email_cc", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "engagement_email_cc", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents a CC'd email address as part of an EMAIL engagement.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "email": {"name": "email", "description": "The email address of the recipient.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "engagement_id": {"name": "engagement_id", "description": "The ID of the related engagement.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "first_name": {"name": "first_name", "description": "The first name of the recipient.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_name": {"name": "last_name", "description": "The last name of the recipient.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`engagement_email_cc`"}, "source.hubspot_source.hubspot.engagement_email_to": {"fqn": ["hubspot_source", "hubspot", "engagement_email_to"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.engagement_email_to", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "engagement_email_to", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "engagement_email_to", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents a TO email address as part of an EMAIL engagement.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "email": {"name": "email", "description": "The email address of the recipient.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "engagement_id": {"name": "engagement_id", "description": "The ID of the related engagement.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "first_name": {"name": "first_name", "description": "The first name of the recipient.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_name": {"name": "last_name", "description": "The last name of the recipient.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`engagement_email_to`"}, "source.hubspot_source.hubspot.engagement_meeting": {"fqn": ["hubspot_source", "hubspot", "engagement_meeting"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.engagement_meeting", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "engagement_meeting", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "engagement_meeting", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents a MEETING engagement event.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "body": {"name": "body", "description": "The details or body of the meeting.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "end_time": {"name": "end_time", "description": "A timestamp representing the end time of the meeting", "meta": {}, "data_type": null, "quote": null, "tags": []}, "engagement_id": {"name": "engagement_id", "description": "The ID of the engagement.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "external_url": {"name": "external_url", "description": "The external URL of the engagement.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "meeting_outcome": {"name": "meeting_outcome", "description": "The meeting outcome.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "pre_meeting_prospect_reminders": {"name": "pre_meeting_prospect_reminders", "description": "TBD", "meta": {}, "data_type": null, "quote": null, "tags": []}, "source": {"name": "source", "description": "The source of the meeting.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "source_id": {"name": "source_id", "description": "The internal ID of the meeting source.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "start_time": {"name": "start_time", "description": "A timestamp representing the start time of the meeting", "meta": {}, "data_type": null, "quote": null, "tags": []}, "title": {"name": "title", "description": "The title or subject of the meeting", "meta": {}, "data_type": null, "quote": null, "tags": []}, "web_conference_meeting_id": {"name": "web_conference_meeting_id", "description": "The ID of the web conference meeting.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`engagement_meeting`"}, "source.hubspot_source.hubspot.engagement_note": {"fqn": ["hubspot_source", "hubspot", "engagement_note"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.engagement_note", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "engagement_note", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "engagement_note", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents a NOTE engagement event.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "body": {"name": "body", "description": "The body of the note. The body has a limit of 65536 characters.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "engagement_id": {"name": "engagement_id", "description": "The ID of the engagement.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`engagement_note`"}, "source.hubspot_source.hubspot.engagement_task": {"fqn": ["hubspot_source", "hubspot", "engagement_task"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.engagement_task", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "engagement_task", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "engagement_task", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents a TASK engagement event.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "body": {"name": "body", "description": "The body or details of the task.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "completion_date": {"name": "completion_date", "description": "The timestamp the task was completed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "engagement_id": {"name": "engagement_id", "description": "The ID of the engagement.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "for_object_type": {"name": "for_object_type", "description": "One of CONTACT or COMPANY, what object type the task is for.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_all_day": {"name": "is_all_day", "description": "Whether it is an all day task.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "priority": {"name": "priority", "description": "The priority of the task.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "probability_to_complete": {"name": "probability_to_complete", "description": "The probability that the task will be completed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "The status of the task.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "subject": {"name": "subject", "description": "The subject or title of the task", "meta": {}, "data_type": null, "quote": null, "tags": []}, "task_type": {"name": "task_type", "description": "The type of task", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`engagement_task`"}, "source.hubspot_source.hubspot.form": {"fqn": ["hubspot_source", "hubspot", "form"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.form", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "form", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "form", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents a Hubspot form.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Timestamp of when Fivetran marked a record as deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "A timestamp for when the form was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "css_class": {"name": "css_class", "description": "The CSS classes assigned to the form.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "follow_up_id": {"name": "follow_up_id", "description": "This field is no longer used.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "guid": {"name": "guid", "description": "The internal ID of the form", "meta": {}, "data_type": null, "quote": null, "tags": []}, "lead_nurturing_campaign_id": {"name": "lead_nurturing_campaign_id", "description": "TBD", "meta": {}, "data_type": null, "quote": null, "tags": []}, "method": {"name": "method", "description": "This field is no longer used.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the form", "meta": {}, "data_type": null, "quote": null, "tags": []}, "notify_recipients": {"name": "notify_recipients", "description": "A comma-separated list of user IDs that should receive submission notifications.\nEmail addresses will be returned for individuals who aren't users.\n", "meta": {}, "data_type": null, "quote": null, "tags": []}, "portal_id": {"name": "portal_id", "description": "The hub ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "redirect": {"name": "redirect", "description": "The URL that the visitor will be redirected to after filling out the form.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "submit_text": {"name": "submit_text", "description": "The text used for the submit button.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "A timestamp for when the form was last updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`form`"}, "source.hubspot_source.hubspot.owner": {"fqn": ["hubspot_source", "hubspot", "owner"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.owner", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "owner", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "owner", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents an owner/user in Hubspot.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "A timestamp for when the owner was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "email": {"name": "email", "description": "The email address of the owner.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "first_name": {"name": "first_name", "description": "The first name of the owner.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_name": {"name": "last_name", "description": "The last name of the owner.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "owner_id": {"name": "owner_id", "description": "The ID of the owner.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "portal_id": {"name": "portal_id", "description": "The hub ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "type": {"name": "type", "description": "The type of owner.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "A timestamp for when the owner was last updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`owner`"}, "source.hubspot_source.hubspot.ticket_company": {"fqn": ["hubspot_source", "hubspot", "ticket_company"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.ticket_company", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "ticket_company", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "ticket_company", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents a 'link' between a ticket and company.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ticket_id": {"name": "ticket_id", "description": "The ID of the related ticket.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "company_id": {"name": "company_id", "description": "The ID of the related company.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`ticket_company`"}, "source.hubspot_source.hubspot.ticket_contact": {"fqn": ["hubspot_source", "hubspot", "ticket_contact"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.ticket_contact", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "ticket_contact", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "ticket_contact", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents a 'link' between a ticket and a contact.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ticket_id": {"name": "ticket_id", "description": "The ID of the related ticket.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "contact_id": {"name": "contact_id", "description": "The ID of the related contact.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`ticket_contact`"}, "source.hubspot_source.hubspot.ticket_deal": {"fqn": ["hubspot_source", "hubspot", "ticket_deal"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.ticket_deal", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "ticket_deal", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "ticket_deal", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents a 'link' between a ticket and a deal.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ticket_id": {"name": "ticket_id", "description": "The ID of the related ticket.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deal_id": {"name": "deal_id", "description": "The ID of the related deal.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`ticket_deal`"}, "source.hubspot_source.hubspot.ticket_engagement": {"fqn": ["hubspot_source", "hubspot", "ticket_engagement"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.ticket_engagement", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "ticket_engagement", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "ticket_engagement", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents a 'link' between a ticket and an engagement.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ticket_id": {"name": "ticket_id", "description": "The ID of the related ticket.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "engagement_id": {"name": "engagement_id", "description": "The ID of the related deal.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`ticket_engagement`"}, "source.hubspot_source.hubspot.ticket_pipeline_stage": {"fqn": ["hubspot_source", "hubspot", "ticket_pipeline_stage"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.ticket_pipeline_stage", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "ticket_pipeline_stage", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "ticket_pipeline_stage", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents a ticket pipeline stage.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Timestamp of when Fivetran marked a record as deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "active": {"name": "active", "description": "Boolean indicating whether the pipeline stage is active.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "display_order": {"name": "display_order", "description": "Used to determine the order in which the stages appear when viewed in HubSpot.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_closed": {"name": "is_closed", "description": "Boolean indicating if the pipeline stage is closed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "label": {"name": "label", "description": "The human-readable label for the stage. The label is used when showing the stage in HubSpot.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "pipeline_id": {"name": "pipeline_id", "description": "The ID of the pipeline.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "stage_id": {"name": "stage_id", "description": "The ID of the pipeline stage.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ticket_state": {"name": "ticket_state", "description": "State of the ticket.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`ticket_pipeline_stage`"}, "source.hubspot_source.hubspot.ticket_pipeline": {"fqn": ["hubspot_source", "hubspot", "ticket_pipeline"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.ticket_pipeline", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "ticket_pipeline", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "ticket_pipeline", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents a ticket pipeline.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Timestamp of when Fivetran marked a record as deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "active": {"name": "active", "description": "Boolean indicating whether the pipeline is active.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "display_order": {"name": "display_order", "description": "Used to determine the order in which the stages appear when viewed in HubSpot.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "label": {"name": "label", "description": "The human-readable label for the stage. The label is used when showing the stage in HubSpot.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "object_type_id": {"name": "object_type_id", "description": "Reference to the object type.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "pipeline_id": {"name": "pipeline_id", "description": "Reference to the pipeline.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`ticket_pipeline`"}, "source.hubspot_source.hubspot.ticket_property_history": {"fqn": ["hubspot_source", "hubspot", "ticket_property_history"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.ticket_property_history", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "ticket_property_history", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "ticket_property_history", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents a change to ticket record in Hubspot.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "source": {"name": "source", "description": "The source (reason) of the change.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "source_id": {"name": "source_id", "description": "The ID of the object that caused the change, if applicable.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "timestamp_instant": {"name": "timestamp_instant", "description": "The timestamp the changed occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ticket_id": {"name": "ticket_id", "description": "The ID of the related ticket record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the field being changed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "value": {"name": "value", "description": "The new value of the field.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`ticket_property_history`"}, "source.hubspot_source.hubspot.ticket": {"fqn": ["hubspot_source", "hubspot", "ticket"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.ticket", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "ticket", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "ticket", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents a ticket in Hubspot.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "ID of the ticket.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_deleted": {"name": "is_deleted", "description": "Whether the record was deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "portal_id": {"name": "portal_id", "description": "The hub ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "property_hs_pipeline": {"name": "property_hs_pipeline", "description": "The ID of the ticket's pipeline.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "property_hs_pipeline_stage": {"name": "property_hs_pipeline_stage", "description": "The ID of the ticket's pipeline stage.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "property_hubspot_owner_id": {"name": "property_hubspot_owner_id", "description": "The ID of the deal's owner.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "property_subject": {"name": "property_subject", "description": "Short summary of ticket.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "property_content": {"name": "property_content", "description": "Text in body of the ticket.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "property_reason_for_contact": {"name": "property_reason_for_contact", "description": "Reason for customer contact.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "property_root_cause": {"name": "property_root_cause", "description": "Root cause of customer contact.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`ticket`"}}, "macros": {"macro.dbt_bigquery.date_sharded_table": {"unique_id": "macro.dbt_bigquery.date_sharded_table", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/etc.sql", "original_file_path": "macros/etc.sql", "name": "date_sharded_table", "macro_sql": "{% macro date_sharded_table(base_name) %}\n {{ return(base_name ~ \"[DBT__PARTITION_DATE]\") }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.grant_access_to": {"unique_id": "macro.dbt_bigquery.grant_access_to", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/etc.sql", "original_file_path": "macros/etc.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.get_partitions_metadata": {"unique_id": "macro.dbt_bigquery.get_partitions_metadata", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/etc.sql", "original_file_path": "macros/etc.sql", "name": "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 -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery__get_catalog": {"unique_id": "macro.dbt_bigquery.bigquery__get_catalog", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/catalog.sql", "original_file_path": "macros/catalog.sql", "name": "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 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\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 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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.partition_by": {"unique_id": "macro.dbt_bigquery.partition_by", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "partition_by", "macro_sql": "{% macro partition_by(partition_config) -%}\n {%- if partition_config is none -%}\n {% do return('') %}\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", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.cluster_by": {"unique_id": "macro.dbt_bigquery.cluster_by", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "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\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery_table_options": {"unique_id": "macro.dbt_bigquery.bigquery_table_options", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery_table_options", "macro_sql": "{% macro bigquery_table_options(config, node, temporary) %}\n {% set opts = adapter.get_table_options(config, node, temporary) %}\n\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", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery__create_table_as": {"unique_id": "macro.dbt_bigquery.bigquery__create_table_as", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__create_table_as", "macro_sql": "{% macro bigquery__create_table_as(temporary, relation, 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\n {{ sql_header if sql_header is not none }}\n\n create or replace table {{ relation }}\n {{ partition_by(partition_config) }}\n {{ cluster_by(raw_cluster_by) }}\n {{ bigquery_table_options(config, model, temporary) }}\n as (\n {{ sql }}\n );\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery__create_view_as": {"unique_id": "macro.dbt_bigquery.bigquery__create_view_as", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "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_table_options(config, model, temporary=false) }}\n as {{ sql }};\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery__create_schema": {"unique_id": "macro.dbt_bigquery.bigquery__create_schema", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__create_schema", "macro_sql": "{% macro bigquery__create_schema(relation) -%}\n {{ adapter.create_schema(relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery__drop_schema": {"unique_id": "macro.dbt_bigquery.bigquery__drop_schema", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__drop_schema", "macro_sql": "{% macro bigquery__drop_schema(relation) -%}\n {{ adapter.drop_schema(relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery__drop_relation": {"unique_id": "macro.dbt_bigquery.bigquery__drop_relation", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery__get_columns_in_relation": {"unique_id": "macro.dbt_bigquery.bigquery__get_columns_in_relation", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__get_columns_in_relation", "macro_sql": "{% macro bigquery__get_columns_in_relation(relation) -%}\n {{ return(adapter.get_columns_in_relation(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery__list_relations_without_caching": {"unique_id": "macro.dbt_bigquery.bigquery__list_relations_without_caching", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery__current_timestamp": {"unique_id": "macro.dbt_bigquery.bigquery__current_timestamp", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__current_timestamp", "macro_sql": "{% macro bigquery__current_timestamp() -%}\n CURRENT_TIMESTAMP()\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery__snapshot_string_as_time": {"unique_id": "macro.dbt_bigquery.bigquery__snapshot_string_as_time", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__snapshot_string_as_time", "macro_sql": "{% macro bigquery__snapshot_string_as_time(timestamp) -%}\n {%- set result = 'TIMESTAMP(\"' ~ timestamp ~ '\")' -%}\n {{ return(result) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery__list_schemas": {"unique_id": "macro.dbt_bigquery.bigquery__list_schemas", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__list_schemas", "macro_sql": "{% macro bigquery__list_schemas(database) -%}\n {{ return(adapter.list_schemas(database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery__check_schema_exists": {"unique_id": "macro.dbt_bigquery.bigquery__check_schema_exists", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery__persist_docs": {"unique_id": "macro.dbt_bigquery.bigquery__persist_docs", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery__alter_column_comment": {"unique_id": "macro.dbt_bigquery.bigquery__alter_column_comment", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__alter_column_comment", "macro_sql": "{% macro bigquery__alter_column_comment(relation, column_dict) -%}\n {% do adapter.update_columns(relation, column_dict) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery__rename_relation": {"unique_id": "macro.dbt_bigquery.bigquery__rename_relation", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__rename_relation", "macro_sql": "{% macro bigquery__rename_relation(from_relation, to_relation) -%}\n {% do adapter.rename_relation(from_relation, to_relation) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery__alter_column_type": {"unique_id": "macro.dbt_bigquery.bigquery__alter_column_type", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__alter_column_type", "macro_sql": "{% macro bigquery__alter_column_type(relation, column_name, new_column_type) -%}\n {#\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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery__create_csv_table": {"unique_id": "macro.dbt_bigquery.bigquery__create_csv_table", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/materializations/seed.sql", "original_file_path": "macros/materializations/seed.sql", "name": "bigquery__create_csv_table", "macro_sql": "{% macro bigquery__create_csv_table(model, agate_table) %}\n -- no-op\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery__reset_csv_table": {"unique_id": "macro.dbt_bigquery.bigquery__reset_csv_table", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/materializations/seed.sql", "original_file_path": "macros/materializations/seed.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery__load_csv_rows": {"unique_id": "macro.dbt_bigquery.bigquery__load_csv_rows", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/materializations/seed.sql", "original_file_path": "macros/materializations/seed.sql", "name": "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 {% 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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery__handle_existing_table": {"unique_id": "macro.dbt_bigquery.bigquery__handle_existing_table", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/materializations/view.sql", "original_file_path": "macros/materializations/view.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.materialization_view_bigquery": {"unique_id": "macro.dbt_bigquery.materialization_view_bigquery", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/materializations/view.sql", "original_file_path": "macros/materializations/view.sql", "name": "materialization_view_bigquery", "macro_sql": "{% materialization view, adapter='bigquery' -%}\n {% set to_return = create_or_replace_view(run_outside_transaction_hooks=False) %}\n\n {% set target_relation = this.incorporate(type='view') %}\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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.make_date_partitioned_table": {"unique_id": "macro.dbt_bigquery.make_date_partitioned_table", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/materializations/table.sql", "original_file_path": "macros/materializations/table.sql", "name": "make_date_partitioned_table", "macro_sql": "{% macro make_date_partitioned_table(model, relation, dates, should_create, verbose=False) %}\n\n {% if should_create %}\n {{ adapter.make_date_partitioned_table(relation) }}\n {% endif %}\n\n {% for date in dates %}\n {% set date = (date | string) %}\n {% if verbose %}\n {% set table_start_time = modules.datetime.datetime.now().strftime(\"%H:%M:%S\") %}\n {{ log(table_start_time ~ ' | -> Running for day ' ~ date, info=True) }}\n {% endif %}\n\n {% set fixed_sql = model['compiled_sql'] | replace('[DBT__PARTITION_DATE]', date) %}\n {% set _ = adapter.execute_model(model, 'table', fixed_sql, decorator=date) %}\n {% endfor %}\n\n {% set num_days = dates | length %}\n {% if num_days == 1 %}\n {% set result_str = 'CREATED 1 PARTITION' %}\n {% else %}\n {% set result_str = 'CREATED ' ~ num_days ~ ' PARTITIONS' %}\n {% endif %}\n\n {{ store_result('main', response=result_str) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.materialization_table_bigquery": {"unique_id": "macro.dbt_bigquery.materialization_table_bigquery", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/materializations/table.sql", "original_file_path": "macros/materializations/table.sql", "name": "materialization_table_bigquery", "macro_sql": "{% materialization table, adapter='bigquery' -%}\n\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 {%- set verbose = config.get('verbose', False) -%}\n\n {# partitions: iterate over each partition, running a separate query in a for-loop #}\n {%- set partitions = config.get('partitions') -%}\n\n {% if partitions %}\n {% if partitions is number or partitions is string %}\n {% set partitions = [(partitions | string)] %}\n {% endif %}\n\n {% if partitions is not iterable %}\n {{ exceptions.raise_compiler_error(\"Provided `partitions` configuration is not a list. Got: \" ~ partitions, model) }}\n {% endif %}\n {% endif %}\n\n {{ run_hooks(pre_hooks) }}\n\n {#\n Since dbt uses WRITE_TRUNCATE mode for tables, we only need to drop this thing\n if it is not a table. If it _is_ already a table, then we can overwrite it without downtime\n #}\n {%- if exists_not_as_table -%}\n {{ adapter.drop_relation(old_relation) }}\n {%- endif -%}\n\n -- build model\n {% if partitions %}\n {# Create the dp-table if 1. it does not exist or 2. it existed, but we just dropped it #}\n {%- set should_create = (old_relation is none or exists_not_as_table) -%}\n {{ make_date_partitioned_table(model, target_relation, partitions, should_create, verbose) }}\n {% else %}\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 {% call statement('main') -%}\n {{ create_table_as(False, target_relation, sql) }}\n {% endcall -%}\n {% endif %}\n\n {{ run_hooks(post_hooks) }}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.materialization_copy_bigquery": {"unique_id": "macro.dbt_bigquery.materialization_copy_bigquery", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/materializations/copy.sql", "original_file_path": "macros/materializations/copy.sql", "name": "materialization_copy_bigquery", "macro_sql": "{% materialization copy, adapter='bigquery' -%}\n\n {# Setup #}\n {{ run_hooks(pre_hooks) }}\n\n {# there should be exactly one ref or exactly one source #}\n {% set destination = this.incorporate(type='table') %}\n\n {% set dependency_type = none %}\n {% if (model.refs | length) == 1 and (model.sources | length) == 0 %}\n {% set dependency_type = 'ref' %}\n {% elif (model.refs | length) == 0 and (model.sources | length) == 1 %}\n {% set dependency_type = 'source' %}\n {% else %}\n {% set msg %}\n Expected exactly one ref or exactly one source, instead got {{ model.refs | length }} models and {{ model.sources | length }} sources.\n {% endset %}\n {% do exceptions.raise_compiler_error(msg) %}\n {% endif %}\n\n {% if dependency_type == 'ref' %}\n {% set src = ref(*model.refs[0]) %}\n {% else %}\n {% set src = source(*model.sources[0]) %}\n {% endif %}\n\n {%- set result_str = adapter.copy_table(\n src,\n destination,\n config.get('copy_materialization', 'table')) -%}\n\n {{ store_result('main', response=result_str) }}\n\n {# Clean up #}\n {{ run_hooks(post_hooks) }}\n {{ adapter.commit() }}\n\n {{ return({'relations': [destination]}) }}\n{%- endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.dbt_bigquery_validate_get_incremental_strategy": {"unique_id": "macro.dbt_bigquery.dbt_bigquery_validate_get_incremental_strategy", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/materializations/incremental.sql", "original_file_path": "macros/materializations/incremental.sql", "name": "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\", default=\"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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bq_insert_overwrite": {"unique_id": "macro.dbt_bigquery.bq_insert_overwrite", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/materializations/incremental.sql", "original_file_path": "macros/materializations/incremental.sql", "name": "bq_insert_overwrite", "macro_sql": "{% macro bq_insert_overwrite(tmp_relation, target_relation, sql, unique_key, partition_by, partitions, dest_columns) %}\n {%- set partition_type =\n 'date' if partition_by.data_type in ('timestamp, datetime')\n else partition_by.data_type -%}\n\n {% if partitions is not none and partitions != [] %} {# static #}\n\n {% set predicate -%}\n {{ partition_by.render(alias='DBT_INTERNAL_DEST') }} in (\n {{ partitions | join (', ') }}\n )\n {%- endset %}\n\n {%- set source_sql -%}\n (\n {{sql}}\n )\n {%- endset -%}\n\n {{ get_insert_overwrite_merge_sql(target_relation, source_sql, dest_columns, [predicate], include_sql_header=true) }}\n\n {% else %} {# dynamic #}\n\n {% set predicate -%}\n {{ partition_by.render(alias='DBT_INTERNAL_DEST') }} in unnest(dbt_partitions_for_replacement)\n {%- endset %}\n\n {%- set source_sql -%}\n (\n select * from {{ tmp_relation }}\n )\n {%- endset -%}\n\n -- generated script to merge partitions into {{ target_relation }}\n declare dbt_partitions_for_replacement array<{{ partition_type }}>;\n declare _dbt_max_partition {{ partition_by.data_type }};\n\n set _dbt_max_partition = (\n select max({{ partition_by.field }}) from {{ this }}\n );\n\n -- 1. create a temp table\n {{ create_table_as(True, tmp_relation, sql) }}\n\n -- 2. define partitions to update\n set (dbt_partitions_for_replacement) = (\n select as struct\n array_agg(distinct {{ partition_by.render() }})\n from {{ tmp_relation }}\n );\n\n {#\n TODO: include_sql_header is a hack; consider a better approach that includes\n the sql_header at the materialization-level instead\n #}\n -- 3. run the merge statement\n {{ get_insert_overwrite_merge_sql(target_relation, source_sql, dest_columns, [predicate], include_sql_header=false) }};\n\n -- 4. clean up the temp table\n drop table if exists {{ tmp_relation }}\n\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.materialization_incremental_bigquery": {"unique_id": "macro.dbt_bigquery.materialization_incremental_bigquery", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/materializations/incremental.sql", "original_file_path": "macros/materializations/incremental.sql", "name": "materialization_incremental_bigquery", "macro_sql": "{% materialization incremental, adapter='bigquery' -%}\n\n {%- set unique_key = config.get('unique_key') -%}\n {%- set full_refresh_mode = (should_full_refresh()) -%}\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 {{ run_hooks(pre_hooks) }}\n\n {% if existing_relation is none %}\n {% set build_sql = create_table_as(False, target_relation, sql) %}\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 {% set build_sql = create_table_as(False, target_relation, sql) %}\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 {% set build_sql = create_table_as(False, target_relation, sql) %}\n {% else %}\n {% set dest_columns = adapter.get_columns_in_relation(existing_relation) %}\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 missing_partition_msg -%}\n The 'insert_overwrite' strategy requires the `partition_by` config.\n {%- endset %}\n {% if partition_by is none %}\n {% do exceptions.raise_compiler_error(missing_partition_msg) %}\n {% endif %}\n\n {% set build_sql = bq_insert_overwrite(\n tmp_relation,\n target_relation,\n sql,\n unique_key,\n partition_by,\n partitions,\n dest_columns) %}\n\n {% else %}\n {#-- wrap sql in parens to make it a subquery --#}\n {%- set source_sql -%}\n (\n {{sql}}\n )\n {%- endset -%}\n\n {% set build_sql = get_merge_sql(target_relation, source_sql, unique_key, dest_columns) %}\n\n {% endif %}\n\n {% endif %}\n\n {%- call statement('main') -%}\n {{ build_sql }}\n {% endcall %}\n\n {{ run_hooks(post_hooks) }}\n\n {% set target_relation = this.incorporate(type='table') %}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery__snapshot_hash_arguments": {"unique_id": "macro.dbt_bigquery.bigquery__snapshot_hash_arguments", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/materializations/snapshot.sql", "original_file_path": "macros/materializations/snapshot.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery__create_columns": {"unique_id": "macro.dbt_bigquery.bigquery__create_columns", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/materializations/snapshot.sql", "original_file_path": "macros/materializations/snapshot.sql", "name": "bigquery__create_columns", "macro_sql": "{% macro bigquery__create_columns(relation, columns) %}\n {{ adapter.alter_table_add_columns(relation, columns) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery__post_snapshot": {"unique_id": "macro.dbt_bigquery.bigquery__post_snapshot", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/materializations/snapshot.sql", "original_file_path": "macros/materializations/snapshot.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.statement": {"unique_id": "macro.dbt.statement", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/core.sql", "original_file_path": "macros/core.sql", "name": "statement", "macro_sql": "{% macro statement(name=None, fetch_result=False, auto_begin=True) -%}\n {%- if execute: -%}\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 {%- set res, table = adapter.execute(sql, auto_begin=auto_begin, fetch=fetch_result) -%}\n {%- if name is not none -%}\n {{ store_result(name, response=res, agate_table=table) }}\n {%- endif -%}\n\n {%- endif -%}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.noop_statement": {"unique_id": "macro.dbt.noop_statement", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/core.sql", "original_file_path": "macros/core.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.run_hooks": {"unique_id": "macro.dbt.run_hooks", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/helpers.sql", "original_file_path": "macros/materializations/helpers.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.column_list": {"unique_id": "macro.dbt.column_list", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/helpers.sql", "original_file_path": "macros/materializations/helpers.sql", "name": "column_list", "macro_sql": "{% macro column_list(columns) %}\n {%- for col in columns %}\n {{ col.name }} {% if not loop.last %},{% endif %}\n {% endfor -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.column_list_for_create_table": {"unique_id": "macro.dbt.column_list_for_create_table", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/helpers.sql", "original_file_path": "macros/materializations/helpers.sql", "name": "column_list_for_create_table", "macro_sql": "{% macro column_list_for_create_table(columns) %}\n {%- for col in columns %}\n {{ col.name }} {{ col.data_type }} {%- if not loop.last %},{% endif %}\n {% endfor -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.make_hook_config": {"unique_id": "macro.dbt.make_hook_config", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/helpers.sql", "original_file_path": "macros/materializations/helpers.sql", "name": "make_hook_config", "macro_sql": "{% macro make_hook_config(sql, inside_transaction) %}\n {{ tojson({\"sql\": sql, \"transaction\": inside_transaction}) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.before_begin": {"unique_id": "macro.dbt.before_begin", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/helpers.sql", "original_file_path": "macros/materializations/helpers.sql", "name": "before_begin", "macro_sql": "{% macro before_begin(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.in_transaction": {"unique_id": "macro.dbt.in_transaction", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/helpers.sql", "original_file_path": "macros/materializations/helpers.sql", "name": "in_transaction", "macro_sql": "{% macro in_transaction(sql) %}\n {{ make_hook_config(sql, inside_transaction=True) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.after_commit": {"unique_id": "macro.dbt.after_commit", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/helpers.sql", "original_file_path": "macros/materializations/helpers.sql", "name": "after_commit", "macro_sql": "{% macro after_commit(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.drop_relation_if_exists": {"unique_id": "macro.dbt.drop_relation_if_exists", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/helpers.sql", "original_file_path": "macros/materializations/helpers.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.load_relation": {"unique_id": "macro.dbt.load_relation", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/helpers.sql", "original_file_path": "macros/materializations/helpers.sql", "name": "load_relation", "macro_sql": "{% macro load_relation(relation) %}\n {% do return(adapter.get_relation(\n database=relation.database,\n schema=relation.schema,\n identifier=relation.identifier\n )) -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.should_full_refresh": {"unique_id": "macro.dbt.should_full_refresh", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/helpers.sql", "original_file_path": "macros/materializations/helpers.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.snapshot_merge_sql": {"unique_id": "macro.dbt.snapshot_merge_sql", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshot/snapshot_merge.sql", "name": "snapshot_merge_sql", "macro_sql": "{% macro snapshot_merge_sql(target, source, insert_cols) -%}\n {{ adapter.dispatch('snapshot_merge_sql')(target, source, insert_cols) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__snapshot_merge_sql": {"unique_id": "macro.dbt.default__snapshot_merge_sql", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshot/snapshot_merge.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.strategy_dispatch": {"unique_id": "macro.dbt.strategy_dispatch", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/strategies.sql", "original_file_path": "macros/materializations/snapshot/strategies.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.snapshot_hash_arguments": {"unique_id": "macro.dbt.snapshot_hash_arguments", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/strategies.sql", "original_file_path": "macros/materializations/snapshot/strategies.sql", "name": "snapshot_hash_arguments", "macro_sql": "{% macro snapshot_hash_arguments(args) -%}\n {{ adapter.dispatch('snapshot_hash_arguments')(args) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__snapshot_hash_arguments": {"unique_id": "macro.dbt.default__snapshot_hash_arguments", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/strategies.sql", "original_file_path": "macros/materializations/snapshot/strategies.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.snapshot_get_time": {"unique_id": "macro.dbt.snapshot_get_time", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/strategies.sql", "original_file_path": "macros/materializations/snapshot/strategies.sql", "name": "snapshot_get_time", "macro_sql": "{% macro snapshot_get_time() -%}\n {{ adapter.dispatch('snapshot_get_time')() }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__snapshot_get_time": {"unique_id": "macro.dbt.default__snapshot_get_time", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/strategies.sql", "original_file_path": "macros/materializations/snapshot/strategies.sql", "name": "default__snapshot_get_time", "macro_sql": "{% macro default__snapshot_get_time() -%}\n {{ current_timestamp() }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.snapshot_timestamp_strategy": {"unique_id": "macro.dbt.snapshot_timestamp_strategy", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/strategies.sql", "original_file_path": "macros/materializations/snapshot/strategies.sql", "name": "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/fishtown-analytics/dbt/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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.snapshot_string_as_time": {"unique_id": "macro.dbt.snapshot_string_as_time", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/strategies.sql", "original_file_path": "macros/materializations/snapshot/strategies.sql", "name": "snapshot_string_as_time", "macro_sql": "{% macro snapshot_string_as_time(timestamp) -%}\n {{ adapter.dispatch('snapshot_string_as_time')(timestamp) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__snapshot_string_as_time": {"unique_id": "macro.dbt.default__snapshot_string_as_time", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/strategies.sql", "original_file_path": "macros/materializations/snapshot/strategies.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.snapshot_check_all_get_existing_columns": {"unique_id": "macro.dbt.snapshot_check_all_get_existing_columns", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/strategies.sql", "original_file_path": "macros/materializations/snapshot/strategies.sql", "name": "snapshot_check_all_get_existing_columns", "macro_sql": "{% macro snapshot_check_all_get_existing_columns(node, target_exists) -%}\n {%- set query_columns = get_columns_in_query(node['compiled_sql']) -%}\n {%- if not target_exists -%}\n {# no table yet -> return whatever the query does #}\n {{ return([false, query_columns]) }}\n {%- endif -%}\n {# handle any schema changes #}\n {%- set target_table = node.get('alias', node.get('name')) -%}\n {%- set target_relation = adapter.get_relation(database=node.database, schema=node.schema, identifier=target_table) -%}\n {%- set existing_cols = get_columns_in_query('select * from ' ~ target_relation) -%}\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(col) -%}\n {%- else -%}\n {% set ns.column_added = true %}\n {%- endif -%}\n {%- endfor -%}\n {{ return([ns.column_added, intersection]) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.snapshot_check_strategy": {"unique_id": "macro.dbt.snapshot_check_strategy", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/strategies.sql", "original_file_path": "macros/materializations/snapshot/strategies.sql", "name": "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 \n {% set select_current_time -%}\n select {{ snapshot_get_time() }} as snapshot_start\n {%- endset %}\n\n {#-- don't access the column by name, to avoid dealing with casing issues on snowflake #}\n {%- set now = run_query(select_current_time)[0][0] -%}\n {% if now is none or now is undefined -%}\n {%- do exceptions.raise_compiler_error('Could not get a snapshot start time from the database') -%}\n {%- endif %}\n {% set updated_at = snapshot_string_as_time(now) %}\n\n {% set column_added = false %}\n\n {% if check_cols_config == 'all' %}\n {% set column_added, check_cols = snapshot_check_all_get_existing_columns(node, target_exists) %}\n {% elif check_cols_config is iterable and (check_cols_config | length) > 0 %}\n {% set check_cols = check_cols_config %}\n {% else %}\n {% do exceptions.raise_compiler_error(\"Invalid value for 'check_cols': \" ~ check_cols_config) %}\n {% endif %}\n\n {%- set row_changed_expr -%}\n (\n {%- if column_added -%}\n TRUE\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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.create_columns": {"unique_id": "macro.dbt.create_columns", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/snapshot.sql", "original_file_path": "macros/materializations/snapshot/snapshot.sql", "name": "create_columns", "macro_sql": "{% macro create_columns(relation, columns) %}\n {{ adapter.dispatch('create_columns')(relation, columns) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__create_columns": {"unique_id": "macro.dbt.default__create_columns", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/snapshot.sql", "original_file_path": "macros/materializations/snapshot/snapshot.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.post_snapshot": {"unique_id": "macro.dbt.post_snapshot", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/snapshot.sql", "original_file_path": "macros/materializations/snapshot/snapshot.sql", "name": "post_snapshot", "macro_sql": "{% macro post_snapshot(staging_relation) %}\n {{ adapter.dispatch('post_snapshot')(staging_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__post_snapshot": {"unique_id": "macro.dbt.default__post_snapshot", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/snapshot.sql", "original_file_path": "macros/materializations/snapshot/snapshot.sql", "name": "default__post_snapshot", "macro_sql": "{% macro default__post_snapshot(staging_relation) %}\n {# no-op #}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.snapshot_staging_table": {"unique_id": "macro.dbt.snapshot_staging_table", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/snapshot.sql", "original_file_path": "macros/materializations/snapshot/snapshot.sql", "name": "snapshot_staging_table", "macro_sql": "{% macro 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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.build_snapshot_table": {"unique_id": "macro.dbt.build_snapshot_table", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/snapshot.sql", "original_file_path": "macros/materializations/snapshot/snapshot.sql", "name": "build_snapshot_table", "macro_sql": "{% macro 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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.get_or_create_relation": {"unique_id": "macro.dbt.get_or_create_relation", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/snapshot.sql", "original_file_path": "macros/materializations/snapshot/snapshot.sql", "name": "get_or_create_relation", "macro_sql": "{% macro 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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.build_snapshot_staging_table": {"unique_id": "macro.dbt.build_snapshot_staging_table", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/snapshot.sql", "original_file_path": "macros/materializations/snapshot/snapshot.sql", "name": "build_snapshot_staging_table", "macro_sql": "{% macro build_snapshot_staging_table(strategy, sql, target_relation) %}\n {% set tmp_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, tmp_relation, select) }}\n {% endcall %}\n\n {% do return(tmp_relation) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.materialization_snapshot_default": {"unique_id": "macro.dbt.materialization_snapshot_default", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/snapshot.sql", "original_file_path": "macros/materializations/snapshot/snapshot.sql", "name": "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\n {% if not adapter.check_schema_exists(model.database, model.schema) %}\n {% do create_schema(model.database, model.schema) %}\n {% endif %}\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_sql']) %}\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 {% do persist_docs(target_relation, model) %}\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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.create_csv_table": {"unique_id": "macro.dbt.create_csv_table", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/seed/seed.sql", "original_file_path": "macros/materializations/seed/seed.sql", "name": "create_csv_table", "macro_sql": "{% macro create_csv_table(model, agate_table) -%}\n {{ adapter.dispatch('create_csv_table')(model, agate_table) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.reset_csv_table": {"unique_id": "macro.dbt.reset_csv_table", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/seed/seed.sql", "original_file_path": "macros/materializations/seed/seed.sql", "name": "reset_csv_table", "macro_sql": "{% macro reset_csv_table(model, full_refresh, old_relation, agate_table) -%}\n {{ adapter.dispatch('reset_csv_table')(model, full_refresh, old_relation, agate_table) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.load_csv_rows": {"unique_id": "macro.dbt.load_csv_rows", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/seed/seed.sql", "original_file_path": "macros/materializations/seed/seed.sql", "name": "load_csv_rows", "macro_sql": "{% macro load_csv_rows(model, agate_table) -%}\n {{ adapter.dispatch('load_csv_rows')(model, agate_table) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__create_csv_table": {"unique_id": "macro.dbt.default__create_csv_table", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/seed/seed.sql", "original_file_path": "macros/materializations/seed/seed.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__reset_csv_table": {"unique_id": "macro.dbt.default__reset_csv_table", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/seed/seed.sql", "original_file_path": "macros/materializations/seed/seed.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.get_seed_column_quoted_csv": {"unique_id": "macro.dbt.get_seed_column_quoted_csv", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/seed/seed.sql", "original_file_path": "macros/materializations/seed/seed.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.basic_load_csv_rows": {"unique_id": "macro.dbt.basic_load_csv_rows", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/seed/seed.sql", "original_file_path": "macros/materializations/seed/seed.sql", "name": "basic_load_csv_rows", "macro_sql": "{% macro basic_load_csv_rows(model, batch_size, agate_table) %}\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 %s\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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__load_csv_rows": {"unique_id": "macro.dbt.default__load_csv_rows", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/seed/seed.sql", "original_file_path": "macros/materializations/seed/seed.sql", "name": "default__load_csv_rows", "macro_sql": "{% macro default__load_csv_rows(model, agate_table) %}\n {{ return(basic_load_csv_rows(model, 10000, agate_table) )}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.materialization_seed_default": {"unique_id": "macro.dbt.materialization_seed_default", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/seed/seed.sql", "original_file_path": "macros/materializations/seed/seed.sql", "name": "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 agate_table = load_agate_table() -%}\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 {{ create_table_sql }};\n -- dbt seed --\n {{ sql }}\n {% endcall %}\n\n {% set target_relation = this.incorporate(type='table') %}\n {% do persist_docs(target_relation, model) %}\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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.incremental_upsert": {"unique_id": "macro.dbt.incremental_upsert", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/incremental/helpers.sql", "original_file_path": "macros/materializations/incremental/helpers.sql", "name": "incremental_upsert", "macro_sql": "{% macro incremental_upsert(tmp_relation, target_relation, unique_key=none, statement_name=\"main\") %}\n {%- set dest_columns = adapter.get_columns_in_relation(target_relation) -%}\n {%- set dest_cols_csv = dest_columns | map(attribute='quoted') | join(', ') -%}\n\n {%- if unique_key is not none -%}\n delete\n from {{ target_relation }}\n where ({{ unique_key }}) in (\n select ({{ unique_key }})\n from {{ tmp_relation }}\n );\n {%- endif %}\n\n insert into {{ target_relation }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ tmp_relation }}\n );\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.materialization_incremental_default": {"unique_id": "macro.dbt.materialization_incremental_default", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/incremental/incremental.sql", "original_file_path": "macros/materializations/incremental/incremental.sql", "name": "materialization_incremental_default", "macro_sql": "{% materialization incremental, default -%}\n\n {% set unique_key = config.get('unique_key') %}\n\n {% set target_relation = this.incorporate(type='table') %}\n {% set existing_relation = load_relation(this) %}\n {% set tmp_relation = make_temp_relation(this) %}\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 {% if existing_relation is none %}\n {% set build_sql = create_table_as(False, target_relation, sql) %}\n {% elif existing_relation.is_view or should_full_refresh() %}\n {#-- Make sure the backup doesn't exist so we don't encounter issues with the rename below #}\n {% set backup_identifier = existing_relation.identifier ~ \"__dbt_backup\" %}\n {% set backup_relation = existing_relation.incorporate(path={\"identifier\": backup_identifier}) %}\n {% do adapter.drop_relation(backup_relation) %}\n\n {% do adapter.rename_relation(target_relation, backup_relation) %}\n {% set build_sql = create_table_as(False, target_relation, sql) %}\n {% do to_drop.append(backup_relation) %}\n {% else %}\n {% set tmp_relation = make_temp_relation(target_relation) %}\n {% do run_query(create_table_as(True, tmp_relation, sql)) %}\n {% do adapter.expand_target_column_types(\n from_relation=tmp_relation,\n to_relation=target_relation) %}\n {% set build_sql = incremental_upsert(tmp_relation, target_relation, unique_key=unique_key) %}\n {% endif %}\n\n {% call statement(\"main\") %}\n {{ build_sql }}\n {% endcall %}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n -- `COMMIT` happens here\n {% do adapter.commit() %}\n\n {% for rel in to_drop %}\n {% do adapter.drop_relation(rel) %}\n {% endfor %}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.get_merge_sql": {"unique_id": "macro.dbt.get_merge_sql", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/common/merge.sql", "original_file_path": "macros/materializations/common/merge.sql", "name": "get_merge_sql", "macro_sql": "{% macro get_merge_sql(target, source, unique_key, dest_columns, predicates=none) -%}\n {{ adapter.dispatch('get_merge_sql')(target, source, unique_key, dest_columns, predicates) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.get_delete_insert_merge_sql": {"unique_id": "macro.dbt.get_delete_insert_merge_sql", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/common/merge.sql", "original_file_path": "macros/materializations/common/merge.sql", "name": "get_delete_insert_merge_sql", "macro_sql": "{% macro get_delete_insert_merge_sql(target, source, unique_key, dest_columns) -%}\n {{ adapter.dispatch('get_delete_insert_merge_sql')(target, source, unique_key, dest_columns) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.get_insert_overwrite_merge_sql": {"unique_id": "macro.dbt.get_insert_overwrite_merge_sql", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/common/merge.sql", "original_file_path": "macros/materializations/common/merge.sql", "name": "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')(target, source, dest_columns, predicates, include_sql_header) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__get_merge_sql": {"unique_id": "macro.dbt.default__get_merge_sql", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/common/merge.sql", "original_file_path": "macros/materializations/common/merge.sql", "name": "default__get_merge_sql", "macro_sql": "{% macro default__get_merge_sql(target, source, unique_key, dest_columns, predicates) -%}\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 {% if unique_key %}\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 {% 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 in dest_columns -%}\n {{ adapter.quote(column.name) }} = DBT_INTERNAL_SOURCE.{{ adapter.quote(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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.get_quoted_csv": {"unique_id": "macro.dbt.get_quoted_csv", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/common/merge.sql", "original_file_path": "macros/materializations/common/merge.sql", "name": "get_quoted_csv", "macro_sql": "{% macro get_quoted_csv(column_names) %}\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{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.common_get_delete_insert_merge_sql": {"unique_id": "macro.dbt.common_get_delete_insert_merge_sql", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/common/merge.sql", "original_file_path": "macros/materializations/common/merge.sql", "name": "common_get_delete_insert_merge_sql", "macro_sql": "{% macro common_get_delete_insert_merge_sql(target, source, unique_key, dest_columns) -%}\n\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n {% if unique_key is not none %}\n delete from {{ target }}\n where ({{ unique_key }}) in (\n select ({{ unique_key }})\n from {{ source }}\n );\n {% endif %}\n\n insert into {{ target }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ source }}\n );\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__get_delete_insert_merge_sql": {"unique_id": "macro.dbt.default__get_delete_insert_merge_sql", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/common/merge.sql", "original_file_path": "macros/materializations/common/merge.sql", "name": "default__get_delete_insert_merge_sql", "macro_sql": "{% macro default__get_delete_insert_merge_sql(target, source, unique_key, dest_columns) -%}\n {{ common_get_delete_insert_merge_sql(target, source, unique_key, dest_columns) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__get_insert_overwrite_merge_sql": {"unique_id": "macro.dbt.default__get_insert_overwrite_merge_sql", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/common/merge.sql", "original_file_path": "macros/materializations/common/merge.sql", "name": "default__get_insert_overwrite_merge_sql", "macro_sql": "{% macro default__get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header) -%}\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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.materialization_table_default": {"unique_id": "macro.dbt.materialization_table_default", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/table/table.sql", "original_file_path": "macros/materializations/table/table.sql", "name": "materialization_table_default", "macro_sql": "{% materialization table, default %}\n {%- set identifier = model['alias'] -%}\n {%- set tmp_identifier = model['name'] + '__dbt_tmp' -%}\n {%- set backup_identifier = model['name'] + '__dbt_backup' -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n {%- set target_relation = api.Relation.create(identifier=identifier,\n schema=schema,\n database=database,\n type='table') -%}\n {%- set intermediate_relation = api.Relation.create(identifier=tmp_identifier,\n schema=schema,\n database=database,\n type='table') -%}\n\n /*\n See ../view/view.sql for more information about this relation.\n */\n {%- set backup_relation_type = 'table' if old_relation is none else old_relation.type -%}\n {%- set backup_relation = api.Relation.create(identifier=backup_identifier,\n schema=schema,\n database=database,\n type=backup_relation_type) -%}\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\n -- drop the temp relations if they exists for some reason\n {{ adapter.drop_relation(intermediate_relation) }}\n {{ adapter.drop_relation(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 {{ create_table_as(False, intermediate_relation, sql) }}\n {%- endcall %}\n\n -- cleanup\n {% if old_relation is not none %}\n {{ adapter.rename_relation(target_relation, backup_relation) }}\n {% endif %}\n\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.materialization_view_default": {"unique_id": "macro.dbt.materialization_view_default", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/view/view.sql", "original_file_path": "macros/materializations/view/view.sql", "name": "materialization_view_default", "macro_sql": "{%- materialization view, default -%}\n\n {%- set identifier = model['alias'] -%}\n {%- set tmp_identifier = model['name'] + '__dbt_tmp' -%}\n {%- set backup_identifier = model['name'] + '__dbt_backup' -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n {%- set target_relation = api.Relation.create(identifier=identifier, schema=schema, database=database,\n type='view') -%}\n {%- set intermediate_relation = api.Relation.create(identifier=tmp_identifier,\n schema=schema, database=database, type='view') -%}\n\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 \"old_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 old_relation, if it exists,\n or else \"view\" as a sane default if it does not. Note that if the old_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 old_relation is none else old_relation.type -%}\n {%- set backup_relation = api.Relation.create(identifier=backup_identifier,\n schema=schema, database=database,\n type=backup_relation_type) -%}\n\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- drop the temp relations if they exists for some reason\n {{ adapter.drop_relation(intermediate_relation) }}\n {{ adapter.drop_relation(backup_relation) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% call statement('main') -%}\n {{ create_view_as(intermediate_relation, sql) }}\n {%- endcall %}\n\n -- cleanup\n -- move the existing view out of the way\n {% if old_relation is not none %}\n {{ adapter.rename_relation(target_relation, backup_relation) }}\n {% endif %}\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\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 -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.handle_existing_table": {"unique_id": "macro.dbt.handle_existing_table", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/view/create_or_replace_view.sql", "original_file_path": "macros/materializations/view/create_or_replace_view.sql", "name": "handle_existing_table", "macro_sql": "{% macro handle_existing_table(full_refresh, old_relation) %}\n {{ adapter.dispatch(\"handle_existing_table\", packages=['dbt'])(full_refresh, old_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__handle_existing_table": {"unique_id": "macro.dbt.default__handle_existing_table", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/view/create_or_replace_view.sql", "original_file_path": "macros/materializations/view/create_or_replace_view.sql", "name": "default__handle_existing_table", "macro_sql": "{% macro default__handle_existing_table(full_refresh, old_relation) %}\n {{ adapter.drop_relation(old_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.create_or_replace_view": {"unique_id": "macro.dbt.create_or_replace_view", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/view/create_or_replace_view.sql", "original_file_path": "macros/materializations/view/create_or_replace_view.sql", "name": "create_or_replace_view", "macro_sql": "{% macro create_or_replace_view(run_outside_transaction_hooks=True) %}\n {%- set identifier = model['alias'] -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n\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\n {% if run_outside_transaction_hooks %}\n -- no transactions on BigQuery\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n {% endif %}\n\n -- `BEGIN` happens here on Snowflake\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\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 {{ create_view_as(target_relation, sql) }}\n {%- endcall %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {% if run_outside_transaction_hooks %}\n -- No transactions on BigQuery\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n {% endif %}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.generate_alias_name": {"unique_id": "macro.dbt.generate_alias_name", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/etc/get_custom_alias.sql", "original_file_path": "macros/etc/get_custom_alias.sql", "name": "generate_alias_name", "macro_sql": "{% macro generate_alias_name(custom_alias_name=none, node=none) -%}\n\n {%- if custom_alias_name is none -%}\n\n {{ node.name }}\n\n {%- else -%}\n\n {{ custom_alias_name | trim }}\n\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.run_query": {"unique_id": "macro.dbt.run_query", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/etc/query.sql", "original_file_path": "macros/etc/query.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.is_incremental": {"unique_id": "macro.dbt.is_incremental", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/etc/is_incremental.sql", "original_file_path": "macros/etc/is_incremental.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.convert_datetime": {"unique_id": "macro.dbt.convert_datetime", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.dates_in_range": {"unique_id": "macro.dbt.dates_in_range", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.partition_range": {"unique_id": "macro.dbt.partition_range", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.py_current_timestring": {"unique_id": "macro.dbt.py_current_timestring", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.generate_schema_name": {"unique_id": "macro.dbt.generate_schema_name", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/etc/get_custom_schema.sql", "original_file_path": "macros/etc/get_custom_schema.sql", "name": "generate_schema_name", "macro_sql": "{% macro 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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.generate_schema_name_for_env": {"unique_id": "macro.dbt.generate_schema_name_for_env", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/etc/get_custom_schema.sql", "original_file_path": "macros/etc/get_custom_schema.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.generate_database_name": {"unique_id": "macro.dbt.generate_database_name", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/etc/get_custom_database.sql", "original_file_path": "macros/etc/get_custom_database.sql", "name": "generate_database_name", "macro_sql": "{% macro generate_database_name(custom_database_name=none, node=none) -%}\n {% do return(adapter.dispatch('generate_database_name')(custom_database_name, node)) %}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__generate_database_name"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__generate_database_name": {"unique_id": "macro.dbt.default__generate_database_name", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/etc/get_custom_database.sql", "original_file_path": "macros/etc/get_custom_database.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.get_columns_in_query": {"unique_id": "macro.dbt.get_columns_in_query", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "get_columns_in_query", "macro_sql": "{% macro get_columns_in_query(select_sql) -%}\n {{ return(adapter.dispatch('get_columns_in_query')(select_sql)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__get_columns_in_query": {"unique_id": "macro.dbt.default__get_columns_in_query", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "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 select * from (\n {{ select_sql }}\n ) as __dbt_sbq\n where false\n limit 0\n {% endcall %}\n\n {{ return(load_result('get_columns_in_query').table.columns | map(attribute='name') | list) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.create_schema": {"unique_id": "macro.dbt.create_schema", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "create_schema", "macro_sql": "{% macro create_schema(relation) -%}\n {{ adapter.dispatch('create_schema')(relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__create_schema": {"unique_id": "macro.dbt.default__create_schema", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.drop_schema": {"unique_id": "macro.dbt.drop_schema", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "drop_schema", "macro_sql": "{% macro drop_schema(relation) -%}\n {{ adapter.dispatch('drop_schema')(relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__drop_schema": {"unique_id": "macro.dbt.default__drop_schema", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.create_table_as": {"unique_id": "macro.dbt.create_table_as", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "create_table_as", "macro_sql": "{% macro create_table_as(temporary, relation, sql) -%}\n {{ adapter.dispatch('create_table_as')(temporary, relation, sql) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__create_table_as": {"unique_id": "macro.dbt.default__create_table_as", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "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 as (\n {{ sql }}\n );\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.create_view_as": {"unique_id": "macro.dbt.create_view_as", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "create_view_as", "macro_sql": "{% macro create_view_as(relation, sql) -%}\n {{ adapter.dispatch('create_view_as')(relation, sql) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__create_view_as": {"unique_id": "macro.dbt.default__create_view_as", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "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 }} as (\n {{ sql }}\n );\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.get_catalog": {"unique_id": "macro.dbt.get_catalog", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "get_catalog", "macro_sql": "{% macro get_catalog(information_schema, schemas) -%}\n {{ return(adapter.dispatch('get_catalog')(information_schema, schemas)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__get_catalog"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__get_catalog": {"unique_id": "macro.dbt.default__get_catalog", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.get_columns_in_relation": {"unique_id": "macro.dbt.get_columns_in_relation", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "get_columns_in_relation", "macro_sql": "{% macro get_columns_in_relation(relation) -%}\n {{ return(adapter.dispatch('get_columns_in_relation')(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.sql_convert_columns_in_relation": {"unique_id": "macro.dbt.sql_convert_columns_in_relation", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__get_columns_in_relation": {"unique_id": "macro.dbt.default__get_columns_in_relation", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.alter_column_type": {"unique_id": "macro.dbt.alter_column_type", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "alter_column_type", "macro_sql": "{% macro alter_column_type(relation, column_name, new_column_type) -%}\n {{ return(adapter.dispatch('alter_column_type')(relation, column_name, new_column_type)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.alter_column_comment": {"unique_id": "macro.dbt.alter_column_comment", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "alter_column_comment", "macro_sql": "{% macro alter_column_comment(relation, column_dict) -%}\n {{ return(adapter.dispatch('alter_column_comment')(relation, column_dict)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__alter_column_comment": {"unique_id": "macro.dbt.default__alter_column_comment", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.alter_relation_comment": {"unique_id": "macro.dbt.alter_relation_comment", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "alter_relation_comment", "macro_sql": "{% macro alter_relation_comment(relation, relation_comment) -%}\n {{ return(adapter.dispatch('alter_relation_comment')(relation, relation_comment)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__alter_relation_comment": {"unique_id": "macro.dbt.default__alter_relation_comment", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.persist_docs": {"unique_id": "macro.dbt.persist_docs", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "persist_docs", "macro_sql": "{% macro persist_docs(relation, model, for_relation=true, for_columns=true) -%}\n {{ return(adapter.dispatch('persist_docs')(relation, model, for_relation, for_columns)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__persist_docs": {"unique_id": "macro.dbt.default__persist_docs", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__alter_column_type": {"unique_id": "macro.dbt.default__alter_column_type", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.drop_relation": {"unique_id": "macro.dbt.drop_relation", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "drop_relation", "macro_sql": "{% macro drop_relation(relation) -%}\n {{ return(adapter.dispatch('drop_relation')(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__drop_relation": {"unique_id": "macro.dbt.default__drop_relation", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "default__drop_relation", "macro_sql": "{% macro default__drop_relation(relation) -%}\n {% call statement('drop_relation', auto_begin=False) -%}\n drop {{ relation.type }} if exists {{ relation }} cascade\n {%- endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.truncate_relation": {"unique_id": "macro.dbt.truncate_relation", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "truncate_relation", "macro_sql": "{% macro truncate_relation(relation) -%}\n {{ return(adapter.dispatch('truncate_relation')(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__truncate_relation": {"unique_id": "macro.dbt.default__truncate_relation", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "default__truncate_relation", "macro_sql": "{% macro default__truncate_relation(relation) -%}\n {% call statement('truncate_relation') -%}\n truncate table {{ relation }}\n {%- endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.rename_relation": {"unique_id": "macro.dbt.rename_relation", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "rename_relation", "macro_sql": "{% macro rename_relation(from_relation, to_relation) -%}\n {{ return(adapter.dispatch('rename_relation')(from_relation, to_relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__rename_relation": {"unique_id": "macro.dbt.default__rename_relation", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.information_schema_name": {"unique_id": "macro.dbt.information_schema_name", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "information_schema_name", "macro_sql": "{% macro information_schema_name(database) %}\n {{ return(adapter.dispatch('information_schema_name')(database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__information_schema_name": {"unique_id": "macro.dbt.default__information_schema_name", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.list_schemas": {"unique_id": "macro.dbt.list_schemas", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "list_schemas", "macro_sql": "{% macro list_schemas(database) -%}\n {{ return(adapter.dispatch('list_schemas')(database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__list_schemas": {"unique_id": "macro.dbt.default__list_schemas", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.check_schema_exists": {"unique_id": "macro.dbt.check_schema_exists", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "check_schema_exists", "macro_sql": "{% macro check_schema_exists(information_schema, schema) -%}\n {{ return(adapter.dispatch('check_schema_exists')(information_schema, schema)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__check_schema_exists": {"unique_id": "macro.dbt.default__check_schema_exists", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.list_relations_without_caching": {"unique_id": "macro.dbt.list_relations_without_caching", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "list_relations_without_caching", "macro_sql": "{% macro list_relations_without_caching(schema_relation) %}\n {{ return(adapter.dispatch('list_relations_without_caching')(schema_relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__list_relations_without_caching": {"unique_id": "macro.dbt.default__list_relations_without_caching", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.current_timestamp": {"unique_id": "macro.dbt.current_timestamp", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "current_timestamp", "macro_sql": "{% macro current_timestamp() -%}\n {{ adapter.dispatch('current_timestamp')() }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__current_timestamp": {"unique_id": "macro.dbt.default__current_timestamp", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.collect_freshness": {"unique_id": "macro.dbt.collect_freshness", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__collect_freshness": {"unique_id": "macro.dbt.default__collect_freshness", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "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').table) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.make_temp_relation": {"unique_id": "macro.dbt.make_temp_relation", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "make_temp_relation", "macro_sql": "{% macro make_temp_relation(base_relation, suffix='__dbt_tmp') %}\n {{ return(adapter.dispatch('make_temp_relation')(base_relation, suffix))}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__make_temp_relation": {"unique_id": "macro.dbt.default__make_temp_relation", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "default__make_temp_relation", "macro_sql": "{% macro default__make_temp_relation(base_relation, suffix) %}\n {% set tmp_identifier = base_relation.identifier ~ suffix %}\n {% set tmp_relation = base_relation.incorporate(\n path={\"identifier\": tmp_identifier}) -%}\n\n {% do return(tmp_relation) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.set_sql_header": {"unique_id": "macro.dbt.set_sql_header", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "set_sql_header", "macro_sql": "{% macro set_sql_header(config) -%}\n {{ config.set('sql_header', caller()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__test_relationships": {"unique_id": "macro.dbt.default__test_relationships", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/schema_tests/relationships.sql", "original_file_path": "macros/schema_tests/relationships.sql", "name": "default__test_relationships", "macro_sql": "{% macro default__test_relationships(model, to, field) %}\n\n{% set column_name = kwargs.get('column_name', kwargs.get('from')) %}\n\n\nselect count(*) as validation_errors\nfrom (\n select {{ column_name }} as id from {{ model }}\n) as child\nleft join (\n select {{ field }} as id from {{ to }}\n) as parent on parent.id = child.id\nwhere child.id is not null\n and parent.id is null\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.test_relationships": {"unique_id": "macro.dbt.test_relationships", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/schema_tests/relationships.sql", "original_file_path": "macros/schema_tests/relationships.sql", "name": "test_relationships", "macro_sql": "{% macro test_relationships(model, to, field) %}\n {% set macro = adapter.dispatch('test_relationships') %}\n {{ macro(model, to, field, **kwargs) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__test_not_null": {"unique_id": "macro.dbt.default__test_not_null", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/schema_tests/not_null.sql", "original_file_path": "macros/schema_tests/not_null.sql", "name": "default__test_not_null", "macro_sql": "{% macro default__test_not_null(model) %}\n\n{% set column_name = kwargs.get('column_name', kwargs.get('arg')) %}\n\nselect count(*) as validation_errors\nfrom {{ model }}\nwhere {{ column_name }} is null\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.test_not_null": {"unique_id": "macro.dbt.test_not_null", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/schema_tests/not_null.sql", "original_file_path": "macros/schema_tests/not_null.sql", "name": "test_not_null", "macro_sql": "{% macro test_not_null(model) %}\n {% set macro = adapter.dispatch('test_not_null') %}\n {{ macro(model, **kwargs) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__test_unique": {"unique_id": "macro.dbt.default__test_unique", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/schema_tests/unique.sql", "original_file_path": "macros/schema_tests/unique.sql", "name": "default__test_unique", "macro_sql": "{% macro default__test_unique(model) %}\n\n{% set column_name = kwargs.get('column_name', kwargs.get('arg')) %}\n\nselect count(*) as validation_errors\nfrom (\n\n select\n {{ column_name }}\n\n from {{ model }}\n where {{ column_name }} is not null\n group by {{ column_name }}\n having count(*) > 1\n\n) validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.test_unique": {"unique_id": "macro.dbt.test_unique", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/schema_tests/unique.sql", "original_file_path": "macros/schema_tests/unique.sql", "name": "test_unique", "macro_sql": "{% macro test_unique(model) %}\n {% set macro = adapter.dispatch('test_unique') %}\n {{ macro(model, **kwargs) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__test_accepted_values": {"unique_id": "macro.dbt.default__test_accepted_values", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/schema_tests/accepted_values.sql", "original_file_path": "macros/schema_tests/accepted_values.sql", "name": "default__test_accepted_values", "macro_sql": "{% macro default__test_accepted_values(model, values) %}\n\n{% set column_name = kwargs.get('column_name', kwargs.get('field')) %}\n{% set quote_values = kwargs.get('quote', True) %}\n\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 not in (\n {% for value in values -%}\n {% if quote_values -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {%- endfor %}\n )\n)\n\nselect count(*) as validation_errors\nfrom validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.test_accepted_values": {"unique_id": "macro.dbt.test_accepted_values", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/schema_tests/accepted_values.sql", "original_file_path": "macros/schema_tests/accepted_values.sql", "name": "test_accepted_values", "macro_sql": "{% macro test_accepted_values(model, values) %}\n {% set macro = adapter.dispatch('test_accepted_values') %}\n {{ macro(model, values, **kwargs) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.hubspot_source.get_contact_columns": {"unique_id": "macro.hubspot_source.get_contact_columns", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "macros/get_contact_columns.sql", "original_file_path": "macros/get_contact_columns.sql", "name": "get_contact_columns", "macro_sql": "{% macro get_contact_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_int()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('hubspot__contact_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.hubspot_source.get_email_event_open_columns": {"unique_id": "macro.hubspot_source.get_email_event_open_columns", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "macros/get_email_event_open_columns.sql", "original_file_path": "macros/get_email_event_open_columns.sql", "name": "get_email_event_open_columns", "macro_sql": "{% macro get_email_event_open_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"browser\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"duration\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"ip_address\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"location\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"user_agent\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.hubspot_source.get_email_event_spam_report_columns": {"unique_id": "macro.hubspot_source.get_email_event_spam_report_columns", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "macros/get_email_event_spam_report_columns.sql", "original_file_path": "macros/get_email_event_spam_report_columns.sql", "name": "get_email_event_spam_report_columns", "macro_sql": "{% macro get_email_event_spam_report_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"ip_address\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"user_agent\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.hubspot_source.get_email_event_bounce_columns": {"unique_id": "macro.hubspot_source.get_email_event_bounce_columns", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "macros/get_email_event_bounce_columns.sql", "original_file_path": "macros/get_email_event_bounce_columns.sql", "name": "get_email_event_bounce_columns", "macro_sql": "{% macro get_email_event_bounce_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"category\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"response\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"status\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.hubspot_source.get_ticket_pipeline_stage_columns": {"unique_id": "macro.hubspot_source.get_ticket_pipeline_stage_columns", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "macros/get_ticket_pipeline_stage_columns.sql", "original_file_path": "macros/get_ticket_pipeline_stage_columns.sql", "name": "get_ticket_pipeline_stage_columns", "macro_sql": "{% macro get_ticket_pipeline_stage_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"active\", \"datatype\": \"boolean\"},\n {\"name\": \"display_order\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"is_closed\", \"datatype\": \"boolean\"},\n {\"name\": \"label\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"pipeline_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"stage_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"ticket_state\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.hubspot_source.get_company_columns": {"unique_id": "macro.hubspot_source.get_company_columns", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "macros/get_company_columns.sql", "original_file_path": "macros/get_company_columns.sql", "name": "get_company_columns", "macro_sql": "{% macro get_company_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"is_deleted\", \"datatype\": \"boolean\"}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('hubspot__company_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.hubspot_source.get_ticket_deal_columns": {"unique_id": "macro.hubspot_source.get_ticket_deal_columns", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "macros/get_ticket_deal_columns.sql", "original_file_path": "macros/get_ticket_deal_columns.sql", "name": "get_ticket_deal_columns", "macro_sql": "{% macro get_ticket_deal_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"ticket_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"deal_id\", \"datatype\": dbt_utils.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.hubspot_source.get_ticket_pipeline_columns": {"unique_id": "macro.hubspot_source.get_ticket_pipeline_columns", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "macros/get_ticket_pipeline_columns.sql", "original_file_path": "macros/get_ticket_pipeline_columns.sql", "name": "get_ticket_pipeline_columns", "macro_sql": "{% macro get_ticket_pipeline_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"active\", \"datatype\": \"boolean\"},\n {\"name\": \"display_order\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"label\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"object_type_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"pipeline_id\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.hubspot_source.get_email_event_dropped_columns": {"unique_id": "macro.hubspot_source.get_email_event_dropped_columns", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "macros/get_email_event_dropped_columns.sql", "original_file_path": "macros/get_email_event_dropped_columns.sql", "name": "get_email_event_dropped_columns", "macro_sql": "{% macro get_email_event_dropped_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"bcc\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"cc\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"drop_message\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"drop_reason\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"reply_to\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"subject\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{% if target.type == 'snowflake' %}\n {{ columns.append({\"name\": \"FROM\", \"datatype\": dbt_utils.type_string(), \"quote\": True, \"alias\": \"from_email\"}) }}\n{% else %}\n {{ columns.append({\"name\": \"from\", \"datatype\": dbt_utils.type_string(), \"quote\": True, \"alias\": \"from_email\"}) }}\n{% endif %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.hubspot_source.get_engagement_email_columns": {"unique_id": "macro.hubspot_source.get_engagement_email_columns", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "macros/get_engagement_email_columns.sql", "original_file_path": "macros/get_engagement_email_columns.sql", "name": "get_engagement_email_columns", "macro_sql": "{% macro get_engagement_email_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"attached_video_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"attached_video_opened\", \"datatype\": \"boolean\"},\n {\"name\": \"attached_video_watched\", \"datatype\": \"boolean\"},\n {\"name\": \"email_send_event_id_created\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"email_send_event_id_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"engagement_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"error_message\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"facsimile_send_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"from_email\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"from_first_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"from_last_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"html\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"logged_from\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"media_processing_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"member_of_forwarded_subthread\", \"datatype\": \"boolean\"},\n {\"name\": \"message_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"post_send_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"recipient_drop_reasons\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sent_via\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"subject\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"text\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"thread_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"tracker_key\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"validation_skipped\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.hubspot_source.get_email_event_forward_columns": {"unique_id": "macro.hubspot_source.get_email_event_forward_columns", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "macros/get_email_event_forward_columns.sql", "original_file_path": "macros/get_email_event_forward_columns.sql", "name": "get_email_event_forward_columns", "macro_sql": "{% macro get_email_event_forward_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"browser\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"ip_address\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"location\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"user_agent\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.hubspot_source.get_deal_pipeline_columns": {"unique_id": "macro.hubspot_source.get_deal_pipeline_columns", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "macros/get_deal_pipeline_columns.sql", "original_file_path": "macros/get_deal_pipeline_columns.sql", "name": "get_deal_pipeline_columns", "macro_sql": "{% macro get_deal_pipeline_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"active\", \"datatype\": \"boolean\"},\n {\"name\": \"display_order\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"label\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"pipeline_id\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.hubspot_source.get_email_event_click_columns": {"unique_id": "macro.hubspot_source.get_email_event_click_columns", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "macros/get_email_event_click_columns.sql", "original_file_path": "macros/get_email_event_click_columns.sql", "name": "get_email_event_click_columns", "macro_sql": "{% macro get_email_event_click_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"browser\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"ip_address\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"location\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"referer\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"url\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"user_agent\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.hubspot_source.get_email_event_deferred_columns": {"unique_id": "macro.hubspot_source.get_email_event_deferred_columns", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "macros/get_email_event_deferred_columns.sql", "original_file_path": "macros/get_email_event_deferred_columns.sql", "name": "get_email_event_deferred_columns", "macro_sql": "{% macro get_email_event_deferred_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"attempt\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"response\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.hubspot_source.get_deal_columns": {"unique_id": "macro.hubspot_source.get_deal_columns", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "macros/get_deal_columns.sql", "original_file_path": "macros/get_deal_columns.sql", "name": "get_deal_columns", "macro_sql": "{% macro get_deal_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"deal_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"deal_pipeline_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"deal_pipeline_stage_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"is_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"owner_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"portal_id\", \"datatype\": dbt_utils.type_int()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('hubspot__deal_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.hubspot_source.get_engagement_columns": {"unique_id": "macro.hubspot_source.get_engagement_columns", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "macros/get_engagement_columns.sql", "original_file_path": "macros/get_engagement_columns.sql", "name": "get_engagement_columns", "macro_sql": "{% macro get_engagement_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"active\", \"datatype\": \"boolean\"},\n {\"name\": \"activity_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"last_updated\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"owner_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"portal_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"timestamp\", \"datatype\": dbt_utils.type_timestamp(), \"alias\": \"occurred_timestamp\"},\n {\"name\": \"type\", \"datatype\": dbt_utils.type_string(), \"alias\": \"engagement_type\"}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.hubspot_source.get_engagement_contact_columns": {"unique_id": "macro.hubspot_source.get_engagement_contact_columns", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "macros/get_engagement_contact_columns.sql", "original_file_path": "macros/get_engagement_contact_columns.sql", "name": "get_engagement_contact_columns", "macro_sql": "{% macro get_engagement_contact_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"contact_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"engagement_id\", \"datatype\": dbt_utils.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.hubspot_source.get_email_event_columns": {"unique_id": "macro.hubspot_source.get_email_event_columns", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "macros/get_email_event_columns.sql", "original_file_path": "macros/get_email_event_columns.sql", "name": "get_email_event_columns", "macro_sql": "{% macro get_email_event_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"app_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"caused_by_created\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"caused_by_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"email_campaign_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"filtered_event\", \"datatype\": \"boolean\"},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"obsoleted_by_created\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"obsoleted_by_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"portal_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"recipient\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sent_by_created\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"sent_by_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"type\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.hubspot_source.get_engagement_company_columns": {"unique_id": "macro.hubspot_source.get_engagement_company_columns", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "macros/get_engagement_company_columns.sql", "original_file_path": "macros/get_engagement_company_columns.sql", "name": "get_engagement_company_columns", "macro_sql": "{% macro get_engagement_company_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"company_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"engagement_id\", \"datatype\": dbt_utils.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.hubspot_source.get_deal_pipeline_stage_columns": {"unique_id": "macro.hubspot_source.get_deal_pipeline_stage_columns", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "macros/get_deal_pipeline_stage_columns.sql", "original_file_path": "macros/get_deal_pipeline_stage_columns.sql", "name": "get_deal_pipeline_stage_columns", "macro_sql": "{% macro get_deal_pipeline_stage_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"active\", \"datatype\": \"boolean\"},\n {\"name\": \"closed_won\", \"datatype\": \"boolean\"},\n {\"name\": \"display_order\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"label\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"pipeline_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"probability\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"stage_id\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.hubspot_source.get_email_campaign_columns": {"unique_id": "macro.hubspot_source.get_email_campaign_columns", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "macros/get_email_campaign_columns.sql", "original_file_path": "macros/get_email_campaign_columns.sql", "name": "get_email_campaign_columns", "macro_sql": "{% macro get_email_campaign_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"app_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"app_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"content_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"num_included\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"num_queued\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"sub_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"subject\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"type\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.hubspot_source.get_email_event_sent_columns": {"unique_id": "macro.hubspot_source.get_email_event_sent_columns", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "macros/get_email_event_sent_columns.sql", "original_file_path": "macros/get_email_event_sent_columns.sql", "name": "get_email_event_sent_columns", "macro_sql": "{% macro get_email_event_sent_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"bcc\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"cc\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"reply_to\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"subject\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{% if target.type == 'snowflake' %}\n {{ columns.append({\"name\": \"FROM\", \"datatype\": dbt_utils.type_string(), \"quote\": True, \"alias\": \"from_email\"}) }}\n{% else %}\n {{ columns.append({\"name\": \"from\", \"datatype\": dbt_utils.type_string(), \"quote\": True, \"alias\": \"from_email\"}) }}\n{% endif %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.hubspot_source.get_deal_stage_columns": {"unique_id": "macro.hubspot_source.get_deal_stage_columns", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "macros/get_deal_stage_columns.sql", "original_file_path": "macros/get_deal_stage_columns.sql", "name": "get_deal_stage_columns", "macro_sql": "{% macro get_deal_stage_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_active\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_end\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"_fivetran_start\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"date_entered\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"deal_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"source\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"source_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"value\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.hubspot_source.get_contact_list_columns": {"unique_id": "macro.hubspot_source.get_contact_list_columns", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "macros/get_contact_list_columns.sql", "original_file_path": "macros/get_contact_list_columns.sql", "name": "get_contact_list_columns", "macro_sql": "{% macro get_contact_list_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"deleteable\", \"datatype\": \"boolean\"},\n {\"name\": \"dynamic\", \"datatype\": \"boolean\"},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"metadata_error\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"metadata_last_processing_state_change_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"metadata_last_size_change_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"metadata_processing\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"metadata_size\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"portal_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.hubspot_source.get_ticket_property_history_columns": {"unique_id": "macro.hubspot_source.get_ticket_property_history_columns", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "macros/get_ticket_property_history_columns.sql", "original_file_path": "macros/get_ticket_property_history_columns.sql", "name": "get_ticket_property_history_columns", "macro_sql": "{% macro get_ticket_property_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"ticket_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"source\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"source_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"timestamp_instant\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"value\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.hubspot_source.get_owner_columns": {"unique_id": "macro.hubspot_source.get_owner_columns", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "macros/get_owner_columns.sql", "original_file_path": "macros/get_owner_columns.sql", "name": "get_owner_columns", "macro_sql": "{% macro get_owner_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"email\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"first_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"last_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"owner_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"portal_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.hubspot_source.get_engagement_deal_columns": {"unique_id": "macro.hubspot_source.get_engagement_deal_columns", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "macros/get_engagement_deal_columns.sql", "original_file_path": "macros/get_engagement_deal_columns.sql", "name": "get_engagement_deal_columns", "macro_sql": "{% macro get_engagement_deal_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"deal_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"engagement_id\", \"datatype\": dbt_utils.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.hubspot_source.get_email_event_status_change_columns": {"unique_id": "macro.hubspot_source.get_email_event_status_change_columns", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "macros/get_email_event_status_change_columns.sql", "original_file_path": "macros/get_email_event_status_change_columns.sql", "name": "get_email_event_status_change_columns", "macro_sql": "{% macro get_email_event_status_change_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"bounced\", \"datatype\": \"boolean\"},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"portal_subscription_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"requested_by\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"source\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"subscriptions\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.hubspot_source.get_engagement_task_columns": {"unique_id": "macro.hubspot_source.get_engagement_task_columns", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "macros/get_engagement_task_columns.sql", "original_file_path": "macros/get_engagement_task_columns.sql", "name": "get_engagement_task_columns", "macro_sql": "{% macro get_engagement_task_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"body\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"completion_date\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"engagement_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"for_object_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"is_all_day\", \"datatype\": \"boolean\"},\n {\"name\": \"priority\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"probability_to_complete\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"subject\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"task_type\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.hubspot_source.get_ticket_contact_columns": {"unique_id": "macro.hubspot_source.get_ticket_contact_columns", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "macros/get_ticket_contact_columns.sql", "original_file_path": "macros/get_ticket_contact_columns.sql", "name": "get_ticket_contact_columns", "macro_sql": "{% macro get_ticket_contact_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"ticket_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"contact_id\", \"datatype\": dbt_utils.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.hubspot_source.get_ticket_company_columns": {"unique_id": "macro.hubspot_source.get_ticket_company_columns", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "macros/get_ticket_company_columns.sql", "original_file_path": "macros/get_ticket_company_columns.sql", "name": "get_ticket_company_columns", "macro_sql": "{% macro get_ticket_company_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"ticket_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"company_id\", \"datatype\": dbt_utils.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.hubspot_source.get_ticket_columns": {"unique_id": "macro.hubspot_source.get_ticket_columns", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "macros/get_ticket_columns.sql", "original_file_path": "macros/get_ticket_columns.sql", "name": "get_ticket_columns", "macro_sql": "{% macro get_ticket_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"is_deleted\", \"datatype\": \"boolean\"}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('hubspot__ticket_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.hubspot_source.get_deal_company_columns": {"unique_id": "macro.hubspot_source.get_deal_company_columns", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "macros/get_deal_company_columns.sql", "original_file_path": "macros/get_deal_company_columns.sql", "name": "get_deal_company_columns", "macro_sql": "{% macro get_deal_company_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"deal_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"company_id\", \"datatype\": dbt_utils.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.hubspot_source.get_deal_property_history_columns": {"unique_id": "macro.hubspot_source.get_deal_property_history_columns", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "macros/get_deal_property_history_columns.sql", "original_file_path": "macros/get_deal_property_history_columns.sql", "name": "get_deal_property_history_columns", "macro_sql": "{% macro get_deal_property_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"deal_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"source\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"source_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"timestamp\", \"datatype\": dbt_utils.type_timestamp(), \"alias\": \"change_timestamp\"},\n {\"name\": \"value\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.hubspot_source.get_ticket_engagement_columns": {"unique_id": "macro.hubspot_source.get_ticket_engagement_columns", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "macros/get_ticket_engagement_columns.sql", "original_file_path": "macros/get_ticket_engagement_columns.sql", "name": "get_ticket_engagement_columns", "macro_sql": "{% macro get_ticket_engagement_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"ticket_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"engagement_id\", \"datatype\": dbt_utils.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.hubspot_source.get_company_property_history_columns": {"unique_id": "macro.hubspot_source.get_company_property_history_columns", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "macros/get_company_property_history_columns.sql", "original_file_path": "macros/get_company_property_history_columns.sql", "name": "get_company_property_history_columns", "macro_sql": "{% macro get_company_property_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"company_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"source\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"source_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"timestamp\", \"datatype\": dbt_utils.type_timestamp(), \"alias\": \"change_timestamp\"},\n {\"name\": \"value\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.hubspot_source.get_engagement_note_columns": {"unique_id": "macro.hubspot_source.get_engagement_note_columns", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "macros/get_engagement_note_columns.sql", "original_file_path": "macros/get_engagement_note_columns.sql", "name": "get_engagement_note_columns", "macro_sql": "{% macro get_engagement_note_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"body\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"engagement_id\", \"datatype\": dbt_utils.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.hubspot_source.get_engagement_meeting_columns": {"unique_id": "macro.hubspot_source.get_engagement_meeting_columns", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "macros/get_engagement_meeting_columns.sql", "original_file_path": "macros/get_engagement_meeting_columns.sql", "name": "get_engagement_meeting_columns", "macro_sql": "{% macro get_engagement_meeting_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"body\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_from_link_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"end_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"engagement_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"external_url\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"location\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"meeting_outcome\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"pre_meeting_prospect_reminders\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"source\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"source_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"start_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"title\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"web_conference_meeting_id\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.hubspot_source.get_contact_list_member_columns": {"unique_id": "macro.hubspot_source.get_contact_list_member_columns", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "macros/get_contact_list_member_columns.sql", "original_file_path": "macros/get_contact_list_member_columns.sql", "name": "get_contact_list_member_columns", "macro_sql": "{% macro get_contact_list_member_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"added_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"contact_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"contact_list_id\", \"datatype\": dbt_utils.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.hubspot_source.get_email_event_delivered_columns": {"unique_id": "macro.hubspot_source.get_email_event_delivered_columns", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "macros/get_email_event_delivered_columns.sql", "original_file_path": "macros/get_email_event_delivered_columns.sql", "name": "get_email_event_delivered_columns", "macro_sql": "{% macro get_email_event_delivered_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"response\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"smtp_id\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.hubspot_source.get_contact_property_history_columns": {"unique_id": "macro.hubspot_source.get_contact_property_history_columns", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "macros/get_contact_property_history_columns.sql", "original_file_path": "macros/get_contact_property_history_columns.sql", "name": "get_contact_property_history_columns", "macro_sql": "{% macro get_contact_property_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"contact_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"source\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"source_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"timestamp\", \"datatype\": dbt_utils.type_timestamp(), \"alias\": \"change_timestamp\"},\n {\"name\": \"value\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.hubspot_source.get_email_event_print_columns": {"unique_id": "macro.hubspot_source.get_email_event_print_columns", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "macros/get_email_event_print_columns.sql", "original_file_path": "macros/get_email_event_print_columns.sql", "name": "get_email_event_print_columns", "macro_sql": "{% macro get_email_event_print_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"browser\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"ip_address\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"location\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"user_agent\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.hubspot_source.get_engagement_call_columns": {"unique_id": "macro.hubspot_source.get_engagement_call_columns", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "macros/get_engagement_call_columns.sql", "original_file_path": "macros/get_engagement_call_columns.sql", "name": "get_engagement_call_columns", "macro_sql": "{% macro get_engagement_call_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"body\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"callee_object_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"callee_object_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"disposition\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"duration_milliseconds\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"engagement_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"external_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"external_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"from_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"recording_url\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"to_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"transcription_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"unknown_visitor_conversation\", \"datatype\": \"boolean\"}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.except": {"unique_id": "macro.dbt_utils.except", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/except.sql", "original_file_path": "macros/cross_db_utils/except.sql", "name": "except", "macro_sql": "{% macro except() %}\n {{ return(adapter.dispatch('except', packages = dbt_utils._get_utils_namespaces())()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__except": {"unique_id": "macro.dbt_utils.default__except", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/except.sql", "original_file_path": "macros/cross_db_utils/except.sql", "name": "default__except", "macro_sql": "{% macro default__except() %}\n\n except\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.bigquery__except": {"unique_id": "macro.dbt_utils.bigquery__except", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/except.sql", "original_file_path": "macros/cross_db_utils/except.sql", "name": "bigquery__except", "macro_sql": "{% macro bigquery__except() %}\n\n except distinct\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.replace": {"unique_id": "macro.dbt_utils.replace", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/replace.sql", "original_file_path": "macros/cross_db_utils/replace.sql", "name": "replace", "macro_sql": "{% macro replace(field, old_chars, new_chars) -%}\n {{ return(adapter.dispatch('replace', packages = dbt_utils._get_utils_namespaces()) (field, old_chars, new_chars)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__replace": {"unique_id": "macro.dbt_utils.default__replace", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/replace.sql", "original_file_path": "macros/cross_db_utils/replace.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.concat": {"unique_id": "macro.dbt_utils.concat", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/concat.sql", "original_file_path": "macros/cross_db_utils/concat.sql", "name": "concat", "macro_sql": "{% macro concat(fields) -%}\n {{ return(adapter.dispatch('concat', packages = dbt_utils._get_utils_namespaces())(fields)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__concat": {"unique_id": "macro.dbt_utils.default__concat", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/concat.sql", "original_file_path": "macros/cross_db_utils/concat.sql", "name": "default__concat", "macro_sql": "{% macro default__concat(fields) -%}\n concat({{ fields|join(', ') }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.alternative_concat": {"unique_id": "macro.dbt_utils.alternative_concat", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/concat.sql", "original_file_path": "macros/cross_db_utils/concat.sql", "name": "alternative_concat", "macro_sql": "{% macro alternative_concat(fields) %}\n {{ fields|join(' || ') }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.redshift__concat": {"unique_id": "macro.dbt_utils.redshift__concat", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/concat.sql", "original_file_path": "macros/cross_db_utils/concat.sql", "name": "redshift__concat", "macro_sql": "{% macro redshift__concat(fields) %}\n {{ dbt_utils.alternative_concat(fields) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.snowflake__concat": {"unique_id": "macro.dbt_utils.snowflake__concat", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/concat.sql", "original_file_path": "macros/cross_db_utils/concat.sql", "name": "snowflake__concat", "macro_sql": "{% macro snowflake__concat(fields) %}\n {{ dbt_utils.alternative_concat(fields) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.type_string": {"unique_id": "macro.dbt_utils.type_string", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "type_string", "macro_sql": "\n\n{%- macro type_string() -%}\n {{ return(adapter.dispatch('type_string', packages = dbt_utils._get_utils_namespaces())()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__type_string": {"unique_id": "macro.dbt_utils.default__type_string", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "default__type_string", "macro_sql": "{% macro default__type_string() %}\n string\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.redshift__type_string": {"unique_id": "macro.dbt_utils.redshift__type_string", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "redshift__type_string", "macro_sql": "\n\n{%- macro redshift__type_string() -%}\n varchar\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.postgres__type_string": {"unique_id": "macro.dbt_utils.postgres__type_string", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "postgres__type_string", "macro_sql": "{% macro postgres__type_string() %}\n varchar\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.snowflake__type_string": {"unique_id": "macro.dbt_utils.snowflake__type_string", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "snowflake__type_string", "macro_sql": "{% macro snowflake__type_string() %}\n varchar\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.type_timestamp": {"unique_id": "macro.dbt_utils.type_timestamp", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "type_timestamp", "macro_sql": "\n\n{%- macro type_timestamp() -%}\n {{ return(adapter.dispatch('type_timestamp', packages = dbt_utils._get_utils_namespaces())()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__type_timestamp": {"unique_id": "macro.dbt_utils.default__type_timestamp", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "default__type_timestamp", "macro_sql": "{% macro default__type_timestamp() %}\n timestamp\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.snowflake__type_timestamp": {"unique_id": "macro.dbt_utils.snowflake__type_timestamp", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "snowflake__type_timestamp", "macro_sql": "{% macro snowflake__type_timestamp() %}\n timestamp_ntz\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.type_float": {"unique_id": "macro.dbt_utils.type_float", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "type_float", "macro_sql": "\n\n{%- macro type_float() -%}\n {{ return(adapter.dispatch('type_float', packages = dbt_utils._get_utils_namespaces())()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__type_float": {"unique_id": "macro.dbt_utils.default__type_float", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "default__type_float", "macro_sql": "{% macro default__type_float() %}\n float\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.bigquery__type_float": {"unique_id": "macro.dbt_utils.bigquery__type_float", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "bigquery__type_float", "macro_sql": "{% macro bigquery__type_float() %}\n float64\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.type_numeric": {"unique_id": "macro.dbt_utils.type_numeric", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "type_numeric", "macro_sql": "\n\n{%- macro type_numeric() -%}\n {{ return(adapter.dispatch('type_numeric', packages = dbt_utils._get_utils_namespaces())()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__type_numeric": {"unique_id": "macro.dbt_utils.default__type_numeric", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "default__type_numeric", "macro_sql": "{% macro default__type_numeric() %}\n numeric(28, 6)\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.bigquery__type_numeric": {"unique_id": "macro.dbt_utils.bigquery__type_numeric", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "bigquery__type_numeric", "macro_sql": "{% macro bigquery__type_numeric() %}\n numeric\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.type_bigint": {"unique_id": "macro.dbt_utils.type_bigint", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "type_bigint", "macro_sql": "\n\n{%- macro type_bigint() -%}\n {{ return(adapter.dispatch('type_bigint', packages = dbt_utils._get_utils_namespaces())()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__type_bigint": {"unique_id": "macro.dbt_utils.default__type_bigint", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "default__type_bigint", "macro_sql": "{% macro default__type_bigint() %}\n bigint\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.bigquery__type_bigint": {"unique_id": "macro.dbt_utils.bigquery__type_bigint", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "bigquery__type_bigint", "macro_sql": "{% macro bigquery__type_bigint() %}\n int64\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.type_int": {"unique_id": "macro.dbt_utils.type_int", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "type_int", "macro_sql": "\n\n{%- macro type_int() -%}\n {{ return(adapter.dispatch('type_int', packages = dbt_utils._get_utils_namespaces())()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__type_int": {"unique_id": "macro.dbt_utils.default__type_int", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "default__type_int", "macro_sql": "{% macro default__type_int() %}\n int\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.bigquery__type_int": {"unique_id": "macro.dbt_utils.bigquery__type_int", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "bigquery__type_int", "macro_sql": "{% macro bigquery__type_int() %}\n int64\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils._is_relation": {"unique_id": "macro.dbt_utils._is_relation", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/_is_relation.sql", "original_file_path": "macros/cross_db_utils/_is_relation.sql", "name": "_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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.length": {"unique_id": "macro.dbt_utils.length", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/length.sql", "original_file_path": "macros/cross_db_utils/length.sql", "name": "length", "macro_sql": "{% macro length(expression) -%}\n {{ return(adapter.dispatch('length', packages = dbt_utils._get_utils_namespaces()) (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__length": {"unique_id": "macro.dbt_utils.default__length", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/length.sql", "original_file_path": "macros/cross_db_utils/length.sql", "name": "default__length", "macro_sql": "{% macro default__length(expression) %}\n \n length(\n {{ expression }}\n )\n \n{%- endmacro -%}\n\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.redshift__length": {"unique_id": "macro.dbt_utils.redshift__length", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/length.sql", "original_file_path": "macros/cross_db_utils/length.sql", "name": "redshift__length", "macro_sql": "{% macro redshift__length(expression) %}\n\n len(\n {{ expression }}\n )\n \n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.dateadd": {"unique_id": "macro.dbt_utils.dateadd", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/dateadd.sql", "original_file_path": "macros/cross_db_utils/dateadd.sql", "name": "dateadd", "macro_sql": "{% macro dateadd(datepart, interval, from_date_or_timestamp) %}\n {{ return(adapter.dispatch('dateadd', packages = dbt_utils._get_utils_namespaces())(datepart, interval, from_date_or_timestamp)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__dateadd": {"unique_id": "macro.dbt_utils.default__dateadd", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/dateadd.sql", "original_file_path": "macros/cross_db_utils/dateadd.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.bigquery__dateadd": {"unique_id": "macro.dbt_utils.bigquery__dateadd", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/dateadd.sql", "original_file_path": "macros/cross_db_utils/dateadd.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.postgres__dateadd": {"unique_id": "macro.dbt_utils.postgres__dateadd", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/dateadd.sql", "original_file_path": "macros/cross_db_utils/dateadd.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.intersect": {"unique_id": "macro.dbt_utils.intersect", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/intersect.sql", "original_file_path": "macros/cross_db_utils/intersect.sql", "name": "intersect", "macro_sql": "{% macro intersect() %}\n {{ return(adapter.dispatch('intersect', packages = dbt_utils._get_utils_namespaces())()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__intersect": {"unique_id": "macro.dbt_utils.default__intersect", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/intersect.sql", "original_file_path": "macros/cross_db_utils/intersect.sql", "name": "default__intersect", "macro_sql": "{% macro default__intersect() %}\n\n intersect\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.bigquery__intersect": {"unique_id": "macro.dbt_utils.bigquery__intersect", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/intersect.sql", "original_file_path": "macros/cross_db_utils/intersect.sql", "name": "bigquery__intersect", "macro_sql": "{% macro bigquery__intersect() %}\n\n intersect distinct\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.right": {"unique_id": "macro.dbt_utils.right", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/right.sql", "original_file_path": "macros/cross_db_utils/right.sql", "name": "right", "macro_sql": "{% macro right(string_text, length_expression) -%}\n {{ return(adapter.dispatch('right', packages = dbt_utils._get_utils_namespaces()) (string_text, length_expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__right": {"unique_id": "macro.dbt_utils.default__right", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/right.sql", "original_file_path": "macros/cross_db_utils/right.sql", "name": "default__right", "macro_sql": "{% macro default__right(string_text, length_expression) %}\n\n right(\n {{ string_text }},\n {{ length_expression }}\n )\n \n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.bigquery__right": {"unique_id": "macro.dbt_utils.bigquery__right", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/right.sql", "original_file_path": "macros/cross_db_utils/right.sql", "name": "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 -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.snowflake__right": {"unique_id": "macro.dbt_utils.snowflake__right", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/right.sql", "original_file_path": "macros/cross_db_utils/right.sql", "name": "snowflake__right", "macro_sql": "{% macro snowflake__right(string_text, length_expression) %}\n\n case when {{ length_expression }} = 0 \n then ''\n else \n right(\n {{ string_text }},\n {{ length_expression }}\n )\n end\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.datediff": {"unique_id": "macro.dbt_utils.datediff", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datediff.sql", "original_file_path": "macros/cross_db_utils/datediff.sql", "name": "datediff", "macro_sql": "{% macro datediff(first_date, second_date, datepart) %}\n {{ return(adapter.dispatch('datediff', packages = dbt_utils._get_utils_namespaces())(first_date, second_date, datepart)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__datediff": {"unique_id": "macro.dbt_utils.default__datediff", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datediff.sql", "original_file_path": "macros/cross_db_utils/datediff.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.bigquery__datediff": {"unique_id": "macro.dbt_utils.bigquery__datediff", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datediff.sql", "original_file_path": "macros/cross_db_utils/datediff.sql", "name": "bigquery__datediff", "macro_sql": "{% macro bigquery__datediff(first_date, second_date, datepart) %}\n\n datetime_diff(\n cast({{second_date}} as datetime),\n cast({{first_date}} as datetime),\n {{datepart}}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.postgres__datediff": {"unique_id": "macro.dbt_utils.postgres__datediff", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datediff.sql", "original_file_path": "macros/cross_db_utils/datediff.sql", "name": "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 ({{ dbt_utils.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_utils.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_utils.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_utils.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_utils.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_utils.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_utils.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_utils.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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.safe_cast": {"unique_id": "macro.dbt_utils.safe_cast", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/safe_cast.sql", "original_file_path": "macros/cross_db_utils/safe_cast.sql", "name": "safe_cast", "macro_sql": "{% macro safe_cast(field, type) %}\n {{ return(adapter.dispatch('safe_cast', packages = dbt_utils._get_utils_namespaces()) (field, type)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__safe_cast": {"unique_id": "macro.dbt_utils.default__safe_cast", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/safe_cast.sql", "original_file_path": "macros/cross_db_utils/safe_cast.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.snowflake__safe_cast": {"unique_id": "macro.dbt_utils.snowflake__safe_cast", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/safe_cast.sql", "original_file_path": "macros/cross_db_utils/safe_cast.sql", "name": "snowflake__safe_cast", "macro_sql": "{% macro snowflake__safe_cast(field, type) %}\n try_cast({{field}} as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.bigquery__safe_cast": {"unique_id": "macro.dbt_utils.bigquery__safe_cast", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/safe_cast.sql", "original_file_path": "macros/cross_db_utils/safe_cast.sql", "name": "bigquery__safe_cast", "macro_sql": "{% macro bigquery__safe_cast(field, type) %}\n safe_cast({{field}} as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.hash": {"unique_id": "macro.dbt_utils.hash", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/hash.sql", "original_file_path": "macros/cross_db_utils/hash.sql", "name": "hash", "macro_sql": "{% macro hash(field) -%}\n {{ return(adapter.dispatch('hash', packages = dbt_utils._get_utils_namespaces()) (field)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__hash": {"unique_id": "macro.dbt_utils.default__hash", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/hash.sql", "original_file_path": "macros/cross_db_utils/hash.sql", "name": "default__hash", "macro_sql": "{% macro default__hash(field) -%}\n md5(cast({{field}} as {{dbt_utils.type_string()}}))\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.bigquery__hash": {"unique_id": "macro.dbt_utils.bigquery__hash", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/hash.sql", "original_file_path": "macros/cross_db_utils/hash.sql", "name": "bigquery__hash", "macro_sql": "{% macro bigquery__hash(field) -%}\n to_hex({{dbt_utils.default__hash(field)}})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.identifier": {"unique_id": "macro.dbt_utils.identifier", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/identifier.sql", "original_file_path": "macros/cross_db_utils/identifier.sql", "name": "identifier", "macro_sql": "{% macro identifier(value) %}\t\n {%- set error_message = '\n Warning: the `identifier` macro is no longer supported and will be deprecated in a future release of dbt-utils. \\\n Use `adapter.quote` instead. The {}.{} model triggered this warning. \\\n '.format(model.package_name, model.name) -%}\n {%- do exceptions.warn(error_message) -%}\n {{ return(adapter.dispatch('identifier', packages = dbt_utils._get_utils_namespaces()) (value)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__identifier": {"unique_id": "macro.dbt_utils.default__identifier", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/identifier.sql", "original_file_path": "macros/cross_db_utils/identifier.sql", "name": "default__identifier", "macro_sql": "{% macro default__identifier(value) -%}\t\n \"{{ value }}\"\t\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.bigquery__identifier": {"unique_id": "macro.dbt_utils.bigquery__identifier", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/identifier.sql", "original_file_path": "macros/cross_db_utils/identifier.sql", "name": "bigquery__identifier", "macro_sql": "{% macro bigquery__identifier(value) -%}\t\n `{{ value }}`\t\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.position": {"unique_id": "macro.dbt_utils.position", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/position.sql", "original_file_path": "macros/cross_db_utils/position.sql", "name": "position", "macro_sql": "{% macro position(substring_text, string_text) -%}\n {{ return(adapter.dispatch('position', packages = dbt_utils._get_utils_namespaces()) (substring_text, string_text)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__position": {"unique_id": "macro.dbt_utils.default__position", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/position.sql", "original_file_path": "macros/cross_db_utils/position.sql", "name": "default__position", "macro_sql": "{% macro default__position(substring_text, string_text) %}\n\n position(\n {{ substring_text }} in {{ string_text }}\n )\n \n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.bigquery__position": {"unique_id": "macro.dbt_utils.bigquery__position", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/position.sql", "original_file_path": "macros/cross_db_utils/position.sql", "name": "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 -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.string_literal": {"unique_id": "macro.dbt_utils.string_literal", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/literal.sql", "original_file_path": "macros/cross_db_utils/literal.sql", "name": "string_literal", "macro_sql": "{%- macro string_literal(value) -%}\n {{ return(adapter.dispatch('string_literal', packages = dbt_utils._get_utils_namespaces()) (value)) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__string_literal": {"unique_id": "macro.dbt_utils.default__string_literal", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/literal.sql", "original_file_path": "macros/cross_db_utils/literal.sql", "name": "default__string_literal", "macro_sql": "{% macro default__string_literal(value) -%}\n '{{ value }}'\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.current_timestamp": {"unique_id": "macro.dbt_utils.current_timestamp", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "current_timestamp", "macro_sql": "{% macro current_timestamp() -%}\n {{ return(adapter.dispatch('current_timestamp', packages = dbt_utils._get_utils_namespaces())()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__current_timestamp": {"unique_id": "macro.dbt_utils.default__current_timestamp", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "default__current_timestamp", "macro_sql": "{% macro default__current_timestamp() %}\n current_timestamp::{{dbt_utils.type_timestamp()}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.redshift__current_timestamp": {"unique_id": "macro.dbt_utils.redshift__current_timestamp", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "redshift__current_timestamp", "macro_sql": "{% macro redshift__current_timestamp() %}\n getdate()\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.bigquery__current_timestamp": {"unique_id": "macro.dbt_utils.bigquery__current_timestamp", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "bigquery__current_timestamp", "macro_sql": "{% macro bigquery__current_timestamp() %}\n current_timestamp\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.current_timestamp_in_utc": {"unique_id": "macro.dbt_utils.current_timestamp_in_utc", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "current_timestamp_in_utc", "macro_sql": "{% macro current_timestamp_in_utc() -%}\n {{ return(adapter.dispatch('current_timestamp_in_utc', packages = dbt_utils._get_utils_namespaces())()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__current_timestamp_in_utc": {"unique_id": "macro.dbt_utils.default__current_timestamp_in_utc", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "default__current_timestamp_in_utc", "macro_sql": "{% macro default__current_timestamp_in_utc() %}\n {{dbt_utils.current_timestamp()}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.snowflake__current_timestamp_in_utc": {"unique_id": "macro.dbt_utils.snowflake__current_timestamp_in_utc", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "snowflake__current_timestamp_in_utc", "macro_sql": "{% macro snowflake__current_timestamp_in_utc() %}\n convert_timezone('UTC', {{dbt_utils.current_timestamp()}})::{{dbt_utils.type_timestamp()}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.postgres__current_timestamp_in_utc": {"unique_id": "macro.dbt_utils.postgres__current_timestamp_in_utc", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "postgres__current_timestamp_in_utc", "macro_sql": "{% macro postgres__current_timestamp_in_utc() %}\n (current_timestamp at time zone 'utc')::{{dbt_utils.type_timestamp()}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.width_bucket": {"unique_id": "macro.dbt_utils.width_bucket", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/width_bucket.sql", "original_file_path": "macros/cross_db_utils/width_bucket.sql", "name": "width_bucket", "macro_sql": "{% macro width_bucket(expr, min_value, max_value, num_buckets) %}\n {{ return(adapter.dispatch('width_bucket', packages = dbt_utils._get_utils_namespaces()) (expr, min_value, max_value, num_buckets)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__width_bucket": {"unique_id": "macro.dbt_utils.default__width_bucket", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/width_bucket.sql", "original_file_path": "macros/cross_db_utils/width_bucket.sql", "name": "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_utils.safe_cast(expr, dbt_utils.type_numeric() ) }},\n {{ dbt_utils.safe_cast(bin_size, dbt_utils.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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.redshift__width_bucket": {"unique_id": "macro.dbt_utils.redshift__width_bucket", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/width_bucket.sql", "original_file_path": "macros/cross_db_utils/width_bucket.sql", "name": "redshift__width_bucket", "macro_sql": "{% macro redshift__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 exactly at the bucket edge\n case\n when\n {{ dbt_utils.safe_cast(expr, dbt_utils.type_numeric() ) }} %\n {{ dbt_utils.safe_cast(bin_size, dbt_utils.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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.snowflake__width_bucket": {"unique_id": "macro.dbt_utils.snowflake__width_bucket", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/width_bucket.sql", "original_file_path": "macros/cross_db_utils/width_bucket.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils._get_utils_namespaces": {"unique_id": "macro.dbt_utils._get_utils_namespaces", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/_get_utils_namespaces.sql", "original_file_path": "macros/cross_db_utils/_get_utils_namespaces.sql", "name": "_get_utils_namespaces", "macro_sql": "{% macro _get_utils_namespaces() %}\n {% set override_namespaces = var('dbt_utils_dispatch_list', []) %}\n {% do return(override_namespaces + ['dbt_utils']) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.last_day": {"unique_id": "macro.dbt_utils.last_day", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/last_day.sql", "original_file_path": "macros/cross_db_utils/last_day.sql", "name": "last_day", "macro_sql": "{% macro last_day(date, datepart) %}\n {{ return(adapter.dispatch('last_day', packages = dbt_utils._get_utils_namespaces()) (date, datepart)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default_last_day": {"unique_id": "macro.dbt_utils.default_last_day", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/last_day.sql", "original_file_path": "macros/cross_db_utils/last_day.sql", "name": "default_last_day", "macro_sql": "\n\n\n{%- macro default_last_day(date, datepart) -%}\n cast(\n {{dbt_utils.dateadd('day', '-1',\n dbt_utils.dateadd(datepart, '1', dbt_utils.date_trunc(datepart, date))\n )}}\n as date)\n{%- endmacro -%}\n\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__last_day": {"unique_id": "macro.dbt_utils.default__last_day", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/last_day.sql", "original_file_path": "macros/cross_db_utils/last_day.sql", "name": "default__last_day", "macro_sql": "{% macro default__last_day(date, datepart) -%}\n {{dbt_utils.default_last_day(date, datepart)}}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.postgres__last_day": {"unique_id": "macro.dbt_utils.postgres__last_day", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/last_day.sql", "original_file_path": "macros/cross_db_utils/last_day.sql", "name": "postgres__last_day", "macro_sql": "{% macro postgres__last_day(date, datepart) -%}\n\n {%- if datepart == 'quarter' -%}\n {{ exceptions.raise_compiler_error(\n \"dbt_utils.last_day is not supported for datepart 'quarter' on this adapter\") }}\n {%- else -%}\n {{dbt_utils.default_last_day(date, datepart)}}\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.split_part": {"unique_id": "macro.dbt_utils.split_part", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/split_part.sql", "original_file_path": "macros/cross_db_utils/split_part.sql", "name": "split_part", "macro_sql": "{% macro split_part(string_text, delimiter_text, part_number) %}\n {{ return(adapter.dispatch('split_part', packages = dbt_utils._get_utils_namespaces()) (string_text, delimiter_text, part_number)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__split_part": {"unique_id": "macro.dbt_utils.default__split_part", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/split_part.sql", "original_file_path": "macros/cross_db_utils/split_part.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.bigquery__split_part": {"unique_id": "macro.dbt_utils.bigquery__split_part", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/split_part.sql", "original_file_path": "macros/cross_db_utils/split_part.sql", "name": "bigquery__split_part", "macro_sql": "{% macro bigquery__split_part(string_text, delimiter_text, part_number) %}\n\n split(\n {{ string_text }},\n {{ delimiter_text }}\n )[safe_offset({{ part_number - 1 }})]\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.date_trunc": {"unique_id": "macro.dbt_utils.date_trunc", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/date_trunc.sql", "original_file_path": "macros/cross_db_utils/date_trunc.sql", "name": "date_trunc", "macro_sql": "{% macro date_trunc(datepart, date) -%}\n {{ return(adapter.dispatch('date_trunc', packages = dbt_utils._get_utils_namespaces()) (datepart, date)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__date_trunc": {"unique_id": "macro.dbt_utils.default__date_trunc", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/date_trunc.sql", "original_file_path": "macros/cross_db_utils/date_trunc.sql", "name": "default__date_trunc", "macro_sql": "{% macro default__date_trunc(datepart, date) %}\n date_trunc('{{datepart}}', {{date}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.bigquery__date_trunc": {"unique_id": "macro.dbt_utils.bigquery__date_trunc", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/date_trunc.sql", "original_file_path": "macros/cross_db_utils/date_trunc.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils._is_ephemeral": {"unique_id": "macro.dbt_utils._is_ephemeral", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/_is_ephemeral.sql", "original_file_path": "macros/cross_db_utils/_is_ephemeral.sql", "name": "_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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.get_period_boundaries": {"unique_id": "macro.dbt_utils.get_period_boundaries", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/materializations/insert_by_period_materialization.sql", "original_file_path": "macros/materializations/insert_by_period_materialization.sql", "name": "get_period_boundaries", "macro_sql": "{% macro get_period_boundaries(target_schema, target_table, timestamp_field, start_date, stop_date, period) -%}\n {{ return(adapter.dispatch('get_period_boundaries', packages = dbt_utils._get_utils_namespaces())(target_schema, target_table, timestamp_field, start_date, stop_date, period)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__get_period_boundaries": {"unique_id": "macro.dbt_utils.default__get_period_boundaries", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/materializations/insert_by_period_materialization.sql", "original_file_path": "macros/materializations/insert_by_period_materialization.sql", "name": "default__get_period_boundaries", "macro_sql": "{% macro default__get_period_boundaries(target_schema, target_table, timestamp_field, start_date, stop_date, period) -%}\n\n {% call statement('period_boundaries', fetch_result=True) -%}\n with data as (\n select\n coalesce(max(\"{{timestamp_field}}\"), '{{start_date}}')::timestamp as start_timestamp,\n coalesce(\n {{dbt_utils.dateadd('millisecond',\n -1,\n \"nullif('\" ~ stop_date ~ \"','')::timestamp\")}},\n {{dbt_utils.current_timestamp()}}\n ) as stop_timestamp\n from \"{{target_schema}}\".\"{{target_table}}\"\n )\n\n select\n start_timestamp,\n stop_timestamp,\n {{dbt_utils.datediff('start_timestamp',\n 'stop_timestamp',\n period)}} + 1 as num_periods\n from data\n {%- endcall %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.get_period_sql": {"unique_id": "macro.dbt_utils.get_period_sql", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/materializations/insert_by_period_materialization.sql", "original_file_path": "macros/materializations/insert_by_period_materialization.sql", "name": "get_period_sql", "macro_sql": "{% macro get_period_sql(target_cols_csv, sql, timestamp_field, period, start_timestamp, stop_timestamp, offset) -%}\n {{ return(adapter.dispatch('get_period_sql', packages = dbt_utils._get_utils_namespaces())(target_cols_csv, sql, timestamp_field, period, start_timestamp, stop_timestamp, offset)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__get_period_sql": {"unique_id": "macro.dbt_utils.default__get_period_sql", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/materializations/insert_by_period_materialization.sql", "original_file_path": "macros/materializations/insert_by_period_materialization.sql", "name": "default__get_period_sql", "macro_sql": "{% macro default__get_period_sql(target_cols_csv, sql, timestamp_field, period, start_timestamp, stop_timestamp, offset) -%}\n\n {%- set period_filter -%}\n (\"{{timestamp_field}}\" > '{{start_timestamp}}'::timestamp + interval '{{offset}} {{period}}' and\n \"{{timestamp_field}}\" <= '{{start_timestamp}}'::timestamp + interval '{{offset}} {{period}}' + interval '1 {{period}}' and\n \"{{timestamp_field}}\" < '{{stop_timestamp}}'::timestamp)\n {%- endset -%}\n\n {%- set filtered_sql = sql | replace(\"__PERIOD_FILTER__\", period_filter) -%}\n\n select\n {{target_cols_csv}}\n from (\n {{filtered_sql}}\n )\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.materialization_insert_by_period_default": {"unique_id": "macro.dbt_utils.materialization_insert_by_period_default", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/materializations/insert_by_period_materialization.sql", "original_file_path": "macros/materializations/insert_by_period_materialization.sql", "name": "materialization_insert_by_period_default", "macro_sql": "{% materialization insert_by_period, default -%}\n {%- set timestamp_field = config.require('timestamp_field') -%}\n {%- set start_date = config.require('start_date') -%}\n {%- set stop_date = config.get('stop_date') or '' -%}}\n {%- set period = config.get('period') or 'week' -%}\n\n {%- if sql.find('__PERIOD_FILTER__') == -1 -%}\n {%- set error_message -%}\n Model '{{ model.unique_id }}' does not include the required string '__PERIOD_FILTER__' in its sql\n {%- endset -%}\n {{ exceptions.raise_compiler_error(error_message) }}\n {%- endif -%}\n\n {%- set identifier = model['name'] -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n {%- set target_relation = api.Relation.create(identifier=identifier, schema=schema, type='table') -%}\n\n {%- set non_destructive_mode = (flags.NON_DESTRUCTIVE == True) -%}\n {%- set full_refresh_mode = (flags.FULL_REFRESH == True) -%}\n\n {%- set exists_as_table = (old_relation is not none and old_relation.is_table) -%}\n {%- set exists_not_as_table = (old_relation is not none and not old_relation.is_table) -%}\n\n {%- set should_truncate = (non_destructive_mode and full_refresh_mode and exists_as_table) -%}\n {%- set should_drop = (not should_truncate and (full_refresh_mode or exists_not_as_table)) -%}\n {%- set force_create = (flags.FULL_REFRESH and not flags.NON_DESTRUCTIVE) -%}\n\n -- setup\n {% if old_relation is none -%}\n -- noop\n {%- elif should_truncate -%}\n {{adapter.truncate_relation(old_relation)}}\n {%- elif should_drop -%}\n {{adapter.drop_relation(old_relation)}}\n {%- set old_relation = none -%}\n {%- endif %}\n\n {{run_hooks(pre_hooks, inside_transaction=False)}}\n\n -- `begin` happens here, so `commit` after it to finish the transaction\n {{run_hooks(pre_hooks, inside_transaction=True)}}\n {% call statement() -%}\n begin; -- make extra sure we've closed out the transaction\n commit;\n {%- endcall %}\n\n -- build model\n {% if force_create or old_relation is none -%}\n {# Create an empty target table -#}\n {% call statement('main') -%}\n {%- set empty_sql = sql | replace(\"__PERIOD_FILTER__\", 'false') -%}\n {{create_table_as(False, target_relation, empty_sql)}};\n {%- endcall %}\n {%- endif %}\n\n {% set _ = dbt_utils.get_period_boundaries(schema,\n identifier,\n timestamp_field,\n start_date,\n stop_date,\n period) %}\n {%- set start_timestamp = load_result('period_boundaries')['data'][0][0] | string -%}\n {%- set stop_timestamp = load_result('period_boundaries')['data'][0][1] | string -%}\n {%- set num_periods = load_result('period_boundaries')['data'][0][2] | int -%}\n\n {% set target_columns = adapter.get_columns_in_relation(target_relation) %}\n {%- set target_cols_csv = target_columns | map(attribute='quoted') | join(', ') -%}\n {%- set loop_vars = {'sum_rows_inserted': 0} -%}\n\n -- commit each period as a separate transaction\n {% for i in range(num_periods) -%}\n {%- set msg = \"Running for \" ~ period ~ \" \" ~ (i + 1) ~ \" of \" ~ (num_periods) -%}\n {{ dbt_utils.log_info(msg) }}\n\n {%- set tmp_identifier = model['name'] ~ '__dbt_incremental_period' ~ i ~ '_tmp' -%}\n {%- set tmp_relation = api.Relation.create(identifier=tmp_identifier,\n schema=schema, type='table') -%}\n {% call statement() -%}\n {% set tmp_table_sql = dbt_utils.get_period_sql(target_cols_csv,\n sql,\n timestamp_field,\n period,\n start_timestamp,\n stop_timestamp,\n i) %}\n {{dbt.create_table_as(True, tmp_relation, tmp_table_sql)}}\n {%- endcall %}\n\n {{adapter.expand_target_column_types(from_relation=tmp_relation,\n to_relation=target_relation)}}\n {%- set name = 'main-' ~ i -%}\n {% call statement(name, fetch_result=True) -%}\n insert into {{target_relation}} ({{target_cols_csv}})\n (\n select\n {{target_cols_csv}}\n from {{tmp_relation.include(schema=False)}}\n );\n {%- endcall %}\n {% set result = load_result('main-' ~ i) %}\n {% if 'response' in result.keys() %} {# added in v0.19.0 #}\n {% set rows_inserted = result['response']['rows_affected'] %}\n {% else %} {# older versions #}\n {% set rows_inserted = result['status'].split(\" \")[2] | int %}\n {% endif %}\n \n {%- set sum_rows_inserted = loop_vars['sum_rows_inserted'] + rows_inserted -%}\n {%- if loop_vars.update({'sum_rows_inserted': sum_rows_inserted}) %} {% endif -%}\n\n {%- set msg = \"Ran for \" ~ period ~ \" \" ~ (i + 1) ~ \" of \" ~ (num_periods) ~ \"; \" ~ rows_inserted ~ \" records inserted\" -%}\n {{ dbt_utils.log_info(msg) }}\n\n {%- endfor %}\n\n {% call statement() -%}\n begin;\n {%- endcall %}\n\n {{run_hooks(post_hooks, inside_transaction=True)}}\n\n {% call statement() -%}\n commit;\n {%- endcall %}\n\n {{run_hooks(post_hooks, inside_transaction=False)}}\n\n {%- set status_string = \"INSERT \" ~ loop_vars['sum_rows_inserted'] -%}\n\n {% call noop_statement('main', status_string) -%}\n -- no-op\n {%- endcall %}\n\n -- Return the relations created in this materialization\n {{ return({'relations': [target_relation]}) }} \n\n{%- endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.pretty_log_format": {"unique_id": "macro.dbt_utils.pretty_log_format", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/logger/pretty_log_format.sql", "original_file_path": "macros/logger/pretty_log_format.sql", "name": "pretty_log_format", "macro_sql": "{% macro pretty_log_format(message) %}\n {{ return(adapter.dispatch('pretty_log_format', packages = dbt_utils._get_utils_namespaces())(message)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__pretty_log_format": {"unique_id": "macro.dbt_utils.default__pretty_log_format", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/logger/pretty_log_format.sql", "original_file_path": "macros/logger/pretty_log_format.sql", "name": "default__pretty_log_format", "macro_sql": "{% macro default__pretty_log_format(message) %}\n {{ return( dbt_utils.pretty_time() ~ ' + ' ~ message) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.pretty_time": {"unique_id": "macro.dbt_utils.pretty_time", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/logger/pretty_time.sql", "original_file_path": "macros/logger/pretty_time.sql", "name": "pretty_time", "macro_sql": "{% macro pretty_time(format='%H:%M:%S') %}\n {{ return(adapter.dispatch('pretty_time', packages = dbt_utils._get_utils_namespaces())(format)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__pretty_time": {"unique_id": "macro.dbt_utils.default__pretty_time", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/logger/pretty_time.sql", "original_file_path": "macros/logger/pretty_time.sql", "name": "default__pretty_time", "macro_sql": "{% macro default__pretty_time(format='%H:%M:%S') %}\n {{ return(modules.datetime.datetime.now().strftime(format)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.log_info": {"unique_id": "macro.dbt_utils.log_info", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/logger/log_info.sql", "original_file_path": "macros/logger/log_info.sql", "name": "log_info", "macro_sql": "{% macro log_info(message) %}\n {{ return(adapter.dispatch('log_info', packages = dbt_utils._get_utils_namespaces())(message)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__log_info": {"unique_id": "macro.dbt_utils.default__log_info", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/logger/log_info.sql", "original_file_path": "macros/logger/log_info.sql", "name": "default__log_info", "macro_sql": "{% macro default__log_info(message) %}\n {{ log(dbt_utils.pretty_log_format(message), info=True) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.get_intervals_between": {"unique_id": "macro.dbt_utils.get_intervals_between", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/datetime/date_spine.sql", "original_file_path": "macros/datetime/date_spine.sql", "name": "get_intervals_between", "macro_sql": "{% macro get_intervals_between(start_date, end_date, datepart) -%}\n {{ return(adapter.dispatch('get_intervals_between', packages = dbt_utils._get_utils_namespaces())(start_date, end_date, datepart)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__get_intervals_between": {"unique_id": "macro.dbt_utils.default__get_intervals_between", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/datetime/date_spine.sql", "original_file_path": "macros/datetime/date_spine.sql", "name": "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_utils.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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.date_spine": {"unique_id": "macro.dbt_utils.date_spine", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/datetime/date_spine.sql", "original_file_path": "macros/datetime/date_spine.sql", "name": "date_spine", "macro_sql": "{% macro date_spine(datepart, start_date, end_date) %}\n {{ return(adapter.dispatch('date_spine', packages = dbt_utils._get_utils_namespaces())(datepart, start_date, end_date)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__date_spine": {"unique_id": "macro.dbt_utils.default__date_spine", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/datetime/date_spine.sql", "original_file_path": "macros/datetime/date_spine.sql", "name": "default__date_spine", "macro_sql": "{% macro default__date_spine(datepart, start_date, end_date) %}\n\n/*\ncall as follows:\n\ndate_spine(\n \"day\",\n \"to_date('01/01/2016', 'mm/dd/yyyy')\",\n \"dateadd(week, 1, current_date)\"\n)\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_utils.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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.get_url_host": {"unique_id": "macro.dbt_utils.get_url_host", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "name": "get_url_host", "macro_sql": "{% macro get_url_host(field) -%}\n {{ return(adapter.dispatch('get_url_host', packages = dbt_utils._get_utils_namespaces())(field)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__get_url_host": {"unique_id": "macro.dbt_utils.default__get_url_host", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "name": "default__get_url_host", "macro_sql": "{% macro default__get_url_host(field) -%}\n\n{%- set parsed = \n dbt_utils.split_part(\n dbt_utils.split_part(\n dbt_utils.replace(\n dbt_utils.replace(field, \"'http://'\", \"''\"\n ), \"'https://'\", \"''\"\n ), \"'/'\", 1\n ), \"'?'\", 1\n )\n \n-%}\n\n \n {{ dbt_utils.safe_cast(\n parsed,\n dbt_utils.type_string()\n )}}\n \n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.get_url_path": {"unique_id": "macro.dbt_utils.get_url_path", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "name": "get_url_path", "macro_sql": "{% macro get_url_path(field) -%}\n {{ return(adapter.dispatch('get_url_path', packages = dbt_utils._get_utils_namespaces())(field)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__get_url_path": {"unique_id": "macro.dbt_utils.default__get_url_path", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "name": "default__get_url_path", "macro_sql": "{% macro default__get_url_path(field) -%}\n\n {%- set stripped_url = \n dbt_utils.replace(\n dbt_utils.replace(field, \"'http://'\", \"''\"), \"'https://'\", \"''\")\n -%}\n\n {%- set first_slash_pos -%}\n coalesce(\n nullif({{dbt_utils.position(\"'/'\", stripped_url)}}, 0),\n {{dbt_utils.position(\"'?'\", stripped_url)}} - 1\n )\n {%- endset -%}\n\n {%- set parsed_path =\n dbt_utils.split_part(\n dbt_utils.right(\n stripped_url, \n dbt_utils.length(stripped_url) ~ \"-\" ~ first_slash_pos\n ), \n \"'?'\", 1\n )\n -%}\n\n {{ dbt_utils.safe_cast(\n parsed_path,\n dbt_utils.type_string()\n )}}\n \n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.get_url_parameter": {"unique_id": "macro.dbt_utils.get_url_parameter", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "name": "get_url_parameter", "macro_sql": "{% macro get_url_parameter(field, url_parameter) -%}\n {{ return(adapter.dispatch('get_url_parameter', packages = dbt_utils._get_utils_namespaces())(field, url_parameter)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__get_url_parameter": {"unique_id": "macro.dbt_utils.default__get_url_parameter", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "name": "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_utils.split_part(dbt_utils.split_part(field, formatted_url_parameter, 2), \"'&'\", 1) -%}\n\nnullif({{ split }},'')\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.haversine_distance": {"unique_id": "macro.dbt_utils.haversine_distance", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/geo/haversine_distance.sql", "original_file_path": "macros/geo/haversine_distance.sql", "name": "haversine_distance", "macro_sql": "{% macro haversine_distance(lat1,lon1,lat2,lon2) -%}\n {{ return(adapter.dispatch('haversine_distance', packages = dbt_utils._get_utils_namespaces())(lat1,lon1,lat2,lon2)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__haversine_distance": {"unique_id": "macro.dbt_utils.default__haversine_distance", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/geo/haversine_distance.sql", "original_file_path": "macros/geo/haversine_distance.sql", "name": "default__haversine_distance", "macro_sql": "{% macro default__haversine_distance(lat1,lon1,lat2,lon2) -%}\n\n 2 * 3961 * asin(sqrt((sin(radians(({{lat2}} - {{lat1}}) / 2))) ^ 2 +\n cos(radians({{lat1}})) * cos(radians({{lat2}})) *\n (sin(radians(({{lon2}} - {{lon1}}) / 2))) ^ 2))\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.test_equal_rowcount": {"unique_id": "macro.dbt_utils.test_equal_rowcount", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/equal_rowcount.sql", "original_file_path": "macros/schema_tests/equal_rowcount.sql", "name": "test_equal_rowcount", "macro_sql": "{% macro test_equal_rowcount(model) %}\n {{ return(adapter.dispatch('test_equal_rowcount', packages = dbt_utils._get_utils_namespaces())(model, **kwargs)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__test_equal_rowcount": {"unique_id": "macro.dbt_utils.default__test_equal_rowcount", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/equal_rowcount.sql", "original_file_path": "macros/schema_tests/equal_rowcount.sql", "name": "default__test_equal_rowcount", "macro_sql": "{% macro default__test_equal_rowcount(model) %}\n\n{% set compare_model = kwargs.get('compare_model', kwargs.get('arg')) %}\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\nwith a as (\n\n select count(*) as count_a from {{ model }}\n\n),\nb as (\n\n select count(*) as count_b from {{ compare_model }}\n\n),\nfinal as (\n\n select abs(\n (select count_a from a) -\n (select count_b from b)\n )\n as diff_count\n\n)\n\nselect diff_count from final\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.test_relationships_where": {"unique_id": "macro.dbt_utils.test_relationships_where", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/relationships_where.sql", "original_file_path": "macros/schema_tests/relationships_where.sql", "name": "test_relationships_where", "macro_sql": "{% macro test_relationships_where(model, to, field) %}\n {{ return(adapter.dispatch('test_relationships_where', packages = dbt_utils._get_utils_namespaces())(model, to, field, **kwargs)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__test_relationships_where": {"unique_id": "macro.dbt_utils.default__test_relationships_where", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/relationships_where.sql", "original_file_path": "macros/schema_tests/relationships_where.sql", "name": "default__test_relationships_where", "macro_sql": "{% macro default__test_relationships_where(model, to, field) %}\n\n{% set column_name = kwargs.get('column_name', kwargs.get('from')) %}\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{% set from_condition = kwargs.get('from_condition', \"1=1\") %}\n{% set to_condition = kwargs.get('to_condition', \"1=1\") %}\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 count(*) from exceptions\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.test_recency": {"unique_id": "macro.dbt_utils.test_recency", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/recency.sql", "original_file_path": "macros/schema_tests/recency.sql", "name": "test_recency", "macro_sql": "{% macro test_recency(model, datepart, interval) %}\n {{ return(adapter.dispatch('test_recency', packages = dbt_utils._get_utils_namespaces())(model, datepart, interval, **kwargs)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__test_recency": {"unique_id": "macro.dbt_utils.default__test_recency", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/recency.sql", "original_file_path": "macros/schema_tests/recency.sql", "name": "default__test_recency", "macro_sql": "{% macro default__test_recency(model, datepart, interval) %}\n\n{% set column_name = kwargs.get('column_name', kwargs.get('field')) %}\n\nselect\n case when count(*) > 0 then 0\n else 1\n end as error_result\nfrom {{model}}\nwhere {{column_name}} >=\n {{dbt_utils.dateadd(datepart, interval * -1, dbt_utils.current_timestamp())}}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.test_not_constant": {"unique_id": "macro.dbt_utils.test_not_constant", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/not_constant.sql", "original_file_path": "macros/schema_tests/not_constant.sql", "name": "test_not_constant", "macro_sql": "{% macro test_not_constant(model) %}\n {{ return(adapter.dispatch('test_not_constant', packages = dbt_utils._get_utils_namespaces())(model, **kwargs)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__test_not_constant": {"unique_id": "macro.dbt_utils.default__test_not_constant", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/not_constant.sql", "original_file_path": "macros/schema_tests/not_constant.sql", "name": "default__test_not_constant", "macro_sql": "{% macro default__test_not_constant(model) %}\n\n{% set column_name = kwargs.get('column_name', kwargs.get('arg')) %}\n\nselect count(*)\n\nfrom (\n\n select\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n count(distinct {{ column_name }}) as filler_column\n\n from {{ model }}\n\n having count(distinct {{ column_name }}) = 1\n\n ) validation_errors\n\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.test_unique_where": {"unique_id": "macro.dbt_utils.test_unique_where", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/test_unique_where.sql", "original_file_path": "macros/schema_tests/test_unique_where.sql", "name": "test_unique_where", "macro_sql": "{% macro test_unique_where(model) %}\r\n {{ return(adapter.dispatch('test_unique_where', packages = dbt_utils._get_utils_namespaces())(model, **kwargs)) }}\r\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__test_unique_where": {"unique_id": "macro.dbt_utils.default__test_unique_where", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/test_unique_where.sql", "original_file_path": "macros/schema_tests/test_unique_where.sql", "name": "default__test_unique_where", "macro_sql": "{% macro default__test_unique_where(model) %}\r\n\r\n{% set column_name = kwargs.get('column_name', kwargs.get('arg')) %}\r\n{% set where = kwargs.get('where', kwargs.get('arg')) %}\r\n\r\nselect count(*)\r\nfrom (\r\n\r\n select\r\n {{ column_name }}\r\n\r\n from {{ model }}\r\n where {{ column_name }} is not null\r\n {% if where %} and {{ where }} {% endif %}\r\n group by {{ column_name }}\r\n having count(*) > 1\r\n\r\n) validation_errors\r\n\r\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.test_at_least_one": {"unique_id": "macro.dbt_utils.test_at_least_one", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/at_least_one.sql", "original_file_path": "macros/schema_tests/at_least_one.sql", "name": "test_at_least_one", "macro_sql": "{% macro test_at_least_one(model) %}\n {{ return(adapter.dispatch('test_at_least_one', packages = dbt_utils._get_utils_namespaces())(model, **kwargs)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__test_at_least_one": {"unique_id": "macro.dbt_utils.default__test_at_least_one", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/at_least_one.sql", "original_file_path": "macros/schema_tests/at_least_one.sql", "name": "default__test_at_least_one", "macro_sql": "{% macro default__test_at_least_one(model) %}\n\n{% set column_name = kwargs.get('column_name', kwargs.get('arg')) %}\n\nselect count(*)\nfrom (\n select\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n count({{ column_name }}) as filler_column\n\n from {{ model }}\n\n having count({{ column_name }}) = 0\n\n) validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.test_unique_combination_of_columns": {"unique_id": "macro.dbt_utils.test_unique_combination_of_columns", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/unique_combination_of_columns.sql", "original_file_path": "macros/schema_tests/unique_combination_of_columns.sql", "name": "test_unique_combination_of_columns", "macro_sql": "{% macro test_unique_combination_of_columns(model, quote_columns = false) %}\n {{ return(adapter.dispatch('test_unique_combination_of_columns', packages = dbt_utils._get_utils_namespaces())(model, quote_columns, **kwargs)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__test_unique_combination_of_columns": {"unique_id": "macro.dbt_utils.default__test_unique_combination_of_columns", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/unique_combination_of_columns.sql", "original_file_path": "macros/schema_tests/unique_combination_of_columns.sql", "name": "default__test_unique_combination_of_columns", "macro_sql": "{% macro default__test_unique_combination_of_columns(model, quote_columns = false) %}\n\n{%- set columns = kwargs.get('combination_of_columns', kwargs.get('arg')) %}\n\n{% if not quote_columns %}\n {%- set column_list=columns %}\n{% elif quote_columns %}\n {%- set column_list=[] %}\n {% for column in 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\n group by {{ columns_csv }}\n having count(*) > 1\n\n)\n\nselect count(*)\nfrom validation_errors\n\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.test_cardinality_equality": {"unique_id": "macro.dbt_utils.test_cardinality_equality", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/cardinality_equality.sql", "original_file_path": "macros/schema_tests/cardinality_equality.sql", "name": "test_cardinality_equality", "macro_sql": "{% macro test_cardinality_equality(model, to, field) %}\n\n {{ return(adapter.dispatch('test_cardinality_equality', packages = dbt_utils._get_utils_namespaces())(model, to, field, **kwargs)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__test_cardinality_equality": {"unique_id": "macro.dbt_utils.default__test_cardinality_equality", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/cardinality_equality.sql", "original_file_path": "macros/schema_tests/cardinality_equality.sql", "name": "default__test_cardinality_equality", "macro_sql": "{% macro default__test_cardinality_equality(model, to, field) %}\n\n{# T-SQL doesn't let you use numbers as aliases for columns #}\n{# Thus, no \"GROUP BY 1\" #}\n\n{% set column_name = kwargs.get('column_name', kwargs.get('from')) %}\n\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 {{ column_name }}\n),\n\nexcept_a as (\n select *\n from table_a\n {{ dbt_utils.except() }}\n select *\n from table_b\n),\n\nexcept_b as (\n select *\n from table_b\n {{ dbt_utils.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 count(*)\nfrom unioned\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.test_expression_is_true": {"unique_id": "macro.dbt_utils.test_expression_is_true", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/expression_is_true.sql", "original_file_path": "macros/schema_tests/expression_is_true.sql", "name": "test_expression_is_true", "macro_sql": "{% macro test_expression_is_true(model, condition='1=1') %}\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 {{ return(adapter.dispatch('test_expression_is_true', packages = dbt_utils._get_utils_namespaces())(model, condition, **kwargs)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__test_expression_is_true": {"unique_id": "macro.dbt_utils.default__test_expression_is_true", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/expression_is_true.sql", "original_file_path": "macros/schema_tests/expression_is_true.sql", "name": "default__test_expression_is_true", "macro_sql": "{% macro default__test_expression_is_true(model, condition) %}\n\n{% set expression = kwargs.get('expression', kwargs.get('arg')) %}\n\nwith meet_condition as (\n\n select * from {{ model }} where {{ condition }}\n\n),\nvalidation_errors as (\n\n select\n *\n from meet_condition\n where not({{expression}})\n\n)\n\nselect count(*)\nfrom validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.test_not_null_where": {"unique_id": "macro.dbt_utils.test_not_null_where", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/test_not_null_where.sql", "original_file_path": "macros/schema_tests/test_not_null_where.sql", "name": "test_not_null_where", "macro_sql": "{% macro test_not_null_where(model) %}\r\n {{ return(adapter.dispatch('test_not_null_where', packages = dbt_utils._get_utils_namespaces())(model, **kwargs)) }}\r\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__test_not_null_where": {"unique_id": "macro.dbt_utils.default__test_not_null_where", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/test_not_null_where.sql", "original_file_path": "macros/schema_tests/test_not_null_where.sql", "name": "default__test_not_null_where", "macro_sql": "{% macro default__test_not_null_where(model) %}\r\n\r\n{% set column_name = kwargs.get('column_name', kwargs.get('arg')) %}\r\n{% set where = kwargs.get('where', kwargs.get('arg')) %}\r\n\r\nselect count(*)\r\nfrom {{ model }}\r\nwhere {{ column_name }} is null\r\n{% if where %} and {{ where }} {% endif %}\r\n\r\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.test_equality": {"unique_id": "macro.dbt_utils.test_equality", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/equality.sql", "original_file_path": "macros/schema_tests/equality.sql", "name": "test_equality", "macro_sql": "{% macro test_equality(model) %}\n {{ return(adapter.dispatch('test_equality', packages = dbt_utils._get_utils_namespaces())(model, **kwargs)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__test_equality": {"unique_id": "macro.dbt_utils.default__test_equality", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/equality.sql", "original_file_path": "macros/schema_tests/equality.sql", "name": "default__test_equality", "macro_sql": "{% macro default__test_equality(model) %}\n\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{%- set compare_columns = kwargs.get('compare_columns', None) -%}\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_model = kwargs.get('compare_model', kwargs.get('arg')) %}\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_utils.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_utils.except() }}\n select {{compare_cols_csv}} from a\n\n),\n\nunioned as (\n\n select * from a_minus_b\n union all\n select * from b_minus_a\n\n),\n\nfinal as (\n\n select (select count(*) from unioned) +\n (select abs(\n (select count(*) from a_minus_b) -\n (select count(*) from b_minus_a)\n ))\n as count\n\n)\n\nselect count from final\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.test_mutually_exclusive_ranges": {"unique_id": "macro.dbt_utils.test_mutually_exclusive_ranges", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/schema_tests/mutually_exclusive_ranges.sql", "name": "test_mutually_exclusive_ranges", "macro_sql": "{% macro test_mutually_exclusive_ranges(model, lower_bound_column, upper_bound_column, partition_by=None, gaps='allowed') %}\n {{ return(adapter.dispatch('test_mutually_exclusive_ranges', packages = dbt_utils._get_utils_namespaces())(model, lower_bound_column, upper_bound_column, partition_by, gaps)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__test_mutually_exclusive_ranges": {"unique_id": "macro.dbt_utils.default__test_mutually_exclusive_ranges", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/schema_tests/mutually_exclusive_ranges.sql", "name": "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') %}\n\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\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 }},\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 }}\n ) as next_lower_bound,\n\n row_number() over (\n {{ partition_clause }}\n order by {{ lower_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 nore 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 < upper_bound,\n false\n ) as lower_bound_less_than_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_less_than_upper_bound\n and upper_bound_{{ allow_gaps_operator_in_words }}_next_lower_bound\n )\n)\n\nselect count(*) from validation_errors\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.nullcheck_table": {"unique_id": "macro.dbt_utils.nullcheck_table", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "name": "nullcheck_table", "macro_sql": "{% macro nullcheck_table(relation) %}\n {{ return(adapter.dispatch('nullcheck_table', packages = dbt_utils._get_utils_namespaces())(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__nullcheck_table": {"unique_id": "macro.dbt_utils.default__nullcheck_table", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.get_relations_by_pattern": {"unique_id": "macro.dbt_utils.get_relations_by_pattern", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "name": "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', packages = dbt_utils._get_utils_namespaces())(schema_pattern, table_pattern, exclude, database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__get_relations_by_pattern": {"unique_id": "macro.dbt_utils.default__get_relations_by_pattern", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.get_powers_of_two": {"unique_id": "macro.dbt_utils.get_powers_of_two", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "name": "get_powers_of_two", "macro_sql": "{% macro get_powers_of_two(upper_bound) %}\n {{ return(adapter.dispatch('get_powers_of_two', packages = dbt_utils._get_utils_namespaces())(upper_bound)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__get_powers_of_two": {"unique_id": "macro.dbt_utils.default__get_powers_of_two", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.generate_series": {"unique_id": "macro.dbt_utils.generate_series", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "name": "generate_series", "macro_sql": "{% macro generate_series(upper_bound) %}\n {{ return(adapter.dispatch('generate_series', packages = dbt_utils._get_utils_namespaces())(upper_bound)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__generate_series": {"unique_id": "macro.dbt_utils.default__generate_series", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "name": "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 * pow(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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.get_relations_by_prefix": {"unique_id": "macro.dbt_utils.get_relations_by_prefix", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "name": "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', packages = dbt_utils._get_utils_namespaces())(schema, prefix, exclude, database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__get_relations_by_prefix": {"unique_id": "macro.dbt_utils.default__get_relations_by_prefix", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.get_tables_by_prefix_sql": {"unique_id": "macro.dbt_utils.get_tables_by_prefix_sql", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "name": "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', packages = dbt_utils._get_utils_namespaces())(schema, prefix, exclude, database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__get_tables_by_prefix_sql": {"unique_id": "macro.dbt_utils.default__get_tables_by_prefix_sql", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.star": {"unique_id": "macro.dbt_utils.star", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "name": "star", "macro_sql": "{% macro star(from, relation_alias=False, except=[]) -%}\n {{ return(adapter.dispatch('star', packages = dbt_utils._get_utils_namespaces())(from, relation_alias, except)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__star": {"unique_id": "macro.dbt_utils.default__star", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "name": "default__star", "macro_sql": "{% macro default__star(from, relation_alias=False, except=[]) -%}\n {%- do dbt_utils._is_relation(from, 'star') -%}\n {%- do dbt_utils._is_ephemeral(from, 'star') -%}\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\n {%- for col in cols -%}\n\n {%- if col.column not in except -%}\n {% do include_cols.append(col.column) %}\n\n {%- endif %}\n {%- endfor %}\n\n {%- for col in include_cols %}\n\n {%- if relation_alias %}{{ relation_alias }}.{% else %}{%- endif -%}{{ adapter.quote(col)|trim }}\n {%- if not loop.last %},{{ '\\n ' }}{% endif %}\n\n {%- endfor -%}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.unpivot": {"unique_id": "macro.dbt_utils.unpivot", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "name": "unpivot", "macro_sql": "{% macro unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value', table=none) -%}\n {{ return(adapter.dispatch('unpivot', packages = dbt_utils._get_utils_namespaces())(relation, cast_to, exclude, remove, field_name, value_name, table)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__unpivot": {"unique_id": "macro.dbt_utils.default__unpivot", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "name": "default__unpivot", "macro_sql": "{% macro default__unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value', table=none) -%}\n\n {% if table %}\n {%- set error_message = '\n Warning: the `unpivot` macro no longer accepts a `table` parameter. \\\n This parameter will be deprecated in a future release of dbt-utils. Use the `relation` parameter instead. \\\n The {}.{} model triggered this warning. \\\n '.format(model.package_name, model.name) -%}\n {%- do exceptions.warn(error_message) -%}\n {% endif %}\n\n {% if relation and table %}\n {{ exceptions.raise_compiler_error(\"Error: both the `relation` and `table` parameters were provided to `unpivot` macro. Choose one only (we recommend `relation`).\") }}\n {% elif not relation and table %}\n {% set relation=table %}\n {% elif not relation and not table %}\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_utils.type_string() }}) as {{ field_name }},\n cast({{ col.column }} 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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.union_relations": {"unique_id": "macro.dbt_utils.union_relations", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "name": "union_relations", "macro_sql": "{%- macro union_relations(relations, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation') -%}\n {{ return(adapter.dispatch('union_relations', packages = dbt_utils._get_utils_namespaces())(relations, column_override, include, exclude, source_column_name)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__union_relations": {"unique_id": "macro.dbt_utils.default__union_relations", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "name": "default__union_relations", "macro_sql": "\n\n{%- macro default__union_relations(relations, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation') -%}\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\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 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_utils.string_literal(relation) }} as {{ dbt_utils.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 {{ relation }}\n )\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.group_by": {"unique_id": "macro.dbt_utils.group_by", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "name": "group_by", "macro_sql": "{%- macro group_by(n) -%}\n {{ return(adapter.dispatch('group_by', packages = dbt_utils._get_utils_namespaces())(n)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__group_by": {"unique_id": "macro.dbt_utils.default__group_by", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "name": "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 -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.surrogate_key": {"unique_id": "macro.dbt_utils.surrogate_key", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "name": "surrogate_key", "macro_sql": "{%- macro surrogate_key(field_list) -%}\n {# needed for safe_add to allow for non-keyword arguments see SO post #}\n {# https://stackoverflow.com/questions/13944751/args-kwargs-in-jinja2-macros #}\n {% set frustrating_jinja_feature = varargs %}\n {{ return(adapter.dispatch('surrogate_key', packages = dbt_utils._get_utils_namespaces())(field_list, *varargs)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__surrogate_key": {"unique_id": "macro.dbt_utils.default__surrogate_key", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "name": "default__surrogate_key", "macro_sql": "\n\n{%- macro default__surrogate_key(field_list) -%}\n\n{%- if varargs|length >= 1 or field_list is string %}\n\n{%- set error_message = '\nWarning: the `surrogate_key` macro now takes a single list argument instead of \\\nmultiple string arguments. Support for multiple string arguments will be \\\ndeprecated in a future release of dbt-utils. The {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.warn(error_message) -%}\n\n{# first argument is not included in varargs, so add first element to field_list_xf #}\n{%- set field_list_xf = [field_list] -%}\n\n{%- for field in varargs %}\n{%- set _ = field_list_xf.append(field) -%}\n{%- endfor -%}\n\n{%- else -%}\n\n{# if using list, just set field_list_xf as field_list #}\n{%- set field_list_xf = field_list -%}\n\n{%- endif -%}\n\n\n{%- set fields = [] -%}\n\n{%- for field in field_list_xf -%}\n\n {%- set _ = fields.append(\n \"coalesce(cast(\" ~ field ~ \" as \" ~ dbt_utils.type_string() ~ \"), '')\"\n ) -%}\n\n {%- if not loop.last %}\n {%- set _ = fields.append(\"'-'\") -%}\n {%- endif -%}\n\n{%- endfor -%}\n\n{{dbt_utils.hash(dbt_utils.concat(fields))}}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.safe_add": {"unique_id": "macro.dbt_utils.safe_add", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "name": "safe_add", "macro_sql": "{%- macro safe_add() -%}\n {# needed for safe_add to allow for non-keyword arguments see SO post #}\n {# https://stackoverflow.com/questions/13944751/args-kwargs-in-jinja2-macros #}\n {% set frustrating_jinja_feature = varargs %}\n {{ return(adapter.dispatch('safe_add', packages = dbt_utils._get_utils_namespaces())(*varargs)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__safe_add": {"unique_id": "macro.dbt_utils.default__safe_add", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "name": "default__safe_add", "macro_sql": "\n\n{%- macro default__safe_add() -%}\n\n{% set fields = [] %}\n\n{%- for field in varargs -%}\n\n {% do fields.append(\"coalesce(\" ~ field ~ \", 0)\") %}\n\n{%- endfor -%}\n\n{{ fields|join(' +\\n ') }}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.nullcheck": {"unique_id": "macro.dbt_utils.nullcheck", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "name": "nullcheck", "macro_sql": "{% macro nullcheck(cols) %}\n {{ return(adapter.dispatch('nullcheck', packages = dbt_utils._get_utils_namespaces())(cols)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__nullcheck": {"unique_id": "macro.dbt_utils.default__nullcheck", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.get_tables_by_pattern_sql": {"unique_id": "macro.dbt_utils.get_tables_by_pattern_sql", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "name": "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', packages = dbt_utils._get_utils_namespaces())\n (schema_pattern, table_pattern, exclude, database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__get_tables_by_pattern_sql": {"unique_id": "macro.dbt_utils.default__get_tables_by_pattern_sql", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "name": "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 \"table_schema\",\n table_name as \"table_name\",\n case table_type\n when 'BASE TABLE' then 'table'\n else lower(table_type)\n end as \"table_type\"\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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.bigquery__get_tables_by_pattern_sql": {"unique_id": "macro.dbt_utils.bigquery__get_tables_by_pattern_sql", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "name": "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 case table_type\n when 'BASE TABLE' then 'table'\n else lower(table_type)\n end as table_type\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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils._bigquery__get_matching_schemata": {"unique_id": "macro.dbt_utils._bigquery__get_matching_schemata", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "name": "_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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.get_column_values": {"unique_id": "macro.dbt_utils.get_column_values", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "name": "get_column_values", "macro_sql": "{% macro get_column_values(table, column, max_records=none, default=none) -%}\n {{ return(adapter.dispatch('get_column_values', packages = dbt_utils._get_utils_namespaces())(table, column, max_records, default)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__get_column_values": {"unique_id": "macro.dbt_utils.default__get_column_values", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "name": "default__get_column_values", "macro_sql": "{% macro default__get_column_values(table, column, max_records=none, default=none) -%}\n\n{#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {{ return('') }}\n {% endif %}\n{#-- #}\n\n {%- set target_relation = adapter.get_relation(database=table.database,\n schema=table.schema,\n identifier=table.identifier) -%}\n\n {%- call statement('get_column_values', fetch_result=true) %}\n\n {%- if not target_relation and default is none -%}\n\n {{ exceptions.raise_compiler_error(\"In get_column_values(): relation \" ~ table ~ \" does not exist and no default value was provided.\") }}\n\n {%- elif not target_relation and default is not none -%}\n\n {{ log(\"Relation \" ~ table ~ \" does not exist. Returning the default value: \" ~ default) }}\n\n {{ return(default) }}\n\n {%- else -%}\n\n select\n {{ column }} as value\n\n from {{ target_relation }}\n group by 1\n order by count(*) desc\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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.pivot": {"unique_id": "macro.dbt_utils.pivot", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "name": "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', packages = dbt_utils._get_utils_namespaces())(column, values, alias, agg, cmp, prefix, suffix, then_value, else_value, quote_identifiers, distinct)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__pivot": {"unique_id": "macro.dbt_utils.default__pivot", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "name": "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 v in values %}\n {{ agg }}(\n {% if distinct %} distinct {% endif %}\n case\n when {{ column }} {{ cmp }} '{{ v }}'\n then {{ then_value }}\n else {{ else_value }}\n end\n )\n {% if alias %}\n {% if quote_identifiers %}\n as {{ adapter.quote(prefix ~ v ~ suffix) }}\n {% else %}\n as {{prefix ~ v ~ suffix }}\n {% endif %}\n {% endif %}\n {% if not loop.last %},{% endif %}\n {% endfor %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.get_query_results_as_dict": {"unique_id": "macro.dbt_utils.get_query_results_as_dict", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "name": "get_query_results_as_dict", "macro_sql": "{% macro get_query_results_as_dict(query) %}\n {{ return(adapter.dispatch('get_query_results_as_dict', packages = dbt_utils._get_utils_namespaces())(query)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__get_query_results_as_dict": {"unique_id": "macro.dbt_utils.default__get_query_results_as_dict", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.enabled_vars": {"unique_id": "macro.fivetran_utils.enabled_vars", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/enabled_vars.sql", "original_file_path": "macros/enabled_vars.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.percentile": {"unique_id": "macro.fivetran_utils.percentile", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "percentile", "macro_sql": "{% macro percentile(percentile_field, partition_field, percent) -%}\n\n{{ adapter.dispatch('percentile', packages = fivetran_utils._get_utils_namespaces()) (percentile_field, partition_field, percent) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.default__percentile": {"unique_id": "macro.fivetran_utils.default__percentile", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.bigquery__percentile": {"unique_id": "macro.fivetran_utils.bigquery__percentile", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.max_bool": {"unique_id": "macro.fivetran_utils.max_bool", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "name": "max_bool", "macro_sql": "{% macro max_bool(boolean_field) -%}\n\n{{ adapter.dispatch('max_bool', packages = fivetran_utils._get_utils_namespaces()) (boolean_field) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.default__max_bool": {"unique_id": "macro.fivetran_utils.default__max_bool", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "name": "default__max_bool", "macro_sql": "{% macro default__max_bool(boolean_field) %}\n\n bool_or( {{ boolean_field }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.snowflake__max_bool": {"unique_id": "macro.fivetran_utils.snowflake__max_bool", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "name": "snowflake__max_bool", "macro_sql": "{% macro snowflake__max_bool(boolean_field) %}\n\n max( {{ boolean_field }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.bigquery__max_bool": {"unique_id": "macro.fivetran_utils.bigquery__max_bool", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "name": "bigquery__max_bool", "macro_sql": "{% macro bigquery__max_bool(boolean_field) %}\n\n max( {{ boolean_field }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.seed_data_helper": {"unique_id": "macro.fivetran_utils.seed_data_helper", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/seed_data_helper.sql", "original_file_path": "macros/seed_data_helper.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.fill_pass_through_columns": {"unique_id": "macro.fivetran_utils.fill_pass_through_columns", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/fill_pass_through_columns.sql", "original_file_path": "macros/fill_pass_through_columns.sql", "name": "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.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 {% endfor %}\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.string_agg": {"unique_id": "macro.fivetran_utils.string_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "name": "string_agg", "macro_sql": "{% macro string_agg(field_to_agg, delimiter) -%}\n\n{{ adapter.dispatch('string_agg', packages = fivetran_utils._get_utils_namespaces()) (field_to_agg, delimiter) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.default__string_agg": {"unique_id": "macro.fivetran_utils.default__string_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "name": "default__string_agg", "macro_sql": "{% macro default__string_agg(field_to_agg, delimiter) %}\n string_agg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.snowflake__string_agg": {"unique_id": "macro.fivetran_utils.snowflake__string_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "name": "snowflake__string_agg", "macro_sql": "{% macro snowflake__string_agg(field_to_agg, delimiter) %}\n listagg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.redshift__string_agg": {"unique_id": "macro.fivetran_utils.redshift__string_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "name": "redshift__string_agg", "macro_sql": "{% macro redshift__string_agg(field_to_agg, delimiter) %}\n listagg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.timestamp_diff": {"unique_id": "macro.fivetran_utils.timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "name": "timestamp_diff", "macro_sql": "{% macro timestamp_diff(first_date, second_date, datepart) %}\n {{ adapter.dispatch('datediff', packages = fivetran_utils._get_utils_namespaces())(first_date, second_date, datepart) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.default__timestamp_diff": {"unique_id": "macro.fivetran_utils.default__timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.bigquery__timestamp_diff": {"unique_id": "macro.fivetran_utils.bigquery__timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.postgres__datediff": {"unique_id": "macro.fivetran_utils.postgres__datediff", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "name": "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 ({{ dbt_utils.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_utils.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_utils.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_utils.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_utils.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_utils.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_utils.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_utils.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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.generate_columns_macro": {"unique_id": "macro.fivetran_utils.generate_columns_macro", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/generate_columns_macro.sql", "original_file_path": "macros/generate_columns_macro.sql", "name": "generate_columns_macro", "macro_sql": "{% macro generate_columns_macro(table_name, schema_name, database_name=target.database) %}\n\n{% set columns = get_columns_for_macro(table_name, schema_name, database_name) %}\n\n{% set jinja_macro=[] %}\n\n{% do jinja_macro.append('{% macro get_' ~ table_name ~ '_columns() %}') %}\n{% do jinja_macro.append('') %}\n{% do jinja_macro.append('{% set columns = [') %}\n\n{% for col in columns %}\n{% do jinja_macro.append(' ' ~ col ~ (',' if not loop.last)) %}\n{% endfor %}\n\n{% do jinja_macro.append('] %}') %}\n{% do jinja_macro.append('') %}\n{% do jinja_macro.append('{{ return(columns) }}') %}\n{% do jinja_macro.append('') %}\n{% do jinja_macro.append('{% endmacro %}') %}\n\n{% if execute %}\n\n {% set joined = jinja_macro | join ('\\n') %}\n {{ log(joined, info=True) }}\n {% do return(joined) %}\n\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.first_value": {"unique_id": "macro.fivetran_utils.first_value", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "name": "first_value", "macro_sql": "{% macro first_value(first_value_field, partition_field, order_by_field, order=\"asc\") -%}\n\n{{ adapter.dispatch('first_value', packages = fivetran_utils._get_utils_namespaces()) (first_value_field, partition_field, order_by_field, order) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.default__first_value": {"unique_id": "macro.fivetran_utils.default__first_value", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.redshift__first_value": {"unique_id": "macro.fivetran_utils.redshift__first_value", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.add_pass_through_columns": {"unique_id": "macro.fivetran_utils.add_pass_through_columns", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/add_pass_through_columns.sql", "original_file_path": "macros/add_pass_through_columns.sql", "name": "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 {% do base_columns.append({ \"name\": column.name, \"alias\": column.alias }) if column.alias else base_columns.append({ \"name\": column.name }) %}\n\n {% endfor %}\n\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.union_relations": {"unique_id": "macro.fivetran_utils.union_relations", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/union_relations.sql", "original_file_path": "macros/union_relations.sql", "name": "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_utils.string_literal(relation) }} as {{ dbt_utils.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", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.union_tables": {"unique_id": "macro.fivetran_utils.union_tables", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/union_relations.sql", "original_file_path": "macros/union_relations.sql", "name": "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 -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.snowflake_seed_data": {"unique_id": "macro.fivetran_utils.snowflake_seed_data", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/snowflake_seed_data.sql", "original_file_path": "macros/snowflake_seed_data.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.snowflake__get_columns_for_macro": {"unique_id": "macro.fivetran_utils.snowflake__get_columns_for_macro", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/get_columns_for_macro.sql", "original_file_path": "macros/get_columns_for_macro.sql", "name": "snowflake__get_columns_for_macro", "macro_sql": "{% macro snowflake__get_columns_for_macro(table_name, schema_name, database_name=target.database) %}\n\n{% set query %}\n\nselect\n concat(\n '{\"name\": \"', \n lower(column_name), \n '\", \"datatype\": ',\n case\n when lower(data_type) like '%timestamp%' then 'dbt_utils.type_timestamp()' \n when lower(data_type) = 'text' then 'dbt_utils.type_string()' \n when lower(data_type) = 'boolean' then '\"boolean\"'\n when lower(data_type) = 'number' then 'dbt_utils.type_numeric()' \n when lower(data_type) = 'float' then 'dbt_utils.type_float()' \n when lower(data_type) = 'date' then '\"date\"'\n end,\n '}')\nfrom {{ database_name }}.information_schema.columns\nwhere lower(table_name) = '{{ table_name }}'\nand lower(table_schema) = '{{ schema_name }}'\norder by 1\n\n{% endset %}\n\n{% set results = run_query(query) %}\n{% set results_list = results.columns[0].values() %}}\n\n{{ return(results_list) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.bigquery__get_columns_for_macro": {"unique_id": "macro.fivetran_utils.bigquery__get_columns_for_macro", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/get_columns_for_macro.sql", "original_file_path": "macros/get_columns_for_macro.sql", "name": "bigquery__get_columns_for_macro", "macro_sql": "{% macro bigquery__get_columns_for_macro(table_name, schema_name, database_name=target.database) %}\n\n{% set query %}\n\nselect\n concat(\n '{\"name\": \"', \n lower(column_name), \n '\", \"datatype\": ',\n case\n when lower(data_type) like '%timestamp%' then 'dbt_utils.type_timestamp()' \n when lower(data_type) = 'string' then 'dbt_utils.type_string()' \n when lower(data_type) = 'bool' then '\"boolean\"'\n when lower(data_type) = 'numeric' then 'dbt_utils.type_numeric()' \n when lower(data_type) = 'float64' then 'dbt_utils.type_float()' \n when lower(data_type) = 'int64' then 'dbt_utils.type_int()' \n when lower(data_type) = 'date' then '\"date\"' \n when lower(data_type) = 'datetime' then '\"datetime\"' \n end,\n '}')\nfrom `{{ database_name }}`.{{ schema_name }}.INFORMATION_SCHEMA.COLUMNS\nwhere lower(table_name) = '{{ table_name }}'\nand lower(table_schema) = '{{ schema_name }}'\norder by 1\n\n{% endset %}\n\n{% set results = run_query(query) %}\n{% set results_list = results.columns[0].values() %}}\n\n{{ return(results_list) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.get_columns_for_macro": {"unique_id": "macro.fivetran_utils.get_columns_for_macro", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/get_columns_for_macro.sql", "original_file_path": "macros/get_columns_for_macro.sql", "name": "get_columns_for_macro", "macro_sql": "{% macro get_columns_for_macro(table_name, schema_name, database_name) -%}\n {{ return(adapter.dispatch('get_columns_for_macro')(table_name, schema_name, database_name)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.fill_staging_columns": {"unique_id": "macro.fivetran_utils.fill_staging_columns", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/fill_staging_columns.sql", "original_file_path": "macros/fill_staging_columns.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.quote_column": {"unique_id": "macro.fivetran_utils.quote_column", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/fill_staging_columns.sql", "original_file_path": "macros/fill_staging_columns.sql", "name": "quote_column", "macro_sql": "{% macro quote_column(column) %}\n {% if 'quote' in column %}\n {% if column.quote %}\n {% if target.type == 'bigquery' %}\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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.json_extract": {"unique_id": "macro.fivetran_utils.json_extract", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "json_extract", "macro_sql": "{% macro json_extract(string, string_path) -%}\n\n{{ adapter.dispatch('json_extract', packages = fivetran_utils._get_utils_namespaces()) (string, string_path) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.default__json_extract": {"unique_id": "macro.fivetran_utils.default__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "default__json_extract", "macro_sql": "{% macro default__json_extract(string, string_path) %}\n\n json_extract_path_text({{string}}, {{ \"'\" ~ string_path ~ \"'\" }} )\n \n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.bigquery__json_extract": {"unique_id": "macro.fivetran_utils.bigquery__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "bigquery__json_extract", "macro_sql": "{% macro bigquery__json_extract(string, string_path) %}\n\n json_extract_scalar({{string}}, {{ \"'$.\" ~ string_path ~ \"'\" }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.postgres__json_extract": {"unique_id": "macro.fivetran_utils.postgres__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "postgres__json_extract", "macro_sql": "{% macro postgres__json_extract(string, string_path) %}\n\n {{string}}::json->>{{\"'\" ~ string_path ~ \"'\" }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.timestamp_add": {"unique_id": "macro.fivetran_utils.timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "timestamp_add", "macro_sql": "{% macro timestamp_add(datepart, interval, from_timestamp) -%}\n\n{{ adapter.dispatch('timestamp_add', packages = fivetran_utils._get_utils_namespaces()) (datepart, interval, from_timestamp) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.default__timestamp_add": {"unique_id": "macro.fivetran_utils.default__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.bigquery__timestamp_add": {"unique_id": "macro.fivetran_utils.bigquery__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.redshift__timestamp_add": {"unique_id": "macro.fivetran_utils.redshift__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.postgres__timestamp_add": {"unique_id": "macro.fivetran_utils.postgres__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "postgres__timestamp_add", "macro_sql": "{% macro postgres__timestamp_add(datepart, interval, from_timestamp) %}\n\n {{ from_timestamp }} + ((interval '1 {{ datepart }}') * ({{ interval }}))\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.ceiling": {"unique_id": "macro.fivetran_utils.ceiling", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "name": "ceiling", "macro_sql": "{% macro ceiling(num) -%}\n\n{{ adapter.dispatch('ceiling', packages = fivetran_utils._get_utils_namespaces()) (num) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.default__ceiling": {"unique_id": "macro.fivetran_utils.default__ceiling", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "name": "default__ceiling", "macro_sql": "{% macro default__ceiling(num) %}\n ceiling({{ num }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.snowflake__ceiling": {"unique_id": "macro.fivetran_utils.snowflake__ceiling", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "name": "snowflake__ceiling", "macro_sql": "{% macro snowflake__ceiling(num) %}\n ceil({{ num }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.remove_prefix_from_columns": {"unique_id": "macro.fivetran_utils.remove_prefix_from_columns", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/remove_prefix_from_columns.sql", "original_file_path": "macros/remove_prefix_from_columns.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.dummy_coalesce_value": {"unique_id": "macro.fivetran_utils.dummy_coalesce_value", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/dummy_coalesce_value.sql", "original_file_path": "macros/dummy_coalesce_value.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils._get_utils_namespaces": {"unique_id": "macro.fivetran_utils._get_utils_namespaces", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/_get_utils_namespaces.sql", "original_file_path": "macros/_get_utils_namespaces.sql", "name": "_get_utils_namespaces", "macro_sql": "{% macro _get_utils_namespaces() %}\n {% set override_namespaces = var('dbt_utils_dispatch_list', []) %}\n {% do return(override_namespaces + ['dbt_utils', 'fivetran_utils']) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.array_agg": {"unique_id": "macro.fivetran_utils.array_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "name": "array_agg", "macro_sql": "{% macro array_agg(field_to_agg) -%}\n\n{{ adapter.dispatch('array_agg', packages = fivetran_utils._get_utils_namespaces()) (field_to_agg) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.default__array_agg": {"unique_id": "macro.fivetran_utils.default__array_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "name": "default__array_agg", "macro_sql": "{% macro default__array_agg(field_to_agg) %}\n array_agg({{ field_to_agg }})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.redshift__array_agg": {"unique_id": "macro.fivetran_utils.redshift__array_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "name": "redshift__array_agg", "macro_sql": "{% macro redshift__array_agg(field_to_agg) %}\n listagg({{ field_to_agg }}, ',')\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.empty_variable_warning": {"unique_id": "macro.fivetran_utils.empty_variable_warning", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/empty_variable_warning.sql", "original_file_path": "macros/empty_variable_warning.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.enabled_vars_one_true": {"unique_id": "macro.fivetran_utils.enabled_vars_one_true", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/enabled_vars_one_true.sql", "original_file_path": "macros/enabled_vars_one_true.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}}, "docs": {"dbt.__overview__": {"unique_id": "dbt.__overview__", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "overview.md", "original_file_path": "docs/overview.md", "name": "__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 `--models` 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/overview)?\n- Read the [dbt viewpoint](https://docs.getdbt.com/docs/viewpoint)\n- [Installation](https://docs.getdbt.com/docs/installation)\n- Join the [chat](https://community.getdbt.com/) on Slack for live questions and support."}, "hubspot_source._fivetran_synced": {"unique_id": "hubspot_source._fivetran_synced", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "_fivetran_synced", "block_contents": "Timestamp of when Fivetran synced a record."}, "hubspot_source._fivetran_deleted": {"unique_id": "hubspot_source._fivetran_deleted", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "_fivetran_deleted", "block_contents": "Timestamp of when Fivetran marked a record as deleted."}, "hubspot_source.portal_id": {"unique_id": "hubspot_source.portal_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "portal_id", "block_contents": "The hub ID."}, "hubspot_source.is_deleted": {"unique_id": "hubspot_source.is_deleted", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "is_deleted", "block_contents": "Whether the record has been deleted in Hubspot."}, "hubspot_source.history_name": {"unique_id": "hubspot_source.history_name", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "history_name", "block_contents": "The name of the field being changed."}, "hubspot_source.history_source": {"unique_id": "hubspot_source.history_source", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "history_source", "block_contents": "The source (reason) of the change."}, "hubspot_source.history_source_id": {"unique_id": "hubspot_source.history_source_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "history_source_id", "block_contents": "The ID of the object that caused the change, if applicable."}, "hubspot_source.history_timestamp": {"unique_id": "hubspot_source.history_timestamp", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "history_timestamp", "block_contents": "The timestamp the changed occurred."}, "hubspot_source.history_value": {"unique_id": "hubspot_source.history_value", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "history_value", "block_contents": "The new value of the field."}, "hubspot_source.email_event_browser": {"unique_id": "hubspot_source.email_event_browser", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "email_event_browser", "block_contents": "A JSON object representing the browser which serviced the event. Its comprised of the properties: 'name', 'family', 'producer', 'producer_url', 'type', 'url', 'version'."}, "hubspot_source.email_event_ip_address": {"unique_id": "hubspot_source.email_event_ip_address", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "email_event_ip_address", "block_contents": "The contact's IP address when the event occurred."}, "hubspot_source.email_event_location": {"unique_id": "hubspot_source.email_event_location", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "email_event_location", "block_contents": "A JSON object representing the location where the event occurred. It's comprised of the properties: 'city', 'state', 'country'."}, "hubspot_source.email_event_user_agent": {"unique_id": "hubspot_source.email_event_user_agent", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "email_event_user_agent", "block_contents": "The user agent responsible for the event, e.g. \u201cMozilla/5.0 (Macintosh; Intel Mac OS X 10_8_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.95 Safari/537.36\u201d"}}, "exposures": {}, "selectors": {}, "disabled": [{"raw_sql": "", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source_integration_tests", "contact_list_data_postgres"], "unique_id": "seed.hubspot_source_integration_tests.contact_list_data_postgres", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "contact_list_data_postgres.csv", "original_file_path": "data/contact_list_data_postgres.csv", "name": "contact_list_data_postgres", "resource_type": "seed", "alias": "contact_list_data_postgres", "checksum": {"name": "sha256", "checksum": "349152bb0b8810fbbf890a9094250c04efc80151a4a8e30f7f3c75cc1ffad2c2"}, "config": {"enabled": false, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "enabled": "{{ true if target.type == 'postgres' else false }}"}}, {"raw_sql": "", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source_integration_tests", "email_event_sent_data_postgres"], "unique_id": "seed.hubspot_source_integration_tests.email_event_sent_data_postgres", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "email_event_sent_data_postgres.csv", "original_file_path": "data/email_event_sent_data_postgres.csv", "name": "email_event_sent_data_postgres", "resource_type": "seed", "alias": "email_event_sent_data_postgres", "checksum": {"name": "sha256", "checksum": "bec8cbb3459b0a77ce502feca62d013b92cdff4a0fc86e5187368f0c42a32ef0"}, "config": {"enabled": false, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "enabled": "{{ true if target.type == 'postgres' else false }}"}}, {"raw_sql": "", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source_integration_tests", "email_event_sent_data_snowflake"], "unique_id": "seed.hubspot_source_integration_tests.email_event_sent_data_snowflake", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "email_event_sent_data_snowflake.csv", "original_file_path": "data/email_event_sent_data_snowflake.csv", "name": "email_event_sent_data_snowflake", "resource_type": "seed", "alias": "email_event_sent_data_snowflake", "checksum": {"name": "sha256", "checksum": "f43f083762c62ba75aea7bfcc95716a05ffdd855c2fdf782da08e39330305e6b"}, "config": {"enabled": false, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "enabled": "{{ true if target.type == 'snowflake' else false }}"}}, {"raw_sql": "", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source_integration_tests", "email_event_dropped_data_snowflake"], "unique_id": "seed.hubspot_source_integration_tests.email_event_dropped_data_snowflake", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "email_event_dropped_data_snowflake.csv", "original_file_path": "data/email_event_dropped_data_snowflake.csv", "name": "email_event_dropped_data_snowflake", "resource_type": "seed", "alias": "email_event_dropped_data_snowflake", "checksum": {"name": "sha256", "checksum": "6632fecd0168baf628a16fbc0bb0197cf5f808f1f0ad525842f9eae5e16473aa"}, "config": {"enabled": false, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "enabled": "{{ true if target.type == 'snowflake' else false }}"}}, {"raw_sql": "", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["hubspot_source_integration_tests", "email_event_dropped_data_postgres"], "unique_id": "seed.hubspot_source_integration_tests.email_event_dropped_data_postgres", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "email_event_dropped_data_postgres.csv", "original_file_path": "data/email_event_dropped_data_postgres.csv", "name": "email_event_dropped_data_postgres", "resource_type": "seed", "alias": "email_event_dropped_data_postgres", "checksum": {"name": "sha256", "checksum": "3e8f7f2d3d8e92d8b55b396fbed414d787dc147a776e03b633f229875f094260"}, "config": {"enabled": false, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "enabled": "{{ true if target.type == 'postgres' else false }}"}}], "parent_map": {"seed.hubspot_source_integration_tests.email_event_delivered_data": [], "seed.hubspot_source_integration_tests.ticket_pipeline_stage_data": [], "seed.hubspot_source_integration_tests.ticket_contact_data": [], "seed.hubspot_source_integration_tests.email_event_status_change_data": [], "seed.hubspot_source_integration_tests.ticket_company_data": [], "seed.hubspot_source_integration_tests.engagement_deal_data": [], "seed.hubspot_source_integration_tests.deal_stage_data": [], "seed.hubspot_source_integration_tests.email_campaign_data": [], "seed.hubspot_source_integration_tests.engagement_call_data": [], "seed.hubspot_source_integration_tests.email_event_print_data": [], "seed.hubspot_source_integration_tests.email_event_spam_report_data": [], "seed.hubspot_source_integration_tests.ticket_data": [], "seed.hubspot_source_integration_tests.ticket_pipeline_data": [], "seed.hubspot_source_integration_tests.contact_list_data": [], "seed.hubspot_source_integration_tests.email_event_click_data": [], "seed.hubspot_source_integration_tests.email_event_deferred_data": [], "seed.hubspot_source_integration_tests.email_event_open_data": [], "seed.hubspot_source_integration_tests.company_property_history_data": [], "seed.hubspot_source_integration_tests.engagement_email_data": [], "seed.hubspot_source_integration_tests.deal_data": [], "seed.hubspot_source_integration_tests.engagement_note_data": [], "seed.hubspot_source_integration_tests.deal_pipeline_data": [], "seed.hubspot_source_integration_tests.email_event_data": [], "seed.hubspot_source_integration_tests.engagement_data": [], "seed.hubspot_source_integration_tests.email_event_dropped_data": [], "seed.hubspot_source_integration_tests.owner_data": [], "seed.hubspot_source_integration_tests.engagement_meeting_data": [], "seed.hubspot_source_integration_tests.email_event_forward_data": [], "seed.hubspot_source_integration_tests.deal_pipeline_stage_data": [], "seed.hubspot_source_integration_tests.company_data": [], "seed.hubspot_source_integration_tests.contact_list_member_data": [], "seed.hubspot_source_integration_tests.contact_property_history_data": [], "seed.hubspot_source_integration_tests.deal_property_history_data": [], "seed.hubspot_source_integration_tests.email_event_bounce_data": [], "seed.hubspot_source_integration_tests.engagement_contact_data": [], "seed.hubspot_source_integration_tests.ticket_engagement_data": [], "seed.hubspot_source_integration_tests.email_event_sent_data": [], "seed.hubspot_source_integration_tests.contact_data": [], "seed.hubspot_source_integration_tests.ticket_deal_data": [], "seed.hubspot_source_integration_tests.deal_company_data": [], "seed.hubspot_source_integration_tests.ticket_property_history_data": [], "seed.hubspot_source_integration_tests.engagement_task_data": [], "seed.hubspot_source_integration_tests.engagement_company_data": [], "model.hubspot_source.stg_hubspot__engagement_task": ["model.hubspot_source.stg_hubspot__engagement_task_tmp", "model.hubspot_source.stg_hubspot__engagement_task_tmp"], "model.hubspot_source.stg_hubspot__engagement_deal": ["model.hubspot_source.stg_hubspot__engagement_deal_tmp", "model.hubspot_source.stg_hubspot__engagement_deal_tmp"], "model.hubspot_source.stg_hubspot__company_property_history": ["model.hubspot_source.stg_hubspot__company_property_history_tmp", "model.hubspot_source.stg_hubspot__company_property_history_tmp"], "model.hubspot_source.stg_hubspot__email_event_delivered": ["model.hubspot_source.stg_hubspot__email_event_delivered_tmp", "model.hubspot_source.stg_hubspot__email_event_delivered_tmp"], "model.hubspot_source.stg_hubspot__owner": ["model.hubspot_source.stg_hubspot__owner_tmp", "model.hubspot_source.stg_hubspot__owner_tmp"], "model.hubspot_source.stg_hubspot__email_event": ["model.hubspot_source.stg_hubspot__email_event_tmp", "model.hubspot_source.stg_hubspot__email_event_tmp"], "model.hubspot_source.stg_hubspot__engagement_meeting": ["model.hubspot_source.stg_hubspot__engagement_meeting_tmp", "model.hubspot_source.stg_hubspot__engagement_meeting_tmp"], "model.hubspot_source.stg_hubspot__engagement_email": ["model.hubspot_source.stg_hubspot__engagement_email_tmp", "model.hubspot_source.stg_hubspot__engagement_email_tmp"], "model.hubspot_source.stg_hubspot__ticket_contact": ["model.hubspot_source.stg_hubspot__ticket_contact_tmp", "model.hubspot_source.stg_hubspot__ticket_contact_tmp"], "model.hubspot_source.stg_hubspot__email_event_status_change": ["model.hubspot_source.stg_hubspot__email_event_status_change_tmp", "model.hubspot_source.stg_hubspot__email_event_status_change_tmp"], "model.hubspot_source.stg_hubspot__contact_list_member": ["model.hubspot_source.stg_hubspot__contact_list_member_tmp", "model.hubspot_source.stg_hubspot__contact_list_member_tmp"], "model.hubspot_source.stg_hubspot__contact": ["model.hubspot_source.stg_hubspot__contact_tmp", "model.hubspot_source.stg_hubspot__contact_tmp"], "model.hubspot_source.stg_hubspot__deal": ["model.hubspot_source.stg_hubspot__deal_tmp", "model.hubspot_source.stg_hubspot__deal_tmp"], "model.hubspot_source.stg_hubspot__deal_pipeline": ["model.hubspot_source.stg_hubspot__deal_pipeline_tmp", "model.hubspot_source.stg_hubspot__deal_pipeline_tmp"], "model.hubspot_source.stg_hubspot__deal_company": ["model.hubspot_source.stg_hubspot__deal_company_tmp", "model.hubspot_source.stg_hubspot__deal_company_tmp"], "model.hubspot_source.stg_hubspot__engagement_note": ["model.hubspot_source.stg_hubspot__engagement_note_tmp", "model.hubspot_source.stg_hubspot__engagement_note_tmp"], "model.hubspot_source.stg_hubspot__engagement_contact": ["model.hubspot_source.stg_hubspot__engagement_contact_tmp", "model.hubspot_source.stg_hubspot__engagement_contact_tmp"], "model.hubspot_source.stg_hubspot__contact_list": ["model.hubspot_source.stg_hubspot__contact_list_tmp", "model.hubspot_source.stg_hubspot__contact_list_tmp"], "model.hubspot_source.stg_hubspot__ticket_pipeline": ["model.hubspot_source.stg_hubspot__ticket_pipeline_tmp", "model.hubspot_source.stg_hubspot__ticket_pipeline_tmp"], "model.hubspot_source.stg_hubspot__email_event_spam_report": ["model.hubspot_source.stg_hubspot__email_event_spam_report_tmp", "model.hubspot_source.stg_hubspot__email_event_spam_report_tmp"], "model.hubspot_source.stg_hubspot__deal_pipeline_stage": ["model.hubspot_source.stg_hubspot__deal_pipeline_stage_tmp", "model.hubspot_source.stg_hubspot__deal_pipeline_stage_tmp"], "model.hubspot_source.stg_hubspot__email_event_dropped": ["model.hubspot_source.stg_hubspot__email_event_dropped_tmp", "model.hubspot_source.stg_hubspot__email_event_dropped_tmp"], "model.hubspot_source.stg_hubspot__deal_stage": ["model.hubspot_source.stg_hubspot__deal_stage_tmp", "model.hubspot_source.stg_hubspot__deal_stage_tmp"], "model.hubspot_source.stg_hubspot__deal_property_history": ["model.hubspot_source.stg_hubspot__deal_property_history_tmp", "model.hubspot_source.stg_hubspot__deal_property_history_tmp"], "model.hubspot_source.stg_hubspot__email_event_forward": ["model.hubspot_source.stg_hubspot__email_event_forward_tmp", "model.hubspot_source.stg_hubspot__email_event_forward_tmp"], "model.hubspot_source.stg_hubspot__ticket_deal": ["model.hubspot_source.stg_hubspot__ticket_deal_tmp", "model.hubspot_source.stg_hubspot__ticket_deal_tmp"], "model.hubspot_source.stg_hubspot__email_event_bounce": ["model.hubspot_source.stg_hubspot__email_event_bounce_tmp", "model.hubspot_source.stg_hubspot__email_event_bounce_tmp"], "model.hubspot_source.stg_hubspot__ticket_engagement": ["model.hubspot_source.stg_hubspot__ticket_engagement_tmp", "model.hubspot_source.stg_hubspot__ticket_engagement_tmp"], "model.hubspot_source.stg_hubspot__ticket_pipeline_stage": ["model.hubspot_source.stg_hubspot__ticket_pipeline_stage_tmp", "model.hubspot_source.stg_hubspot__ticket_pipeline_stage_tmp"], "model.hubspot_source.stg_hubspot__engagement_company": ["model.hubspot_source.stg_hubspot__engagement_company_tmp", "model.hubspot_source.stg_hubspot__engagement_company_tmp"], "model.hubspot_source.stg_hubspot__email_event_deferred": ["model.hubspot_source.stg_hubspot__email_event_deferred_tmp", "model.hubspot_source.stg_hubspot__email_event_deferred_tmp"], "model.hubspot_source.stg_hubspot__company": ["model.hubspot_source.stg_hubspot__company_tmp", "model.hubspot_source.stg_hubspot__company_tmp"], "model.hubspot_source.stg_hubspot__email_event_click": ["model.hubspot_source.stg_hubspot__email_event_click_tmp", "model.hubspot_source.stg_hubspot__email_event_click_tmp"], "model.hubspot_source.stg_hubspot__engagement_call": ["model.hubspot_source.stg_hubspot__engagement_call_tmp", "model.hubspot_source.stg_hubspot__engagement_call_tmp"], "model.hubspot_source.stg_hubspot__engagement": ["model.hubspot_source.stg_hubspot__engagement_tmp", "model.hubspot_source.stg_hubspot__engagement_tmp"], "model.hubspot_source.stg_hubspot__ticket_company": ["model.hubspot_source.stg_hubspot__ticket_company_tmp", "model.hubspot_source.stg_hubspot__ticket_company_tmp"], "model.hubspot_source.stg_hubspot__email_campaign": ["model.hubspot_source.stg_hubspot__email_campaign_tmp", "model.hubspot_source.stg_hubspot__email_campaign_tmp"], "model.hubspot_source.stg_hubspot__email_event_print": ["model.hubspot_source.stg_hubspot__email_event_print_tmp", "model.hubspot_source.stg_hubspot__email_event_print_tmp"], "model.hubspot_source.stg_hubspot__contact_property_history": ["model.hubspot_source.stg_hubspot__contact_property_history_tmp", "model.hubspot_source.stg_hubspot__contact_property_history_tmp"], "model.hubspot_source.stg_hubspot__ticket_property_history": ["model.hubspot_source.stg_hubspot__ticket_property_history_tmp", "model.hubspot_source.stg_hubspot__ticket_property_history_tmp"], "model.hubspot_source.stg_hubspot__email_event_open": ["model.hubspot_source.stg_hubspot__email_event_open_tmp", "model.hubspot_source.stg_hubspot__email_event_open_tmp"], "model.hubspot_source.stg_hubspot__email_event_sent": ["model.hubspot_source.stg_hubspot__email_event_sent_tmp", "model.hubspot_source.stg_hubspot__email_event_sent_tmp"], "model.hubspot_source.stg_hubspot__ticket": ["model.hubspot_source.stg_hubspot__ticket_tmp", "model.hubspot_source.stg_hubspot__ticket_tmp"], "model.hubspot_source.stg_hubspot__contact_property_history_tmp": ["seed.hubspot_source_integration_tests.contact_property_history_data"], "model.hubspot_source.stg_hubspot__email_event_dropped_tmp": ["seed.hubspot_source_integration_tests.email_event_dropped_data"], "model.hubspot_source.stg_hubspot__email_event_sent_tmp": ["seed.hubspot_source_integration_tests.email_event_sent_data"], "model.hubspot_source.stg_hubspot__deal_tmp": ["seed.hubspot_source_integration_tests.deal_data"], "model.hubspot_source.stg_hubspot__ticket_company_tmp": ["seed.hubspot_source_integration_tests.ticket_company_data"], "model.hubspot_source.stg_hubspot__contact_list_member_tmp": ["seed.hubspot_source_integration_tests.contact_list_member_data"], "model.hubspot_source.stg_hubspot__owner_tmp": ["seed.hubspot_source_integration_tests.owner_data"], "model.hubspot_source.stg_hubspot__deal_stage_tmp": ["seed.hubspot_source_integration_tests.deal_stage_data"], "model.hubspot_source.stg_hubspot__deal_pipeline_tmp": ["seed.hubspot_source_integration_tests.deal_pipeline_data"], "model.hubspot_source.stg_hubspot__ticket_tmp": ["seed.hubspot_source_integration_tests.ticket_data"], "model.hubspot_source.stg_hubspot__ticket_property_history_tmp": ["seed.hubspot_source_integration_tests.ticket_property_history_data"], "model.hubspot_source.stg_hubspot__ticket_pipeline_tmp": ["seed.hubspot_source_integration_tests.ticket_pipeline_data"], "model.hubspot_source.stg_hubspot__engagement_company_tmp": ["seed.hubspot_source_integration_tests.engagement_company_data"], "model.hubspot_source.stg_hubspot__contact_tmp": ["seed.hubspot_source_integration_tests.contact_data"], "model.hubspot_source.stg_hubspot__email_event_status_change_tmp": ["seed.hubspot_source_integration_tests.email_event_status_change_data"], "model.hubspot_source.stg_hubspot__engagement_note_tmp": ["seed.hubspot_source_integration_tests.engagement_note_data"], "model.hubspot_source.stg_hubspot__ticket_contact_tmp": ["seed.hubspot_source_integration_tests.ticket_contact_data"], "model.hubspot_source.stg_hubspot__deal_company_tmp": ["seed.hubspot_source_integration_tests.deal_company_data"], "model.hubspot_source.stg_hubspot__engagement_deal_tmp": ["seed.hubspot_source_integration_tests.engagement_deal_data"], "model.hubspot_source.stg_hubspot__email_event_print_tmp": ["seed.hubspot_source_integration_tests.email_event_print_data"], "model.hubspot_source.stg_hubspot__company_property_history_tmp": ["seed.hubspot_source_integration_tests.company_property_history_data"], "model.hubspot_source.stg_hubspot__email_event_tmp": ["seed.hubspot_source_integration_tests.email_event_data"], "model.hubspot_source.stg_hubspot__company_tmp": ["seed.hubspot_source_integration_tests.company_data"], "model.hubspot_source.stg_hubspot__email_event_click_tmp": ["seed.hubspot_source_integration_tests.email_event_click_data"], "model.hubspot_source.stg_hubspot__engagement_contact_tmp": ["seed.hubspot_source_integration_tests.engagement_contact_data"], "model.hubspot_source.stg_hubspot__contact_list_tmp": ["seed.hubspot_source_integration_tests.contact_list_data"], "model.hubspot_source.stg_hubspot__engagement_meeting_tmp": ["seed.hubspot_source_integration_tests.engagement_meeting_data"], "model.hubspot_source.stg_hubspot__engagement_tmp": ["seed.hubspot_source_integration_tests.engagement_data"], "model.hubspot_source.stg_hubspot__email_event_delivered_tmp": ["seed.hubspot_source_integration_tests.email_event_delivered_data"], "model.hubspot_source.stg_hubspot__engagement_email_tmp": ["seed.hubspot_source_integration_tests.engagement_email_data"], "model.hubspot_source.stg_hubspot__email_event_forward_tmp": ["seed.hubspot_source_integration_tests.email_event_forward_data"], "model.hubspot_source.stg_hubspot__email_event_spam_report_tmp": ["seed.hubspot_source_integration_tests.email_event_spam_report_data"], "model.hubspot_source.stg_hubspot__ticket_engagement_tmp": ["seed.hubspot_source_integration_tests.ticket_engagement_data"], "model.hubspot_source.stg_hubspot__email_event_bounce_tmp": ["seed.hubspot_source_integration_tests.email_event_bounce_data"], "model.hubspot_source.stg_hubspot__engagement_call_tmp": ["seed.hubspot_source_integration_tests.engagement_call_data"], "model.hubspot_source.stg_hubspot__ticket_pipeline_stage_tmp": ["seed.hubspot_source_integration_tests.ticket_pipeline_stage_data"], "model.hubspot_source.stg_hubspot__deal_pipeline_stage_tmp": ["seed.hubspot_source_integration_tests.deal_pipeline_stage_data"], "model.hubspot_source.stg_hubspot__engagement_task_tmp": ["seed.hubspot_source_integration_tests.engagement_task_data"], "model.hubspot_source.stg_hubspot__email_event_open_tmp": ["seed.hubspot_source_integration_tests.email_event_open_data"], "model.hubspot_source.stg_hubspot__deal_property_history_tmp": ["seed.hubspot_source_integration_tests.deal_property_history_data"], "model.hubspot_source.stg_hubspot__email_event_deferred_tmp": ["seed.hubspot_source_integration_tests.email_event_deferred_data"], "model.hubspot_source.stg_hubspot__email_campaign_tmp": ["seed.hubspot_source_integration_tests.email_campaign_data"], "model.hubspot_source.stg_hubspot__ticket_deal_tmp": ["seed.hubspot_source_integration_tests.ticket_deal_data"], "test.hubspot_source.unique_stg_hubspot__deal_pipeline_stage_deal_pipeline_stage_id": ["model.hubspot_source.stg_hubspot__deal_pipeline_stage"], "test.hubspot_source.not_null_stg_hubspot__deal_pipeline_stage_deal_pipeline_stage_id": ["model.hubspot_source.stg_hubspot__deal_pipeline_stage"], "test.hubspot_source.unique_stg_hubspot__deal_pipeline_deal_pipeline_id": ["model.hubspot_source.stg_hubspot__deal_pipeline"], "test.hubspot_source.not_null_stg_hubspot__deal_pipeline_deal_pipeline_id": ["model.hubspot_source.stg_hubspot__deal_pipeline"], "test.hubspot_source.not_null_stg_hubspot__deal_deal_id": ["model.hubspot_source.stg_hubspot__deal"], "test.hubspot_source.unique_stg_hubspot__deal_deal_id": ["model.hubspot_source.stg_hubspot__deal"], "test.hubspot_source.unique_stg_hubspot__contact_list_contact_list_id": ["model.hubspot_source.stg_hubspot__contact_list"], "test.hubspot_source.not_null_stg_hubspot__contact_list_contact_list_id": ["model.hubspot_source.stg_hubspot__contact_list"], "test.hubspot_source.unique_stg_hubspot__contact_contact_id": ["model.hubspot_source.stg_hubspot__contact"], "test.hubspot_source.not_null_stg_hubspot__contact_contact_id": ["model.hubspot_source.stg_hubspot__contact"], "test.hubspot_source.unique_stg_hubspot__email_event_bounce_event_id": ["model.hubspot_source.stg_hubspot__email_event_bounce"], "test.hubspot_source.not_null_stg_hubspot__email_event_bounce_event_id": ["model.hubspot_source.stg_hubspot__email_event_bounce"], "test.hubspot_source.unique_stg_hubspot__email_event_click_event_id": ["model.hubspot_source.stg_hubspot__email_event_click"], "test.hubspot_source.not_null_stg_hubspot__email_event_click_event_id": ["model.hubspot_source.stg_hubspot__email_event_click"], "test.hubspot_source.unique_stg_hubspot__email_event_deferred_event_id": ["model.hubspot_source.stg_hubspot__email_event_deferred"], "test.hubspot_source.not_null_stg_hubspot__email_event_deferred_event_id": ["model.hubspot_source.stg_hubspot__email_event_deferred"], "test.hubspot_source.unique_stg_hubspot__email_event_delivered_event_id": ["model.hubspot_source.stg_hubspot__email_event_delivered"], "test.hubspot_source.not_null_stg_hubspot__email_event_delivered_event_id": ["model.hubspot_source.stg_hubspot__email_event_delivered"], "test.hubspot_source.unique_stg_hubspot__email_event_dropped_event_id": ["model.hubspot_source.stg_hubspot__email_event_dropped"], "test.hubspot_source.not_null_stg_hubspot__email_event_dropped_event_id": ["model.hubspot_source.stg_hubspot__email_event_dropped"], "test.hubspot_source.unique_stg_hubspot__email_event_forward_event_id": ["model.hubspot_source.stg_hubspot__email_event_forward"], "test.hubspot_source.not_null_stg_hubspot__email_event_forward_event_id": ["model.hubspot_source.stg_hubspot__email_event_forward"], "test.hubspot_source.unique_stg_hubspot__email_event_open_event_id": ["model.hubspot_source.stg_hubspot__email_event_open"], "test.hubspot_source.not_null_stg_hubspot__email_event_open_event_id": ["model.hubspot_source.stg_hubspot__email_event_open"], "test.hubspot_source.unique_stg_hubspot__email_event_print_event_id": ["model.hubspot_source.stg_hubspot__email_event_print"], "test.hubspot_source.not_null_stg_hubspot__email_event_print_event_id": ["model.hubspot_source.stg_hubspot__email_event_print"], "test.hubspot_source.unique_stg_hubspot__email_event_sent_event_id": ["model.hubspot_source.stg_hubspot__email_event_sent"], "test.hubspot_source.not_null_stg_hubspot__email_event_sent_event_id": ["model.hubspot_source.stg_hubspot__email_event_sent"], "test.hubspot_source.unique_stg_hubspot__email_event_spam_report_event_id": ["model.hubspot_source.stg_hubspot__email_event_spam_report"], "test.hubspot_source.not_null_stg_hubspot__email_event_spam_report_event_id": ["model.hubspot_source.stg_hubspot__email_event_spam_report"], "test.hubspot_source.unique_stg_hubspot__email_event_status_change_event_id": ["model.hubspot_source.stg_hubspot__email_event_status_change"], "test.hubspot_source.not_null_stg_hubspot__email_event_status_change_event_id": ["model.hubspot_source.stg_hubspot__email_event_status_change"], "test.hubspot_source.unique_stg_hubspot__email_event_event_id": ["model.hubspot_source.stg_hubspot__email_event"], "test.hubspot_source.not_null_stg_hubspot__email_event_event_id": ["model.hubspot_source.stg_hubspot__email_event"], "test.hubspot_source.unique_stg_hubspot__email_campaign_email_campaign_id": ["model.hubspot_source.stg_hubspot__email_campaign"], "test.hubspot_source.not_null_stg_hubspot__email_campaign_email_campaign_id": ["model.hubspot_source.stg_hubspot__email_campaign"], "test.hubspot_source.not_null_stg_hubspot__engagement_call_engagement_id": ["model.hubspot_source.stg_hubspot__engagement_call"], "test.hubspot_source.unique_stg_hubspot__engagement_call_engagement_id": ["model.hubspot_source.stg_hubspot__engagement_call"], "test.hubspot_source.not_null_stg_hubspot__engagement_email_engagement_id": ["model.hubspot_source.stg_hubspot__engagement_email"], "test.hubspot_source.unique_stg_hubspot__engagement_email_engagement_id": ["model.hubspot_source.stg_hubspot__engagement_email"], "test.hubspot_source.not_null_stg_hubspot__engagement_meeting_engagement_id": ["model.hubspot_source.stg_hubspot__engagement_meeting"], "test.hubspot_source.unique_stg_hubspot__engagement_meeting_engagement_id": ["model.hubspot_source.stg_hubspot__engagement_meeting"], "test.hubspot_source.not_null_stg_hubspot__engagement_note_engagement_id": ["model.hubspot_source.stg_hubspot__engagement_note"], "test.hubspot_source.unique_stg_hubspot__engagement_note_engagement_id": ["model.hubspot_source.stg_hubspot__engagement_note"], "test.hubspot_source.not_null_stg_hubspot__engagement_task_engagement_id": ["model.hubspot_source.stg_hubspot__engagement_task"], "test.hubspot_source.unique_stg_hubspot__engagement_task_engagement_id": ["model.hubspot_source.stg_hubspot__engagement_task"], "test.hubspot_source.not_null_stg_hubspot__engagement_engagement_id": ["model.hubspot_source.stg_hubspot__engagement"], "test.hubspot_source.unique_stg_hubspot__engagement_engagement_id": ["model.hubspot_source.stg_hubspot__engagement"], "test.hubspot_source.unique_stg_hubspot__ticket_ticket_id": ["model.hubspot_source.stg_hubspot__ticket"], "test.hubspot_source.not_null_stg_hubspot__ticket_ticket_id": ["model.hubspot_source.stg_hubspot__ticket"], "test.hubspot_source.unique_stg_hubspot__company_company_id": ["model.hubspot_source.stg_hubspot__company"], "test.hubspot_source.not_null_stg_hubspot__company_company_id": ["model.hubspot_source.stg_hubspot__company"], "source.hubspot_source.hubspot.calendar_event": [], "source.hubspot_source.hubspot.company": [], "source.hubspot_source.hubspot.company_property_history": [], "source.hubspot_source.hubspot.contact": [], "source.hubspot_source.hubspot.contact_form_submission": [], "source.hubspot_source.hubspot.contact_list": [], "source.hubspot_source.hubspot.contact_list_member": [], "source.hubspot_source.hubspot.contact_property_history": [], "source.hubspot_source.hubspot.deal": [], "source.hubspot_source.hubspot.deal_stage": [], "source.hubspot_source.hubspot.deal_company": [], "source.hubspot_source.hubspot.deal_contact": [], "source.hubspot_source.hubspot.deal_pipeline": [], "source.hubspot_source.hubspot.deal_pipeline_stage": [], "source.hubspot_source.hubspot.deal_property_history": [], "source.hubspot_source.hubspot.email_campaign": [], "source.hubspot_source.hubspot.email_event": [], "source.hubspot_source.hubspot.email_event_bounce": [], "source.hubspot_source.hubspot.email_event_click": [], "source.hubspot_source.hubspot.email_event_deferred": [], "source.hubspot_source.hubspot.email_event_delivered": [], "source.hubspot_source.hubspot.email_event_dropped": [], "source.hubspot_source.hubspot.email_event_forward": [], "source.hubspot_source.hubspot.email_event_open": [], "source.hubspot_source.hubspot.email_event_print": [], "source.hubspot_source.hubspot.email_event_sent": [], "source.hubspot_source.hubspot.email_event_spam_report": [], "source.hubspot_source.hubspot.email_event_status_change": [], "source.hubspot_source.hubspot.email_subscription": [], "source.hubspot_source.hubspot.email_subscription_change": [], "source.hubspot_source.hubspot.engagement": [], "source.hubspot_source.hubspot.engagement_call": [], "source.hubspot_source.hubspot.engagement_company": [], "source.hubspot_source.hubspot.engagement_contact": [], "source.hubspot_source.hubspot.engagement_deal": [], "source.hubspot_source.hubspot.engagement_email": [], "source.hubspot_source.hubspot.engagement_email_cc": [], "source.hubspot_source.hubspot.engagement_email_to": [], "source.hubspot_source.hubspot.engagement_meeting": [], "source.hubspot_source.hubspot.engagement_note": [], "source.hubspot_source.hubspot.engagement_task": [], "source.hubspot_source.hubspot.form": [], "source.hubspot_source.hubspot.owner": [], "source.hubspot_source.hubspot.ticket_company": [], "source.hubspot_source.hubspot.ticket_contact": [], "source.hubspot_source.hubspot.ticket_deal": [], "source.hubspot_source.hubspot.ticket_engagement": [], "source.hubspot_source.hubspot.ticket_pipeline_stage": [], "source.hubspot_source.hubspot.ticket_pipeline": [], "source.hubspot_source.hubspot.ticket_property_history": [], "source.hubspot_source.hubspot.ticket": []}, "child_map": {"seed.hubspot_source_integration_tests.email_event_delivered_data": ["model.hubspot_source.stg_hubspot__email_event_delivered_tmp"], "seed.hubspot_source_integration_tests.ticket_pipeline_stage_data": ["model.hubspot_source.stg_hubspot__ticket_pipeline_stage_tmp"], "seed.hubspot_source_integration_tests.ticket_contact_data": ["model.hubspot_source.stg_hubspot__ticket_contact_tmp"], "seed.hubspot_source_integration_tests.email_event_status_change_data": ["model.hubspot_source.stg_hubspot__email_event_status_change_tmp"], "seed.hubspot_source_integration_tests.ticket_company_data": ["model.hubspot_source.stg_hubspot__ticket_company_tmp"], "seed.hubspot_source_integration_tests.engagement_deal_data": ["model.hubspot_source.stg_hubspot__engagement_deal_tmp"], "seed.hubspot_source_integration_tests.deal_stage_data": ["model.hubspot_source.stg_hubspot__deal_stage_tmp"], "seed.hubspot_source_integration_tests.email_campaign_data": ["model.hubspot_source.stg_hubspot__email_campaign_tmp"], "seed.hubspot_source_integration_tests.engagement_call_data": ["model.hubspot_source.stg_hubspot__engagement_call_tmp"], "seed.hubspot_source_integration_tests.email_event_print_data": ["model.hubspot_source.stg_hubspot__email_event_print_tmp"], "seed.hubspot_source_integration_tests.email_event_spam_report_data": ["model.hubspot_source.stg_hubspot__email_event_spam_report_tmp"], "seed.hubspot_source_integration_tests.ticket_data": ["model.hubspot_source.stg_hubspot__ticket_tmp"], "seed.hubspot_source_integration_tests.ticket_pipeline_data": ["model.hubspot_source.stg_hubspot__ticket_pipeline_tmp"], "seed.hubspot_source_integration_tests.contact_list_data": ["model.hubspot_source.stg_hubspot__contact_list_tmp"], "seed.hubspot_source_integration_tests.email_event_click_data": ["model.hubspot_source.stg_hubspot__email_event_click_tmp"], "seed.hubspot_source_integration_tests.email_event_deferred_data": ["model.hubspot_source.stg_hubspot__email_event_deferred_tmp"], "seed.hubspot_source_integration_tests.email_event_open_data": ["model.hubspot_source.stg_hubspot__email_event_open_tmp"], "seed.hubspot_source_integration_tests.company_property_history_data": ["model.hubspot_source.stg_hubspot__company_property_history_tmp"], "seed.hubspot_source_integration_tests.engagement_email_data": ["model.hubspot_source.stg_hubspot__engagement_email_tmp"], "seed.hubspot_source_integration_tests.deal_data": ["model.hubspot_source.stg_hubspot__deal_tmp"], "seed.hubspot_source_integration_tests.engagement_note_data": ["model.hubspot_source.stg_hubspot__engagement_note_tmp"], "seed.hubspot_source_integration_tests.deal_pipeline_data": ["model.hubspot_source.stg_hubspot__deal_pipeline_tmp"], "seed.hubspot_source_integration_tests.email_event_data": ["model.hubspot_source.stg_hubspot__email_event_tmp"], "seed.hubspot_source_integration_tests.engagement_data": ["model.hubspot_source.stg_hubspot__engagement_tmp"], "seed.hubspot_source_integration_tests.email_event_dropped_data": ["model.hubspot_source.stg_hubspot__email_event_dropped_tmp"], "seed.hubspot_source_integration_tests.owner_data": ["model.hubspot_source.stg_hubspot__owner_tmp"], "seed.hubspot_source_integration_tests.engagement_meeting_data": ["model.hubspot_source.stg_hubspot__engagement_meeting_tmp"], "seed.hubspot_source_integration_tests.email_event_forward_data": ["model.hubspot_source.stg_hubspot__email_event_forward_tmp"], "seed.hubspot_source_integration_tests.deal_pipeline_stage_data": ["model.hubspot_source.stg_hubspot__deal_pipeline_stage_tmp"], "seed.hubspot_source_integration_tests.company_data": ["model.hubspot_source.stg_hubspot__company_tmp"], "seed.hubspot_source_integration_tests.contact_list_member_data": ["model.hubspot_source.stg_hubspot__contact_list_member_tmp"], "seed.hubspot_source_integration_tests.contact_property_history_data": ["model.hubspot_source.stg_hubspot__contact_property_history_tmp"], "seed.hubspot_source_integration_tests.deal_property_history_data": ["model.hubspot_source.stg_hubspot__deal_property_history_tmp"], "seed.hubspot_source_integration_tests.email_event_bounce_data": ["model.hubspot_source.stg_hubspot__email_event_bounce_tmp"], "seed.hubspot_source_integration_tests.engagement_contact_data": ["model.hubspot_source.stg_hubspot__engagement_contact_tmp"], "seed.hubspot_source_integration_tests.ticket_engagement_data": ["model.hubspot_source.stg_hubspot__ticket_engagement_tmp"], "seed.hubspot_source_integration_tests.email_event_sent_data": ["model.hubspot_source.stg_hubspot__email_event_sent_tmp"], "seed.hubspot_source_integration_tests.contact_data": ["model.hubspot_source.stg_hubspot__contact_tmp"], "seed.hubspot_source_integration_tests.ticket_deal_data": ["model.hubspot_source.stg_hubspot__ticket_deal_tmp"], "seed.hubspot_source_integration_tests.deal_company_data": ["model.hubspot_source.stg_hubspot__deal_company_tmp"], "seed.hubspot_source_integration_tests.ticket_property_history_data": ["model.hubspot_source.stg_hubspot__ticket_property_history_tmp"], "seed.hubspot_source_integration_tests.engagement_task_data": ["model.hubspot_source.stg_hubspot__engagement_task_tmp"], "seed.hubspot_source_integration_tests.engagement_company_data": ["model.hubspot_source.stg_hubspot__engagement_company_tmp"], "model.hubspot_source.stg_hubspot__engagement_task": ["test.hubspot_source.not_null_stg_hubspot__engagement_task_engagement_id", "test.hubspot_source.unique_stg_hubspot__engagement_task_engagement_id"], "model.hubspot_source.stg_hubspot__engagement_deal": [], "model.hubspot_source.stg_hubspot__company_property_history": [], "model.hubspot_source.stg_hubspot__email_event_delivered": ["test.hubspot_source.not_null_stg_hubspot__email_event_delivered_event_id", "test.hubspot_source.unique_stg_hubspot__email_event_delivered_event_id"], "model.hubspot_source.stg_hubspot__owner": [], "model.hubspot_source.stg_hubspot__email_event": ["test.hubspot_source.not_null_stg_hubspot__email_event_event_id", "test.hubspot_source.unique_stg_hubspot__email_event_event_id"], "model.hubspot_source.stg_hubspot__engagement_meeting": ["test.hubspot_source.not_null_stg_hubspot__engagement_meeting_engagement_id", "test.hubspot_source.unique_stg_hubspot__engagement_meeting_engagement_id"], "model.hubspot_source.stg_hubspot__engagement_email": ["test.hubspot_source.not_null_stg_hubspot__engagement_email_engagement_id", "test.hubspot_source.unique_stg_hubspot__engagement_email_engagement_id"], "model.hubspot_source.stg_hubspot__ticket_contact": [], "model.hubspot_source.stg_hubspot__email_event_status_change": ["test.hubspot_source.not_null_stg_hubspot__email_event_status_change_event_id", "test.hubspot_source.unique_stg_hubspot__email_event_status_change_event_id"], "model.hubspot_source.stg_hubspot__contact_list_member": [], "model.hubspot_source.stg_hubspot__contact": ["test.hubspot_source.not_null_stg_hubspot__contact_contact_id", "test.hubspot_source.unique_stg_hubspot__contact_contact_id"], "model.hubspot_source.stg_hubspot__deal": ["test.hubspot_source.not_null_stg_hubspot__deal_deal_id", "test.hubspot_source.unique_stg_hubspot__deal_deal_id"], "model.hubspot_source.stg_hubspot__deal_pipeline": ["test.hubspot_source.not_null_stg_hubspot__deal_pipeline_deal_pipeline_id", "test.hubspot_source.unique_stg_hubspot__deal_pipeline_deal_pipeline_id"], "model.hubspot_source.stg_hubspot__deal_company": [], "model.hubspot_source.stg_hubspot__engagement_note": ["test.hubspot_source.not_null_stg_hubspot__engagement_note_engagement_id", "test.hubspot_source.unique_stg_hubspot__engagement_note_engagement_id"], "model.hubspot_source.stg_hubspot__engagement_contact": [], "model.hubspot_source.stg_hubspot__contact_list": ["test.hubspot_source.not_null_stg_hubspot__contact_list_contact_list_id", "test.hubspot_source.unique_stg_hubspot__contact_list_contact_list_id"], "model.hubspot_source.stg_hubspot__ticket_pipeline": [], "model.hubspot_source.stg_hubspot__email_event_spam_report": ["test.hubspot_source.not_null_stg_hubspot__email_event_spam_report_event_id", "test.hubspot_source.unique_stg_hubspot__email_event_spam_report_event_id"], "model.hubspot_source.stg_hubspot__deal_pipeline_stage": ["test.hubspot_source.not_null_stg_hubspot__deal_pipeline_stage_deal_pipeline_stage_id", "test.hubspot_source.unique_stg_hubspot__deal_pipeline_stage_deal_pipeline_stage_id"], "model.hubspot_source.stg_hubspot__email_event_dropped": ["test.hubspot_source.not_null_stg_hubspot__email_event_dropped_event_id", "test.hubspot_source.unique_stg_hubspot__email_event_dropped_event_id"], "model.hubspot_source.stg_hubspot__deal_stage": [], "model.hubspot_source.stg_hubspot__deal_property_history": [], "model.hubspot_source.stg_hubspot__email_event_forward": ["test.hubspot_source.not_null_stg_hubspot__email_event_forward_event_id", "test.hubspot_source.unique_stg_hubspot__email_event_forward_event_id"], "model.hubspot_source.stg_hubspot__ticket_deal": [], "model.hubspot_source.stg_hubspot__email_event_bounce": ["test.hubspot_source.not_null_stg_hubspot__email_event_bounce_event_id", "test.hubspot_source.unique_stg_hubspot__email_event_bounce_event_id"], "model.hubspot_source.stg_hubspot__ticket_engagement": [], "model.hubspot_source.stg_hubspot__ticket_pipeline_stage": [], "model.hubspot_source.stg_hubspot__engagement_company": [], "model.hubspot_source.stg_hubspot__email_event_deferred": ["test.hubspot_source.not_null_stg_hubspot__email_event_deferred_event_id", "test.hubspot_source.unique_stg_hubspot__email_event_deferred_event_id"], "model.hubspot_source.stg_hubspot__company": ["test.hubspot_source.not_null_stg_hubspot__company_company_id", "test.hubspot_source.unique_stg_hubspot__company_company_id"], "model.hubspot_source.stg_hubspot__email_event_click": ["test.hubspot_source.not_null_stg_hubspot__email_event_click_event_id", "test.hubspot_source.unique_stg_hubspot__email_event_click_event_id"], "model.hubspot_source.stg_hubspot__engagement_call": ["test.hubspot_source.not_null_stg_hubspot__engagement_call_engagement_id", "test.hubspot_source.unique_stg_hubspot__engagement_call_engagement_id"], "model.hubspot_source.stg_hubspot__engagement": ["test.hubspot_source.not_null_stg_hubspot__engagement_engagement_id", "test.hubspot_source.unique_stg_hubspot__engagement_engagement_id"], "model.hubspot_source.stg_hubspot__ticket_company": [], "model.hubspot_source.stg_hubspot__email_campaign": ["test.hubspot_source.not_null_stg_hubspot__email_campaign_email_campaign_id", "test.hubspot_source.unique_stg_hubspot__email_campaign_email_campaign_id"], "model.hubspot_source.stg_hubspot__email_event_print": ["test.hubspot_source.not_null_stg_hubspot__email_event_print_event_id", "test.hubspot_source.unique_stg_hubspot__email_event_print_event_id"], "model.hubspot_source.stg_hubspot__contact_property_history": [], "model.hubspot_source.stg_hubspot__ticket_property_history": [], "model.hubspot_source.stg_hubspot__email_event_open": ["test.hubspot_source.not_null_stg_hubspot__email_event_open_event_id", "test.hubspot_source.unique_stg_hubspot__email_event_open_event_id"], "model.hubspot_source.stg_hubspot__email_event_sent": ["test.hubspot_source.not_null_stg_hubspot__email_event_sent_event_id", "test.hubspot_source.unique_stg_hubspot__email_event_sent_event_id"], "model.hubspot_source.stg_hubspot__ticket": ["test.hubspot_source.not_null_stg_hubspot__ticket_ticket_id", "test.hubspot_source.unique_stg_hubspot__ticket_ticket_id"], "model.hubspot_source.stg_hubspot__contact_property_history_tmp": ["model.hubspot_source.stg_hubspot__contact_property_history", "model.hubspot_source.stg_hubspot__contact_property_history"], "model.hubspot_source.stg_hubspot__email_event_dropped_tmp": ["model.hubspot_source.stg_hubspot__email_event_dropped", "model.hubspot_source.stg_hubspot__email_event_dropped"], "model.hubspot_source.stg_hubspot__email_event_sent_tmp": ["model.hubspot_source.stg_hubspot__email_event_sent", "model.hubspot_source.stg_hubspot__email_event_sent"], "model.hubspot_source.stg_hubspot__deal_tmp": ["model.hubspot_source.stg_hubspot__deal", "model.hubspot_source.stg_hubspot__deal"], "model.hubspot_source.stg_hubspot__ticket_company_tmp": ["model.hubspot_source.stg_hubspot__ticket_company", "model.hubspot_source.stg_hubspot__ticket_company"], "model.hubspot_source.stg_hubspot__contact_list_member_tmp": ["model.hubspot_source.stg_hubspot__contact_list_member", "model.hubspot_source.stg_hubspot__contact_list_member"], "model.hubspot_source.stg_hubspot__owner_tmp": ["model.hubspot_source.stg_hubspot__owner", "model.hubspot_source.stg_hubspot__owner"], "model.hubspot_source.stg_hubspot__deal_stage_tmp": ["model.hubspot_source.stg_hubspot__deal_stage", "model.hubspot_source.stg_hubspot__deal_stage"], "model.hubspot_source.stg_hubspot__deal_pipeline_tmp": ["model.hubspot_source.stg_hubspot__deal_pipeline", "model.hubspot_source.stg_hubspot__deal_pipeline"], "model.hubspot_source.stg_hubspot__ticket_tmp": ["model.hubspot_source.stg_hubspot__ticket", "model.hubspot_source.stg_hubspot__ticket"], "model.hubspot_source.stg_hubspot__ticket_property_history_tmp": ["model.hubspot_source.stg_hubspot__ticket_property_history", "model.hubspot_source.stg_hubspot__ticket_property_history"], "model.hubspot_source.stg_hubspot__ticket_pipeline_tmp": ["model.hubspot_source.stg_hubspot__ticket_pipeline", "model.hubspot_source.stg_hubspot__ticket_pipeline"], "model.hubspot_source.stg_hubspot__engagement_company_tmp": ["model.hubspot_source.stg_hubspot__engagement_company", "model.hubspot_source.stg_hubspot__engagement_company"], "model.hubspot_source.stg_hubspot__contact_tmp": ["model.hubspot_source.stg_hubspot__contact", "model.hubspot_source.stg_hubspot__contact"], "model.hubspot_source.stg_hubspot__email_event_status_change_tmp": ["model.hubspot_source.stg_hubspot__email_event_status_change", "model.hubspot_source.stg_hubspot__email_event_status_change"], "model.hubspot_source.stg_hubspot__engagement_note_tmp": ["model.hubspot_source.stg_hubspot__engagement_note", "model.hubspot_source.stg_hubspot__engagement_note"], "model.hubspot_source.stg_hubspot__ticket_contact_tmp": ["model.hubspot_source.stg_hubspot__ticket_contact", "model.hubspot_source.stg_hubspot__ticket_contact"], "model.hubspot_source.stg_hubspot__deal_company_tmp": ["model.hubspot_source.stg_hubspot__deal_company", "model.hubspot_source.stg_hubspot__deal_company"], "model.hubspot_source.stg_hubspot__engagement_deal_tmp": ["model.hubspot_source.stg_hubspot__engagement_deal", "model.hubspot_source.stg_hubspot__engagement_deal"], "model.hubspot_source.stg_hubspot__email_event_print_tmp": ["model.hubspot_source.stg_hubspot__email_event_print", "model.hubspot_source.stg_hubspot__email_event_print"], "model.hubspot_source.stg_hubspot__company_property_history_tmp": ["model.hubspot_source.stg_hubspot__company_property_history", "model.hubspot_source.stg_hubspot__company_property_history"], "model.hubspot_source.stg_hubspot__email_event_tmp": ["model.hubspot_source.stg_hubspot__email_event", "model.hubspot_source.stg_hubspot__email_event"], "model.hubspot_source.stg_hubspot__company_tmp": ["model.hubspot_source.stg_hubspot__company", "model.hubspot_source.stg_hubspot__company"], "model.hubspot_source.stg_hubspot__email_event_click_tmp": ["model.hubspot_source.stg_hubspot__email_event_click", "model.hubspot_source.stg_hubspot__email_event_click"], "model.hubspot_source.stg_hubspot__engagement_contact_tmp": ["model.hubspot_source.stg_hubspot__engagement_contact", "model.hubspot_source.stg_hubspot__engagement_contact"], "model.hubspot_source.stg_hubspot__contact_list_tmp": ["model.hubspot_source.stg_hubspot__contact_list", "model.hubspot_source.stg_hubspot__contact_list"], "model.hubspot_source.stg_hubspot__engagement_meeting_tmp": ["model.hubspot_source.stg_hubspot__engagement_meeting", "model.hubspot_source.stg_hubspot__engagement_meeting"], "model.hubspot_source.stg_hubspot__engagement_tmp": ["model.hubspot_source.stg_hubspot__engagement", "model.hubspot_source.stg_hubspot__engagement"], "model.hubspot_source.stg_hubspot__email_event_delivered_tmp": ["model.hubspot_source.stg_hubspot__email_event_delivered", "model.hubspot_source.stg_hubspot__email_event_delivered"], "model.hubspot_source.stg_hubspot__engagement_email_tmp": ["model.hubspot_source.stg_hubspot__engagement_email", "model.hubspot_source.stg_hubspot__engagement_email"], "model.hubspot_source.stg_hubspot__email_event_forward_tmp": ["model.hubspot_source.stg_hubspot__email_event_forward", "model.hubspot_source.stg_hubspot__email_event_forward"], "model.hubspot_source.stg_hubspot__email_event_spam_report_tmp": ["model.hubspot_source.stg_hubspot__email_event_spam_report", "model.hubspot_source.stg_hubspot__email_event_spam_report"], "model.hubspot_source.stg_hubspot__ticket_engagement_tmp": ["model.hubspot_source.stg_hubspot__ticket_engagement", "model.hubspot_source.stg_hubspot__ticket_engagement"], "model.hubspot_source.stg_hubspot__email_event_bounce_tmp": ["model.hubspot_source.stg_hubspot__email_event_bounce", "model.hubspot_source.stg_hubspot__email_event_bounce"], "model.hubspot_source.stg_hubspot__engagement_call_tmp": ["model.hubspot_source.stg_hubspot__engagement_call", "model.hubspot_source.stg_hubspot__engagement_call"], "model.hubspot_source.stg_hubspot__ticket_pipeline_stage_tmp": ["model.hubspot_source.stg_hubspot__ticket_pipeline_stage", "model.hubspot_source.stg_hubspot__ticket_pipeline_stage"], "model.hubspot_source.stg_hubspot__deal_pipeline_stage_tmp": ["model.hubspot_source.stg_hubspot__deal_pipeline_stage", "model.hubspot_source.stg_hubspot__deal_pipeline_stage"], "model.hubspot_source.stg_hubspot__engagement_task_tmp": ["model.hubspot_source.stg_hubspot__engagement_task", "model.hubspot_source.stg_hubspot__engagement_task"], "model.hubspot_source.stg_hubspot__email_event_open_tmp": ["model.hubspot_source.stg_hubspot__email_event_open", "model.hubspot_source.stg_hubspot__email_event_open"], "model.hubspot_source.stg_hubspot__deal_property_history_tmp": ["model.hubspot_source.stg_hubspot__deal_property_history", "model.hubspot_source.stg_hubspot__deal_property_history"], "model.hubspot_source.stg_hubspot__email_event_deferred_tmp": ["model.hubspot_source.stg_hubspot__email_event_deferred", "model.hubspot_source.stg_hubspot__email_event_deferred"], "model.hubspot_source.stg_hubspot__email_campaign_tmp": ["model.hubspot_source.stg_hubspot__email_campaign", "model.hubspot_source.stg_hubspot__email_campaign"], "model.hubspot_source.stg_hubspot__ticket_deal_tmp": ["model.hubspot_source.stg_hubspot__ticket_deal", "model.hubspot_source.stg_hubspot__ticket_deal"], "test.hubspot_source.unique_stg_hubspot__deal_pipeline_stage_deal_pipeline_stage_id": [], "test.hubspot_source.not_null_stg_hubspot__deal_pipeline_stage_deal_pipeline_stage_id": [], "test.hubspot_source.unique_stg_hubspot__deal_pipeline_deal_pipeline_id": [], "test.hubspot_source.not_null_stg_hubspot__deal_pipeline_deal_pipeline_id": [], "test.hubspot_source.not_null_stg_hubspot__deal_deal_id": [], "test.hubspot_source.unique_stg_hubspot__deal_deal_id": [], "test.hubspot_source.unique_stg_hubspot__contact_list_contact_list_id": [], "test.hubspot_source.not_null_stg_hubspot__contact_list_contact_list_id": [], "test.hubspot_source.unique_stg_hubspot__contact_contact_id": [], "test.hubspot_source.not_null_stg_hubspot__contact_contact_id": [], "test.hubspot_source.unique_stg_hubspot__email_event_bounce_event_id": [], "test.hubspot_source.not_null_stg_hubspot__email_event_bounce_event_id": [], "test.hubspot_source.unique_stg_hubspot__email_event_click_event_id": [], "test.hubspot_source.not_null_stg_hubspot__email_event_click_event_id": [], "test.hubspot_source.unique_stg_hubspot__email_event_deferred_event_id": [], "test.hubspot_source.not_null_stg_hubspot__email_event_deferred_event_id": [], "test.hubspot_source.unique_stg_hubspot__email_event_delivered_event_id": [], "test.hubspot_source.not_null_stg_hubspot__email_event_delivered_event_id": [], "test.hubspot_source.unique_stg_hubspot__email_event_dropped_event_id": [], "test.hubspot_source.not_null_stg_hubspot__email_event_dropped_event_id": [], "test.hubspot_source.unique_stg_hubspot__email_event_forward_event_id": [], "test.hubspot_source.not_null_stg_hubspot__email_event_forward_event_id": [], "test.hubspot_source.unique_stg_hubspot__email_event_open_event_id": [], "test.hubspot_source.not_null_stg_hubspot__email_event_open_event_id": [], "test.hubspot_source.unique_stg_hubspot__email_event_print_event_id": [], "test.hubspot_source.not_null_stg_hubspot__email_event_print_event_id": [], "test.hubspot_source.unique_stg_hubspot__email_event_sent_event_id": [], "test.hubspot_source.not_null_stg_hubspot__email_event_sent_event_id": [], "test.hubspot_source.unique_stg_hubspot__email_event_spam_report_event_id": [], "test.hubspot_source.not_null_stg_hubspot__email_event_spam_report_event_id": [], "test.hubspot_source.unique_stg_hubspot__email_event_status_change_event_id": [], "test.hubspot_source.not_null_stg_hubspot__email_event_status_change_event_id": [], "test.hubspot_source.unique_stg_hubspot__email_event_event_id": [], "test.hubspot_source.not_null_stg_hubspot__email_event_event_id": [], "test.hubspot_source.unique_stg_hubspot__email_campaign_email_campaign_id": [], "test.hubspot_source.not_null_stg_hubspot__email_campaign_email_campaign_id": [], "test.hubspot_source.not_null_stg_hubspot__engagement_call_engagement_id": [], "test.hubspot_source.unique_stg_hubspot__engagement_call_engagement_id": [], "test.hubspot_source.not_null_stg_hubspot__engagement_email_engagement_id": [], "test.hubspot_source.unique_stg_hubspot__engagement_email_engagement_id": [], "test.hubspot_source.not_null_stg_hubspot__engagement_meeting_engagement_id": [], "test.hubspot_source.unique_stg_hubspot__engagement_meeting_engagement_id": [], "test.hubspot_source.not_null_stg_hubspot__engagement_note_engagement_id": [], "test.hubspot_source.unique_stg_hubspot__engagement_note_engagement_id": [], "test.hubspot_source.not_null_stg_hubspot__engagement_task_engagement_id": [], "test.hubspot_source.unique_stg_hubspot__engagement_task_engagement_id": [], "test.hubspot_source.not_null_stg_hubspot__engagement_engagement_id": [], "test.hubspot_source.unique_stg_hubspot__engagement_engagement_id": [], "test.hubspot_source.unique_stg_hubspot__ticket_ticket_id": [], "test.hubspot_source.not_null_stg_hubspot__ticket_ticket_id": [], "test.hubspot_source.unique_stg_hubspot__company_company_id": [], "test.hubspot_source.not_null_stg_hubspot__company_company_id": [], "source.hubspot_source.hubspot.calendar_event": [], "source.hubspot_source.hubspot.company": [], "source.hubspot_source.hubspot.company_property_history": [], "source.hubspot_source.hubspot.contact": [], "source.hubspot_source.hubspot.contact_form_submission": [], "source.hubspot_source.hubspot.contact_list": [], "source.hubspot_source.hubspot.contact_list_member": [], "source.hubspot_source.hubspot.contact_property_history": [], "source.hubspot_source.hubspot.deal": [], "source.hubspot_source.hubspot.deal_stage": [], "source.hubspot_source.hubspot.deal_company": [], "source.hubspot_source.hubspot.deal_contact": [], "source.hubspot_source.hubspot.deal_pipeline": [], "source.hubspot_source.hubspot.deal_pipeline_stage": [], "source.hubspot_source.hubspot.deal_property_history": [], "source.hubspot_source.hubspot.email_campaign": [], "source.hubspot_source.hubspot.email_event": [], "source.hubspot_source.hubspot.email_event_bounce": [], "source.hubspot_source.hubspot.email_event_click": [], "source.hubspot_source.hubspot.email_event_deferred": [], "source.hubspot_source.hubspot.email_event_delivered": [], "source.hubspot_source.hubspot.email_event_dropped": [], "source.hubspot_source.hubspot.email_event_forward": [], "source.hubspot_source.hubspot.email_event_open": [], "source.hubspot_source.hubspot.email_event_print": [], "source.hubspot_source.hubspot.email_event_sent": [], "source.hubspot_source.hubspot.email_event_spam_report": [], "source.hubspot_source.hubspot.email_event_status_change": [], "source.hubspot_source.hubspot.email_subscription": [], "source.hubspot_source.hubspot.email_subscription_change": [], "source.hubspot_source.hubspot.engagement": [], "source.hubspot_source.hubspot.engagement_call": [], "source.hubspot_source.hubspot.engagement_company": [], "source.hubspot_source.hubspot.engagement_contact": [], "source.hubspot_source.hubspot.engagement_deal": [], "source.hubspot_source.hubspot.engagement_email": [], "source.hubspot_source.hubspot.engagement_email_cc": [], "source.hubspot_source.hubspot.engagement_email_to": [], "source.hubspot_source.hubspot.engagement_meeting": [], "source.hubspot_source.hubspot.engagement_note": [], "source.hubspot_source.hubspot.engagement_task": [], "source.hubspot_source.hubspot.form": [], "source.hubspot_source.hubspot.owner": [], "source.hubspot_source.hubspot.ticket_company": [], "source.hubspot_source.hubspot.ticket_contact": [], "source.hubspot_source.hubspot.ticket_deal": [], "source.hubspot_source.hubspot.ticket_engagement": [], "source.hubspot_source.hubspot.ticket_pipeline_stage": [], "source.hubspot_source.hubspot.ticket_pipeline": [], "source.hubspot_source.hubspot.ticket_property_history": [], "source.hubspot_source.hubspot.ticket": []}} \ No newline at end of file +{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/manifest/v1.json", "dbt_version": "0.19.0", "generated_at": "2021-04-06T15:07:24.702882Z", "invocation_id": "96770ca8-34ed-4397-b376-b40fa34cd6bc", "env": {}, "project_id": "39dd6cabb1b7b5f4dd1b7ea99f6c783e", "user_id": "57178664-37b2-4047-9572-68ec8b488cd7", "send_anonymous_usage_stats": true, "adapter_type": "bigquery"}, "nodes": {"seed.hubspot_source_integration_tests.email_event_delivered_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source_integration_tests", "email_event_delivered_data"], "unique_id": "seed.hubspot_source_integration_tests.email_event_delivered_data", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "email_event_delivered_data.csv", "original_file_path": "data/email_event_delivered_data.csv", "name": "email_event_delivered_data", "resource_type": "seed", "alias": "email_event_delivered_data", "checksum": {"name": "sha256", "checksum": "bac0832d9511cdf5afdd52248082bfa1e1c7f53a043271b3ef421bd4acd9cfb2"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`email_event_delivered_data`"}, "seed.hubspot_source_integration_tests.ticket_pipeline_stage_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source_integration_tests", "ticket_pipeline_stage_data"], "unique_id": "seed.hubspot_source_integration_tests.ticket_pipeline_stage_data", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "ticket_pipeline_stage_data.csv", "original_file_path": "data/ticket_pipeline_stage_data.csv", "name": "ticket_pipeline_stage_data", "resource_type": "seed", "alias": "ticket_pipeline_stage_data", "checksum": {"name": "sha256", "checksum": "a8bf2dd2e6efcf7bbeb80c4a2f6531d6102cf78de61d6e2481e1e251b9328de4"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`ticket_pipeline_stage_data`"}, "seed.hubspot_source_integration_tests.ticket_contact_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source_integration_tests", "ticket_contact_data"], "unique_id": "seed.hubspot_source_integration_tests.ticket_contact_data", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "ticket_contact_data.csv", "original_file_path": "data/ticket_contact_data.csv", "name": "ticket_contact_data", "resource_type": "seed", "alias": "ticket_contact_data", "checksum": {"name": "sha256", "checksum": "0ee95e57c2a3a9655933450436ce250fda2f9a1372e886f55fa7030e798693f7"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`ticket_contact_data`"}, "seed.hubspot_source_integration_tests.email_event_status_change_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source_integration_tests", "email_event_status_change_data"], "unique_id": "seed.hubspot_source_integration_tests.email_event_status_change_data", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "email_event_status_change_data.csv", "original_file_path": "data/email_event_status_change_data.csv", "name": "email_event_status_change_data", "resource_type": "seed", "alias": "email_event_status_change_data", "checksum": {"name": "sha256", "checksum": "4ebf917113fb6696a3c05c53bd9693f8912353cae6e3d501b5218bcd3ffd8ca8"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`email_event_status_change_data`"}, "seed.hubspot_source_integration_tests.ticket_company_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source_integration_tests", "ticket_company_data"], "unique_id": "seed.hubspot_source_integration_tests.ticket_company_data", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "ticket_company_data.csv", "original_file_path": "data/ticket_company_data.csv", "name": "ticket_company_data", "resource_type": "seed", "alias": "ticket_company_data", "checksum": {"name": "sha256", "checksum": "862f241f80795c00ee08a4eb02441d069a06f935d5f3304d5e448d02b8a25193"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`ticket_company_data`"}, "seed.hubspot_source_integration_tests.engagement_deal_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source_integration_tests", "engagement_deal_data"], "unique_id": "seed.hubspot_source_integration_tests.engagement_deal_data", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "engagement_deal_data.csv", "original_file_path": "data/engagement_deal_data.csv", "name": "engagement_deal_data", "resource_type": "seed", "alias": "engagement_deal_data", "checksum": {"name": "sha256", "checksum": "851831bb563e331d84db49071e5c7eb6c110c0146fede28719f3925be3bac5b3"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {"engagement_id": "int64", "deal_id": "int64"}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "column_types": {"engagement_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "deal_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}"}}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`engagement_deal_data`"}, "seed.hubspot_source_integration_tests.deal_stage_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source_integration_tests", "deal_stage_data"], "unique_id": "seed.hubspot_source_integration_tests.deal_stage_data", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "deal_stage_data.csv", "original_file_path": "data/deal_stage_data.csv", "name": "deal_stage_data", "resource_type": "seed", "alias": "deal_stage_data", "checksum": {"name": "sha256", "checksum": "d554a9a32c5c0eac1fe5b65c543fbb1b2add1193329d302c67d513ca4b8dd391"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {"deal_id": "int64"}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "column_types": {"deal_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}"}}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`deal_stage_data`"}, "seed.hubspot_source_integration_tests.email_campaign_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source_integration_tests", "email_campaign_data"], "unique_id": "seed.hubspot_source_integration_tests.email_campaign_data", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "email_campaign_data.csv", "original_file_path": "data/email_campaign_data.csv", "name": "email_campaign_data", "resource_type": "seed", "alias": "email_campaign_data", "checksum": {"name": "sha256", "checksum": "646c26031131923064e3d756bd5e354c69884b1f1d123d40a289631b6afa3bc0"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {"id": "int64", "content_id": "int64"}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "column_types": {"id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "content_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}"}}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`email_campaign_data`"}, "seed.hubspot_source_integration_tests.engagement_call_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source_integration_tests", "engagement_call_data"], "unique_id": "seed.hubspot_source_integration_tests.engagement_call_data", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "engagement_call_data.csv", "original_file_path": "data/engagement_call_data.csv", "name": "engagement_call_data", "resource_type": "seed", "alias": "engagement_call_data", "checksum": {"name": "sha256", "checksum": "a14b53204e4bc88615b9071b41e9d017859b8332573b96e5d0329c23bc2403bf"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {"engagement_id": "int64"}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "column_types": {"engagement_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}"}}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`engagement_call_data`"}, "seed.hubspot_source_integration_tests.email_event_print_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source_integration_tests", "email_event_print_data"], "unique_id": "seed.hubspot_source_integration_tests.email_event_print_data", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "email_event_print_data.csv", "original_file_path": "data/email_event_print_data.csv", "name": "email_event_print_data", "resource_type": "seed", "alias": "email_event_print_data", "checksum": {"name": "sha256", "checksum": "4fd71501b3918ac0f75f86fffb30f73dc25de86973ec142716ade954ead8987e"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`email_event_print_data`"}, "seed.hubspot_source_integration_tests.email_event_spam_report_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source_integration_tests", "email_event_spam_report_data"], "unique_id": "seed.hubspot_source_integration_tests.email_event_spam_report_data", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "email_event_spam_report_data.csv", "original_file_path": "data/email_event_spam_report_data.csv", "name": "email_event_spam_report_data", "resource_type": "seed", "alias": "email_event_spam_report_data", "checksum": {"name": "sha256", "checksum": "42c9e30686405fdae6401bd728369be29e94201b946ea45aa9bff0329e677e04"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`email_event_spam_report_data`"}, "seed.hubspot_source_integration_tests.ticket_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source_integration_tests", "ticket_data"], "unique_id": "seed.hubspot_source_integration_tests.ticket_data", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "ticket_data.csv", "original_file_path": "data/ticket_data.csv", "name": "ticket_data", "resource_type": "seed", "alias": "ticket_data", "checksum": {"name": "sha256", "checksum": "05ba2295207d725b7faa3faad8059ff7b4b08b5bb083a1f00d8b0918bed42337"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`ticket_data`"}, "seed.hubspot_source_integration_tests.ticket_pipeline_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source_integration_tests", "ticket_pipeline_data"], "unique_id": "seed.hubspot_source_integration_tests.ticket_pipeline_data", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "ticket_pipeline_data.csv", "original_file_path": "data/ticket_pipeline_data.csv", "name": "ticket_pipeline_data", "resource_type": "seed", "alias": "ticket_pipeline_data", "checksum": {"name": "sha256", "checksum": "c7634af8897faf2c7bb5a843f4a67901575ede0f741308bb7c1ed4d9b2cdd76f"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`ticket_pipeline_data`"}, "seed.hubspot_source_integration_tests.contact_list_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source_integration_tests", "contact_list_data"], "unique_id": "seed.hubspot_source_integration_tests.contact_list_data", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "contact_list_data.csv", "original_file_path": "data/contact_list_data.csv", "name": "contact_list_data", "resource_type": "seed", "alias": "contact_list_data", "checksum": {"name": "sha256", "checksum": "82789af9bccebcc6867b7e0d2029808f02bd9cbd7e3bedd43704d742ae565e94"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "enabled": "{{ true if target.type != 'postgres' else false }}"}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`contact_list_data`"}, "seed.hubspot_source_integration_tests.email_event_click_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source_integration_tests", "email_event_click_data"], "unique_id": "seed.hubspot_source_integration_tests.email_event_click_data", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "email_event_click_data.csv", "original_file_path": "data/email_event_click_data.csv", "name": "email_event_click_data", "resource_type": "seed", "alias": "email_event_click_data", "checksum": {"name": "sha256", "checksum": "5f2ae2a37b9c3862c09d680744fd3c391483ac00a859046dd616db2785540c71"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`email_event_click_data`"}, "seed.hubspot_source_integration_tests.email_event_deferred_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source_integration_tests", "email_event_deferred_data"], "unique_id": "seed.hubspot_source_integration_tests.email_event_deferred_data", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "email_event_deferred_data.csv", "original_file_path": "data/email_event_deferred_data.csv", "name": "email_event_deferred_data", "resource_type": "seed", "alias": "email_event_deferred_data", "checksum": {"name": "sha256", "checksum": "a091eadc8b7953cc5ef605241e1f11c195a8d38fd3151ae75c590879d5c05c51"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`email_event_deferred_data`"}, "seed.hubspot_source_integration_tests.email_event_open_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source_integration_tests", "email_event_open_data"], "unique_id": "seed.hubspot_source_integration_tests.email_event_open_data", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "email_event_open_data.csv", "original_file_path": "data/email_event_open_data.csv", "name": "email_event_open_data", "resource_type": "seed", "alias": "email_event_open_data", "checksum": {"name": "sha256", "checksum": "642853dc3235221a5f8f2879b460414670f1ee6b2d2f3c1930e566fee476be30"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`email_event_open_data`"}, "seed.hubspot_source_integration_tests.company_property_history_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source_integration_tests", "company_property_history_data"], "unique_id": "seed.hubspot_source_integration_tests.company_property_history_data", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "company_property_history_data.csv", "original_file_path": "data/company_property_history_data.csv", "name": "company_property_history_data", "resource_type": "seed", "alias": "company_property_history_data", "checksum": {"name": "sha256", "checksum": "52c2f598754cd8b962bbeaf2a20b7cc8f82eb9a647e3f1fb08348ebb4c779c44"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {"company_id": "int64"}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "column_types": {"company_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}"}}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`company_property_history_data`"}, "seed.hubspot_source_integration_tests.engagement_email_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source_integration_tests", "engagement_email_data"], "unique_id": "seed.hubspot_source_integration_tests.engagement_email_data", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "engagement_email_data.csv", "original_file_path": "data/engagement_email_data.csv", "name": "engagement_email_data", "resource_type": "seed", "alias": "engagement_email_data", "checksum": {"name": "sha256", "checksum": "893e4cc3d0ab0cf86cbf59052b53c316e5e64a7432c4789f97c45dcead3eebc7"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {"engagement_id": "int64"}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "column_types": {"engagement_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}"}}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`engagement_email_data`"}, "seed.hubspot_source_integration_tests.deal_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source_integration_tests", "deal_data"], "unique_id": "seed.hubspot_source_integration_tests.deal_data", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "deal_data.csv", "original_file_path": "data/deal_data.csv", "name": "deal_data", "resource_type": "seed", "alias": "deal_data", "checksum": {"name": "sha256", "checksum": "beb5744a319ac9356799841e5324c4d4430a2d819a5a47c7e90f21c8680d7098"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {"deal_id": "int64", "owner_id": "int64"}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "column_types": {"deal_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "owner_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}"}}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`deal_data`"}, "seed.hubspot_source_integration_tests.engagement_note_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source_integration_tests", "engagement_note_data"], "unique_id": "seed.hubspot_source_integration_tests.engagement_note_data", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "engagement_note_data.csv", "original_file_path": "data/engagement_note_data.csv", "name": "engagement_note_data", "resource_type": "seed", "alias": "engagement_note_data", "checksum": {"name": "sha256", "checksum": "cee44946dc82d0a0ddb2a374562a6a5d927dc9c06c0b477bbe2b992114867e15"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {"engagement_id": "int64"}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "column_types": {"engagement_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}"}}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`engagement_note_data`"}, "seed.hubspot_source_integration_tests.deal_pipeline_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source_integration_tests", "deal_pipeline_data"], "unique_id": "seed.hubspot_source_integration_tests.deal_pipeline_data", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "deal_pipeline_data.csv", "original_file_path": "data/deal_pipeline_data.csv", "name": "deal_pipeline_data", "resource_type": "seed", "alias": "deal_pipeline_data", "checksum": {"name": "sha256", "checksum": "bf413926570c4630b2c2f6835282070e1217e15268543dbbfc2060c1e018ba3f"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`deal_pipeline_data`"}, "seed.hubspot_source_integration_tests.email_event_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source_integration_tests", "email_event_data"], "unique_id": "seed.hubspot_source_integration_tests.email_event_data", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "email_event_data.csv", "original_file_path": "data/email_event_data.csv", "name": "email_event_data", "resource_type": "seed", "alias": "email_event_data", "checksum": {"name": "sha256", "checksum": "e5baab5fa8523995b5b9ac0f84be3a94fb43a8e92214feb33b91a92364d1cbbd"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`email_event_data`"}, "seed.hubspot_source_integration_tests.engagement_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source_integration_tests", "engagement_data"], "unique_id": "seed.hubspot_source_integration_tests.engagement_data", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "engagement_data.csv", "original_file_path": "data/engagement_data.csv", "name": "engagement_data", "resource_type": "seed", "alias": "engagement_data", "checksum": {"name": "sha256", "checksum": "bc0116d99bbb4a5298349790e172681232dbb19655a95911dfb47527a5b1626c"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {"id": "int64"}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "column_types": {"id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}"}}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`engagement_data`"}, "seed.hubspot_source_integration_tests.email_event_dropped_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source_integration_tests", "email_event_dropped_data"], "unique_id": "seed.hubspot_source_integration_tests.email_event_dropped_data", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "email_event_dropped_data.csv", "original_file_path": "data/email_event_dropped_data.csv", "name": "email_event_dropped_data", "resource_type": "seed", "alias": "email_event_dropped_data", "checksum": {"name": "sha256", "checksum": "8823d2c069348f748f2329a9a0652ac56616cd93194559ae01c6f397143850b8"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "enabled": "{{ true if target.type not in ('snowflake', 'postgres') else false }}"}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`email_event_dropped_data`"}, "seed.hubspot_source_integration_tests.owner_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source_integration_tests", "owner_data"], "unique_id": "seed.hubspot_source_integration_tests.owner_data", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "owner_data.csv", "original_file_path": "data/owner_data.csv", "name": "owner_data", "resource_type": "seed", "alias": "owner_data", "checksum": {"name": "sha256", "checksum": "468986814827029c1ce9ab5bb57808f038a888b6ad5426f403a5d67bd8500469"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {"owner_id": "int64"}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "column_types": {"owner_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}"}}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`owner_data`"}, "seed.hubspot_source_integration_tests.engagement_meeting_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source_integration_tests", "engagement_meeting_data"], "unique_id": "seed.hubspot_source_integration_tests.engagement_meeting_data", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "engagement_meeting_data.csv", "original_file_path": "data/engagement_meeting_data.csv", "name": "engagement_meeting_data", "resource_type": "seed", "alias": "engagement_meeting_data", "checksum": {"name": "sha256", "checksum": "13bdd431034bcf89a45d1c5e7ac03c1cc61e92188f652b244b7ee3ccc287eaa1"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {"engagement_id": "int64"}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "column_types": {"engagement_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}"}}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`engagement_meeting_data`"}, "seed.hubspot_source_integration_tests.email_event_forward_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source_integration_tests", "email_event_forward_data"], "unique_id": "seed.hubspot_source_integration_tests.email_event_forward_data", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "email_event_forward_data.csv", "original_file_path": "data/email_event_forward_data.csv", "name": "email_event_forward_data", "resource_type": "seed", "alias": "email_event_forward_data", "checksum": {"name": "sha256", "checksum": "8fc1066f680e8427a98c275e951906ea5e1235e9de8c2eb0a2e59cebd8524251"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`email_event_forward_data`"}, "seed.hubspot_source_integration_tests.deal_pipeline_stage_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source_integration_tests", "deal_pipeline_stage_data"], "unique_id": "seed.hubspot_source_integration_tests.deal_pipeline_stage_data", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "deal_pipeline_stage_data.csv", "original_file_path": "data/deal_pipeline_stage_data.csv", "name": "deal_pipeline_stage_data", "resource_type": "seed", "alias": "deal_pipeline_stage_data", "checksum": {"name": "sha256", "checksum": "6847909107b6e19f87fe8306cb2a960e0aab531862989b615183a177e1440ada"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`deal_pipeline_stage_data`"}, "seed.hubspot_source_integration_tests.company_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source_integration_tests", "company_data"], "unique_id": "seed.hubspot_source_integration_tests.company_data", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "company_data.csv", "original_file_path": "data/company_data.csv", "name": "company_data", "resource_type": "seed", "alias": "company_data", "checksum": {"name": "sha256", "checksum": "9de76c793062c7d0d18c42f7cc931d4db5acf284123e272aebc5d01a4e4184be"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {"id": "int64"}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "column_types": {"id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}"}}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`company_data`"}, "seed.hubspot_source_integration_tests.contact_list_member_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source_integration_tests", "contact_list_member_data"], "unique_id": "seed.hubspot_source_integration_tests.contact_list_member_data", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "contact_list_member_data.csv", "original_file_path": "data/contact_list_member_data.csv", "name": "contact_list_member_data", "resource_type": "seed", "alias": "contact_list_member_data", "checksum": {"name": "sha256", "checksum": "17e5b2c82e8253e96f19e744ddaa56392ca4a265565904768e2abbead0e2bf9e"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`contact_list_member_data`"}, "seed.hubspot_source_integration_tests.contact_property_history_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source_integration_tests", "contact_property_history_data"], "unique_id": "seed.hubspot_source_integration_tests.contact_property_history_data", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "contact_property_history_data.csv", "original_file_path": "data/contact_property_history_data.csv", "name": "contact_property_history_data", "resource_type": "seed", "alias": "contact_property_history_data", "checksum": {"name": "sha256", "checksum": "3f25c81e8be97b3eb0d2e3d97df3c5c1000051ea46e09b04063d7336e6ed6648"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`contact_property_history_data`"}, "seed.hubspot_source_integration_tests.deal_property_history_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source_integration_tests", "deal_property_history_data"], "unique_id": "seed.hubspot_source_integration_tests.deal_property_history_data", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "deal_property_history_data.csv", "original_file_path": "data/deal_property_history_data.csv", "name": "deal_property_history_data", "resource_type": "seed", "alias": "deal_property_history_data", "checksum": {"name": "sha256", "checksum": "57c14bbf7f8deae1838ab6acaa2689391c3859a2ae2c3331aca9876ef5b615ee"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {"deal_id": "int64"}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "column_types": {"deal_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}"}}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`deal_property_history_data`"}, "seed.hubspot_source_integration_tests.email_event_bounce_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source_integration_tests", "email_event_bounce_data"], "unique_id": "seed.hubspot_source_integration_tests.email_event_bounce_data", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "email_event_bounce_data.csv", "original_file_path": "data/email_event_bounce_data.csv", "name": "email_event_bounce_data", "resource_type": "seed", "alias": "email_event_bounce_data", "checksum": {"name": "sha256", "checksum": "8d61c401a95d57a403f5476b94e8c562be2a167fb6c9df0fa39444d4b71b86a1"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`email_event_bounce_data`"}, "seed.hubspot_source_integration_tests.engagement_contact_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source_integration_tests", "engagement_contact_data"], "unique_id": "seed.hubspot_source_integration_tests.engagement_contact_data", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "engagement_contact_data.csv", "original_file_path": "data/engagement_contact_data.csv", "name": "engagement_contact_data", "resource_type": "seed", "alias": "engagement_contact_data", "checksum": {"name": "sha256", "checksum": "50c5e0326fc2aca3df96f0411dff6e8f6c997608685b51ea224ddf28cd49f66f"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {"engagement_id": "int64", "contact_id": "int64"}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "column_types": {"engagement_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "contact_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}"}}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`engagement_contact_data`"}, "seed.hubspot_source_integration_tests.ticket_engagement_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source_integration_tests", "ticket_engagement_data"], "unique_id": "seed.hubspot_source_integration_tests.ticket_engagement_data", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "ticket_engagement_data.csv", "original_file_path": "data/ticket_engagement_data.csv", "name": "ticket_engagement_data", "resource_type": "seed", "alias": "ticket_engagement_data", "checksum": {"name": "sha256", "checksum": "33fd8c0a98772a789e101839fcb2c856e89e025802075376305ffed36c4e59b5"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`ticket_engagement_data`"}, "seed.hubspot_source_integration_tests.email_event_sent_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source_integration_tests", "email_event_sent_data"], "unique_id": "seed.hubspot_source_integration_tests.email_event_sent_data", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "email_event_sent_data.csv", "original_file_path": "data/email_event_sent_data.csv", "name": "email_event_sent_data", "resource_type": "seed", "alias": "email_event_sent_data", "checksum": {"name": "sha256", "checksum": "dccc8671299c2a4bdfc5d9f055e495edf9a1aee6fb8a963106a1fc8929921b4a"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "enabled": "{{ true if target.type not in ('snowflake', 'postgres') else false }}"}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`email_event_sent_data`"}, "seed.hubspot_source_integration_tests.contact_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source_integration_tests", "contact_data"], "unique_id": "seed.hubspot_source_integration_tests.contact_data", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "contact_data.csv", "original_file_path": "data/contact_data.csv", "name": "contact_data", "resource_type": "seed", "alias": "contact_data", "checksum": {"name": "sha256", "checksum": "3cf100ad7caf48e579cd89fb49a47810aba90a19e69d5bc97461561897d3ed17"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`contact_data`"}, "seed.hubspot_source_integration_tests.ticket_deal_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source_integration_tests", "ticket_deal_data"], "unique_id": "seed.hubspot_source_integration_tests.ticket_deal_data", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "ticket_deal_data.csv", "original_file_path": "data/ticket_deal_data.csv", "name": "ticket_deal_data", "resource_type": "seed", "alias": "ticket_deal_data", "checksum": {"name": "sha256", "checksum": "3028ffec2fb820cf75ca4aae759cb4af012e8b0ec42f4e56b1fe6e01cde48a5a"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`ticket_deal_data`"}, "seed.hubspot_source_integration_tests.deal_company_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source_integration_tests", "deal_company_data"], "unique_id": "seed.hubspot_source_integration_tests.deal_company_data", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "deal_company_data.csv", "original_file_path": "data/deal_company_data.csv", "name": "deal_company_data", "resource_type": "seed", "alias": "deal_company_data", "checksum": {"name": "sha256", "checksum": "5cc92a73a5fe90aaa4346802255045b0d1e1e7ab8d6397dd1ea6bab7905cde83"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`deal_company_data`"}, "seed.hubspot_source_integration_tests.ticket_property_history_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source_integration_tests", "ticket_property_history_data"], "unique_id": "seed.hubspot_source_integration_tests.ticket_property_history_data", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "ticket_property_history_data.csv", "original_file_path": "data/ticket_property_history_data.csv", "name": "ticket_property_history_data", "resource_type": "seed", "alias": "ticket_property_history_data", "checksum": {"name": "sha256", "checksum": "c296dd65ffbae9b153bed842efec717f956fac89a1e6fc88da2bbc48b4c91a74"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`ticket_property_history_data`"}, "seed.hubspot_source_integration_tests.engagement_task_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source_integration_tests", "engagement_task_data"], "unique_id": "seed.hubspot_source_integration_tests.engagement_task_data", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "engagement_task_data.csv", "original_file_path": "data/engagement_task_data.csv", "name": "engagement_task_data", "resource_type": "seed", "alias": "engagement_task_data", "checksum": {"name": "sha256", "checksum": "b4f39add751ab9de319aa7de033921c3080964e656f3101e55347adef468f2b8"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {"engagement_id": "int64", "completion_date": "int64"}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "column_types": {"engagement_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "completion_date": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}"}}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`engagement_task_data`"}, "seed.hubspot_source_integration_tests.engagement_company_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source_integration_tests", "engagement_company_data"], "unique_id": "seed.hubspot_source_integration_tests.engagement_company_data", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "engagement_company_data.csv", "original_file_path": "data/engagement_company_data.csv", "name": "engagement_company_data", "resource_type": "seed", "alias": "engagement_company_data", "checksum": {"name": "sha256", "checksum": "942de68372d1c4466fb1e5fca096ef06c8461085b3ea0005ffe3456f203268e2"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {"engagement_id": "int64", "company_id": "int64"}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "column_types": {"engagement_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}", "company_id": "{{ 'int64' if target.name == 'bigquery' else 'bigint' }}"}}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`engagement_company_data`"}, "model.hubspot_source.stg_hubspot__engagement_task": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_sales_enabled','hubspot_engagement_enabled','hubspot_engagement_task_enabled'])) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_hubspot__engagement_task_tmp') }}\n\n), macro as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_hubspot__engagement_task_tmp')),\n staging_columns=get_engagement_task_columns()\n )\n }}\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n body as task_note,\n completion_date as completion_timestamp,\n engagement_id,\n for_object_type,\n is_all_day,\n priority,\n probability_to_complete,\n status as task_status,\n subject as task_subject,\n task_type\n from macro\n \n)\n\nselect *\nfrom fields", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "stg_hubspot__engagement_task"], "unique_id": "model.hubspot_source.stg_hubspot__engagement_task", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "stg_hubspot__engagement_task.sql", "original_file_path": "models/stg_hubspot__engagement_task.sql", "name": "stg_hubspot__engagement_task", "resource_type": "model", "alias": "stg_hubspot__engagement_task", "checksum": {"name": "sha256", "checksum": "86b6893064361bc42f725f85b0933c5117be49f91825b07d781397531c6aa6c9"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_hubspot__engagement_task_tmp"], ["stg_hubspot__engagement_task_tmp"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.hubspot_source.get_engagement_task_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.hubspot_source.stg_hubspot__engagement_task_tmp", "model.hubspot_source.stg_hubspot__engagement_task_tmp"]}, "description": "Each record represents a TASK engagement event.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "completion_timestamp": {"name": "completion_timestamp", "description": "The timestamp the task was completed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "engagement_id": {"name": "engagement_id", "description": "The ID of the engagement.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "for_object_type": {"name": "for_object_type", "description": "One of CONTACT or COMPANY, what object type the task is for.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_all_day": {"name": "is_all_day", "description": "Whether it is an all day task.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "priority": {"name": "priority", "description": "The priority of the task.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "probability_to_complete": {"name": "probability_to_complete", "description": "The probability that the task will be completed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "task_note": {"name": "task_note", "description": "The body or details of the task.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "task_status": {"name": "task_status", "description": "The status of the task.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "task_subject": {"name": "task_subject", "description": "The subject or title of the task", "meta": {}, "data_type": null, "quote": null, "tags": []}, "task_type": {"name": "task_type", "description": "The type of task", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_hubspot__engagement.yml", "build_path": "target/compiled/hubspot_source/models/stg_hubspot__engagement_task.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "enabled": true}, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__engagement_task_tmp`\n\n), macro as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n body\n \n as \n \n body\n \n, \n \n \n completion_date\n \n as \n \n completion_date\n \n, \n \n \n engagement_id\n \n as \n \n engagement_id\n \n, \n \n \n for_object_type\n \n as \n \n for_object_type\n \n, \n \n \n is_all_day\n \n as \n \n is_all_day\n \n, \n \n \n priority\n \n as \n \n priority\n \n, \n \n \n probability_to_complete\n \n as \n \n probability_to_complete\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n subject\n \n as \n \n subject\n \n, \n \n \n task_type\n \n as \n \n task_type\n \n\n\n\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n body as task_note,\n completion_date as completion_timestamp,\n engagement_id,\n for_object_type,\n is_all_day,\n priority,\n probability_to_complete,\n status as task_status,\n subject as task_subject,\n task_type\n from macro\n \n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__engagement_task`"}, "model.hubspot_source.stg_hubspot__engagement_deal": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_sales_enabled','hubspot_engagement_enabled','hubspot_engagement_deal_enabled'])) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_hubspot__engagement_deal_tmp') }}\n\n), macro as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_hubspot__engagement_deal_tmp')),\n staging_columns=get_engagement_deal_columns()\n )\n }}\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n deal_id,\n engagement_id\n from macro\n \n)\n\nselect *\nfrom fields", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "stg_hubspot__engagement_deal"], "unique_id": "model.hubspot_source.stg_hubspot__engagement_deal", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "stg_hubspot__engagement_deal.sql", "original_file_path": "models/stg_hubspot__engagement_deal.sql", "name": "stg_hubspot__engagement_deal", "resource_type": "model", "alias": "stg_hubspot__engagement_deal", "checksum": {"name": "sha256", "checksum": "898021a7f60addee81c2019a93b4f484169bd967975bedbfdf78cf3af94c2cc8"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_hubspot__engagement_deal_tmp"], ["stg_hubspot__engagement_deal_tmp"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.hubspot_source.get_engagement_deal_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.hubspot_source.stg_hubspot__engagement_deal_tmp", "model.hubspot_source.stg_hubspot__engagement_deal_tmp"]}, "description": "Each record represents a 'link' between a deal and an engagement.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deal_id": {"name": "deal_id", "description": "The ID of the related contact.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "engagement_id": {"name": "engagement_id", "description": "The ID of the related engagement.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_hubspot__engagement.yml", "build_path": "target/compiled/hubspot_source/models/stg_hubspot__engagement_deal.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "enabled": true}, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__engagement_deal_tmp`\n\n), macro as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n deal_id\n \n as \n \n deal_id\n \n, \n \n \n engagement_id\n \n as \n \n engagement_id\n \n\n\n\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n deal_id,\n engagement_id\n from macro\n \n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__engagement_deal`"}, "model.hubspot_source.stg_hubspot__company_property_history": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_sales_enabled','hubspot_company_enabled'])) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_hubspot__company_property_history_tmp') }}\n\n), macro as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_hubspot__company_property_history_tmp')),\n staging_columns=get_company_property_history_columns()\n )\n }}\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n company_id,\n name as field_name,\n source as change_source,\n source_id as change_source_id,\n change_timestamp,\n value as new_value\n from macro\n \n)\n\nselect *\nfrom fields", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "stg_hubspot__company_property_history"], "unique_id": "model.hubspot_source.stg_hubspot__company_property_history", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "stg_hubspot__company_property_history.sql", "original_file_path": "models/stg_hubspot__company_property_history.sql", "name": "stg_hubspot__company_property_history", "resource_type": "model", "alias": "stg_hubspot__company_property_history", "checksum": {"name": "sha256", "checksum": "59dea02252bdf8822fdd523bd457e25ed57a8be7e7045427e3a62a3676481c23"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_hubspot__company_property_history_tmp"], ["stg_hubspot__company_property_history_tmp"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.hubspot_source.get_company_property_history_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.hubspot_source.stg_hubspot__company_property_history_tmp", "model.hubspot_source.stg_hubspot__company_property_history_tmp"]}, "description": "Each record represents a change to company record in Hubspot.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "change_source": {"name": "change_source", "description": "The source (reason) of the change.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "change_source_id": {"name": "change_source_id", "description": "The ID of the object that caused the change, if applicable.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "change_timestamp": {"name": "change_timestamp", "description": "The timestamp the changed occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "company_id": {"name": "company_id", "description": "The ID of the related company record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "field_name": {"name": "field_name", "description": "The name of the field being changed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "new_value": {"name": "new_value", "description": "The new value of the field.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_hubspot__company.yml", "build_path": "target/compiled/hubspot_source/models/stg_hubspot__company_property_history.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "enabled": true}, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__company_property_history_tmp`\n\n), macro as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n company_id\n \n as \n \n company_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n source\n \n as \n \n source\n \n, \n \n \n source_id\n \n as \n \n source_id\n \n, \n \n \n timestamp\n \n as change_timestamp , \n \n \n value\n \n as \n \n value\n \n\n\n\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n company_id,\n name as field_name,\n source as change_source,\n source_id as change_source_id,\n change_timestamp,\n value as new_value\n from macro\n \n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__company_property_history`"}, "model.hubspot_source.stg_hubspot__email_event_delivered": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_marketing_enabled','hubspot_email_event_enabled','hubspot_email_event_delivered_enabled'])) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_hubspot__email_event_delivered_tmp') }}\n\n), macro as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_hubspot__email_event_delivered_tmp')),\n staging_columns=get_email_event_delivered_columns()\n )\n }}\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n id as event_id,\n response as returned_response,\n smtp_id\n from macro\n \n)\n\nselect *\nfrom fields", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "stg_hubspot__email_event_delivered"], "unique_id": "model.hubspot_source.stg_hubspot__email_event_delivered", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "stg_hubspot__email_event_delivered.sql", "original_file_path": "models/stg_hubspot__email_event_delivered.sql", "name": "stg_hubspot__email_event_delivered", "resource_type": "model", "alias": "stg_hubspot__email_event_delivered", "checksum": {"name": "sha256", "checksum": "a2b5ac41bde0c92869fe7e96ecc82b021c45ce01df87dbcac040fa1bfa4ab6dd"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_hubspot__email_event_delivered_tmp"], ["stg_hubspot__email_event_delivered_tmp"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.hubspot_source.get_email_event_delivered_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.hubspot_source.stg_hubspot__email_event_delivered_tmp", "model.hubspot_source.stg_hubspot__email_event_delivered_tmp"]}, "description": "Each record represents a DELIVERED email event.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "event_id": {"name": "event_id", "description": "The ID of the event.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "returned_response": {"name": "returned_response", "description": "The full response from the recipient's email server.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "smtp_id": {"name": "smtp_id", "description": "An ID attached to the message by HubSpot.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_hubspot__email.yml", "build_path": "target/compiled/hubspot_source/models/stg_hubspot__email_event_delivered.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "enabled": true}, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__email_event_delivered_tmp`\n\n), macro as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n response\n \n as \n \n response\n \n, \n \n \n smtp_id\n \n as \n \n smtp_id\n \n\n\n\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n id as event_id,\n response as returned_response,\n smtp_id\n from macro\n \n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__email_event_delivered`"}, "model.hubspot_source.stg_hubspot__owner": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_sales_enabled','hubspot_owner_enabled'])) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_hubspot__owner_tmp') }}\n\n), macro as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_hubspot__owner_tmp')),\n staging_columns=get_owner_columns()\n )\n }}\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n created_at as created_timestamp,\n email as email_address,\n first_name,\n last_name,\n owner_id,\n portal_id,\n type as owner_type,\n updated_at as updated_timestamp,\n trim( {{ dbt_utils.concat(['first_name', \"' '\", 'last_name']) }} ) as full_name\n from macro\n \n)\n\nselect *\nfrom fields", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "stg_hubspot__owner"], "unique_id": "model.hubspot_source.stg_hubspot__owner", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "stg_hubspot__owner.sql", "original_file_path": "models/stg_hubspot__owner.sql", "name": "stg_hubspot__owner", "resource_type": "model", "alias": "stg_hubspot__owner", "checksum": {"name": "sha256", "checksum": "626ce2b5147c5f027d6c45dbc4e4b7601787b13202e2181ce1fd06a6e2a1308c"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_hubspot__owner_tmp"], ["stg_hubspot__owner_tmp"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.hubspot_source.get_owner_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.concat"], "nodes": ["model.hubspot_source.stg_hubspot__owner_tmp", "model.hubspot_source.stg_hubspot__owner_tmp"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__owner.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "enabled": true}, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__owner_tmp`\n\n), macro as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n owner_id\n \n as \n \n owner_id\n \n, \n \n \n portal_id\n \n as \n \n portal_id\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n created_at as created_timestamp,\n email as email_address,\n first_name,\n last_name,\n owner_id,\n portal_id,\n type as owner_type,\n updated_at as updated_timestamp,\n trim( concat(first_name, ' ', last_name) ) as full_name\n from macro\n \n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__owner`"}, "model.hubspot_source.stg_hubspot__email_event": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_marketing_enabled','hubspot_email_event_enabled'])) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_hubspot__email_event_tmp') }}\n\n), macro as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_hubspot__email_event_tmp')),\n staging_columns=get_email_event_columns()\n )\n }}\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n app_id,\n caused_by_created as caused_timestamp,\n caused_by_id as caused_by_event_id,\n created as created_timestamp,\n email_campaign_id,\n filtered_event as is_filtered_event,\n id as event_id,\n obsoleted_by_created as obsoleted_timestamp,\n obsoleted_by_id as obsoleted_by_event_id,\n portal_id,\n recipient as recipient_email_address,\n sent_by_created as sent_timestamp,\n sent_by_id as sent_by_event_id,\n type as event_type\n from macro\n \n)\n\nselect *\nfrom fields", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "stg_hubspot__email_event"], "unique_id": "model.hubspot_source.stg_hubspot__email_event", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "stg_hubspot__email_event.sql", "original_file_path": "models/stg_hubspot__email_event.sql", "name": "stg_hubspot__email_event", "resource_type": "model", "alias": "stg_hubspot__email_event", "checksum": {"name": "sha256", "checksum": "bb1e2e17bfe96ee5eee95744f9c9bb5834309f76e7dba67159225ec074341d24"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_hubspot__email_event_tmp"], ["stg_hubspot__email_event_tmp"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.hubspot_source.get_email_event_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.hubspot_source.stg_hubspot__email_event_tmp", "model.hubspot_source.stg_hubspot__email_event_tmp"]}, "description": "Each record represents an email event in Hubspot.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "app_id": {"name": "app_id", "description": "The ID of the app that sent the email.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "caused_by_event_id": {"name": "caused_by_event_id", "description": "The event ID which uniquely identifies the event which directly caused this event. If not applicable, this property is omitted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "caused_timestamp": {"name": "caused_timestamp", "description": "The timestamp of the event that caused this event.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_timestamp": {"name": "created_timestamp", "description": "The created timestamp of the event.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "email_campaign_id": {"name": "email_campaign_id", "description": "The ID of the related email campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "event_id": {"name": "event_id", "description": "The ID of the event.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "event_type": {"name": "event_type", "description": "The type of event.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_filtered_event": {"name": "is_filtered_event", "description": "A boolean representing whether the event has been filtered out of reporting based on customer reports settings or not.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "obsoleted_by_event_id": {"name": "obsoleted_by_event_id", "description": "The event ID which uniquely identifies the follow-on event which makes this current event obsolete. If not applicable, this property is omitted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "obsoleted_timestamp": {"name": "obsoleted_timestamp", "description": "The timestamp of the event that made the current event obsolete.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "portal_id": {"name": "portal_id", "description": "The hub ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "recipient_email_address": {"name": "recipient_email_address", "description": "The email address of the contact related to the event.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sent_by_event_id": {"name": "sent_by_event_id", "description": "The event ID which uniquely identifies the email message's SENT event. If not applicable, this property is omitted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sent_timestamp": {"name": "sent_timestamp", "description": "The timestamp of the SENT event related to this event.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_hubspot__email.yml", "build_path": "target/compiled/hubspot_source/models/stg_hubspot__email_event.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "enabled": true}, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__email_event_tmp`\n\n), macro as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n app_id\n \n as \n \n app_id\n \n, \n \n \n caused_by_created\n \n as \n \n caused_by_created\n \n, \n \n \n caused_by_id\n \n as \n \n caused_by_id\n \n, \n \n \n created\n \n as \n \n created\n \n, \n \n \n email_campaign_id\n \n as \n \n email_campaign_id\n \n, \n \n \n filtered_event\n \n as \n \n filtered_event\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n obsoleted_by_created\n \n as \n \n obsoleted_by_created\n \n, \n \n \n obsoleted_by_id\n \n as \n \n obsoleted_by_id\n \n, \n \n \n portal_id\n \n as \n \n portal_id\n \n, \n \n \n recipient\n \n as \n \n recipient\n \n, \n \n \n sent_by_created\n \n as \n \n sent_by_created\n \n, \n \n \n sent_by_id\n \n as \n \n sent_by_id\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n app_id,\n caused_by_created as caused_timestamp,\n caused_by_id as caused_by_event_id,\n created as created_timestamp,\n email_campaign_id,\n filtered_event as is_filtered_event,\n id as event_id,\n obsoleted_by_created as obsoleted_timestamp,\n obsoleted_by_id as obsoleted_by_event_id,\n portal_id,\n recipient as recipient_email_address,\n sent_by_created as sent_timestamp,\n sent_by_id as sent_by_event_id,\n type as event_type\n from macro\n \n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__email_event`"}, "model.hubspot_source.stg_hubspot__engagement_meeting": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_sales_enabled','hubspot_engagement_enabled','hubspot_engagement_email_enabled'])) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_hubspot__engagement_meeting_tmp') }}\n\n), macro as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_hubspot__engagement_meeting_tmp')),\n staging_columns=get_engagement_meeting_columns()\n )\n }}\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n body as meeting_notes,\n created_from_link_id,\n end_time as end_timestamp,\n engagement_id,\n external_url,\n meeting_outcome,\n pre_meeting_prospect_reminders,\n source,\n source_id,\n start_time as start_timestamp,\n title as meeting_title,\n web_conference_meeting_id\n from macro\n \n)\n\nselect *\nfrom fields", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "stg_hubspot__engagement_meeting"], "unique_id": "model.hubspot_source.stg_hubspot__engagement_meeting", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "stg_hubspot__engagement_meeting.sql", "original_file_path": "models/stg_hubspot__engagement_meeting.sql", "name": "stg_hubspot__engagement_meeting", "resource_type": "model", "alias": "stg_hubspot__engagement_meeting", "checksum": {"name": "sha256", "checksum": "d910723f79bca69c002268a0d48154cf925a26a01204efde0e5e3e3d10f4caaa"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_hubspot__engagement_meeting_tmp"], ["stg_hubspot__engagement_meeting_tmp"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.hubspot_source.get_engagement_meeting_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.hubspot_source.stg_hubspot__engagement_meeting_tmp", "model.hubspot_source.stg_hubspot__engagement_meeting_tmp"]}, "description": "Each record represents a MEETING engagement event.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "end_timestamp": {"name": "end_timestamp", "description": "A timestamp representing the end time of the meeting", "meta": {}, "data_type": null, "quote": null, "tags": []}, "engagement_id": {"name": "engagement_id", "description": "The ID of the engagement.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "external_url": {"name": "external_url", "description": "The external URL of the engagement.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "meeting_notes": {"name": "meeting_notes", "description": "The details or body of the meeting.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "meeting_outcome": {"name": "meeting_outcome", "description": "The meeting outcome.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "meeting_title": {"name": "meeting_title", "description": "The title or subject of the meeting", "meta": {}, "data_type": null, "quote": null, "tags": []}, "source": {"name": "source", "description": "The source of the meeting.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "source_id": {"name": "source_id", "description": "The internal ID of the meeting source.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "start_timestamp": {"name": "start_timestamp", "description": "A timestamp representing the start time of the meeting", "meta": {}, "data_type": null, "quote": null, "tags": []}, "web_conference_meeting_id": {"name": "web_conference_meeting_id", "description": "The ID of the web conference meeting.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_hubspot__engagement.yml", "build_path": "target/compiled/hubspot_source/models/stg_hubspot__engagement_meeting.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "enabled": true}, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__engagement_meeting_tmp`\n\n), macro as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n body\n \n as \n \n body\n \n, \n \n \n created_from_link_id\n \n as \n \n created_from_link_id\n \n, \n \n \n end_time\n \n as \n \n end_time\n \n, \n \n \n engagement_id\n \n as \n \n engagement_id\n \n, \n \n \n external_url\n \n as \n \n external_url\n \n, \n cast(null as \n string\n) as \n \n location\n \n , \n \n \n meeting_outcome\n \n as \n \n meeting_outcome\n \n, \n \n \n pre_meeting_prospect_reminders\n \n as \n \n pre_meeting_prospect_reminders\n \n, \n \n \n source\n \n as \n \n source\n \n, \n \n \n source_id\n \n as \n \n source_id\n \n, \n \n \n start_time\n \n as \n \n start_time\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n web_conference_meeting_id\n \n as \n \n web_conference_meeting_id\n \n\n\n\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n body as meeting_notes,\n created_from_link_id,\n end_time as end_timestamp,\n engagement_id,\n external_url,\n meeting_outcome,\n pre_meeting_prospect_reminders,\n source,\n source_id,\n start_time as start_timestamp,\n title as meeting_title,\n web_conference_meeting_id\n from macro\n \n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__engagement_meeting`"}, "model.hubspot_source.stg_hubspot__engagement_email": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_sales_enabled','hubspot_engagement_enabled','hubspot_engagement_email_enabled'])) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_hubspot__engagement_email_tmp') }}\n\n), macro as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_hubspot__engagement_email_tmp')),\n staging_columns=get_engagement_email_columns()\n )\n }}\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n attached_video_id,\n attached_video_opened as was_attached_video_opened,\n attached_video_watched as was_attached_video_watched,\n email_send_event_id_created as email_send_event_created_timestamp,\n email_send_event_id_id as email_send_event_id,\n engagement_id,\n error_message,\n facsimile_send_id,\n from_email,\n from_first_name,\n from_last_name,\n html as email_html,\n logged_from,\n media_processing_status,\n message_id,\n post_send_status,\n recipient_drop_reasons,\n sent_via,\n status as email_status,\n subject as email_subject,\n text as email_text,\n thread_id,\n tracker_key,\n validation_skipped\n from macro\n \n)\n\nselect *\nfrom fields", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "stg_hubspot__engagement_email"], "unique_id": "model.hubspot_source.stg_hubspot__engagement_email", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "stg_hubspot__engagement_email.sql", "original_file_path": "models/stg_hubspot__engagement_email.sql", "name": "stg_hubspot__engagement_email", "resource_type": "model", "alias": "stg_hubspot__engagement_email", "checksum": {"name": "sha256", "checksum": "edd7d47164f70610df36c264e85497c09e96507a9fb7cba4d4116f31eb16c0e4"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_hubspot__engagement_email_tmp"], ["stg_hubspot__engagement_email_tmp"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.hubspot_source.get_engagement_email_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.hubspot_source.stg_hubspot__engagement_email_tmp", "model.hubspot_source.stg_hubspot__engagement_email_tmp"]}, "description": "Each record represents an EMAIL engagement event.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "attached_video_id": {"name": "attached_video_id", "description": "The ID of the video attached.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "email_html": {"name": "email_html", "description": "The body of the HTML email.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "email_send_event_created_timestamp": {"name": "email_send_event_created_timestamp", "description": "When the SENT event occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "email_send_event_id": {"name": "email_send_event_id", "description": "The ID of the related SENT email event.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "email_status": {"name": "email_status", "description": "The status of the engagement.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "email_subject": {"name": "email_subject", "description": "The subject of the email.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "email_text": {"name": "email_text", "description": "The body of the text-only email.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "engagement_id": {"name": "engagement_id", "description": "The ID of the engagement.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "error_message": {"name": "error_message", "description": "The error message, if applicable.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "from_email": {"name": "from_email", "description": "The email address of the sender.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "from_first_name": {"name": "from_first_name", "description": "The first name of the sender.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "from_last_name": {"name": "from_last_name", "description": "The last name of the sender.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "media_processing_status": {"name": "media_processing_status", "description": "The processing status of the media content in the email.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "message_id": {"name": "message_id", "description": "The ID of the message.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sent_via": {"name": "sent_via", "description": "How the email was sent.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "thread_id": {"name": "thread_id", "description": "The ID of the email thread.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "was_attached_video_opened": {"name": "was_attached_video_opened", "description": "Whether the the attached video was opened.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "was_attached_video_watched": {"name": "was_attached_video_watched", "description": "Whether the the attached video was watched.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_hubspot__engagement.yml", "build_path": "target/compiled/hubspot_source/models/stg_hubspot__engagement_email.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "enabled": true}, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__engagement_email_tmp`\n\n), macro as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n attached_video_id\n \n as \n \n attached_video_id\n \n, \n \n \n attached_video_opened\n \n as \n \n attached_video_opened\n \n, \n \n \n attached_video_watched\n \n as \n \n attached_video_watched\n \n, \n \n \n email_send_event_id_created\n \n as \n \n email_send_event_id_created\n \n, \n \n \n email_send_event_id_id\n \n as \n \n email_send_event_id_id\n \n, \n \n \n engagement_id\n \n as \n \n engagement_id\n \n, \n \n \n error_message\n \n as \n \n error_message\n \n, \n \n \n facsimile_send_id\n \n as \n \n facsimile_send_id\n \n, \n \n \n from_email\n \n as \n \n from_email\n \n, \n \n \n from_first_name\n \n as \n \n from_first_name\n \n, \n \n \n from_last_name\n \n as \n \n from_last_name\n \n, \n \n \n html\n \n as \n \n html\n \n, \n \n \n logged_from\n \n as \n \n logged_from\n \n, \n \n \n media_processing_status\n \n as \n \n media_processing_status\n \n, \n cast(null as boolean) as \n \n member_of_forwarded_subthread\n \n , \n \n \n message_id\n \n as \n \n message_id\n \n, \n \n \n post_send_status\n \n as \n \n post_send_status\n \n, \n \n \n recipient_drop_reasons\n \n as \n \n recipient_drop_reasons\n \n, \n \n \n sent_via\n \n as \n \n sent_via\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n subject\n \n as \n \n subject\n \n, \n \n \n text\n \n as \n \n text\n \n, \n \n \n thread_id\n \n as \n \n thread_id\n \n, \n \n \n tracker_key\n \n as \n \n tracker_key\n \n, \n \n \n validation_skipped\n \n as \n \n validation_skipped\n \n\n\n\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n attached_video_id,\n attached_video_opened as was_attached_video_opened,\n attached_video_watched as was_attached_video_watched,\n email_send_event_id_created as email_send_event_created_timestamp,\n email_send_event_id_id as email_send_event_id,\n engagement_id,\n error_message,\n facsimile_send_id,\n from_email,\n from_first_name,\n from_last_name,\n html as email_html,\n logged_from,\n media_processing_status,\n message_id,\n post_send_status,\n recipient_drop_reasons,\n sent_via,\n status as email_status,\n subject as email_subject,\n text as email_text,\n thread_id,\n tracker_key,\n validation_skipped\n from macro\n \n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__engagement_email`"}, "model.hubspot_source.stg_hubspot__ticket_contact": {"raw_sql": "{{ config(enabled=var('hubspot_service_enabled', False)) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_hubspot__ticket_contact_tmp') }}\n\n), macro as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_hubspot__ticket_contact_tmp')),\n staging_columns=get_ticket_contact_columns()\n )\n }}\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n ticket_id,\n contact_id\n\n from macro\n\n)\n\nselect *\nfrom fields", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "stg_hubspot__ticket_contact"], "unique_id": "model.hubspot_source.stg_hubspot__ticket_contact", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "stg_hubspot__ticket_contact.sql", "original_file_path": "models/stg_hubspot__ticket_contact.sql", "name": "stg_hubspot__ticket_contact", "resource_type": "model", "alias": "stg_hubspot__ticket_contact", "checksum": {"name": "sha256", "checksum": "8b4ea45115ac9528415e6e70165c58a88ecaada0c684632e4a8437ca43f87081"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_hubspot__ticket_contact_tmp"], ["stg_hubspot__ticket_contact_tmp"]], "sources": [], "depends_on": {"macros": ["macro.hubspot_source.get_ticket_contact_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.hubspot_source.stg_hubspot__ticket_contact_tmp", "model.hubspot_source.stg_hubspot__ticket_contact_tmp"]}, "description": "Each record represents a 'link' between a ticket and a contact.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ticket_id": {"name": "ticket_id", "description": "The ID of the related ticket.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "contact_id": {"name": "contact_id", "description": "The ID of the related contact.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_hubspot__ticket.yml", "build_path": "target/compiled/hubspot_source/models/stg_hubspot__ticket_contact.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "enabled": true}, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__ticket_contact_tmp`\n\n), macro as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ticket_id\n \n as \n \n ticket_id\n \n, \n \n \n contact_id\n \n as \n \n contact_id\n \n\n\n\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n ticket_id,\n contact_id\n\n from macro\n\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__ticket_contact`"}, "model.hubspot_source.stg_hubspot__email_event_status_change": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_marketing_enabled','hubspot_email_event_enabled','hubspot_email_event_status_change_enabled'])) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_hubspot__email_event_status_change_tmp') }}\n\n), macro as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_hubspot__email_event_status_change_tmp')),\n staging_columns=get_email_event_status_change_columns()\n )\n }}\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n bounced as is_bounced,\n id as event_id,\n portal_subscription_status as subscription_status,\n requested_by as requested_by_email,\n source as change_source,\n subscriptions\n from macro\n \n)\n\nselect *\nfrom fields", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "stg_hubspot__email_event_status_change"], "unique_id": "model.hubspot_source.stg_hubspot__email_event_status_change", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "stg_hubspot__email_event_status_change.sql", "original_file_path": "models/stg_hubspot__email_event_status_change.sql", "name": "stg_hubspot__email_event_status_change", "resource_type": "model", "alias": "stg_hubspot__email_event_status_change", "checksum": {"name": "sha256", "checksum": "47cf9452432fd6984c4804eafa08188df00800c45c65d7be98bc993031756230"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_hubspot__email_event_status_change_tmp"], ["stg_hubspot__email_event_status_change_tmp"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.hubspot_source.get_email_event_status_change_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.hubspot_source.stg_hubspot__email_event_status_change_tmp", "model.hubspot_source.stg_hubspot__email_event_status_change_tmp"]}, "description": "Each record represents a STATUS_CHANGE email event in Hubspot.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "change_source": {"name": "change_source", "description": "The source of the subscription change.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "event_id": {"name": "event_id", "description": "The ID of the event.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_bounced": {"name": "is_bounced", "description": "A HubSpot employee explicitly initiated the status change to block messages to the recipient. \n(Note this usage has been deprecated in favor of dropping messages with a 'dropReason' of BLOCKED_ADDRESS.)\n", "meta": {}, "data_type": null, "quote": null, "tags": []}, "requested_by_email": {"name": "requested_by_email", "description": "The email address of the person requesting the change on behalf of the recipient. If not applicable, this property is omitted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "subscription_status": {"name": "subscription_status", "description": "The recipient's portal subscription status. \nNote that if this is 'UNSUBSCRIBED', the property 'subscriptions' is not necessarily an empty array, nor are all \nsubscriptions contained in it necessarily going to have their statuses set to 'UNSUBSCRIBED'.)\n", "meta": {}, "data_type": null, "quote": null, "tags": []}, "subscriptions": {"name": "subscriptions", "description": "An array of JSON objects representing the status of subscriptions for the recipient. \nEach JSON subscription object is comprised of the properties: 'id', 'status'.\n", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_hubspot__email.yml", "build_path": "target/compiled/hubspot_source/models/stg_hubspot__email_event_status_change.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "enabled": true}, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__email_event_status_change_tmp`\n\n), macro as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n bounced\n \n as \n \n bounced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n portal_subscription_status\n \n as \n \n portal_subscription_status\n \n, \n \n \n requested_by\n \n as \n \n requested_by\n \n, \n \n \n source\n \n as \n \n source\n \n, \n \n \n subscriptions\n \n as \n \n subscriptions\n \n\n\n\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n bounced as is_bounced,\n id as event_id,\n portal_subscription_status as subscription_status,\n requested_by as requested_by_email,\n source as change_source,\n subscriptions\n from macro\n \n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__email_event_status_change`"}, "model.hubspot_source.stg_hubspot__contact_list_member": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_marketing_enabled', 'hubspot_contact_list_member_enabled'])) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_hubspot__contact_list_member_tmp') }}\n where not coalesce(_fivetran_deleted, false) \n\n), macro as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_hubspot__contact_list_member_tmp')),\n staging_columns=get_contact_list_member_columns()\n )\n }}\n from base\n\n), fields as (\n\n select\n _fivetran_deleted,\n _fivetran_synced,\n added_at as added_timestamp,\n contact_id,\n contact_list_id\n from macro\n \n)\n\nselect *\nfrom fields", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "stg_hubspot__contact_list_member"], "unique_id": "model.hubspot_source.stg_hubspot__contact_list_member", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "stg_hubspot__contact_list_member.sql", "original_file_path": "models/stg_hubspot__contact_list_member.sql", "name": "stg_hubspot__contact_list_member", "resource_type": "model", "alias": "stg_hubspot__contact_list_member", "checksum": {"name": "sha256", "checksum": "529ddc64ce4980fd6d4259fcba04a31bd34acdf98fbd61001ffcf1d8c50d5fa1"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_hubspot__contact_list_member_tmp"], ["stg_hubspot__contact_list_member_tmp"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.hubspot_source.get_contact_list_member_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.hubspot_source.stg_hubspot__contact_list_member_tmp", "model.hubspot_source.stg_hubspot__contact_list_member_tmp"]}, "description": "Each record represents a 'link' between a contact and a contact list.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Timestamp of when Fivetran marked a record as deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "added_timestamp": {"name": "added_timestamp", "description": "The timestamp a contact was added to a list.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "contact_id": {"name": "contact_id", "description": "The ID of the related contact.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "contact_list_id": {"name": "contact_list_id", "description": "The ID of the related contact list.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_hubspot__contact.yml", "build_path": "target/compiled/hubspot_source/models/stg_hubspot__contact_list_member.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "enabled": true}, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__contact_list_member_tmp`\n where not coalesce(_fivetran_deleted, false) \n\n), macro as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n added_at\n \n as \n \n added_at\n \n, \n \n \n contact_id\n \n as \n \n contact_id\n \n, \n \n \n contact_list_id\n \n as \n \n contact_list_id\n \n\n\n\n from base\n\n), fields as (\n\n select\n _fivetran_deleted,\n _fivetran_synced,\n added_at as added_timestamp,\n contact_id,\n contact_list_id\n from macro\n \n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__contact_list_member`"}, "model.hubspot_source.stg_hubspot__contact": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_marketing_enabled', 'hubspot_contact_enabled'])) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_hubspot__contact_tmp') }}\n where not coalesce(_fivetran_deleted, false) \n\n), macro as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_hubspot__contact_tmp')),\n staging_columns=get_contact_columns()\n )\n }}\n from base\n\n), fields as (\n\n select\n _fivetran_deleted,\n _fivetran_synced,\n property_email as email,\n id as contact_id,\n property_company as contact_company,\n property_firstname as first_name,\n property_lastname as last_name,\n property_createdate as created_at,\n property_jobtitle as job_title,\n property_annualrevenue as company_annual_revenue\n\n --The below macro adds the fields defined within your hubspot__contact_pass_through_columns variable into the staging model\n {{ fivetran_utils.fill_pass_through_columns('hubspot__contact_pass_through_columns') }}\n\n from macro\n \n)\n\nselect *\nfrom fields", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "stg_hubspot__contact"], "unique_id": "model.hubspot_source.stg_hubspot__contact", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "stg_hubspot__contact.sql", "original_file_path": "models/stg_hubspot__contact.sql", "name": "stg_hubspot__contact", "resource_type": "model", "alias": "stg_hubspot__contact", "checksum": {"name": "sha256", "checksum": "0e57554fe4550a630a30725969df14344073e02b1a792b1e016217fbd911da7a"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_hubspot__contact_tmp"], ["stg_hubspot__contact_tmp"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.hubspot_source.get_contact_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.hubspot_source.stg_hubspot__contact_tmp", "model.hubspot_source.stg_hubspot__contact_tmp"]}, "description": "Each record represents a contact in Hubspot.", "columns": {"contact_id": {"name": "contact_id", "description": "The ID of the contact.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "email": {"name": "email", "description": "The contact's email.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "contact_company": {"name": "contact_company", "description": "The name of the contact's company", "meta": {}, "data_type": null, "quote": null, "tags": []}, "first_name": {"name": "first_name", "description": "The contact's first name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_name": {"name": "last_name", "description": "The contact's last name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "The date that the contact was created in your HubSpot account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "job_title": {"name": "job_title", "description": "The contact's job title.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "company_annual_revenue": {"name": "company_annual_revenue", "description": "The contact's annual company revenue.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_hubspot__contact.yml", "build_path": "target/compiled/hubspot_source/models/stg_hubspot__contact.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "enabled": true}, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__contact_tmp`\n where not coalesce(_fivetran_deleted, false) \n\n), macro as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n property_email\n \n as \n \n property_email\n \n, \n \n \n property_company\n \n as \n \n property_company\n \n, \n \n \n property_firstname\n \n as \n \n property_firstname\n \n, \n \n \n property_lastname\n \n as \n \n property_lastname\n \n, \n \n \n property_createdate\n \n as \n \n property_createdate\n \n, \n \n \n property_jobtitle\n \n as \n \n property_jobtitle\n \n, \n \n \n property_annualrevenue\n \n as \n \n property_annualrevenue\n \n\n\n\n from base\n\n), fields as (\n\n select\n _fivetran_deleted,\n _fivetran_synced,\n property_email as email,\n id as contact_id,\n property_company as contact_company,\n property_firstname as first_name,\n property_lastname as last_name,\n property_createdate as created_at,\n property_jobtitle as job_title,\n property_annualrevenue as company_annual_revenue\n\n --The below macro adds the fields defined within your hubspot__contact_pass_through_columns variable into the staging model\n \n\n\n\n\n\n from macro\n \n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__contact`"}, "model.hubspot_source.stg_hubspot__deal": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_sales_enabled','hubspot_deal_enabled'])) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_hubspot__deal_tmp') }}\n where not coalesce(is_deleted, false) \n\n), macro as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_hubspot__deal_tmp')),\n staging_columns=get_deal_columns()\n )\n }}\n from base\n\n), fields as (\n\n select\n deal_id,\n deal_pipeline_id,\n deal_pipeline_stage_id,\n owner_id,\n portal_id,\n property_dealname as deal_name,\n property_description as description,\n property_amount as amount,\n property_closedate as closed_at,\n property_createdate as created_at\n\n --The below macro adds the fields defined within your hubspot__deal_pass_through_columns variable into the staging model\n {{ fivetran_utils.fill_pass_through_columns('hubspot__deal_pass_through_columns') }}\n\n from macro\n \n)\n\nselect *\nfrom fields", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "stg_hubspot__deal"], "unique_id": "model.hubspot_source.stg_hubspot__deal", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "stg_hubspot__deal.sql", "original_file_path": "models/stg_hubspot__deal.sql", "name": "stg_hubspot__deal", "resource_type": "model", "alias": "stg_hubspot__deal", "checksum": {"name": "sha256", "checksum": "6fbf2c84e5f28171af088be3652f427c77f6f959546674b6cedd78e28a23d189"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_hubspot__deal_tmp"], ["stg_hubspot__deal_tmp"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.hubspot_source.get_deal_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.hubspot_source.stg_hubspot__deal_tmp", "model.hubspot_source.stg_hubspot__deal_tmp"]}, "description": "Each record represents a deal in Hubspot.", "columns": {"deal_id": {"name": "deal_id", "description": "The ID of the deal", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_deleted": {"name": "is_deleted", "description": "Whether the record was deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "portal_id": {"name": "portal_id", "description": "The hub ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deal_pipeline_id": {"name": "deal_pipeline_id", "description": "The ID of the deal's pipeline.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deal_pipeline_stage_id": {"name": "deal_pipeline_stage_id", "description": "The ID of the deal's pipeline stage.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "owner_id": {"name": "owner_id", "description": "The ID of the deal's owner.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deal_name": {"name": "deal_name", "description": "The name you have given this deal.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "A brief description of the deal.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "The total value of the deal in the deal's currency.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "closed_at": {"name": "closed_at", "description": "The day the deal is expected to close, or was closed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "The date the deal was created. This property is set automatically by HubSpot.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_hubspot__deal.yml", "build_path": "target/compiled/hubspot_source/models/stg_hubspot__deal.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "enabled": true}, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__deal_tmp`\n where not coalesce(is_deleted, false) \n\n), macro as (\n\n select\n \n cast(null as \n timestamp\n) as \n \n _fivetran_synced\n \n , \n \n \n deal_id\n \n as \n \n deal_id\n \n, \n \n \n deal_pipeline_id\n \n as \n \n deal_pipeline_id\n \n, \n \n \n deal_pipeline_stage_id\n \n as \n \n deal_pipeline_stage_id\n \n, \n \n \n is_deleted\n \n as \n \n is_deleted\n \n, \n \n \n owner_id\n \n as \n \n owner_id\n \n, \n \n \n portal_id\n \n as \n \n portal_id\n \n, \n \n \n property_dealname\n \n as \n \n property_dealname\n \n, \n \n \n property_description\n \n as \n \n property_description\n \n, \n \n \n property_amount\n \n as \n \n property_amount\n \n, \n \n \n property_closedate\n \n as \n \n property_closedate\n \n, \n \n \n property_createdate\n \n as \n \n property_createdate\n \n\n\n\n from base\n\n), fields as (\n\n select\n deal_id,\n deal_pipeline_id,\n deal_pipeline_stage_id,\n owner_id,\n portal_id,\n property_dealname as deal_name,\n property_description as description,\n property_amount as amount,\n property_closedate as closed_at,\n property_createdate as created_at\n\n --The below macro adds the fields defined within your hubspot__deal_pass_through_columns variable into the staging model\n \n\n\n\n\n\n from macro\n \n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__deal`"}, "model.hubspot_source.stg_hubspot__deal_pipeline": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_sales_enabled','hubspot_deal_enabled'])) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_hubspot__deal_pipeline_tmp') }}\n where not coalesce(_fivetran_deleted, false) \n\n), macro as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_hubspot__deal_pipeline_tmp')),\n staging_columns=get_deal_pipeline_columns()\n )\n }}\n from base\n\n), fields as (\n\n select\n _fivetran_deleted,\n _fivetran_synced,\n active as is_active,\n display_order,\n label as pipeline_label,\n pipeline_id as deal_pipeline_id\n from macro\n \n)\n\nselect *\nfrom fields", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "stg_hubspot__deal_pipeline"], "unique_id": "model.hubspot_source.stg_hubspot__deal_pipeline", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "stg_hubspot__deal_pipeline.sql", "original_file_path": "models/stg_hubspot__deal_pipeline.sql", "name": "stg_hubspot__deal_pipeline", "resource_type": "model", "alias": "stg_hubspot__deal_pipeline", "checksum": {"name": "sha256", "checksum": "f7439518b3b019ce528c4a95b210edbf32f3bf08cc6b1735cd929627b1306f18"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_hubspot__deal_pipeline_tmp"], ["stg_hubspot__deal_pipeline_tmp"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.hubspot_source.get_deal_pipeline_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.hubspot_source.stg_hubspot__deal_pipeline_tmp", "model.hubspot_source.stg_hubspot__deal_pipeline_tmp"]}, "description": "Each record represents a pipeline in Hubspot.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Timestamp of when Fivetran marked a record as deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deal_pipeline_id": {"name": "deal_pipeline_id", "description": "The ID of the pipeline.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "display_order": {"name": "display_order", "description": "Used to determine the order in which the pipelines appear when viewed in HubSpot", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Whether the stage is currently in use.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "pipeline_label": {"name": "pipeline_label", "description": "The human-readable label for the pipeline. The label is used when showing the pipeline in HubSpot.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_hubspot__deal.yml", "build_path": "target/compiled/hubspot_source/models/stg_hubspot__deal_pipeline.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "enabled": true}, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__deal_pipeline_tmp`\n where not coalesce(_fivetran_deleted, false) \n\n), macro as (\n\n select\n \n \n \n _fivetran_deleted\n \n 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 display_order\n \n as \n \n display_order\n \n, \n \n \n label\n \n as \n \n label\n \n, \n \n \n pipeline_id\n \n as \n \n pipeline_id\n \n\n\n\n from base\n\n), fields as (\n\n select\n _fivetran_deleted,\n _fivetran_synced,\n active as is_active,\n display_order,\n label as pipeline_label,\n pipeline_id as deal_pipeline_id\n from macro\n \n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__deal_pipeline`"}, "model.hubspot_source.stg_hubspot__deal_company": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_sales_enabled','hubspot_deal_enabled','hubspot_deal_company_enabled'])) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_hubspot__deal_company_tmp') }}\n\n), macro as (\n\n select \n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_hubspot__deal_company_tmp')),\n staging_columns=get_deal_company_columns()\n )\n }}\n from base\n\n), fields as (\n\n select\n company_id,\n deal_id,\n _fivetran_synced\n \n from macro\n \n)\n\nselect *\nfrom fields", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "stg_hubspot__deal_company"], "unique_id": "model.hubspot_source.stg_hubspot__deal_company", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "stg_hubspot__deal_company.sql", "original_file_path": "models/stg_hubspot__deal_company.sql", "name": "stg_hubspot__deal_company", "resource_type": "model", "alias": "stg_hubspot__deal_company", "checksum": {"name": "sha256", "checksum": "c983b53b3367493154bef750609cb5e6985ae420a959fb1c0685ad9a781f2372"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_hubspot__deal_company_tmp"], ["stg_hubspot__deal_company_tmp"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.hubspot_source.get_deal_company_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.hubspot_source.stg_hubspot__deal_company_tmp", "model.hubspot_source.stg_hubspot__deal_company_tmp"]}, "description": "Each record represents a 'link' between a deal and company.", "columns": {"company_id": {"name": "company_id", "description": "The ID of the company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deal_id": {"name": "deal_id", "description": "The ID of the deal.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_hubspot__deal.yml", "build_path": "target/compiled/hubspot_source/models/stg_hubspot__deal_company.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "enabled": true}, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__deal_company_tmp`\n\n), macro as (\n\n select \n \n cast(null as \n timestamp\n) as \n \n _fivetran_synced\n \n , \n \n \n deal_id\n \n as \n \n deal_id\n \n, \n \n \n company_id\n \n as \n \n company_id\n \n\n\n\n from base\n\n), fields as (\n\n select\n company_id,\n deal_id,\n _fivetran_synced\n \n from macro\n \n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__deal_company`"}, "model.hubspot_source.stg_hubspot__engagement_note": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_sales_enabled','hubspot_engagement_enabled','hubspot_engagement_note_enabled'])) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_hubspot__engagement_note_tmp') }}\n\n), macro as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_hubspot__engagement_note_tmp')),\n staging_columns=get_engagement_note_columns()\n )\n }}\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n body as note,\n engagement_id\n from macro\n \n)\n\nselect *\nfrom fields", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "stg_hubspot__engagement_note"], "unique_id": "model.hubspot_source.stg_hubspot__engagement_note", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "stg_hubspot__engagement_note.sql", "original_file_path": "models/stg_hubspot__engagement_note.sql", "name": "stg_hubspot__engagement_note", "resource_type": "model", "alias": "stg_hubspot__engagement_note", "checksum": {"name": "sha256", "checksum": "7b310c029c7520e9bbf11fcdde24318af6cf4e23b59f246479f692b7893809e6"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_hubspot__engagement_note_tmp"], ["stg_hubspot__engagement_note_tmp"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.hubspot_source.get_engagement_note_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.hubspot_source.stg_hubspot__engagement_note_tmp", "model.hubspot_source.stg_hubspot__engagement_note_tmp"]}, "description": "Each record represents a NOTE engagement event.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "engagement_id": {"name": "engagement_id", "description": "The ID of the engagement.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "note": {"name": "note", "description": "The body of the note. The body has a limit of 65536 characters.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_hubspot__engagement.yml", "build_path": "target/compiled/hubspot_source/models/stg_hubspot__engagement_note.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "enabled": true}, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__engagement_note_tmp`\n\n), macro as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n body\n \n as \n \n body\n \n, \n \n \n engagement_id\n \n as \n \n engagement_id\n \n\n\n\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n body as note,\n engagement_id\n from macro\n \n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__engagement_note`"}, "model.hubspot_source.stg_hubspot__engagement_contact": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_sales_enabled','hubspot_engagement_enabled','hubspot_engagement_contact_enabled'])) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_hubspot__engagement_contact_tmp') }}\n\n), macro as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_hubspot__engagement_contact_tmp')),\n staging_columns=get_engagement_contact_columns()\n )\n }}\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n contact_id,\n engagement_id\n from macro\n \n)\n\nselect *\nfrom fields", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "stg_hubspot__engagement_contact"], "unique_id": "model.hubspot_source.stg_hubspot__engagement_contact", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "stg_hubspot__engagement_contact.sql", "original_file_path": "models/stg_hubspot__engagement_contact.sql", "name": "stg_hubspot__engagement_contact", "resource_type": "model", "alias": "stg_hubspot__engagement_contact", "checksum": {"name": "sha256", "checksum": "b19c1faca89259973191ee9267a2f2ac0af262a365eb881c9ea16e702478435a"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_hubspot__engagement_contact_tmp"], ["stg_hubspot__engagement_contact_tmp"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.hubspot_source.get_engagement_contact_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.hubspot_source.stg_hubspot__engagement_contact_tmp", "model.hubspot_source.stg_hubspot__engagement_contact_tmp"]}, "description": "Each record represents a 'link' between a contact and an engagement.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "contact_id": {"name": "contact_id", "description": "The ID of the related contact.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "engagement_id": {"name": "engagement_id", "description": "The ID of the related engagement.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_hubspot__engagement.yml", "build_path": "target/compiled/hubspot_source/models/stg_hubspot__engagement_contact.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "enabled": true}, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__engagement_contact_tmp`\n\n), macro as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n contact_id\n \n as \n \n contact_id\n \n, \n \n \n engagement_id\n \n as \n \n engagement_id\n \n\n\n\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n contact_id,\n engagement_id\n from macro\n \n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__engagement_contact`"}, "model.hubspot_source.stg_hubspot__contact_list": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_marketing_enabled', 'hubspot_contact_list_enabled'])) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_hubspot__contact_list_tmp') }}\n where not coalesce(_fivetran_deleted, false) \n\n), macro as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_hubspot__contact_list_tmp')),\n staging_columns=get_contact_list_columns()\n )\n }}\n from base\n\n), fields as (\n\n select\n _fivetran_deleted,\n _fivetran_synced,\n created_at as created_timestamp,\n deleteable as is_deletable,\n dynamic as is_dynamic,\n id as contact_list_id,\n metadata_error,\n metadata_last_processing_state_change_at,\n metadata_last_size_change_at,\n metadata_processing,\n metadata_size,\n name as contact_list_name,\n portal_id,\n updated_at as updated_timestamp\n from macro\n \n)\n\nselect *\nfrom fields", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "stg_hubspot__contact_list"], "unique_id": "model.hubspot_source.stg_hubspot__contact_list", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "stg_hubspot__contact_list.sql", "original_file_path": "models/stg_hubspot__contact_list.sql", "name": "stg_hubspot__contact_list", "resource_type": "model", "alias": "stg_hubspot__contact_list", "checksum": {"name": "sha256", "checksum": "f40198e9164b014074254e8104223f9dfa3dbf488bb46fa3952f3cca348518f6"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_hubspot__contact_list_tmp"], ["stg_hubspot__contact_list_tmp"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.hubspot_source.get_contact_list_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.hubspot_source.stg_hubspot__contact_list_tmp", "model.hubspot_source.stg_hubspot__contact_list_tmp"]}, "description": "Each record represents a contact list in Hubspot.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Timestamp of when Fivetran marked a record as deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran marked a record as deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "contact_list_id": {"name": "contact_list_id", "description": "The ID of the contact list.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "contact_list_name": {"name": "contact_list_name", "description": "The name of the contact list.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_timestamp": {"name": "created_timestamp", "description": "A timestamp of the time the list was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_deletable": {"name": "is_deletable", "description": "If this is false, this is a system list and cannot be deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_dynamic": {"name": "is_dynamic", "description": "Whether the contact list is dynamic.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "metadata_error": {"name": "metadata_error", "description": "Any errors that happened the last time the list was processed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "metadata_last_processing_state_change_at": {"name": "metadata_last_processing_state_change_at", "description": "A timestamp of the last time that the processing state changed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "metadata_last_size_change_at": {"name": "metadata_last_size_change_at", "description": "A timestamp of the last time that the size of the list changed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "metadata_processing": {"name": "metadata_processing", "description": "One of DONE, REFRESHING, INITIALIZING, or PROCESSING. \nDONE indicates the list has finished processing, any other value indicates that list membership is being evaluated.\n", "meta": {}, "data_type": null, "quote": null, "tags": []}, "metadata_size": {"name": "metadata_size", "description": "The approximate number of contacts in the list.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "portal_id": {"name": "portal_id", "description": "The hub ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_timestamp": {"name": "updated_timestamp", "description": "A timestamp of the time that the list was last modified.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_hubspot__contact.yml", "build_path": "target/compiled/hubspot_source/models/stg_hubspot__contact_list.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "enabled": true}, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__contact_list_tmp`\n where not coalesce(_fivetran_deleted, false) \n\n), macro as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n deleteable\n \n as \n \n deleteable\n \n, \n \n \n dynamic\n \n as \n \n dynamic\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n metadata_error\n \n as \n \n metadata_error\n \n, \n \n \n metadata_last_processing_state_change_at\n \n as \n \n metadata_last_processing_state_change_at\n \n, \n \n \n metadata_last_size_change_at\n \n as \n \n metadata_last_size_change_at\n \n, \n \n \n metadata_processing\n \n as \n \n metadata_processing\n \n, \n \n \n metadata_size\n \n as \n \n metadata_size\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n portal_id\n \n as \n \n portal_id\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n from base\n\n), fields as (\n\n select\n _fivetran_deleted,\n _fivetran_synced,\n created_at as created_timestamp,\n deleteable as is_deletable,\n dynamic as is_dynamic,\n id as contact_list_id,\n metadata_error,\n metadata_last_processing_state_change_at,\n metadata_last_size_change_at,\n metadata_processing,\n metadata_size,\n name as contact_list_name,\n portal_id,\n updated_at as updated_timestamp\n from macro\n \n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__contact_list`"}, "model.hubspot_source.stg_hubspot__ticket_pipeline": {"raw_sql": "{{ config(enabled=var('hubspot_service_enabled', False)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_hubspot__ticket_pipeline_tmp') }}\n\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_hubspot__ticket_pipeline_tmp')),\n staging_columns=get_ticket_pipeline_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(pipeline_id as {{ dbt_utils.type_int() }} ) as ticket_pipeline_id,\n _fivetran_deleted,\n _fivetran_synced,\n active as is_active,\n display_order,\n label,\n object_type_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "stg_hubspot__ticket_pipeline"], "unique_id": "model.hubspot_source.stg_hubspot__ticket_pipeline", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "stg_hubspot__ticket_pipeline.sql", "original_file_path": "models/stg_hubspot__ticket_pipeline.sql", "name": "stg_hubspot__ticket_pipeline", "resource_type": "model", "alias": "stg_hubspot__ticket_pipeline", "checksum": {"name": "sha256", "checksum": "0907d5b1f70c6fdbdf02a3b42de03e59a0952a596441e02745fd5c65431cebff"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_hubspot__ticket_pipeline_tmp"], ["stg_hubspot__ticket_pipeline_tmp"]], "sources": [], "depends_on": {"macros": ["macro.hubspot_source.get_ticket_pipeline_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_int"], "nodes": ["model.hubspot_source.stg_hubspot__ticket_pipeline_tmp", "model.hubspot_source.stg_hubspot__ticket_pipeline_tmp"]}, "description": "Each record represents a ticket pipeline.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Timestamp of when Fivetran marked a record as deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Boolean indicating whether the pipeline is active.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "display_order": {"name": "display_order", "description": "Used to determine the order in which the stages appear when viewed in HubSpot.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "label": {"name": "label", "description": "The human-readable label for the stage. The label is used when showing the stage in HubSpot.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "object_type_id": {"name": "object_type_id", "description": "Reference to the object type.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ticket_pipeline_id": {"name": "ticket_pipeline_id", "description": "Reference to the pipeline.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_hubspot__ticket.yml", "build_path": "target/compiled/hubspot_source/models/stg_hubspot__ticket_pipeline.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "enabled": true}, "compiled_sql": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__ticket_pipeline_tmp`\n\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n 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 display_order\n \n as \n \n display_order\n \n, \n \n \n label\n \n as \n \n label\n \n, \n \n \n object_type_id\n \n as \n \n object_type_id\n \n, \n \n \n pipeline_id\n \n as \n \n pipeline_id\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(pipeline_id as \n int64\n ) as ticket_pipeline_id,\n _fivetran_deleted,\n _fivetran_synced,\n active as is_active,\n display_order,\n label,\n object_type_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__ticket_pipeline`"}, "model.hubspot_source.stg_hubspot__email_event_spam_report": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_marketing_enabled','hubspot_email_event_enabled','hubspot_email_event_spam_report_enabled'])) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_hubspot__email_event_spam_report_tmp') }}\n\n), macro as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_hubspot__email_event_spam_report_tmp')),\n staging_columns=get_email_event_spam_report_columns()\n )\n }}\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n id as event_id,\n ip_address,\n user_agent\n from macro\n \n)\n\nselect *\nfrom fields", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "stg_hubspot__email_event_spam_report"], "unique_id": "model.hubspot_source.stg_hubspot__email_event_spam_report", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "stg_hubspot__email_event_spam_report.sql", "original_file_path": "models/stg_hubspot__email_event_spam_report.sql", "name": "stg_hubspot__email_event_spam_report", "resource_type": "model", "alias": "stg_hubspot__email_event_spam_report", "checksum": {"name": "sha256", "checksum": "85421198bb7bbdce49003dbf19fccf4704af2b5f9725d4bce09b5d4bbee33826"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_hubspot__email_event_spam_report_tmp"], ["stg_hubspot__email_event_spam_report_tmp"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.hubspot_source.get_email_event_spam_report_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.hubspot_source.stg_hubspot__email_event_spam_report_tmp", "model.hubspot_source.stg_hubspot__email_event_spam_report_tmp"]}, "description": "Each record represents a SPAM_REPORT email event.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "event_id": {"name": "event_id", "description": "The ID of the event.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ip_address": {"name": "ip_address", "description": "The contact's IP address when the event occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "user_agent": {"name": "user_agent", "description": "The user agent responsible for the event, e.g. \u201cMozilla/5.0 (Macintosh; Intel Mac OS X 10_8_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.95 Safari/537.36\u201d", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_hubspot__email.yml", "build_path": "target/compiled/hubspot_source/models/stg_hubspot__email_event_spam_report.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "enabled": true}, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__email_event_spam_report_tmp`\n\n), macro as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n ip_address\n \n as \n \n ip_address\n \n, \n \n \n user_agent\n \n as \n \n user_agent\n \n\n\n\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n id as event_id,\n ip_address,\n user_agent\n from macro\n \n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__email_event_spam_report`"}, "model.hubspot_source.stg_hubspot__deal_pipeline_stage": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_sales_enabled','hubspot_deal_enabled'])) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_hubspot__deal_pipeline_stage_tmp') }}\n where not coalesce(_fivetran_deleted, false) \n\n), macro as (\n\n select \n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_hubspot__deal_pipeline_stage_tmp')),\n staging_columns=get_deal_pipeline_stage_columns()\n )\n }}\n from base\n\n), fields as (\n\n select\n _fivetran_deleted,\n _fivetran_synced,\n active as is_active,\n closed_won as is_closed_won,\n display_order,\n label as pipeline_stage_label,\n pipeline_id as deal_pipeline_id,\n probability,\n stage_id as deal_pipeline_stage_id\n from macro\n \n)\n\nselect *\nfrom fields", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "stg_hubspot__deal_pipeline_stage"], "unique_id": "model.hubspot_source.stg_hubspot__deal_pipeline_stage", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "stg_hubspot__deal_pipeline_stage.sql", "original_file_path": "models/stg_hubspot__deal_pipeline_stage.sql", "name": "stg_hubspot__deal_pipeline_stage", "resource_type": "model", "alias": "stg_hubspot__deal_pipeline_stage", "checksum": {"name": "sha256", "checksum": "4085b0857f377e535d2b83f6909a18e6a31c4d44d1f738408f75fb906136777f"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_hubspot__deal_pipeline_stage_tmp"], ["stg_hubspot__deal_pipeline_stage_tmp"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.hubspot_source.get_deal_pipeline_stage_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.hubspot_source.stg_hubspot__deal_pipeline_stage_tmp", "model.hubspot_source.stg_hubspot__deal_pipeline_stage_tmp"]}, "description": "Each record represents a pipeline stage in Hubspot.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Timestamp of when Fivetran marked a record as deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deal_pipeline_id": {"name": "deal_pipeline_id", "description": "The ID of the related pipeline.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deal_pipeline_stage_id": {"name": "deal_pipeline_stage_id", "description": "The ID of the pipeline stage.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "display_order": {"name": "display_order", "description": "Used to determine the order in which the stages appear when viewed in HubSpot.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Whether the pipeline stage is currently in use.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_closed_won": {"name": "is_closed_won", "description": "Whether the stage represents a Closed Won deal.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "pipeline_stage_label": {"name": "pipeline_stage_label", "description": "The human-readable label for the stage. The label is used when showing the stage in HubSpot.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "probability": {"name": "probability", "description": "The probability that the deal will close. Used for the deal forecast.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_hubspot__deal.yml", "build_path": "target/compiled/hubspot_source/models/stg_hubspot__deal_pipeline_stage.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "enabled": true}, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__deal_pipeline_stage_tmp`\n where not coalesce(_fivetran_deleted, false) \n\n), macro as (\n\n select \n \n \n \n _fivetran_deleted\n \n 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 closed_won\n \n as \n \n closed_won\n \n, \n \n \n display_order\n \n as \n \n display_order\n \n, \n \n \n label\n \n as \n \n label\n \n, \n \n \n pipeline_id\n \n as \n \n pipeline_id\n \n, \n \n \n probability\n \n as \n \n probability\n \n, \n \n \n stage_id\n \n as \n \n stage_id\n \n\n\n\n from base\n\n), fields as (\n\n select\n _fivetran_deleted,\n _fivetran_synced,\n active as is_active,\n closed_won as is_closed_won,\n display_order,\n label as pipeline_stage_label,\n pipeline_id as deal_pipeline_id,\n probability,\n stage_id as deal_pipeline_stage_id\n from macro\n \n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__deal_pipeline_stage`"}, "model.hubspot_source.stg_hubspot__email_event_dropped": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_marketing_enabled','hubspot_email_event_enabled','hubspot_email_event_dropped_enabled'])) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_hubspot__email_event_dropped_tmp') }}\n\n), macro as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_hubspot__email_event_dropped_tmp')),\n staging_columns=get_email_event_dropped_columns()\n )\n }}\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n bcc as bcc_emails,\n cc as cc_emails,\n drop_message,\n drop_reason,\n from_email,\n id as event_id,\n reply_to as reply_to_email,\n subject as email_subject\n from macro\n \n)\n\nselect *\nfrom fields", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "stg_hubspot__email_event_dropped"], "unique_id": "model.hubspot_source.stg_hubspot__email_event_dropped", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "stg_hubspot__email_event_dropped.sql", "original_file_path": "models/stg_hubspot__email_event_dropped.sql", "name": "stg_hubspot__email_event_dropped", "resource_type": "model", "alias": "stg_hubspot__email_event_dropped", "checksum": {"name": "sha256", "checksum": "2d5939db8f2fb9a3bfbc5e734b8554fad4dbd3dfc3401c90cad38a532ba467f0"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_hubspot__email_event_dropped_tmp"], ["stg_hubspot__email_event_dropped_tmp"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.hubspot_source.get_email_event_dropped_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.hubspot_source.stg_hubspot__email_event_dropped_tmp", "model.hubspot_source.stg_hubspot__email_event_dropped_tmp"]}, "description": "Each record represents a DROPPED email event.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bcc_emails": {"name": "bcc_emails", "description": "The 'bcc' field of the email message.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cc_emails": {"name": "cc_emails", "description": "The 'cc' field of the email message.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "drop_message": {"name": "drop_message", "description": "The raw message describing why the email message was dropped. This will usually provide additional details beyond 'dropReason'.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "drop_reason": {"name": "drop_reason", "description": "The reason why the email message was dropped. See below for the possible values.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "email_subject": {"name": "email_subject", "description": "The subject line of the email message.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "event_id": {"name": "event_id", "description": "The ID of the event.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "from_email": {"name": "from_email", "description": "The 'from' field of the email message.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "reply_to_email": {"name": "reply_to_email", "description": "The 'reply-to' field of the email message.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_hubspot__email.yml", "build_path": "target/compiled/hubspot_source/models/stg_hubspot__email_event_dropped.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "enabled": true}, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__email_event_dropped_tmp`\n\n), macro as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n bcc\n \n as \n \n bcc\n \n, \n \n \n cc\n \n as \n \n cc\n \n, \n \n \n drop_message\n \n as \n \n drop_message\n \n, \n \n \n drop_reason\n \n as \n \n drop_reason\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n reply_to\n \n as \n \n reply_to\n \n, \n \n \n subject\n \n as \n \n subject\n \n, \n \n \n \n \n `from`\n \n \n \n as from_email \n\n\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n bcc as bcc_emails,\n cc as cc_emails,\n drop_message,\n drop_reason,\n from_email,\n id as event_id,\n reply_to as reply_to_email,\n subject as email_subject\n from macro\n \n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__email_event_dropped`"}, "model.hubspot_source.stg_hubspot__deal_stage": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_sales_enabled','hubspot_deal_enabled'])) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_hubspot__deal_stage_tmp') }}\n\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_hubspot__deal_stage_tmp')),\n staging_columns=get_deal_stage_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n date_entered,\n deal_id,\n source,\n source_id,\n value as deal_stage_name,\n _fivetran_active,\n _fivetran_end,\n _fivetran_start\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "stg_hubspot__deal_stage"], "unique_id": "model.hubspot_source.stg_hubspot__deal_stage", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "stg_hubspot__deal_stage.sql", "original_file_path": "models/stg_hubspot__deal_stage.sql", "name": "stg_hubspot__deal_stage", "resource_type": "model", "alias": "stg_hubspot__deal_stage", "checksum": {"name": "sha256", "checksum": "bb5e4d21137deba5d5a08fcf0c5e6d646ac24eff16a58fb067f3193acf6eb05e"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_hubspot__deal_stage_tmp"], ["stg_hubspot__deal_stage_tmp"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.hubspot_source.get_deal_stage_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.hubspot_source.stg_hubspot__deal_stage_tmp", "model.hubspot_source.stg_hubspot__deal_stage_tmp"]}, "description": "Each record represents a deal stage.", "columns": {"_fivetran_active": {"name": "_fivetran_active", "description": "Boolean indicating whether the deal stage is active.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "The Fivetran calculated exist time of the deal stage.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "The date the deal stage was entered.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "date_entered": {"name": "date_entered", "description": "The timestamp the deal stage was entered.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deal_id": {"name": "deal_id", "description": "Reference to the deal.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "source": {"name": "source", "description": "The relevant source of the deal stage.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "source_id": {"name": "source_id", "description": "Reference to the source.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deal_stage_name": {"name": "deal_stage_name", "description": "The value of the deal stage. Typically the name of the stage.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_hubspot__deal.yml", "build_path": "target/compiled/hubspot_source/models/stg_hubspot__deal_stage.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "enabled": true}, "compiled_sql": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__deal_stage_tmp`\n\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n date_entered\n \n as \n \n date_entered\n \n, \n \n \n deal_id\n \n as \n \n deal_id\n \n, \n \n \n source\n \n as \n \n source\n \n, \n \n \n source_id\n \n as \n \n source_id\n \n, \n \n \n value\n \n as \n \n value\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n date_entered,\n deal_id,\n source,\n source_id,\n value as deal_stage_name,\n _fivetran_active,\n _fivetran_end,\n _fivetran_start\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__deal_stage`"}, "model.hubspot_source.stg_hubspot__deal_property_history": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_sales_enabled','hubspot_deal_enabled'])) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_hubspot__deal_property_history_tmp') }}\n\n), macro as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_hubspot__deal_property_history_tmp')),\n staging_columns=get_deal_property_history_columns()\n )\n }}\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n deal_id,\n name as field_name,\n source as change_source,\n source_id as change_source_id,\n change_timestamp,\n value as new_value\n from macro\n \n)\n\nselect *\nfrom fields", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "stg_hubspot__deal_property_history"], "unique_id": "model.hubspot_source.stg_hubspot__deal_property_history", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "stg_hubspot__deal_property_history.sql", "original_file_path": "models/stg_hubspot__deal_property_history.sql", "name": "stg_hubspot__deal_property_history", "resource_type": "model", "alias": "stg_hubspot__deal_property_history", "checksum": {"name": "sha256", "checksum": "d5a1b5ea2f28e232ad9e562b7baac22d94d4aece9b549a47a84ffba8f7d867f5"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_hubspot__deal_property_history_tmp"], ["stg_hubspot__deal_property_history_tmp"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.hubspot_source.get_deal_property_history_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.hubspot_source.stg_hubspot__deal_property_history_tmp", "model.hubspot_source.stg_hubspot__deal_property_history_tmp"]}, "description": "Each record represents the details of your deal properties.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "change_source": {"name": "change_source", "description": "The source (reason) of the change.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "change_source_id": {"name": "change_source_id", "description": "The ID of the object that caused the change, if applicable.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "change_timestamp": {"name": "change_timestamp", "description": "The timestamp the changed occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deal_id": {"name": "deal_id", "description": "The ID of the related deal record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "field_name": {"name": "field_name", "description": "The name of the field being changed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "new_value": {"name": "new_value", "description": "The new value of the field.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_hubspot__deal.yml", "build_path": "target/compiled/hubspot_source/models/stg_hubspot__deal_property_history.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "enabled": true}, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__deal_property_history_tmp`\n\n), macro as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n deal_id\n \n as \n \n deal_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n source\n \n as \n \n source\n \n, \n \n \n source_id\n \n as \n \n source_id\n \n, \n \n \n timestamp\n \n as change_timestamp , \n \n \n value\n \n as \n \n value\n \n\n\n\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n deal_id,\n name as field_name,\n source as change_source,\n source_id as change_source_id,\n change_timestamp,\n value as new_value\n from macro\n \n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__deal_property_history`"}, "model.hubspot_source.stg_hubspot__email_event_forward": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_marketing_enabled','hubspot_email_event_enabled','hubspot_email_event_forward_enabled'])) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_hubspot__email_event_forward_tmp') }}\n\n), macro as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_hubspot__email_event_forward_tmp')),\n staging_columns=get_email_event_forward_columns()\n )\n }}\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n browser,\n id as event_id,\n ip_address,\n location as geo_location,\n user_agent\n from macro\n \n)\n\nselect *\nfrom fields", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "stg_hubspot__email_event_forward"], "unique_id": "model.hubspot_source.stg_hubspot__email_event_forward", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "stg_hubspot__email_event_forward.sql", "original_file_path": "models/stg_hubspot__email_event_forward.sql", "name": "stg_hubspot__email_event_forward", "resource_type": "model", "alias": "stg_hubspot__email_event_forward", "checksum": {"name": "sha256", "checksum": "00813368b7860a58153dc20ec275a28fc00a8dd68d9713af5f7d2ea784f8d205"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_hubspot__email_event_forward_tmp"], ["stg_hubspot__email_event_forward_tmp"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.hubspot_source.get_email_event_forward_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.hubspot_source.stg_hubspot__email_event_forward_tmp", "model.hubspot_source.stg_hubspot__email_event_forward_tmp"]}, "description": "Each record represents a FORWARD email event.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "browser": {"name": "browser", "description": "A JSON object representing the browser which serviced the event. Its comprised of the properties: 'name', 'family', 'producer', 'producer_url', 'type', 'url', 'version'.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "event_id": {"name": "event_id", "description": "The ID of the event.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "geo_location": {"name": "geo_location", "description": "A JSON object representing the location where the event occurred. It's comprised of the properties: 'city', 'state', 'country'.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ip_address": {"name": "ip_address", "description": "The contact's IP address when the event occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "user_agent": {"name": "user_agent", "description": "The user agent responsible for the event, e.g. \u201cMozilla/5.0 (Macintosh; Intel Mac OS X 10_8_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.95 Safari/537.36\u201d", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_hubspot__email.yml", "build_path": "target/compiled/hubspot_source/models/stg_hubspot__email_event_forward.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "enabled": true}, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__email_event_forward_tmp`\n\n), macro as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n browser\n \n as \n \n browser\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n ip_address\n \n as \n \n ip_address\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n user_agent\n \n as \n \n user_agent\n \n\n\n\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n browser,\n id as event_id,\n ip_address,\n location as geo_location,\n user_agent\n from macro\n \n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__email_event_forward`"}, "model.hubspot_source.stg_hubspot__ticket_deal": {"raw_sql": "{{ config(enabled=var('hubspot_service_enabled', False)) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_hubspot__ticket_deal_tmp') }}\n\n), macro as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_hubspot__ticket_deal_tmp')),\n staging_columns=get_ticket_deal_columns()\n )\n }}\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n ticket_id,\n deal_id\n\n from macro\n\n)\n\nselect *\nfrom fields", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "stg_hubspot__ticket_deal"], "unique_id": "model.hubspot_source.stg_hubspot__ticket_deal", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "stg_hubspot__ticket_deal.sql", "original_file_path": "models/stg_hubspot__ticket_deal.sql", "name": "stg_hubspot__ticket_deal", "resource_type": "model", "alias": "stg_hubspot__ticket_deal", "checksum": {"name": "sha256", "checksum": "3619012836ee6540ec7bc0f8a6f8c36b4866eebadaaf15443b6477978a47a30c"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_hubspot__ticket_deal_tmp"], ["stg_hubspot__ticket_deal_tmp"]], "sources": [], "depends_on": {"macros": ["macro.hubspot_source.get_ticket_deal_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.hubspot_source.stg_hubspot__ticket_deal_tmp", "model.hubspot_source.stg_hubspot__ticket_deal_tmp"]}, "description": "Each record represents a 'link' between a ticket and a deal.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ticket_id": {"name": "ticket_id", "description": "The ID of the related ticket.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deal_id": {"name": "deal_id", "description": "The ID of the related deal.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_hubspot__ticket.yml", "build_path": "target/compiled/hubspot_source/models/stg_hubspot__ticket_deal.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "enabled": true}, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__ticket_deal_tmp`\n\n), macro as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ticket_id\n \n as \n \n ticket_id\n \n, \n \n \n deal_id\n \n as \n \n deal_id\n \n\n\n\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n ticket_id,\n deal_id\n\n from macro\n\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__ticket_deal`"}, "model.hubspot_source.stg_hubspot__email_event_bounce": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_marketing_enabled','hubspot_email_event_enabled','hubspot_email_event_bounce_enabled'])) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_hubspot__email_event_bounce_tmp') }}\n\n), macro as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_hubspot__email_event_bounce_tmp')),\n staging_columns=get_email_event_bounce_columns()\n )\n }}\n from base\n \n), fields as (\n\n select\n _fivetran_synced,\n category as bounce_category,\n id as event_id,\n response as returned_response,\n status as returned_status\n from macro\n \n)\n\nselect *\nfrom fields", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "stg_hubspot__email_event_bounce"], "unique_id": "model.hubspot_source.stg_hubspot__email_event_bounce", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "stg_hubspot__email_event_bounce.sql", "original_file_path": "models/stg_hubspot__email_event_bounce.sql", "name": "stg_hubspot__email_event_bounce", "resource_type": "model", "alias": "stg_hubspot__email_event_bounce", "checksum": {"name": "sha256", "checksum": "025e8ac7e6d46d4db4879f113c367e3ba915d1179642f26a1afb35d61cf78d77"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_hubspot__email_event_bounce_tmp"], ["stg_hubspot__email_event_bounce_tmp"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.hubspot_source.get_email_event_bounce_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.hubspot_source.stg_hubspot__email_event_bounce_tmp", "model.hubspot_source.stg_hubspot__email_event_bounce_tmp"]}, "description": "Each record represents a BOUNCE email event.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bounce_category": {"name": "bounce_category", "description": "The best-guess of the type of bounce encountered. \nIf an appropriate category couldn't be determined, this property is omitted. See below for the possible values. \nNote that this is a derived value, and may be modified at any time to improve the accuracy of classification.\n", "meta": {}, "data_type": null, "quote": null, "tags": []}, "event_id": {"name": "event_id", "description": "The ID of the event.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "returned_response": {"name": "returned_response", "description": "The full response from the recipient's email server.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "returned_status": {"name": "returned_status", "description": "The status code returned from the recipient's email server.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_hubspot__email.yml", "build_path": "target/compiled/hubspot_source/models/stg_hubspot__email_event_bounce.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "enabled": true}, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__email_event_bounce_tmp`\n\n), macro as (\n\n select\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 id\n \n as \n \n id\n \n, \n \n \n response\n \n as \n \n response\n \n, \n \n \n status\n \n as \n \n status\n \n\n\n\n from base\n \n), fields as (\n\n select\n _fivetran_synced,\n category as bounce_category,\n id as event_id,\n response as returned_response,\n status as returned_status\n from macro\n \n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__email_event_bounce`"}, "model.hubspot_source.stg_hubspot__ticket_engagement": {"raw_sql": "{{ config(enabled=var('hubspot_service_enabled', False)) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_hubspot__ticket_engagement_tmp') }}\n\n), macro as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_hubspot__ticket_engagement_tmp')),\n staging_columns=get_ticket_engagement_columns()\n )\n }}\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n ticket_id,\n engagement_id\n\n from macro\n\n)\n\nselect *\nfrom fields", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "stg_hubspot__ticket_engagement"], "unique_id": "model.hubspot_source.stg_hubspot__ticket_engagement", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "stg_hubspot__ticket_engagement.sql", "original_file_path": "models/stg_hubspot__ticket_engagement.sql", "name": "stg_hubspot__ticket_engagement", "resource_type": "model", "alias": "stg_hubspot__ticket_engagement", "checksum": {"name": "sha256", "checksum": "80a21d05bc43aae084adc9211f637bb29c7cab32359d7e1b70643895c67f8d2b"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_hubspot__ticket_engagement_tmp"], ["stg_hubspot__ticket_engagement_tmp"]], "sources": [], "depends_on": {"macros": ["macro.hubspot_source.get_ticket_engagement_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.hubspot_source.stg_hubspot__ticket_engagement_tmp", "model.hubspot_source.stg_hubspot__ticket_engagement_tmp"]}, "description": "Each record represents a 'link' between a ticket and an engagement.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ticket_id": {"name": "ticket_id", "description": "The ID of the related ticket.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "engagement_id": {"name": "engagement_id", "description": "The ID of the related deal.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_hubspot__ticket.yml", "build_path": "target/compiled/hubspot_source/models/stg_hubspot__ticket_engagement.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "enabled": true}, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__ticket_engagement_tmp`\n\n), macro as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ticket_id\n \n as \n \n ticket_id\n \n, \n \n \n engagement_id\n \n as \n \n engagement_id\n \n\n\n\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n ticket_id,\n engagement_id\n\n from macro\n\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__ticket_engagement`"}, "model.hubspot_source.stg_hubspot__ticket_pipeline_stage": {"raw_sql": "{{ config(enabled=var('hubspot_service_enabled', False)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_hubspot__ticket_pipeline_stage_tmp') }}\n\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_hubspot__ticket_pipeline_stage_tmp')),\n staging_columns=get_ticket_pipeline_stage_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n _fivetran_deleted,\n _fivetran_synced,\n active as is_active,\n display_order,\n is_closed,\n label,\n cast(pipeline_id as {{ dbt_utils.type_int() }} ) as ticket_pipeline_id,\n stage_id,\n ticket_state\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "stg_hubspot__ticket_pipeline_stage"], "unique_id": "model.hubspot_source.stg_hubspot__ticket_pipeline_stage", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "stg_hubspot__ticket_pipeline_stage.sql", "original_file_path": "models/stg_hubspot__ticket_pipeline_stage.sql", "name": "stg_hubspot__ticket_pipeline_stage", "resource_type": "model", "alias": "stg_hubspot__ticket_pipeline_stage", "checksum": {"name": "sha256", "checksum": "0de26b65c7bba022c1a5878c94889003fa922a7ed09a86b2ffce532a0a650717"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_hubspot__ticket_pipeline_stage_tmp"], ["stg_hubspot__ticket_pipeline_stage_tmp"]], "sources": [], "depends_on": {"macros": ["macro.hubspot_source.get_ticket_pipeline_stage_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_int"], "nodes": ["model.hubspot_source.stg_hubspot__ticket_pipeline_stage_tmp", "model.hubspot_source.stg_hubspot__ticket_pipeline_stage_tmp"]}, "description": "Each record represents a ticket pipeline stage.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Timestamp of when Fivetran marked a record as deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Boolean indicating whether the pipeline stage is active.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "display_order": {"name": "display_order", "description": "Used to determine the order in which the stages appear when viewed in HubSpot.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_closed": {"name": "is_closed", "description": "Boolean indicating if the pipeline stage is closed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "label": {"name": "label", "description": "The human-readable label for the stage. The label is used when showing the stage in HubSpot.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ticket_pipeline_id": {"name": "ticket_pipeline_id", "description": "The ID of the pipeline.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "stage_id": {"name": "stage_id", "description": "The ID of the pipeline stage.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ticket_state": {"name": "ticket_state", "description": "State of the ticket.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_hubspot__ticket.yml", "build_path": "target/compiled/hubspot_source/models/stg_hubspot__ticket_pipeline_stage.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "enabled": true}, "compiled_sql": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__ticket_pipeline_stage_tmp`\n\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n 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 display_order\n \n as \n \n display_order\n \n, \n \n \n is_closed\n \n as \n \n is_closed\n \n, \n \n \n label\n \n as \n \n label\n \n, \n \n \n pipeline_id\n \n as \n \n pipeline_id\n \n, \n \n \n stage_id\n \n as \n \n stage_id\n \n, \n \n \n ticket_state\n \n as \n \n ticket_state\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n _fivetran_deleted,\n _fivetran_synced,\n active as is_active,\n display_order,\n is_closed,\n label,\n cast(pipeline_id as \n int64\n ) as ticket_pipeline_id,\n stage_id,\n ticket_state\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__ticket_pipeline_stage`"}, "model.hubspot_source.stg_hubspot__engagement_company": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_sales_enabled','hubspot_engagement_enabled','hubspot_engagement_company_enabled'])) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_hubspot__engagement_company_tmp') }}\n\n), macro as (\n\n select \n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_hubspot__engagement_company_tmp')),\n staging_columns=get_engagement_company_columns()\n )\n }}\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n company_id,\n engagement_id\n from macro\n \n)\n\nselect *\nfrom fields", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "stg_hubspot__engagement_company"], "unique_id": "model.hubspot_source.stg_hubspot__engagement_company", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "stg_hubspot__engagement_company.sql", "original_file_path": "models/stg_hubspot__engagement_company.sql", "name": "stg_hubspot__engagement_company", "resource_type": "model", "alias": "stg_hubspot__engagement_company", "checksum": {"name": "sha256", "checksum": "a82033c7d83fb6aa8c725ec650e15509e3f63bb9cc935ad55e8f500d16e876a0"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_hubspot__engagement_company_tmp"], ["stg_hubspot__engagement_company_tmp"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.hubspot_source.get_engagement_company_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.hubspot_source.stg_hubspot__engagement_company_tmp", "model.hubspot_source.stg_hubspot__engagement_company_tmp"]}, "description": "Each record represents a 'link' between a company and an engagement.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "company_id": {"name": "company_id", "description": "The ID of the related company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "engagement_id": {"name": "engagement_id", "description": "The ID of the related engagement.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_hubspot__engagement.yml", "build_path": "target/compiled/hubspot_source/models/stg_hubspot__engagement_company.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "enabled": true}, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__engagement_company_tmp`\n\n), macro as (\n\n select \n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n company_id\n \n as \n \n company_id\n \n, \n \n \n engagement_id\n \n as \n \n engagement_id\n \n\n\n\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n company_id,\n engagement_id\n from macro\n \n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__engagement_company`"}, "model.hubspot_source.stg_hubspot__email_event_deferred": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_marketing_enabled','hubspot_email_event_enabled','hubspot_email_event_deferred_enabled'])) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_hubspot__email_event_deferred_tmp') }}\n\n), macro as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_hubspot__email_event_deferred_tmp')),\n staging_columns=get_email_event_deferred_columns()\n )\n }}\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n attempt as attempt_number,\n id as event_id,\n response as returned_response\n from macro\n \n)\n\nselect *\nfrom fields", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "stg_hubspot__email_event_deferred"], "unique_id": "model.hubspot_source.stg_hubspot__email_event_deferred", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "stg_hubspot__email_event_deferred.sql", "original_file_path": "models/stg_hubspot__email_event_deferred.sql", "name": "stg_hubspot__email_event_deferred", "resource_type": "model", "alias": "stg_hubspot__email_event_deferred", "checksum": {"name": "sha256", "checksum": "48b248becf6638995434435185f496caa08055bb06a77aa97929f0e9bddcaa3d"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_hubspot__email_event_deferred_tmp"], ["stg_hubspot__email_event_deferred_tmp"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.hubspot_source.get_email_event_deferred_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.hubspot_source.stg_hubspot__email_event_deferred_tmp", "model.hubspot_source.stg_hubspot__email_event_deferred_tmp"]}, "description": "Each record represents a DEFERRED email event.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "attempt_number": {"name": "attempt_number", "description": "The delivery attempt number.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "event_id": {"name": "event_id", "description": "The ID of the event.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "returned_response": {"name": "returned_response", "description": "The full response from the recipient's email server.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_hubspot__email.yml", "build_path": "target/compiled/hubspot_source/models/stg_hubspot__email_event_deferred.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "enabled": true}, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__email_event_deferred_tmp`\n\n), macro as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n attempt\n \n as \n \n attempt\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n response\n \n as \n \n response\n \n\n\n\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n attempt as attempt_number,\n id as event_id,\n response as returned_response\n from macro\n \n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__email_event_deferred`"}, "model.hubspot_source.stg_hubspot__company": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_sales_enabled','hubspot_company_enabled'])) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_hubspot__company_tmp') }}\n where not coalesce(is_deleted, false) \n\n), macro as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_hubspot__company_tmp')),\n staging_columns=get_company_columns()\n )\n }}\n from base\n\n), fields as (\n\n select\n id as company_id, \n _fivetran_synced,\n property_name as company_name,\n property_description as description,\n property_createdate as created_at,\n property_industry as industry,\n property_address as street_address,\n property_address_2 as street_address_2,\n property_city as city,\n property_state as state,\n property_country as country,\n property_annualrevenue as company_annual_revenue\n \n --The below macro adds the fields defined within your hubspot__ticket_pass_through_columns variable into the staging model\n {{ fivetran_utils.fill_pass_through_columns('hubspot__company_pass_through_columns') }}\n \n from macro\n \n)\n\nselect *\nfrom fields", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "stg_hubspot__company"], "unique_id": "model.hubspot_source.stg_hubspot__company", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "stg_hubspot__company.sql", "original_file_path": "models/stg_hubspot__company.sql", "name": "stg_hubspot__company", "resource_type": "model", "alias": "stg_hubspot__company", "checksum": {"name": "sha256", "checksum": "d9acb6de9fa7fa61c3c68a98eddc944ddd50604bd589a76b2e1ff044b5c24888"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_hubspot__company_tmp"], ["stg_hubspot__company_tmp"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.hubspot_source.get_company_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.hubspot_source.stg_hubspot__company_tmp", "model.hubspot_source.stg_hubspot__company_tmp"]}, "description": "Each record represents a company in Hubspot.", "columns": {"company_id": {"name": "company_id", "description": "The ID of the company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "portal_id": {"name": "portal_id", "description": "The hub ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_deleted": {"name": "is_deleted", "description": "Whether the record has been deleted in Hubspot.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "company_name": {"name": "company_name", "description": "The name of the company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "A short statement about the company's mission and goals.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "The date the company was added to your account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "industry": {"name": "industry", "description": "The type of business the company performs.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "street_address": {"name": "street_address", "description": "The street address of the company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "street_address_2": {"name": "street_address_2", "description": "Additional address information for the company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "city": {"name": "city", "description": "The city where the company is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "state": {"name": "state", "description": "The state where the company is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country": {"name": "country", "description": "The country where the company is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "company_annual_revenue": {"name": "company_annual_revenue", "description": "The actual or estimated annual revenue of the company.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_hubspot__company.yml", "build_path": "target/compiled/hubspot_source/models/stg_hubspot__company.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "enabled": true}, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__company_tmp`\n where not coalesce(is_deleted, false) \n\n), macro as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n is_deleted\n \n as \n \n is_deleted\n \n, \n \n \n property_name\n \n as \n \n property_name\n \n, \n \n \n property_description\n \n as \n \n property_description\n \n, \n \n \n property_createdate\n \n as \n \n property_createdate\n \n, \n \n \n property_industry\n \n as \n \n property_industry\n \n, \n \n \n property_address\n \n as \n \n property_address\n \n, \n \n \n property_address_2\n \n as \n \n property_address_2\n \n, \n \n \n property_city\n \n as \n \n property_city\n \n, \n \n \n property_state\n \n as \n \n property_state\n \n, \n \n \n property_country\n \n as \n \n property_country\n \n, \n \n \n property_annualrevenue\n \n as \n \n property_annualrevenue\n \n\n\n\n from base\n\n), fields as (\n\n select\n id as company_id, \n _fivetran_synced,\n property_name as company_name,\n property_description as description,\n property_createdate as created_at,\n property_industry as industry,\n property_address as street_address,\n property_address_2 as street_address_2,\n property_city as city,\n property_state as state,\n property_country as country,\n property_annualrevenue as company_annual_revenue\n \n --The below macro adds the fields defined within your hubspot__ticket_pass_through_columns variable into the staging model\n \n\n\n\n\n \n from macro\n \n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__company`"}, "model.hubspot_source.stg_hubspot__email_event_click": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_marketing_enabled','hubspot_email_event_enabled','hubspot_email_event_click_enabled'])) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_hubspot__email_event_click_tmp') }}\n\n), macro as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_hubspot__email_event_click_tmp')),\n staging_columns=get_email_event_click_columns()\n )\n }}\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n browser,\n id as event_id,\n ip_address,\n location as geo_location,\n referer as referer_url,\n url as click_url,\n user_agent\n from macro\n \n)\n\nselect *\nfrom fields", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "stg_hubspot__email_event_click"], "unique_id": "model.hubspot_source.stg_hubspot__email_event_click", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "stg_hubspot__email_event_click.sql", "original_file_path": "models/stg_hubspot__email_event_click.sql", "name": "stg_hubspot__email_event_click", "resource_type": "model", "alias": "stg_hubspot__email_event_click", "checksum": {"name": "sha256", "checksum": "9b390439502d6d4b7fc06e29435dc73e8af78365e92c4577749d8108ebd3c0b5"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_hubspot__email_event_click_tmp"], ["stg_hubspot__email_event_click_tmp"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.hubspot_source.get_email_event_click_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.hubspot_source.stg_hubspot__email_event_click_tmp", "model.hubspot_source.stg_hubspot__email_event_click_tmp"]}, "description": "Each record represents a CLICK email event.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "browser": {"name": "browser", "description": "A JSON object representing the browser which serviced the event. Its comprised of the properties: 'name', 'family', 'producer', 'producer_url', 'type', 'url', 'version'.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "click_url": {"name": "click_url", "description": "The URL within the message that the recipient clicked.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "event_id": {"name": "event_id", "description": "The ID of the event.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "geo_location": {"name": "geo_location", "description": "A JSON object representing the location where the event occurred. It's comprised of the properties: 'city', 'state', 'country'.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ip_address": {"name": "ip_address", "description": "The contact's IP address when the event occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "referer_url": {"name": "referer_url", "description": "The URL of the webpage that linked to the URL clicked. Whether this is provided, and what its value is, is determined by the recipient's email client.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "user_agent": {"name": "user_agent", "description": "The user agent responsible for the event, e.g. \u201cMozilla/5.0 (Macintosh; Intel Mac OS X 10_8_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.95 Safari/537.36\u201d", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_hubspot__email.yml", "build_path": "target/compiled/hubspot_source/models/stg_hubspot__email_event_click.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "enabled": true}, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__email_event_click_tmp`\n\n), macro as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n browser\n \n as \n \n browser\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n ip_address\n \n as \n \n ip_address\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n referer\n \n as \n \n referer\n \n, \n \n \n url\n \n as \n \n url\n \n, \n \n \n user_agent\n \n as \n \n user_agent\n \n\n\n\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n browser,\n id as event_id,\n ip_address,\n location as geo_location,\n referer as referer_url,\n url as click_url,\n user_agent\n from macro\n \n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__email_event_click`"}, "model.hubspot_source.stg_hubspot__engagement_call": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_sales_enabled','hubspot_engagement_enabled','hubspot_engagement_call_enabled'])) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_hubspot__engagement_call_tmp') }}\n\n), macro as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_hubspot__engagement_call_tmp')),\n staging_columns=get_engagement_call_columns()\n )\n }}\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n body as call_notes,\n callee_object_id,\n callee_object_type,\n disposition as disposition_id,\n duration_milliseconds as call_duration_milliseconds,\n engagement_id,\n external_account_id,\n external_id,\n from_number,\n recording_url,\n status as call_status,\n to_number,\n transcription_id,\n unknown_visitor_conversation\n from macro\n \n)\n\nselect *\nfrom fields", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "stg_hubspot__engagement_call"], "unique_id": "model.hubspot_source.stg_hubspot__engagement_call", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "stg_hubspot__engagement_call.sql", "original_file_path": "models/stg_hubspot__engagement_call.sql", "name": "stg_hubspot__engagement_call", "resource_type": "model", "alias": "stg_hubspot__engagement_call", "checksum": {"name": "sha256", "checksum": "dc7d0533bf3301520d71db2b46ddf5c79a76392ba12bac6b464815e00a727a09"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_hubspot__engagement_call_tmp"], ["stg_hubspot__engagement_call_tmp"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.hubspot_source.get_engagement_call_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.hubspot_source.stg_hubspot__engagement_call_tmp", "model.hubspot_source.stg_hubspot__engagement_call_tmp"]}, "description": "Each record represents a CALL engagement event.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "call_duration_milliseconds": {"name": "call_duration_milliseconds", "description": "The length of the call in milliseconds", "meta": {}, "data_type": null, "quote": null, "tags": []}, "disposition_id": {"name": "disposition_id", "description": "The internal ID for the call outcome.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "engagement_id": {"name": "engagement_id", "description": "The ID of the engagement.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "external_account_id": {"name": "external_account_id", "description": "For calls made in HubSpot, this will be the internal ID of the account used to make the call.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "external_id": {"name": "external_id", "description": "For calls made in HubSpot, this will be the internal ID of the call.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "from_number": {"name": "from_number", "description": "The phone number that was used as the from number.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "recording_url": {"name": "recording_url", "description": "The URL of the recording file .", "meta": {}, "data_type": null, "quote": null, "tags": []}, "to_number": {"name": "to_number", "description": "The phone number that was called.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_hubspot__engagement.yml", "build_path": "target/compiled/hubspot_source/models/stg_hubspot__engagement_call.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "enabled": true}, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__engagement_call_tmp`\n\n), macro as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n body\n \n as \n \n body\n \n, \n \n \n callee_object_id\n \n as \n \n callee_object_id\n \n, \n \n \n callee_object_type\n \n as \n \n callee_object_type\n \n, \n \n \n disposition\n \n as \n \n disposition\n \n, \n \n \n duration_milliseconds\n \n as \n \n duration_milliseconds\n \n, \n \n \n engagement_id\n \n as \n \n engagement_id\n \n, \n \n \n external_account_id\n \n as \n \n external_account_id\n \n, \n \n \n external_id\n \n as \n \n external_id\n \n, \n \n \n from_number\n \n as \n \n from_number\n \n, \n \n \n recording_url\n \n as \n \n recording_url\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n to_number\n \n as \n \n to_number\n \n, \n \n \n transcription_id\n \n as \n \n transcription_id\n \n, \n \n \n unknown_visitor_conversation\n \n as \n \n unknown_visitor_conversation\n \n\n\n\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n body as call_notes,\n callee_object_id,\n callee_object_type,\n disposition as disposition_id,\n duration_milliseconds as call_duration_milliseconds,\n engagement_id,\n external_account_id,\n external_id,\n from_number,\n recording_url,\n status as call_status,\n to_number,\n transcription_id,\n unknown_visitor_conversation\n from macro\n \n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__engagement_call`"}, "model.hubspot_source.stg_hubspot__engagement": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_sales_enabled','hubspot_engagement_enabled'])) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_hubspot__engagement_tmp') }}\n\n), macro as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_hubspot__engagement_tmp')),\n staging_columns=get_engagement_columns()\n )\n }}\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n active as is_active,\n activity_type,\n created_at as created_timestamp,\n id as engagement_id,\n last_updated as last_updated_timestamp,\n owner_id,\n portal_id,\n occurred_timestamp,\n engagement_type\n from macro\n \n)\n\nselect *\nfrom fields", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "stg_hubspot__engagement"], "unique_id": "model.hubspot_source.stg_hubspot__engagement", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "stg_hubspot__engagement.sql", "original_file_path": "models/stg_hubspot__engagement.sql", "name": "stg_hubspot__engagement", "resource_type": "model", "alias": "stg_hubspot__engagement", "checksum": {"name": "sha256", "checksum": "05bf5578777dbb9ae9a0facdee9187c1f9daa7a80b970ca6166d9baa7e50d2e7"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_hubspot__engagement_tmp"], ["stg_hubspot__engagement_tmp"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.hubspot_source.get_engagement_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.hubspot_source.stg_hubspot__engagement_tmp", "model.hubspot_source.stg_hubspot__engagement_tmp"]}, "description": "Each record represents an engagement", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "activity_type": {"name": "activity_type", "description": "The engagement's activity type.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_timestamp": {"name": "created_timestamp", "description": "A timestamp representing when the engagement was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "engagement_id": {"name": "engagement_id", "description": "The ID of the engagement.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "engagement_type": {"name": "engagement_type", "description": "One of NOTE, EMAIL, TASK, MEETING, or CALL, the type of the engagement.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Whether the engagement is currently being shown in the UI.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_updated_timestamp": {"name": "last_updated_timestamp", "description": "A timestamp in representing when the engagement was last updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "occurred_timestamp": {"name": "occurred_timestamp", "description": "A timestamp in representing the time that the engagement should appear in the timeline.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "owner_id": {"name": "owner_id", "description": "The ID of the engagement's owner.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "portal_id": {"name": "portal_id", "description": "The hub ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_hubspot__engagement.yml", "build_path": "target/compiled/hubspot_source/models/stg_hubspot__engagement.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "enabled": true}, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__engagement_tmp`\n\n), macro as (\n\n select\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_type\n \n as \n \n activity_type\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_updated\n \n as \n \n last_updated\n \n, \n \n \n owner_id\n \n as \n \n owner_id\n \n, \n \n \n portal_id\n \n as \n \n portal_id\n \n, \n \n \n timestamp\n \n as occurred_timestamp , \n \n \n type\n \n as engagement_type \n\n\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n active as is_active,\n activity_type,\n created_at as created_timestamp,\n id as engagement_id,\n last_updated as last_updated_timestamp,\n owner_id,\n portal_id,\n occurred_timestamp,\n engagement_type\n from macro\n \n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__engagement`"}, "model.hubspot_source.stg_hubspot__ticket_company": {"raw_sql": "{{ config(enabled=var('hubspot_service_enabled', False)) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_hubspot__ticket_company_tmp') }}\n\n), macro as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_hubspot__ticket_company_tmp')),\n staging_columns=get_ticket_company_columns()\n )\n }}\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n ticket_id,\n company_id\n\n from macro\n\n)\n\nselect *\nfrom fields", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "stg_hubspot__ticket_company"], "unique_id": "model.hubspot_source.stg_hubspot__ticket_company", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "stg_hubspot__ticket_company.sql", "original_file_path": "models/stg_hubspot__ticket_company.sql", "name": "stg_hubspot__ticket_company", "resource_type": "model", "alias": "stg_hubspot__ticket_company", "checksum": {"name": "sha256", "checksum": "546903116d5a8e4505345c48c4eba23b6126c4d0ebeba3bb936db69dce2b5395"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_hubspot__ticket_company_tmp"], ["stg_hubspot__ticket_company_tmp"]], "sources": [], "depends_on": {"macros": ["macro.hubspot_source.get_ticket_company_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.hubspot_source.stg_hubspot__ticket_company_tmp", "model.hubspot_source.stg_hubspot__ticket_company_tmp"]}, "description": "Each record represents a 'link' between a ticket and company.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ticket_id": {"name": "ticket_id", "description": "The ID of the related ticket.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "company_id": {"name": "company_id", "description": "The ID of the related company.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_hubspot__ticket.yml", "build_path": "target/compiled/hubspot_source/models/stg_hubspot__ticket_company.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "enabled": true}, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__ticket_company_tmp`\n\n), macro as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ticket_id\n \n as \n \n ticket_id\n \n, \n \n \n company_id\n \n as \n \n company_id\n \n\n\n\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n ticket_id,\n company_id\n\n from macro\n\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__ticket_company`"}, "model.hubspot_source.stg_hubspot__email_campaign": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_marketing_enabled','hubspot_email_event_enabled'])) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_hubspot__email_campaign_tmp') }}\n\n), macro as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_hubspot__email_campaign_tmp')),\n staging_columns=get_email_campaign_columns()\n )\n }}\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n app_id,\n app_name,\n content_id,\n id as email_campaign_id,\n name as email_campaign_name,\n num_included,\n num_queued,\n sub_type as email_campaign_sub_type,\n subject as email_campaign_subject,\n type as email_campaign_type\n from macro\n \n)\n\nselect *\nfrom fields", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "stg_hubspot__email_campaign"], "unique_id": "model.hubspot_source.stg_hubspot__email_campaign", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "stg_hubspot__email_campaign.sql", "original_file_path": "models/stg_hubspot__email_campaign.sql", "name": "stg_hubspot__email_campaign", "resource_type": "model", "alias": "stg_hubspot__email_campaign", "checksum": {"name": "sha256", "checksum": "d13056dfea036822ae4400b796b742196e648d1ae5aad273f005f3ab80ad525f"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_hubspot__email_campaign_tmp"], ["stg_hubspot__email_campaign_tmp"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.hubspot_source.get_email_campaign_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.hubspot_source.stg_hubspot__email_campaign_tmp", "model.hubspot_source.stg_hubspot__email_campaign_tmp"]}, "description": "Each record represents an email campaign in Hubspot.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "app_id": {"name": "app_id", "description": "The app ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "app_name": {"name": "app_name", "description": "The app name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "content_id": {"name": "content_id", "description": "The ID of the content.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "email_campaign_id": {"name": "email_campaign_id", "description": "The ID of the email campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "email_campaign_name": {"name": "email_campaign_name", "description": "The name of the email campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "email_campaign_sub_type": {"name": "email_campaign_sub_type", "description": "The email campaign sub-type.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "email_campaign_subject": {"name": "email_campaign_subject", "description": "The subject of the email campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "email_campaign_type": {"name": "email_campaign_type", "description": "The email campaign type.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "num_included": {"name": "num_included", "description": "The number of messages included as part of the email campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "num_queued": {"name": "num_queued", "description": "The number of messages queued as part of the email campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_hubspot__email.yml", "build_path": "target/compiled/hubspot_source/models/stg_hubspot__email_campaign.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "enabled": true}, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__email_campaign_tmp`\n\n), macro as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n app_id\n \n as \n \n app_id\n \n, \n \n \n app_name\n \n as \n \n app_name\n \n, \n \n \n content_id\n \n as \n \n content_id\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n num_included\n \n as \n \n num_included\n \n, \n \n \n num_queued\n \n as \n \n num_queued\n \n, \n \n \n sub_type\n \n as \n \n sub_type\n \n, \n \n \n subject\n \n as \n \n subject\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n app_id,\n app_name,\n content_id,\n id as email_campaign_id,\n name as email_campaign_name,\n num_included,\n num_queued,\n sub_type as email_campaign_sub_type,\n subject as email_campaign_subject,\n type as email_campaign_type\n from macro\n \n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__email_campaign`"}, "model.hubspot_source.stg_hubspot__email_event_print": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_marketing_enabled','hubspot_email_event_enabled','hubspot_email_event_print_enabled'])) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_hubspot__email_event_print_tmp') }}\n\n), macro as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_hubspot__email_event_print_tmp')),\n staging_columns=get_email_event_print_columns()\n )\n }}\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n browser,\n id as event_id,\n ip_address,\n location as geo_location,\n user_agent\n from macro\n \n)\n\nselect *\nfrom fields", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "stg_hubspot__email_event_print"], "unique_id": "model.hubspot_source.stg_hubspot__email_event_print", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "stg_hubspot__email_event_print.sql", "original_file_path": "models/stg_hubspot__email_event_print.sql", "name": "stg_hubspot__email_event_print", "resource_type": "model", "alias": "stg_hubspot__email_event_print", "checksum": {"name": "sha256", "checksum": "4f85478e5950ad6676e59750250108ce65c0419781a741346e461f1a5f949fd2"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_hubspot__email_event_print_tmp"], ["stg_hubspot__email_event_print_tmp"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.hubspot_source.get_email_event_print_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.hubspot_source.stg_hubspot__email_event_print_tmp", "model.hubspot_source.stg_hubspot__email_event_print_tmp"]}, "description": "Each record represents a PRINT email event.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "browser": {"name": "browser", "description": "A JSON object representing the browser which serviced the event. Its comprised of the properties: 'name', 'family', 'producer', 'producer_url', 'type', 'url', 'version'.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "event_id": {"name": "event_id", "description": "The ID of the event.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "geo_location": {"name": "geo_location", "description": "A JSON object representing the location where the event occurred. It's comprised of the properties: 'city', 'state', 'country'.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ip_address": {"name": "ip_address", "description": "The contact's IP address when the event occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "user_agent": {"name": "user_agent", "description": "The user agent responsible for the event, e.g. \u201cMozilla/5.0 (Macintosh; Intel Mac OS X 10_8_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.95 Safari/537.36\u201d", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_hubspot__email.yml", "build_path": "target/compiled/hubspot_source/models/stg_hubspot__email_event_print.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "enabled": true}, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__email_event_print_tmp`\n\n), macro as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n browser\n \n as \n \n browser\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n ip_address\n \n as \n \n ip_address\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n user_agent\n \n as \n \n user_agent\n \n\n\n\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n browser,\n id as event_id,\n ip_address,\n location as geo_location,\n user_agent\n from macro\n \n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__email_event_print`"}, "model.hubspot_source.stg_hubspot__contact_property_history": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_marketing_enabled', 'hubspot_contact_property_enabled'])) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_hubspot__contact_property_history_tmp') }}\n\n), macro as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_hubspot__contact_property_history_tmp')),\n staging_columns=get_contact_property_history_columns()\n )\n }}\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n contact_id,\n name as field_name,\n source as change_source,\n source_id as change_source_id,\n change_timestamp,\n value as new_value\n from macro\n \n)\n\nselect *\nfrom fields", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "stg_hubspot__contact_property_history"], "unique_id": "model.hubspot_source.stg_hubspot__contact_property_history", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "stg_hubspot__contact_property_history.sql", "original_file_path": "models/stg_hubspot__contact_property_history.sql", "name": "stg_hubspot__contact_property_history", "resource_type": "model", "alias": "stg_hubspot__contact_property_history", "checksum": {"name": "sha256", "checksum": "41a20615d43c724be78ee13ea4bacf6ec049df1fe93ae87f691a261c5cfe0754"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_hubspot__contact_property_history_tmp"], ["stg_hubspot__contact_property_history_tmp"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.hubspot_source.get_contact_property_history_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.hubspot_source.stg_hubspot__contact_property_history_tmp", "model.hubspot_source.stg_hubspot__contact_property_history_tmp"]}, "description": "Each record represents a change to contact record in Hubspot.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "change_source": {"name": "change_source", "description": "The source (reason) of the change.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "change_source_id": {"name": "change_source_id", "description": "The ID of the object that caused the change, if applicable.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "change_timestamp": {"name": "change_timestamp", "description": "The timestamp the changed occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "contact_id": {"name": "contact_id", "description": "The ID of the related contact record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "field_name": {"name": "field_name", "description": "The name of the field being changed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "new_value": {"name": "new_value", "description": "The new value of the field.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_hubspot__contact.yml", "build_path": "target/compiled/hubspot_source/models/stg_hubspot__contact_property_history.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "enabled": true}, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__contact_property_history_tmp`\n\n), macro as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n contact_id\n \n as \n \n contact_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n source\n \n as \n \n source\n \n, \n \n \n source_id\n \n as \n \n source_id\n \n, \n \n \n timestamp\n \n as change_timestamp , \n \n \n value\n \n as \n \n value\n \n\n\n\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n contact_id,\n name as field_name,\n source as change_source,\n source_id as change_source_id,\n change_timestamp,\n value as new_value\n from macro\n \n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__contact_property_history`"}, "model.hubspot_source.stg_hubspot__ticket_property_history": {"raw_sql": "{{ config(enabled=var('hubspot_service_enabled', False)) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_hubspot__ticket_property_history_tmp') }}\n\n), macro as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_hubspot__ticket_property_history_tmp')),\n staging_columns=get_ticket_property_history_columns()\n )\n }}\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n ticket_id,\n name as field_name,\n source as change_source,\n source_id as change_source_id,\n timestamp_instant as change_timestamp,\n value as new_value\n\n from macro\n\n)\n\nselect *\nfrom fields", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "stg_hubspot__ticket_property_history"], "unique_id": "model.hubspot_source.stg_hubspot__ticket_property_history", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "stg_hubspot__ticket_property_history.sql", "original_file_path": "models/stg_hubspot__ticket_property_history.sql", "name": "stg_hubspot__ticket_property_history", "resource_type": "model", "alias": "stg_hubspot__ticket_property_history", "checksum": {"name": "sha256", "checksum": "0d94a7503e79169b585536da66cf8c8c2c138f0aa769ff800e147392c5dadb5a"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_hubspot__ticket_property_history_tmp"], ["stg_hubspot__ticket_property_history_tmp"]], "sources": [], "depends_on": {"macros": ["macro.hubspot_source.get_ticket_property_history_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.hubspot_source.stg_hubspot__ticket_property_history_tmp", "model.hubspot_source.stg_hubspot__ticket_property_history_tmp"]}, "description": "Each record represents a change to ticket record in Hubspot.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "change_source": {"name": "change_source", "description": "The source (reason) of the change.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "change_source_id": {"name": "change_source_id", "description": "The ID of the object that caused the change, if applicable.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "change_timestamp": {"name": "change_timestamp", "description": "The timestamp the changed occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ticket_id": {"name": "ticket_id", "description": "The ID of the related ticket record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "field_name": {"name": "field_name", "description": "The name of the field being changed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "new_value": {"name": "new_value", "description": "The new value of the field.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_hubspot__ticket.yml", "build_path": "target/compiled/hubspot_source/models/stg_hubspot__ticket_property_history.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "enabled": true}, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__ticket_property_history_tmp`\n\n), macro as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ticket_id\n \n as \n \n ticket_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n source\n \n as \n \n source\n \n, \n \n \n source_id\n \n as \n \n source_id\n \n, \n \n \n timestamp_instant\n \n as \n \n timestamp_instant\n \n, \n \n \n value\n \n as \n \n value\n \n\n\n\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n ticket_id,\n name as field_name,\n source as change_source,\n source_id as change_source_id,\n timestamp_instant as change_timestamp,\n value as new_value\n\n from macro\n\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__ticket_property_history`"}, "model.hubspot_source.stg_hubspot__email_event_open": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_marketing_enabled','hubspot_email_event_enabled','hubspot_email_event_open_enabled'])) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_hubspot__email_event_open_tmp') }}\n\n), macro as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_hubspot__email_event_open_tmp')),\n staging_columns=get_email_event_open_columns()\n )\n }}\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n browser,\n duration as duration_open,\n id as event_id,\n ip_address,\n location as geo_location,\n user_agent\n from macro\n \n)\n\nselect *\nfrom fields", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "stg_hubspot__email_event_open"], "unique_id": "model.hubspot_source.stg_hubspot__email_event_open", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "stg_hubspot__email_event_open.sql", "original_file_path": "models/stg_hubspot__email_event_open.sql", "name": "stg_hubspot__email_event_open", "resource_type": "model", "alias": "stg_hubspot__email_event_open", "checksum": {"name": "sha256", "checksum": "d889037fe49d3d49be46e693b50f152013f882c31d692beb0af2cfc35d2b9ed4"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_hubspot__email_event_open_tmp"], ["stg_hubspot__email_event_open_tmp"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.hubspot_source.get_email_event_open_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.hubspot_source.stg_hubspot__email_event_open_tmp", "model.hubspot_source.stg_hubspot__email_event_open_tmp"]}, "description": "Each record represents a OPEN email event.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "browser": {"name": "browser", "description": "A JSON object representing the browser which serviced the event. Its comprised of the properties: 'name', 'family', 'producer', 'producer_url', 'type', 'url', 'version'.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "duration_open": {"name": "duration_open", "description": "If provided and nonzero, the approximate number of milliseconds the user had opened the email.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "event_id": {"name": "event_id", "description": "The ID of the event.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "geo_location": {"name": "geo_location", "description": "A JSON object representing the location where the event occurred. It's comprised of the properties: 'city', 'state', 'country'.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ip_address": {"name": "ip_address", "description": "The contact's IP address when the event occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "user_agent": {"name": "user_agent", "description": "The user agent responsible for the event, e.g. \u201cMozilla/5.0 (Macintosh; Intel Mac OS X 10_8_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.95 Safari/537.36\u201d", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_hubspot__email.yml", "build_path": "target/compiled/hubspot_source/models/stg_hubspot__email_event_open.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "enabled": true}, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__email_event_open_tmp`\n\n), macro as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n browser\n \n as \n \n browser\n \n, \n \n \n duration\n \n as \n \n duration\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n ip_address\n \n as \n \n ip_address\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n user_agent\n \n as \n \n user_agent\n \n\n\n\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n browser,\n duration as duration_open,\n id as event_id,\n ip_address,\n location as geo_location,\n user_agent\n from macro\n \n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__email_event_open`"}, "model.hubspot_source.stg_hubspot__email_event_sent": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_marketing_enabled','hubspot_email_event_enabled','hubspot_email_event_sent_enabled'])) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_hubspot__email_event_sent_tmp') }}\n\n), macro as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_hubspot__email_event_sent_tmp')),\n staging_columns=get_email_event_sent_columns()\n )\n }}\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n bcc as bcc_emails,\n cc as cc_emails,\n from_email,\n id as event_id,\n reply_to as reply_to_email,\n subject as email_subject\n from macro\n \n)\n\nselect *\nfrom fields", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "stg_hubspot__email_event_sent"], "unique_id": "model.hubspot_source.stg_hubspot__email_event_sent", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "stg_hubspot__email_event_sent.sql", "original_file_path": "models/stg_hubspot__email_event_sent.sql", "name": "stg_hubspot__email_event_sent", "resource_type": "model", "alias": "stg_hubspot__email_event_sent", "checksum": {"name": "sha256", "checksum": "0a148b58f423ac9c54192caf4a28011dbce37267b06f0983a42f01050c197f50"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_hubspot__email_event_sent_tmp"], ["stg_hubspot__email_event_sent_tmp"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.hubspot_source.get_email_event_sent_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.hubspot_source.stg_hubspot__email_event_sent_tmp", "model.hubspot_source.stg_hubspot__email_event_sent_tmp"]}, "description": "Each record represents a SENT email event.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bcc_emails": {"name": "bcc_emails", "description": "The 'cc' field of the email message.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cc_emails": {"name": "cc_emails", "description": "The 'bcc' field of the email message.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "email_subject": {"name": "email_subject", "description": "The subject line of the email message.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "event_id": {"name": "event_id", "description": "The ID of the event.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "from_email": {"name": "from_email", "description": "The 'from' field of the email message.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "reply_to_email": {"name": "reply_to_email", "description": "The 'reply-to' field of the email message.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_hubspot__email.yml", "build_path": "target/compiled/hubspot_source/models/stg_hubspot__email_event_sent.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "enabled": true}, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__email_event_sent_tmp`\n\n), macro as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n bcc\n \n as \n \n bcc\n \n, \n \n \n cc\n \n as \n \n cc\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n reply_to\n \n as \n \n reply_to\n \n, \n \n \n subject\n \n as \n \n subject\n \n, \n \n \n \n \n `from`\n \n \n \n as from_email \n\n\n from base\n\n), fields as (\n\n select\n _fivetran_synced,\n bcc as bcc_emails,\n cc as cc_emails,\n from_email,\n id as event_id,\n reply_to as reply_to_email,\n subject as email_subject\n from macro\n \n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__email_event_sent`"}, "model.hubspot_source.stg_hubspot__ticket": {"raw_sql": "{{ config(enabled=var('hubspot_service_enabled', False)) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_hubspot__ticket_tmp') }}\n where not coalesce(is_deleted, false) \n\n), macro as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_hubspot__ticket_tmp')),\n staging_columns=get_ticket_columns()\n )\n }}\n from base\n\n), fields as (\n\n select\n id as ticket_id,\n _fivetran_synced,\n is_deleted,\n property_closed_date as closed_at,\n property_createdate as created_at,\n property_first_agent_reply_date as first_agent_reply_at,\n property_hs_pipeline as ticket_pipeline_id,\n property_hs_pipeline_stage as ticket_pipeline_stage_id,\n property_hs_ticket_category as ticket_category,\n property_hs_ticket_priority as ticket_priority,\n property_hubspot_owner_id as owner_id,\n property_subject as ticket_subject,\n property_content as ticket_content\n\n --The below macro adds the fields defined within your hubspot__ticket_pass_through_columns variable into the staging model\n {{ fivetran_utils.fill_pass_through_columns('hubspot__ticket_pass_through_columns') }}\n \n from macro\n \n)\n\nselect *\nfrom fields", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "stg_hubspot__ticket"], "unique_id": "model.hubspot_source.stg_hubspot__ticket", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "stg_hubspot__ticket.sql", "original_file_path": "models/stg_hubspot__ticket.sql", "name": "stg_hubspot__ticket", "resource_type": "model", "alias": "stg_hubspot__ticket", "checksum": {"name": "sha256", "checksum": "bd4d9f0e5520440be73e448ca60f8455a64c05b7076cc5cb6250eef5e67b76b6"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_hubspot__ticket_tmp"], ["stg_hubspot__ticket_tmp"]], "sources": [], "depends_on": {"macros": ["macro.hubspot_source.get_ticket_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.hubspot_source.stg_hubspot__ticket_tmp", "model.hubspot_source.stg_hubspot__ticket_tmp"]}, "description": "Each record represents a ticket in Hubspot.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ticket_id": {"name": "ticket_id", "description": "ID of the ticket.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_deleted": {"name": "is_deleted", "description": "Whether the record was deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "portal_id": {"name": "portal_id", "description": "The hub ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "closed_at": {"name": "closed_at", "description": "The date the ticket was closed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "The date the ticket was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "first_agent_reply_at": {"name": "first_agent_reply_at", "description": "the date for the first agent reply on the ticket.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ticket_pipeline_id": {"name": "ticket_pipeline_id", "description": "The ID of the ticket's pipeline.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ticket_pipeline_stage_id": {"name": "ticket_pipeline_stage_id", "description": "The ID of the ticket's pipeline stage.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ticket_priority": {"name": "ticket_priority", "description": "The priority of the ticket.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ticket_category": {"name": "ticket_category", "description": "The category of the ticket.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "owner_id": {"name": "owner_id", "description": "The ID of the deal's owner.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ticket_subject": {"name": "ticket_subject", "description": "Short summary of ticket.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ticket_content": {"name": "ticket_content", "description": "Text in body of the ticket.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_hubspot__ticket.yml", "build_path": "target/compiled/hubspot_source/models/stg_hubspot__ticket.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "enabled": true}, "compiled_sql": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__ticket_tmp`\n where not coalesce(is_deleted, false) \n\n), macro as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n is_deleted\n \n as \n \n is_deleted\n \n, \n \n \n property_closed_date\n \n as \n \n property_closed_date\n \n, \n \n \n property_createdate\n \n as \n \n property_createdate\n \n, \n \n \n property_first_agent_reply_date\n \n as \n \n property_first_agent_reply_date\n \n, \n \n \n property_hs_pipeline\n \n as \n \n property_hs_pipeline\n \n, \n \n \n property_hs_pipeline_stage\n \n as \n \n property_hs_pipeline_stage\n \n, \n \n \n property_hs_ticket_category\n \n as \n \n property_hs_ticket_category\n \n, \n \n \n property_hs_ticket_priority\n \n as \n \n property_hs_ticket_priority\n \n, \n \n \n property_hubspot_owner_id\n \n as \n \n property_hubspot_owner_id\n \n, \n \n \n property_subject\n \n as \n \n property_subject\n \n, \n \n \n property_content\n \n as \n \n property_content\n \n\n\n\n from base\n\n), fields as (\n\n select\n id as ticket_id,\n _fivetran_synced,\n is_deleted,\n property_closed_date as closed_at,\n property_createdate as created_at,\n property_first_agent_reply_date as first_agent_reply_at,\n property_hs_pipeline as ticket_pipeline_id,\n property_hs_pipeline_stage as ticket_pipeline_stage_id,\n property_hs_ticket_category as ticket_category,\n property_hs_ticket_priority as ticket_priority,\n property_hubspot_owner_id as owner_id,\n property_subject as ticket_subject,\n property_content as ticket_content\n\n --The below macro adds the fields defined within your hubspot__ticket_pass_through_columns variable into the staging model\n \n\n\n\n\n \n from macro\n \n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__ticket`"}, "model.hubspot_source.stg_hubspot__contact_property_history_tmp": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_marketing_enabled', 'hubspot_contact_property_enabled'])) }}\n\nselect *\nfrom {{ var('contact_property_history') }}", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "tmp", "stg_hubspot__contact_property_history_tmp"], "unique_id": "model.hubspot_source.stg_hubspot__contact_property_history_tmp", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "tmp/stg_hubspot__contact_property_history_tmp.sql", "original_file_path": "models/tmp/stg_hubspot__contact_property_history_tmp.sql", "name": "stg_hubspot__contact_property_history_tmp", "resource_type": "model", "alias": "stg_hubspot__contact_property_history_tmp", "checksum": {"name": "sha256", "checksum": "94e046ad79ff164894e3d2ee9fa6d094236277d5e4eb61c16ba48a454a9d1092"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["contact_property_history_data"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars"], "nodes": ["seed.hubspot_source_integration_tests.contact_property_history_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/tmp/stg_hubspot__contact_property_history_tmp.sql", "deferred": false, "unrendered_config": {"materialized": "view", "schema": null, "enabled": true}, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`hubspot_source_integration_tests`.`contact_property_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__contact_property_history_tmp`"}, "model.hubspot_source.stg_hubspot__email_event_dropped_tmp": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_marketing_enabled','hubspot_email_event_enabled','hubspot_email_event_dropped_enabled'])) }}\n\nselect *\nfrom {{ var('email_event_dropped') }}", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "tmp", "stg_hubspot__email_event_dropped_tmp"], "unique_id": "model.hubspot_source.stg_hubspot__email_event_dropped_tmp", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "tmp/stg_hubspot__email_event_dropped_tmp.sql", "original_file_path": "models/tmp/stg_hubspot__email_event_dropped_tmp.sql", "name": "stg_hubspot__email_event_dropped_tmp", "resource_type": "model", "alias": "stg_hubspot__email_event_dropped_tmp", "checksum": {"name": "sha256", "checksum": "6ea29cc5169d736f3d306ada0e68c21d47fdffaadf1d92fa7e63df762b71c67c"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["email_event_dropped_data"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.fivetran_utils.seed_data_helper"], "nodes": ["seed.hubspot_source_integration_tests.email_event_dropped_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/tmp/stg_hubspot__email_event_dropped_tmp.sql", "deferred": false, "unrendered_config": {"materialized": "view", "schema": null, "enabled": true}, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`hubspot_source_integration_tests`.`email_event_dropped_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__email_event_dropped_tmp`"}, "model.hubspot_source.stg_hubspot__email_event_sent_tmp": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_marketing_enabled','hubspot_email_event_enabled','hubspot_email_event_sent_enabled'])) }}\n\nselect *\nfrom {{ var('email_event_sent') }}", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "tmp", "stg_hubspot__email_event_sent_tmp"], "unique_id": "model.hubspot_source.stg_hubspot__email_event_sent_tmp", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "tmp/stg_hubspot__email_event_sent_tmp.sql", "original_file_path": "models/tmp/stg_hubspot__email_event_sent_tmp.sql", "name": "stg_hubspot__email_event_sent_tmp", "resource_type": "model", "alias": "stg_hubspot__email_event_sent_tmp", "checksum": {"name": "sha256", "checksum": "c755ee8e2ade057381ab3f7264b0aff04fb1e666940b91bbc35d9dab8f6c79df"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["email_event_sent_data"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.fivetran_utils.seed_data_helper"], "nodes": ["seed.hubspot_source_integration_tests.email_event_sent_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/tmp/stg_hubspot__email_event_sent_tmp.sql", "deferred": false, "unrendered_config": {"materialized": "view", "schema": null, "enabled": true}, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`hubspot_source_integration_tests`.`email_event_sent_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__email_event_sent_tmp`"}, "model.hubspot_source.stg_hubspot__deal_tmp": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_sales_enabled','hubspot_deal_enabled'])) }}\n\nselect *\nfrom {{ var('deal') }}", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "tmp", "stg_hubspot__deal_tmp"], "unique_id": "model.hubspot_source.stg_hubspot__deal_tmp", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "tmp/stg_hubspot__deal_tmp.sql", "original_file_path": "models/tmp/stg_hubspot__deal_tmp.sql", "name": "stg_hubspot__deal_tmp", "resource_type": "model", "alias": "stg_hubspot__deal_tmp", "checksum": {"name": "sha256", "checksum": "124a98f73b4fa274b33cb876e1627e3bd328f16b00633a8af0904bd05a1eaf7e"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["deal_data"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars"], "nodes": ["seed.hubspot_source_integration_tests.deal_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/tmp/stg_hubspot__deal_tmp.sql", "deferred": false, "unrendered_config": {"materialized": "view", "schema": null, "enabled": true}, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`hubspot_source_integration_tests`.`deal_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__deal_tmp`"}, "model.hubspot_source.stg_hubspot__ticket_company_tmp": {"raw_sql": "{{ config(enabled=var('hubspot_service_enabled', True)) }}\n\nselect *\nfrom {{ var('ticket_company') }}", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "tmp", "stg_hubspot__ticket_company_tmp"], "unique_id": "model.hubspot_source.stg_hubspot__ticket_company_tmp", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "tmp/stg_hubspot__ticket_company_tmp.sql", "original_file_path": "models/tmp/stg_hubspot__ticket_company_tmp.sql", "name": "stg_hubspot__ticket_company_tmp", "resource_type": "model", "alias": "stg_hubspot__ticket_company_tmp", "checksum": {"name": "sha256", "checksum": "ab866a39ca7843eb128425f98bca66a6e8242dd2f5fe84af179d68fcab7d5ac4"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["ticket_company_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.hubspot_source_integration_tests.ticket_company_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/tmp/stg_hubspot__ticket_company_tmp.sql", "deferred": false, "unrendered_config": {"materialized": "view", "schema": null, "enabled": true}, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`hubspot_source_integration_tests`.`ticket_company_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__ticket_company_tmp`"}, "model.hubspot_source.stg_hubspot__contact_list_member_tmp": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_marketing_enabled', 'hubspot_contact_list_member_enabled'])) }}\n\nselect *\nfrom {{ var('contact_list_member') }}", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "tmp", "stg_hubspot__contact_list_member_tmp"], "unique_id": "model.hubspot_source.stg_hubspot__contact_list_member_tmp", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "tmp/stg_hubspot__contact_list_member_tmp.sql", "original_file_path": "models/tmp/stg_hubspot__contact_list_member_tmp.sql", "name": "stg_hubspot__contact_list_member_tmp", "resource_type": "model", "alias": "stg_hubspot__contact_list_member_tmp", "checksum": {"name": "sha256", "checksum": "c5f4b38033f7e73b8c560ae9b10c959ab53636db77febaea2878864bfcbd47e8"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["contact_list_member_data"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars"], "nodes": ["seed.hubspot_source_integration_tests.contact_list_member_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/tmp/stg_hubspot__contact_list_member_tmp.sql", "deferred": false, "unrendered_config": {"materialized": "view", "schema": null, "enabled": true}, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`hubspot_source_integration_tests`.`contact_list_member_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__contact_list_member_tmp`"}, "model.hubspot_source.stg_hubspot__owner_tmp": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_sales_enabled','hubspot_owner_enabled'])) }}\n\nselect *\nfrom {{ var('owner') }}", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "tmp", "stg_hubspot__owner_tmp"], "unique_id": "model.hubspot_source.stg_hubspot__owner_tmp", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "tmp/stg_hubspot__owner_tmp.sql", "original_file_path": "models/tmp/stg_hubspot__owner_tmp.sql", "name": "stg_hubspot__owner_tmp", "resource_type": "model", "alias": "stg_hubspot__owner_tmp", "checksum": {"name": "sha256", "checksum": "8b06d5fa0a2f2102fcc69868ed48699af552e012171048d5c9afccc2e3074859"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["owner_data"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars"], "nodes": ["seed.hubspot_source_integration_tests.owner_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/tmp/stg_hubspot__owner_tmp.sql", "deferred": false, "unrendered_config": {"materialized": "view", "schema": null, "enabled": true}, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`hubspot_source_integration_tests`.`owner_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__owner_tmp`"}, "model.hubspot_source.stg_hubspot__deal_stage_tmp": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_sales_enabled','hubspot_deal_enabled'])) }}\n\nselect * \nfrom {{ var('deal_stage') }}", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "tmp", "stg_hubspot__deal_stage_tmp"], "unique_id": "model.hubspot_source.stg_hubspot__deal_stage_tmp", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "tmp/stg_hubspot__deal_stage_tmp.sql", "original_file_path": "models/tmp/stg_hubspot__deal_stage_tmp.sql", "name": "stg_hubspot__deal_stage_tmp", "resource_type": "model", "alias": "stg_hubspot__deal_stage_tmp", "checksum": {"name": "sha256", "checksum": "ec97e0066c2090f43c12562580a53d3de824e0c1408f86af9f1279119eec35e9"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["deal_stage_data"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars"], "nodes": ["seed.hubspot_source_integration_tests.deal_stage_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/tmp/stg_hubspot__deal_stage_tmp.sql", "deferred": false, "unrendered_config": {"materialized": "view", "schema": null, "enabled": true}, "compiled_sql": "\n\nselect * \nfrom `dbt-package-testing`.`hubspot_source_integration_tests`.`deal_stage_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__deal_stage_tmp`"}, "model.hubspot_source.stg_hubspot__deal_pipeline_tmp": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_sales_enabled','hubspot_deal_enabled'])) }}\n\nselect *\nfrom {{ var('deal_pipeline') }}", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "tmp", "stg_hubspot__deal_pipeline_tmp"], "unique_id": "model.hubspot_source.stg_hubspot__deal_pipeline_tmp", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "tmp/stg_hubspot__deal_pipeline_tmp.sql", "original_file_path": "models/tmp/stg_hubspot__deal_pipeline_tmp.sql", "name": "stg_hubspot__deal_pipeline_tmp", "resource_type": "model", "alias": "stg_hubspot__deal_pipeline_tmp", "checksum": {"name": "sha256", "checksum": "5ec1c0f28d2a898b8e0d02a04aba6b9721c90b43e037d327e43c6c327cc0fb8f"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["deal_pipeline_data"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars"], "nodes": ["seed.hubspot_source_integration_tests.deal_pipeline_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/tmp/stg_hubspot__deal_pipeline_tmp.sql", "deferred": false, "unrendered_config": {"materialized": "view", "schema": null, "enabled": true}, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`hubspot_source_integration_tests`.`deal_pipeline_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__deal_pipeline_tmp`"}, "model.hubspot_source.stg_hubspot__ticket_tmp": {"raw_sql": "{{ config(enabled=var('hubspot_service_enabled', True)) }}\n\nselect *\nfrom {{ var('ticket') }}", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "tmp", "stg_hubspot__ticket_tmp"], "unique_id": "model.hubspot_source.stg_hubspot__ticket_tmp", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "tmp/stg_hubspot__ticket_tmp.sql", "original_file_path": "models/tmp/stg_hubspot__ticket_tmp.sql", "name": "stg_hubspot__ticket_tmp", "resource_type": "model", "alias": "stg_hubspot__ticket_tmp", "checksum": {"name": "sha256", "checksum": "dbdffdb858fa36e96eebbd51cf045349e7681163d8b5e8c54cc120b72a77a56b"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["ticket_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.hubspot_source_integration_tests.ticket_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/tmp/stg_hubspot__ticket_tmp.sql", "deferred": false, "unrendered_config": {"materialized": "view", "schema": null, "enabled": true}, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`hubspot_source_integration_tests`.`ticket_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__ticket_tmp`"}, "model.hubspot_source.stg_hubspot__ticket_property_history_tmp": {"raw_sql": "{{ config(enabled=var('hubspot_service_enabled', True)) }}\n\nselect *\nfrom {{ var('ticket_property_history') }}", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "tmp", "stg_hubspot__ticket_property_history_tmp"], "unique_id": "model.hubspot_source.stg_hubspot__ticket_property_history_tmp", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "tmp/stg_hubspot__ticket_property_history_tmp.sql", "original_file_path": "models/tmp/stg_hubspot__ticket_property_history_tmp.sql", "name": "stg_hubspot__ticket_property_history_tmp", "resource_type": "model", "alias": "stg_hubspot__ticket_property_history_tmp", "checksum": {"name": "sha256", "checksum": "853d46ebcf3774eb8c899e344655ece1ee9aec1495b5487e45a78ae921d95af8"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["ticket_property_history_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.hubspot_source_integration_tests.ticket_property_history_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/tmp/stg_hubspot__ticket_property_history_tmp.sql", "deferred": false, "unrendered_config": {"materialized": "view", "schema": null, "enabled": true}, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`hubspot_source_integration_tests`.`ticket_property_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__ticket_property_history_tmp`"}, "model.hubspot_source.stg_hubspot__ticket_pipeline_tmp": {"raw_sql": "{{ config(enabled=var('hubspot_service_enabled', False)) }}\n\nselect * \nfrom {{ var('ticket_pipeline') }}", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "tmp", "stg_hubspot__ticket_pipeline_tmp"], "unique_id": "model.hubspot_source.stg_hubspot__ticket_pipeline_tmp", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "tmp/stg_hubspot__ticket_pipeline_tmp.sql", "original_file_path": "models/tmp/stg_hubspot__ticket_pipeline_tmp.sql", "name": "stg_hubspot__ticket_pipeline_tmp", "resource_type": "model", "alias": "stg_hubspot__ticket_pipeline_tmp", "checksum": {"name": "sha256", "checksum": "6d288825ed33116c29e43605b52be8b6d49c182536ca3830dcc034653b74e359"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["ticket_pipeline_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.hubspot_source_integration_tests.ticket_pipeline_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/tmp/stg_hubspot__ticket_pipeline_tmp.sql", "deferred": false, "unrendered_config": {"materialized": "view", "schema": null, "enabled": true}, "compiled_sql": "\n\nselect * \nfrom `dbt-package-testing`.`hubspot_source_integration_tests`.`ticket_pipeline_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__ticket_pipeline_tmp`"}, "model.hubspot_source.stg_hubspot__engagement_company_tmp": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_sales_enabled','hubspot_engagement_enabled','hubspot_engagement_company_enabled'])) }}\n\nselect *\nfrom {{ var('engagement_company') }}", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "tmp", "stg_hubspot__engagement_company_tmp"], "unique_id": "model.hubspot_source.stg_hubspot__engagement_company_tmp", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "tmp/stg_hubspot__engagement_company_tmp.sql", "original_file_path": "models/tmp/stg_hubspot__engagement_company_tmp.sql", "name": "stg_hubspot__engagement_company_tmp", "resource_type": "model", "alias": "stg_hubspot__engagement_company_tmp", "checksum": {"name": "sha256", "checksum": "d3e3765d608bc56f3bc07549accc1026e5d5ca93d650eb66d5522d4ad33bf3bc"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["engagement_company_data"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars"], "nodes": ["seed.hubspot_source_integration_tests.engagement_company_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/tmp/stg_hubspot__engagement_company_tmp.sql", "deferred": false, "unrendered_config": {"materialized": "view", "schema": null, "enabled": true}, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`hubspot_source_integration_tests`.`engagement_company_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__engagement_company_tmp`"}, "model.hubspot_source.stg_hubspot__contact_tmp": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_marketing_enabled', 'hubspot_contact_enabled'])) }}\n\nselect *\nfrom {{ var('contact') }}", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "tmp", "stg_hubspot__contact_tmp"], "unique_id": "model.hubspot_source.stg_hubspot__contact_tmp", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "tmp/stg_hubspot__contact_tmp.sql", "original_file_path": "models/tmp/stg_hubspot__contact_tmp.sql", "name": "stg_hubspot__contact_tmp", "resource_type": "model", "alias": "stg_hubspot__contact_tmp", "checksum": {"name": "sha256", "checksum": "17272cbcc9301857a35b6df8ea8a8426315db16044249a83a6dee8a13bda051d"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["contact_data"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars"], "nodes": ["seed.hubspot_source_integration_tests.contact_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/tmp/stg_hubspot__contact_tmp.sql", "deferred": false, "unrendered_config": {"materialized": "view", "schema": null, "enabled": true}, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`hubspot_source_integration_tests`.`contact_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__contact_tmp`"}, "model.hubspot_source.stg_hubspot__email_event_status_change_tmp": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_marketing_enabled','hubspot_email_event_enabled','hubspot_email_event_status_change_enabled'])) }}\n\nselect *\nfrom {{ var('email_event_status_change') }}", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "tmp", "stg_hubspot__email_event_status_change_tmp"], "unique_id": "model.hubspot_source.stg_hubspot__email_event_status_change_tmp", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "tmp/stg_hubspot__email_event_status_change_tmp.sql", "original_file_path": "models/tmp/stg_hubspot__email_event_status_change_tmp.sql", "name": "stg_hubspot__email_event_status_change_tmp", "resource_type": "model", "alias": "stg_hubspot__email_event_status_change_tmp", "checksum": {"name": "sha256", "checksum": "4834d0413d972cb9b335efa782358855be7be2c4b7f70f2473ae5b13dda09c08"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["email_event_status_change_data"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars"], "nodes": ["seed.hubspot_source_integration_tests.email_event_status_change_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/tmp/stg_hubspot__email_event_status_change_tmp.sql", "deferred": false, "unrendered_config": {"materialized": "view", "schema": null, "enabled": true}, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`hubspot_source_integration_tests`.`email_event_status_change_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__email_event_status_change_tmp`"}, "model.hubspot_source.stg_hubspot__engagement_note_tmp": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_sales_enabled','hubspot_engagement_enabled','hubspot_engagement_note_enabled'])) }}\n\nselect *\nfrom {{ var('engagement_note') }}", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "tmp", "stg_hubspot__engagement_note_tmp"], "unique_id": "model.hubspot_source.stg_hubspot__engagement_note_tmp", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "tmp/stg_hubspot__engagement_note_tmp.sql", "original_file_path": "models/tmp/stg_hubspot__engagement_note_tmp.sql", "name": "stg_hubspot__engagement_note_tmp", "resource_type": "model", "alias": "stg_hubspot__engagement_note_tmp", "checksum": {"name": "sha256", "checksum": "bd3aa3ac5c07c206010b172fb2049c3724cdea3cc838cd1b536071f88543b79d"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["engagement_note_data"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars"], "nodes": ["seed.hubspot_source_integration_tests.engagement_note_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/tmp/stg_hubspot__engagement_note_tmp.sql", "deferred": false, "unrendered_config": {"materialized": "view", "schema": null, "enabled": true}, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`hubspot_source_integration_tests`.`engagement_note_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__engagement_note_tmp`"}, "model.hubspot_source.stg_hubspot__ticket_contact_tmp": {"raw_sql": "{{ config(enabled=var('hubspot_service_enabled', True)) }}\n\nselect *\nfrom {{ var('ticket_contact') }}", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "tmp", "stg_hubspot__ticket_contact_tmp"], "unique_id": "model.hubspot_source.stg_hubspot__ticket_contact_tmp", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "tmp/stg_hubspot__ticket_contact_tmp.sql", "original_file_path": "models/tmp/stg_hubspot__ticket_contact_tmp.sql", "name": "stg_hubspot__ticket_contact_tmp", "resource_type": "model", "alias": "stg_hubspot__ticket_contact_tmp", "checksum": {"name": "sha256", "checksum": "f9f143f93f0b5a0a431686e75ea785ee7ca7454287c9722ac1f7107e35539595"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["ticket_contact_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.hubspot_source_integration_tests.ticket_contact_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/tmp/stg_hubspot__ticket_contact_tmp.sql", "deferred": false, "unrendered_config": {"materialized": "view", "schema": null, "enabled": true}, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`hubspot_source_integration_tests`.`ticket_contact_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__ticket_contact_tmp`"}, "model.hubspot_source.stg_hubspot__deal_company_tmp": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_sales_enabled','hubspot_deal_enabled','hubspot_deal_company_enabled'])) }}\n\nselect *\nfrom {{ var('deal_company') }}", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "tmp", "stg_hubspot__deal_company_tmp"], "unique_id": "model.hubspot_source.stg_hubspot__deal_company_tmp", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "tmp/stg_hubspot__deal_company_tmp.sql", "original_file_path": "models/tmp/stg_hubspot__deal_company_tmp.sql", "name": "stg_hubspot__deal_company_tmp", "resource_type": "model", "alias": "stg_hubspot__deal_company_tmp", "checksum": {"name": "sha256", "checksum": "dd18ea003d261853bceba6b07f5f614d9719b423a1d54fbc0305590ca499d9c5"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["deal_company_data"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars"], "nodes": ["seed.hubspot_source_integration_tests.deal_company_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/tmp/stg_hubspot__deal_company_tmp.sql", "deferred": false, "unrendered_config": {"materialized": "view", "schema": null, "enabled": true}, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`hubspot_source_integration_tests`.`deal_company_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__deal_company_tmp`"}, "model.hubspot_source.stg_hubspot__engagement_deal_tmp": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_sales_enabled','hubspot_engagement_enabled','hubspot_engagement_deal_enabled'])) }}\n\nselect *\nfrom {{ var('engagement_deal') }}", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "tmp", "stg_hubspot__engagement_deal_tmp"], "unique_id": "model.hubspot_source.stg_hubspot__engagement_deal_tmp", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "tmp/stg_hubspot__engagement_deal_tmp.sql", "original_file_path": "models/tmp/stg_hubspot__engagement_deal_tmp.sql", "name": "stg_hubspot__engagement_deal_tmp", "resource_type": "model", "alias": "stg_hubspot__engagement_deal_tmp", "checksum": {"name": "sha256", "checksum": "700d960779a56df2619e3c72d555fd04f536d5cec3459618b2ca3e3ac5cfe25b"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["engagement_deal_data"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars"], "nodes": ["seed.hubspot_source_integration_tests.engagement_deal_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/tmp/stg_hubspot__engagement_deal_tmp.sql", "deferred": false, "unrendered_config": {"materialized": "view", "schema": null, "enabled": true}, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`hubspot_source_integration_tests`.`engagement_deal_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__engagement_deal_tmp`"}, "model.hubspot_source.stg_hubspot__email_event_print_tmp": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_marketing_enabled','hubspot_email_event_enabled','hubspot_email_event_print_enabled'])) }}\n\nselect *\nfrom {{ var('email_event_print') }}", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "tmp", "stg_hubspot__email_event_print_tmp"], "unique_id": "model.hubspot_source.stg_hubspot__email_event_print_tmp", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "tmp/stg_hubspot__email_event_print_tmp.sql", "original_file_path": "models/tmp/stg_hubspot__email_event_print_tmp.sql", "name": "stg_hubspot__email_event_print_tmp", "resource_type": "model", "alias": "stg_hubspot__email_event_print_tmp", "checksum": {"name": "sha256", "checksum": "e1492dcb7f40e0a445b55f116658d58a9380ec0cf1dcbc0237b77e0d7b37e34a"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["email_event_print_data"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars"], "nodes": ["seed.hubspot_source_integration_tests.email_event_print_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/tmp/stg_hubspot__email_event_print_tmp.sql", "deferred": false, "unrendered_config": {"materialized": "view", "schema": null, "enabled": true}, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`hubspot_source_integration_tests`.`email_event_print_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__email_event_print_tmp`"}, "model.hubspot_source.stg_hubspot__company_property_history_tmp": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_sales_enabled','hubspot_company_enabled'])) }}\n\nselect *\nfrom {{ var('company_property_history') }}", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "tmp", "stg_hubspot__company_property_history_tmp"], "unique_id": "model.hubspot_source.stg_hubspot__company_property_history_tmp", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "tmp/stg_hubspot__company_property_history_tmp.sql", "original_file_path": "models/tmp/stg_hubspot__company_property_history_tmp.sql", "name": "stg_hubspot__company_property_history_tmp", "resource_type": "model", "alias": "stg_hubspot__company_property_history_tmp", "checksum": {"name": "sha256", "checksum": "c63579bdf13286d3fef53cd3fc735d3e299f41623a8d2bb19c63bb5d1195df93"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["company_property_history_data"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars"], "nodes": ["seed.hubspot_source_integration_tests.company_property_history_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/tmp/stg_hubspot__company_property_history_tmp.sql", "deferred": false, "unrendered_config": {"materialized": "view", "schema": null, "enabled": true}, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`hubspot_source_integration_tests`.`company_property_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__company_property_history_tmp`"}, "model.hubspot_source.stg_hubspot__email_event_tmp": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_marketing_enabled','hubspot_email_event_enabled'])) }}\n\nselect *\nfrom {{ var('email_event') }}", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "tmp", "stg_hubspot__email_event_tmp"], "unique_id": "model.hubspot_source.stg_hubspot__email_event_tmp", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "tmp/stg_hubspot__email_event_tmp.sql", "original_file_path": "models/tmp/stg_hubspot__email_event_tmp.sql", "name": "stg_hubspot__email_event_tmp", "resource_type": "model", "alias": "stg_hubspot__email_event_tmp", "checksum": {"name": "sha256", "checksum": "bd2e785786c99cc9fca040403c1a44c02605d01c2fb1f8828631b22218761fcb"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["email_event_data"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars"], "nodes": ["seed.hubspot_source_integration_tests.email_event_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/tmp/stg_hubspot__email_event_tmp.sql", "deferred": false, "unrendered_config": {"materialized": "view", "schema": null, "enabled": true}, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`hubspot_source_integration_tests`.`email_event_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__email_event_tmp`"}, "model.hubspot_source.stg_hubspot__company_tmp": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_sales_enabled','hubspot_company_enabled'])) }}\n\nselect *\nfrom {{ var('company') }}", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "tmp", "stg_hubspot__company_tmp"], "unique_id": "model.hubspot_source.stg_hubspot__company_tmp", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "tmp/stg_hubspot__company_tmp.sql", "original_file_path": "models/tmp/stg_hubspot__company_tmp.sql", "name": "stg_hubspot__company_tmp", "resource_type": "model", "alias": "stg_hubspot__company_tmp", "checksum": {"name": "sha256", "checksum": "71e14b733d49851913c34d2a6a973e8e696bb05d7779e51cffdae2718fc65059"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["company_data"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars"], "nodes": ["seed.hubspot_source_integration_tests.company_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/tmp/stg_hubspot__company_tmp.sql", "deferred": false, "unrendered_config": {"materialized": "view", "schema": null, "enabled": true}, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`hubspot_source_integration_tests`.`company_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__company_tmp`"}, "model.hubspot_source.stg_hubspot__email_event_click_tmp": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_marketing_enabled','hubspot_email_event_enabled','hubspot_email_event_click_enabled'])) }}\n\nselect *\nfrom {{ var('email_event_click') }}", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "tmp", "stg_hubspot__email_event_click_tmp"], "unique_id": "model.hubspot_source.stg_hubspot__email_event_click_tmp", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "tmp/stg_hubspot__email_event_click_tmp.sql", "original_file_path": "models/tmp/stg_hubspot__email_event_click_tmp.sql", "name": "stg_hubspot__email_event_click_tmp", "resource_type": "model", "alias": "stg_hubspot__email_event_click_tmp", "checksum": {"name": "sha256", "checksum": "6b724be03dd8dbaec06b9515c1143a84c95d5b3a4c7a674cb6544cefb449bf74"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["email_event_click_data"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars"], "nodes": ["seed.hubspot_source_integration_tests.email_event_click_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/tmp/stg_hubspot__email_event_click_tmp.sql", "deferred": false, "unrendered_config": {"materialized": "view", "schema": null, "enabled": true}, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`hubspot_source_integration_tests`.`email_event_click_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__email_event_click_tmp`"}, "model.hubspot_source.stg_hubspot__engagement_contact_tmp": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_sales_enabled','hubspot_engagement_enabled','hubspot_engagement_contact_enabled'])) }}\n\nselect *\nfrom {{ var('engagement_contact') }}", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "tmp", "stg_hubspot__engagement_contact_tmp"], "unique_id": "model.hubspot_source.stg_hubspot__engagement_contact_tmp", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "tmp/stg_hubspot__engagement_contact_tmp.sql", "original_file_path": "models/tmp/stg_hubspot__engagement_contact_tmp.sql", "name": "stg_hubspot__engagement_contact_tmp", "resource_type": "model", "alias": "stg_hubspot__engagement_contact_tmp", "checksum": {"name": "sha256", "checksum": "68896f07089718c2878b9e71accc1f75d6d35516b996a7be2c0541d6b13c4508"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["engagement_contact_data"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars"], "nodes": ["seed.hubspot_source_integration_tests.engagement_contact_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/tmp/stg_hubspot__engagement_contact_tmp.sql", "deferred": false, "unrendered_config": {"materialized": "view", "schema": null, "enabled": true}, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`hubspot_source_integration_tests`.`engagement_contact_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__engagement_contact_tmp`"}, "model.hubspot_source.stg_hubspot__contact_list_tmp": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_marketing_enabled', 'hubspot_contact_list_enabled'])) }}\n\nselect *\nfrom {{ var('contact_list') }}", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "tmp", "stg_hubspot__contact_list_tmp"], "unique_id": "model.hubspot_source.stg_hubspot__contact_list_tmp", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "tmp/stg_hubspot__contact_list_tmp.sql", "original_file_path": "models/tmp/stg_hubspot__contact_list_tmp.sql", "name": "stg_hubspot__contact_list_tmp", "resource_type": "model", "alias": "stg_hubspot__contact_list_tmp", "checksum": {"name": "sha256", "checksum": "fd9af8e7a35d01dc575bf5c19d751d25794d7acb7d5bb1463e5caeab72d857a2"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["contact_list_data"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.fivetran_utils.seed_data_helper"], "nodes": ["seed.hubspot_source_integration_tests.contact_list_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/tmp/stg_hubspot__contact_list_tmp.sql", "deferred": false, "unrendered_config": {"materialized": "view", "schema": null, "enabled": true}, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`hubspot_source_integration_tests`.`contact_list_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__contact_list_tmp`"}, "model.hubspot_source.stg_hubspot__engagement_meeting_tmp": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_sales_enabled','hubspot_engagement_enabled','hubspot_engagement_email_enabled'])) }}\n\nselect *\nfrom {{ var('engagement_meeting') }}", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "tmp", "stg_hubspot__engagement_meeting_tmp"], "unique_id": "model.hubspot_source.stg_hubspot__engagement_meeting_tmp", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "tmp/stg_hubspot__engagement_meeting_tmp.sql", "original_file_path": "models/tmp/stg_hubspot__engagement_meeting_tmp.sql", "name": "stg_hubspot__engagement_meeting_tmp", "resource_type": "model", "alias": "stg_hubspot__engagement_meeting_tmp", "checksum": {"name": "sha256", "checksum": "a58491a8d1b6fd5215742826e225c96c32641c971ca4471fc186d15baebe0069"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["engagement_meeting_data"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars"], "nodes": ["seed.hubspot_source_integration_tests.engagement_meeting_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/tmp/stg_hubspot__engagement_meeting_tmp.sql", "deferred": false, "unrendered_config": {"materialized": "view", "schema": null, "enabled": true}, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`hubspot_source_integration_tests`.`engagement_meeting_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__engagement_meeting_tmp`"}, "model.hubspot_source.stg_hubspot__engagement_tmp": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_sales_enabled','hubspot_engagement_enabled'])) }}\n\nselect *\nfrom {{ var('engagement') }}", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "tmp", "stg_hubspot__engagement_tmp"], "unique_id": "model.hubspot_source.stg_hubspot__engagement_tmp", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "tmp/stg_hubspot__engagement_tmp.sql", "original_file_path": "models/tmp/stg_hubspot__engagement_tmp.sql", "name": "stg_hubspot__engagement_tmp", "resource_type": "model", "alias": "stg_hubspot__engagement_tmp", "checksum": {"name": "sha256", "checksum": "5ac51429780d9f7160a9e98ac3c4735e92321b47835e9793189c928bf9299da7"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["engagement_data"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars"], "nodes": ["seed.hubspot_source_integration_tests.engagement_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/tmp/stg_hubspot__engagement_tmp.sql", "deferred": false, "unrendered_config": {"materialized": "view", "schema": null, "enabled": true}, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`hubspot_source_integration_tests`.`engagement_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__engagement_tmp`"}, "model.hubspot_source.stg_hubspot__email_event_delivered_tmp": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_marketing_enabled','hubspot_email_event_enabled','hubspot_email_event_delivered_enabled'])) }}\n\nselect *\nfrom {{ var('email_event_delivered') }}", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "tmp", "stg_hubspot__email_event_delivered_tmp"], "unique_id": "model.hubspot_source.stg_hubspot__email_event_delivered_tmp", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "tmp/stg_hubspot__email_event_delivered_tmp.sql", "original_file_path": "models/tmp/stg_hubspot__email_event_delivered_tmp.sql", "name": "stg_hubspot__email_event_delivered_tmp", "resource_type": "model", "alias": "stg_hubspot__email_event_delivered_tmp", "checksum": {"name": "sha256", "checksum": "f0d72c7ce2193ae96b6a3b5c317755bc9e53a598f3a1668496d4ded7b42dce2b"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["email_event_delivered_data"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars"], "nodes": ["seed.hubspot_source_integration_tests.email_event_delivered_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/tmp/stg_hubspot__email_event_delivered_tmp.sql", "deferred": false, "unrendered_config": {"materialized": "view", "schema": null, "enabled": true}, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`hubspot_source_integration_tests`.`email_event_delivered_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__email_event_delivered_tmp`"}, "model.hubspot_source.stg_hubspot__engagement_email_tmp": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_sales_enabled','hubspot_engagement_enabled','hubspot_engagement_email_enabled'])) }}\n\nselect *\nfrom {{ var('engagement_email') }}", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "tmp", "stg_hubspot__engagement_email_tmp"], "unique_id": "model.hubspot_source.stg_hubspot__engagement_email_tmp", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "tmp/stg_hubspot__engagement_email_tmp.sql", "original_file_path": "models/tmp/stg_hubspot__engagement_email_tmp.sql", "name": "stg_hubspot__engagement_email_tmp", "resource_type": "model", "alias": "stg_hubspot__engagement_email_tmp", "checksum": {"name": "sha256", "checksum": "6b83154fa1de07667ec47ca47bb8be3450fb5ad4bb983f86656630df3fdbb8a9"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["engagement_email_data"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars"], "nodes": ["seed.hubspot_source_integration_tests.engagement_email_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/tmp/stg_hubspot__engagement_email_tmp.sql", "deferred": false, "unrendered_config": {"materialized": "view", "schema": null, "enabled": true}, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`hubspot_source_integration_tests`.`engagement_email_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__engagement_email_tmp`"}, "model.hubspot_source.stg_hubspot__email_event_forward_tmp": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_marketing_enabled','hubspot_email_event_enabled','hubspot_email_event_forward_enabled'])) }}\n\nselect *\nfrom {{ var('email_event_forward') }}", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "tmp", "stg_hubspot__email_event_forward_tmp"], "unique_id": "model.hubspot_source.stg_hubspot__email_event_forward_tmp", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "tmp/stg_hubspot__email_event_forward_tmp.sql", "original_file_path": "models/tmp/stg_hubspot__email_event_forward_tmp.sql", "name": "stg_hubspot__email_event_forward_tmp", "resource_type": "model", "alias": "stg_hubspot__email_event_forward_tmp", "checksum": {"name": "sha256", "checksum": "e84459ef11badbd945ca410cbdeccb77f66ce169f85e3c9ee7384798669ea5c6"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["email_event_forward_data"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars"], "nodes": ["seed.hubspot_source_integration_tests.email_event_forward_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/tmp/stg_hubspot__email_event_forward_tmp.sql", "deferred": false, "unrendered_config": {"materialized": "view", "schema": null, "enabled": true}, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`hubspot_source_integration_tests`.`email_event_forward_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__email_event_forward_tmp`"}, "model.hubspot_source.stg_hubspot__email_event_spam_report_tmp": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_marketing_enabled','hubspot_email_event_enabled','hubspot_email_event_spam_report_enabled'])) }}\n\nselect *\nfrom {{ var('email_event_spam_report') }}", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "tmp", "stg_hubspot__email_event_spam_report_tmp"], "unique_id": "model.hubspot_source.stg_hubspot__email_event_spam_report_tmp", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "tmp/stg_hubspot__email_event_spam_report_tmp.sql", "original_file_path": "models/tmp/stg_hubspot__email_event_spam_report_tmp.sql", "name": "stg_hubspot__email_event_spam_report_tmp", "resource_type": "model", "alias": "stg_hubspot__email_event_spam_report_tmp", "checksum": {"name": "sha256", "checksum": "86e3d74a05d22e93b2031516eb80c73cc43c061c804f52d16d35a11bfae1a468"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["email_event_spam_report_data"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars"], "nodes": ["seed.hubspot_source_integration_tests.email_event_spam_report_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/tmp/stg_hubspot__email_event_spam_report_tmp.sql", "deferred": false, "unrendered_config": {"materialized": "view", "schema": null, "enabled": true}, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`hubspot_source_integration_tests`.`email_event_spam_report_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__email_event_spam_report_tmp`"}, "model.hubspot_source.stg_hubspot__ticket_engagement_tmp": {"raw_sql": "{{ config(enabled=var('hubspot_service_enabled', True)) }}\n\nselect *\nfrom {{ var('ticket_engagement') }}", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "tmp", "stg_hubspot__ticket_engagement_tmp"], "unique_id": "model.hubspot_source.stg_hubspot__ticket_engagement_tmp", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "tmp/stg_hubspot__ticket_engagement_tmp.sql", "original_file_path": "models/tmp/stg_hubspot__ticket_engagement_tmp.sql", "name": "stg_hubspot__ticket_engagement_tmp", "resource_type": "model", "alias": "stg_hubspot__ticket_engagement_tmp", "checksum": {"name": "sha256", "checksum": "ca941bf35a2fe42b308d809bc5742bfa83198620fb031bcc8f20f09163efe38e"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["ticket_engagement_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.hubspot_source_integration_tests.ticket_engagement_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/tmp/stg_hubspot__ticket_engagement_tmp.sql", "deferred": false, "unrendered_config": {"materialized": "view", "schema": null, "enabled": true}, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`hubspot_source_integration_tests`.`ticket_engagement_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__ticket_engagement_tmp`"}, "model.hubspot_source.stg_hubspot__email_event_bounce_tmp": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_marketing_enabled','hubspot_email_event_enabled','hubspot_email_event_bounce_enabled'])) }}\n\nselect *\nfrom {{ var('email_event_bounce') }}", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "tmp", "stg_hubspot__email_event_bounce_tmp"], "unique_id": "model.hubspot_source.stg_hubspot__email_event_bounce_tmp", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "tmp/stg_hubspot__email_event_bounce_tmp.sql", "original_file_path": "models/tmp/stg_hubspot__email_event_bounce_tmp.sql", "name": "stg_hubspot__email_event_bounce_tmp", "resource_type": "model", "alias": "stg_hubspot__email_event_bounce_tmp", "checksum": {"name": "sha256", "checksum": "5cf2f855ec70b4296cb2a2c12a040e5eaef869d317876a4979e9f1671ebb2ca3"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["email_event_bounce_data"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars"], "nodes": ["seed.hubspot_source_integration_tests.email_event_bounce_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/tmp/stg_hubspot__email_event_bounce_tmp.sql", "deferred": false, "unrendered_config": {"materialized": "view", "schema": null, "enabled": true}, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`hubspot_source_integration_tests`.`email_event_bounce_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__email_event_bounce_tmp`"}, "model.hubspot_source.stg_hubspot__engagement_call_tmp": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_sales_enabled','hubspot_engagement_enabled','hubspot_engagement_call_enabled'])) }}\n\nselect *\nfrom {{ var('engagement_call') }}", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "tmp", "stg_hubspot__engagement_call_tmp"], "unique_id": "model.hubspot_source.stg_hubspot__engagement_call_tmp", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "tmp/stg_hubspot__engagement_call_tmp.sql", "original_file_path": "models/tmp/stg_hubspot__engagement_call_tmp.sql", "name": "stg_hubspot__engagement_call_tmp", "resource_type": "model", "alias": "stg_hubspot__engagement_call_tmp", "checksum": {"name": "sha256", "checksum": "69b0b24222e906148931a0ccf9ff6b546b8dba794fbab4e375e4b787d1e93110"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["engagement_call_data"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars"], "nodes": ["seed.hubspot_source_integration_tests.engagement_call_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/tmp/stg_hubspot__engagement_call_tmp.sql", "deferred": false, "unrendered_config": {"materialized": "view", "schema": null, "enabled": true}, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`hubspot_source_integration_tests`.`engagement_call_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__engagement_call_tmp`"}, "model.hubspot_source.stg_hubspot__ticket_pipeline_stage_tmp": {"raw_sql": "{{ config(enabled=var('hubspot_service_enabled', False)) }}\n\nselect * \nfrom {{ var('ticket_pipeline_stage') }}", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "tmp", "stg_hubspot__ticket_pipeline_stage_tmp"], "unique_id": "model.hubspot_source.stg_hubspot__ticket_pipeline_stage_tmp", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "tmp/stg_hubspot__ticket_pipeline_stage_tmp.sql", "original_file_path": "models/tmp/stg_hubspot__ticket_pipeline_stage_tmp.sql", "name": "stg_hubspot__ticket_pipeline_stage_tmp", "resource_type": "model", "alias": "stg_hubspot__ticket_pipeline_stage_tmp", "checksum": {"name": "sha256", "checksum": "cb25ff2d6490eaf08d7c136559ce3cc8eaf04bc27005c99c2b3b0997ad6b67cd"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["ticket_pipeline_stage_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.hubspot_source_integration_tests.ticket_pipeline_stage_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/tmp/stg_hubspot__ticket_pipeline_stage_tmp.sql", "deferred": false, "unrendered_config": {"materialized": "view", "schema": null, "enabled": true}, "compiled_sql": "\n\nselect * \nfrom `dbt-package-testing`.`hubspot_source_integration_tests`.`ticket_pipeline_stage_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__ticket_pipeline_stage_tmp`"}, "model.hubspot_source.stg_hubspot__deal_pipeline_stage_tmp": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_sales_enabled','hubspot_deal_enabled'])) }}\n\nselect *\nfrom {{ var('deal_pipeline_stage') }}", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "tmp", "stg_hubspot__deal_pipeline_stage_tmp"], "unique_id": "model.hubspot_source.stg_hubspot__deal_pipeline_stage_tmp", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "tmp/stg_hubspot__deal_pipeline_stage_tmp.sql", "original_file_path": "models/tmp/stg_hubspot__deal_pipeline_stage_tmp.sql", "name": "stg_hubspot__deal_pipeline_stage_tmp", "resource_type": "model", "alias": "stg_hubspot__deal_pipeline_stage_tmp", "checksum": {"name": "sha256", "checksum": "1600e72fdab295282f0c932e6476a36d14de2beeddba11eef56704c5e19dfece"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["deal_pipeline_stage_data"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars"], "nodes": ["seed.hubspot_source_integration_tests.deal_pipeline_stage_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/tmp/stg_hubspot__deal_pipeline_stage_tmp.sql", "deferred": false, "unrendered_config": {"materialized": "view", "schema": null, "enabled": true}, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`hubspot_source_integration_tests`.`deal_pipeline_stage_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__deal_pipeline_stage_tmp`"}, "model.hubspot_source.stg_hubspot__engagement_task_tmp": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_sales_enabled','hubspot_engagement_enabled','hubspot_engagement_task_enabled'])) }}\n\nselect *\nfrom {{ var('engagement_task') }}", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "tmp", "stg_hubspot__engagement_task_tmp"], "unique_id": "model.hubspot_source.stg_hubspot__engagement_task_tmp", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "tmp/stg_hubspot__engagement_task_tmp.sql", "original_file_path": "models/tmp/stg_hubspot__engagement_task_tmp.sql", "name": "stg_hubspot__engagement_task_tmp", "resource_type": "model", "alias": "stg_hubspot__engagement_task_tmp", "checksum": {"name": "sha256", "checksum": "77c59970e529c5fbcbe4aa4d15d0b2bee88de8ba394efb53a0a998b722e941bb"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["engagement_task_data"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars"], "nodes": ["seed.hubspot_source_integration_tests.engagement_task_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/tmp/stg_hubspot__engagement_task_tmp.sql", "deferred": false, "unrendered_config": {"materialized": "view", "schema": null, "enabled": true}, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`hubspot_source_integration_tests`.`engagement_task_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__engagement_task_tmp`"}, "model.hubspot_source.stg_hubspot__email_event_open_tmp": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_marketing_enabled','hubspot_email_event_enabled','hubspot_email_event_open_enabled'])) }}\n\nselect *\nfrom {{ var('email_event_open') }}", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "tmp", "stg_hubspot__email_event_open_tmp"], "unique_id": "model.hubspot_source.stg_hubspot__email_event_open_tmp", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "tmp/stg_hubspot__email_event_open_tmp.sql", "original_file_path": "models/tmp/stg_hubspot__email_event_open_tmp.sql", "name": "stg_hubspot__email_event_open_tmp", "resource_type": "model", "alias": "stg_hubspot__email_event_open_tmp", "checksum": {"name": "sha256", "checksum": "f3ada0551ce1bab0ca3302c0464e2d17c8bbe5f4f74daccdf0bf84ee5fcd0a81"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["email_event_open_data"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars"], "nodes": ["seed.hubspot_source_integration_tests.email_event_open_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/tmp/stg_hubspot__email_event_open_tmp.sql", "deferred": false, "unrendered_config": {"materialized": "view", "schema": null, "enabled": true}, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`hubspot_source_integration_tests`.`email_event_open_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__email_event_open_tmp`"}, "model.hubspot_source.stg_hubspot__deal_property_history_tmp": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_sales_enabled','hubspot_deal_enabled'])) }}\n\nselect *\nfrom {{ var('deal_property_history') }}", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "tmp", "stg_hubspot__deal_property_history_tmp"], "unique_id": "model.hubspot_source.stg_hubspot__deal_property_history_tmp", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "tmp/stg_hubspot__deal_property_history_tmp.sql", "original_file_path": "models/tmp/stg_hubspot__deal_property_history_tmp.sql", "name": "stg_hubspot__deal_property_history_tmp", "resource_type": "model", "alias": "stg_hubspot__deal_property_history_tmp", "checksum": {"name": "sha256", "checksum": "168adec4f1836e664cfd6ae9d122a38bfd62840a758c7ade3ff13e7373bbfb31"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["deal_property_history_data"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars"], "nodes": ["seed.hubspot_source_integration_tests.deal_property_history_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/tmp/stg_hubspot__deal_property_history_tmp.sql", "deferred": false, "unrendered_config": {"materialized": "view", "schema": null, "enabled": true}, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`hubspot_source_integration_tests`.`deal_property_history_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__deal_property_history_tmp`"}, "model.hubspot_source.stg_hubspot__email_event_deferred_tmp": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_marketing_enabled','hubspot_email_event_enabled','hubspot_email_event_deferred_enabled'])) }}\n\nselect *\nfrom {{ var('email_event_deferred') }}", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "tmp", "stg_hubspot__email_event_deferred_tmp"], "unique_id": "model.hubspot_source.stg_hubspot__email_event_deferred_tmp", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "tmp/stg_hubspot__email_event_deferred_tmp.sql", "original_file_path": "models/tmp/stg_hubspot__email_event_deferred_tmp.sql", "name": "stg_hubspot__email_event_deferred_tmp", "resource_type": "model", "alias": "stg_hubspot__email_event_deferred_tmp", "checksum": {"name": "sha256", "checksum": "49cc95430e8375d3d61ea116f5e866c90d1e094df57a2afc11aaa879856003af"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["email_event_deferred_data"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars"], "nodes": ["seed.hubspot_source_integration_tests.email_event_deferred_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/tmp/stg_hubspot__email_event_deferred_tmp.sql", "deferred": false, "unrendered_config": {"materialized": "view", "schema": null, "enabled": true}, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`hubspot_source_integration_tests`.`email_event_deferred_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__email_event_deferred_tmp`"}, "model.hubspot_source.stg_hubspot__email_campaign_tmp": {"raw_sql": "{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_marketing_enabled','hubspot_email_event_enabled'])) }}\n\nselect *\nfrom {{ var('email_campaign') }}", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "tmp", "stg_hubspot__email_campaign_tmp"], "unique_id": "model.hubspot_source.stg_hubspot__email_campaign_tmp", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "tmp/stg_hubspot__email_campaign_tmp.sql", "original_file_path": "models/tmp/stg_hubspot__email_campaign_tmp.sql", "name": "stg_hubspot__email_campaign_tmp", "resource_type": "model", "alias": "stg_hubspot__email_campaign_tmp", "checksum": {"name": "sha256", "checksum": "82140dbdec643b7ca1159e66138817a6e05cacce7ed8ddefdd9934f40f6afc38"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["email_campaign_data"]], "sources": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars"], "nodes": ["seed.hubspot_source_integration_tests.email_campaign_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/tmp/stg_hubspot__email_campaign_tmp.sql", "deferred": false, "unrendered_config": {"materialized": "view", "schema": null, "enabled": true}, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`hubspot_source_integration_tests`.`email_campaign_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__email_campaign_tmp`"}, "model.hubspot_source.stg_hubspot__ticket_deal_tmp": {"raw_sql": "{{ config(enabled=var('hubspot_service_enabled', True)) }}\n\nselect *\nfrom {{ var('ticket_deal') }}", "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "tmp", "stg_hubspot__ticket_deal_tmp"], "unique_id": "model.hubspot_source.stg_hubspot__ticket_deal_tmp", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "tmp/stg_hubspot__ticket_deal_tmp.sql", "original_file_path": "models/tmp/stg_hubspot__ticket_deal_tmp.sql", "name": "stg_hubspot__ticket_deal_tmp", "resource_type": "model", "alias": "stg_hubspot__ticket_deal_tmp", "checksum": {"name": "sha256", "checksum": "294e6e8090e0238cf87a927a3e95b0a7f7de7255a4e6a80c66ad8227181a8a3e"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["ticket_deal_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.hubspot_source_integration_tests.ticket_deal_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/tmp/stg_hubspot__ticket_deal_tmp.sql", "deferred": false, "unrendered_config": {"materialized": "view", "schema": null, "enabled": true}, "compiled_sql": "\n\nselect *\nfrom `dbt-package-testing`.`hubspot_source_integration_tests`.`ticket_deal_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__ticket_deal_tmp`"}, "test.hubspot_source.unique_stg_hubspot__deal_pipeline_stage_deal_pipeline_stage_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "unique", "kwargs": {"column_name": "deal_pipeline_stage_id", "model": "{{ ref('stg_hubspot__deal_pipeline_stage') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "schema_test", "unique_stg_hubspot__deal_pipeline_stage_deal_pipeline_stage_id"], "unique_id": "test.hubspot_source.unique_stg_hubspot__deal_pipeline_stage_deal_pipeline_stage_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/unique_stg_hubspot__deal_pipeline_stage_deal_pipeline_stage_id.sql", "original_file_path": "models/stg_hubspot__deal.yml", "name": "unique_stg_hubspot__deal_pipeline_stage_deal_pipeline_stage_id", "resource_type": "test", "alias": "unique_stg_hubspot__deal_pipeline_stage_deal_pipeline_stage_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__deal_pipeline_stage"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.hubspot_source.stg_hubspot__deal_pipeline_stage"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__deal.yml/schema_test/unique_stg_hubspot__deal_pipeline_stage_deal_pipeline_stage_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom (\n\n select\n deal_pipeline_stage_id\n\n from `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__deal_pipeline_stage`\n where deal_pipeline_stage_id is not null\n group by deal_pipeline_stage_id\n having count(*) > 1\n\n) validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "deal_pipeline_stage_id"}, "test.hubspot_source.not_null_stg_hubspot__deal_pipeline_stage_deal_pipeline_stage_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "deal_pipeline_stage_id", "model": "{{ ref('stg_hubspot__deal_pipeline_stage') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "schema_test", "not_null_stg_hubspot__deal_pipeline_stage_deal_pipeline_stage_id"], "unique_id": "test.hubspot_source.not_null_stg_hubspot__deal_pipeline_stage_deal_pipeline_stage_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/not_null_stg_hubspot__deal_pipeline_stage_deal_pipeline_stage_id.sql", "original_file_path": "models/stg_hubspot__deal.yml", "name": "not_null_stg_hubspot__deal_pipeline_stage_deal_pipeline_stage_id", "resource_type": "test", "alias": "not_null_stg_hubspot__deal_pipeline_stage_deal_pipeline_stage_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__deal_pipeline_stage"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.hubspot_source.stg_hubspot__deal_pipeline_stage"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__deal.yml/schema_test/not_null_stg_hubspot__deal_pipeline_stage_deal_pipeline_stage_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__deal_pipeline_stage`\nwhere deal_pipeline_stage_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "deal_pipeline_stage_id"}, "test.hubspot_source.unique_stg_hubspot__deal_pipeline_deal_pipeline_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "unique", "kwargs": {"column_name": "deal_pipeline_id", "model": "{{ ref('stg_hubspot__deal_pipeline') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "schema_test", "unique_stg_hubspot__deal_pipeline_deal_pipeline_id"], "unique_id": "test.hubspot_source.unique_stg_hubspot__deal_pipeline_deal_pipeline_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/unique_stg_hubspot__deal_pipeline_deal_pipeline_id.sql", "original_file_path": "models/stg_hubspot__deal.yml", "name": "unique_stg_hubspot__deal_pipeline_deal_pipeline_id", "resource_type": "test", "alias": "unique_stg_hubspot__deal_pipeline_deal_pipeline_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__deal_pipeline"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.hubspot_source.stg_hubspot__deal_pipeline"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__deal.yml/schema_test/unique_stg_hubspot__deal_pipeline_deal_pipeline_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom (\n\n select\n deal_pipeline_id\n\n from `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__deal_pipeline`\n where deal_pipeline_id is not null\n group by deal_pipeline_id\n having count(*) > 1\n\n) validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "deal_pipeline_id"}, "test.hubspot_source.not_null_stg_hubspot__deal_pipeline_deal_pipeline_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "deal_pipeline_id", "model": "{{ ref('stg_hubspot__deal_pipeline') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "schema_test", "not_null_stg_hubspot__deal_pipeline_deal_pipeline_id"], "unique_id": "test.hubspot_source.not_null_stg_hubspot__deal_pipeline_deal_pipeline_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/not_null_stg_hubspot__deal_pipeline_deal_pipeline_id.sql", "original_file_path": "models/stg_hubspot__deal.yml", "name": "not_null_stg_hubspot__deal_pipeline_deal_pipeline_id", "resource_type": "test", "alias": "not_null_stg_hubspot__deal_pipeline_deal_pipeline_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__deal_pipeline"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.hubspot_source.stg_hubspot__deal_pipeline"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__deal.yml/schema_test/not_null_stg_hubspot__deal_pipeline_deal_pipeline_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__deal_pipeline`\nwhere deal_pipeline_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "deal_pipeline_id"}, "test.hubspot_source.not_null_stg_hubspot__deal_deal_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "deal_id", "model": "{{ ref('stg_hubspot__deal') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "schema_test", "not_null_stg_hubspot__deal_deal_id"], "unique_id": "test.hubspot_source.not_null_stg_hubspot__deal_deal_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/not_null_stg_hubspot__deal_deal_id.sql", "original_file_path": "models/stg_hubspot__deal.yml", "name": "not_null_stg_hubspot__deal_deal_id", "resource_type": "test", "alias": "not_null_stg_hubspot__deal_deal_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__deal"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.hubspot_source.stg_hubspot__deal"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__deal.yml/schema_test/not_null_stg_hubspot__deal_deal_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__deal`\nwhere deal_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "deal_id"}, "test.hubspot_source.unique_stg_hubspot__deal_deal_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "unique", "kwargs": {"column_name": "deal_id", "model": "{{ ref('stg_hubspot__deal') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "schema_test", "unique_stg_hubspot__deal_deal_id"], "unique_id": "test.hubspot_source.unique_stg_hubspot__deal_deal_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/unique_stg_hubspot__deal_deal_id.sql", "original_file_path": "models/stg_hubspot__deal.yml", "name": "unique_stg_hubspot__deal_deal_id", "resource_type": "test", "alias": "unique_stg_hubspot__deal_deal_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__deal"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.hubspot_source.stg_hubspot__deal"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__deal.yml/schema_test/unique_stg_hubspot__deal_deal_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom (\n\n select\n deal_id\n\n from `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__deal`\n where deal_id is not null\n group by deal_id\n having count(*) > 1\n\n) validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "deal_id"}, "test.hubspot_source.unique_stg_hubspot__contact_list_contact_list_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "unique", "kwargs": {"column_name": "contact_list_id", "model": "{{ ref('stg_hubspot__contact_list') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "schema_test", "unique_stg_hubspot__contact_list_contact_list_id"], "unique_id": "test.hubspot_source.unique_stg_hubspot__contact_list_contact_list_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/unique_stg_hubspot__contact_list_contact_list_id.sql", "original_file_path": "models/stg_hubspot__contact.yml", "name": "unique_stg_hubspot__contact_list_contact_list_id", "resource_type": "test", "alias": "unique_stg_hubspot__contact_list_contact_list_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__contact_list"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.hubspot_source.stg_hubspot__contact_list"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__contact.yml/schema_test/unique_stg_hubspot__contact_list_contact_list_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom (\n\n select\n contact_list_id\n\n from `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__contact_list`\n where contact_list_id is not null\n group by contact_list_id\n having count(*) > 1\n\n) validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "contact_list_id"}, "test.hubspot_source.not_null_stg_hubspot__contact_list_contact_list_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "contact_list_id", "model": "{{ ref('stg_hubspot__contact_list') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "schema_test", "not_null_stg_hubspot__contact_list_contact_list_id"], "unique_id": "test.hubspot_source.not_null_stg_hubspot__contact_list_contact_list_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/not_null_stg_hubspot__contact_list_contact_list_id.sql", "original_file_path": "models/stg_hubspot__contact.yml", "name": "not_null_stg_hubspot__contact_list_contact_list_id", "resource_type": "test", "alias": "not_null_stg_hubspot__contact_list_contact_list_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__contact_list"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.hubspot_source.stg_hubspot__contact_list"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__contact.yml/schema_test/not_null_stg_hubspot__contact_list_contact_list_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__contact_list`\nwhere contact_list_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "contact_list_id"}, "test.hubspot_source.unique_stg_hubspot__contact_contact_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "unique", "kwargs": {"column_name": "contact_id", "model": "{{ ref('stg_hubspot__contact') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "schema_test", "unique_stg_hubspot__contact_contact_id"], "unique_id": "test.hubspot_source.unique_stg_hubspot__contact_contact_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/unique_stg_hubspot__contact_contact_id.sql", "original_file_path": "models/stg_hubspot__contact.yml", "name": "unique_stg_hubspot__contact_contact_id", "resource_type": "test", "alias": "unique_stg_hubspot__contact_contact_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__contact"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.hubspot_source.stg_hubspot__contact"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__contact.yml/schema_test/unique_stg_hubspot__contact_contact_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom (\n\n select\n contact_id\n\n from `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__contact`\n where contact_id is not null\n group by contact_id\n having count(*) > 1\n\n) validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "contact_id"}, "test.hubspot_source.not_null_stg_hubspot__contact_contact_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "contact_id", "model": "{{ ref('stg_hubspot__contact') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "schema_test", "not_null_stg_hubspot__contact_contact_id"], "unique_id": "test.hubspot_source.not_null_stg_hubspot__contact_contact_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/not_null_stg_hubspot__contact_contact_id.sql", "original_file_path": "models/stg_hubspot__contact.yml", "name": "not_null_stg_hubspot__contact_contact_id", "resource_type": "test", "alias": "not_null_stg_hubspot__contact_contact_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__contact"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.hubspot_source.stg_hubspot__contact"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__contact.yml/schema_test/not_null_stg_hubspot__contact_contact_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__contact`\nwhere contact_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "contact_id"}, "test.hubspot_source.unique_stg_hubspot__email_event_bounce_event_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "unique", "kwargs": {"column_name": "event_id", "model": "{{ ref('stg_hubspot__email_event_bounce') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "schema_test", "unique_stg_hubspot__email_event_bounce_event_id"], "unique_id": "test.hubspot_source.unique_stg_hubspot__email_event_bounce_event_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/unique_stg_hubspot__email_event_bounce_event_id.sql", "original_file_path": "models/stg_hubspot__email.yml", "name": "unique_stg_hubspot__email_event_bounce_event_id", "resource_type": "test", "alias": "unique_stg_hubspot__email_event_bounce_event_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__email_event_bounce"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.hubspot_source.stg_hubspot__email_event_bounce"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__email.yml/schema_test/unique_stg_hubspot__email_event_bounce_event_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom (\n\n select\n event_id\n\n from `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__email_event_bounce`\n where event_id is not null\n group by event_id\n having count(*) > 1\n\n) validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "event_id"}, "test.hubspot_source.not_null_stg_hubspot__email_event_bounce_event_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "event_id", "model": "{{ ref('stg_hubspot__email_event_bounce') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "schema_test", "not_null_stg_hubspot__email_event_bounce_event_id"], "unique_id": "test.hubspot_source.not_null_stg_hubspot__email_event_bounce_event_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/not_null_stg_hubspot__email_event_bounce_event_id.sql", "original_file_path": "models/stg_hubspot__email.yml", "name": "not_null_stg_hubspot__email_event_bounce_event_id", "resource_type": "test", "alias": "not_null_stg_hubspot__email_event_bounce_event_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__email_event_bounce"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.hubspot_source.stg_hubspot__email_event_bounce"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__email.yml/schema_test/not_null_stg_hubspot__email_event_bounce_event_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__email_event_bounce`\nwhere event_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "event_id"}, "test.hubspot_source.unique_stg_hubspot__email_event_click_event_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "unique", "kwargs": {"column_name": "event_id", "model": "{{ ref('stg_hubspot__email_event_click') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "schema_test", "unique_stg_hubspot__email_event_click_event_id"], "unique_id": "test.hubspot_source.unique_stg_hubspot__email_event_click_event_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/unique_stg_hubspot__email_event_click_event_id.sql", "original_file_path": "models/stg_hubspot__email.yml", "name": "unique_stg_hubspot__email_event_click_event_id", "resource_type": "test", "alias": "unique_stg_hubspot__email_event_click_event_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__email_event_click"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.hubspot_source.stg_hubspot__email_event_click"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__email.yml/schema_test/unique_stg_hubspot__email_event_click_event_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom (\n\n select\n event_id\n\n from `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__email_event_click`\n where event_id is not null\n group by event_id\n having count(*) > 1\n\n) validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "event_id"}, "test.hubspot_source.not_null_stg_hubspot__email_event_click_event_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "event_id", "model": "{{ ref('stg_hubspot__email_event_click') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "schema_test", "not_null_stg_hubspot__email_event_click_event_id"], "unique_id": "test.hubspot_source.not_null_stg_hubspot__email_event_click_event_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/not_null_stg_hubspot__email_event_click_event_id.sql", "original_file_path": "models/stg_hubspot__email.yml", "name": "not_null_stg_hubspot__email_event_click_event_id", "resource_type": "test", "alias": "not_null_stg_hubspot__email_event_click_event_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__email_event_click"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.hubspot_source.stg_hubspot__email_event_click"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__email.yml/schema_test/not_null_stg_hubspot__email_event_click_event_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__email_event_click`\nwhere event_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "event_id"}, "test.hubspot_source.unique_stg_hubspot__email_event_deferred_event_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "unique", "kwargs": {"column_name": "event_id", "model": "{{ ref('stg_hubspot__email_event_deferred') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "schema_test", "unique_stg_hubspot__email_event_deferred_event_id"], "unique_id": "test.hubspot_source.unique_stg_hubspot__email_event_deferred_event_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/unique_stg_hubspot__email_event_deferred_event_id.sql", "original_file_path": "models/stg_hubspot__email.yml", "name": "unique_stg_hubspot__email_event_deferred_event_id", "resource_type": "test", "alias": "unique_stg_hubspot__email_event_deferred_event_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__email_event_deferred"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.hubspot_source.stg_hubspot__email_event_deferred"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__email.yml/schema_test/unique_stg_hubspot__email_event_deferred_event_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom (\n\n select\n event_id\n\n from `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__email_event_deferred`\n where event_id is not null\n group by event_id\n having count(*) > 1\n\n) validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "event_id"}, "test.hubspot_source.not_null_stg_hubspot__email_event_deferred_event_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "event_id", "model": "{{ ref('stg_hubspot__email_event_deferred') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "schema_test", "not_null_stg_hubspot__email_event_deferred_event_id"], "unique_id": "test.hubspot_source.not_null_stg_hubspot__email_event_deferred_event_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/not_null_stg_hubspot__email_event_deferred_event_id.sql", "original_file_path": "models/stg_hubspot__email.yml", "name": "not_null_stg_hubspot__email_event_deferred_event_id", "resource_type": "test", "alias": "not_null_stg_hubspot__email_event_deferred_event_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__email_event_deferred"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.hubspot_source.stg_hubspot__email_event_deferred"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__email.yml/schema_test/not_null_stg_hubspot__email_event_deferred_event_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__email_event_deferred`\nwhere event_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "event_id"}, "test.hubspot_source.unique_stg_hubspot__email_event_delivered_event_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "unique", "kwargs": {"column_name": "event_id", "model": "{{ ref('stg_hubspot__email_event_delivered') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "schema_test", "unique_stg_hubspot__email_event_delivered_event_id"], "unique_id": "test.hubspot_source.unique_stg_hubspot__email_event_delivered_event_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/unique_stg_hubspot__email_event_delivered_event_id.sql", "original_file_path": "models/stg_hubspot__email.yml", "name": "unique_stg_hubspot__email_event_delivered_event_id", "resource_type": "test", "alias": "unique_stg_hubspot__email_event_delivered_event_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__email_event_delivered"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.hubspot_source.stg_hubspot__email_event_delivered"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__email.yml/schema_test/unique_stg_hubspot__email_event_delivered_event_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom (\n\n select\n event_id\n\n from `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__email_event_delivered`\n where event_id is not null\n group by event_id\n having count(*) > 1\n\n) validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "event_id"}, "test.hubspot_source.not_null_stg_hubspot__email_event_delivered_event_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "event_id", "model": "{{ ref('stg_hubspot__email_event_delivered') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "schema_test", "not_null_stg_hubspot__email_event_delivered_event_id"], "unique_id": "test.hubspot_source.not_null_stg_hubspot__email_event_delivered_event_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/not_null_stg_hubspot__email_event_delivered_event_id.sql", "original_file_path": "models/stg_hubspot__email.yml", "name": "not_null_stg_hubspot__email_event_delivered_event_id", "resource_type": "test", "alias": "not_null_stg_hubspot__email_event_delivered_event_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__email_event_delivered"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.hubspot_source.stg_hubspot__email_event_delivered"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__email.yml/schema_test/not_null_stg_hubspot__email_event_delivered_event_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__email_event_delivered`\nwhere event_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "event_id"}, "test.hubspot_source.unique_stg_hubspot__email_event_dropped_event_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "unique", "kwargs": {"column_name": "event_id", "model": "{{ ref('stg_hubspot__email_event_dropped') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "schema_test", "unique_stg_hubspot__email_event_dropped_event_id"], "unique_id": "test.hubspot_source.unique_stg_hubspot__email_event_dropped_event_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/unique_stg_hubspot__email_event_dropped_event_id.sql", "original_file_path": "models/stg_hubspot__email.yml", "name": "unique_stg_hubspot__email_event_dropped_event_id", "resource_type": "test", "alias": "unique_stg_hubspot__email_event_dropped_event_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__email_event_dropped"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.hubspot_source.stg_hubspot__email_event_dropped"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__email.yml/schema_test/unique_stg_hubspot__email_event_dropped_event_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom (\n\n select\n event_id\n\n from `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__email_event_dropped`\n where event_id is not null\n group by event_id\n having count(*) > 1\n\n) validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "event_id"}, "test.hubspot_source.not_null_stg_hubspot__email_event_dropped_event_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "event_id", "model": "{{ ref('stg_hubspot__email_event_dropped') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "schema_test", "not_null_stg_hubspot__email_event_dropped_event_id"], "unique_id": "test.hubspot_source.not_null_stg_hubspot__email_event_dropped_event_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/not_null_stg_hubspot__email_event_dropped_event_id.sql", "original_file_path": "models/stg_hubspot__email.yml", "name": "not_null_stg_hubspot__email_event_dropped_event_id", "resource_type": "test", "alias": "not_null_stg_hubspot__email_event_dropped_event_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__email_event_dropped"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.hubspot_source.stg_hubspot__email_event_dropped"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__email.yml/schema_test/not_null_stg_hubspot__email_event_dropped_event_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__email_event_dropped`\nwhere event_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "event_id"}, "test.hubspot_source.unique_stg_hubspot__email_event_forward_event_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "unique", "kwargs": {"column_name": "event_id", "model": "{{ ref('stg_hubspot__email_event_forward') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "schema_test", "unique_stg_hubspot__email_event_forward_event_id"], "unique_id": "test.hubspot_source.unique_stg_hubspot__email_event_forward_event_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/unique_stg_hubspot__email_event_forward_event_id.sql", "original_file_path": "models/stg_hubspot__email.yml", "name": "unique_stg_hubspot__email_event_forward_event_id", "resource_type": "test", "alias": "unique_stg_hubspot__email_event_forward_event_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__email_event_forward"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.hubspot_source.stg_hubspot__email_event_forward"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__email.yml/schema_test/unique_stg_hubspot__email_event_forward_event_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom (\n\n select\n event_id\n\n from `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__email_event_forward`\n where event_id is not null\n group by event_id\n having count(*) > 1\n\n) validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "event_id"}, "test.hubspot_source.not_null_stg_hubspot__email_event_forward_event_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "event_id", "model": "{{ ref('stg_hubspot__email_event_forward') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "schema_test", "not_null_stg_hubspot__email_event_forward_event_id"], "unique_id": "test.hubspot_source.not_null_stg_hubspot__email_event_forward_event_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/not_null_stg_hubspot__email_event_forward_event_id.sql", "original_file_path": "models/stg_hubspot__email.yml", "name": "not_null_stg_hubspot__email_event_forward_event_id", "resource_type": "test", "alias": "not_null_stg_hubspot__email_event_forward_event_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__email_event_forward"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.hubspot_source.stg_hubspot__email_event_forward"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__email.yml/schema_test/not_null_stg_hubspot__email_event_forward_event_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__email_event_forward`\nwhere event_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "event_id"}, "test.hubspot_source.unique_stg_hubspot__email_event_open_event_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "unique", "kwargs": {"column_name": "event_id", "model": "{{ ref('stg_hubspot__email_event_open') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "schema_test", "unique_stg_hubspot__email_event_open_event_id"], "unique_id": "test.hubspot_source.unique_stg_hubspot__email_event_open_event_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/unique_stg_hubspot__email_event_open_event_id.sql", "original_file_path": "models/stg_hubspot__email.yml", "name": "unique_stg_hubspot__email_event_open_event_id", "resource_type": "test", "alias": "unique_stg_hubspot__email_event_open_event_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__email_event_open"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.hubspot_source.stg_hubspot__email_event_open"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__email.yml/schema_test/unique_stg_hubspot__email_event_open_event_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom (\n\n select\n event_id\n\n from `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__email_event_open`\n where event_id is not null\n group by event_id\n having count(*) > 1\n\n) validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "event_id"}, "test.hubspot_source.not_null_stg_hubspot__email_event_open_event_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "event_id", "model": "{{ ref('stg_hubspot__email_event_open') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "schema_test", "not_null_stg_hubspot__email_event_open_event_id"], "unique_id": "test.hubspot_source.not_null_stg_hubspot__email_event_open_event_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/not_null_stg_hubspot__email_event_open_event_id.sql", "original_file_path": "models/stg_hubspot__email.yml", "name": "not_null_stg_hubspot__email_event_open_event_id", "resource_type": "test", "alias": "not_null_stg_hubspot__email_event_open_event_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__email_event_open"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.hubspot_source.stg_hubspot__email_event_open"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__email.yml/schema_test/not_null_stg_hubspot__email_event_open_event_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__email_event_open`\nwhere event_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "event_id"}, "test.hubspot_source.unique_stg_hubspot__email_event_print_event_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "unique", "kwargs": {"column_name": "event_id", "model": "{{ ref('stg_hubspot__email_event_print') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "schema_test", "unique_stg_hubspot__email_event_print_event_id"], "unique_id": "test.hubspot_source.unique_stg_hubspot__email_event_print_event_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/unique_stg_hubspot__email_event_print_event_id.sql", "original_file_path": "models/stg_hubspot__email.yml", "name": "unique_stg_hubspot__email_event_print_event_id", "resource_type": "test", "alias": "unique_stg_hubspot__email_event_print_event_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__email_event_print"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.hubspot_source.stg_hubspot__email_event_print"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__email.yml/schema_test/unique_stg_hubspot__email_event_print_event_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom (\n\n select\n event_id\n\n from `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__email_event_print`\n where event_id is not null\n group by event_id\n having count(*) > 1\n\n) validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "event_id"}, "test.hubspot_source.not_null_stg_hubspot__email_event_print_event_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "event_id", "model": "{{ ref('stg_hubspot__email_event_print') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "schema_test", "not_null_stg_hubspot__email_event_print_event_id"], "unique_id": "test.hubspot_source.not_null_stg_hubspot__email_event_print_event_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/not_null_stg_hubspot__email_event_print_event_id.sql", "original_file_path": "models/stg_hubspot__email.yml", "name": "not_null_stg_hubspot__email_event_print_event_id", "resource_type": "test", "alias": "not_null_stg_hubspot__email_event_print_event_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__email_event_print"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.hubspot_source.stg_hubspot__email_event_print"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__email.yml/schema_test/not_null_stg_hubspot__email_event_print_event_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__email_event_print`\nwhere event_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "event_id"}, "test.hubspot_source.unique_stg_hubspot__email_event_sent_event_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "unique", "kwargs": {"column_name": "event_id", "model": "{{ ref('stg_hubspot__email_event_sent') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "schema_test", "unique_stg_hubspot__email_event_sent_event_id"], "unique_id": "test.hubspot_source.unique_stg_hubspot__email_event_sent_event_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/unique_stg_hubspot__email_event_sent_event_id.sql", "original_file_path": "models/stg_hubspot__email.yml", "name": "unique_stg_hubspot__email_event_sent_event_id", "resource_type": "test", "alias": "unique_stg_hubspot__email_event_sent_event_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__email_event_sent"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.hubspot_source.stg_hubspot__email_event_sent"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__email.yml/schema_test/unique_stg_hubspot__email_event_sent_event_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom (\n\n select\n event_id\n\n from `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__email_event_sent`\n where event_id is not null\n group by event_id\n having count(*) > 1\n\n) validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "event_id"}, "test.hubspot_source.not_null_stg_hubspot__email_event_sent_event_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "event_id", "model": "{{ ref('stg_hubspot__email_event_sent') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "schema_test", "not_null_stg_hubspot__email_event_sent_event_id"], "unique_id": "test.hubspot_source.not_null_stg_hubspot__email_event_sent_event_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/not_null_stg_hubspot__email_event_sent_event_id.sql", "original_file_path": "models/stg_hubspot__email.yml", "name": "not_null_stg_hubspot__email_event_sent_event_id", "resource_type": "test", "alias": "not_null_stg_hubspot__email_event_sent_event_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__email_event_sent"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.hubspot_source.stg_hubspot__email_event_sent"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__email.yml/schema_test/not_null_stg_hubspot__email_event_sent_event_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__email_event_sent`\nwhere event_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "event_id"}, "test.hubspot_source.unique_stg_hubspot__email_event_spam_report_event_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "unique", "kwargs": {"column_name": "event_id", "model": "{{ ref('stg_hubspot__email_event_spam_report') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "schema_test", "unique_stg_hubspot__email_event_spam_report_event_id"], "unique_id": "test.hubspot_source.unique_stg_hubspot__email_event_spam_report_event_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/unique_stg_hubspot__email_event_spam_report_event_id.sql", "original_file_path": "models/stg_hubspot__email.yml", "name": "unique_stg_hubspot__email_event_spam_report_event_id", "resource_type": "test", "alias": "unique_stg_hubspot__email_event_spam_report_event_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__email_event_spam_report"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.hubspot_source.stg_hubspot__email_event_spam_report"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__email.yml/schema_test/unique_stg_hubspot__email_event_spam_report_event_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom (\n\n select\n event_id\n\n from `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__email_event_spam_report`\n where event_id is not null\n group by event_id\n having count(*) > 1\n\n) validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "event_id"}, "test.hubspot_source.not_null_stg_hubspot__email_event_spam_report_event_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "event_id", "model": "{{ ref('stg_hubspot__email_event_spam_report') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "schema_test", "not_null_stg_hubspot__email_event_spam_report_event_id"], "unique_id": "test.hubspot_source.not_null_stg_hubspot__email_event_spam_report_event_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/not_null_stg_hubspot__email_event_spam_report_event_id.sql", "original_file_path": "models/stg_hubspot__email.yml", "name": "not_null_stg_hubspot__email_event_spam_report_event_id", "resource_type": "test", "alias": "not_null_stg_hubspot__email_event_spam_report_event_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__email_event_spam_report"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.hubspot_source.stg_hubspot__email_event_spam_report"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__email.yml/schema_test/not_null_stg_hubspot__email_event_spam_report_event_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__email_event_spam_report`\nwhere event_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "event_id"}, "test.hubspot_source.unique_stg_hubspot__email_event_status_change_event_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "unique", "kwargs": {"column_name": "event_id", "model": "{{ ref('stg_hubspot__email_event_status_change') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "schema_test", "unique_stg_hubspot__email_event_status_change_event_id"], "unique_id": "test.hubspot_source.unique_stg_hubspot__email_event_status_change_event_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/unique_stg_hubspot__email_event_status_change_event_id.sql", "original_file_path": "models/stg_hubspot__email.yml", "name": "unique_stg_hubspot__email_event_status_change_event_id", "resource_type": "test", "alias": "unique_stg_hubspot__email_event_status_change_event_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__email_event_status_change"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.hubspot_source.stg_hubspot__email_event_status_change"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__email.yml/schema_test/unique_stg_hubspot__email_event_status_change_event_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom (\n\n select\n event_id\n\n from `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__email_event_status_change`\n where event_id is not null\n group by event_id\n having count(*) > 1\n\n) validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "event_id"}, "test.hubspot_source.not_null_stg_hubspot__email_event_status_change_event_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "event_id", "model": "{{ ref('stg_hubspot__email_event_status_change') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "schema_test", "not_null_stg_hubspot__email_event_status_change_event_id"], "unique_id": "test.hubspot_source.not_null_stg_hubspot__email_event_status_change_event_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/not_null_stg_hubspot__email_event_status_change_event_id.sql", "original_file_path": "models/stg_hubspot__email.yml", "name": "not_null_stg_hubspot__email_event_status_change_event_id", "resource_type": "test", "alias": "not_null_stg_hubspot__email_event_status_change_event_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__email_event_status_change"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.hubspot_source.stg_hubspot__email_event_status_change"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__email.yml/schema_test/not_null_stg_hubspot__email_event_status_change_event_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__email_event_status_change`\nwhere event_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "event_id"}, "test.hubspot_source.unique_stg_hubspot__email_event_event_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "unique", "kwargs": {"column_name": "event_id", "model": "{{ ref('stg_hubspot__email_event') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "schema_test", "unique_stg_hubspot__email_event_event_id"], "unique_id": "test.hubspot_source.unique_stg_hubspot__email_event_event_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/unique_stg_hubspot__email_event_event_id.sql", "original_file_path": "models/stg_hubspot__email.yml", "name": "unique_stg_hubspot__email_event_event_id", "resource_type": "test", "alias": "unique_stg_hubspot__email_event_event_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__email_event"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.hubspot_source.stg_hubspot__email_event"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__email.yml/schema_test/unique_stg_hubspot__email_event_event_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom (\n\n select\n event_id\n\n from `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__email_event`\n where event_id is not null\n group by event_id\n having count(*) > 1\n\n) validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "event_id"}, "test.hubspot_source.not_null_stg_hubspot__email_event_event_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "event_id", "model": "{{ ref('stg_hubspot__email_event') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "schema_test", "not_null_stg_hubspot__email_event_event_id"], "unique_id": "test.hubspot_source.not_null_stg_hubspot__email_event_event_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/not_null_stg_hubspot__email_event_event_id.sql", "original_file_path": "models/stg_hubspot__email.yml", "name": "not_null_stg_hubspot__email_event_event_id", "resource_type": "test", "alias": "not_null_stg_hubspot__email_event_event_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__email_event"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.hubspot_source.stg_hubspot__email_event"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__email.yml/schema_test/not_null_stg_hubspot__email_event_event_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__email_event`\nwhere event_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "event_id"}, "test.hubspot_source.unique_stg_hubspot__email_campaign_email_campaign_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "unique", "kwargs": {"column_name": "email_campaign_id", "model": "{{ ref('stg_hubspot__email_campaign') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "schema_test", "unique_stg_hubspot__email_campaign_email_campaign_id"], "unique_id": "test.hubspot_source.unique_stg_hubspot__email_campaign_email_campaign_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/unique_stg_hubspot__email_campaign_email_campaign_id.sql", "original_file_path": "models/stg_hubspot__email.yml", "name": "unique_stg_hubspot__email_campaign_email_campaign_id", "resource_type": "test", "alias": "unique_stg_hubspot__email_campaign_email_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__email_campaign"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.hubspot_source.stg_hubspot__email_campaign"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__email.yml/schema_test/unique_stg_hubspot__email_campaign_email_campaign_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom (\n\n select\n email_campaign_id\n\n from `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__email_campaign`\n where email_campaign_id is not null\n group by email_campaign_id\n having count(*) > 1\n\n) validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "email_campaign_id"}, "test.hubspot_source.not_null_stg_hubspot__email_campaign_email_campaign_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "email_campaign_id", "model": "{{ ref('stg_hubspot__email_campaign') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "schema_test", "not_null_stg_hubspot__email_campaign_email_campaign_id"], "unique_id": "test.hubspot_source.not_null_stg_hubspot__email_campaign_email_campaign_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/not_null_stg_hubspot__email_campaign_email_campaign_id.sql", "original_file_path": "models/stg_hubspot__email.yml", "name": "not_null_stg_hubspot__email_campaign_email_campaign_id", "resource_type": "test", "alias": "not_null_stg_hubspot__email_campaign_email_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__email_campaign"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.hubspot_source.stg_hubspot__email_campaign"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__email.yml/schema_test/not_null_stg_hubspot__email_campaign_email_campaign_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__email_campaign`\nwhere email_campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "email_campaign_id"}, "test.hubspot_source.not_null_stg_hubspot__engagement_call_engagement_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "engagement_id", "model": "{{ ref('stg_hubspot__engagement_call') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "schema_test", "not_null_stg_hubspot__engagement_call_engagement_id"], "unique_id": "test.hubspot_source.not_null_stg_hubspot__engagement_call_engagement_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/not_null_stg_hubspot__engagement_call_engagement_id.sql", "original_file_path": "models/stg_hubspot__engagement.yml", "name": "not_null_stg_hubspot__engagement_call_engagement_id", "resource_type": "test", "alias": "not_null_stg_hubspot__engagement_call_engagement_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__engagement_call"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.hubspot_source.stg_hubspot__engagement_call"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__engagement.yml/schema_test/not_null_stg_hubspot__engagement_call_engagement_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__engagement_call`\nwhere engagement_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "engagement_id"}, "test.hubspot_source.unique_stg_hubspot__engagement_call_engagement_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "unique", "kwargs": {"column_name": "engagement_id", "model": "{{ ref('stg_hubspot__engagement_call') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "schema_test", "unique_stg_hubspot__engagement_call_engagement_id"], "unique_id": "test.hubspot_source.unique_stg_hubspot__engagement_call_engagement_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/unique_stg_hubspot__engagement_call_engagement_id.sql", "original_file_path": "models/stg_hubspot__engagement.yml", "name": "unique_stg_hubspot__engagement_call_engagement_id", "resource_type": "test", "alias": "unique_stg_hubspot__engagement_call_engagement_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__engagement_call"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.hubspot_source.stg_hubspot__engagement_call"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__engagement.yml/schema_test/unique_stg_hubspot__engagement_call_engagement_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom (\n\n select\n engagement_id\n\n from `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__engagement_call`\n where engagement_id is not null\n group by engagement_id\n having count(*) > 1\n\n) validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "engagement_id"}, "test.hubspot_source.not_null_stg_hubspot__engagement_email_engagement_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "engagement_id", "model": "{{ ref('stg_hubspot__engagement_email') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "schema_test", "not_null_stg_hubspot__engagement_email_engagement_id"], "unique_id": "test.hubspot_source.not_null_stg_hubspot__engagement_email_engagement_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/not_null_stg_hubspot__engagement_email_engagement_id.sql", "original_file_path": "models/stg_hubspot__engagement.yml", "name": "not_null_stg_hubspot__engagement_email_engagement_id", "resource_type": "test", "alias": "not_null_stg_hubspot__engagement_email_engagement_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__engagement_email"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.hubspot_source.stg_hubspot__engagement_email"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__engagement.yml/schema_test/not_null_stg_hubspot__engagement_email_engagement_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__engagement_email`\nwhere engagement_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "engagement_id"}, "test.hubspot_source.unique_stg_hubspot__engagement_email_engagement_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "unique", "kwargs": {"column_name": "engagement_id", "model": "{{ ref('stg_hubspot__engagement_email') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "schema_test", "unique_stg_hubspot__engagement_email_engagement_id"], "unique_id": "test.hubspot_source.unique_stg_hubspot__engagement_email_engagement_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/unique_stg_hubspot__engagement_email_engagement_id.sql", "original_file_path": "models/stg_hubspot__engagement.yml", "name": "unique_stg_hubspot__engagement_email_engagement_id", "resource_type": "test", "alias": "unique_stg_hubspot__engagement_email_engagement_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__engagement_email"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.hubspot_source.stg_hubspot__engagement_email"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__engagement.yml/schema_test/unique_stg_hubspot__engagement_email_engagement_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom (\n\n select\n engagement_id\n\n from `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__engagement_email`\n where engagement_id is not null\n group by engagement_id\n having count(*) > 1\n\n) validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "engagement_id"}, "test.hubspot_source.not_null_stg_hubspot__engagement_meeting_engagement_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "engagement_id", "model": "{{ ref('stg_hubspot__engagement_meeting') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "schema_test", "not_null_stg_hubspot__engagement_meeting_engagement_id"], "unique_id": "test.hubspot_source.not_null_stg_hubspot__engagement_meeting_engagement_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/not_null_stg_hubspot__engagement_meeting_engagement_id.sql", "original_file_path": "models/stg_hubspot__engagement.yml", "name": "not_null_stg_hubspot__engagement_meeting_engagement_id", "resource_type": "test", "alias": "not_null_stg_hubspot__engagement_meeting_engagement_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__engagement_meeting"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.hubspot_source.stg_hubspot__engagement_meeting"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__engagement.yml/schema_test/not_null_stg_hubspot__engagement_meeting_engagement_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__engagement_meeting`\nwhere engagement_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "engagement_id"}, "test.hubspot_source.unique_stg_hubspot__engagement_meeting_engagement_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "unique", "kwargs": {"column_name": "engagement_id", "model": "{{ ref('stg_hubspot__engagement_meeting') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "schema_test", "unique_stg_hubspot__engagement_meeting_engagement_id"], "unique_id": "test.hubspot_source.unique_stg_hubspot__engagement_meeting_engagement_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/unique_stg_hubspot__engagement_meeting_engagement_id.sql", "original_file_path": "models/stg_hubspot__engagement.yml", "name": "unique_stg_hubspot__engagement_meeting_engagement_id", "resource_type": "test", "alias": "unique_stg_hubspot__engagement_meeting_engagement_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__engagement_meeting"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.hubspot_source.stg_hubspot__engagement_meeting"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__engagement.yml/schema_test/unique_stg_hubspot__engagement_meeting_engagement_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom (\n\n select\n engagement_id\n\n from `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__engagement_meeting`\n where engagement_id is not null\n group by engagement_id\n having count(*) > 1\n\n) validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "engagement_id"}, "test.hubspot_source.not_null_stg_hubspot__engagement_note_engagement_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "engagement_id", "model": "{{ ref('stg_hubspot__engagement_note') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "schema_test", "not_null_stg_hubspot__engagement_note_engagement_id"], "unique_id": "test.hubspot_source.not_null_stg_hubspot__engagement_note_engagement_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/not_null_stg_hubspot__engagement_note_engagement_id.sql", "original_file_path": "models/stg_hubspot__engagement.yml", "name": "not_null_stg_hubspot__engagement_note_engagement_id", "resource_type": "test", "alias": "not_null_stg_hubspot__engagement_note_engagement_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__engagement_note"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.hubspot_source.stg_hubspot__engagement_note"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__engagement.yml/schema_test/not_null_stg_hubspot__engagement_note_engagement_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__engagement_note`\nwhere engagement_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "engagement_id"}, "test.hubspot_source.unique_stg_hubspot__engagement_note_engagement_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "unique", "kwargs": {"column_name": "engagement_id", "model": "{{ ref('stg_hubspot__engagement_note') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "schema_test", "unique_stg_hubspot__engagement_note_engagement_id"], "unique_id": "test.hubspot_source.unique_stg_hubspot__engagement_note_engagement_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/unique_stg_hubspot__engagement_note_engagement_id.sql", "original_file_path": "models/stg_hubspot__engagement.yml", "name": "unique_stg_hubspot__engagement_note_engagement_id", "resource_type": "test", "alias": "unique_stg_hubspot__engagement_note_engagement_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__engagement_note"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.hubspot_source.stg_hubspot__engagement_note"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__engagement.yml/schema_test/unique_stg_hubspot__engagement_note_engagement_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom (\n\n select\n engagement_id\n\n from `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__engagement_note`\n where engagement_id is not null\n group by engagement_id\n having count(*) > 1\n\n) validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "engagement_id"}, "test.hubspot_source.not_null_stg_hubspot__engagement_task_engagement_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "engagement_id", "model": "{{ ref('stg_hubspot__engagement_task') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "schema_test", "not_null_stg_hubspot__engagement_task_engagement_id"], "unique_id": "test.hubspot_source.not_null_stg_hubspot__engagement_task_engagement_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/not_null_stg_hubspot__engagement_task_engagement_id.sql", "original_file_path": "models/stg_hubspot__engagement.yml", "name": "not_null_stg_hubspot__engagement_task_engagement_id", "resource_type": "test", "alias": "not_null_stg_hubspot__engagement_task_engagement_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__engagement_task"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.hubspot_source.stg_hubspot__engagement_task"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__engagement.yml/schema_test/not_null_stg_hubspot__engagement_task_engagement_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__engagement_task`\nwhere engagement_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "engagement_id"}, "test.hubspot_source.unique_stg_hubspot__engagement_task_engagement_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "unique", "kwargs": {"column_name": "engagement_id", "model": "{{ ref('stg_hubspot__engagement_task') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "schema_test", "unique_stg_hubspot__engagement_task_engagement_id"], "unique_id": "test.hubspot_source.unique_stg_hubspot__engagement_task_engagement_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/unique_stg_hubspot__engagement_task_engagement_id.sql", "original_file_path": "models/stg_hubspot__engagement.yml", "name": "unique_stg_hubspot__engagement_task_engagement_id", "resource_type": "test", "alias": "unique_stg_hubspot__engagement_task_engagement_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__engagement_task"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.hubspot_source.stg_hubspot__engagement_task"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__engagement.yml/schema_test/unique_stg_hubspot__engagement_task_engagement_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom (\n\n select\n engagement_id\n\n from `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__engagement_task`\n where engagement_id is not null\n group by engagement_id\n having count(*) > 1\n\n) validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "engagement_id"}, "test.hubspot_source.not_null_stg_hubspot__engagement_engagement_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "engagement_id", "model": "{{ ref('stg_hubspot__engagement') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "schema_test", "not_null_stg_hubspot__engagement_engagement_id"], "unique_id": "test.hubspot_source.not_null_stg_hubspot__engagement_engagement_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/not_null_stg_hubspot__engagement_engagement_id.sql", "original_file_path": "models/stg_hubspot__engagement.yml", "name": "not_null_stg_hubspot__engagement_engagement_id", "resource_type": "test", "alias": "not_null_stg_hubspot__engagement_engagement_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__engagement"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.hubspot_source.stg_hubspot__engagement"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__engagement.yml/schema_test/not_null_stg_hubspot__engagement_engagement_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__engagement`\nwhere engagement_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "engagement_id"}, "test.hubspot_source.unique_stg_hubspot__engagement_engagement_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "unique", "kwargs": {"column_name": "engagement_id", "model": "{{ ref('stg_hubspot__engagement') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "schema_test", "unique_stg_hubspot__engagement_engagement_id"], "unique_id": "test.hubspot_source.unique_stg_hubspot__engagement_engagement_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/unique_stg_hubspot__engagement_engagement_id.sql", "original_file_path": "models/stg_hubspot__engagement.yml", "name": "unique_stg_hubspot__engagement_engagement_id", "resource_type": "test", "alias": "unique_stg_hubspot__engagement_engagement_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__engagement"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.hubspot_source.stg_hubspot__engagement"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__engagement.yml/schema_test/unique_stg_hubspot__engagement_engagement_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom (\n\n select\n engagement_id\n\n from `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__engagement`\n where engagement_id is not null\n group by engagement_id\n having count(*) > 1\n\n) validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "engagement_id"}, "test.hubspot_source.unique_stg_hubspot__ticket_ticket_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "unique", "kwargs": {"column_name": "ticket_id", "model": "{{ ref('stg_hubspot__ticket') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "schema_test", "unique_stg_hubspot__ticket_ticket_id"], "unique_id": "test.hubspot_source.unique_stg_hubspot__ticket_ticket_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/unique_stg_hubspot__ticket_ticket_id.sql", "original_file_path": "models/stg_hubspot__ticket.yml", "name": "unique_stg_hubspot__ticket_ticket_id", "resource_type": "test", "alias": "unique_stg_hubspot__ticket_ticket_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__ticket"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.hubspot_source.stg_hubspot__ticket"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__ticket.yml/schema_test/unique_stg_hubspot__ticket_ticket_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom (\n\n select\n ticket_id\n\n from `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__ticket`\n where ticket_id is not null\n group by ticket_id\n having count(*) > 1\n\n) validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ticket_id"}, "test.hubspot_source.not_null_stg_hubspot__ticket_ticket_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "ticket_id", "model": "{{ ref('stg_hubspot__ticket') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "schema_test", "not_null_stg_hubspot__ticket_ticket_id"], "unique_id": "test.hubspot_source.not_null_stg_hubspot__ticket_ticket_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/not_null_stg_hubspot__ticket_ticket_id.sql", "original_file_path": "models/stg_hubspot__ticket.yml", "name": "not_null_stg_hubspot__ticket_ticket_id", "resource_type": "test", "alias": "not_null_stg_hubspot__ticket_ticket_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__ticket"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.hubspot_source.stg_hubspot__ticket"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__ticket.yml/schema_test/not_null_stg_hubspot__ticket_ticket_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__ticket`\nwhere ticket_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ticket_id"}, "test.hubspot_source.unique_stg_hubspot__company_company_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "unique", "kwargs": {"column_name": "company_id", "model": "{{ ref('stg_hubspot__company') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "schema_test", "unique_stg_hubspot__company_company_id"], "unique_id": "test.hubspot_source.unique_stg_hubspot__company_company_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/unique_stg_hubspot__company_company_id.sql", "original_file_path": "models/stg_hubspot__company.yml", "name": "unique_stg_hubspot__company_company_id", "resource_type": "test", "alias": "unique_stg_hubspot__company_company_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__company"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.hubspot_source.stg_hubspot__company"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__company.yml/schema_test/unique_stg_hubspot__company_company_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom (\n\n select\n company_id\n\n from `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__company`\n where company_id is not null\n group by company_id\n having count(*) > 1\n\n) validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "company_id"}, "test.hubspot_source.not_null_stg_hubspot__company_company_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "company_id", "model": "{{ ref('stg_hubspot__company') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source", "schema_test", "not_null_stg_hubspot__company_company_id"], "unique_id": "test.hubspot_source.not_null_stg_hubspot__company_company_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "schema_test/not_null_stg_hubspot__company_company_id.sql", "original_file_path": "models/stg_hubspot__company.yml", "name": "not_null_stg_hubspot__company_company_id", "resource_type": "test", "alias": "not_null_stg_hubspot__company_company_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_hubspot__company"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.hubspot_source.stg_hubspot__company"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/hubspot_source/models/stg_hubspot__company.yml/schema_test/not_null_stg_hubspot__company_company_id.sql", "deferred": false, "unrendered_config": {"materialized": "table", "schema": null, "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`hubspot_source_integration_tests`.`stg_hubspot__company`\nwhere company_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "company_id"}}, "sources": {"source.hubspot_source.hubspot.calendar_event": {"fqn": ["hubspot_source", "hubspot", "calendar_event"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.calendar_event", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "calendar_event", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "calendar_event", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents a calendar event.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "avatar_url": {"name": "avatar_url", "description": "URL of image associated with social media event.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_guid": {"name": "campaign_guid", "description": "Value of campaign GUID associated with Task.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "category": {"name": "category", "description": "Type of event. If the event type is PUBLISHING_TASK, it is one of BLOG_POST, EMAIL, LANDING_PAGE, CUSTOM.\nIf event type is SOCIAL, it is one of twitter, facebook, linkedin, googlepluspages.\nIf event type is CONTENT, it is one of email, recurring-email, blog-post, landing-page, legacy-page, site-page.\n", "meta": {}, "data_type": null, "quote": null, "tags": []}, "category_id": {"name": "category_id", "description": "For event type of PUBLISHING_TASK, a numeric value corresponding to the type of task; one of 3 (BLOG_POST), 2 (EMAIL), 1 (LANDING_PAGE), 0 (CUSTOM).\nFor event type of SOCIAL, this is 0.\nIf event type is CONTENT, it is one of 2 (email, recurring-email), 3 (blog-post), 1 (landing-page), 5 (legacy-page), 4 (site-page).\n", "meta": {}, "data_type": null, "quote": null, "tags": []}, "content_group_id": {"name": "content_group_id", "description": "The ID of the content group (aka blog) that the associated Blog Post belongs to, if any.\nOtherwise null. Only populated for single task GETs and for Blog Post Tasks.\n", "meta": {}, "data_type": null, "quote": null, "tags": []}, "content_id": {"name": "content_id", "description": "ID value of the COS content object associated with the event, null for social or if nothing associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_by": {"name": "created_by", "description": "HubSpot ID of the user that the event was created by.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of Event.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "event_date": {"name": "event_date", "description": "If task, When the task is set to be due, otherwise when the event is/ was scheduled for; in milliseconds since the epoch.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "event_type": {"name": "event_type", "description": "Type of calendar event; for tasks this is PUBLISHING_TASK, for COS Items, this is CONTENT, for social media events, this is SOCIAL", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The unique ID of the task.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_recurring": {"name": "is_recurring", "description": "Whether the event is recurring.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of Event.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "owner_id": {"name": "owner_id", "description": "TASK - HubSpot ID of the user that the task is assigned to.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "portal_id": {"name": "portal_id", "description": "The hub ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "preview_key": {"name": "preview_key", "description": "Preview key of content object; used for showing previews of unpublished items.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "social_display_name": {"name": "social_display_name", "description": "Social media full name associate with event.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "social_username": {"name": "social_username", "description": "Social media user name associated with event.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "state": {"name": "state", "description": "For type publishing task, value of TODO or DONE, for others, a value of SCHEDULED, PUBLISHED, PUBLISHED_OR_SCHEDULED.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "topic_ids": {"name": "topic_ids", "description": "The list of IDs of topics associated with the associated Blog Post, if any. Otherwise null. Only populated for single task GETs and for Blog Post Tasks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "url": {"name": "url", "description": "Public URL of content item.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`calendar_event`"}, "source.hubspot_source.hubspot.company": {"fqn": ["hubspot_source", "hubspot", "company"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.company", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "company", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "company", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents a company in Hubspot.", "columns": {"id": {"name": "id", "description": "The ID of the company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "portal_id": {"name": "portal_id", "description": "The hub ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_deleted": {"name": "is_deleted", "description": "Whether the record has been deleted in Hubspot.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "property_name": {"name": "property_name", "description": "The name of the company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "property_description": {"name": "property_description", "description": "A short statement about the company's mission and goals.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "property_createdate": {"name": "property_createdate", "description": "The date the company was added to your account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "property_industry": {"name": "property_industry", "description": "The type of business the company performs.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "property_address": {"name": "property_address", "description": "The street address of the company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "property_address_2": {"name": "property_address_2", "description": "Additional address information for the company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "property_city": {"name": "property_city", "description": "The city where the company is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "property_state": {"name": "property_state", "description": "The state where the company is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "property_country": {"name": "property_country", "description": "The country where the company is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "property_annualrevenue": {"name": "property_annualrevenue", "description": "The actual or estimated annual revenue of the company.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`company`"}, "source.hubspot_source.hubspot.company_property_history": {"fqn": ["hubspot_source", "hubspot", "company_property_history"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.company_property_history", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "company_property_history", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "company_property_history", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents a change to company record in Hubspot.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "company_id": {"name": "company_id", "description": "The ID of the related company record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the field being changed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "source": {"name": "source", "description": "The source (reason) of the change.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "source_id": {"name": "source_id", "description": "The ID of the object that caused the change, if applicable.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "timestamp": {"name": "timestamp", "description": "The timestamp the changed occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "value": {"name": "value", "description": "The new value of the field.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`company_property_history`"}, "source.hubspot_source.hubspot.contact": {"fqn": ["hubspot_source", "hubspot", "contact"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.contact", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "contact", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "contact", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 84, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents a contact in Hubspot.", "columns": {"id": {"name": "id", "description": "The ID of the contact.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "property_email": {"name": "property_email", "description": "The contact's email.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "property_company": {"name": "property_company", "description": "The name of the contact's company", "meta": {}, "data_type": null, "quote": null, "tags": []}, "property_firstname": {"name": "property_firstname", "description": "The contact's first name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "property_lastname": {"name": "property_lastname", "description": "The contact's last name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "property_createdate": {"name": "property_createdate", "description": "The date that the contact was created in your HubSpot account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "property_jobtitle": {"name": "property_jobtitle", "description": "The contact's job title.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "property_annualrevenue": {"name": "property_annualrevenue", "description": "The contact's annual company revenue.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`contact`"}, "source.hubspot_source.hubspot.contact_form_submission": {"fqn": ["hubspot_source", "hubspot", "contact_form_submission"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.contact_form_submission", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "contact_form_submission", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "contact_form_submission", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "TBD", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "contact_id": {"name": "contact_id", "description": "The ID of the related contact.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "conversion_id": {"name": "conversion_id", "description": "A Unique ID for the specific form conversion.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "form_id": {"name": "form_id", "description": "The GUID of the form that the submission belongs to.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "page_url": {"name": "page_url", "description": "The URL that the form was submitted on, if applicable.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "portal_id": {"name": "portal_id", "description": "The hub ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "timestamp": {"name": "timestamp", "description": "A Unix timestamp in milliseconds of the time the submission occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "title": {"name": "title", "description": "The title of the page that the form was submitted on. This will default to the name of the form if no title is provided.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`contact_form_submission`"}, "source.hubspot_source.hubspot.contact_list": {"fqn": ["hubspot_source", "hubspot", "contact_list"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.contact_list", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "contact_list", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "contact_list", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents a contact list in Hubspot.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Timestamp of when Fivetran marked a record as deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran marked a record as deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "A timestamp of the time the list was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deleteable": {"name": "deleteable", "description": "If this is false, this is a system list and cannot be deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "dynamic": {"name": "dynamic", "description": "Whether the contact list is dynamic.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the contact list.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "metadata_error": {"name": "metadata_error", "description": "Any errors that happened the last time the list was processed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "metadata_last_processing_state_change_at": {"name": "metadata_last_processing_state_change_at", "description": "A timestamp of the last time that the processing state changed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "metadata_last_size_change_at": {"name": "metadata_last_size_change_at", "description": "A timestamp of the last time that the size of the list changed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "metadata_processing": {"name": "metadata_processing", "description": "One of DONE, REFRESHING, INITIALIZING, or PROCESSING.\nDONE indicates the list has finished processing, any other value indicates that list membership is being evaluated.\n", "meta": {}, "data_type": null, "quote": null, "tags": []}, "metadata_size": {"name": "metadata_size", "description": "The approximate number of contacts in the list.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the contact list.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "portal_id": {"name": "portal_id", "description": "The hub ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "A timestamp of the time that the list was last modified.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`contact_list`"}, "source.hubspot_source.hubspot.contact_list_member": {"fqn": ["hubspot_source", "hubspot", "contact_list_member"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.contact_list_member", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "contact_list_member", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "contact_list_member", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents a 'link' between a contact and a contact list.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Timestamp of when Fivetran marked a record as deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "added_at": {"name": "added_at", "description": "The timestamp a contact was added to a list.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "contact_id": {"name": "contact_id", "description": "The ID of the related contact.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "contact_list_id": {"name": "contact_list_id", "description": "The ID of the related contact list.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`contact_list_member`"}, "source.hubspot_source.hubspot.contact_property_history": {"fqn": ["hubspot_source", "hubspot", "contact_property_history"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.contact_property_history", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "contact_property_history", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "contact_property_history", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 84, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents a change to contact record in Hubspot.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "contact_id": {"name": "contact_id", "description": "The ID of the related contact record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the field being changed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "source": {"name": "source", "description": "The source (reason) of the change.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "source_id": {"name": "source_id", "description": "The ID of the object that caused the change, if applicable.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "timestamp": {"name": "timestamp", "description": "The timestamp the changed occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "value": {"name": "value", "description": "The new value of the field.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`contact_property_history`"}, "source.hubspot_source.hubspot.deal": {"fqn": ["hubspot_source", "hubspot", "deal"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.deal", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "deal", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "deal", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents a deal in Hubspot.", "columns": {"id": {"name": "id", "description": "The ID of the deal.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_deleted": {"name": "is_deleted", "description": "Whether the record was deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "portal_id": {"name": "portal_id", "description": "The hub ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deal_pipeline_id": {"name": "deal_pipeline_id", "description": "The ID of the deal's pipeline.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deal_pipeline_stage_id": {"name": "deal_pipeline_stage_id", "description": "The ID of the deal's pipeline stage.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "owner_id": {"name": "owner_id", "description": "The ID of the deal's owner.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "property_dealname": {"name": "property_dealname", "description": "The name you have given this deal.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "property_description": {"name": "property_description", "description": "A brief description of the deal.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "property_amount": {"name": "property_amount", "description": "The total value of the deal in the deal's currency.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "property_closedate": {"name": "property_closedate", "description": "The day the deal is expected to close, or was closed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "property_createdate": {"name": "property_createdate", "description": "The date the deal was created. This property is set automatically by HubSpot.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`deal`"}, "source.hubspot_source.hubspot.deal_stage": {"fqn": ["hubspot_source", "hubspot", "deal_stage"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.deal_stage", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "deal_stage", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "deal_stage", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents a deal stage.", "columns": {"_fivetran_active": {"name": "_fivetran_active", "description": "Boolean indicating whether the deal stage is active.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "The Fivetran calculated exist time of the deal stage.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "The date the deal stage was entered.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "date_entered": {"name": "date_entered", "description": "The timestamp the deal stage was entered.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deal_id": {"name": "deal_id", "description": "Reference to the deal.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "source": {"name": "source", "description": "The relevant source of the deal stage.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "source_id": {"name": "source_id", "description": "Reference to the source.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "value": {"name": "value", "description": "The value of the deal stage. Typically the name of the stage.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`deal_stage`"}, "source.hubspot_source.hubspot.deal_company": {"fqn": ["hubspot_source", "hubspot", "deal_company"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.deal_company", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "deal_company", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "deal_company", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents a 'link' between a deal and company.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "company_id": {"name": "company_id", "description": "The ID of the company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deal_id": {"name": "deal_id", "description": "The ID of the deal.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`deal_company`"}, "source.hubspot_source.hubspot.deal_contact": {"fqn": ["hubspot_source", "hubspot", "deal_contact"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.deal_contact", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "deal_contact", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "deal_contact", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents a 'link' between a deal and a contact.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "contact_id": {"name": "contact_id", "description": "The ID of the contact.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deal_id": {"name": "deal_id", "description": "The ID of the deal.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`deal_contact`"}, "source.hubspot_source.hubspot.deal_pipeline": {"fqn": ["hubspot_source", "hubspot", "deal_pipeline"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.deal_pipeline", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "deal_pipeline", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "deal_pipeline", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents a pipeline in Hubspot.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Timestamp of when Fivetran marked a record as deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "active": {"name": "active", "description": "Whether the stage is currently in use.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "display_order": {"name": "display_order", "description": "Used to determine the order in which the pipelines appear when viewed in HubSpot", "meta": {}, "data_type": null, "quote": null, "tags": []}, "label": {"name": "label", "description": "The human-readable label for the pipeline. The label is used when showing the pipeline in HubSpot.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "pipeline_id": {"name": "pipeline_id", "description": "The ID of the pipeline.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`deal_pipeline`"}, "source.hubspot_source.hubspot.deal_pipeline_stage": {"fqn": ["hubspot_source", "hubspot", "deal_pipeline_stage"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.deal_pipeline_stage", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "deal_pipeline_stage", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "deal_pipeline_stage", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents a pipeline stage in Hubspot.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Timestamp of when Fivetran marked a record as deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "active": {"name": "active", "description": "Whether the pipeline stage is currently in use.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "closed_won": {"name": "closed_won", "description": "Whether the stage represents a Closed Won deal.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "display_order": {"name": "display_order", "description": "Used to determine the order in which the stages appear when viewed in HubSpot.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "label": {"name": "label", "description": "The human-readable label for the stage. The label is used when showing the stage in HubSpot.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "pipeline_id": {"name": "pipeline_id", "description": "The ID of the related pipeline.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "probability": {"name": "probability", "description": "The probability that the deal will close. Used for the deal forecast.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "stage_id": {"name": "stage_id", "description": "The ID of the pipeline stage.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`deal_pipeline_stage`"}, "source.hubspot_source.hubspot.deal_property_history": {"fqn": ["hubspot_source", "hubspot", "deal_property_history"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.deal_property_history", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "deal_property_history", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "deal_property_history", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents a change to deal record in Hubspot.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deal_id": {"name": "deal_id", "description": "The ID of the related deal record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the field being changed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "source": {"name": "source", "description": "The source (reason) of the change.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "source_id": {"name": "source_id", "description": "The ID of the object that caused the change, if applicable.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "timestamp": {"name": "timestamp", "description": "The timestamp the changed occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "value": {"name": "value", "description": "The new value of the field.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`deal_property_history`"}, "source.hubspot_source.hubspot.email_campaign": {"fqn": ["hubspot_source", "hubspot", "email_campaign"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.email_campaign", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "email_campaign", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "email_campaign", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents an email campaign in Hubspot.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "app_id": {"name": "app_id", "description": "The app ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "app_name": {"name": "app_name", "description": "The app name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "content_id": {"name": "content_id", "description": "The ID of the content.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the email campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the email campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "num_included": {"name": "num_included", "description": "The number of messages included as part of the email campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "num_queued": {"name": "num_queued", "description": "The number of messages queued as part of the email campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sub_type": {"name": "sub_type", "description": "The email campaign sub-type.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "subject": {"name": "subject", "description": "The subject of the email campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "type": {"name": "type", "description": "The email campaign type.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`email_campaign`"}, "source.hubspot_source.hubspot.email_event": {"fqn": ["hubspot_source", "hubspot", "email_event"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.email_event", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "email_event", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "email_event", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 84, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents an email event in Hubspot.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "app_id": {"name": "app_id", "description": "The ID of the app that sent the email.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "caused_by_created": {"name": "caused_by_created", "description": "The timestamp of the event that caused this event.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "caused_by_id": {"name": "caused_by_id", "description": "The event ID which uniquely identifies the event which directly caused this event. If not applicable, this property is omitted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created": {"name": "created", "description": "The created timestamp of the event.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "email_campaign_id": {"name": "email_campaign_id", "description": "The ID of the related email campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "filtered_event": {"name": "filtered_event", "description": "A boolean representing whether the event has been filtered out of reporting based on customer reports settings or not.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the event.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "obsoleted_by_created": {"name": "obsoleted_by_created", "description": "The timestamp of the event that made the current event obsolete.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "obsoleted_by_id": {"name": "obsoleted_by_id", "description": "The event ID which uniquely identifies the follow-on event which makes this current event obsolete. If not applicable, this property is omitted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "portal_id": {"name": "portal_id", "description": "The hub ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "recipient": {"name": "recipient", "description": "The email address of the contact related to the event.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sent_by_created": {"name": "sent_by_created", "description": "The timestamp of the SENT event related to this event.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sent_by_id": {"name": "sent_by_id", "description": "The event ID which uniquely identifies the email message's SENT event. If not applicable, this property is omitted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "type": {"name": "type", "description": "The type of event.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`email_event`"}, "source.hubspot_source.hubspot.email_event_bounce": {"fqn": ["hubspot_source", "hubspot", "email_event_bounce"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.email_event_bounce", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "email_event_bounce", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "email_event_bounce", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents a BOUNCE email event.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "category": {"name": "category", "description": "The best-guess of the type of bounce encountered.\nIf an appropriate category couldn't be determined, this property is omitted. See below for the possible values.\nNote that this is a derived value, and may be modified at any time to improve the accuracy of classification.\n", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the event.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "response": {"name": "response", "description": "The full response from the recipient's email server.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "The status code returned from the recipient's email server.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`email_event_bounce`"}, "source.hubspot_source.hubspot.email_event_click": {"fqn": ["hubspot_source", "hubspot", "email_event_click"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.email_event_click", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "email_event_click", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "email_event_click", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents a CLICK email event.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "browser": {"name": "browser", "description": "A JSON object representing the browser which serviced the event. Its comprised of the properties: 'name', 'family', 'producer', 'producer_url', 'type', 'url', 'version'.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the event.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ip_address": {"name": "ip_address", "description": "The contact's IP address when the event occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "location": {"name": "location", "description": "A JSON object representing the location where the event occurred. It's comprised of the properties: 'city', 'state', 'country'.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "referer": {"name": "referer", "description": "The URL of the webpage that linked to the URL clicked. Whether this is provided, and what its value is, is determined by the recipient's email client.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "url": {"name": "url", "description": "The URL within the message that the recipient clicked.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "user_agent": {"name": "user_agent", "description": "The user agent responsible for the event, e.g. \u201cMozilla/5.0 (Macintosh; Intel Mac OS X 10_8_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.95 Safari/537.36\u201d", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`email_event_click`"}, "source.hubspot_source.hubspot.email_event_deferred": {"fqn": ["hubspot_source", "hubspot", "email_event_deferred"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.email_event_deferred", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "email_event_deferred", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "email_event_deferred", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents a DEFERRED email event.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "attempt": {"name": "attempt", "description": "The delivery attempt number.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the event.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "response": {"name": "response", "description": "The full response from the recipient's email server.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`email_event_deferred`"}, "source.hubspot_source.hubspot.email_event_delivered": {"fqn": ["hubspot_source", "hubspot", "email_event_delivered"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.email_event_delivered", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "email_event_delivered", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "email_event_delivered", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents a DELIVERED email event.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the event.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "response": {"name": "response", "description": "The full response from the recipient's email server.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "smtp_id": {"name": "smtp_id", "description": "An ID attached to the message by HubSpot.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`email_event_delivered`"}, "source.hubspot_source.hubspot.email_event_dropped": {"fqn": ["hubspot_source", "hubspot", "email_event_dropped"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.email_event_dropped", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "email_event_dropped", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "email_event_dropped", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents a DROPPED email event.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bcc": {"name": "bcc", "description": "The 'bcc' field of the email message.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cc": {"name": "cc", "description": "The 'cc' field of the email message.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "drop_message": {"name": "drop_message", "description": "The raw message describing why the email message was dropped. This will usually provide additional details beyond 'dropReason'.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "drop_reason": {"name": "drop_reason", "description": "The reason why the email message was dropped. See below for the possible values.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "from": {"name": "from", "description": "The 'from' field of the email message.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the event.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "reply_to": {"name": "reply_to", "description": "The 'reply-to' field of the email message.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "subject": {"name": "subject", "description": "The subject line of the email message.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`email_event_dropped`"}, "source.hubspot_source.hubspot.email_event_forward": {"fqn": ["hubspot_source", "hubspot", "email_event_forward"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.email_event_forward", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "email_event_forward", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "email_event_forward", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents a FORWARD email event.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "browser": {"name": "browser", "description": "A JSON object representing the browser which serviced the event. Its comprised of the properties: 'name', 'family', 'producer', 'producer_url', 'type', 'url', 'version'.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the event.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ip_address": {"name": "ip_address", "description": "The contact's IP address when the event occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "location": {"name": "location", "description": "A JSON object representing the location where the event occurred. It's comprised of the properties: 'city', 'state', 'country'.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "user_agent": {"name": "user_agent", "description": "The user agent responsible for the event, e.g. \u201cMozilla/5.0 (Macintosh; Intel Mac OS X 10_8_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.95 Safari/537.36\u201d", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`email_event_forward`"}, "source.hubspot_source.hubspot.email_event_open": {"fqn": ["hubspot_source", "hubspot", "email_event_open"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.email_event_open", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "email_event_open", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "email_event_open", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents a OPEN email event.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "browser": {"name": "browser", "description": "A JSON object representing the browser which serviced the event. Its comprised of the properties: 'name', 'family', 'producer', 'producer_url', 'type', 'url', 'version'.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "duration": {"name": "duration", "description": "If provided and nonzero, the approximate number of milliseconds the user had opened the email.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the event.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ip_address": {"name": "ip_address", "description": "The contact's IP address when the event occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "location": {"name": "location", "description": "A JSON object representing the location where the event occurred. It's comprised of the properties: 'city', 'state', 'country'.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "user_agent": {"name": "user_agent", "description": "The user agent responsible for the event, e.g. \u201cMozilla/5.0 (Macintosh; Intel Mac OS X 10_8_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.95 Safari/537.36\u201d", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`email_event_open`"}, "source.hubspot_source.hubspot.email_event_print": {"fqn": ["hubspot_source", "hubspot", "email_event_print"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.email_event_print", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "email_event_print", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "email_event_print", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents a PRINT email event.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "browser": {"name": "browser", "description": "A JSON object representing the browser which serviced the event. Its comprised of the properties: 'name', 'family', 'producer', 'producer_url', 'type', 'url', 'version'.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the event.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ip_address": {"name": "ip_address", "description": "The contact's IP address when the event occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "location": {"name": "location", "description": "A JSON object representing the location where the event occurred. It's comprised of the properties: 'city', 'state', 'country'.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "user_agent": {"name": "user_agent", "description": "The user agent responsible for the event, e.g. \u201cMozilla/5.0 (Macintosh; Intel Mac OS X 10_8_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.95 Safari/537.36\u201d", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`email_event_print`"}, "source.hubspot_source.hubspot.email_event_sent": {"fqn": ["hubspot_source", "hubspot", "email_event_sent"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.email_event_sent", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "email_event_sent", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "email_event_sent", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents a SENT email event.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bcc": {"name": "bcc", "description": "The 'cc' field of the email message.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cc": {"name": "cc", "description": "The 'bcc' field of the email message.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "from": {"name": "from", "description": "The 'from' field of the email message.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the event.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "reply_to": {"name": "reply_to", "description": "The 'reply-to' field of the email message.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "subject": {"name": "subject", "description": "The subject line of the email message.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`email_event_sent`"}, "source.hubspot_source.hubspot.email_event_spam_report": {"fqn": ["hubspot_source", "hubspot", "email_event_spam_report"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.email_event_spam_report", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "email_event_spam_report", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "email_event_spam_report", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents a SPAM_REPORT email event.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the event.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ip_address": {"name": "ip_address", "description": "The contact's IP address when the event occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "user_agent": {"name": "user_agent", "description": "The user agent responsible for the event, e.g. \u201cMozilla/5.0 (Macintosh; Intel Mac OS X 10_8_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.95 Safari/537.36\u201d", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`email_event_spam_report`"}, "source.hubspot_source.hubspot.email_event_status_change": {"fqn": ["hubspot_source", "hubspot", "email_event_status_change"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.email_event_status_change", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "email_event_status_change", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "email_event_status_change", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents a STATUS_CHANGE email event in Hubspot.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bounced": {"name": "bounced", "description": "A HubSpot employee explicitly initiated the status change to block messages to the recipient.\n(Note this usage has been deprecated in favor of dropping messages with a 'dropReason' of BLOCKED_ADDRESS.)\n", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the event.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "portal_subscription_status": {"name": "portal_subscription_status", "description": "The recipient's portal subscription status.\nNote that if this is 'UNSUBSCRIBED', the property 'subscriptions' is not necessarily an empty array, nor are all\nsubscriptions contained in it necessarily going to have their statuses set to 'UNSUBSCRIBED'.)\n", "meta": {}, "data_type": null, "quote": null, "tags": []}, "requested_by": {"name": "requested_by", "description": "The email address of the person requesting the change on behalf of the recipient. If not applicable, this property is omitted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "source": {"name": "source", "description": "The source of the subscription change.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "subscriptions": {"name": "subscriptions", "description": "An array of JSON objects representing the status of subscriptions for the recipient.\nEach JSON subscription object is comprised of the properties: 'id', 'status'.\n", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`email_event_status_change`"}, "source.hubspot_source.hubspot.email_subscription": {"fqn": ["hubspot_source", "hubspot", "email_subscription"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.email_subscription", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "email_subscription", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "email_subscription", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents an email subscription in Hubspot.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "active": {"name": "active", "description": "Whether the subscription is active.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "The description of the subscription.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the email subscription.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the email subscription.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "portal_id": {"name": "portal_id", "description": "The hub ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`email_subscription`"}, "source.hubspot_source.hubspot.email_subscription_change": {"fqn": ["hubspot_source", "hubspot", "email_subscription_change"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.email_subscription_change", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "email_subscription_change", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "email_subscription_change", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents a change to an email subscription in Hubspot.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "caused_by_event_id": {"name": "caused_by_event_id", "description": "The ID of the event that caused the subscription change.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "change": {"name": "change", "description": "The change which occurred. This enumeration is specific to the 'changeType'; see below for the possible values.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "change_type": {"name": "change_type", "description": "The type of change which occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "email_subscription_id": {"name": "email_subscription_id", "description": "The ID of the related email subscription.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "portal_id": {"name": "portal_id", "description": "The hub ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "recipient": {"name": "recipient", "description": "The email address of the related contact.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "source": {"name": "source", "description": "The source of the subscription change.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "timestamp": {"name": "timestamp", "description": "The timestamp when this change occurred. If 'causedByEvent' is present, this will be absent.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`email_subscription_change`"}, "source.hubspot_source.hubspot.engagement": {"fqn": ["hubspot_source", "hubspot", "engagement"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.engagement", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "engagement", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "engagement", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents an engagement", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "active": {"name": "active", "description": "Whether the engagement is currently being shown in the UI.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "activity_type": {"name": "activity_type", "description": "The engagement's activity type.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "A timestamp representing when the engagement was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the engagement.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_updated": {"name": "last_updated", "description": "A timestamp in representing when the engagement was last updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "owner_id": {"name": "owner_id", "description": "The ID of the engagement's owner.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "portal_id": {"name": "portal_id", "description": "The hub ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "timestamp": {"name": "timestamp", "description": "A timestamp in representing the time that the engagement should appear in the timeline.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "type": {"name": "type", "description": "One of NOTE, EMAIL, TASK, MEETING, or CALL, the type of the engagement.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`engagement`"}, "source.hubspot_source.hubspot.engagement_call": {"fqn": ["hubspot_source", "hubspot", "engagement_call"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.engagement_call", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "engagement_call", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "engagement_call", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents a CALL engagement event.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "body": {"name": "body", "description": "The details or notes of the call", "meta": {}, "data_type": null, "quote": null, "tags": []}, "disposition": {"name": "disposition", "description": "The internal ID for the call outcome.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "duration_milliseconds": {"name": "duration_milliseconds", "description": "The length of the call in milliseconds", "meta": {}, "data_type": null, "quote": null, "tags": []}, "engagement_id": {"name": "engagement_id", "description": "The ID of the engagement.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "external_account_id": {"name": "external_account_id", "description": "For calls made in HubSpot, this will be the internal ID of the account used to make the call.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "external_id": {"name": "external_id", "description": "For calls made in HubSpot, this will be the internal ID of the call.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "from_number": {"name": "from_number", "description": "The phone number that was used as the from number.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "recording_url": {"name": "recording_url", "description": "The URL of the recording file .", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "Will be COMPLETED once the call is finished.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "to_number": {"name": "to_number", "description": "The phone number that was called.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`engagement_call`"}, "source.hubspot_source.hubspot.engagement_company": {"fqn": ["hubspot_source", "hubspot", "engagement_company"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.engagement_company", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "engagement_company", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "engagement_company", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents a 'link' between a company and an engagement.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "company_id": {"name": "company_id", "description": "The ID of the related company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "engagement_id": {"name": "engagement_id", "description": "The ID of the related engagement.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`engagement_company`"}, "source.hubspot_source.hubspot.engagement_contact": {"fqn": ["hubspot_source", "hubspot", "engagement_contact"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.engagement_contact", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "engagement_contact", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "engagement_contact", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents a 'link' between a contact and an engagement.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "contact_id": {"name": "contact_id", "description": "The ID of the related contact.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "engagement_id": {"name": "engagement_id", "description": "The ID of the related engagement.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`engagement_contact`"}, "source.hubspot_source.hubspot.engagement_deal": {"fqn": ["hubspot_source", "hubspot", "engagement_deal"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.engagement_deal", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "engagement_deal", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "engagement_deal", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents a 'link' between a deal and an engagement.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deal_id": {"name": "deal_id", "description": "The ID of the related contact.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "engagement_id": {"name": "engagement_id", "description": "The ID of the related engagement.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`engagement_deal`"}, "source.hubspot_source.hubspot.engagement_email": {"fqn": ["hubspot_source", "hubspot", "engagement_email"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.engagement_email", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "engagement_email", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "engagement_email", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents an EMAIL engagement event.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "attached_video_id": {"name": "attached_video_id", "description": "The ID of the video attached.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "attached_video_opened": {"name": "attached_video_opened", "description": "Whether the the attached video was opened.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "attached_video_watched": {"name": "attached_video_watched", "description": "Whether the the attached video was watched.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "email_send_event_id_created": {"name": "email_send_event_id_created", "description": "When the SENT event occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "email_send_event_id_id": {"name": "email_send_event_id_id", "description": "The ID of the related SENT email event.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "engagement_id": {"name": "engagement_id", "description": "The ID of the engagement.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "error_message": {"name": "error_message", "description": "The error message, if applicable.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "from_email": {"name": "from_email", "description": "The email address of the sender.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "from_first_name": {"name": "from_first_name", "description": "The first name of the sender.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "from_last_name": {"name": "from_last_name", "description": "The last name of the sender.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "html": {"name": "html", "description": "The body of the HTML email.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "media_processing_status": {"name": "media_processing_status", "description": "The processing status of the media content in the email.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "message_id": {"name": "message_id", "description": "The ID of the message.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sent_via": {"name": "sent_via", "description": "How the email was sent.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "The status of the engagement.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "subject": {"name": "subject", "description": "The subject of the email.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "text": {"name": "text", "description": "The body of the text-only email.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "thread_id": {"name": "thread_id", "description": "The ID of the email thread.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`engagement_email`"}, "source.hubspot_source.hubspot.engagement_email_cc": {"fqn": ["hubspot_source", "hubspot", "engagement_email_cc"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.engagement_email_cc", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "engagement_email_cc", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "engagement_email_cc", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents a CC'd email address as part of an EMAIL engagement.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "email": {"name": "email", "description": "The email address of the recipient.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "engagement_id": {"name": "engagement_id", "description": "The ID of the related engagement.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "first_name": {"name": "first_name", "description": "The first name of the recipient.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_name": {"name": "last_name", "description": "The last name of the recipient.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`engagement_email_cc`"}, "source.hubspot_source.hubspot.engagement_email_to": {"fqn": ["hubspot_source", "hubspot", "engagement_email_to"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.engagement_email_to", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "engagement_email_to", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "engagement_email_to", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents a TO email address as part of an EMAIL engagement.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "email": {"name": "email", "description": "The email address of the recipient.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "engagement_id": {"name": "engagement_id", "description": "The ID of the related engagement.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "first_name": {"name": "first_name", "description": "The first name of the recipient.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_name": {"name": "last_name", "description": "The last name of the recipient.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`engagement_email_to`"}, "source.hubspot_source.hubspot.engagement_meeting": {"fqn": ["hubspot_source", "hubspot", "engagement_meeting"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.engagement_meeting", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "engagement_meeting", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "engagement_meeting", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents a MEETING engagement event.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "body": {"name": "body", "description": "The details or body of the meeting.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "end_time": {"name": "end_time", "description": "A timestamp representing the end time of the meeting", "meta": {}, "data_type": null, "quote": null, "tags": []}, "engagement_id": {"name": "engagement_id", "description": "The ID of the engagement.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "external_url": {"name": "external_url", "description": "The external URL of the engagement.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "meeting_outcome": {"name": "meeting_outcome", "description": "The meeting outcome.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "pre_meeting_prospect_reminders": {"name": "pre_meeting_prospect_reminders", "description": "TBD", "meta": {}, "data_type": null, "quote": null, "tags": []}, "source": {"name": "source", "description": "The source of the meeting.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "source_id": {"name": "source_id", "description": "The internal ID of the meeting source.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "start_time": {"name": "start_time", "description": "A timestamp representing the start time of the meeting", "meta": {}, "data_type": null, "quote": null, "tags": []}, "title": {"name": "title", "description": "The title or subject of the meeting", "meta": {}, "data_type": null, "quote": null, "tags": []}, "web_conference_meeting_id": {"name": "web_conference_meeting_id", "description": "The ID of the web conference meeting.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`engagement_meeting`"}, "source.hubspot_source.hubspot.engagement_note": {"fqn": ["hubspot_source", "hubspot", "engagement_note"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.engagement_note", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "engagement_note", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "engagement_note", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents a NOTE engagement event.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "body": {"name": "body", "description": "The body of the note. The body has a limit of 65536 characters.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "engagement_id": {"name": "engagement_id", "description": "The ID of the engagement.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`engagement_note`"}, "source.hubspot_source.hubspot.engagement_task": {"fqn": ["hubspot_source", "hubspot", "engagement_task"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.engagement_task", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "engagement_task", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "engagement_task", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents a TASK engagement event.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "body": {"name": "body", "description": "The body or details of the task.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "completion_date": {"name": "completion_date", "description": "The timestamp the task was completed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "engagement_id": {"name": "engagement_id", "description": "The ID of the engagement.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "for_object_type": {"name": "for_object_type", "description": "One of CONTACT or COMPANY, what object type the task is for.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_all_day": {"name": "is_all_day", "description": "Whether it is an all day task.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "priority": {"name": "priority", "description": "The priority of the task.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "probability_to_complete": {"name": "probability_to_complete", "description": "The probability that the task will be completed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "The status of the task.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "subject": {"name": "subject", "description": "The subject or title of the task", "meta": {}, "data_type": null, "quote": null, "tags": []}, "task_type": {"name": "task_type", "description": "The type of task", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`engagement_task`"}, "source.hubspot_source.hubspot.form": {"fqn": ["hubspot_source", "hubspot", "form"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.form", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "form", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "form", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents a Hubspot form.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Timestamp of when Fivetran marked a record as deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "A timestamp for when the form was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "css_class": {"name": "css_class", "description": "The CSS classes assigned to the form.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "follow_up_id": {"name": "follow_up_id", "description": "This field is no longer used.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "guid": {"name": "guid", "description": "The internal ID of the form", "meta": {}, "data_type": null, "quote": null, "tags": []}, "lead_nurturing_campaign_id": {"name": "lead_nurturing_campaign_id", "description": "TBD", "meta": {}, "data_type": null, "quote": null, "tags": []}, "method": {"name": "method", "description": "This field is no longer used.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the form", "meta": {}, "data_type": null, "quote": null, "tags": []}, "notify_recipients": {"name": "notify_recipients", "description": "A comma-separated list of user IDs that should receive submission notifications.\nEmail addresses will be returned for individuals who aren't users.\n", "meta": {}, "data_type": null, "quote": null, "tags": []}, "portal_id": {"name": "portal_id", "description": "The hub ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "redirect": {"name": "redirect", "description": "The URL that the visitor will be redirected to after filling out the form.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "submit_text": {"name": "submit_text", "description": "The text used for the submit button.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "A timestamp for when the form was last updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`form`"}, "source.hubspot_source.hubspot.owner": {"fqn": ["hubspot_source", "hubspot", "owner"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.owner", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "owner", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "owner", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents an owner/user in Hubspot.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "A timestamp for when the owner was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "email": {"name": "email", "description": "The email address of the owner.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "first_name": {"name": "first_name", "description": "The first name of the owner.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_name": {"name": "last_name", "description": "The last name of the owner.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "owner_id": {"name": "owner_id", "description": "The ID of the owner.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "portal_id": {"name": "portal_id", "description": "The hub ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "type": {"name": "type", "description": "The type of owner.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "A timestamp for when the owner was last updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`owner`"}, "source.hubspot_source.hubspot.ticket_company": {"fqn": ["hubspot_source", "hubspot", "ticket_company"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.ticket_company", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "ticket_company", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "ticket_company", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents a 'link' between a ticket and company.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ticket_id": {"name": "ticket_id", "description": "The ID of the related ticket.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "company_id": {"name": "company_id", "description": "The ID of the related company.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`ticket_company`"}, "source.hubspot_source.hubspot.ticket_contact": {"fqn": ["hubspot_source", "hubspot", "ticket_contact"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.ticket_contact", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "ticket_contact", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "ticket_contact", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents a 'link' between a ticket and a contact.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ticket_id": {"name": "ticket_id", "description": "The ID of the related ticket.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "contact_id": {"name": "contact_id", "description": "The ID of the related contact.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`ticket_contact`"}, "source.hubspot_source.hubspot.ticket_deal": {"fqn": ["hubspot_source", "hubspot", "ticket_deal"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.ticket_deal", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "ticket_deal", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "ticket_deal", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents a 'link' between a ticket and a deal.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ticket_id": {"name": "ticket_id", "description": "The ID of the related ticket.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deal_id": {"name": "deal_id", "description": "The ID of the related deal.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`ticket_deal`"}, "source.hubspot_source.hubspot.ticket_engagement": {"fqn": ["hubspot_source", "hubspot", "ticket_engagement"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.ticket_engagement", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "ticket_engagement", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "ticket_engagement", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents a 'link' between a ticket and an engagement.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ticket_id": {"name": "ticket_id", "description": "The ID of the related ticket.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "engagement_id": {"name": "engagement_id", "description": "The ID of the related deal.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`ticket_engagement`"}, "source.hubspot_source.hubspot.ticket_pipeline_stage": {"fqn": ["hubspot_source", "hubspot", "ticket_pipeline_stage"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.ticket_pipeline_stage", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "ticket_pipeline_stage", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "ticket_pipeline_stage", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents a ticket pipeline stage.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Timestamp of when Fivetran marked a record as deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "active": {"name": "active", "description": "Boolean indicating whether the pipeline stage is active.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "display_order": {"name": "display_order", "description": "Used to determine the order in which the stages appear when viewed in HubSpot.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_closed": {"name": "is_closed", "description": "Boolean indicating if the pipeline stage is closed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "label": {"name": "label", "description": "The human-readable label for the stage. The label is used when showing the stage in HubSpot.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "pipeline_id": {"name": "pipeline_id", "description": "The ID of the pipeline.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "stage_id": {"name": "stage_id", "description": "The ID of the pipeline stage.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ticket_state": {"name": "ticket_state", "description": "State of the ticket.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`ticket_pipeline_stage`"}, "source.hubspot_source.hubspot.ticket_pipeline": {"fqn": ["hubspot_source", "hubspot", "ticket_pipeline"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.ticket_pipeline", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "ticket_pipeline", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "ticket_pipeline", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents a ticket pipeline.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Timestamp of when Fivetran marked a record as deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "active": {"name": "active", "description": "Boolean indicating whether the pipeline is active.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "display_order": {"name": "display_order", "description": "Used to determine the order in which the stages appear when viewed in HubSpot.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "label": {"name": "label", "description": "The human-readable label for the stage. The label is used when showing the stage in HubSpot.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "object_type_id": {"name": "object_type_id", "description": "Reference to the object type.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "pipeline_id": {"name": "pipeline_id", "description": "Reference to the pipeline.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`ticket_pipeline`"}, "source.hubspot_source.hubspot.ticket_property_history": {"fqn": ["hubspot_source", "hubspot", "ticket_property_history"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.ticket_property_history", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "ticket_property_history", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "ticket_property_history", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents a change to ticket record in Hubspot.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "source": {"name": "source", "description": "The source (reason) of the change.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "source_id": {"name": "source_id", "description": "The ID of the object that caused the change, if applicable.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "timestamp_instant": {"name": "timestamp_instant", "description": "The timestamp the changed occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ticket_id": {"name": "ticket_id", "description": "The ID of the related ticket record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the field being changed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "value": {"name": "value", "description": "The new value of the field.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`ticket_property_history`"}, "source.hubspot_source.hubspot.ticket": {"fqn": ["hubspot_source", "hubspot", "ticket"], "database": "dbt-package-testing", "schema": "hubspot", "unique_id": "source.hubspot_source.hubspot.ticket", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "models/src_hubspot.yml", "original_file_path": "models/src_hubspot.yml", "name": "ticket", "source_name": "hubspot", "source_description": "", "loader": "Fivetran", "identifier": "ticket", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": null, "error_after": null, "filter": null}, "external": null, "description": "Each record represents a ticket in Hubspot.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "ID of the ticket.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_deleted": {"name": "is_deleted", "description": "Whether the record was deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "portal_id": {"name": "portal_id", "description": "The hub ID.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "property_closed_date": {"name": "property_closed_date", "description": "The date the ticket was closed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "property_createdate": {"name": "property_createdate", "description": "The date the ticket was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "property_first_agent_reply_date": {"name": "property_first_agent_reply_date", "description": "the date for the first agent reply on the ticket.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "property_hs_pipeline": {"name": "property_hs_pipeline", "description": "The ID of the ticket's pipeline.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "property_hs_pipeline_stage": {"name": "property_hs_pipeline_stage", "description": "The ID of the ticket's pipeline stage.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "property_hs_ticket_priority": {"name": "property_hs_ticket_priority", "description": "The priority of the ticket.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "property_hs_ticket_category": {"name": "property_hs_ticket_category", "description": "The category of the ticket.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "property_hubspot_owner_id": {"name": "property_hubspot_owner_id", "description": "The ID of the deal's owner.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "property_subject": {"name": "property_subject", "description": "Short summary of ticket.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "property_content": {"name": "property_content", "description": "Text in body of the ticket.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`hubspot`.`ticket`"}}, "macros": {"macro.dbt_bigquery.date_sharded_table": {"unique_id": "macro.dbt_bigquery.date_sharded_table", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/etc.sql", "original_file_path": "macros/etc.sql", "name": "date_sharded_table", "macro_sql": "{% macro date_sharded_table(base_name) %}\n {{ return(base_name ~ \"[DBT__PARTITION_DATE]\") }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.grant_access_to": {"unique_id": "macro.dbt_bigquery.grant_access_to", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/etc.sql", "original_file_path": "macros/etc.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.get_partitions_metadata": {"unique_id": "macro.dbt_bigquery.get_partitions_metadata", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/etc.sql", "original_file_path": "macros/etc.sql", "name": "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 -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery__get_catalog": {"unique_id": "macro.dbt_bigquery.bigquery__get_catalog", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/catalog.sql", "original_file_path": "macros/catalog.sql", "name": "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 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\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 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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.partition_by": {"unique_id": "macro.dbt_bigquery.partition_by", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "partition_by", "macro_sql": "{% macro partition_by(partition_config) -%}\n {%- if partition_config is none -%}\n {% do return('') %}\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", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.cluster_by": {"unique_id": "macro.dbt_bigquery.cluster_by", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "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\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery_table_options": {"unique_id": "macro.dbt_bigquery.bigquery_table_options", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery_table_options", "macro_sql": "{% macro bigquery_table_options(config, node, temporary) %}\n {% set opts = adapter.get_table_options(config, node, temporary) %}\n\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", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery__create_table_as": {"unique_id": "macro.dbt_bigquery.bigquery__create_table_as", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__create_table_as", "macro_sql": "{% macro bigquery__create_table_as(temporary, relation, 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\n {{ sql_header if sql_header is not none }}\n\n create or replace table {{ relation }}\n {{ partition_by(partition_config) }}\n {{ cluster_by(raw_cluster_by) }}\n {{ bigquery_table_options(config, model, temporary) }}\n as (\n {{ sql }}\n );\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery__create_view_as": {"unique_id": "macro.dbt_bigquery.bigquery__create_view_as", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "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_table_options(config, model, temporary=false) }}\n as {{ sql }};\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery__create_schema": {"unique_id": "macro.dbt_bigquery.bigquery__create_schema", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__create_schema", "macro_sql": "{% macro bigquery__create_schema(relation) -%}\n {{ adapter.create_schema(relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery__drop_schema": {"unique_id": "macro.dbt_bigquery.bigquery__drop_schema", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__drop_schema", "macro_sql": "{% macro bigquery__drop_schema(relation) -%}\n {{ adapter.drop_schema(relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery__drop_relation": {"unique_id": "macro.dbt_bigquery.bigquery__drop_relation", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery__get_columns_in_relation": {"unique_id": "macro.dbt_bigquery.bigquery__get_columns_in_relation", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__get_columns_in_relation", "macro_sql": "{% macro bigquery__get_columns_in_relation(relation) -%}\n {{ return(adapter.get_columns_in_relation(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery__list_relations_without_caching": {"unique_id": "macro.dbt_bigquery.bigquery__list_relations_without_caching", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery__current_timestamp": {"unique_id": "macro.dbt_bigquery.bigquery__current_timestamp", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__current_timestamp", "macro_sql": "{% macro bigquery__current_timestamp() -%}\n CURRENT_TIMESTAMP()\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery__snapshot_string_as_time": {"unique_id": "macro.dbt_bigquery.bigquery__snapshot_string_as_time", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__snapshot_string_as_time", "macro_sql": "{% macro bigquery__snapshot_string_as_time(timestamp) -%}\n {%- set result = 'TIMESTAMP(\"' ~ timestamp ~ '\")' -%}\n {{ return(result) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery__list_schemas": {"unique_id": "macro.dbt_bigquery.bigquery__list_schemas", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__list_schemas", "macro_sql": "{% macro bigquery__list_schemas(database) -%}\n {{ return(adapter.list_schemas(database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery__check_schema_exists": {"unique_id": "macro.dbt_bigquery.bigquery__check_schema_exists", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery__persist_docs": {"unique_id": "macro.dbt_bigquery.bigquery__persist_docs", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery__alter_column_comment": {"unique_id": "macro.dbt_bigquery.bigquery__alter_column_comment", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__alter_column_comment", "macro_sql": "{% macro bigquery__alter_column_comment(relation, column_dict) -%}\n {% do adapter.update_columns(relation, column_dict) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery__rename_relation": {"unique_id": "macro.dbt_bigquery.bigquery__rename_relation", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__rename_relation", "macro_sql": "{% macro bigquery__rename_relation(from_relation, to_relation) -%}\n {% do adapter.rename_relation(from_relation, to_relation) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery__alter_column_type": {"unique_id": "macro.dbt_bigquery.bigquery__alter_column_type", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__alter_column_type", "macro_sql": "{% macro bigquery__alter_column_type(relation, column_name, new_column_type) -%}\n {#\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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery__create_csv_table": {"unique_id": "macro.dbt_bigquery.bigquery__create_csv_table", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/materializations/seed.sql", "original_file_path": "macros/materializations/seed.sql", "name": "bigquery__create_csv_table", "macro_sql": "{% macro bigquery__create_csv_table(model, agate_table) %}\n -- no-op\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery__reset_csv_table": {"unique_id": "macro.dbt_bigquery.bigquery__reset_csv_table", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/materializations/seed.sql", "original_file_path": "macros/materializations/seed.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery__load_csv_rows": {"unique_id": "macro.dbt_bigquery.bigquery__load_csv_rows", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/materializations/seed.sql", "original_file_path": "macros/materializations/seed.sql", "name": "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 {% 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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery__handle_existing_table": {"unique_id": "macro.dbt_bigquery.bigquery__handle_existing_table", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/materializations/view.sql", "original_file_path": "macros/materializations/view.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.materialization_view_bigquery": {"unique_id": "macro.dbt_bigquery.materialization_view_bigquery", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/materializations/view.sql", "original_file_path": "macros/materializations/view.sql", "name": "materialization_view_bigquery", "macro_sql": "{% materialization view, adapter='bigquery' -%}\n {% set to_return = create_or_replace_view(run_outside_transaction_hooks=False) %}\n\n {% set target_relation = this.incorporate(type='view') %}\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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.make_date_partitioned_table": {"unique_id": "macro.dbt_bigquery.make_date_partitioned_table", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/materializations/table.sql", "original_file_path": "macros/materializations/table.sql", "name": "make_date_partitioned_table", "macro_sql": "{% macro make_date_partitioned_table(model, relation, dates, should_create, verbose=False) %}\n\n {% if should_create %}\n {{ adapter.make_date_partitioned_table(relation) }}\n {% endif %}\n\n {% for date in dates %}\n {% set date = (date | string) %}\n {% if verbose %}\n {% set table_start_time = modules.datetime.datetime.now().strftime(\"%H:%M:%S\") %}\n {{ log(table_start_time ~ ' | -> Running for day ' ~ date, info=True) }}\n {% endif %}\n\n {% set fixed_sql = model['compiled_sql'] | replace('[DBT__PARTITION_DATE]', date) %}\n {% set _ = adapter.execute_model(model, 'table', fixed_sql, decorator=date) %}\n {% endfor %}\n\n {% set num_days = dates | length %}\n {% if num_days == 1 %}\n {% set result_str = 'CREATED 1 PARTITION' %}\n {% else %}\n {% set result_str = 'CREATED ' ~ num_days ~ ' PARTITIONS' %}\n {% endif %}\n\n {{ store_result('main', response=result_str) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.materialization_table_bigquery": {"unique_id": "macro.dbt_bigquery.materialization_table_bigquery", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/materializations/table.sql", "original_file_path": "macros/materializations/table.sql", "name": "materialization_table_bigquery", "macro_sql": "{% materialization table, adapter='bigquery' -%}\n\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 {%- set verbose = config.get('verbose', False) -%}\n\n {# partitions: iterate over each partition, running a separate query in a for-loop #}\n {%- set partitions = config.get('partitions') -%}\n\n {% if partitions %}\n {% if partitions is number or partitions is string %}\n {% set partitions = [(partitions | string)] %}\n {% endif %}\n\n {% if partitions is not iterable %}\n {{ exceptions.raise_compiler_error(\"Provided `partitions` configuration is not a list. Got: \" ~ partitions, model) }}\n {% endif %}\n {% endif %}\n\n {{ run_hooks(pre_hooks) }}\n\n {#\n Since dbt uses WRITE_TRUNCATE mode for tables, we only need to drop this thing\n if it is not a table. If it _is_ already a table, then we can overwrite it without downtime\n #}\n {%- if exists_not_as_table -%}\n {{ adapter.drop_relation(old_relation) }}\n {%- endif -%}\n\n -- build model\n {% if partitions %}\n {# Create the dp-table if 1. it does not exist or 2. it existed, but we just dropped it #}\n {%- set should_create = (old_relation is none or exists_not_as_table) -%}\n {{ make_date_partitioned_table(model, target_relation, partitions, should_create, verbose) }}\n {% else %}\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 {% call statement('main') -%}\n {{ create_table_as(False, target_relation, sql) }}\n {% endcall -%}\n {% endif %}\n\n {{ run_hooks(post_hooks) }}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.materialization_copy_bigquery": {"unique_id": "macro.dbt_bigquery.materialization_copy_bigquery", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/materializations/copy.sql", "original_file_path": "macros/materializations/copy.sql", "name": "materialization_copy_bigquery", "macro_sql": "{% materialization copy, adapter='bigquery' -%}\n\n {# Setup #}\n {{ run_hooks(pre_hooks) }}\n\n {# there should be exactly one ref or exactly one source #}\n {% set destination = this.incorporate(type='table') %}\n\n {% set dependency_type = none %}\n {% if (model.refs | length) == 1 and (model.sources | length) == 0 %}\n {% set dependency_type = 'ref' %}\n {% elif (model.refs | length) == 0 and (model.sources | length) == 1 %}\n {% set dependency_type = 'source' %}\n {% else %}\n {% set msg %}\n Expected exactly one ref or exactly one source, instead got {{ model.refs | length }} models and {{ model.sources | length }} sources.\n {% endset %}\n {% do exceptions.raise_compiler_error(msg) %}\n {% endif %}\n\n {% if dependency_type == 'ref' %}\n {% set src = ref(*model.refs[0]) %}\n {% else %}\n {% set src = source(*model.sources[0]) %}\n {% endif %}\n\n {%- set result_str = adapter.copy_table(\n src,\n destination,\n config.get('copy_materialization', 'table')) -%}\n\n {{ store_result('main', response=result_str) }}\n\n {# Clean up #}\n {{ run_hooks(post_hooks) }}\n {{ adapter.commit() }}\n\n {{ return({'relations': [destination]}) }}\n{%- endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.dbt_bigquery_validate_get_incremental_strategy": {"unique_id": "macro.dbt_bigquery.dbt_bigquery_validate_get_incremental_strategy", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/materializations/incremental.sql", "original_file_path": "macros/materializations/incremental.sql", "name": "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\", default=\"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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bq_insert_overwrite": {"unique_id": "macro.dbt_bigquery.bq_insert_overwrite", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/materializations/incremental.sql", "original_file_path": "macros/materializations/incremental.sql", "name": "bq_insert_overwrite", "macro_sql": "{% macro bq_insert_overwrite(tmp_relation, target_relation, sql, unique_key, partition_by, partitions, dest_columns) %}\n {%- set partition_type =\n 'date' if partition_by.data_type in ('timestamp, datetime')\n else partition_by.data_type -%}\n\n {% if partitions is not none and partitions != [] %} {# static #}\n\n {% set predicate -%}\n {{ partition_by.render(alias='DBT_INTERNAL_DEST') }} in (\n {{ partitions | join (', ') }}\n )\n {%- endset %}\n\n {%- set source_sql -%}\n (\n {{sql}}\n )\n {%- endset -%}\n\n {{ get_insert_overwrite_merge_sql(target_relation, source_sql, dest_columns, [predicate], include_sql_header=true) }}\n\n {% else %} {# dynamic #}\n\n {% set predicate -%}\n {{ partition_by.render(alias='DBT_INTERNAL_DEST') }} in unnest(dbt_partitions_for_replacement)\n {%- endset %}\n\n {%- set source_sql -%}\n (\n select * from {{ tmp_relation }}\n )\n {%- endset -%}\n\n -- generated script to merge partitions into {{ target_relation }}\n declare dbt_partitions_for_replacement array<{{ partition_type }}>;\n declare _dbt_max_partition {{ partition_by.data_type }};\n\n set _dbt_max_partition = (\n select max({{ partition_by.field }}) from {{ this }}\n );\n\n -- 1. create a temp table\n {{ create_table_as(True, tmp_relation, sql) }}\n\n -- 2. define partitions to update\n set (dbt_partitions_for_replacement) = (\n select as struct\n array_agg(distinct {{ partition_by.render() }})\n from {{ tmp_relation }}\n );\n\n {#\n TODO: include_sql_header is a hack; consider a better approach that includes\n the sql_header at the materialization-level instead\n #}\n -- 3. run the merge statement\n {{ get_insert_overwrite_merge_sql(target_relation, source_sql, dest_columns, [predicate], include_sql_header=false) }};\n\n -- 4. clean up the temp table\n drop table if exists {{ tmp_relation }}\n\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.materialization_incremental_bigquery": {"unique_id": "macro.dbt_bigquery.materialization_incremental_bigquery", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/materializations/incremental.sql", "original_file_path": "macros/materializations/incremental.sql", "name": "materialization_incremental_bigquery", "macro_sql": "{% materialization incremental, adapter='bigquery' -%}\n\n {%- set unique_key = config.get('unique_key') -%}\n {%- set full_refresh_mode = (should_full_refresh()) -%}\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 {{ run_hooks(pre_hooks) }}\n\n {% if existing_relation is none %}\n {% set build_sql = create_table_as(False, target_relation, sql) %}\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 {% set build_sql = create_table_as(False, target_relation, sql) %}\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 {% set build_sql = create_table_as(False, target_relation, sql) %}\n {% else %}\n {% set dest_columns = adapter.get_columns_in_relation(existing_relation) %}\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 missing_partition_msg -%}\n The 'insert_overwrite' strategy requires the `partition_by` config.\n {%- endset %}\n {% if partition_by is none %}\n {% do exceptions.raise_compiler_error(missing_partition_msg) %}\n {% endif %}\n\n {% set build_sql = bq_insert_overwrite(\n tmp_relation,\n target_relation,\n sql,\n unique_key,\n partition_by,\n partitions,\n dest_columns) %}\n\n {% else %}\n {#-- wrap sql in parens to make it a subquery --#}\n {%- set source_sql -%}\n (\n {{sql}}\n )\n {%- endset -%}\n\n {% set build_sql = get_merge_sql(target_relation, source_sql, unique_key, dest_columns) %}\n\n {% endif %}\n\n {% endif %}\n\n {%- call statement('main') -%}\n {{ build_sql }}\n {% endcall %}\n\n {{ run_hooks(post_hooks) }}\n\n {% set target_relation = this.incorporate(type='table') %}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery__snapshot_hash_arguments": {"unique_id": "macro.dbt_bigquery.bigquery__snapshot_hash_arguments", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/materializations/snapshot.sql", "original_file_path": "macros/materializations/snapshot.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery__create_columns": {"unique_id": "macro.dbt_bigquery.bigquery__create_columns", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/materializations/snapshot.sql", "original_file_path": "macros/materializations/snapshot.sql", "name": "bigquery__create_columns", "macro_sql": "{% macro bigquery__create_columns(relation, columns) %}\n {{ adapter.alter_table_add_columns(relation, columns) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery__post_snapshot": {"unique_id": "macro.dbt_bigquery.bigquery__post_snapshot", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/materializations/snapshot.sql", "original_file_path": "macros/materializations/snapshot.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.statement": {"unique_id": "macro.dbt.statement", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/core.sql", "original_file_path": "macros/core.sql", "name": "statement", "macro_sql": "{% macro statement(name=None, fetch_result=False, auto_begin=True) -%}\n {%- if execute: -%}\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 {%- set res, table = adapter.execute(sql, auto_begin=auto_begin, fetch=fetch_result) -%}\n {%- if name is not none -%}\n {{ store_result(name, response=res, agate_table=table) }}\n {%- endif -%}\n\n {%- endif -%}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.noop_statement": {"unique_id": "macro.dbt.noop_statement", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/core.sql", "original_file_path": "macros/core.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.run_hooks": {"unique_id": "macro.dbt.run_hooks", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/helpers.sql", "original_file_path": "macros/materializations/helpers.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.column_list": {"unique_id": "macro.dbt.column_list", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/helpers.sql", "original_file_path": "macros/materializations/helpers.sql", "name": "column_list", "macro_sql": "{% macro column_list(columns) %}\n {%- for col in columns %}\n {{ col.name }} {% if not loop.last %},{% endif %}\n {% endfor -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.column_list_for_create_table": {"unique_id": "macro.dbt.column_list_for_create_table", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/helpers.sql", "original_file_path": "macros/materializations/helpers.sql", "name": "column_list_for_create_table", "macro_sql": "{% macro column_list_for_create_table(columns) %}\n {%- for col in columns %}\n {{ col.name }} {{ col.data_type }} {%- if not loop.last %},{% endif %}\n {% endfor -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.make_hook_config": {"unique_id": "macro.dbt.make_hook_config", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/helpers.sql", "original_file_path": "macros/materializations/helpers.sql", "name": "make_hook_config", "macro_sql": "{% macro make_hook_config(sql, inside_transaction) %}\n {{ tojson({\"sql\": sql, \"transaction\": inside_transaction}) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.before_begin": {"unique_id": "macro.dbt.before_begin", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/helpers.sql", "original_file_path": "macros/materializations/helpers.sql", "name": "before_begin", "macro_sql": "{% macro before_begin(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.in_transaction": {"unique_id": "macro.dbt.in_transaction", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/helpers.sql", "original_file_path": "macros/materializations/helpers.sql", "name": "in_transaction", "macro_sql": "{% macro in_transaction(sql) %}\n {{ make_hook_config(sql, inside_transaction=True) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.after_commit": {"unique_id": "macro.dbt.after_commit", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/helpers.sql", "original_file_path": "macros/materializations/helpers.sql", "name": "after_commit", "macro_sql": "{% macro after_commit(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.drop_relation_if_exists": {"unique_id": "macro.dbt.drop_relation_if_exists", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/helpers.sql", "original_file_path": "macros/materializations/helpers.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.load_relation": {"unique_id": "macro.dbt.load_relation", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/helpers.sql", "original_file_path": "macros/materializations/helpers.sql", "name": "load_relation", "macro_sql": "{% macro load_relation(relation) %}\n {% do return(adapter.get_relation(\n database=relation.database,\n schema=relation.schema,\n identifier=relation.identifier\n )) -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.should_full_refresh": {"unique_id": "macro.dbt.should_full_refresh", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/helpers.sql", "original_file_path": "macros/materializations/helpers.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.snapshot_merge_sql": {"unique_id": "macro.dbt.snapshot_merge_sql", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshot/snapshot_merge.sql", "name": "snapshot_merge_sql", "macro_sql": "{% macro snapshot_merge_sql(target, source, insert_cols) -%}\n {{ adapter.dispatch('snapshot_merge_sql')(target, source, insert_cols) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__snapshot_merge_sql": {"unique_id": "macro.dbt.default__snapshot_merge_sql", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshot/snapshot_merge.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.strategy_dispatch": {"unique_id": "macro.dbt.strategy_dispatch", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/strategies.sql", "original_file_path": "macros/materializations/snapshot/strategies.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.snapshot_hash_arguments": {"unique_id": "macro.dbt.snapshot_hash_arguments", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/strategies.sql", "original_file_path": "macros/materializations/snapshot/strategies.sql", "name": "snapshot_hash_arguments", "macro_sql": "{% macro snapshot_hash_arguments(args) -%}\n {{ adapter.dispatch('snapshot_hash_arguments')(args) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__snapshot_hash_arguments": {"unique_id": "macro.dbt.default__snapshot_hash_arguments", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/strategies.sql", "original_file_path": "macros/materializations/snapshot/strategies.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.snapshot_get_time": {"unique_id": "macro.dbt.snapshot_get_time", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/strategies.sql", "original_file_path": "macros/materializations/snapshot/strategies.sql", "name": "snapshot_get_time", "macro_sql": "{% macro snapshot_get_time() -%}\n {{ adapter.dispatch('snapshot_get_time')() }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__snapshot_get_time": {"unique_id": "macro.dbt.default__snapshot_get_time", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/strategies.sql", "original_file_path": "macros/materializations/snapshot/strategies.sql", "name": "default__snapshot_get_time", "macro_sql": "{% macro default__snapshot_get_time() -%}\n {{ current_timestamp() }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.snapshot_timestamp_strategy": {"unique_id": "macro.dbt.snapshot_timestamp_strategy", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/strategies.sql", "original_file_path": "macros/materializations/snapshot/strategies.sql", "name": "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/fishtown-analytics/dbt/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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.snapshot_string_as_time": {"unique_id": "macro.dbt.snapshot_string_as_time", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/strategies.sql", "original_file_path": "macros/materializations/snapshot/strategies.sql", "name": "snapshot_string_as_time", "macro_sql": "{% macro snapshot_string_as_time(timestamp) -%}\n {{ adapter.dispatch('snapshot_string_as_time')(timestamp) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__snapshot_string_as_time": {"unique_id": "macro.dbt.default__snapshot_string_as_time", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/strategies.sql", "original_file_path": "macros/materializations/snapshot/strategies.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.snapshot_check_all_get_existing_columns": {"unique_id": "macro.dbt.snapshot_check_all_get_existing_columns", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/strategies.sql", "original_file_path": "macros/materializations/snapshot/strategies.sql", "name": "snapshot_check_all_get_existing_columns", "macro_sql": "{% macro snapshot_check_all_get_existing_columns(node, target_exists) -%}\n {%- set query_columns = get_columns_in_query(node['compiled_sql']) -%}\n {%- if not target_exists -%}\n {# no table yet -> return whatever the query does #}\n {{ return([false, query_columns]) }}\n {%- endif -%}\n {# handle any schema changes #}\n {%- set target_table = node.get('alias', node.get('name')) -%}\n {%- set target_relation = adapter.get_relation(database=node.database, schema=node.schema, identifier=target_table) -%}\n {%- set existing_cols = get_columns_in_query('select * from ' ~ target_relation) -%}\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(col) -%}\n {%- else -%}\n {% set ns.column_added = true %}\n {%- endif -%}\n {%- endfor -%}\n {{ return([ns.column_added, intersection]) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.snapshot_check_strategy": {"unique_id": "macro.dbt.snapshot_check_strategy", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/strategies.sql", "original_file_path": "macros/materializations/snapshot/strategies.sql", "name": "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 \n {% set select_current_time -%}\n select {{ snapshot_get_time() }} as snapshot_start\n {%- endset %}\n\n {#-- don't access the column by name, to avoid dealing with casing issues on snowflake #}\n {%- set now = run_query(select_current_time)[0][0] -%}\n {% if now is none or now is undefined -%}\n {%- do exceptions.raise_compiler_error('Could not get a snapshot start time from the database') -%}\n {%- endif %}\n {% set updated_at = snapshot_string_as_time(now) %}\n\n {% set column_added = false %}\n\n {% if check_cols_config == 'all' %}\n {% set column_added, check_cols = snapshot_check_all_get_existing_columns(node, target_exists) %}\n {% elif check_cols_config is iterable and (check_cols_config | length) > 0 %}\n {% set check_cols = check_cols_config %}\n {% else %}\n {% do exceptions.raise_compiler_error(\"Invalid value for 'check_cols': \" ~ check_cols_config) %}\n {% endif %}\n\n {%- set row_changed_expr -%}\n (\n {%- if column_added -%}\n TRUE\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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.create_columns": {"unique_id": "macro.dbt.create_columns", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/snapshot.sql", "original_file_path": "macros/materializations/snapshot/snapshot.sql", "name": "create_columns", "macro_sql": "{% macro create_columns(relation, columns) %}\n {{ adapter.dispatch('create_columns')(relation, columns) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__create_columns": {"unique_id": "macro.dbt.default__create_columns", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/snapshot.sql", "original_file_path": "macros/materializations/snapshot/snapshot.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.post_snapshot": {"unique_id": "macro.dbt.post_snapshot", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/snapshot.sql", "original_file_path": "macros/materializations/snapshot/snapshot.sql", "name": "post_snapshot", "macro_sql": "{% macro post_snapshot(staging_relation) %}\n {{ adapter.dispatch('post_snapshot')(staging_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__post_snapshot": {"unique_id": "macro.dbt.default__post_snapshot", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/snapshot.sql", "original_file_path": "macros/materializations/snapshot/snapshot.sql", "name": "default__post_snapshot", "macro_sql": "{% macro default__post_snapshot(staging_relation) %}\n {# no-op #}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.snapshot_staging_table": {"unique_id": "macro.dbt.snapshot_staging_table", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/snapshot.sql", "original_file_path": "macros/materializations/snapshot/snapshot.sql", "name": "snapshot_staging_table", "macro_sql": "{% macro 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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.build_snapshot_table": {"unique_id": "macro.dbt.build_snapshot_table", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/snapshot.sql", "original_file_path": "macros/materializations/snapshot/snapshot.sql", "name": "build_snapshot_table", "macro_sql": "{% macro 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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.get_or_create_relation": {"unique_id": "macro.dbt.get_or_create_relation", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/snapshot.sql", "original_file_path": "macros/materializations/snapshot/snapshot.sql", "name": "get_or_create_relation", "macro_sql": "{% macro 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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.build_snapshot_staging_table": {"unique_id": "macro.dbt.build_snapshot_staging_table", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/snapshot.sql", "original_file_path": "macros/materializations/snapshot/snapshot.sql", "name": "build_snapshot_staging_table", "macro_sql": "{% macro build_snapshot_staging_table(strategy, sql, target_relation) %}\n {% set tmp_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, tmp_relation, select) }}\n {% endcall %}\n\n {% do return(tmp_relation) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.materialization_snapshot_default": {"unique_id": "macro.dbt.materialization_snapshot_default", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/snapshot.sql", "original_file_path": "macros/materializations/snapshot/snapshot.sql", "name": "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\n {% if not adapter.check_schema_exists(model.database, model.schema) %}\n {% do create_schema(model.database, model.schema) %}\n {% endif %}\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_sql']) %}\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 {% do persist_docs(target_relation, model) %}\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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.create_csv_table": {"unique_id": "macro.dbt.create_csv_table", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/seed/seed.sql", "original_file_path": "macros/materializations/seed/seed.sql", "name": "create_csv_table", "macro_sql": "{% macro create_csv_table(model, agate_table) -%}\n {{ adapter.dispatch('create_csv_table')(model, agate_table) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.reset_csv_table": {"unique_id": "macro.dbt.reset_csv_table", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/seed/seed.sql", "original_file_path": "macros/materializations/seed/seed.sql", "name": "reset_csv_table", "macro_sql": "{% macro reset_csv_table(model, full_refresh, old_relation, agate_table) -%}\n {{ adapter.dispatch('reset_csv_table')(model, full_refresh, old_relation, agate_table) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.load_csv_rows": {"unique_id": "macro.dbt.load_csv_rows", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/seed/seed.sql", "original_file_path": "macros/materializations/seed/seed.sql", "name": "load_csv_rows", "macro_sql": "{% macro load_csv_rows(model, agate_table) -%}\n {{ adapter.dispatch('load_csv_rows')(model, agate_table) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__create_csv_table": {"unique_id": "macro.dbt.default__create_csv_table", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/seed/seed.sql", "original_file_path": "macros/materializations/seed/seed.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__reset_csv_table": {"unique_id": "macro.dbt.default__reset_csv_table", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/seed/seed.sql", "original_file_path": "macros/materializations/seed/seed.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.get_seed_column_quoted_csv": {"unique_id": "macro.dbt.get_seed_column_quoted_csv", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/seed/seed.sql", "original_file_path": "macros/materializations/seed/seed.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.basic_load_csv_rows": {"unique_id": "macro.dbt.basic_load_csv_rows", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/seed/seed.sql", "original_file_path": "macros/materializations/seed/seed.sql", "name": "basic_load_csv_rows", "macro_sql": "{% macro basic_load_csv_rows(model, batch_size, agate_table) %}\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 %s\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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__load_csv_rows": {"unique_id": "macro.dbt.default__load_csv_rows", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/seed/seed.sql", "original_file_path": "macros/materializations/seed/seed.sql", "name": "default__load_csv_rows", "macro_sql": "{% macro default__load_csv_rows(model, agate_table) %}\n {{ return(basic_load_csv_rows(model, 10000, agate_table) )}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.materialization_seed_default": {"unique_id": "macro.dbt.materialization_seed_default", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/seed/seed.sql", "original_file_path": "macros/materializations/seed/seed.sql", "name": "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 agate_table = load_agate_table() -%}\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 {{ create_table_sql }};\n -- dbt seed --\n {{ sql }}\n {% endcall %}\n\n {% set target_relation = this.incorporate(type='table') %}\n {% do persist_docs(target_relation, model) %}\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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.incremental_upsert": {"unique_id": "macro.dbt.incremental_upsert", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/incremental/helpers.sql", "original_file_path": "macros/materializations/incremental/helpers.sql", "name": "incremental_upsert", "macro_sql": "{% macro incremental_upsert(tmp_relation, target_relation, unique_key=none, statement_name=\"main\") %}\n {%- set dest_columns = adapter.get_columns_in_relation(target_relation) -%}\n {%- set dest_cols_csv = dest_columns | map(attribute='quoted') | join(', ') -%}\n\n {%- if unique_key is not none -%}\n delete\n from {{ target_relation }}\n where ({{ unique_key }}) in (\n select ({{ unique_key }})\n from {{ tmp_relation }}\n );\n {%- endif %}\n\n insert into {{ target_relation }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ tmp_relation }}\n );\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.materialization_incremental_default": {"unique_id": "macro.dbt.materialization_incremental_default", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/incremental/incremental.sql", "original_file_path": "macros/materializations/incremental/incremental.sql", "name": "materialization_incremental_default", "macro_sql": "{% materialization incremental, default -%}\n\n {% set unique_key = config.get('unique_key') %}\n\n {% set target_relation = this.incorporate(type='table') %}\n {% set existing_relation = load_relation(this) %}\n {% set tmp_relation = make_temp_relation(this) %}\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 {% if existing_relation is none %}\n {% set build_sql = create_table_as(False, target_relation, sql) %}\n {% elif existing_relation.is_view or should_full_refresh() %}\n {#-- Make sure the backup doesn't exist so we don't encounter issues with the rename below #}\n {% set backup_identifier = existing_relation.identifier ~ \"__dbt_backup\" %}\n {% set backup_relation = existing_relation.incorporate(path={\"identifier\": backup_identifier}) %}\n {% do adapter.drop_relation(backup_relation) %}\n\n {% do adapter.rename_relation(target_relation, backup_relation) %}\n {% set build_sql = create_table_as(False, target_relation, sql) %}\n {% do to_drop.append(backup_relation) %}\n {% else %}\n {% set tmp_relation = make_temp_relation(target_relation) %}\n {% do run_query(create_table_as(True, tmp_relation, sql)) %}\n {% do adapter.expand_target_column_types(\n from_relation=tmp_relation,\n to_relation=target_relation) %}\n {% set build_sql = incremental_upsert(tmp_relation, target_relation, unique_key=unique_key) %}\n {% endif %}\n\n {% call statement(\"main\") %}\n {{ build_sql }}\n {% endcall %}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n -- `COMMIT` happens here\n {% do adapter.commit() %}\n\n {% for rel in to_drop %}\n {% do adapter.drop_relation(rel) %}\n {% endfor %}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.get_merge_sql": {"unique_id": "macro.dbt.get_merge_sql", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/common/merge.sql", "original_file_path": "macros/materializations/common/merge.sql", "name": "get_merge_sql", "macro_sql": "{% macro get_merge_sql(target, source, unique_key, dest_columns, predicates=none) -%}\n {{ adapter.dispatch('get_merge_sql')(target, source, unique_key, dest_columns, predicates) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.get_delete_insert_merge_sql": {"unique_id": "macro.dbt.get_delete_insert_merge_sql", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/common/merge.sql", "original_file_path": "macros/materializations/common/merge.sql", "name": "get_delete_insert_merge_sql", "macro_sql": "{% macro get_delete_insert_merge_sql(target, source, unique_key, dest_columns) -%}\n {{ adapter.dispatch('get_delete_insert_merge_sql')(target, source, unique_key, dest_columns) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.get_insert_overwrite_merge_sql": {"unique_id": "macro.dbt.get_insert_overwrite_merge_sql", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/common/merge.sql", "original_file_path": "macros/materializations/common/merge.sql", "name": "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')(target, source, dest_columns, predicates, include_sql_header) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__get_merge_sql": {"unique_id": "macro.dbt.default__get_merge_sql", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/common/merge.sql", "original_file_path": "macros/materializations/common/merge.sql", "name": "default__get_merge_sql", "macro_sql": "{% macro default__get_merge_sql(target, source, unique_key, dest_columns, predicates) -%}\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 {% if unique_key %}\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 {% 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 in dest_columns -%}\n {{ adapter.quote(column.name) }} = DBT_INTERNAL_SOURCE.{{ adapter.quote(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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.get_quoted_csv": {"unique_id": "macro.dbt.get_quoted_csv", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/common/merge.sql", "original_file_path": "macros/materializations/common/merge.sql", "name": "get_quoted_csv", "macro_sql": "{% macro get_quoted_csv(column_names) %}\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{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.common_get_delete_insert_merge_sql": {"unique_id": "macro.dbt.common_get_delete_insert_merge_sql", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/common/merge.sql", "original_file_path": "macros/materializations/common/merge.sql", "name": "common_get_delete_insert_merge_sql", "macro_sql": "{% macro common_get_delete_insert_merge_sql(target, source, unique_key, dest_columns) -%}\n\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n {% if unique_key is not none %}\n delete from {{ target }}\n where ({{ unique_key }}) in (\n select ({{ unique_key }})\n from {{ source }}\n );\n {% endif %}\n\n insert into {{ target }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ source }}\n );\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__get_delete_insert_merge_sql": {"unique_id": "macro.dbt.default__get_delete_insert_merge_sql", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/common/merge.sql", "original_file_path": "macros/materializations/common/merge.sql", "name": "default__get_delete_insert_merge_sql", "macro_sql": "{% macro default__get_delete_insert_merge_sql(target, source, unique_key, dest_columns) -%}\n {{ common_get_delete_insert_merge_sql(target, source, unique_key, dest_columns) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__get_insert_overwrite_merge_sql": {"unique_id": "macro.dbt.default__get_insert_overwrite_merge_sql", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/common/merge.sql", "original_file_path": "macros/materializations/common/merge.sql", "name": "default__get_insert_overwrite_merge_sql", "macro_sql": "{% macro default__get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header) -%}\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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.materialization_table_default": {"unique_id": "macro.dbt.materialization_table_default", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/table/table.sql", "original_file_path": "macros/materializations/table/table.sql", "name": "materialization_table_default", "macro_sql": "{% materialization table, default %}\n {%- set identifier = model['alias'] -%}\n {%- set tmp_identifier = model['name'] + '__dbt_tmp' -%}\n {%- set backup_identifier = model['name'] + '__dbt_backup' -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n {%- set target_relation = api.Relation.create(identifier=identifier,\n schema=schema,\n database=database,\n type='table') -%}\n {%- set intermediate_relation = api.Relation.create(identifier=tmp_identifier,\n schema=schema,\n database=database,\n type='table') -%}\n\n /*\n See ../view/view.sql for more information about this relation.\n */\n {%- set backup_relation_type = 'table' if old_relation is none else old_relation.type -%}\n {%- set backup_relation = api.Relation.create(identifier=backup_identifier,\n schema=schema,\n database=database,\n type=backup_relation_type) -%}\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\n -- drop the temp relations if they exists for some reason\n {{ adapter.drop_relation(intermediate_relation) }}\n {{ adapter.drop_relation(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 {{ create_table_as(False, intermediate_relation, sql) }}\n {%- endcall %}\n\n -- cleanup\n {% if old_relation is not none %}\n {{ adapter.rename_relation(target_relation, backup_relation) }}\n {% endif %}\n\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.materialization_view_default": {"unique_id": "macro.dbt.materialization_view_default", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/view/view.sql", "original_file_path": "macros/materializations/view/view.sql", "name": "materialization_view_default", "macro_sql": "{%- materialization view, default -%}\n\n {%- set identifier = model['alias'] -%}\n {%- set tmp_identifier = model['name'] + '__dbt_tmp' -%}\n {%- set backup_identifier = model['name'] + '__dbt_backup' -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n {%- set target_relation = api.Relation.create(identifier=identifier, schema=schema, database=database,\n type='view') -%}\n {%- set intermediate_relation = api.Relation.create(identifier=tmp_identifier,\n schema=schema, database=database, type='view') -%}\n\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 \"old_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 old_relation, if it exists,\n or else \"view\" as a sane default if it does not. Note that if the old_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 old_relation is none else old_relation.type -%}\n {%- set backup_relation = api.Relation.create(identifier=backup_identifier,\n schema=schema, database=database,\n type=backup_relation_type) -%}\n\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- drop the temp relations if they exists for some reason\n {{ adapter.drop_relation(intermediate_relation) }}\n {{ adapter.drop_relation(backup_relation) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% call statement('main') -%}\n {{ create_view_as(intermediate_relation, sql) }}\n {%- endcall %}\n\n -- cleanup\n -- move the existing view out of the way\n {% if old_relation is not none %}\n {{ adapter.rename_relation(target_relation, backup_relation) }}\n {% endif %}\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\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 -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.handle_existing_table": {"unique_id": "macro.dbt.handle_existing_table", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/view/create_or_replace_view.sql", "original_file_path": "macros/materializations/view/create_or_replace_view.sql", "name": "handle_existing_table", "macro_sql": "{% macro handle_existing_table(full_refresh, old_relation) %}\n {{ adapter.dispatch(\"handle_existing_table\", packages=['dbt'])(full_refresh, old_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__handle_existing_table": {"unique_id": "macro.dbt.default__handle_existing_table", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/view/create_or_replace_view.sql", "original_file_path": "macros/materializations/view/create_or_replace_view.sql", "name": "default__handle_existing_table", "macro_sql": "{% macro default__handle_existing_table(full_refresh, old_relation) %}\n {{ adapter.drop_relation(old_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.create_or_replace_view": {"unique_id": "macro.dbt.create_or_replace_view", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/view/create_or_replace_view.sql", "original_file_path": "macros/materializations/view/create_or_replace_view.sql", "name": "create_or_replace_view", "macro_sql": "{% macro create_or_replace_view(run_outside_transaction_hooks=True) %}\n {%- set identifier = model['alias'] -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n\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\n {% if run_outside_transaction_hooks %}\n -- no transactions on BigQuery\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n {% endif %}\n\n -- `BEGIN` happens here on Snowflake\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\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 {{ create_view_as(target_relation, sql) }}\n {%- endcall %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {% if run_outside_transaction_hooks %}\n -- No transactions on BigQuery\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n {% endif %}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.generate_alias_name": {"unique_id": "macro.dbt.generate_alias_name", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/etc/get_custom_alias.sql", "original_file_path": "macros/etc/get_custom_alias.sql", "name": "generate_alias_name", "macro_sql": "{% macro generate_alias_name(custom_alias_name=none, node=none) -%}\n\n {%- if custom_alias_name is none -%}\n\n {{ node.name }}\n\n {%- else -%}\n\n {{ custom_alias_name | trim }}\n\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.run_query": {"unique_id": "macro.dbt.run_query", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/etc/query.sql", "original_file_path": "macros/etc/query.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.is_incremental": {"unique_id": "macro.dbt.is_incremental", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/etc/is_incremental.sql", "original_file_path": "macros/etc/is_incremental.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.convert_datetime": {"unique_id": "macro.dbt.convert_datetime", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.dates_in_range": {"unique_id": "macro.dbt.dates_in_range", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.partition_range": {"unique_id": "macro.dbt.partition_range", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.py_current_timestring": {"unique_id": "macro.dbt.py_current_timestring", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.generate_schema_name": {"unique_id": "macro.dbt.generate_schema_name", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/etc/get_custom_schema.sql", "original_file_path": "macros/etc/get_custom_schema.sql", "name": "generate_schema_name", "macro_sql": "{% macro 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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.generate_schema_name_for_env": {"unique_id": "macro.dbt.generate_schema_name_for_env", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/etc/get_custom_schema.sql", "original_file_path": "macros/etc/get_custom_schema.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.generate_database_name": {"unique_id": "macro.dbt.generate_database_name", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/etc/get_custom_database.sql", "original_file_path": "macros/etc/get_custom_database.sql", "name": "generate_database_name", "macro_sql": "{% macro generate_database_name(custom_database_name=none, node=none) -%}\n {% do return(adapter.dispatch('generate_database_name')(custom_database_name, node)) %}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__generate_database_name"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__generate_database_name": {"unique_id": "macro.dbt.default__generate_database_name", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/etc/get_custom_database.sql", "original_file_path": "macros/etc/get_custom_database.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.get_columns_in_query": {"unique_id": "macro.dbt.get_columns_in_query", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "get_columns_in_query", "macro_sql": "{% macro get_columns_in_query(select_sql) -%}\n {{ return(adapter.dispatch('get_columns_in_query')(select_sql)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__get_columns_in_query": {"unique_id": "macro.dbt.default__get_columns_in_query", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "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 select * from (\n {{ select_sql }}\n ) as __dbt_sbq\n where false\n limit 0\n {% endcall %}\n\n {{ return(load_result('get_columns_in_query').table.columns | map(attribute='name') | list) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.create_schema": {"unique_id": "macro.dbt.create_schema", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "create_schema", "macro_sql": "{% macro create_schema(relation) -%}\n {{ adapter.dispatch('create_schema')(relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__create_schema": {"unique_id": "macro.dbt.default__create_schema", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.drop_schema": {"unique_id": "macro.dbt.drop_schema", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "drop_schema", "macro_sql": "{% macro drop_schema(relation) -%}\n {{ adapter.dispatch('drop_schema')(relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__drop_schema": {"unique_id": "macro.dbt.default__drop_schema", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.create_table_as": {"unique_id": "macro.dbt.create_table_as", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "create_table_as", "macro_sql": "{% macro create_table_as(temporary, relation, sql) -%}\n {{ adapter.dispatch('create_table_as')(temporary, relation, sql) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__create_table_as": {"unique_id": "macro.dbt.default__create_table_as", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "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 as (\n {{ sql }}\n );\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.create_view_as": {"unique_id": "macro.dbt.create_view_as", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "create_view_as", "macro_sql": "{% macro create_view_as(relation, sql) -%}\n {{ adapter.dispatch('create_view_as')(relation, sql) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__create_view_as": {"unique_id": "macro.dbt.default__create_view_as", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "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 }} as (\n {{ sql }}\n );\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.get_catalog": {"unique_id": "macro.dbt.get_catalog", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "get_catalog", "macro_sql": "{% macro get_catalog(information_schema, schemas) -%}\n {{ return(adapter.dispatch('get_catalog')(information_schema, schemas)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__get_catalog"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__get_catalog": {"unique_id": "macro.dbt.default__get_catalog", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.get_columns_in_relation": {"unique_id": "macro.dbt.get_columns_in_relation", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "get_columns_in_relation", "macro_sql": "{% macro get_columns_in_relation(relation) -%}\n {{ return(adapter.dispatch('get_columns_in_relation')(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.sql_convert_columns_in_relation": {"unique_id": "macro.dbt.sql_convert_columns_in_relation", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__get_columns_in_relation": {"unique_id": "macro.dbt.default__get_columns_in_relation", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.alter_column_type": {"unique_id": "macro.dbt.alter_column_type", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "alter_column_type", "macro_sql": "{% macro alter_column_type(relation, column_name, new_column_type) -%}\n {{ return(adapter.dispatch('alter_column_type')(relation, column_name, new_column_type)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.alter_column_comment": {"unique_id": "macro.dbt.alter_column_comment", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "alter_column_comment", "macro_sql": "{% macro alter_column_comment(relation, column_dict) -%}\n {{ return(adapter.dispatch('alter_column_comment')(relation, column_dict)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__alter_column_comment": {"unique_id": "macro.dbt.default__alter_column_comment", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.alter_relation_comment": {"unique_id": "macro.dbt.alter_relation_comment", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "alter_relation_comment", "macro_sql": "{% macro alter_relation_comment(relation, relation_comment) -%}\n {{ return(adapter.dispatch('alter_relation_comment')(relation, relation_comment)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__alter_relation_comment": {"unique_id": "macro.dbt.default__alter_relation_comment", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.persist_docs": {"unique_id": "macro.dbt.persist_docs", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "persist_docs", "macro_sql": "{% macro persist_docs(relation, model, for_relation=true, for_columns=true) -%}\n {{ return(adapter.dispatch('persist_docs')(relation, model, for_relation, for_columns)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__persist_docs": {"unique_id": "macro.dbt.default__persist_docs", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__alter_column_type": {"unique_id": "macro.dbt.default__alter_column_type", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.drop_relation": {"unique_id": "macro.dbt.drop_relation", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "drop_relation", "macro_sql": "{% macro drop_relation(relation) -%}\n {{ return(adapter.dispatch('drop_relation')(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__drop_relation": {"unique_id": "macro.dbt.default__drop_relation", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "default__drop_relation", "macro_sql": "{% macro default__drop_relation(relation) -%}\n {% call statement('drop_relation', auto_begin=False) -%}\n drop {{ relation.type }} if exists {{ relation }} cascade\n {%- endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.truncate_relation": {"unique_id": "macro.dbt.truncate_relation", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "truncate_relation", "macro_sql": "{% macro truncate_relation(relation) -%}\n {{ return(adapter.dispatch('truncate_relation')(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__truncate_relation": {"unique_id": "macro.dbt.default__truncate_relation", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "default__truncate_relation", "macro_sql": "{% macro default__truncate_relation(relation) -%}\n {% call statement('truncate_relation') -%}\n truncate table {{ relation }}\n {%- endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.rename_relation": {"unique_id": "macro.dbt.rename_relation", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "rename_relation", "macro_sql": "{% macro rename_relation(from_relation, to_relation) -%}\n {{ return(adapter.dispatch('rename_relation')(from_relation, to_relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__rename_relation": {"unique_id": "macro.dbt.default__rename_relation", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.information_schema_name": {"unique_id": "macro.dbt.information_schema_name", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "information_schema_name", "macro_sql": "{% macro information_schema_name(database) %}\n {{ return(adapter.dispatch('information_schema_name')(database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__information_schema_name": {"unique_id": "macro.dbt.default__information_schema_name", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.list_schemas": {"unique_id": "macro.dbt.list_schemas", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "list_schemas", "macro_sql": "{% macro list_schemas(database) -%}\n {{ return(adapter.dispatch('list_schemas')(database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__list_schemas": {"unique_id": "macro.dbt.default__list_schemas", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.check_schema_exists": {"unique_id": "macro.dbt.check_schema_exists", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "check_schema_exists", "macro_sql": "{% macro check_schema_exists(information_schema, schema) -%}\n {{ return(adapter.dispatch('check_schema_exists')(information_schema, schema)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__check_schema_exists": {"unique_id": "macro.dbt.default__check_schema_exists", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.list_relations_without_caching": {"unique_id": "macro.dbt.list_relations_without_caching", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "list_relations_without_caching", "macro_sql": "{% macro list_relations_without_caching(schema_relation) %}\n {{ return(adapter.dispatch('list_relations_without_caching')(schema_relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__list_relations_without_caching": {"unique_id": "macro.dbt.default__list_relations_without_caching", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.current_timestamp": {"unique_id": "macro.dbt.current_timestamp", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "current_timestamp", "macro_sql": "{% macro current_timestamp() -%}\n {{ adapter.dispatch('current_timestamp')() }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__current_timestamp": {"unique_id": "macro.dbt.default__current_timestamp", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.collect_freshness": {"unique_id": "macro.dbt.collect_freshness", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__collect_freshness": {"unique_id": "macro.dbt.default__collect_freshness", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "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').table) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.make_temp_relation": {"unique_id": "macro.dbt.make_temp_relation", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "make_temp_relation", "macro_sql": "{% macro make_temp_relation(base_relation, suffix='__dbt_tmp') %}\n {{ return(adapter.dispatch('make_temp_relation')(base_relation, suffix))}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__make_temp_relation": {"unique_id": "macro.dbt.default__make_temp_relation", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "default__make_temp_relation", "macro_sql": "{% macro default__make_temp_relation(base_relation, suffix) %}\n {% set tmp_identifier = base_relation.identifier ~ suffix %}\n {% set tmp_relation = base_relation.incorporate(\n path={\"identifier\": tmp_identifier}) -%}\n\n {% do return(tmp_relation) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.set_sql_header": {"unique_id": "macro.dbt.set_sql_header", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "set_sql_header", "macro_sql": "{% macro set_sql_header(config) -%}\n {{ config.set('sql_header', caller()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__test_relationships": {"unique_id": "macro.dbt.default__test_relationships", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/schema_tests/relationships.sql", "original_file_path": "macros/schema_tests/relationships.sql", "name": "default__test_relationships", "macro_sql": "{% macro default__test_relationships(model, to, field) %}\n\n{% set column_name = kwargs.get('column_name', kwargs.get('from')) %}\n\n\nselect count(*) as validation_errors\nfrom (\n select {{ column_name }} as id from {{ model }}\n) as child\nleft join (\n select {{ field }} as id from {{ to }}\n) as parent on parent.id = child.id\nwhere child.id is not null\n and parent.id is null\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.test_relationships": {"unique_id": "macro.dbt.test_relationships", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/schema_tests/relationships.sql", "original_file_path": "macros/schema_tests/relationships.sql", "name": "test_relationships", "macro_sql": "{% macro test_relationships(model, to, field) %}\n {% set macro = adapter.dispatch('test_relationships') %}\n {{ macro(model, to, field, **kwargs) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__test_not_null": {"unique_id": "macro.dbt.default__test_not_null", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/schema_tests/not_null.sql", "original_file_path": "macros/schema_tests/not_null.sql", "name": "default__test_not_null", "macro_sql": "{% macro default__test_not_null(model) %}\n\n{% set column_name = kwargs.get('column_name', kwargs.get('arg')) %}\n\nselect count(*) as validation_errors\nfrom {{ model }}\nwhere {{ column_name }} is null\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.test_not_null": {"unique_id": "macro.dbt.test_not_null", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/schema_tests/not_null.sql", "original_file_path": "macros/schema_tests/not_null.sql", "name": "test_not_null", "macro_sql": "{% macro test_not_null(model) %}\n {% set macro = adapter.dispatch('test_not_null') %}\n {{ macro(model, **kwargs) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__test_unique": {"unique_id": "macro.dbt.default__test_unique", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/schema_tests/unique.sql", "original_file_path": "macros/schema_tests/unique.sql", "name": "default__test_unique", "macro_sql": "{% macro default__test_unique(model) %}\n\n{% set column_name = kwargs.get('column_name', kwargs.get('arg')) %}\n\nselect count(*) as validation_errors\nfrom (\n\n select\n {{ column_name }}\n\n from {{ model }}\n where {{ column_name }} is not null\n group by {{ column_name }}\n having count(*) > 1\n\n) validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.test_unique": {"unique_id": "macro.dbt.test_unique", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/schema_tests/unique.sql", "original_file_path": "macros/schema_tests/unique.sql", "name": "test_unique", "macro_sql": "{% macro test_unique(model) %}\n {% set macro = adapter.dispatch('test_unique') %}\n {{ macro(model, **kwargs) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__test_accepted_values": {"unique_id": "macro.dbt.default__test_accepted_values", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/schema_tests/accepted_values.sql", "original_file_path": "macros/schema_tests/accepted_values.sql", "name": "default__test_accepted_values", "macro_sql": "{% macro default__test_accepted_values(model, values) %}\n\n{% set column_name = kwargs.get('column_name', kwargs.get('field')) %}\n{% set quote_values = kwargs.get('quote', True) %}\n\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 not in (\n {% for value in values -%}\n {% if quote_values -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {%- endfor %}\n )\n)\n\nselect count(*) as validation_errors\nfrom validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.test_accepted_values": {"unique_id": "macro.dbt.test_accepted_values", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/schema_tests/accepted_values.sql", "original_file_path": "macros/schema_tests/accepted_values.sql", "name": "test_accepted_values", "macro_sql": "{% macro test_accepted_values(model, values) %}\n {% set macro = adapter.dispatch('test_accepted_values') %}\n {{ macro(model, values, **kwargs) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.hubspot_source.get_contact_columns": {"unique_id": "macro.hubspot_source.get_contact_columns", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "macros/get_contact_columns.sql", "original_file_path": "macros/get_contact_columns.sql", "name": "get_contact_columns", "macro_sql": "{% macro get_contact_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"property_email\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"property_company\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"property_firstname\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"property_lastname\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"property_createdate\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"property_jobtitle\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"property_annualrevenue\", \"datatype\": dbt_utils.type_int()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('hubspot__contact_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.hubspot_source.get_email_event_open_columns": {"unique_id": "macro.hubspot_source.get_email_event_open_columns", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "macros/get_email_event_open_columns.sql", "original_file_path": "macros/get_email_event_open_columns.sql", "name": "get_email_event_open_columns", "macro_sql": "{% macro get_email_event_open_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"browser\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"duration\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"ip_address\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"location\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"user_agent\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.hubspot_source.get_email_event_spam_report_columns": {"unique_id": "macro.hubspot_source.get_email_event_spam_report_columns", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "macros/get_email_event_spam_report_columns.sql", "original_file_path": "macros/get_email_event_spam_report_columns.sql", "name": "get_email_event_spam_report_columns", "macro_sql": "{% macro get_email_event_spam_report_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"ip_address\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"user_agent\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.hubspot_source.get_email_event_bounce_columns": {"unique_id": "macro.hubspot_source.get_email_event_bounce_columns", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "macros/get_email_event_bounce_columns.sql", "original_file_path": "macros/get_email_event_bounce_columns.sql", "name": "get_email_event_bounce_columns", "macro_sql": "{% macro get_email_event_bounce_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"category\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"response\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"status\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.hubspot_source.get_ticket_pipeline_stage_columns": {"unique_id": "macro.hubspot_source.get_ticket_pipeline_stage_columns", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "macros/get_ticket_pipeline_stage_columns.sql", "original_file_path": "macros/get_ticket_pipeline_stage_columns.sql", "name": "get_ticket_pipeline_stage_columns", "macro_sql": "{% macro get_ticket_pipeline_stage_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"active\", \"datatype\": \"boolean\"},\n {\"name\": \"display_order\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"is_closed\", \"datatype\": \"boolean\"},\n {\"name\": \"label\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"pipeline_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"stage_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"ticket_state\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.hubspot_source.get_company_columns": {"unique_id": "macro.hubspot_source.get_company_columns", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "macros/get_company_columns.sql", "original_file_path": "macros/get_company_columns.sql", "name": "get_company_columns", "macro_sql": "{% macro get_company_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"is_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"property_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"property_description\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"property_createdate\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"property_industry\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"property_address\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"property_address_2\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"property_city\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"property_state\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"property_country\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"property_annualrevenue\", \"datatype\": dbt_utils.type_int()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('hubspot__company_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.hubspot_source.get_ticket_deal_columns": {"unique_id": "macro.hubspot_source.get_ticket_deal_columns", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "macros/get_ticket_deal_columns.sql", "original_file_path": "macros/get_ticket_deal_columns.sql", "name": "get_ticket_deal_columns", "macro_sql": "{% macro get_ticket_deal_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"ticket_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"deal_id\", \"datatype\": dbt_utils.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.hubspot_source.get_ticket_pipeline_columns": {"unique_id": "macro.hubspot_source.get_ticket_pipeline_columns", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "macros/get_ticket_pipeline_columns.sql", "original_file_path": "macros/get_ticket_pipeline_columns.sql", "name": "get_ticket_pipeline_columns", "macro_sql": "{% macro get_ticket_pipeline_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"active\", \"datatype\": \"boolean\"},\n {\"name\": \"display_order\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"label\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"object_type_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"pipeline_id\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.hubspot_source.get_email_event_dropped_columns": {"unique_id": "macro.hubspot_source.get_email_event_dropped_columns", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "macros/get_email_event_dropped_columns.sql", "original_file_path": "macros/get_email_event_dropped_columns.sql", "name": "get_email_event_dropped_columns", "macro_sql": "{% macro get_email_event_dropped_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"bcc\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"cc\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"drop_message\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"drop_reason\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"reply_to\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"subject\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{% if target.type == 'snowflake' %}\n {{ columns.append({\"name\": \"FROM\", \"datatype\": dbt_utils.type_string(), \"quote\": True, \"alias\": \"from_email\"}) }}\n{% else %}\n {{ columns.append({\"name\": \"from\", \"datatype\": dbt_utils.type_string(), \"quote\": True, \"alias\": \"from_email\"}) }}\n{% endif %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.hubspot_source.get_engagement_email_columns": {"unique_id": "macro.hubspot_source.get_engagement_email_columns", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "macros/get_engagement_email_columns.sql", "original_file_path": "macros/get_engagement_email_columns.sql", "name": "get_engagement_email_columns", "macro_sql": "{% macro get_engagement_email_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"attached_video_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"attached_video_opened\", \"datatype\": \"boolean\"},\n {\"name\": \"attached_video_watched\", \"datatype\": \"boolean\"},\n {\"name\": \"email_send_event_id_created\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"email_send_event_id_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"engagement_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"error_message\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"facsimile_send_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"from_email\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"from_first_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"from_last_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"html\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"logged_from\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"media_processing_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"member_of_forwarded_subthread\", \"datatype\": \"boolean\"},\n {\"name\": \"message_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"post_send_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"recipient_drop_reasons\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sent_via\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"subject\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"text\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"thread_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"tracker_key\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"validation_skipped\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.hubspot_source.get_email_event_forward_columns": {"unique_id": "macro.hubspot_source.get_email_event_forward_columns", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "macros/get_email_event_forward_columns.sql", "original_file_path": "macros/get_email_event_forward_columns.sql", "name": "get_email_event_forward_columns", "macro_sql": "{% macro get_email_event_forward_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"browser\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"ip_address\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"location\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"user_agent\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.hubspot_source.get_deal_pipeline_columns": {"unique_id": "macro.hubspot_source.get_deal_pipeline_columns", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "macros/get_deal_pipeline_columns.sql", "original_file_path": "macros/get_deal_pipeline_columns.sql", "name": "get_deal_pipeline_columns", "macro_sql": "{% macro get_deal_pipeline_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"active\", \"datatype\": \"boolean\"},\n {\"name\": \"display_order\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"label\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"pipeline_id\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.hubspot_source.get_email_event_click_columns": {"unique_id": "macro.hubspot_source.get_email_event_click_columns", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "macros/get_email_event_click_columns.sql", "original_file_path": "macros/get_email_event_click_columns.sql", "name": "get_email_event_click_columns", "macro_sql": "{% macro get_email_event_click_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"browser\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"ip_address\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"location\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"referer\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"url\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"user_agent\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.hubspot_source.get_email_event_deferred_columns": {"unique_id": "macro.hubspot_source.get_email_event_deferred_columns", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "macros/get_email_event_deferred_columns.sql", "original_file_path": "macros/get_email_event_deferred_columns.sql", "name": "get_email_event_deferred_columns", "macro_sql": "{% macro get_email_event_deferred_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"attempt\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"response\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.hubspot_source.get_deal_columns": {"unique_id": "macro.hubspot_source.get_deal_columns", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "macros/get_deal_columns.sql", "original_file_path": "macros/get_deal_columns.sql", "name": "get_deal_columns", "macro_sql": "{% macro get_deal_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"deal_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"deal_pipeline_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"deal_pipeline_stage_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"is_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"owner_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"portal_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"property_dealname\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"property_description\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"property_amount\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"property_closedate\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"property_createdate\", \"datatype\": dbt_utils.type_timestamp()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('hubspot__deal_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.hubspot_source.get_engagement_columns": {"unique_id": "macro.hubspot_source.get_engagement_columns", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "macros/get_engagement_columns.sql", "original_file_path": "macros/get_engagement_columns.sql", "name": "get_engagement_columns", "macro_sql": "{% macro get_engagement_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"active\", \"datatype\": \"boolean\"},\n {\"name\": \"activity_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"last_updated\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"owner_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"portal_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"timestamp\", \"datatype\": dbt_utils.type_timestamp(), \"alias\": \"occurred_timestamp\"},\n {\"name\": \"type\", \"datatype\": dbt_utils.type_string(), \"alias\": \"engagement_type\"}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.hubspot_source.get_engagement_contact_columns": {"unique_id": "macro.hubspot_source.get_engagement_contact_columns", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "macros/get_engagement_contact_columns.sql", "original_file_path": "macros/get_engagement_contact_columns.sql", "name": "get_engagement_contact_columns", "macro_sql": "{% macro get_engagement_contact_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"contact_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"engagement_id\", \"datatype\": dbt_utils.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.hubspot_source.get_email_event_columns": {"unique_id": "macro.hubspot_source.get_email_event_columns", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "macros/get_email_event_columns.sql", "original_file_path": "macros/get_email_event_columns.sql", "name": "get_email_event_columns", "macro_sql": "{% macro get_email_event_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"app_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"caused_by_created\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"caused_by_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"email_campaign_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"filtered_event\", \"datatype\": \"boolean\"},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"obsoleted_by_created\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"obsoleted_by_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"portal_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"recipient\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sent_by_created\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"sent_by_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"type\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.hubspot_source.get_engagement_company_columns": {"unique_id": "macro.hubspot_source.get_engagement_company_columns", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "macros/get_engagement_company_columns.sql", "original_file_path": "macros/get_engagement_company_columns.sql", "name": "get_engagement_company_columns", "macro_sql": "{% macro get_engagement_company_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"company_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"engagement_id\", \"datatype\": dbt_utils.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.hubspot_source.get_deal_pipeline_stage_columns": {"unique_id": "macro.hubspot_source.get_deal_pipeline_stage_columns", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "macros/get_deal_pipeline_stage_columns.sql", "original_file_path": "macros/get_deal_pipeline_stage_columns.sql", "name": "get_deal_pipeline_stage_columns", "macro_sql": "{% macro get_deal_pipeline_stage_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"active\", \"datatype\": \"boolean\"},\n {\"name\": \"closed_won\", \"datatype\": \"boolean\"},\n {\"name\": \"display_order\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"label\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"pipeline_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"probability\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"stage_id\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.hubspot_source.get_email_campaign_columns": {"unique_id": "macro.hubspot_source.get_email_campaign_columns", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "macros/get_email_campaign_columns.sql", "original_file_path": "macros/get_email_campaign_columns.sql", "name": "get_email_campaign_columns", "macro_sql": "{% macro get_email_campaign_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"app_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"app_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"content_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"num_included\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"num_queued\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"sub_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"subject\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"type\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.hubspot_source.get_email_event_sent_columns": {"unique_id": "macro.hubspot_source.get_email_event_sent_columns", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "macros/get_email_event_sent_columns.sql", "original_file_path": "macros/get_email_event_sent_columns.sql", "name": "get_email_event_sent_columns", "macro_sql": "{% macro get_email_event_sent_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"bcc\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"cc\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"reply_to\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"subject\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{% if target.type == 'snowflake' %}\n {{ columns.append({\"name\": \"FROM\", \"datatype\": dbt_utils.type_string(), \"quote\": True, \"alias\": \"from_email\"}) }}\n{% else %}\n {{ columns.append({\"name\": \"from\", \"datatype\": dbt_utils.type_string(), \"quote\": True, \"alias\": \"from_email\"}) }}\n{% endif %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.hubspot_source.get_deal_stage_columns": {"unique_id": "macro.hubspot_source.get_deal_stage_columns", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "macros/get_deal_stage_columns.sql", "original_file_path": "macros/get_deal_stage_columns.sql", "name": "get_deal_stage_columns", "macro_sql": "{% macro get_deal_stage_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_active\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_end\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"_fivetran_start\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"date_entered\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"deal_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"source\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"source_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"value\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.hubspot_source.get_contact_list_columns": {"unique_id": "macro.hubspot_source.get_contact_list_columns", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "macros/get_contact_list_columns.sql", "original_file_path": "macros/get_contact_list_columns.sql", "name": "get_contact_list_columns", "macro_sql": "{% macro get_contact_list_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"deleteable\", \"datatype\": \"boolean\"},\n {\"name\": \"dynamic\", \"datatype\": \"boolean\"},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"metadata_error\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"metadata_last_processing_state_change_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"metadata_last_size_change_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"metadata_processing\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"metadata_size\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"portal_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.hubspot_source.get_ticket_property_history_columns": {"unique_id": "macro.hubspot_source.get_ticket_property_history_columns", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "macros/get_ticket_property_history_columns.sql", "original_file_path": "macros/get_ticket_property_history_columns.sql", "name": "get_ticket_property_history_columns", "macro_sql": "{% macro get_ticket_property_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"ticket_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"source\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"source_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"timestamp_instant\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"value\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.hubspot_source.get_owner_columns": {"unique_id": "macro.hubspot_source.get_owner_columns", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "macros/get_owner_columns.sql", "original_file_path": "macros/get_owner_columns.sql", "name": "get_owner_columns", "macro_sql": "{% macro get_owner_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"email\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"first_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"last_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"owner_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"portal_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.hubspot_source.get_engagement_deal_columns": {"unique_id": "macro.hubspot_source.get_engagement_deal_columns", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "macros/get_engagement_deal_columns.sql", "original_file_path": "macros/get_engagement_deal_columns.sql", "name": "get_engagement_deal_columns", "macro_sql": "{% macro get_engagement_deal_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"deal_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"engagement_id\", \"datatype\": dbt_utils.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.hubspot_source.get_email_event_status_change_columns": {"unique_id": "macro.hubspot_source.get_email_event_status_change_columns", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "macros/get_email_event_status_change_columns.sql", "original_file_path": "macros/get_email_event_status_change_columns.sql", "name": "get_email_event_status_change_columns", "macro_sql": "{% macro get_email_event_status_change_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"bounced\", \"datatype\": \"boolean\"},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"portal_subscription_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"requested_by\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"source\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"subscriptions\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.hubspot_source.get_engagement_task_columns": {"unique_id": "macro.hubspot_source.get_engagement_task_columns", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "macros/get_engagement_task_columns.sql", "original_file_path": "macros/get_engagement_task_columns.sql", "name": "get_engagement_task_columns", "macro_sql": "{% macro get_engagement_task_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"body\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"completion_date\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"engagement_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"for_object_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"is_all_day\", \"datatype\": \"boolean\"},\n {\"name\": \"priority\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"probability_to_complete\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"subject\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"task_type\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.hubspot_source.get_ticket_contact_columns": {"unique_id": "macro.hubspot_source.get_ticket_contact_columns", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "macros/get_ticket_contact_columns.sql", "original_file_path": "macros/get_ticket_contact_columns.sql", "name": "get_ticket_contact_columns", "macro_sql": "{% macro get_ticket_contact_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"ticket_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"contact_id\", \"datatype\": dbt_utils.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.hubspot_source.get_ticket_company_columns": {"unique_id": "macro.hubspot_source.get_ticket_company_columns", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "macros/get_ticket_company_columns.sql", "original_file_path": "macros/get_ticket_company_columns.sql", "name": "get_ticket_company_columns", "macro_sql": "{% macro get_ticket_company_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"ticket_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"company_id\", \"datatype\": dbt_utils.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.hubspot_source.get_ticket_columns": {"unique_id": "macro.hubspot_source.get_ticket_columns", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "macros/get_ticket_columns.sql", "original_file_path": "macros/get_ticket_columns.sql", "name": "get_ticket_columns", "macro_sql": "{% macro get_ticket_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"is_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"property_closed_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"property_createdate\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"property_first_agent_reply_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"property_hs_pipeline\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"property_hs_pipeline_stage\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"property_hs_ticket_category\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"property_hs_ticket_priority\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"property_hubspot_owner_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"property_subject\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"property_content\", \"datatype\": dbt_utils.type_string()} \n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('hubspot__ticket_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.hubspot_source.get_deal_company_columns": {"unique_id": "macro.hubspot_source.get_deal_company_columns", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "macros/get_deal_company_columns.sql", "original_file_path": "macros/get_deal_company_columns.sql", "name": "get_deal_company_columns", "macro_sql": "{% macro get_deal_company_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"deal_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"company_id\", \"datatype\": dbt_utils.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.hubspot_source.get_deal_property_history_columns": {"unique_id": "macro.hubspot_source.get_deal_property_history_columns", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "macros/get_deal_property_history_columns.sql", "original_file_path": "macros/get_deal_property_history_columns.sql", "name": "get_deal_property_history_columns", "macro_sql": "{% macro get_deal_property_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"deal_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"source\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"source_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"timestamp\", \"datatype\": dbt_utils.type_timestamp(), \"alias\": \"change_timestamp\"},\n {\"name\": \"value\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.hubspot_source.get_ticket_engagement_columns": {"unique_id": "macro.hubspot_source.get_ticket_engagement_columns", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "macros/get_ticket_engagement_columns.sql", "original_file_path": "macros/get_ticket_engagement_columns.sql", "name": "get_ticket_engagement_columns", "macro_sql": "{% macro get_ticket_engagement_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"ticket_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"engagement_id\", \"datatype\": dbt_utils.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.hubspot_source.get_company_property_history_columns": {"unique_id": "macro.hubspot_source.get_company_property_history_columns", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "macros/get_company_property_history_columns.sql", "original_file_path": "macros/get_company_property_history_columns.sql", "name": "get_company_property_history_columns", "macro_sql": "{% macro get_company_property_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"company_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"source\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"source_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"timestamp\", \"datatype\": dbt_utils.type_timestamp(), \"alias\": \"change_timestamp\"},\n {\"name\": \"value\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.hubspot_source.get_engagement_note_columns": {"unique_id": "macro.hubspot_source.get_engagement_note_columns", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "macros/get_engagement_note_columns.sql", "original_file_path": "macros/get_engagement_note_columns.sql", "name": "get_engagement_note_columns", "macro_sql": "{% macro get_engagement_note_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"body\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"engagement_id\", \"datatype\": dbt_utils.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.hubspot_source.get_engagement_meeting_columns": {"unique_id": "macro.hubspot_source.get_engagement_meeting_columns", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "macros/get_engagement_meeting_columns.sql", "original_file_path": "macros/get_engagement_meeting_columns.sql", "name": "get_engagement_meeting_columns", "macro_sql": "{% macro get_engagement_meeting_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"body\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_from_link_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"end_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"engagement_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"external_url\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"location\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"meeting_outcome\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"pre_meeting_prospect_reminders\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"source\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"source_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"start_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"title\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"web_conference_meeting_id\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.hubspot_source.get_contact_list_member_columns": {"unique_id": "macro.hubspot_source.get_contact_list_member_columns", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "macros/get_contact_list_member_columns.sql", "original_file_path": "macros/get_contact_list_member_columns.sql", "name": "get_contact_list_member_columns", "macro_sql": "{% macro get_contact_list_member_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"added_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"contact_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"contact_list_id\", \"datatype\": dbt_utils.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.hubspot_source.get_email_event_delivered_columns": {"unique_id": "macro.hubspot_source.get_email_event_delivered_columns", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "macros/get_email_event_delivered_columns.sql", "original_file_path": "macros/get_email_event_delivered_columns.sql", "name": "get_email_event_delivered_columns", "macro_sql": "{% macro get_email_event_delivered_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"response\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"smtp_id\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.hubspot_source.get_contact_property_history_columns": {"unique_id": "macro.hubspot_source.get_contact_property_history_columns", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "macros/get_contact_property_history_columns.sql", "original_file_path": "macros/get_contact_property_history_columns.sql", "name": "get_contact_property_history_columns", "macro_sql": "{% macro get_contact_property_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"contact_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"source\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"source_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"timestamp\", \"datatype\": dbt_utils.type_timestamp(), \"alias\": \"change_timestamp\"},\n {\"name\": \"value\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.hubspot_source.get_email_event_print_columns": {"unique_id": "macro.hubspot_source.get_email_event_print_columns", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "macros/get_email_event_print_columns.sql", "original_file_path": "macros/get_email_event_print_columns.sql", "name": "get_email_event_print_columns", "macro_sql": "{% macro get_email_event_print_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"browser\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"ip_address\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"location\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"user_agent\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.hubspot_source.get_engagement_call_columns": {"unique_id": "macro.hubspot_source.get_engagement_call_columns", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "macros/get_engagement_call_columns.sql", "original_file_path": "macros/get_engagement_call_columns.sql", "name": "get_engagement_call_columns", "macro_sql": "{% macro get_engagement_call_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"body\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"callee_object_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"callee_object_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"disposition\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"duration_milliseconds\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"engagement_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"external_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"external_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"from_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"recording_url\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"to_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"transcription_id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"unknown_visitor_conversation\", \"datatype\": \"boolean\"}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.except": {"unique_id": "macro.dbt_utils.except", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/except.sql", "original_file_path": "macros/cross_db_utils/except.sql", "name": "except", "macro_sql": "{% macro except() %}\n {{ return(adapter.dispatch('except', packages = dbt_utils._get_utils_namespaces())()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__except": {"unique_id": "macro.dbt_utils.default__except", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/except.sql", "original_file_path": "macros/cross_db_utils/except.sql", "name": "default__except", "macro_sql": "{% macro default__except() %}\n\n except\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.bigquery__except": {"unique_id": "macro.dbt_utils.bigquery__except", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/except.sql", "original_file_path": "macros/cross_db_utils/except.sql", "name": "bigquery__except", "macro_sql": "{% macro bigquery__except() %}\n\n except distinct\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.replace": {"unique_id": "macro.dbt_utils.replace", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/replace.sql", "original_file_path": "macros/cross_db_utils/replace.sql", "name": "replace", "macro_sql": "{% macro replace(field, old_chars, new_chars) -%}\n {{ return(adapter.dispatch('replace', packages = dbt_utils._get_utils_namespaces()) (field, old_chars, new_chars)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__replace": {"unique_id": "macro.dbt_utils.default__replace", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/replace.sql", "original_file_path": "macros/cross_db_utils/replace.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.concat": {"unique_id": "macro.dbt_utils.concat", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/concat.sql", "original_file_path": "macros/cross_db_utils/concat.sql", "name": "concat", "macro_sql": "{% macro concat(fields) -%}\n {{ return(adapter.dispatch('concat', packages = dbt_utils._get_utils_namespaces())(fields)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__concat": {"unique_id": "macro.dbt_utils.default__concat", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/concat.sql", "original_file_path": "macros/cross_db_utils/concat.sql", "name": "default__concat", "macro_sql": "{% macro default__concat(fields) -%}\n concat({{ fields|join(', ') }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.alternative_concat": {"unique_id": "macro.dbt_utils.alternative_concat", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/concat.sql", "original_file_path": "macros/cross_db_utils/concat.sql", "name": "alternative_concat", "macro_sql": "{% macro alternative_concat(fields) %}\n {{ fields|join(' || ') }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.redshift__concat": {"unique_id": "macro.dbt_utils.redshift__concat", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/concat.sql", "original_file_path": "macros/cross_db_utils/concat.sql", "name": "redshift__concat", "macro_sql": "{% macro redshift__concat(fields) %}\n {{ dbt_utils.alternative_concat(fields) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.snowflake__concat": {"unique_id": "macro.dbt_utils.snowflake__concat", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/concat.sql", "original_file_path": "macros/cross_db_utils/concat.sql", "name": "snowflake__concat", "macro_sql": "{% macro snowflake__concat(fields) %}\n {{ dbt_utils.alternative_concat(fields) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.type_string": {"unique_id": "macro.dbt_utils.type_string", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "type_string", "macro_sql": "\n\n{%- macro type_string() -%}\n {{ return(adapter.dispatch('type_string', packages = dbt_utils._get_utils_namespaces())()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__type_string": {"unique_id": "macro.dbt_utils.default__type_string", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "default__type_string", "macro_sql": "{% macro default__type_string() %}\n string\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.redshift__type_string": {"unique_id": "macro.dbt_utils.redshift__type_string", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "redshift__type_string", "macro_sql": "\n\n{%- macro redshift__type_string() -%}\n varchar\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.postgres__type_string": {"unique_id": "macro.dbt_utils.postgres__type_string", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "postgres__type_string", "macro_sql": "{% macro postgres__type_string() %}\n varchar\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.snowflake__type_string": {"unique_id": "macro.dbt_utils.snowflake__type_string", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "snowflake__type_string", "macro_sql": "{% macro snowflake__type_string() %}\n varchar\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.type_timestamp": {"unique_id": "macro.dbt_utils.type_timestamp", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "type_timestamp", "macro_sql": "\n\n{%- macro type_timestamp() -%}\n {{ return(adapter.dispatch('type_timestamp', packages = dbt_utils._get_utils_namespaces())()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__type_timestamp": {"unique_id": "macro.dbt_utils.default__type_timestamp", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "default__type_timestamp", "macro_sql": "{% macro default__type_timestamp() %}\n timestamp\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.snowflake__type_timestamp": {"unique_id": "macro.dbt_utils.snowflake__type_timestamp", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "snowflake__type_timestamp", "macro_sql": "{% macro snowflake__type_timestamp() %}\n timestamp_ntz\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.type_float": {"unique_id": "macro.dbt_utils.type_float", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "type_float", "macro_sql": "\n\n{%- macro type_float() -%}\n {{ return(adapter.dispatch('type_float', packages = dbt_utils._get_utils_namespaces())()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__type_float": {"unique_id": "macro.dbt_utils.default__type_float", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "default__type_float", "macro_sql": "{% macro default__type_float() %}\n float\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.bigquery__type_float": {"unique_id": "macro.dbt_utils.bigquery__type_float", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "bigquery__type_float", "macro_sql": "{% macro bigquery__type_float() %}\n float64\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.type_numeric": {"unique_id": "macro.dbt_utils.type_numeric", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "type_numeric", "macro_sql": "\n\n{%- macro type_numeric() -%}\n {{ return(adapter.dispatch('type_numeric', packages = dbt_utils._get_utils_namespaces())()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__type_numeric": {"unique_id": "macro.dbt_utils.default__type_numeric", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "default__type_numeric", "macro_sql": "{% macro default__type_numeric() %}\n numeric(28, 6)\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.bigquery__type_numeric": {"unique_id": "macro.dbt_utils.bigquery__type_numeric", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "bigquery__type_numeric", "macro_sql": "{% macro bigquery__type_numeric() %}\n numeric\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.type_bigint": {"unique_id": "macro.dbt_utils.type_bigint", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "type_bigint", "macro_sql": "\n\n{%- macro type_bigint() -%}\n {{ return(adapter.dispatch('type_bigint', packages = dbt_utils._get_utils_namespaces())()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__type_bigint": {"unique_id": "macro.dbt_utils.default__type_bigint", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "default__type_bigint", "macro_sql": "{% macro default__type_bigint() %}\n bigint\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.bigquery__type_bigint": {"unique_id": "macro.dbt_utils.bigquery__type_bigint", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "bigquery__type_bigint", "macro_sql": "{% macro bigquery__type_bigint() %}\n int64\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.type_int": {"unique_id": "macro.dbt_utils.type_int", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "type_int", "macro_sql": "\n\n{%- macro type_int() -%}\n {{ return(adapter.dispatch('type_int', packages = dbt_utils._get_utils_namespaces())()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__type_int": {"unique_id": "macro.dbt_utils.default__type_int", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "default__type_int", "macro_sql": "{% macro default__type_int() %}\n int\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.bigquery__type_int": {"unique_id": "macro.dbt_utils.bigquery__type_int", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "bigquery__type_int", "macro_sql": "{% macro bigquery__type_int() %}\n int64\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils._is_relation": {"unique_id": "macro.dbt_utils._is_relation", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/_is_relation.sql", "original_file_path": "macros/cross_db_utils/_is_relation.sql", "name": "_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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.length": {"unique_id": "macro.dbt_utils.length", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/length.sql", "original_file_path": "macros/cross_db_utils/length.sql", "name": "length", "macro_sql": "{% macro length(expression) -%}\n {{ return(adapter.dispatch('length', packages = dbt_utils._get_utils_namespaces()) (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__length": {"unique_id": "macro.dbt_utils.default__length", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/length.sql", "original_file_path": "macros/cross_db_utils/length.sql", "name": "default__length", "macro_sql": "{% macro default__length(expression) %}\n \n length(\n {{ expression }}\n )\n \n{%- endmacro -%}\n\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.redshift__length": {"unique_id": "macro.dbt_utils.redshift__length", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/length.sql", "original_file_path": "macros/cross_db_utils/length.sql", "name": "redshift__length", "macro_sql": "{% macro redshift__length(expression) %}\n\n len(\n {{ expression }}\n )\n \n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.dateadd": {"unique_id": "macro.dbt_utils.dateadd", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/dateadd.sql", "original_file_path": "macros/cross_db_utils/dateadd.sql", "name": "dateadd", "macro_sql": "{% macro dateadd(datepart, interval, from_date_or_timestamp) %}\n {{ return(adapter.dispatch('dateadd', packages = dbt_utils._get_utils_namespaces())(datepart, interval, from_date_or_timestamp)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__dateadd": {"unique_id": "macro.dbt_utils.default__dateadd", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/dateadd.sql", "original_file_path": "macros/cross_db_utils/dateadd.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.bigquery__dateadd": {"unique_id": "macro.dbt_utils.bigquery__dateadd", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/dateadd.sql", "original_file_path": "macros/cross_db_utils/dateadd.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.postgres__dateadd": {"unique_id": "macro.dbt_utils.postgres__dateadd", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/dateadd.sql", "original_file_path": "macros/cross_db_utils/dateadd.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.intersect": {"unique_id": "macro.dbt_utils.intersect", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/intersect.sql", "original_file_path": "macros/cross_db_utils/intersect.sql", "name": "intersect", "macro_sql": "{% macro intersect() %}\n {{ return(adapter.dispatch('intersect', packages = dbt_utils._get_utils_namespaces())()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__intersect": {"unique_id": "macro.dbt_utils.default__intersect", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/intersect.sql", "original_file_path": "macros/cross_db_utils/intersect.sql", "name": "default__intersect", "macro_sql": "{% macro default__intersect() %}\n\n intersect\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.bigquery__intersect": {"unique_id": "macro.dbt_utils.bigquery__intersect", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/intersect.sql", "original_file_path": "macros/cross_db_utils/intersect.sql", "name": "bigquery__intersect", "macro_sql": "{% macro bigquery__intersect() %}\n\n intersect distinct\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.right": {"unique_id": "macro.dbt_utils.right", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/right.sql", "original_file_path": "macros/cross_db_utils/right.sql", "name": "right", "macro_sql": "{% macro right(string_text, length_expression) -%}\n {{ return(adapter.dispatch('right', packages = dbt_utils._get_utils_namespaces()) (string_text, length_expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__right": {"unique_id": "macro.dbt_utils.default__right", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/right.sql", "original_file_path": "macros/cross_db_utils/right.sql", "name": "default__right", "macro_sql": "{% macro default__right(string_text, length_expression) %}\n\n right(\n {{ string_text }},\n {{ length_expression }}\n )\n \n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.bigquery__right": {"unique_id": "macro.dbt_utils.bigquery__right", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/right.sql", "original_file_path": "macros/cross_db_utils/right.sql", "name": "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 -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.snowflake__right": {"unique_id": "macro.dbt_utils.snowflake__right", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/right.sql", "original_file_path": "macros/cross_db_utils/right.sql", "name": "snowflake__right", "macro_sql": "{% macro snowflake__right(string_text, length_expression) %}\n\n case when {{ length_expression }} = 0 \n then ''\n else \n right(\n {{ string_text }},\n {{ length_expression }}\n )\n end\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.datediff": {"unique_id": "macro.dbt_utils.datediff", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datediff.sql", "original_file_path": "macros/cross_db_utils/datediff.sql", "name": "datediff", "macro_sql": "{% macro datediff(first_date, second_date, datepart) %}\n {{ return(adapter.dispatch('datediff', packages = dbt_utils._get_utils_namespaces())(first_date, second_date, datepart)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__datediff": {"unique_id": "macro.dbt_utils.default__datediff", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datediff.sql", "original_file_path": "macros/cross_db_utils/datediff.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.bigquery__datediff": {"unique_id": "macro.dbt_utils.bigquery__datediff", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datediff.sql", "original_file_path": "macros/cross_db_utils/datediff.sql", "name": "bigquery__datediff", "macro_sql": "{% macro bigquery__datediff(first_date, second_date, datepart) %}\n\n datetime_diff(\n cast({{second_date}} as datetime),\n cast({{first_date}} as datetime),\n {{datepart}}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.postgres__datediff": {"unique_id": "macro.dbt_utils.postgres__datediff", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datediff.sql", "original_file_path": "macros/cross_db_utils/datediff.sql", "name": "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 ({{ dbt_utils.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_utils.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_utils.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_utils.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_utils.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_utils.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_utils.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_utils.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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.safe_cast": {"unique_id": "macro.dbt_utils.safe_cast", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/safe_cast.sql", "original_file_path": "macros/cross_db_utils/safe_cast.sql", "name": "safe_cast", "macro_sql": "{% macro safe_cast(field, type) %}\n {{ return(adapter.dispatch('safe_cast', packages = dbt_utils._get_utils_namespaces()) (field, type)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__safe_cast": {"unique_id": "macro.dbt_utils.default__safe_cast", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/safe_cast.sql", "original_file_path": "macros/cross_db_utils/safe_cast.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.snowflake__safe_cast": {"unique_id": "macro.dbt_utils.snowflake__safe_cast", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/safe_cast.sql", "original_file_path": "macros/cross_db_utils/safe_cast.sql", "name": "snowflake__safe_cast", "macro_sql": "{% macro snowflake__safe_cast(field, type) %}\n try_cast({{field}} as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.bigquery__safe_cast": {"unique_id": "macro.dbt_utils.bigquery__safe_cast", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/safe_cast.sql", "original_file_path": "macros/cross_db_utils/safe_cast.sql", "name": "bigquery__safe_cast", "macro_sql": "{% macro bigquery__safe_cast(field, type) %}\n safe_cast({{field}} as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.hash": {"unique_id": "macro.dbt_utils.hash", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/hash.sql", "original_file_path": "macros/cross_db_utils/hash.sql", "name": "hash", "macro_sql": "{% macro hash(field) -%}\n {{ return(adapter.dispatch('hash', packages = dbt_utils._get_utils_namespaces()) (field)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__hash": {"unique_id": "macro.dbt_utils.default__hash", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/hash.sql", "original_file_path": "macros/cross_db_utils/hash.sql", "name": "default__hash", "macro_sql": "{% macro default__hash(field) -%}\n md5(cast({{field}} as {{dbt_utils.type_string()}}))\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.bigquery__hash": {"unique_id": "macro.dbt_utils.bigquery__hash", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/hash.sql", "original_file_path": "macros/cross_db_utils/hash.sql", "name": "bigquery__hash", "macro_sql": "{% macro bigquery__hash(field) -%}\n to_hex({{dbt_utils.default__hash(field)}})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.identifier": {"unique_id": "macro.dbt_utils.identifier", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/identifier.sql", "original_file_path": "macros/cross_db_utils/identifier.sql", "name": "identifier", "macro_sql": "{% macro identifier(value) %}\t\n {%- set error_message = '\n Warning: the `identifier` macro is no longer supported and will be deprecated in a future release of dbt-utils. \\\n Use `adapter.quote` instead. The {}.{} model triggered this warning. \\\n '.format(model.package_name, model.name) -%}\n {%- do exceptions.warn(error_message) -%}\n {{ return(adapter.dispatch('identifier', packages = dbt_utils._get_utils_namespaces()) (value)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__identifier": {"unique_id": "macro.dbt_utils.default__identifier", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/identifier.sql", "original_file_path": "macros/cross_db_utils/identifier.sql", "name": "default__identifier", "macro_sql": "{% macro default__identifier(value) -%}\t\n \"{{ value }}\"\t\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.bigquery__identifier": {"unique_id": "macro.dbt_utils.bigquery__identifier", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/identifier.sql", "original_file_path": "macros/cross_db_utils/identifier.sql", "name": "bigquery__identifier", "macro_sql": "{% macro bigquery__identifier(value) -%}\t\n `{{ value }}`\t\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.position": {"unique_id": "macro.dbt_utils.position", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/position.sql", "original_file_path": "macros/cross_db_utils/position.sql", "name": "position", "macro_sql": "{% macro position(substring_text, string_text) -%}\n {{ return(adapter.dispatch('position', packages = dbt_utils._get_utils_namespaces()) (substring_text, string_text)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__position": {"unique_id": "macro.dbt_utils.default__position", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/position.sql", "original_file_path": "macros/cross_db_utils/position.sql", "name": "default__position", "macro_sql": "{% macro default__position(substring_text, string_text) %}\n\n position(\n {{ substring_text }} in {{ string_text }}\n )\n \n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.bigquery__position": {"unique_id": "macro.dbt_utils.bigquery__position", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/position.sql", "original_file_path": "macros/cross_db_utils/position.sql", "name": "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 -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.string_literal": {"unique_id": "macro.dbt_utils.string_literal", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/literal.sql", "original_file_path": "macros/cross_db_utils/literal.sql", "name": "string_literal", "macro_sql": "{%- macro string_literal(value) -%}\n {{ return(adapter.dispatch('string_literal', packages = dbt_utils._get_utils_namespaces()) (value)) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__string_literal": {"unique_id": "macro.dbt_utils.default__string_literal", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/literal.sql", "original_file_path": "macros/cross_db_utils/literal.sql", "name": "default__string_literal", "macro_sql": "{% macro default__string_literal(value) -%}\n '{{ value }}'\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.current_timestamp": {"unique_id": "macro.dbt_utils.current_timestamp", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "current_timestamp", "macro_sql": "{% macro current_timestamp() -%}\n {{ return(adapter.dispatch('current_timestamp', packages = dbt_utils._get_utils_namespaces())()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__current_timestamp": {"unique_id": "macro.dbt_utils.default__current_timestamp", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "default__current_timestamp", "macro_sql": "{% macro default__current_timestamp() %}\n current_timestamp::{{dbt_utils.type_timestamp()}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.redshift__current_timestamp": {"unique_id": "macro.dbt_utils.redshift__current_timestamp", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "redshift__current_timestamp", "macro_sql": "{% macro redshift__current_timestamp() %}\n getdate()\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.bigquery__current_timestamp": {"unique_id": "macro.dbt_utils.bigquery__current_timestamp", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "bigquery__current_timestamp", "macro_sql": "{% macro bigquery__current_timestamp() %}\n current_timestamp\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.current_timestamp_in_utc": {"unique_id": "macro.dbt_utils.current_timestamp_in_utc", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "current_timestamp_in_utc", "macro_sql": "{% macro current_timestamp_in_utc() -%}\n {{ return(adapter.dispatch('current_timestamp_in_utc', packages = dbt_utils._get_utils_namespaces())()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__current_timestamp_in_utc": {"unique_id": "macro.dbt_utils.default__current_timestamp_in_utc", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "default__current_timestamp_in_utc", "macro_sql": "{% macro default__current_timestamp_in_utc() %}\n {{dbt_utils.current_timestamp()}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.snowflake__current_timestamp_in_utc": {"unique_id": "macro.dbt_utils.snowflake__current_timestamp_in_utc", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "snowflake__current_timestamp_in_utc", "macro_sql": "{% macro snowflake__current_timestamp_in_utc() %}\n convert_timezone('UTC', {{dbt_utils.current_timestamp()}})::{{dbt_utils.type_timestamp()}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.postgres__current_timestamp_in_utc": {"unique_id": "macro.dbt_utils.postgres__current_timestamp_in_utc", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "postgres__current_timestamp_in_utc", "macro_sql": "{% macro postgres__current_timestamp_in_utc() %}\n (current_timestamp at time zone 'utc')::{{dbt_utils.type_timestamp()}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.width_bucket": {"unique_id": "macro.dbt_utils.width_bucket", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/width_bucket.sql", "original_file_path": "macros/cross_db_utils/width_bucket.sql", "name": "width_bucket", "macro_sql": "{% macro width_bucket(expr, min_value, max_value, num_buckets) %}\n {{ return(adapter.dispatch('width_bucket', packages = dbt_utils._get_utils_namespaces()) (expr, min_value, max_value, num_buckets)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__width_bucket": {"unique_id": "macro.dbt_utils.default__width_bucket", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/width_bucket.sql", "original_file_path": "macros/cross_db_utils/width_bucket.sql", "name": "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_utils.safe_cast(expr, dbt_utils.type_numeric() ) }},\n {{ dbt_utils.safe_cast(bin_size, dbt_utils.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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.redshift__width_bucket": {"unique_id": "macro.dbt_utils.redshift__width_bucket", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/width_bucket.sql", "original_file_path": "macros/cross_db_utils/width_bucket.sql", "name": "redshift__width_bucket", "macro_sql": "{% macro redshift__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 exactly at the bucket edge\n case\n when\n {{ dbt_utils.safe_cast(expr, dbt_utils.type_numeric() ) }} %\n {{ dbt_utils.safe_cast(bin_size, dbt_utils.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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.snowflake__width_bucket": {"unique_id": "macro.dbt_utils.snowflake__width_bucket", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/width_bucket.sql", "original_file_path": "macros/cross_db_utils/width_bucket.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils._get_utils_namespaces": {"unique_id": "macro.dbt_utils._get_utils_namespaces", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/_get_utils_namespaces.sql", "original_file_path": "macros/cross_db_utils/_get_utils_namespaces.sql", "name": "_get_utils_namespaces", "macro_sql": "{% macro _get_utils_namespaces() %}\n {% set override_namespaces = var('dbt_utils_dispatch_list', []) %}\n {% do return(override_namespaces + ['dbt_utils']) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.last_day": {"unique_id": "macro.dbt_utils.last_day", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/last_day.sql", "original_file_path": "macros/cross_db_utils/last_day.sql", "name": "last_day", "macro_sql": "{% macro last_day(date, datepart) %}\n {{ return(adapter.dispatch('last_day', packages = dbt_utils._get_utils_namespaces()) (date, datepart)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default_last_day": {"unique_id": "macro.dbt_utils.default_last_day", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/last_day.sql", "original_file_path": "macros/cross_db_utils/last_day.sql", "name": "default_last_day", "macro_sql": "\n\n\n{%- macro default_last_day(date, datepart) -%}\n cast(\n {{dbt_utils.dateadd('day', '-1',\n dbt_utils.dateadd(datepart, '1', dbt_utils.date_trunc(datepart, date))\n )}}\n as date)\n{%- endmacro -%}\n\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__last_day": {"unique_id": "macro.dbt_utils.default__last_day", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/last_day.sql", "original_file_path": "macros/cross_db_utils/last_day.sql", "name": "default__last_day", "macro_sql": "{% macro default__last_day(date, datepart) -%}\n {{dbt_utils.default_last_day(date, datepart)}}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.postgres__last_day": {"unique_id": "macro.dbt_utils.postgres__last_day", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/last_day.sql", "original_file_path": "macros/cross_db_utils/last_day.sql", "name": "postgres__last_day", "macro_sql": "{% macro postgres__last_day(date, datepart) -%}\n\n {%- if datepart == 'quarter' -%}\n {{ exceptions.raise_compiler_error(\n \"dbt_utils.last_day is not supported for datepart 'quarter' on this adapter\") }}\n {%- else -%}\n {{dbt_utils.default_last_day(date, datepart)}}\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.split_part": {"unique_id": "macro.dbt_utils.split_part", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/split_part.sql", "original_file_path": "macros/cross_db_utils/split_part.sql", "name": "split_part", "macro_sql": "{% macro split_part(string_text, delimiter_text, part_number) %}\n {{ return(adapter.dispatch('split_part', packages = dbt_utils._get_utils_namespaces()) (string_text, delimiter_text, part_number)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__split_part": {"unique_id": "macro.dbt_utils.default__split_part", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/split_part.sql", "original_file_path": "macros/cross_db_utils/split_part.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.bigquery__split_part": {"unique_id": "macro.dbt_utils.bigquery__split_part", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/split_part.sql", "original_file_path": "macros/cross_db_utils/split_part.sql", "name": "bigquery__split_part", "macro_sql": "{% macro bigquery__split_part(string_text, delimiter_text, part_number) %}\n\n split(\n {{ string_text }},\n {{ delimiter_text }}\n )[safe_offset({{ part_number - 1 }})]\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.date_trunc": {"unique_id": "macro.dbt_utils.date_trunc", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/date_trunc.sql", "original_file_path": "macros/cross_db_utils/date_trunc.sql", "name": "date_trunc", "macro_sql": "{% macro date_trunc(datepart, date) -%}\n {{ return(adapter.dispatch('date_trunc', packages = dbt_utils._get_utils_namespaces()) (datepart, date)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__date_trunc": {"unique_id": "macro.dbt_utils.default__date_trunc", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/date_trunc.sql", "original_file_path": "macros/cross_db_utils/date_trunc.sql", "name": "default__date_trunc", "macro_sql": "{% macro default__date_trunc(datepart, date) %}\n date_trunc('{{datepart}}', {{date}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.bigquery__date_trunc": {"unique_id": "macro.dbt_utils.bigquery__date_trunc", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/date_trunc.sql", "original_file_path": "macros/cross_db_utils/date_trunc.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils._is_ephemeral": {"unique_id": "macro.dbt_utils._is_ephemeral", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/_is_ephemeral.sql", "original_file_path": "macros/cross_db_utils/_is_ephemeral.sql", "name": "_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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.get_period_boundaries": {"unique_id": "macro.dbt_utils.get_period_boundaries", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/materializations/insert_by_period_materialization.sql", "original_file_path": "macros/materializations/insert_by_period_materialization.sql", "name": "get_period_boundaries", "macro_sql": "{% macro get_period_boundaries(target_schema, target_table, timestamp_field, start_date, stop_date, period) -%}\n {{ return(adapter.dispatch('get_period_boundaries', packages = dbt_utils._get_utils_namespaces())(target_schema, target_table, timestamp_field, start_date, stop_date, period)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__get_period_boundaries": {"unique_id": "macro.dbt_utils.default__get_period_boundaries", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/materializations/insert_by_period_materialization.sql", "original_file_path": "macros/materializations/insert_by_period_materialization.sql", "name": "default__get_period_boundaries", "macro_sql": "{% macro default__get_period_boundaries(target_schema, target_table, timestamp_field, start_date, stop_date, period) -%}\n\n {% call statement('period_boundaries', fetch_result=True) -%}\n with data as (\n select\n coalesce(max(\"{{timestamp_field}}\"), '{{start_date}}')::timestamp as start_timestamp,\n coalesce(\n {{dbt_utils.dateadd('millisecond',\n -1,\n \"nullif('\" ~ stop_date ~ \"','')::timestamp\")}},\n {{dbt_utils.current_timestamp()}}\n ) as stop_timestamp\n from \"{{target_schema}}\".\"{{target_table}}\"\n )\n\n select\n start_timestamp,\n stop_timestamp,\n {{dbt_utils.datediff('start_timestamp',\n 'stop_timestamp',\n period)}} + 1 as num_periods\n from data\n {%- endcall %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.get_period_sql": {"unique_id": "macro.dbt_utils.get_period_sql", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/materializations/insert_by_period_materialization.sql", "original_file_path": "macros/materializations/insert_by_period_materialization.sql", "name": "get_period_sql", "macro_sql": "{% macro get_period_sql(target_cols_csv, sql, timestamp_field, period, start_timestamp, stop_timestamp, offset) -%}\n {{ return(adapter.dispatch('get_period_sql', packages = dbt_utils._get_utils_namespaces())(target_cols_csv, sql, timestamp_field, period, start_timestamp, stop_timestamp, offset)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__get_period_sql": {"unique_id": "macro.dbt_utils.default__get_period_sql", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/materializations/insert_by_period_materialization.sql", "original_file_path": "macros/materializations/insert_by_period_materialization.sql", "name": "default__get_period_sql", "macro_sql": "{% macro default__get_period_sql(target_cols_csv, sql, timestamp_field, period, start_timestamp, stop_timestamp, offset) -%}\n\n {%- set period_filter -%}\n (\"{{timestamp_field}}\" > '{{start_timestamp}}'::timestamp + interval '{{offset}} {{period}}' and\n \"{{timestamp_field}}\" <= '{{start_timestamp}}'::timestamp + interval '{{offset}} {{period}}' + interval '1 {{period}}' and\n \"{{timestamp_field}}\" < '{{stop_timestamp}}'::timestamp)\n {%- endset -%}\n\n {%- set filtered_sql = sql | replace(\"__PERIOD_FILTER__\", period_filter) -%}\n\n select\n {{target_cols_csv}}\n from (\n {{filtered_sql}}\n )\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.materialization_insert_by_period_default": {"unique_id": "macro.dbt_utils.materialization_insert_by_period_default", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/materializations/insert_by_period_materialization.sql", "original_file_path": "macros/materializations/insert_by_period_materialization.sql", "name": "materialization_insert_by_period_default", "macro_sql": "{% materialization insert_by_period, default -%}\n {%- set timestamp_field = config.require('timestamp_field') -%}\n {%- set start_date = config.require('start_date') -%}\n {%- set stop_date = config.get('stop_date') or '' -%}}\n {%- set period = config.get('period') or 'week' -%}\n\n {%- if sql.find('__PERIOD_FILTER__') == -1 -%}\n {%- set error_message -%}\n Model '{{ model.unique_id }}' does not include the required string '__PERIOD_FILTER__' in its sql\n {%- endset -%}\n {{ exceptions.raise_compiler_error(error_message) }}\n {%- endif -%}\n\n {%- set identifier = model['name'] -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n {%- set target_relation = api.Relation.create(identifier=identifier, schema=schema, type='table') -%}\n\n {%- set non_destructive_mode = (flags.NON_DESTRUCTIVE == True) -%}\n {%- set full_refresh_mode = (flags.FULL_REFRESH == True) -%}\n\n {%- set exists_as_table = (old_relation is not none and old_relation.is_table) -%}\n {%- set exists_not_as_table = (old_relation is not none and not old_relation.is_table) -%}\n\n {%- set should_truncate = (non_destructive_mode and full_refresh_mode and exists_as_table) -%}\n {%- set should_drop = (not should_truncate and (full_refresh_mode or exists_not_as_table)) -%}\n {%- set force_create = (flags.FULL_REFRESH and not flags.NON_DESTRUCTIVE) -%}\n\n -- setup\n {% if old_relation is none -%}\n -- noop\n {%- elif should_truncate -%}\n {{adapter.truncate_relation(old_relation)}}\n {%- elif should_drop -%}\n {{adapter.drop_relation(old_relation)}}\n {%- set old_relation = none -%}\n {%- endif %}\n\n {{run_hooks(pre_hooks, inside_transaction=False)}}\n\n -- `begin` happens here, so `commit` after it to finish the transaction\n {{run_hooks(pre_hooks, inside_transaction=True)}}\n {% call statement() -%}\n begin; -- make extra sure we've closed out the transaction\n commit;\n {%- endcall %}\n\n -- build model\n {% if force_create or old_relation is none -%}\n {# Create an empty target table -#}\n {% call statement('main') -%}\n {%- set empty_sql = sql | replace(\"__PERIOD_FILTER__\", 'false') -%}\n {{create_table_as(False, target_relation, empty_sql)}};\n {%- endcall %}\n {%- endif %}\n\n {% set _ = dbt_utils.get_period_boundaries(schema,\n identifier,\n timestamp_field,\n start_date,\n stop_date,\n period) %}\n {%- set start_timestamp = load_result('period_boundaries')['data'][0][0] | string -%}\n {%- set stop_timestamp = load_result('period_boundaries')['data'][0][1] | string -%}\n {%- set num_periods = load_result('period_boundaries')['data'][0][2] | int -%}\n\n {% set target_columns = adapter.get_columns_in_relation(target_relation) %}\n {%- set target_cols_csv = target_columns | map(attribute='quoted') | join(', ') -%}\n {%- set loop_vars = {'sum_rows_inserted': 0} -%}\n\n -- commit each period as a separate transaction\n {% for i in range(num_periods) -%}\n {%- set msg = \"Running for \" ~ period ~ \" \" ~ (i + 1) ~ \" of \" ~ (num_periods) -%}\n {{ dbt_utils.log_info(msg) }}\n\n {%- set tmp_identifier = model['name'] ~ '__dbt_incremental_period' ~ i ~ '_tmp' -%}\n {%- set tmp_relation = api.Relation.create(identifier=tmp_identifier,\n schema=schema, type='table') -%}\n {% call statement() -%}\n {% set tmp_table_sql = dbt_utils.get_period_sql(target_cols_csv,\n sql,\n timestamp_field,\n period,\n start_timestamp,\n stop_timestamp,\n i) %}\n {{dbt.create_table_as(True, tmp_relation, tmp_table_sql)}}\n {%- endcall %}\n\n {{adapter.expand_target_column_types(from_relation=tmp_relation,\n to_relation=target_relation)}}\n {%- set name = 'main-' ~ i -%}\n {% call statement(name, fetch_result=True) -%}\n insert into {{target_relation}} ({{target_cols_csv}})\n (\n select\n {{target_cols_csv}}\n from {{tmp_relation.include(schema=False)}}\n );\n {%- endcall %}\n {% set result = load_result('main-' ~ i) %}\n {% if 'response' in result.keys() %} {# added in v0.19.0 #}\n {% set rows_inserted = result['response']['rows_affected'] %}\n {% else %} {# older versions #}\n {% set rows_inserted = result['status'].split(\" \")[2] | int %}\n {% endif %}\n \n {%- set sum_rows_inserted = loop_vars['sum_rows_inserted'] + rows_inserted -%}\n {%- if loop_vars.update({'sum_rows_inserted': sum_rows_inserted}) %} {% endif -%}\n\n {%- set msg = \"Ran for \" ~ period ~ \" \" ~ (i + 1) ~ \" of \" ~ (num_periods) ~ \"; \" ~ rows_inserted ~ \" records inserted\" -%}\n {{ dbt_utils.log_info(msg) }}\n\n {%- endfor %}\n\n {% call statement() -%}\n begin;\n {%- endcall %}\n\n {{run_hooks(post_hooks, inside_transaction=True)}}\n\n {% call statement() -%}\n commit;\n {%- endcall %}\n\n {{run_hooks(post_hooks, inside_transaction=False)}}\n\n {%- set status_string = \"INSERT \" ~ loop_vars['sum_rows_inserted'] -%}\n\n {% call noop_statement('main', status_string) -%}\n -- no-op\n {%- endcall %}\n\n -- Return the relations created in this materialization\n {{ return({'relations': [target_relation]}) }} \n\n{%- endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.pretty_log_format": {"unique_id": "macro.dbt_utils.pretty_log_format", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/logger/pretty_log_format.sql", "original_file_path": "macros/logger/pretty_log_format.sql", "name": "pretty_log_format", "macro_sql": "{% macro pretty_log_format(message) %}\n {{ return(adapter.dispatch('pretty_log_format', packages = dbt_utils._get_utils_namespaces())(message)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__pretty_log_format": {"unique_id": "macro.dbt_utils.default__pretty_log_format", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/logger/pretty_log_format.sql", "original_file_path": "macros/logger/pretty_log_format.sql", "name": "default__pretty_log_format", "macro_sql": "{% macro default__pretty_log_format(message) %}\n {{ return( dbt_utils.pretty_time() ~ ' + ' ~ message) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.pretty_time": {"unique_id": "macro.dbt_utils.pretty_time", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/logger/pretty_time.sql", "original_file_path": "macros/logger/pretty_time.sql", "name": "pretty_time", "macro_sql": "{% macro pretty_time(format='%H:%M:%S') %}\n {{ return(adapter.dispatch('pretty_time', packages = dbt_utils._get_utils_namespaces())(format)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__pretty_time": {"unique_id": "macro.dbt_utils.default__pretty_time", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/logger/pretty_time.sql", "original_file_path": "macros/logger/pretty_time.sql", "name": "default__pretty_time", "macro_sql": "{% macro default__pretty_time(format='%H:%M:%S') %}\n {{ return(modules.datetime.datetime.now().strftime(format)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.log_info": {"unique_id": "macro.dbt_utils.log_info", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/logger/log_info.sql", "original_file_path": "macros/logger/log_info.sql", "name": "log_info", "macro_sql": "{% macro log_info(message) %}\n {{ return(adapter.dispatch('log_info', packages = dbt_utils._get_utils_namespaces())(message)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__log_info": {"unique_id": "macro.dbt_utils.default__log_info", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/logger/log_info.sql", "original_file_path": "macros/logger/log_info.sql", "name": "default__log_info", "macro_sql": "{% macro default__log_info(message) %}\n {{ log(dbt_utils.pretty_log_format(message), info=True) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.get_intervals_between": {"unique_id": "macro.dbt_utils.get_intervals_between", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/datetime/date_spine.sql", "original_file_path": "macros/datetime/date_spine.sql", "name": "get_intervals_between", "macro_sql": "{% macro get_intervals_between(start_date, end_date, datepart) -%}\n {{ return(adapter.dispatch('get_intervals_between', packages = dbt_utils._get_utils_namespaces())(start_date, end_date, datepart)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__get_intervals_between": {"unique_id": "macro.dbt_utils.default__get_intervals_between", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/datetime/date_spine.sql", "original_file_path": "macros/datetime/date_spine.sql", "name": "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_utils.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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.date_spine": {"unique_id": "macro.dbt_utils.date_spine", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/datetime/date_spine.sql", "original_file_path": "macros/datetime/date_spine.sql", "name": "date_spine", "macro_sql": "{% macro date_spine(datepart, start_date, end_date) %}\n {{ return(adapter.dispatch('date_spine', packages = dbt_utils._get_utils_namespaces())(datepart, start_date, end_date)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__date_spine": {"unique_id": "macro.dbt_utils.default__date_spine", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/datetime/date_spine.sql", "original_file_path": "macros/datetime/date_spine.sql", "name": "default__date_spine", "macro_sql": "{% macro default__date_spine(datepart, start_date, end_date) %}\n\n/*\ncall as follows:\n\ndate_spine(\n \"day\",\n \"to_date('01/01/2016', 'mm/dd/yyyy')\",\n \"dateadd(week, 1, current_date)\"\n)\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_utils.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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.get_url_host": {"unique_id": "macro.dbt_utils.get_url_host", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "name": "get_url_host", "macro_sql": "{% macro get_url_host(field) -%}\n {{ return(adapter.dispatch('get_url_host', packages = dbt_utils._get_utils_namespaces())(field)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__get_url_host": {"unique_id": "macro.dbt_utils.default__get_url_host", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "name": "default__get_url_host", "macro_sql": "{% macro default__get_url_host(field) -%}\n\n{%- set parsed = \n dbt_utils.split_part(\n dbt_utils.split_part(\n dbt_utils.replace(\n dbt_utils.replace(field, \"'http://'\", \"''\"\n ), \"'https://'\", \"''\"\n ), \"'/'\", 1\n ), \"'?'\", 1\n )\n \n-%}\n\n \n {{ dbt_utils.safe_cast(\n parsed,\n dbt_utils.type_string()\n )}}\n \n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.get_url_path": {"unique_id": "macro.dbt_utils.get_url_path", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "name": "get_url_path", "macro_sql": "{% macro get_url_path(field) -%}\n {{ return(adapter.dispatch('get_url_path', packages = dbt_utils._get_utils_namespaces())(field)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__get_url_path": {"unique_id": "macro.dbt_utils.default__get_url_path", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "name": "default__get_url_path", "macro_sql": "{% macro default__get_url_path(field) -%}\n\n {%- set stripped_url = \n dbt_utils.replace(\n dbt_utils.replace(field, \"'http://'\", \"''\"), \"'https://'\", \"''\")\n -%}\n\n {%- set first_slash_pos -%}\n coalesce(\n nullif({{dbt_utils.position(\"'/'\", stripped_url)}}, 0),\n {{dbt_utils.position(\"'?'\", stripped_url)}} - 1\n )\n {%- endset -%}\n\n {%- set parsed_path =\n dbt_utils.split_part(\n dbt_utils.right(\n stripped_url, \n dbt_utils.length(stripped_url) ~ \"-\" ~ first_slash_pos\n ), \n \"'?'\", 1\n )\n -%}\n\n {{ dbt_utils.safe_cast(\n parsed_path,\n dbt_utils.type_string()\n )}}\n \n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.get_url_parameter": {"unique_id": "macro.dbt_utils.get_url_parameter", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "name": "get_url_parameter", "macro_sql": "{% macro get_url_parameter(field, url_parameter) -%}\n {{ return(adapter.dispatch('get_url_parameter', packages = dbt_utils._get_utils_namespaces())(field, url_parameter)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__get_url_parameter": {"unique_id": "macro.dbt_utils.default__get_url_parameter", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "name": "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_utils.split_part(dbt_utils.split_part(field, formatted_url_parameter, 2), \"'&'\", 1) -%}\n\nnullif({{ split }},'')\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.haversine_distance": {"unique_id": "macro.dbt_utils.haversine_distance", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/geo/haversine_distance.sql", "original_file_path": "macros/geo/haversine_distance.sql", "name": "haversine_distance", "macro_sql": "{% macro haversine_distance(lat1,lon1,lat2,lon2) -%}\n {{ return(adapter.dispatch('haversine_distance', packages = dbt_utils._get_utils_namespaces())(lat1,lon1,lat2,lon2)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__haversine_distance": {"unique_id": "macro.dbt_utils.default__haversine_distance", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/geo/haversine_distance.sql", "original_file_path": "macros/geo/haversine_distance.sql", "name": "default__haversine_distance", "macro_sql": "{% macro default__haversine_distance(lat1,lon1,lat2,lon2) -%}\n\n 2 * 3961 * asin(sqrt((sin(radians(({{lat2}} - {{lat1}}) / 2))) ^ 2 +\n cos(radians({{lat1}})) * cos(radians({{lat2}})) *\n (sin(radians(({{lon2}} - {{lon1}}) / 2))) ^ 2))\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.test_equal_rowcount": {"unique_id": "macro.dbt_utils.test_equal_rowcount", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/equal_rowcount.sql", "original_file_path": "macros/schema_tests/equal_rowcount.sql", "name": "test_equal_rowcount", "macro_sql": "{% macro test_equal_rowcount(model) %}\n {{ return(adapter.dispatch('test_equal_rowcount', packages = dbt_utils._get_utils_namespaces())(model, **kwargs)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__test_equal_rowcount": {"unique_id": "macro.dbt_utils.default__test_equal_rowcount", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/equal_rowcount.sql", "original_file_path": "macros/schema_tests/equal_rowcount.sql", "name": "default__test_equal_rowcount", "macro_sql": "{% macro default__test_equal_rowcount(model) %}\n\n{% set compare_model = kwargs.get('compare_model', kwargs.get('arg')) %}\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\nwith a as (\n\n select count(*) as count_a from {{ model }}\n\n),\nb as (\n\n select count(*) as count_b from {{ compare_model }}\n\n),\nfinal as (\n\n select abs(\n (select count_a from a) -\n (select count_b from b)\n )\n as diff_count\n\n)\n\nselect diff_count from final\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.test_relationships_where": {"unique_id": "macro.dbt_utils.test_relationships_where", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/relationships_where.sql", "original_file_path": "macros/schema_tests/relationships_where.sql", "name": "test_relationships_where", "macro_sql": "{% macro test_relationships_where(model, to, field) %}\n {{ return(adapter.dispatch('test_relationships_where', packages = dbt_utils._get_utils_namespaces())(model, to, field, **kwargs)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__test_relationships_where": {"unique_id": "macro.dbt_utils.default__test_relationships_where", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/relationships_where.sql", "original_file_path": "macros/schema_tests/relationships_where.sql", "name": "default__test_relationships_where", "macro_sql": "{% macro default__test_relationships_where(model, to, field) %}\n\n{% set column_name = kwargs.get('column_name', kwargs.get('from')) %}\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{% set from_condition = kwargs.get('from_condition', \"1=1\") %}\n{% set to_condition = kwargs.get('to_condition', \"1=1\") %}\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 count(*) from exceptions\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.test_recency": {"unique_id": "macro.dbt_utils.test_recency", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/recency.sql", "original_file_path": "macros/schema_tests/recency.sql", "name": "test_recency", "macro_sql": "{% macro test_recency(model, datepart, interval) %}\n {{ return(adapter.dispatch('test_recency', packages = dbt_utils._get_utils_namespaces())(model, datepart, interval, **kwargs)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__test_recency": {"unique_id": "macro.dbt_utils.default__test_recency", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/recency.sql", "original_file_path": "macros/schema_tests/recency.sql", "name": "default__test_recency", "macro_sql": "{% macro default__test_recency(model, datepart, interval) %}\n\n{% set column_name = kwargs.get('column_name', kwargs.get('field')) %}\n\nselect\n case when count(*) > 0 then 0\n else 1\n end as error_result\nfrom {{model}}\nwhere {{column_name}} >=\n {{dbt_utils.dateadd(datepart, interval * -1, dbt_utils.current_timestamp())}}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.test_not_constant": {"unique_id": "macro.dbt_utils.test_not_constant", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/not_constant.sql", "original_file_path": "macros/schema_tests/not_constant.sql", "name": "test_not_constant", "macro_sql": "{% macro test_not_constant(model) %}\n {{ return(adapter.dispatch('test_not_constant', packages = dbt_utils._get_utils_namespaces())(model, **kwargs)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__test_not_constant": {"unique_id": "macro.dbt_utils.default__test_not_constant", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/not_constant.sql", "original_file_path": "macros/schema_tests/not_constant.sql", "name": "default__test_not_constant", "macro_sql": "{% macro default__test_not_constant(model) %}\n\n{% set column_name = kwargs.get('column_name', kwargs.get('arg')) %}\n\nselect count(*)\n\nfrom (\n\n select\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n count(distinct {{ column_name }}) as filler_column\n\n from {{ model }}\n\n having count(distinct {{ column_name }}) = 1\n\n ) validation_errors\n\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.test_unique_where": {"unique_id": "macro.dbt_utils.test_unique_where", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/test_unique_where.sql", "original_file_path": "macros/schema_tests/test_unique_where.sql", "name": "test_unique_where", "macro_sql": "{% macro test_unique_where(model) %}\r\n {{ return(adapter.dispatch('test_unique_where', packages = dbt_utils._get_utils_namespaces())(model, **kwargs)) }}\r\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__test_unique_where": {"unique_id": "macro.dbt_utils.default__test_unique_where", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/test_unique_where.sql", "original_file_path": "macros/schema_tests/test_unique_where.sql", "name": "default__test_unique_where", "macro_sql": "{% macro default__test_unique_where(model) %}\r\n\r\n{% set column_name = kwargs.get('column_name', kwargs.get('arg')) %}\r\n{% set where = kwargs.get('where', kwargs.get('arg')) %}\r\n\r\nselect count(*)\r\nfrom (\r\n\r\n select\r\n {{ column_name }}\r\n\r\n from {{ model }}\r\n where {{ column_name }} is not null\r\n {% if where %} and {{ where }} {% endif %}\r\n group by {{ column_name }}\r\n having count(*) > 1\r\n\r\n) validation_errors\r\n\r\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.test_at_least_one": {"unique_id": "macro.dbt_utils.test_at_least_one", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/at_least_one.sql", "original_file_path": "macros/schema_tests/at_least_one.sql", "name": "test_at_least_one", "macro_sql": "{% macro test_at_least_one(model) %}\n {{ return(adapter.dispatch('test_at_least_one', packages = dbt_utils._get_utils_namespaces())(model, **kwargs)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__test_at_least_one": {"unique_id": "macro.dbt_utils.default__test_at_least_one", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/at_least_one.sql", "original_file_path": "macros/schema_tests/at_least_one.sql", "name": "default__test_at_least_one", "macro_sql": "{% macro default__test_at_least_one(model) %}\n\n{% set column_name = kwargs.get('column_name', kwargs.get('arg')) %}\n\nselect count(*)\nfrom (\n select\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n count({{ column_name }}) as filler_column\n\n from {{ model }}\n\n having count({{ column_name }}) = 0\n\n) validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.test_unique_combination_of_columns": {"unique_id": "macro.dbt_utils.test_unique_combination_of_columns", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/unique_combination_of_columns.sql", "original_file_path": "macros/schema_tests/unique_combination_of_columns.sql", "name": "test_unique_combination_of_columns", "macro_sql": "{% macro test_unique_combination_of_columns(model, quote_columns = false) %}\n {{ return(adapter.dispatch('test_unique_combination_of_columns', packages = dbt_utils._get_utils_namespaces())(model, quote_columns, **kwargs)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__test_unique_combination_of_columns": {"unique_id": "macro.dbt_utils.default__test_unique_combination_of_columns", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/unique_combination_of_columns.sql", "original_file_path": "macros/schema_tests/unique_combination_of_columns.sql", "name": "default__test_unique_combination_of_columns", "macro_sql": "{% macro default__test_unique_combination_of_columns(model, quote_columns = false) %}\n\n{%- set columns = kwargs.get('combination_of_columns', kwargs.get('arg')) %}\n\n{% if not quote_columns %}\n {%- set column_list=columns %}\n{% elif quote_columns %}\n {%- set column_list=[] %}\n {% for column in 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\n group by {{ columns_csv }}\n having count(*) > 1\n\n)\n\nselect count(*)\nfrom validation_errors\n\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.test_cardinality_equality": {"unique_id": "macro.dbt_utils.test_cardinality_equality", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/cardinality_equality.sql", "original_file_path": "macros/schema_tests/cardinality_equality.sql", "name": "test_cardinality_equality", "macro_sql": "{% macro test_cardinality_equality(model, to, field) %}\n\n {{ return(adapter.dispatch('test_cardinality_equality', packages = dbt_utils._get_utils_namespaces())(model, to, field, **kwargs)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__test_cardinality_equality": {"unique_id": "macro.dbt_utils.default__test_cardinality_equality", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/cardinality_equality.sql", "original_file_path": "macros/schema_tests/cardinality_equality.sql", "name": "default__test_cardinality_equality", "macro_sql": "{% macro default__test_cardinality_equality(model, to, field) %}\n\n{# T-SQL doesn't let you use numbers as aliases for columns #}\n{# Thus, no \"GROUP BY 1\" #}\n\n{% set column_name = kwargs.get('column_name', kwargs.get('from')) %}\n\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 {{ column_name }}\n),\n\nexcept_a as (\n select *\n from table_a\n {{ dbt_utils.except() }}\n select *\n from table_b\n),\n\nexcept_b as (\n select *\n from table_b\n {{ dbt_utils.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 count(*)\nfrom unioned\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.test_expression_is_true": {"unique_id": "macro.dbt_utils.test_expression_is_true", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/expression_is_true.sql", "original_file_path": "macros/schema_tests/expression_is_true.sql", "name": "test_expression_is_true", "macro_sql": "{% macro test_expression_is_true(model, condition='1=1') %}\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 {{ return(adapter.dispatch('test_expression_is_true', packages = dbt_utils._get_utils_namespaces())(model, condition, **kwargs)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__test_expression_is_true": {"unique_id": "macro.dbt_utils.default__test_expression_is_true", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/expression_is_true.sql", "original_file_path": "macros/schema_tests/expression_is_true.sql", "name": "default__test_expression_is_true", "macro_sql": "{% macro default__test_expression_is_true(model, condition) %}\n\n{% set expression = kwargs.get('expression', kwargs.get('arg')) %}\n\nwith meet_condition as (\n\n select * from {{ model }} where {{ condition }}\n\n),\nvalidation_errors as (\n\n select\n *\n from meet_condition\n where not({{expression}})\n\n)\n\nselect count(*)\nfrom validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.test_not_null_where": {"unique_id": "macro.dbt_utils.test_not_null_where", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/test_not_null_where.sql", "original_file_path": "macros/schema_tests/test_not_null_where.sql", "name": "test_not_null_where", "macro_sql": "{% macro test_not_null_where(model) %}\r\n {{ return(adapter.dispatch('test_not_null_where', packages = dbt_utils._get_utils_namespaces())(model, **kwargs)) }}\r\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__test_not_null_where": {"unique_id": "macro.dbt_utils.default__test_not_null_where", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/test_not_null_where.sql", "original_file_path": "macros/schema_tests/test_not_null_where.sql", "name": "default__test_not_null_where", "macro_sql": "{% macro default__test_not_null_where(model) %}\r\n\r\n{% set column_name = kwargs.get('column_name', kwargs.get('arg')) %}\r\n{% set where = kwargs.get('where', kwargs.get('arg')) %}\r\n\r\nselect count(*)\r\nfrom {{ model }}\r\nwhere {{ column_name }} is null\r\n{% if where %} and {{ where }} {% endif %}\r\n\r\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.test_equality": {"unique_id": "macro.dbt_utils.test_equality", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/equality.sql", "original_file_path": "macros/schema_tests/equality.sql", "name": "test_equality", "macro_sql": "{% macro test_equality(model) %}\n {{ return(adapter.dispatch('test_equality', packages = dbt_utils._get_utils_namespaces())(model, **kwargs)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__test_equality": {"unique_id": "macro.dbt_utils.default__test_equality", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/equality.sql", "original_file_path": "macros/schema_tests/equality.sql", "name": "default__test_equality", "macro_sql": "{% macro default__test_equality(model) %}\n\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{%- set compare_columns = kwargs.get('compare_columns', None) -%}\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_model = kwargs.get('compare_model', kwargs.get('arg')) %}\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_utils.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_utils.except() }}\n select {{compare_cols_csv}} from a\n\n),\n\nunioned as (\n\n select * from a_minus_b\n union all\n select * from b_minus_a\n\n),\n\nfinal as (\n\n select (select count(*) from unioned) +\n (select abs(\n (select count(*) from a_minus_b) -\n (select count(*) from b_minus_a)\n ))\n as count\n\n)\n\nselect count from final\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.test_mutually_exclusive_ranges": {"unique_id": "macro.dbt_utils.test_mutually_exclusive_ranges", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/schema_tests/mutually_exclusive_ranges.sql", "name": "test_mutually_exclusive_ranges", "macro_sql": "{% macro test_mutually_exclusive_ranges(model, lower_bound_column, upper_bound_column, partition_by=None, gaps='allowed') %}\n {{ return(adapter.dispatch('test_mutually_exclusive_ranges', packages = dbt_utils._get_utils_namespaces())(model, lower_bound_column, upper_bound_column, partition_by, gaps)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__test_mutually_exclusive_ranges": {"unique_id": "macro.dbt_utils.default__test_mutually_exclusive_ranges", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/schema_tests/mutually_exclusive_ranges.sql", "name": "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') %}\n\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\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 }},\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 }}\n ) as next_lower_bound,\n\n row_number() over (\n {{ partition_clause }}\n order by {{ lower_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 nore 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 < upper_bound,\n false\n ) as lower_bound_less_than_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_less_than_upper_bound\n and upper_bound_{{ allow_gaps_operator_in_words }}_next_lower_bound\n )\n)\n\nselect count(*) from validation_errors\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.nullcheck_table": {"unique_id": "macro.dbt_utils.nullcheck_table", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "name": "nullcheck_table", "macro_sql": "{% macro nullcheck_table(relation) %}\n {{ return(adapter.dispatch('nullcheck_table', packages = dbt_utils._get_utils_namespaces())(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__nullcheck_table": {"unique_id": "macro.dbt_utils.default__nullcheck_table", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.get_relations_by_pattern": {"unique_id": "macro.dbt_utils.get_relations_by_pattern", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "name": "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', packages = dbt_utils._get_utils_namespaces())(schema_pattern, table_pattern, exclude, database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__get_relations_by_pattern": {"unique_id": "macro.dbt_utils.default__get_relations_by_pattern", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.get_powers_of_two": {"unique_id": "macro.dbt_utils.get_powers_of_two", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "name": "get_powers_of_two", "macro_sql": "{% macro get_powers_of_two(upper_bound) %}\n {{ return(adapter.dispatch('get_powers_of_two', packages = dbt_utils._get_utils_namespaces())(upper_bound)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__get_powers_of_two": {"unique_id": "macro.dbt_utils.default__get_powers_of_two", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.generate_series": {"unique_id": "macro.dbt_utils.generate_series", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "name": "generate_series", "macro_sql": "{% macro generate_series(upper_bound) %}\n {{ return(adapter.dispatch('generate_series', packages = dbt_utils._get_utils_namespaces())(upper_bound)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__generate_series": {"unique_id": "macro.dbt_utils.default__generate_series", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "name": "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 * pow(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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.get_relations_by_prefix": {"unique_id": "macro.dbt_utils.get_relations_by_prefix", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "name": "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', packages = dbt_utils._get_utils_namespaces())(schema, prefix, exclude, database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__get_relations_by_prefix": {"unique_id": "macro.dbt_utils.default__get_relations_by_prefix", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.get_tables_by_prefix_sql": {"unique_id": "macro.dbt_utils.get_tables_by_prefix_sql", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "name": "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', packages = dbt_utils._get_utils_namespaces())(schema, prefix, exclude, database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__get_tables_by_prefix_sql": {"unique_id": "macro.dbt_utils.default__get_tables_by_prefix_sql", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.star": {"unique_id": "macro.dbt_utils.star", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "name": "star", "macro_sql": "{% macro star(from, relation_alias=False, except=[]) -%}\n {{ return(adapter.dispatch('star', packages = dbt_utils._get_utils_namespaces())(from, relation_alias, except)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__star": {"unique_id": "macro.dbt_utils.default__star", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "name": "default__star", "macro_sql": "{% macro default__star(from, relation_alias=False, except=[]) -%}\n {%- do dbt_utils._is_relation(from, 'star') -%}\n {%- do dbt_utils._is_ephemeral(from, 'star') -%}\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\n {%- for col in cols -%}\n\n {%- if col.column not in except -%}\n {% do include_cols.append(col.column) %}\n\n {%- endif %}\n {%- endfor %}\n\n {%- for col in include_cols %}\n\n {%- if relation_alias %}{{ relation_alias }}.{% else %}{%- endif -%}{{ adapter.quote(col)|trim }}\n {%- if not loop.last %},{{ '\\n ' }}{% endif %}\n\n {%- endfor -%}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.unpivot": {"unique_id": "macro.dbt_utils.unpivot", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "name": "unpivot", "macro_sql": "{% macro unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value', table=none) -%}\n {{ return(adapter.dispatch('unpivot', packages = dbt_utils._get_utils_namespaces())(relation, cast_to, exclude, remove, field_name, value_name, table)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__unpivot": {"unique_id": "macro.dbt_utils.default__unpivot", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "name": "default__unpivot", "macro_sql": "{% macro default__unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value', table=none) -%}\n\n {% if table %}\n {%- set error_message = '\n Warning: the `unpivot` macro no longer accepts a `table` parameter. \\\n This parameter will be deprecated in a future release of dbt-utils. Use the `relation` parameter instead. \\\n The {}.{} model triggered this warning. \\\n '.format(model.package_name, model.name) -%}\n {%- do exceptions.warn(error_message) -%}\n {% endif %}\n\n {% if relation and table %}\n {{ exceptions.raise_compiler_error(\"Error: both the `relation` and `table` parameters were provided to `unpivot` macro. Choose one only (we recommend `relation`).\") }}\n {% elif not relation and table %}\n {% set relation=table %}\n {% elif not relation and not table %}\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_utils.type_string() }}) as {{ field_name }},\n cast({{ col.column }} 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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.union_relations": {"unique_id": "macro.dbt_utils.union_relations", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "name": "union_relations", "macro_sql": "{%- macro union_relations(relations, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation') -%}\n {{ return(adapter.dispatch('union_relations', packages = dbt_utils._get_utils_namespaces())(relations, column_override, include, exclude, source_column_name)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__union_relations": {"unique_id": "macro.dbt_utils.default__union_relations", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "name": "default__union_relations", "macro_sql": "\n\n{%- macro default__union_relations(relations, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation') -%}\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\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 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_utils.string_literal(relation) }} as {{ dbt_utils.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 {{ relation }}\n )\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.group_by": {"unique_id": "macro.dbt_utils.group_by", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "name": "group_by", "macro_sql": "{%- macro group_by(n) -%}\n {{ return(adapter.dispatch('group_by', packages = dbt_utils._get_utils_namespaces())(n)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__group_by": {"unique_id": "macro.dbt_utils.default__group_by", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "name": "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 -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.surrogate_key": {"unique_id": "macro.dbt_utils.surrogate_key", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "name": "surrogate_key", "macro_sql": "{%- macro surrogate_key(field_list) -%}\n {# needed for safe_add to allow for non-keyword arguments see SO post #}\n {# https://stackoverflow.com/questions/13944751/args-kwargs-in-jinja2-macros #}\n {% set frustrating_jinja_feature = varargs %}\n {{ return(adapter.dispatch('surrogate_key', packages = dbt_utils._get_utils_namespaces())(field_list, *varargs)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__surrogate_key": {"unique_id": "macro.dbt_utils.default__surrogate_key", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "name": "default__surrogate_key", "macro_sql": "\n\n{%- macro default__surrogate_key(field_list) -%}\n\n{%- if varargs|length >= 1 or field_list is string %}\n\n{%- set error_message = '\nWarning: the `surrogate_key` macro now takes a single list argument instead of \\\nmultiple string arguments. Support for multiple string arguments will be \\\ndeprecated in a future release of dbt-utils. The {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.warn(error_message) -%}\n\n{# first argument is not included in varargs, so add first element to field_list_xf #}\n{%- set field_list_xf = [field_list] -%}\n\n{%- for field in varargs %}\n{%- set _ = field_list_xf.append(field) -%}\n{%- endfor -%}\n\n{%- else -%}\n\n{# if using list, just set field_list_xf as field_list #}\n{%- set field_list_xf = field_list -%}\n\n{%- endif -%}\n\n\n{%- set fields = [] -%}\n\n{%- for field in field_list_xf -%}\n\n {%- set _ = fields.append(\n \"coalesce(cast(\" ~ field ~ \" as \" ~ dbt_utils.type_string() ~ \"), '')\"\n ) -%}\n\n {%- if not loop.last %}\n {%- set _ = fields.append(\"'-'\") -%}\n {%- endif -%}\n\n{%- endfor -%}\n\n{{dbt_utils.hash(dbt_utils.concat(fields))}}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.safe_add": {"unique_id": "macro.dbt_utils.safe_add", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "name": "safe_add", "macro_sql": "{%- macro safe_add() -%}\n {# needed for safe_add to allow for non-keyword arguments see SO post #}\n {# https://stackoverflow.com/questions/13944751/args-kwargs-in-jinja2-macros #}\n {% set frustrating_jinja_feature = varargs %}\n {{ return(adapter.dispatch('safe_add', packages = dbt_utils._get_utils_namespaces())(*varargs)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__safe_add": {"unique_id": "macro.dbt_utils.default__safe_add", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "name": "default__safe_add", "macro_sql": "\n\n{%- macro default__safe_add() -%}\n\n{% set fields = [] %}\n\n{%- for field in varargs -%}\n\n {% do fields.append(\"coalesce(\" ~ field ~ \", 0)\") %}\n\n{%- endfor -%}\n\n{{ fields|join(' +\\n ') }}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.nullcheck": {"unique_id": "macro.dbt_utils.nullcheck", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "name": "nullcheck", "macro_sql": "{% macro nullcheck(cols) %}\n {{ return(adapter.dispatch('nullcheck', packages = dbt_utils._get_utils_namespaces())(cols)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__nullcheck": {"unique_id": "macro.dbt_utils.default__nullcheck", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.get_tables_by_pattern_sql": {"unique_id": "macro.dbt_utils.get_tables_by_pattern_sql", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "name": "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', packages = dbt_utils._get_utils_namespaces())\n (schema_pattern, table_pattern, exclude, database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__get_tables_by_pattern_sql": {"unique_id": "macro.dbt_utils.default__get_tables_by_pattern_sql", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "name": "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 \"table_schema\",\n table_name as \"table_name\",\n case table_type\n when 'BASE TABLE' then 'table'\n else lower(table_type)\n end as \"table_type\"\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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.bigquery__get_tables_by_pattern_sql": {"unique_id": "macro.dbt_utils.bigquery__get_tables_by_pattern_sql", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "name": "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 case table_type\n when 'BASE TABLE' then 'table'\n else lower(table_type)\n end as table_type\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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils._bigquery__get_matching_schemata": {"unique_id": "macro.dbt_utils._bigquery__get_matching_schemata", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "name": "_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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.get_column_values": {"unique_id": "macro.dbt_utils.get_column_values", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "name": "get_column_values", "macro_sql": "{% macro get_column_values(table, column, max_records=none, default=none) -%}\n {{ return(adapter.dispatch('get_column_values', packages = dbt_utils._get_utils_namespaces())(table, column, max_records, default)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__get_column_values": {"unique_id": "macro.dbt_utils.default__get_column_values", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "name": "default__get_column_values", "macro_sql": "{% macro default__get_column_values(table, column, max_records=none, default=none) -%}\n\n{#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {{ return('') }}\n {% endif %}\n{#-- #}\n\n {%- set target_relation = adapter.get_relation(database=table.database,\n schema=table.schema,\n identifier=table.identifier) -%}\n\n {%- call statement('get_column_values', fetch_result=true) %}\n\n {%- if not target_relation and default is none -%}\n\n {{ exceptions.raise_compiler_error(\"In get_column_values(): relation \" ~ table ~ \" does not exist and no default value was provided.\") }}\n\n {%- elif not target_relation and default is not none -%}\n\n {{ log(\"Relation \" ~ table ~ \" does not exist. Returning the default value: \" ~ default) }}\n\n {{ return(default) }}\n\n {%- else -%}\n\n select\n {{ column }} as value\n\n from {{ target_relation }}\n group by 1\n order by count(*) desc\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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.pivot": {"unique_id": "macro.dbt_utils.pivot", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "name": "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', packages = dbt_utils._get_utils_namespaces())(column, values, alias, agg, cmp, prefix, suffix, then_value, else_value, quote_identifiers, distinct)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__pivot": {"unique_id": "macro.dbt_utils.default__pivot", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "name": "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 v in values %}\n {{ agg }}(\n {% if distinct %} distinct {% endif %}\n case\n when {{ column }} {{ cmp }} '{{ v }}'\n then {{ then_value }}\n else {{ else_value }}\n end\n )\n {% if alias %}\n {% if quote_identifiers %}\n as {{ adapter.quote(prefix ~ v ~ suffix) }}\n {% else %}\n as {{prefix ~ v ~ suffix }}\n {% endif %}\n {% endif %}\n {% if not loop.last %},{% endif %}\n {% endfor %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.get_query_results_as_dict": {"unique_id": "macro.dbt_utils.get_query_results_as_dict", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "name": "get_query_results_as_dict", "macro_sql": "{% macro get_query_results_as_dict(query) %}\n {{ return(adapter.dispatch('get_query_results_as_dict', packages = dbt_utils._get_utils_namespaces())(query)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__get_query_results_as_dict": {"unique_id": "macro.dbt_utils.default__get_query_results_as_dict", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.enabled_vars": {"unique_id": "macro.fivetran_utils.enabled_vars", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/enabled_vars.sql", "original_file_path": "macros/enabled_vars.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.percentile": {"unique_id": "macro.fivetran_utils.percentile", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "percentile", "macro_sql": "{% macro percentile(percentile_field, partition_field, percent) -%}\n\n{{ adapter.dispatch('percentile', packages = fivetran_utils._get_utils_namespaces()) (percentile_field, partition_field, percent) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.default__percentile": {"unique_id": "macro.fivetran_utils.default__percentile", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.bigquery__percentile": {"unique_id": "macro.fivetran_utils.bigquery__percentile", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.max_bool": {"unique_id": "macro.fivetran_utils.max_bool", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "name": "max_bool", "macro_sql": "{% macro max_bool(boolean_field) -%}\n\n{{ adapter.dispatch('max_bool', packages = fivetran_utils._get_utils_namespaces()) (boolean_field) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.default__max_bool": {"unique_id": "macro.fivetran_utils.default__max_bool", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "name": "default__max_bool", "macro_sql": "{% macro default__max_bool(boolean_field) %}\n\n bool_or( {{ boolean_field }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.snowflake__max_bool": {"unique_id": "macro.fivetran_utils.snowflake__max_bool", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "name": "snowflake__max_bool", "macro_sql": "{% macro snowflake__max_bool(boolean_field) %}\n\n max( {{ boolean_field }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.bigquery__max_bool": {"unique_id": "macro.fivetran_utils.bigquery__max_bool", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "name": "bigquery__max_bool", "macro_sql": "{% macro bigquery__max_bool(boolean_field) %}\n\n max( {{ boolean_field }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.seed_data_helper": {"unique_id": "macro.fivetran_utils.seed_data_helper", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/seed_data_helper.sql", "original_file_path": "macros/seed_data_helper.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.fill_pass_through_columns": {"unique_id": "macro.fivetran_utils.fill_pass_through_columns", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/fill_pass_through_columns.sql", "original_file_path": "macros/fill_pass_through_columns.sql", "name": "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.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 {% endfor %}\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.string_agg": {"unique_id": "macro.fivetran_utils.string_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "name": "string_agg", "macro_sql": "{% macro string_agg(field_to_agg, delimiter) -%}\n\n{{ adapter.dispatch('string_agg', packages = fivetran_utils._get_utils_namespaces()) (field_to_agg, delimiter) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.default__string_agg": {"unique_id": "macro.fivetran_utils.default__string_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "name": "default__string_agg", "macro_sql": "{% macro default__string_agg(field_to_agg, delimiter) %}\n string_agg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.snowflake__string_agg": {"unique_id": "macro.fivetran_utils.snowflake__string_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "name": "snowflake__string_agg", "macro_sql": "{% macro snowflake__string_agg(field_to_agg, delimiter) %}\n listagg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.redshift__string_agg": {"unique_id": "macro.fivetran_utils.redshift__string_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "name": "redshift__string_agg", "macro_sql": "{% macro redshift__string_agg(field_to_agg, delimiter) %}\n listagg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.timestamp_diff": {"unique_id": "macro.fivetran_utils.timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "name": "timestamp_diff", "macro_sql": "{% macro timestamp_diff(first_date, second_date, datepart) %}\n {{ adapter.dispatch('datediff', packages = fivetran_utils._get_utils_namespaces())(first_date, second_date, datepart) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.default__timestamp_diff": {"unique_id": "macro.fivetran_utils.default__timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.bigquery__timestamp_diff": {"unique_id": "macro.fivetran_utils.bigquery__timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.postgres__datediff": {"unique_id": "macro.fivetran_utils.postgres__datediff", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "name": "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 ({{ dbt_utils.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_utils.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_utils.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_utils.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_utils.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_utils.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_utils.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_utils.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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.generate_columns_macro": {"unique_id": "macro.fivetran_utils.generate_columns_macro", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/generate_columns_macro.sql", "original_file_path": "macros/generate_columns_macro.sql", "name": "generate_columns_macro", "macro_sql": "{% macro generate_columns_macro(table_name, schema_name, database_name=target.database) %}\n\n{% set columns = get_columns_for_macro(table_name, schema_name, database_name) %}\n\n{% set jinja_macro=[] %}\n\n{% do jinja_macro.append('{% macro get_' ~ table_name ~ '_columns() %}') %}\n{% do jinja_macro.append('') %}\n{% do jinja_macro.append('{% set columns = [') %}\n\n{% for col in columns %}\n{% do jinja_macro.append(' ' ~ col ~ (',' if not loop.last)) %}\n{% endfor %}\n\n{% do jinja_macro.append('] %}') %}\n{% do jinja_macro.append('') %}\n{% do jinja_macro.append('{{ return(columns) }}') %}\n{% do jinja_macro.append('') %}\n{% do jinja_macro.append('{% endmacro %}') %}\n\n{% if execute %}\n\n {% set joined = jinja_macro | join ('\\n') %}\n {{ log(joined, info=True) }}\n {% do return(joined) %}\n\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.first_value": {"unique_id": "macro.fivetran_utils.first_value", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "name": "first_value", "macro_sql": "{% macro first_value(first_value_field, partition_field, order_by_field, order=\"asc\") -%}\n\n{{ adapter.dispatch('first_value', packages = fivetran_utils._get_utils_namespaces()) (first_value_field, partition_field, order_by_field, order) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.default__first_value": {"unique_id": "macro.fivetran_utils.default__first_value", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.redshift__first_value": {"unique_id": "macro.fivetran_utils.redshift__first_value", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.add_pass_through_columns": {"unique_id": "macro.fivetran_utils.add_pass_through_columns", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/add_pass_through_columns.sql", "original_file_path": "macros/add_pass_through_columns.sql", "name": "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 {% do base_columns.append({ \"name\": column.name, \"alias\": column.alias }) if column.alias else base_columns.append({ \"name\": column.name }) %}\n\n {% endfor %}\n\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.staging_models_automation": {"unique_id": "macro.fivetran_utils.staging_models_automation", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/staging_models_automation.sql", "original_file_path": "macros/staging_models_automation.sql", "name": "staging_models_automation", "macro_sql": "{% macro staging_models_automation(package, source_schema, source_database, tables) %}\n\n{% set package = \"\"~ package ~\"\" %}\n{% set source_schema = \"\"~ source_schema ~\"\" %}\n{% set source_database = \"\"~ source_database ~\"\" %}\n\n{% set zsh_command = \"source dbt_modules/fivetran_utils/columns_setup.sh '../dbt_\"\"\"~ package ~\"\"\"_source' stg_\"\"\"~ package ~\"\"\" \"\"\"~ source_database ~\"\"\" \"\"\"~ source_schema ~\"\"\" \" %}\n\n{% for t in tables %}\n {% if t != tables[-1] %}\n {% set help_command = zsh_command + t + \" && \\n\" %}\n\n {% else %}\n {% set help_command = zsh_command + t %}\n\n {% endif %}\n {{ log(help_command, info=True) }}\n\n{% endfor %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.union_relations": {"unique_id": "macro.fivetran_utils.union_relations", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/union_relations.sql", "original_file_path": "macros/union_relations.sql", "name": "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_utils.string_literal(relation) }} as {{ dbt_utils.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", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.union_tables": {"unique_id": "macro.fivetran_utils.union_tables", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/union_relations.sql", "original_file_path": "macros/union_relations.sql", "name": "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 -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.snowflake_seed_data": {"unique_id": "macro.fivetran_utils.snowflake_seed_data", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/snowflake_seed_data.sql", "original_file_path": "macros/snowflake_seed_data.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.snowflake__get_columns_for_macro": {"unique_id": "macro.fivetran_utils.snowflake__get_columns_for_macro", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/get_columns_for_macro.sql", "original_file_path": "macros/get_columns_for_macro.sql", "name": "snowflake__get_columns_for_macro", "macro_sql": "{% macro snowflake__get_columns_for_macro(table_name, schema_name, database_name=target.database) %}\n\n{% set query %}\n\nselect\n concat(\n '{\"name\": \"', \n lower(column_name), \n '\", \"datatype\": ',\n case\n when lower(data_type) like '%timestamp%' then 'dbt_utils.type_timestamp()' \n when lower(data_type) = 'text' then 'dbt_utils.type_string()' \n when lower(data_type) = 'boolean' then '\"boolean\"'\n when lower(data_type) = 'number' then 'dbt_utils.type_numeric()' \n when lower(data_type) = 'float' then 'dbt_utils.type_float()' \n when lower(data_type) = 'date' then '\"date\"'\n end,\n '}')\nfrom {{ database_name }}.information_schema.columns\nwhere lower(table_name) = '{{ table_name }}'\nand lower(table_schema) = '{{ schema_name }}'\norder by 1\n\n{% endset %}\n\n{% set results = run_query(query) %}\n{% set results_list = results.columns[0].values() %}}\n\n{{ return(results_list) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.bigquery__get_columns_for_macro": {"unique_id": "macro.fivetran_utils.bigquery__get_columns_for_macro", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/get_columns_for_macro.sql", "original_file_path": "macros/get_columns_for_macro.sql", "name": "bigquery__get_columns_for_macro", "macro_sql": "{% macro bigquery__get_columns_for_macro(table_name, schema_name, database_name=target.database) %}\n\n{% set query %}\n\nselect\n concat(\n '{\"name\": \"', \n lower(column_name), \n '\", \"datatype\": ',\n case\n when lower(data_type) like '%timestamp%' then 'dbt_utils.type_timestamp()' \n when lower(data_type) = 'string' then 'dbt_utils.type_string()' \n when lower(data_type) = 'bool' then '\"boolean\"'\n when lower(data_type) = 'numeric' then 'dbt_utils.type_numeric()' \n when lower(data_type) = 'float64' then 'dbt_utils.type_float()' \n when lower(data_type) = 'int64' then 'dbt_utils.type_int()' \n when lower(data_type) = 'date' then '\"date\"' \n when lower(data_type) = 'datetime' then '\"datetime\"' \n end,\n '}')\nfrom `{{ database_name }}`.{{ schema_name }}.INFORMATION_SCHEMA.COLUMNS\nwhere lower(table_name) = '{{ table_name }}'\nand lower(table_schema) = '{{ schema_name }}'\norder by 1\n\n{% endset %}\n\n{% set results = run_query(query) %}\n{% set results_list = results.columns[0].values() %}}\n\n{{ return(results_list) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.get_columns_for_macro": {"unique_id": "macro.fivetran_utils.get_columns_for_macro", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/get_columns_for_macro.sql", "original_file_path": "macros/get_columns_for_macro.sql", "name": "get_columns_for_macro", "macro_sql": "{% macro get_columns_for_macro(table_name, schema_name, database_name) -%}\n {{ return(adapter.dispatch('get_columns_for_macro')(table_name, schema_name, database_name)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.fill_staging_columns": {"unique_id": "macro.fivetran_utils.fill_staging_columns", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/fill_staging_columns.sql", "original_file_path": "macros/fill_staging_columns.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.quote_column": {"unique_id": "macro.fivetran_utils.quote_column", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/fill_staging_columns.sql", "original_file_path": "macros/fill_staging_columns.sql", "name": "quote_column", "macro_sql": "{% macro quote_column(column) %}\n {% if 'quote' in column %}\n {% if column.quote %}\n {% if target.type == 'bigquery' %}\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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.json_extract": {"unique_id": "macro.fivetran_utils.json_extract", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "json_extract", "macro_sql": "{% macro json_extract(string, string_path) -%}\n\n{{ adapter.dispatch('json_extract', packages = fivetran_utils._get_utils_namespaces()) (string, string_path) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.default__json_extract": {"unique_id": "macro.fivetran_utils.default__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "default__json_extract", "macro_sql": "{% macro default__json_extract(string, string_path) %}\n\n json_extract_path_text({{string}}, {{ \"'\" ~ string_path ~ \"'\" }} )\n \n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.bigquery__json_extract": {"unique_id": "macro.fivetran_utils.bigquery__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "bigquery__json_extract", "macro_sql": "{% macro bigquery__json_extract(string, string_path) %}\n\n json_extract_scalar({{string}}, {{ \"'$.\" ~ string_path ~ \"'\" }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.postgres__json_extract": {"unique_id": "macro.fivetran_utils.postgres__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "postgres__json_extract", "macro_sql": "{% macro postgres__json_extract(string, string_path) %}\n\n {{string}}::json->>{{\"'\" ~ string_path ~ \"'\" }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.timestamp_add": {"unique_id": "macro.fivetran_utils.timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "timestamp_add", "macro_sql": "{% macro timestamp_add(datepart, interval, from_timestamp) -%}\n\n{{ adapter.dispatch('timestamp_add', packages = fivetran_utils._get_utils_namespaces()) (datepart, interval, from_timestamp) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.default__timestamp_add": {"unique_id": "macro.fivetran_utils.default__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.bigquery__timestamp_add": {"unique_id": "macro.fivetran_utils.bigquery__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.redshift__timestamp_add": {"unique_id": "macro.fivetran_utils.redshift__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.postgres__timestamp_add": {"unique_id": "macro.fivetran_utils.postgres__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "postgres__timestamp_add", "macro_sql": "{% macro postgres__timestamp_add(datepart, interval, from_timestamp) %}\n\n {{ from_timestamp }} + ((interval '1 {{ datepart }}') * ({{ interval }}))\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.ceiling": {"unique_id": "macro.fivetran_utils.ceiling", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "name": "ceiling", "macro_sql": "{% macro ceiling(num) -%}\n\n{{ adapter.dispatch('ceiling', packages = fivetran_utils._get_utils_namespaces()) (num) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.default__ceiling": {"unique_id": "macro.fivetran_utils.default__ceiling", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "name": "default__ceiling", "macro_sql": "{% macro default__ceiling(num) %}\n ceiling({{ num }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.snowflake__ceiling": {"unique_id": "macro.fivetran_utils.snowflake__ceiling", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "name": "snowflake__ceiling", "macro_sql": "{% macro snowflake__ceiling(num) %}\n ceil({{ num }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.remove_prefix_from_columns": {"unique_id": "macro.fivetran_utils.remove_prefix_from_columns", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/remove_prefix_from_columns.sql", "original_file_path": "macros/remove_prefix_from_columns.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.dummy_coalesce_value": {"unique_id": "macro.fivetran_utils.dummy_coalesce_value", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/dummy_coalesce_value.sql", "original_file_path": "macros/dummy_coalesce_value.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils._get_utils_namespaces": {"unique_id": "macro.fivetran_utils._get_utils_namespaces", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/_get_utils_namespaces.sql", "original_file_path": "macros/_get_utils_namespaces.sql", "name": "_get_utils_namespaces", "macro_sql": "{% macro _get_utils_namespaces() %}\n {% set override_namespaces = var('dbt_utils_dispatch_list', []) %}\n {% do return(override_namespaces + ['dbt_utils', 'fivetran_utils']) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.array_agg": {"unique_id": "macro.fivetran_utils.array_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "name": "array_agg", "macro_sql": "{% macro array_agg(field_to_agg) -%}\n\n{{ adapter.dispatch('array_agg', packages = fivetran_utils._get_utils_namespaces()) (field_to_agg) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.default__array_agg": {"unique_id": "macro.fivetran_utils.default__array_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "name": "default__array_agg", "macro_sql": "{% macro default__array_agg(field_to_agg) %}\n array_agg({{ field_to_agg }})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.redshift__array_agg": {"unique_id": "macro.fivetran_utils.redshift__array_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "name": "redshift__array_agg", "macro_sql": "{% macro redshift__array_agg(field_to_agg) %}\n listagg({{ field_to_agg }}, ',')\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.empty_variable_warning": {"unique_id": "macro.fivetran_utils.empty_variable_warning", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/empty_variable_warning.sql", "original_file_path": "macros/empty_variable_warning.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.enabled_vars_one_true": {"unique_id": "macro.fivetran_utils.enabled_vars_one_true", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/enabled_vars_one_true.sql", "original_file_path": "macros/enabled_vars_one_true.sql", "name": "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 %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}}, "docs": {"dbt.__overview__": {"unique_id": "dbt.__overview__", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "overview.md", "original_file_path": "docs/overview.md", "name": "__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 `--models` 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/overview)?\n- Read the [dbt viewpoint](https://docs.getdbt.com/docs/viewpoint)\n- [Installation](https://docs.getdbt.com/docs/installation)\n- Join the [chat](https://community.getdbt.com/) on Slack for live questions and support."}, "hubspot_source._fivetran_synced": {"unique_id": "hubspot_source._fivetran_synced", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "_fivetran_synced", "block_contents": "Timestamp of when Fivetran synced a record."}, "hubspot_source._fivetran_deleted": {"unique_id": "hubspot_source._fivetran_deleted", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "_fivetran_deleted", "block_contents": "Timestamp of when Fivetran marked a record as deleted."}, "hubspot_source.portal_id": {"unique_id": "hubspot_source.portal_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "portal_id", "block_contents": "The hub ID."}, "hubspot_source.is_deleted": {"unique_id": "hubspot_source.is_deleted", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "is_deleted", "block_contents": "Whether the record has been deleted in Hubspot."}, "hubspot_source.history_name": {"unique_id": "hubspot_source.history_name", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "history_name", "block_contents": "The name of the field being changed."}, "hubspot_source.history_source": {"unique_id": "hubspot_source.history_source", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "history_source", "block_contents": "The source (reason) of the change."}, "hubspot_source.history_source_id": {"unique_id": "hubspot_source.history_source_id", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "history_source_id", "block_contents": "The ID of the object that caused the change, if applicable."}, "hubspot_source.history_timestamp": {"unique_id": "hubspot_source.history_timestamp", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "history_timestamp", "block_contents": "The timestamp the changed occurred."}, "hubspot_source.history_value": {"unique_id": "hubspot_source.history_value", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "history_value", "block_contents": "The new value of the field."}, "hubspot_source.email_event_browser": {"unique_id": "hubspot_source.email_event_browser", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "email_event_browser", "block_contents": "A JSON object representing the browser which serviced the event. Its comprised of the properties: 'name', 'family', 'producer', 'producer_url', 'type', 'url', 'version'."}, "hubspot_source.email_event_ip_address": {"unique_id": "hubspot_source.email_event_ip_address", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "email_event_ip_address", "block_contents": "The contact's IP address when the event occurred."}, "hubspot_source.email_event_location": {"unique_id": "hubspot_source.email_event_location", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "email_event_location", "block_contents": "A JSON object representing the location where the event occurred. It's comprised of the properties: 'city', 'state', 'country'."}, "hubspot_source.email_event_user_agent": {"unique_id": "hubspot_source.email_event_user_agent", "package_name": "hubspot_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests/dbt_modules/hubspot_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "email_event_user_agent", "block_contents": "The user agent responsible for the event, e.g. \u201cMozilla/5.0 (Macintosh; Intel Mac OS X 10_8_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.95 Safari/537.36\u201d"}}, "exposures": {}, "selectors": {}, "disabled": [{"raw_sql": "", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source_integration_tests", "contact_list_data_postgres"], "unique_id": "seed.hubspot_source_integration_tests.contact_list_data_postgres", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "contact_list_data_postgres.csv", "original_file_path": "data/contact_list_data_postgres.csv", "name": "contact_list_data_postgres", "resource_type": "seed", "alias": "contact_list_data_postgres", "checksum": {"name": "sha256", "checksum": "349152bb0b8810fbbf890a9094250c04efc80151a4a8e30f7f3c75cc1ffad2c2"}, "config": {"enabled": false, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "enabled": "{{ true if target.type == 'postgres' else false }}"}}, {"raw_sql": "", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source_integration_tests", "email_event_sent_data_postgres"], "unique_id": "seed.hubspot_source_integration_tests.email_event_sent_data_postgres", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "email_event_sent_data_postgres.csv", "original_file_path": "data/email_event_sent_data_postgres.csv", "name": "email_event_sent_data_postgres", "resource_type": "seed", "alias": "email_event_sent_data_postgres", "checksum": {"name": "sha256", "checksum": "bec8cbb3459b0a77ce502feca62d013b92cdff4a0fc86e5187368f0c42a32ef0"}, "config": {"enabled": false, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "enabled": "{{ true if target.type == 'postgres' else false }}"}}, {"raw_sql": "", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source_integration_tests", "email_event_sent_data_snowflake"], "unique_id": "seed.hubspot_source_integration_tests.email_event_sent_data_snowflake", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "email_event_sent_data_snowflake.csv", "original_file_path": "data/email_event_sent_data_snowflake.csv", "name": "email_event_sent_data_snowflake", "resource_type": "seed", "alias": "email_event_sent_data_snowflake", "checksum": {"name": "sha256", "checksum": "f43f083762c62ba75aea7bfcc95716a05ffdd855c2fdf782da08e39330305e6b"}, "config": {"enabled": false, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "enabled": "{{ true if target.type == 'snowflake' else false }}"}}, {"raw_sql": "", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source_integration_tests", "email_event_dropped_data_snowflake"], "unique_id": "seed.hubspot_source_integration_tests.email_event_dropped_data_snowflake", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "email_event_dropped_data_snowflake.csv", "original_file_path": "data/email_event_dropped_data_snowflake.csv", "name": "email_event_dropped_data_snowflake", "resource_type": "seed", "alias": "email_event_dropped_data_snowflake", "checksum": {"name": "sha256", "checksum": "6632fecd0168baf628a16fbc0bb0197cf5f808f1f0ad525842f9eae5e16473aa"}, "config": {"enabled": false, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "enabled": "{{ true if target.type == 'snowflake' else false }}"}}, {"raw_sql": "", "database": "dbt-package-testing", "schema": "hubspot_source_integration_tests", "fqn": ["hubspot_source_integration_tests", "email_event_dropped_data_postgres"], "unique_id": "seed.hubspot_source_integration_tests.email_event_dropped_data_postgres", "package_name": "hubspot_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/HubSpot/dbt_hubspot_source/integration_tests", "path": "email_event_dropped_data_postgres.csv", "original_file_path": "data/email_event_dropped_data_postgres.csv", "name": "email_event_dropped_data_postgres", "resource_type": "seed", "alias": "email_event_dropped_data_postgres", "checksum": {"name": "sha256", "checksum": "3e8f7f2d3d8e92d8b55b396fbed414d787dc147a776e03b633f229875f094260"}, "config": {"enabled": false, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "enabled": "{{ true if target.type == 'postgres' else false }}"}}], "parent_map": {"seed.hubspot_source_integration_tests.email_event_delivered_data": [], "seed.hubspot_source_integration_tests.ticket_pipeline_stage_data": [], "seed.hubspot_source_integration_tests.ticket_contact_data": [], "seed.hubspot_source_integration_tests.email_event_status_change_data": [], "seed.hubspot_source_integration_tests.ticket_company_data": [], "seed.hubspot_source_integration_tests.engagement_deal_data": [], "seed.hubspot_source_integration_tests.deal_stage_data": [], "seed.hubspot_source_integration_tests.email_campaign_data": [], "seed.hubspot_source_integration_tests.engagement_call_data": [], "seed.hubspot_source_integration_tests.email_event_print_data": [], "seed.hubspot_source_integration_tests.email_event_spam_report_data": [], "seed.hubspot_source_integration_tests.ticket_data": [], "seed.hubspot_source_integration_tests.ticket_pipeline_data": [], "seed.hubspot_source_integration_tests.contact_list_data": [], "seed.hubspot_source_integration_tests.email_event_click_data": [], "seed.hubspot_source_integration_tests.email_event_deferred_data": [], "seed.hubspot_source_integration_tests.email_event_open_data": [], "seed.hubspot_source_integration_tests.company_property_history_data": [], "seed.hubspot_source_integration_tests.engagement_email_data": [], "seed.hubspot_source_integration_tests.deal_data": [], "seed.hubspot_source_integration_tests.engagement_note_data": [], "seed.hubspot_source_integration_tests.deal_pipeline_data": [], "seed.hubspot_source_integration_tests.email_event_data": [], "seed.hubspot_source_integration_tests.engagement_data": [], "seed.hubspot_source_integration_tests.email_event_dropped_data": [], "seed.hubspot_source_integration_tests.owner_data": [], "seed.hubspot_source_integration_tests.engagement_meeting_data": [], "seed.hubspot_source_integration_tests.email_event_forward_data": [], "seed.hubspot_source_integration_tests.deal_pipeline_stage_data": [], "seed.hubspot_source_integration_tests.company_data": [], "seed.hubspot_source_integration_tests.contact_list_member_data": [], "seed.hubspot_source_integration_tests.contact_property_history_data": [], "seed.hubspot_source_integration_tests.deal_property_history_data": [], "seed.hubspot_source_integration_tests.email_event_bounce_data": [], "seed.hubspot_source_integration_tests.engagement_contact_data": [], "seed.hubspot_source_integration_tests.ticket_engagement_data": [], "seed.hubspot_source_integration_tests.email_event_sent_data": [], "seed.hubspot_source_integration_tests.contact_data": [], "seed.hubspot_source_integration_tests.ticket_deal_data": [], "seed.hubspot_source_integration_tests.deal_company_data": [], "seed.hubspot_source_integration_tests.ticket_property_history_data": [], "seed.hubspot_source_integration_tests.engagement_task_data": [], "seed.hubspot_source_integration_tests.engagement_company_data": [], "model.hubspot_source.stg_hubspot__engagement_task": ["model.hubspot_source.stg_hubspot__engagement_task_tmp", "model.hubspot_source.stg_hubspot__engagement_task_tmp"], "model.hubspot_source.stg_hubspot__engagement_deal": ["model.hubspot_source.stg_hubspot__engagement_deal_tmp", "model.hubspot_source.stg_hubspot__engagement_deal_tmp"], "model.hubspot_source.stg_hubspot__company_property_history": ["model.hubspot_source.stg_hubspot__company_property_history_tmp", "model.hubspot_source.stg_hubspot__company_property_history_tmp"], "model.hubspot_source.stg_hubspot__email_event_delivered": ["model.hubspot_source.stg_hubspot__email_event_delivered_tmp", "model.hubspot_source.stg_hubspot__email_event_delivered_tmp"], "model.hubspot_source.stg_hubspot__owner": ["model.hubspot_source.stg_hubspot__owner_tmp", "model.hubspot_source.stg_hubspot__owner_tmp"], "model.hubspot_source.stg_hubspot__email_event": ["model.hubspot_source.stg_hubspot__email_event_tmp", "model.hubspot_source.stg_hubspot__email_event_tmp"], "model.hubspot_source.stg_hubspot__engagement_meeting": ["model.hubspot_source.stg_hubspot__engagement_meeting_tmp", "model.hubspot_source.stg_hubspot__engagement_meeting_tmp"], "model.hubspot_source.stg_hubspot__engagement_email": ["model.hubspot_source.stg_hubspot__engagement_email_tmp", "model.hubspot_source.stg_hubspot__engagement_email_tmp"], "model.hubspot_source.stg_hubspot__ticket_contact": ["model.hubspot_source.stg_hubspot__ticket_contact_tmp", "model.hubspot_source.stg_hubspot__ticket_contact_tmp"], "model.hubspot_source.stg_hubspot__email_event_status_change": ["model.hubspot_source.stg_hubspot__email_event_status_change_tmp", "model.hubspot_source.stg_hubspot__email_event_status_change_tmp"], "model.hubspot_source.stg_hubspot__contact_list_member": ["model.hubspot_source.stg_hubspot__contact_list_member_tmp", "model.hubspot_source.stg_hubspot__contact_list_member_tmp"], "model.hubspot_source.stg_hubspot__contact": ["model.hubspot_source.stg_hubspot__contact_tmp", "model.hubspot_source.stg_hubspot__contact_tmp"], "model.hubspot_source.stg_hubspot__deal": ["model.hubspot_source.stg_hubspot__deal_tmp", "model.hubspot_source.stg_hubspot__deal_tmp"], "model.hubspot_source.stg_hubspot__deal_pipeline": ["model.hubspot_source.stg_hubspot__deal_pipeline_tmp", "model.hubspot_source.stg_hubspot__deal_pipeline_tmp"], "model.hubspot_source.stg_hubspot__deal_company": ["model.hubspot_source.stg_hubspot__deal_company_tmp", "model.hubspot_source.stg_hubspot__deal_company_tmp"], "model.hubspot_source.stg_hubspot__engagement_note": ["model.hubspot_source.stg_hubspot__engagement_note_tmp", "model.hubspot_source.stg_hubspot__engagement_note_tmp"], "model.hubspot_source.stg_hubspot__engagement_contact": ["model.hubspot_source.stg_hubspot__engagement_contact_tmp", "model.hubspot_source.stg_hubspot__engagement_contact_tmp"], "model.hubspot_source.stg_hubspot__contact_list": ["model.hubspot_source.stg_hubspot__contact_list_tmp", "model.hubspot_source.stg_hubspot__contact_list_tmp"], "model.hubspot_source.stg_hubspot__ticket_pipeline": ["model.hubspot_source.stg_hubspot__ticket_pipeline_tmp", "model.hubspot_source.stg_hubspot__ticket_pipeline_tmp"], "model.hubspot_source.stg_hubspot__email_event_spam_report": ["model.hubspot_source.stg_hubspot__email_event_spam_report_tmp", "model.hubspot_source.stg_hubspot__email_event_spam_report_tmp"], "model.hubspot_source.stg_hubspot__deal_pipeline_stage": ["model.hubspot_source.stg_hubspot__deal_pipeline_stage_tmp", "model.hubspot_source.stg_hubspot__deal_pipeline_stage_tmp"], "model.hubspot_source.stg_hubspot__email_event_dropped": ["model.hubspot_source.stg_hubspot__email_event_dropped_tmp", "model.hubspot_source.stg_hubspot__email_event_dropped_tmp"], "model.hubspot_source.stg_hubspot__deal_stage": ["model.hubspot_source.stg_hubspot__deal_stage_tmp", "model.hubspot_source.stg_hubspot__deal_stage_tmp"], "model.hubspot_source.stg_hubspot__deal_property_history": ["model.hubspot_source.stg_hubspot__deal_property_history_tmp", "model.hubspot_source.stg_hubspot__deal_property_history_tmp"], "model.hubspot_source.stg_hubspot__email_event_forward": ["model.hubspot_source.stg_hubspot__email_event_forward_tmp", "model.hubspot_source.stg_hubspot__email_event_forward_tmp"], "model.hubspot_source.stg_hubspot__ticket_deal": ["model.hubspot_source.stg_hubspot__ticket_deal_tmp", "model.hubspot_source.stg_hubspot__ticket_deal_tmp"], "model.hubspot_source.stg_hubspot__email_event_bounce": ["model.hubspot_source.stg_hubspot__email_event_bounce_tmp", "model.hubspot_source.stg_hubspot__email_event_bounce_tmp"], "model.hubspot_source.stg_hubspot__ticket_engagement": ["model.hubspot_source.stg_hubspot__ticket_engagement_tmp", "model.hubspot_source.stg_hubspot__ticket_engagement_tmp"], "model.hubspot_source.stg_hubspot__ticket_pipeline_stage": ["model.hubspot_source.stg_hubspot__ticket_pipeline_stage_tmp", "model.hubspot_source.stg_hubspot__ticket_pipeline_stage_tmp"], "model.hubspot_source.stg_hubspot__engagement_company": ["model.hubspot_source.stg_hubspot__engagement_company_tmp", "model.hubspot_source.stg_hubspot__engagement_company_tmp"], "model.hubspot_source.stg_hubspot__email_event_deferred": ["model.hubspot_source.stg_hubspot__email_event_deferred_tmp", "model.hubspot_source.stg_hubspot__email_event_deferred_tmp"], "model.hubspot_source.stg_hubspot__company": ["model.hubspot_source.stg_hubspot__company_tmp", "model.hubspot_source.stg_hubspot__company_tmp"], "model.hubspot_source.stg_hubspot__email_event_click": ["model.hubspot_source.stg_hubspot__email_event_click_tmp", "model.hubspot_source.stg_hubspot__email_event_click_tmp"], "model.hubspot_source.stg_hubspot__engagement_call": ["model.hubspot_source.stg_hubspot__engagement_call_tmp", "model.hubspot_source.stg_hubspot__engagement_call_tmp"], "model.hubspot_source.stg_hubspot__engagement": ["model.hubspot_source.stg_hubspot__engagement_tmp", "model.hubspot_source.stg_hubspot__engagement_tmp"], "model.hubspot_source.stg_hubspot__ticket_company": ["model.hubspot_source.stg_hubspot__ticket_company_tmp", "model.hubspot_source.stg_hubspot__ticket_company_tmp"], "model.hubspot_source.stg_hubspot__email_campaign": ["model.hubspot_source.stg_hubspot__email_campaign_tmp", "model.hubspot_source.stg_hubspot__email_campaign_tmp"], "model.hubspot_source.stg_hubspot__email_event_print": ["model.hubspot_source.stg_hubspot__email_event_print_tmp", "model.hubspot_source.stg_hubspot__email_event_print_tmp"], "model.hubspot_source.stg_hubspot__contact_property_history": ["model.hubspot_source.stg_hubspot__contact_property_history_tmp", "model.hubspot_source.stg_hubspot__contact_property_history_tmp"], "model.hubspot_source.stg_hubspot__ticket_property_history": ["model.hubspot_source.stg_hubspot__ticket_property_history_tmp", "model.hubspot_source.stg_hubspot__ticket_property_history_tmp"], "model.hubspot_source.stg_hubspot__email_event_open": ["model.hubspot_source.stg_hubspot__email_event_open_tmp", "model.hubspot_source.stg_hubspot__email_event_open_tmp"], "model.hubspot_source.stg_hubspot__email_event_sent": ["model.hubspot_source.stg_hubspot__email_event_sent_tmp", "model.hubspot_source.stg_hubspot__email_event_sent_tmp"], "model.hubspot_source.stg_hubspot__ticket": ["model.hubspot_source.stg_hubspot__ticket_tmp", "model.hubspot_source.stg_hubspot__ticket_tmp"], "model.hubspot_source.stg_hubspot__contact_property_history_tmp": ["seed.hubspot_source_integration_tests.contact_property_history_data"], "model.hubspot_source.stg_hubspot__email_event_dropped_tmp": ["seed.hubspot_source_integration_tests.email_event_dropped_data"], "model.hubspot_source.stg_hubspot__email_event_sent_tmp": ["seed.hubspot_source_integration_tests.email_event_sent_data"], "model.hubspot_source.stg_hubspot__deal_tmp": ["seed.hubspot_source_integration_tests.deal_data"], "model.hubspot_source.stg_hubspot__ticket_company_tmp": ["seed.hubspot_source_integration_tests.ticket_company_data"], "model.hubspot_source.stg_hubspot__contact_list_member_tmp": ["seed.hubspot_source_integration_tests.contact_list_member_data"], "model.hubspot_source.stg_hubspot__owner_tmp": ["seed.hubspot_source_integration_tests.owner_data"], "model.hubspot_source.stg_hubspot__deal_stage_tmp": ["seed.hubspot_source_integration_tests.deal_stage_data"], "model.hubspot_source.stg_hubspot__deal_pipeline_tmp": ["seed.hubspot_source_integration_tests.deal_pipeline_data"], "model.hubspot_source.stg_hubspot__ticket_tmp": ["seed.hubspot_source_integration_tests.ticket_data"], "model.hubspot_source.stg_hubspot__ticket_property_history_tmp": ["seed.hubspot_source_integration_tests.ticket_property_history_data"], "model.hubspot_source.stg_hubspot__ticket_pipeline_tmp": ["seed.hubspot_source_integration_tests.ticket_pipeline_data"], "model.hubspot_source.stg_hubspot__engagement_company_tmp": ["seed.hubspot_source_integration_tests.engagement_company_data"], "model.hubspot_source.stg_hubspot__contact_tmp": ["seed.hubspot_source_integration_tests.contact_data"], "model.hubspot_source.stg_hubspot__email_event_status_change_tmp": ["seed.hubspot_source_integration_tests.email_event_status_change_data"], "model.hubspot_source.stg_hubspot__engagement_note_tmp": ["seed.hubspot_source_integration_tests.engagement_note_data"], "model.hubspot_source.stg_hubspot__ticket_contact_tmp": ["seed.hubspot_source_integration_tests.ticket_contact_data"], "model.hubspot_source.stg_hubspot__deal_company_tmp": ["seed.hubspot_source_integration_tests.deal_company_data"], "model.hubspot_source.stg_hubspot__engagement_deal_tmp": ["seed.hubspot_source_integration_tests.engagement_deal_data"], "model.hubspot_source.stg_hubspot__email_event_print_tmp": ["seed.hubspot_source_integration_tests.email_event_print_data"], "model.hubspot_source.stg_hubspot__company_property_history_tmp": ["seed.hubspot_source_integration_tests.company_property_history_data"], "model.hubspot_source.stg_hubspot__email_event_tmp": ["seed.hubspot_source_integration_tests.email_event_data"], "model.hubspot_source.stg_hubspot__company_tmp": ["seed.hubspot_source_integration_tests.company_data"], "model.hubspot_source.stg_hubspot__email_event_click_tmp": ["seed.hubspot_source_integration_tests.email_event_click_data"], "model.hubspot_source.stg_hubspot__engagement_contact_tmp": ["seed.hubspot_source_integration_tests.engagement_contact_data"], "model.hubspot_source.stg_hubspot__contact_list_tmp": ["seed.hubspot_source_integration_tests.contact_list_data"], "model.hubspot_source.stg_hubspot__engagement_meeting_tmp": ["seed.hubspot_source_integration_tests.engagement_meeting_data"], "model.hubspot_source.stg_hubspot__engagement_tmp": ["seed.hubspot_source_integration_tests.engagement_data"], "model.hubspot_source.stg_hubspot__email_event_delivered_tmp": ["seed.hubspot_source_integration_tests.email_event_delivered_data"], "model.hubspot_source.stg_hubspot__engagement_email_tmp": ["seed.hubspot_source_integration_tests.engagement_email_data"], "model.hubspot_source.stg_hubspot__email_event_forward_tmp": ["seed.hubspot_source_integration_tests.email_event_forward_data"], "model.hubspot_source.stg_hubspot__email_event_spam_report_tmp": ["seed.hubspot_source_integration_tests.email_event_spam_report_data"], "model.hubspot_source.stg_hubspot__ticket_engagement_tmp": ["seed.hubspot_source_integration_tests.ticket_engagement_data"], "model.hubspot_source.stg_hubspot__email_event_bounce_tmp": ["seed.hubspot_source_integration_tests.email_event_bounce_data"], "model.hubspot_source.stg_hubspot__engagement_call_tmp": ["seed.hubspot_source_integration_tests.engagement_call_data"], "model.hubspot_source.stg_hubspot__ticket_pipeline_stage_tmp": ["seed.hubspot_source_integration_tests.ticket_pipeline_stage_data"], "model.hubspot_source.stg_hubspot__deal_pipeline_stage_tmp": ["seed.hubspot_source_integration_tests.deal_pipeline_stage_data"], "model.hubspot_source.stg_hubspot__engagement_task_tmp": ["seed.hubspot_source_integration_tests.engagement_task_data"], "model.hubspot_source.stg_hubspot__email_event_open_tmp": ["seed.hubspot_source_integration_tests.email_event_open_data"], "model.hubspot_source.stg_hubspot__deal_property_history_tmp": ["seed.hubspot_source_integration_tests.deal_property_history_data"], "model.hubspot_source.stg_hubspot__email_event_deferred_tmp": ["seed.hubspot_source_integration_tests.email_event_deferred_data"], "model.hubspot_source.stg_hubspot__email_campaign_tmp": ["seed.hubspot_source_integration_tests.email_campaign_data"], "model.hubspot_source.stg_hubspot__ticket_deal_tmp": ["seed.hubspot_source_integration_tests.ticket_deal_data"], "test.hubspot_source.unique_stg_hubspot__deal_pipeline_stage_deal_pipeline_stage_id": ["model.hubspot_source.stg_hubspot__deal_pipeline_stage"], "test.hubspot_source.not_null_stg_hubspot__deal_pipeline_stage_deal_pipeline_stage_id": ["model.hubspot_source.stg_hubspot__deal_pipeline_stage"], "test.hubspot_source.unique_stg_hubspot__deal_pipeline_deal_pipeline_id": ["model.hubspot_source.stg_hubspot__deal_pipeline"], "test.hubspot_source.not_null_stg_hubspot__deal_pipeline_deal_pipeline_id": ["model.hubspot_source.stg_hubspot__deal_pipeline"], "test.hubspot_source.not_null_stg_hubspot__deal_deal_id": ["model.hubspot_source.stg_hubspot__deal"], "test.hubspot_source.unique_stg_hubspot__deal_deal_id": ["model.hubspot_source.stg_hubspot__deal"], "test.hubspot_source.unique_stg_hubspot__contact_list_contact_list_id": ["model.hubspot_source.stg_hubspot__contact_list"], "test.hubspot_source.not_null_stg_hubspot__contact_list_contact_list_id": ["model.hubspot_source.stg_hubspot__contact_list"], "test.hubspot_source.unique_stg_hubspot__contact_contact_id": ["model.hubspot_source.stg_hubspot__contact"], "test.hubspot_source.not_null_stg_hubspot__contact_contact_id": ["model.hubspot_source.stg_hubspot__contact"], "test.hubspot_source.unique_stg_hubspot__email_event_bounce_event_id": ["model.hubspot_source.stg_hubspot__email_event_bounce"], "test.hubspot_source.not_null_stg_hubspot__email_event_bounce_event_id": ["model.hubspot_source.stg_hubspot__email_event_bounce"], "test.hubspot_source.unique_stg_hubspot__email_event_click_event_id": ["model.hubspot_source.stg_hubspot__email_event_click"], "test.hubspot_source.not_null_stg_hubspot__email_event_click_event_id": ["model.hubspot_source.stg_hubspot__email_event_click"], "test.hubspot_source.unique_stg_hubspot__email_event_deferred_event_id": ["model.hubspot_source.stg_hubspot__email_event_deferred"], "test.hubspot_source.not_null_stg_hubspot__email_event_deferred_event_id": ["model.hubspot_source.stg_hubspot__email_event_deferred"], "test.hubspot_source.unique_stg_hubspot__email_event_delivered_event_id": ["model.hubspot_source.stg_hubspot__email_event_delivered"], "test.hubspot_source.not_null_stg_hubspot__email_event_delivered_event_id": ["model.hubspot_source.stg_hubspot__email_event_delivered"], "test.hubspot_source.unique_stg_hubspot__email_event_dropped_event_id": ["model.hubspot_source.stg_hubspot__email_event_dropped"], "test.hubspot_source.not_null_stg_hubspot__email_event_dropped_event_id": ["model.hubspot_source.stg_hubspot__email_event_dropped"], "test.hubspot_source.unique_stg_hubspot__email_event_forward_event_id": ["model.hubspot_source.stg_hubspot__email_event_forward"], "test.hubspot_source.not_null_stg_hubspot__email_event_forward_event_id": ["model.hubspot_source.stg_hubspot__email_event_forward"], "test.hubspot_source.unique_stg_hubspot__email_event_open_event_id": ["model.hubspot_source.stg_hubspot__email_event_open"], "test.hubspot_source.not_null_stg_hubspot__email_event_open_event_id": ["model.hubspot_source.stg_hubspot__email_event_open"], "test.hubspot_source.unique_stg_hubspot__email_event_print_event_id": ["model.hubspot_source.stg_hubspot__email_event_print"], "test.hubspot_source.not_null_stg_hubspot__email_event_print_event_id": ["model.hubspot_source.stg_hubspot__email_event_print"], "test.hubspot_source.unique_stg_hubspot__email_event_sent_event_id": ["model.hubspot_source.stg_hubspot__email_event_sent"], "test.hubspot_source.not_null_stg_hubspot__email_event_sent_event_id": ["model.hubspot_source.stg_hubspot__email_event_sent"], "test.hubspot_source.unique_stg_hubspot__email_event_spam_report_event_id": ["model.hubspot_source.stg_hubspot__email_event_spam_report"], "test.hubspot_source.not_null_stg_hubspot__email_event_spam_report_event_id": ["model.hubspot_source.stg_hubspot__email_event_spam_report"], "test.hubspot_source.unique_stg_hubspot__email_event_status_change_event_id": ["model.hubspot_source.stg_hubspot__email_event_status_change"], "test.hubspot_source.not_null_stg_hubspot__email_event_status_change_event_id": ["model.hubspot_source.stg_hubspot__email_event_status_change"], "test.hubspot_source.unique_stg_hubspot__email_event_event_id": ["model.hubspot_source.stg_hubspot__email_event"], "test.hubspot_source.not_null_stg_hubspot__email_event_event_id": ["model.hubspot_source.stg_hubspot__email_event"], "test.hubspot_source.unique_stg_hubspot__email_campaign_email_campaign_id": ["model.hubspot_source.stg_hubspot__email_campaign"], "test.hubspot_source.not_null_stg_hubspot__email_campaign_email_campaign_id": ["model.hubspot_source.stg_hubspot__email_campaign"], "test.hubspot_source.not_null_stg_hubspot__engagement_call_engagement_id": ["model.hubspot_source.stg_hubspot__engagement_call"], "test.hubspot_source.unique_stg_hubspot__engagement_call_engagement_id": ["model.hubspot_source.stg_hubspot__engagement_call"], "test.hubspot_source.not_null_stg_hubspot__engagement_email_engagement_id": ["model.hubspot_source.stg_hubspot__engagement_email"], "test.hubspot_source.unique_stg_hubspot__engagement_email_engagement_id": ["model.hubspot_source.stg_hubspot__engagement_email"], "test.hubspot_source.not_null_stg_hubspot__engagement_meeting_engagement_id": ["model.hubspot_source.stg_hubspot__engagement_meeting"], "test.hubspot_source.unique_stg_hubspot__engagement_meeting_engagement_id": ["model.hubspot_source.stg_hubspot__engagement_meeting"], "test.hubspot_source.not_null_stg_hubspot__engagement_note_engagement_id": ["model.hubspot_source.stg_hubspot__engagement_note"], "test.hubspot_source.unique_stg_hubspot__engagement_note_engagement_id": ["model.hubspot_source.stg_hubspot__engagement_note"], "test.hubspot_source.not_null_stg_hubspot__engagement_task_engagement_id": ["model.hubspot_source.stg_hubspot__engagement_task"], "test.hubspot_source.unique_stg_hubspot__engagement_task_engagement_id": ["model.hubspot_source.stg_hubspot__engagement_task"], "test.hubspot_source.not_null_stg_hubspot__engagement_engagement_id": ["model.hubspot_source.stg_hubspot__engagement"], "test.hubspot_source.unique_stg_hubspot__engagement_engagement_id": ["model.hubspot_source.stg_hubspot__engagement"], "test.hubspot_source.unique_stg_hubspot__ticket_ticket_id": ["model.hubspot_source.stg_hubspot__ticket"], "test.hubspot_source.not_null_stg_hubspot__ticket_ticket_id": ["model.hubspot_source.stg_hubspot__ticket"], "test.hubspot_source.unique_stg_hubspot__company_company_id": ["model.hubspot_source.stg_hubspot__company"], "test.hubspot_source.not_null_stg_hubspot__company_company_id": ["model.hubspot_source.stg_hubspot__company"], "source.hubspot_source.hubspot.calendar_event": [], "source.hubspot_source.hubspot.company": [], "source.hubspot_source.hubspot.company_property_history": [], "source.hubspot_source.hubspot.contact": [], "source.hubspot_source.hubspot.contact_form_submission": [], "source.hubspot_source.hubspot.contact_list": [], "source.hubspot_source.hubspot.contact_list_member": [], "source.hubspot_source.hubspot.contact_property_history": [], "source.hubspot_source.hubspot.deal": [], "source.hubspot_source.hubspot.deal_stage": [], "source.hubspot_source.hubspot.deal_company": [], "source.hubspot_source.hubspot.deal_contact": [], "source.hubspot_source.hubspot.deal_pipeline": [], "source.hubspot_source.hubspot.deal_pipeline_stage": [], "source.hubspot_source.hubspot.deal_property_history": [], "source.hubspot_source.hubspot.email_campaign": [], "source.hubspot_source.hubspot.email_event": [], "source.hubspot_source.hubspot.email_event_bounce": [], "source.hubspot_source.hubspot.email_event_click": [], "source.hubspot_source.hubspot.email_event_deferred": [], "source.hubspot_source.hubspot.email_event_delivered": [], "source.hubspot_source.hubspot.email_event_dropped": [], "source.hubspot_source.hubspot.email_event_forward": [], "source.hubspot_source.hubspot.email_event_open": [], "source.hubspot_source.hubspot.email_event_print": [], "source.hubspot_source.hubspot.email_event_sent": [], "source.hubspot_source.hubspot.email_event_spam_report": [], "source.hubspot_source.hubspot.email_event_status_change": [], "source.hubspot_source.hubspot.email_subscription": [], "source.hubspot_source.hubspot.email_subscription_change": [], "source.hubspot_source.hubspot.engagement": [], "source.hubspot_source.hubspot.engagement_call": [], "source.hubspot_source.hubspot.engagement_company": [], "source.hubspot_source.hubspot.engagement_contact": [], "source.hubspot_source.hubspot.engagement_deal": [], "source.hubspot_source.hubspot.engagement_email": [], "source.hubspot_source.hubspot.engagement_email_cc": [], "source.hubspot_source.hubspot.engagement_email_to": [], "source.hubspot_source.hubspot.engagement_meeting": [], "source.hubspot_source.hubspot.engagement_note": [], "source.hubspot_source.hubspot.engagement_task": [], "source.hubspot_source.hubspot.form": [], "source.hubspot_source.hubspot.owner": [], "source.hubspot_source.hubspot.ticket_company": [], "source.hubspot_source.hubspot.ticket_contact": [], "source.hubspot_source.hubspot.ticket_deal": [], "source.hubspot_source.hubspot.ticket_engagement": [], "source.hubspot_source.hubspot.ticket_pipeline_stage": [], "source.hubspot_source.hubspot.ticket_pipeline": [], "source.hubspot_source.hubspot.ticket_property_history": [], "source.hubspot_source.hubspot.ticket": []}, "child_map": {"seed.hubspot_source_integration_tests.email_event_delivered_data": ["model.hubspot_source.stg_hubspot__email_event_delivered_tmp"], "seed.hubspot_source_integration_tests.ticket_pipeline_stage_data": ["model.hubspot_source.stg_hubspot__ticket_pipeline_stage_tmp"], "seed.hubspot_source_integration_tests.ticket_contact_data": ["model.hubspot_source.stg_hubspot__ticket_contact_tmp"], "seed.hubspot_source_integration_tests.email_event_status_change_data": ["model.hubspot_source.stg_hubspot__email_event_status_change_tmp"], "seed.hubspot_source_integration_tests.ticket_company_data": ["model.hubspot_source.stg_hubspot__ticket_company_tmp"], "seed.hubspot_source_integration_tests.engagement_deal_data": ["model.hubspot_source.stg_hubspot__engagement_deal_tmp"], "seed.hubspot_source_integration_tests.deal_stage_data": ["model.hubspot_source.stg_hubspot__deal_stage_tmp"], "seed.hubspot_source_integration_tests.email_campaign_data": ["model.hubspot_source.stg_hubspot__email_campaign_tmp"], "seed.hubspot_source_integration_tests.engagement_call_data": ["model.hubspot_source.stg_hubspot__engagement_call_tmp"], "seed.hubspot_source_integration_tests.email_event_print_data": ["model.hubspot_source.stg_hubspot__email_event_print_tmp"], "seed.hubspot_source_integration_tests.email_event_spam_report_data": ["model.hubspot_source.stg_hubspot__email_event_spam_report_tmp"], "seed.hubspot_source_integration_tests.ticket_data": ["model.hubspot_source.stg_hubspot__ticket_tmp"], "seed.hubspot_source_integration_tests.ticket_pipeline_data": ["model.hubspot_source.stg_hubspot__ticket_pipeline_tmp"], "seed.hubspot_source_integration_tests.contact_list_data": ["model.hubspot_source.stg_hubspot__contact_list_tmp"], "seed.hubspot_source_integration_tests.email_event_click_data": ["model.hubspot_source.stg_hubspot__email_event_click_tmp"], "seed.hubspot_source_integration_tests.email_event_deferred_data": ["model.hubspot_source.stg_hubspot__email_event_deferred_tmp"], "seed.hubspot_source_integration_tests.email_event_open_data": ["model.hubspot_source.stg_hubspot__email_event_open_tmp"], "seed.hubspot_source_integration_tests.company_property_history_data": ["model.hubspot_source.stg_hubspot__company_property_history_tmp"], "seed.hubspot_source_integration_tests.engagement_email_data": ["model.hubspot_source.stg_hubspot__engagement_email_tmp"], "seed.hubspot_source_integration_tests.deal_data": ["model.hubspot_source.stg_hubspot__deal_tmp"], "seed.hubspot_source_integration_tests.engagement_note_data": ["model.hubspot_source.stg_hubspot__engagement_note_tmp"], "seed.hubspot_source_integration_tests.deal_pipeline_data": ["model.hubspot_source.stg_hubspot__deal_pipeline_tmp"], "seed.hubspot_source_integration_tests.email_event_data": ["model.hubspot_source.stg_hubspot__email_event_tmp"], "seed.hubspot_source_integration_tests.engagement_data": ["model.hubspot_source.stg_hubspot__engagement_tmp"], "seed.hubspot_source_integration_tests.email_event_dropped_data": ["model.hubspot_source.stg_hubspot__email_event_dropped_tmp"], "seed.hubspot_source_integration_tests.owner_data": ["model.hubspot_source.stg_hubspot__owner_tmp"], "seed.hubspot_source_integration_tests.engagement_meeting_data": ["model.hubspot_source.stg_hubspot__engagement_meeting_tmp"], "seed.hubspot_source_integration_tests.email_event_forward_data": ["model.hubspot_source.stg_hubspot__email_event_forward_tmp"], "seed.hubspot_source_integration_tests.deal_pipeline_stage_data": ["model.hubspot_source.stg_hubspot__deal_pipeline_stage_tmp"], "seed.hubspot_source_integration_tests.company_data": ["model.hubspot_source.stg_hubspot__company_tmp"], "seed.hubspot_source_integration_tests.contact_list_member_data": ["model.hubspot_source.stg_hubspot__contact_list_member_tmp"], "seed.hubspot_source_integration_tests.contact_property_history_data": ["model.hubspot_source.stg_hubspot__contact_property_history_tmp"], "seed.hubspot_source_integration_tests.deal_property_history_data": ["model.hubspot_source.stg_hubspot__deal_property_history_tmp"], "seed.hubspot_source_integration_tests.email_event_bounce_data": ["model.hubspot_source.stg_hubspot__email_event_bounce_tmp"], "seed.hubspot_source_integration_tests.engagement_contact_data": ["model.hubspot_source.stg_hubspot__engagement_contact_tmp"], "seed.hubspot_source_integration_tests.ticket_engagement_data": ["model.hubspot_source.stg_hubspot__ticket_engagement_tmp"], "seed.hubspot_source_integration_tests.email_event_sent_data": ["model.hubspot_source.stg_hubspot__email_event_sent_tmp"], "seed.hubspot_source_integration_tests.contact_data": ["model.hubspot_source.stg_hubspot__contact_tmp"], "seed.hubspot_source_integration_tests.ticket_deal_data": ["model.hubspot_source.stg_hubspot__ticket_deal_tmp"], "seed.hubspot_source_integration_tests.deal_company_data": ["model.hubspot_source.stg_hubspot__deal_company_tmp"], "seed.hubspot_source_integration_tests.ticket_property_history_data": ["model.hubspot_source.stg_hubspot__ticket_property_history_tmp"], "seed.hubspot_source_integration_tests.engagement_task_data": ["model.hubspot_source.stg_hubspot__engagement_task_tmp"], "seed.hubspot_source_integration_tests.engagement_company_data": ["model.hubspot_source.stg_hubspot__engagement_company_tmp"], "model.hubspot_source.stg_hubspot__engagement_task": ["test.hubspot_source.not_null_stg_hubspot__engagement_task_engagement_id", "test.hubspot_source.unique_stg_hubspot__engagement_task_engagement_id"], "model.hubspot_source.stg_hubspot__engagement_deal": [], "model.hubspot_source.stg_hubspot__company_property_history": [], "model.hubspot_source.stg_hubspot__email_event_delivered": ["test.hubspot_source.not_null_stg_hubspot__email_event_delivered_event_id", "test.hubspot_source.unique_stg_hubspot__email_event_delivered_event_id"], "model.hubspot_source.stg_hubspot__owner": [], "model.hubspot_source.stg_hubspot__email_event": ["test.hubspot_source.not_null_stg_hubspot__email_event_event_id", "test.hubspot_source.unique_stg_hubspot__email_event_event_id"], "model.hubspot_source.stg_hubspot__engagement_meeting": ["test.hubspot_source.not_null_stg_hubspot__engagement_meeting_engagement_id", "test.hubspot_source.unique_stg_hubspot__engagement_meeting_engagement_id"], "model.hubspot_source.stg_hubspot__engagement_email": ["test.hubspot_source.not_null_stg_hubspot__engagement_email_engagement_id", "test.hubspot_source.unique_stg_hubspot__engagement_email_engagement_id"], "model.hubspot_source.stg_hubspot__ticket_contact": [], "model.hubspot_source.stg_hubspot__email_event_status_change": ["test.hubspot_source.not_null_stg_hubspot__email_event_status_change_event_id", "test.hubspot_source.unique_stg_hubspot__email_event_status_change_event_id"], "model.hubspot_source.stg_hubspot__contact_list_member": [], "model.hubspot_source.stg_hubspot__contact": ["test.hubspot_source.not_null_stg_hubspot__contact_contact_id", "test.hubspot_source.unique_stg_hubspot__contact_contact_id"], "model.hubspot_source.stg_hubspot__deal": ["test.hubspot_source.not_null_stg_hubspot__deal_deal_id", "test.hubspot_source.unique_stg_hubspot__deal_deal_id"], "model.hubspot_source.stg_hubspot__deal_pipeline": ["test.hubspot_source.not_null_stg_hubspot__deal_pipeline_deal_pipeline_id", "test.hubspot_source.unique_stg_hubspot__deal_pipeline_deal_pipeline_id"], "model.hubspot_source.stg_hubspot__deal_company": [], "model.hubspot_source.stg_hubspot__engagement_note": ["test.hubspot_source.not_null_stg_hubspot__engagement_note_engagement_id", "test.hubspot_source.unique_stg_hubspot__engagement_note_engagement_id"], "model.hubspot_source.stg_hubspot__engagement_contact": [], "model.hubspot_source.stg_hubspot__contact_list": ["test.hubspot_source.not_null_stg_hubspot__contact_list_contact_list_id", "test.hubspot_source.unique_stg_hubspot__contact_list_contact_list_id"], "model.hubspot_source.stg_hubspot__ticket_pipeline": [], "model.hubspot_source.stg_hubspot__email_event_spam_report": ["test.hubspot_source.not_null_stg_hubspot__email_event_spam_report_event_id", "test.hubspot_source.unique_stg_hubspot__email_event_spam_report_event_id"], "model.hubspot_source.stg_hubspot__deal_pipeline_stage": ["test.hubspot_source.not_null_stg_hubspot__deal_pipeline_stage_deal_pipeline_stage_id", "test.hubspot_source.unique_stg_hubspot__deal_pipeline_stage_deal_pipeline_stage_id"], "model.hubspot_source.stg_hubspot__email_event_dropped": ["test.hubspot_source.not_null_stg_hubspot__email_event_dropped_event_id", "test.hubspot_source.unique_stg_hubspot__email_event_dropped_event_id"], "model.hubspot_source.stg_hubspot__deal_stage": [], "model.hubspot_source.stg_hubspot__deal_property_history": [], "model.hubspot_source.stg_hubspot__email_event_forward": ["test.hubspot_source.not_null_stg_hubspot__email_event_forward_event_id", "test.hubspot_source.unique_stg_hubspot__email_event_forward_event_id"], "model.hubspot_source.stg_hubspot__ticket_deal": [], "model.hubspot_source.stg_hubspot__email_event_bounce": ["test.hubspot_source.not_null_stg_hubspot__email_event_bounce_event_id", "test.hubspot_source.unique_stg_hubspot__email_event_bounce_event_id"], "model.hubspot_source.stg_hubspot__ticket_engagement": [], "model.hubspot_source.stg_hubspot__ticket_pipeline_stage": [], "model.hubspot_source.stg_hubspot__engagement_company": [], "model.hubspot_source.stg_hubspot__email_event_deferred": ["test.hubspot_source.not_null_stg_hubspot__email_event_deferred_event_id", "test.hubspot_source.unique_stg_hubspot__email_event_deferred_event_id"], "model.hubspot_source.stg_hubspot__company": ["test.hubspot_source.not_null_stg_hubspot__company_company_id", "test.hubspot_source.unique_stg_hubspot__company_company_id"], "model.hubspot_source.stg_hubspot__email_event_click": ["test.hubspot_source.not_null_stg_hubspot__email_event_click_event_id", "test.hubspot_source.unique_stg_hubspot__email_event_click_event_id"], "model.hubspot_source.stg_hubspot__engagement_call": ["test.hubspot_source.not_null_stg_hubspot__engagement_call_engagement_id", "test.hubspot_source.unique_stg_hubspot__engagement_call_engagement_id"], "model.hubspot_source.stg_hubspot__engagement": ["test.hubspot_source.not_null_stg_hubspot__engagement_engagement_id", "test.hubspot_source.unique_stg_hubspot__engagement_engagement_id"], "model.hubspot_source.stg_hubspot__ticket_company": [], "model.hubspot_source.stg_hubspot__email_campaign": ["test.hubspot_source.not_null_stg_hubspot__email_campaign_email_campaign_id", "test.hubspot_source.unique_stg_hubspot__email_campaign_email_campaign_id"], "model.hubspot_source.stg_hubspot__email_event_print": ["test.hubspot_source.not_null_stg_hubspot__email_event_print_event_id", "test.hubspot_source.unique_stg_hubspot__email_event_print_event_id"], "model.hubspot_source.stg_hubspot__contact_property_history": [], "model.hubspot_source.stg_hubspot__ticket_property_history": [], "model.hubspot_source.stg_hubspot__email_event_open": ["test.hubspot_source.not_null_stg_hubspot__email_event_open_event_id", "test.hubspot_source.unique_stg_hubspot__email_event_open_event_id"], "model.hubspot_source.stg_hubspot__email_event_sent": ["test.hubspot_source.not_null_stg_hubspot__email_event_sent_event_id", "test.hubspot_source.unique_stg_hubspot__email_event_sent_event_id"], "model.hubspot_source.stg_hubspot__ticket": ["test.hubspot_source.not_null_stg_hubspot__ticket_ticket_id", "test.hubspot_source.unique_stg_hubspot__ticket_ticket_id"], "model.hubspot_source.stg_hubspot__contact_property_history_tmp": ["model.hubspot_source.stg_hubspot__contact_property_history", "model.hubspot_source.stg_hubspot__contact_property_history"], "model.hubspot_source.stg_hubspot__email_event_dropped_tmp": ["model.hubspot_source.stg_hubspot__email_event_dropped", "model.hubspot_source.stg_hubspot__email_event_dropped"], "model.hubspot_source.stg_hubspot__email_event_sent_tmp": ["model.hubspot_source.stg_hubspot__email_event_sent", "model.hubspot_source.stg_hubspot__email_event_sent"], "model.hubspot_source.stg_hubspot__deal_tmp": ["model.hubspot_source.stg_hubspot__deal", "model.hubspot_source.stg_hubspot__deal"], "model.hubspot_source.stg_hubspot__ticket_company_tmp": ["model.hubspot_source.stg_hubspot__ticket_company", "model.hubspot_source.stg_hubspot__ticket_company"], "model.hubspot_source.stg_hubspot__contact_list_member_tmp": ["model.hubspot_source.stg_hubspot__contact_list_member", "model.hubspot_source.stg_hubspot__contact_list_member"], "model.hubspot_source.stg_hubspot__owner_tmp": ["model.hubspot_source.stg_hubspot__owner", "model.hubspot_source.stg_hubspot__owner"], "model.hubspot_source.stg_hubspot__deal_stage_tmp": ["model.hubspot_source.stg_hubspot__deal_stage", "model.hubspot_source.stg_hubspot__deal_stage"], "model.hubspot_source.stg_hubspot__deal_pipeline_tmp": ["model.hubspot_source.stg_hubspot__deal_pipeline", "model.hubspot_source.stg_hubspot__deal_pipeline"], "model.hubspot_source.stg_hubspot__ticket_tmp": ["model.hubspot_source.stg_hubspot__ticket", "model.hubspot_source.stg_hubspot__ticket"], "model.hubspot_source.stg_hubspot__ticket_property_history_tmp": ["model.hubspot_source.stg_hubspot__ticket_property_history", "model.hubspot_source.stg_hubspot__ticket_property_history"], "model.hubspot_source.stg_hubspot__ticket_pipeline_tmp": ["model.hubspot_source.stg_hubspot__ticket_pipeline", "model.hubspot_source.stg_hubspot__ticket_pipeline"], "model.hubspot_source.stg_hubspot__engagement_company_tmp": ["model.hubspot_source.stg_hubspot__engagement_company", "model.hubspot_source.stg_hubspot__engagement_company"], "model.hubspot_source.stg_hubspot__contact_tmp": ["model.hubspot_source.stg_hubspot__contact", "model.hubspot_source.stg_hubspot__contact"], "model.hubspot_source.stg_hubspot__email_event_status_change_tmp": ["model.hubspot_source.stg_hubspot__email_event_status_change", "model.hubspot_source.stg_hubspot__email_event_status_change"], "model.hubspot_source.stg_hubspot__engagement_note_tmp": ["model.hubspot_source.stg_hubspot__engagement_note", "model.hubspot_source.stg_hubspot__engagement_note"], "model.hubspot_source.stg_hubspot__ticket_contact_tmp": ["model.hubspot_source.stg_hubspot__ticket_contact", "model.hubspot_source.stg_hubspot__ticket_contact"], "model.hubspot_source.stg_hubspot__deal_company_tmp": ["model.hubspot_source.stg_hubspot__deal_company", "model.hubspot_source.stg_hubspot__deal_company"], "model.hubspot_source.stg_hubspot__engagement_deal_tmp": ["model.hubspot_source.stg_hubspot__engagement_deal", "model.hubspot_source.stg_hubspot__engagement_deal"], "model.hubspot_source.stg_hubspot__email_event_print_tmp": ["model.hubspot_source.stg_hubspot__email_event_print", "model.hubspot_source.stg_hubspot__email_event_print"], "model.hubspot_source.stg_hubspot__company_property_history_tmp": ["model.hubspot_source.stg_hubspot__company_property_history", "model.hubspot_source.stg_hubspot__company_property_history"], "model.hubspot_source.stg_hubspot__email_event_tmp": ["model.hubspot_source.stg_hubspot__email_event", "model.hubspot_source.stg_hubspot__email_event"], "model.hubspot_source.stg_hubspot__company_tmp": ["model.hubspot_source.stg_hubspot__company", "model.hubspot_source.stg_hubspot__company"], "model.hubspot_source.stg_hubspot__email_event_click_tmp": ["model.hubspot_source.stg_hubspot__email_event_click", "model.hubspot_source.stg_hubspot__email_event_click"], "model.hubspot_source.stg_hubspot__engagement_contact_tmp": ["model.hubspot_source.stg_hubspot__engagement_contact", "model.hubspot_source.stg_hubspot__engagement_contact"], "model.hubspot_source.stg_hubspot__contact_list_tmp": ["model.hubspot_source.stg_hubspot__contact_list", "model.hubspot_source.stg_hubspot__contact_list"], "model.hubspot_source.stg_hubspot__engagement_meeting_tmp": ["model.hubspot_source.stg_hubspot__engagement_meeting", "model.hubspot_source.stg_hubspot__engagement_meeting"], "model.hubspot_source.stg_hubspot__engagement_tmp": ["model.hubspot_source.stg_hubspot__engagement", "model.hubspot_source.stg_hubspot__engagement"], "model.hubspot_source.stg_hubspot__email_event_delivered_tmp": ["model.hubspot_source.stg_hubspot__email_event_delivered", "model.hubspot_source.stg_hubspot__email_event_delivered"], "model.hubspot_source.stg_hubspot__engagement_email_tmp": ["model.hubspot_source.stg_hubspot__engagement_email", "model.hubspot_source.stg_hubspot__engagement_email"], "model.hubspot_source.stg_hubspot__email_event_forward_tmp": ["model.hubspot_source.stg_hubspot__email_event_forward", "model.hubspot_source.stg_hubspot__email_event_forward"], "model.hubspot_source.stg_hubspot__email_event_spam_report_tmp": ["model.hubspot_source.stg_hubspot__email_event_spam_report", "model.hubspot_source.stg_hubspot__email_event_spam_report"], "model.hubspot_source.stg_hubspot__ticket_engagement_tmp": ["model.hubspot_source.stg_hubspot__ticket_engagement", "model.hubspot_source.stg_hubspot__ticket_engagement"], "model.hubspot_source.stg_hubspot__email_event_bounce_tmp": ["model.hubspot_source.stg_hubspot__email_event_bounce", "model.hubspot_source.stg_hubspot__email_event_bounce"], "model.hubspot_source.stg_hubspot__engagement_call_tmp": ["model.hubspot_source.stg_hubspot__engagement_call", "model.hubspot_source.stg_hubspot__engagement_call"], "model.hubspot_source.stg_hubspot__ticket_pipeline_stage_tmp": ["model.hubspot_source.stg_hubspot__ticket_pipeline_stage", "model.hubspot_source.stg_hubspot__ticket_pipeline_stage"], "model.hubspot_source.stg_hubspot__deal_pipeline_stage_tmp": ["model.hubspot_source.stg_hubspot__deal_pipeline_stage", "model.hubspot_source.stg_hubspot__deal_pipeline_stage"], "model.hubspot_source.stg_hubspot__engagement_task_tmp": ["model.hubspot_source.stg_hubspot__engagement_task", "model.hubspot_source.stg_hubspot__engagement_task"], "model.hubspot_source.stg_hubspot__email_event_open_tmp": ["model.hubspot_source.stg_hubspot__email_event_open", "model.hubspot_source.stg_hubspot__email_event_open"], "model.hubspot_source.stg_hubspot__deal_property_history_tmp": ["model.hubspot_source.stg_hubspot__deal_property_history", "model.hubspot_source.stg_hubspot__deal_property_history"], "model.hubspot_source.stg_hubspot__email_event_deferred_tmp": ["model.hubspot_source.stg_hubspot__email_event_deferred", "model.hubspot_source.stg_hubspot__email_event_deferred"], "model.hubspot_source.stg_hubspot__email_campaign_tmp": ["model.hubspot_source.stg_hubspot__email_campaign", "model.hubspot_source.stg_hubspot__email_campaign"], "model.hubspot_source.stg_hubspot__ticket_deal_tmp": ["model.hubspot_source.stg_hubspot__ticket_deal", "model.hubspot_source.stg_hubspot__ticket_deal"], "test.hubspot_source.unique_stg_hubspot__deal_pipeline_stage_deal_pipeline_stage_id": [], "test.hubspot_source.not_null_stg_hubspot__deal_pipeline_stage_deal_pipeline_stage_id": [], "test.hubspot_source.unique_stg_hubspot__deal_pipeline_deal_pipeline_id": [], "test.hubspot_source.not_null_stg_hubspot__deal_pipeline_deal_pipeline_id": [], "test.hubspot_source.not_null_stg_hubspot__deal_deal_id": [], "test.hubspot_source.unique_stg_hubspot__deal_deal_id": [], "test.hubspot_source.unique_stg_hubspot__contact_list_contact_list_id": [], "test.hubspot_source.not_null_stg_hubspot__contact_list_contact_list_id": [], "test.hubspot_source.unique_stg_hubspot__contact_contact_id": [], "test.hubspot_source.not_null_stg_hubspot__contact_contact_id": [], "test.hubspot_source.unique_stg_hubspot__email_event_bounce_event_id": [], "test.hubspot_source.not_null_stg_hubspot__email_event_bounce_event_id": [], "test.hubspot_source.unique_stg_hubspot__email_event_click_event_id": [], "test.hubspot_source.not_null_stg_hubspot__email_event_click_event_id": [], "test.hubspot_source.unique_stg_hubspot__email_event_deferred_event_id": [], "test.hubspot_source.not_null_stg_hubspot__email_event_deferred_event_id": [], "test.hubspot_source.unique_stg_hubspot__email_event_delivered_event_id": [], "test.hubspot_source.not_null_stg_hubspot__email_event_delivered_event_id": [], "test.hubspot_source.unique_stg_hubspot__email_event_dropped_event_id": [], "test.hubspot_source.not_null_stg_hubspot__email_event_dropped_event_id": [], "test.hubspot_source.unique_stg_hubspot__email_event_forward_event_id": [], "test.hubspot_source.not_null_stg_hubspot__email_event_forward_event_id": [], "test.hubspot_source.unique_stg_hubspot__email_event_open_event_id": [], "test.hubspot_source.not_null_stg_hubspot__email_event_open_event_id": [], "test.hubspot_source.unique_stg_hubspot__email_event_print_event_id": [], "test.hubspot_source.not_null_stg_hubspot__email_event_print_event_id": [], "test.hubspot_source.unique_stg_hubspot__email_event_sent_event_id": [], "test.hubspot_source.not_null_stg_hubspot__email_event_sent_event_id": [], "test.hubspot_source.unique_stg_hubspot__email_event_spam_report_event_id": [], "test.hubspot_source.not_null_stg_hubspot__email_event_spam_report_event_id": [], "test.hubspot_source.unique_stg_hubspot__email_event_status_change_event_id": [], "test.hubspot_source.not_null_stg_hubspot__email_event_status_change_event_id": [], "test.hubspot_source.unique_stg_hubspot__email_event_event_id": [], "test.hubspot_source.not_null_stg_hubspot__email_event_event_id": [], "test.hubspot_source.unique_stg_hubspot__email_campaign_email_campaign_id": [], "test.hubspot_source.not_null_stg_hubspot__email_campaign_email_campaign_id": [], "test.hubspot_source.not_null_stg_hubspot__engagement_call_engagement_id": [], "test.hubspot_source.unique_stg_hubspot__engagement_call_engagement_id": [], "test.hubspot_source.not_null_stg_hubspot__engagement_email_engagement_id": [], "test.hubspot_source.unique_stg_hubspot__engagement_email_engagement_id": [], "test.hubspot_source.not_null_stg_hubspot__engagement_meeting_engagement_id": [], "test.hubspot_source.unique_stg_hubspot__engagement_meeting_engagement_id": [], "test.hubspot_source.not_null_stg_hubspot__engagement_note_engagement_id": [], "test.hubspot_source.unique_stg_hubspot__engagement_note_engagement_id": [], "test.hubspot_source.not_null_stg_hubspot__engagement_task_engagement_id": [], "test.hubspot_source.unique_stg_hubspot__engagement_task_engagement_id": [], "test.hubspot_source.not_null_stg_hubspot__engagement_engagement_id": [], "test.hubspot_source.unique_stg_hubspot__engagement_engagement_id": [], "test.hubspot_source.unique_stg_hubspot__ticket_ticket_id": [], "test.hubspot_source.not_null_stg_hubspot__ticket_ticket_id": [], "test.hubspot_source.unique_stg_hubspot__company_company_id": [], "test.hubspot_source.not_null_stg_hubspot__company_company_id": [], "source.hubspot_source.hubspot.calendar_event": [], "source.hubspot_source.hubspot.company": [], "source.hubspot_source.hubspot.company_property_history": [], "source.hubspot_source.hubspot.contact": [], "source.hubspot_source.hubspot.contact_form_submission": [], "source.hubspot_source.hubspot.contact_list": [], "source.hubspot_source.hubspot.contact_list_member": [], "source.hubspot_source.hubspot.contact_property_history": [], "source.hubspot_source.hubspot.deal": [], "source.hubspot_source.hubspot.deal_stage": [], "source.hubspot_source.hubspot.deal_company": [], "source.hubspot_source.hubspot.deal_contact": [], "source.hubspot_source.hubspot.deal_pipeline": [], "source.hubspot_source.hubspot.deal_pipeline_stage": [], "source.hubspot_source.hubspot.deal_property_history": [], "source.hubspot_source.hubspot.email_campaign": [], "source.hubspot_source.hubspot.email_event": [], "source.hubspot_source.hubspot.email_event_bounce": [], "source.hubspot_source.hubspot.email_event_click": [], "source.hubspot_source.hubspot.email_event_deferred": [], "source.hubspot_source.hubspot.email_event_delivered": [], "source.hubspot_source.hubspot.email_event_dropped": [], "source.hubspot_source.hubspot.email_event_forward": [], "source.hubspot_source.hubspot.email_event_open": [], "source.hubspot_source.hubspot.email_event_print": [], "source.hubspot_source.hubspot.email_event_sent": [], "source.hubspot_source.hubspot.email_event_spam_report": [], "source.hubspot_source.hubspot.email_event_status_change": [], "source.hubspot_source.hubspot.email_subscription": [], "source.hubspot_source.hubspot.email_subscription_change": [], "source.hubspot_source.hubspot.engagement": [], "source.hubspot_source.hubspot.engagement_call": [], "source.hubspot_source.hubspot.engagement_company": [], "source.hubspot_source.hubspot.engagement_contact": [], "source.hubspot_source.hubspot.engagement_deal": [], "source.hubspot_source.hubspot.engagement_email": [], "source.hubspot_source.hubspot.engagement_email_cc": [], "source.hubspot_source.hubspot.engagement_email_to": [], "source.hubspot_source.hubspot.engagement_meeting": [], "source.hubspot_source.hubspot.engagement_note": [], "source.hubspot_source.hubspot.engagement_task": [], "source.hubspot_source.hubspot.form": [], "source.hubspot_source.hubspot.owner": [], "source.hubspot_source.hubspot.ticket_company": [], "source.hubspot_source.hubspot.ticket_contact": [], "source.hubspot_source.hubspot.ticket_deal": [], "source.hubspot_source.hubspot.ticket_engagement": [], "source.hubspot_source.hubspot.ticket_pipeline_stage": [], "source.hubspot_source.hubspot.ticket_pipeline": [], "source.hubspot_source.hubspot.ticket_property_history": [], "source.hubspot_source.hubspot.ticket": []}} \ No newline at end of file diff --git a/docs/run_results.json b/docs/run_results.json index ba9bccc..3d58783 100644 --- a/docs/run_results.json +++ b/docs/run_results.json @@ -1 +1 @@ -{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/run-results/v1.json", "dbt_version": "0.19.0", "generated_at": "2021-04-01T21:53:21.743364Z", "invocation_id": "9195e932-840a-413e-924c-97cda8b5b067", "env": {}}, "results": [{"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:18.169281Z", "completed_at": "2021-04-01T21:53:18.189575Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:18.197684Z", "completed_at": "2021-04-01T21:53:18.197701Z"}], "thread_id": "Thread-1", "execution_time": 0.03597307205200195, "message": null, "adapter_response": {}, "unique_id": "seed.hubspot_source_integration_tests.company_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:18.189443Z", "completed_at": "2021-04-01T21:53:18.204464Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:18.259933Z", "completed_at": "2021-04-01T21:53:18.259950Z"}], "thread_id": "Thread-2", "execution_time": 0.07982897758483887, "message": null, "adapter_response": {}, "unique_id": "seed.hubspot_source_integration_tests.company_property_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:18.190321Z", "completed_at": "2021-04-01T21:53:18.259557Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:18.261062Z", "completed_at": "2021-04-01T21:53:18.261071Z"}], "thread_id": "Thread-3", "execution_time": 0.08011984825134277, "message": null, "adapter_response": {}, "unique_id": "seed.hubspot_source_integration_tests.contact_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:18.197920Z", "completed_at": "2021-04-01T21:53:18.270070Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:18.276722Z", "completed_at": "2021-04-01T21:53:18.276740Z"}], "thread_id": "Thread-4", "execution_time": 0.09170413017272949, "message": null, "adapter_response": {}, "unique_id": "seed.hubspot_source_integration_tests.contact_list_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:18.269836Z", "completed_at": "2021-04-01T21:53:18.281866Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:18.290826Z", "completed_at": "2021-04-01T21:53:18.290838Z"}], "thread_id": "Thread-1", "execution_time": 0.03715801239013672, "message": null, "adapter_response": {}, "unique_id": "seed.hubspot_source_integration_tests.contact_list_member_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:18.281329Z", "completed_at": "2021-04-01T21:53:18.298105Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:18.299460Z", "completed_at": "2021-04-01T21:53:18.299468Z"}], "thread_id": "Thread-2", "execution_time": 0.02976202964782715, "message": null, "adapter_response": {}, "unique_id": "seed.hubspot_source_integration_tests.contact_property_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:18.282183Z", "completed_at": "2021-04-01T21:53:18.299209Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:18.299986Z", "completed_at": "2021-04-01T21:53:18.299993Z"}], "thread_id": "Thread-3", "execution_time": 0.026992082595825195, "message": null, "adapter_response": {}, "unique_id": "seed.hubspot_source_integration_tests.deal_company_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:18.299700Z", "completed_at": "2021-04-01T21:53:18.308357Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:18.309477Z", "completed_at": "2021-04-01T21:53:18.309485Z"}], "thread_id": "Thread-4", "execution_time": 0.01924872398376465, "message": null, "adapter_response": {}, "unique_id": "seed.hubspot_source_integration_tests.deal_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:18.308725Z", "completed_at": "2021-04-01T21:53:18.317954Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:18.324795Z", "completed_at": "2021-04-01T21:53:18.324802Z"}], "thread_id": "Thread-1", "execution_time": 0.02448415756225586, "message": null, "adapter_response": {}, "unique_id": "seed.hubspot_source_integration_tests.deal_pipeline_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:18.317566Z", "completed_at": "2021-04-01T21:53:18.331347Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:18.332413Z", "completed_at": "2021-04-01T21:53:18.332420Z"}], "thread_id": "Thread-2", "execution_time": 0.024470090866088867, "message": null, "adapter_response": {}, "unique_id": "seed.hubspot_source_integration_tests.deal_pipeline_stage_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:18.318188Z", "completed_at": "2021-04-01T21:53:18.332083Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:18.332976Z", "completed_at": "2021-04-01T21:53:18.332983Z"}], "thread_id": "Thread-3", "execution_time": 0.022356033325195312, "message": null, "adapter_response": {}, "unique_id": "seed.hubspot_source_integration_tests.deal_property_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:18.332656Z", "completed_at": "2021-04-01T21:53:18.340044Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:18.341178Z", "completed_at": "2021-04-01T21:53:18.341185Z"}], "thread_id": "Thread-4", "execution_time": 0.015964746475219727, "message": null, "adapter_response": {}, "unique_id": "seed.hubspot_source_integration_tests.deal_stage_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:18.340319Z", "completed_at": "2021-04-01T21:53:18.347680Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:18.354003Z", "completed_at": "2021-04-01T21:53:18.354011Z"}], "thread_id": "Thread-1", "execution_time": 0.02151012420654297, "message": null, "adapter_response": {}, "unique_id": "seed.hubspot_source_integration_tests.email_campaign_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:18.347266Z", "completed_at": "2021-04-01T21:53:18.360232Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:18.361139Z", "completed_at": "2021-04-01T21:53:18.361145Z"}], "thread_id": "Thread-2", "execution_time": 0.021417856216430664, "message": null, "adapter_response": {}, "unique_id": "seed.hubspot_source_integration_tests.email_event_bounce_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:18.347891Z", "completed_at": "2021-04-01T21:53:18.360928Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:18.361577Z", "completed_at": "2021-04-01T21:53:18.361583Z"}], "thread_id": "Thread-3", "execution_time": 0.02234029769897461, "message": null, "adapter_response": {}, "unique_id": "seed.hubspot_source_integration_tests.email_event_click_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:18.361341Z", "completed_at": "2021-04-01T21:53:18.369598Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:18.370638Z", "completed_at": "2021-04-01T21:53:18.370645Z"}], "thread_id": "Thread-4", "execution_time": 0.01669788360595703, "message": null, "adapter_response": {}, "unique_id": "seed.hubspot_source_integration_tests.email_event_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:18.369954Z", "completed_at": "2021-04-01T21:53:18.377290Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:18.384489Z", "completed_at": "2021-04-01T21:53:18.384496Z"}], "thread_id": "Thread-1", "execution_time": 0.021990299224853516, "message": null, "adapter_response": {}, "unique_id": "seed.hubspot_source_integration_tests.email_event_deferred_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:18.376928Z", "completed_at": "2021-04-01T21:53:18.390170Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:18.391120Z", "completed_at": "2021-04-01T21:53:18.391126Z"}], "thread_id": "Thread-2", "execution_time": 0.02185201644897461, "message": null, "adapter_response": {}, "unique_id": "seed.hubspot_source_integration_tests.email_event_delivered_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:18.377518Z", "completed_at": "2021-04-01T21:53:18.391374Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:18.392401Z", "completed_at": "2021-04-01T21:53:18.392408Z"}], "thread_id": "Thread-3", "execution_time": 0.02241063117980957, "message": null, "adapter_response": {}, "unique_id": "seed.hubspot_source_integration_tests.email_event_dropped_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:18.391659Z", "completed_at": "2021-04-01T21:53:18.399327Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:18.400046Z", "completed_at": "2021-04-01T21:53:18.400053Z"}], "thread_id": "Thread-4", "execution_time": 0.01683783531188965, "message": null, "adapter_response": {}, "unique_id": "seed.hubspot_source_integration_tests.email_event_forward_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:18.399587Z", "completed_at": "2021-04-01T21:53:18.407616Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:18.414547Z", "completed_at": "2021-04-01T21:53:18.414553Z"}], "thread_id": "Thread-1", "execution_time": 0.022372007369995117, "message": null, "adapter_response": {}, "unique_id": "seed.hubspot_source_integration_tests.email_event_open_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:18.406683Z", "completed_at": "2021-04-01T21:53:18.414970Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:18.421021Z", "completed_at": "2021-04-01T21:53:18.421027Z"}], "thread_id": "Thread-2", "execution_time": 0.02204585075378418, "message": null, "adapter_response": {}, "unique_id": "seed.hubspot_source_integration_tests.email_event_print_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:18.414265Z", "completed_at": "2021-04-01T21:53:18.421220Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:18.421977Z", "completed_at": "2021-04-01T21:53:18.421984Z"}], "thread_id": "Thread-3", "execution_time": 0.02132892608642578, "message": null, "adapter_response": {}, "unique_id": "seed.hubspot_source_integration_tests.email_event_sent_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:18.421406Z", "completed_at": "2021-04-01T21:53:18.428407Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:18.429169Z", "completed_at": "2021-04-01T21:53:18.429175Z"}], "thread_id": "Thread-4", "execution_time": 0.015140295028686523, "message": null, "adapter_response": {}, "unique_id": "seed.hubspot_source_integration_tests.email_event_spam_report_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:18.428623Z", "completed_at": "2021-04-01T21:53:18.435824Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:18.442410Z", "completed_at": "2021-04-01T21:53:18.442417Z"}], "thread_id": "Thread-1", "execution_time": 0.021142005920410156, "message": null, "adapter_response": {}, "unique_id": "seed.hubspot_source_integration_tests.email_event_status_change_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:18.435269Z", "completed_at": "2021-04-01T21:53:18.442774Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:18.448924Z", "completed_at": "2021-04-01T21:53:18.448930Z"}], "thread_id": "Thread-2", "execution_time": 0.020921707153320312, "message": null, "adapter_response": {}, "unique_id": "seed.hubspot_source_integration_tests.engagement_call_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:18.442073Z", "completed_at": "2021-04-01T21:53:18.449124Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:18.449983Z", "completed_at": "2021-04-01T21:53:18.449989Z"}], "thread_id": "Thread-3", "execution_time": 0.020879745483398438, "message": null, "adapter_response": {}, "unique_id": "seed.hubspot_source_integration_tests.engagement_company_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:18.449314Z", "completed_at": "2021-04-01T21:53:18.456533Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:18.457300Z", "completed_at": "2021-04-01T21:53:18.457306Z"}], "thread_id": "Thread-4", "execution_time": 0.01639080047607422, "message": null, "adapter_response": {}, "unique_id": "seed.hubspot_source_integration_tests.engagement_contact_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:18.456748Z", "completed_at": "2021-04-01T21:53:18.470216Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:18.470966Z", "completed_at": "2021-04-01T21:53:18.470972Z"}], "thread_id": "Thread-1", "execution_time": 0.02150130271911621, "message": null, "adapter_response": {}, "unique_id": "seed.hubspot_source_integration_tests.engagement_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:18.464014Z", "completed_at": "2021-04-01T21:53:18.470669Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:18.476962Z", "completed_at": "2021-04-01T21:53:18.476969Z"}], "thread_id": "Thread-2", "execution_time": 0.020873069763183594, "message": null, "adapter_response": {}, "unique_id": "seed.hubspot_source_integration_tests.engagement_deal_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:18.470456Z", "completed_at": "2021-04-01T21:53:18.477405Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:18.478062Z", "completed_at": "2021-04-01T21:53:18.478068Z"}], "thread_id": "Thread-3", "execution_time": 0.020680904388427734, "message": null, "adapter_response": {}, "unique_id": "seed.hubspot_source_integration_tests.engagement_email_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:18.477602Z", "completed_at": "2021-04-01T21:53:18.485617Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:18.486300Z", "completed_at": "2021-04-01T21:53:18.486306Z"}], "thread_id": "Thread-4", "execution_time": 0.021185874938964844, "message": null, "adapter_response": {}, "unique_id": "seed.hubspot_source_integration_tests.engagement_meeting_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:18.485818Z", "completed_at": "2021-04-01T21:53:18.498444Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:18.504804Z", "completed_at": "2021-04-01T21:53:18.504812Z"}], "thread_id": "Thread-1", "execution_time": 0.0213010311126709, "message": null, "adapter_response": {}, "unique_id": "seed.hubspot_source_integration_tests.engagement_note_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:18.486136Z", "completed_at": "2021-04-01T21:53:18.498902Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:18.505463Z", "completed_at": "2021-04-01T21:53:18.505470Z"}], "thread_id": "Thread-2", "execution_time": 0.02096700668334961, "message": null, "adapter_response": {}, "unique_id": "seed.hubspot_source_integration_tests.engagement_task_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:18.498288Z", "completed_at": "2021-04-01T21:53:18.505673Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:18.506458Z", "completed_at": "2021-04-01T21:53:18.506464Z"}], "thread_id": "Thread-3", "execution_time": 0.022258996963500977, "message": null, "adapter_response": {}, "unique_id": "seed.hubspot_source_integration_tests.owner_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:18.506096Z", "completed_at": "2021-04-01T21:53:18.514755Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:18.515592Z", "completed_at": "2021-04-01T21:53:18.515598Z"}], "thread_id": "Thread-4", "execution_time": 0.01720595359802246, "message": null, "adapter_response": {}, "unique_id": "seed.hubspot_source_integration_tests.ticket_company_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:18.515340Z", "completed_at": "2021-04-01T21:53:18.528604Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:18.534645Z", "completed_at": "2021-04-01T21:53:18.534652Z"}], "thread_id": "Thread-1", "execution_time": 0.021075963973999023, "message": null, "adapter_response": {}, "unique_id": "seed.hubspot_source_integration_tests.ticket_contact_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:18.516025Z", "completed_at": "2021-04-01T21:53:18.534434Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:18.535246Z", "completed_at": "2021-04-01T21:53:18.535252Z"}], "thread_id": "Thread-2", "execution_time": 0.02113509178161621, "message": null, "adapter_response": {}, "unique_id": "seed.hubspot_source_integration_tests.ticket_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:18.528359Z", "completed_at": "2021-04-01T21:53:18.535050Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:18.535799Z", "completed_at": "2021-04-01T21:53:18.535804Z"}], "thread_id": "Thread-3", "execution_time": 0.026140928268432617, "message": null, "adapter_response": {}, "unique_id": "seed.hubspot_source_integration_tests.ticket_deal_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:18.535703Z", "completed_at": "2021-04-01T21:53:18.543270Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:18.544377Z", "completed_at": "2021-04-01T21:53:18.544383Z"}], "thread_id": "Thread-4", "execution_time": 0.015730857849121094, "message": null, "adapter_response": {}, "unique_id": "seed.hubspot_source_integration_tests.ticket_engagement_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:18.544261Z", "completed_at": "2021-04-01T21:53:18.555962Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:18.562102Z", "completed_at": "2021-04-01T21:53:18.562108Z"}], "thread_id": "Thread-1", "execution_time": 0.02015209197998047, "message": null, "adapter_response": {}, "unique_id": "seed.hubspot_source_integration_tests.ticket_pipeline_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:18.544877Z", "completed_at": "2021-04-01T21:53:18.561842Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:18.562692Z", "completed_at": "2021-04-01T21:53:18.562697Z"}], "thread_id": "Thread-2", "execution_time": 0.019627094268798828, "message": null, "adapter_response": {}, "unique_id": "seed.hubspot_source_integration_tests.ticket_pipeline_stage_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:18.550701Z", "completed_at": "2021-04-01T21:53:18.562498Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:18.563246Z", "completed_at": "2021-04-01T21:53:18.563251Z"}], "thread_id": "Thread-3", "execution_time": 0.0316619873046875, "message": null, "adapter_response": {}, "unique_id": "seed.hubspot_source_integration_tests.ticket_property_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:18.563152Z", "completed_at": "2021-04-01T21:53:18.582215Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:18.599257Z", "completed_at": "2021-04-01T21:53:18.599289Z"}], "thread_id": "Thread-4", "execution_time": 0.047202110290527344, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__company_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:18.582140Z", "completed_at": "2021-04-01T21:53:18.609742Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:18.610674Z", "completed_at": "2021-04-01T21:53:18.610682Z"}], "thread_id": "Thread-2", "execution_time": 0.03072834014892578, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__contact_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:18.581666Z", "completed_at": "2021-04-01T21:53:18.610130Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:18.611149Z", "completed_at": "2021-04-01T21:53:18.611156Z"}], "thread_id": "Thread-1", "execution_time": 0.0319521427154541, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__company_property_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:18.590647Z", "completed_at": "2021-04-01T21:53:18.611343Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:18.612424Z", "completed_at": "2021-04-01T21:53:18.612430Z"}], "thread_id": "Thread-3", "execution_time": 0.03159785270690918, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__contact_list_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:18.612621Z", "completed_at": "2021-04-01T21:53:18.624470Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:18.644678Z", "completed_at": "2021-04-01T21:53:18.644688Z"}], "thread_id": "Thread-4", "execution_time": 0.033895015716552734, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__contact_list_member_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:18.623817Z", "completed_at": "2021-04-01T21:53:18.645658Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:18.656782Z", "completed_at": "2021-04-01T21:53:18.656805Z"}], "thread_id": "Thread-2", "execution_time": 0.03603720664978027, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__contact_property_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:18.624318Z", "completed_at": "2021-04-01T21:53:18.657086Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:18.658404Z", "completed_at": "2021-04-01T21:53:18.658411Z"}], "thread_id": "Thread-1", "execution_time": 0.03705596923828125, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__deal_company_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:18.644897Z", "completed_at": "2021-04-01T21:53:18.658694Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:18.659780Z", "completed_at": "2021-04-01T21:53:18.659786Z"}], "thread_id": "Thread-3", "execution_time": 0.044715166091918945, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__deal_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:18.658930Z", "completed_at": "2021-04-01T21:53:18.670466Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:18.680141Z", "completed_at": "2021-04-01T21:53:18.680149Z"}], "thread_id": "Thread-4", "execution_time": 0.032354116439819336, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__deal_pipeline_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:18.669843Z", "completed_at": "2021-04-01T21:53:18.689974Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:18.691165Z", "completed_at": "2021-04-01T21:53:18.691172Z"}], "thread_id": "Thread-2", "execution_time": 0.03394794464111328, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__deal_pipeline_stage_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:18.679750Z", "completed_at": "2021-04-01T21:53:18.690919Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:18.701882Z", "completed_at": "2021-04-01T21:53:18.701891Z"}], "thread_id": "Thread-1", "execution_time": 0.033480167388916016, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__deal_property_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:18.690366Z", "completed_at": "2021-04-01T21:53:18.704279Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:18.714787Z", "completed_at": "2021-04-01T21:53:18.714813Z"}], "thread_id": "Thread-3", "execution_time": 0.03577709197998047, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__deal_stage_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:18.703208Z", "completed_at": "2021-04-01T21:53:18.716474Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:18.737934Z", "completed_at": "2021-04-01T21:53:18.737989Z"}], "thread_id": "Thread-4", "execution_time": 0.037451744079589844, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__email_campaign_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:18.715725Z", "completed_at": "2021-04-01T21:53:18.739399Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:18.750466Z", "completed_at": "2021-04-01T21:53:18.750475Z"}], "thread_id": "Thread-2", "execution_time": 0.037316083908081055, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__email_event_bounce_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:18.716306Z", "completed_at": "2021-04-01T21:53:18.739747Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:18.751056Z", "completed_at": "2021-04-01T21:53:18.751062Z"}], "thread_id": "Thread-1", "execution_time": 0.03664398193359375, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__email_event_click_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:18.739241Z", "completed_at": "2021-04-01T21:53:18.763935Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:18.765216Z", "completed_at": "2021-04-01T21:53:18.765225Z"}], "thread_id": "Thread-3", "execution_time": 0.02766895294189453, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__email_event_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:18.751794Z", "completed_at": "2021-04-01T21:53:18.766225Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:18.787905Z", "completed_at": "2021-04-01T21:53:18.787915Z"}], "thread_id": "Thread-4", "execution_time": 0.03797411918640137, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__email_event_deferred_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:18.766161Z", "completed_at": "2021-04-01T21:53:18.789348Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:18.802053Z", "completed_at": "2021-04-01T21:53:18.802063Z"}], "thread_id": "Thread-1", "execution_time": 0.037464141845703125, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__email_event_dropped_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:18.765750Z", "completed_at": "2021-04-01T21:53:18.789785Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:18.802338Z", "completed_at": "2021-04-01T21:53:18.802362Z"}], "thread_id": "Thread-2", "execution_time": 0.03876996040344238, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__email_event_delivered_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:18.788896Z", "completed_at": "2021-04-01T21:53:18.803401Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:18.814340Z", "completed_at": "2021-04-01T21:53:18.814349Z"}], "thread_id": "Thread-3", "execution_time": 0.02735590934753418, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__email_event_forward_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:18.802580Z", "completed_at": "2021-04-01T21:53:18.815609Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:18.816326Z", "completed_at": "2021-04-01T21:53:18.816333Z"}], "thread_id": "Thread-4", "execution_time": 0.03824424743652344, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__email_event_open_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:18.815974Z", "completed_at": "2021-04-01T21:53:18.851469Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:18.852315Z", "completed_at": "2021-04-01T21:53:18.852325Z"}], "thread_id": "Thread-2", "execution_time": 0.03815197944641113, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__email_event_sent_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:18.815870Z", "completed_at": "2021-04-01T21:53:18.851971Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:18.852916Z", "completed_at": "2021-04-01T21:53:18.852923Z"}], "thread_id": "Thread-1", "execution_time": 0.04825115203857422, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__email_event_print_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:18.840334Z", "completed_at": "2021-04-01T21:53:18.852697Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:18.858708Z", "completed_at": "2021-04-01T21:53:18.858716Z"}], "thread_id": "Thread-3", "execution_time": 0.024019956588745117, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__email_event_spam_report_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:18.852615Z", "completed_at": "2021-04-01T21:53:18.865397Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:18.866217Z", "completed_at": "2021-04-01T21:53:18.866225Z"}], "thread_id": "Thread-4", "execution_time": 0.03739309310913086, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__email_event_status_change_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:18.865767Z", "completed_at": "2021-04-01T21:53:18.899752Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:18.900714Z", "completed_at": "2021-04-01T21:53:18.900724Z"}], "thread_id": "Thread-2", "execution_time": 0.03755998611450195, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__engagement_call_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:18.866111Z", "completed_at": "2021-04-01T21:53:18.900159Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:18.901125Z", "completed_at": "2021-04-01T21:53:18.901132Z"}], "thread_id": "Thread-1", "execution_time": 0.037262916564941406, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__engagement_company_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:18.871674Z", "completed_at": "2021-04-01T21:53:18.900900Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:18.901927Z", "completed_at": "2021-04-01T21:53:18.901933Z"}], "thread_id": "Thread-3", "execution_time": 0.047045230865478516, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__engagement_contact_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:18.901377Z", "completed_at": "2021-04-01T21:53:18.915171Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:18.915882Z", "completed_at": "2021-04-01T21:53:18.915890Z"}], "thread_id": "Thread-4", "execution_time": 0.03789782524108887, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__engagement_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:18.915403Z", "completed_at": "2021-04-01T21:53:18.948625Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:18.949436Z", "completed_at": "2021-04-01T21:53:18.949446Z"}], "thread_id": "Thread-2", "execution_time": 0.03642392158508301, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__engagement_deal_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:18.915756Z", "completed_at": "2021-04-01T21:53:18.950506Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:18.951268Z", "completed_at": "2021-04-01T21:53:18.951276Z"}], "thread_id": "Thread-1", "execution_time": 0.04909110069274902, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__engagement_email_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:18.925659Z", "completed_at": "2021-04-01T21:53:18.950791Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:18.962925Z", "completed_at": "2021-04-01T21:53:18.962935Z"}], "thread_id": "Thread-3", "execution_time": 0.04839611053466797, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__engagement_meeting_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:18.950715Z", "completed_at": "2021-04-01T21:53:18.964498Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:18.976477Z", "completed_at": "2021-04-01T21:53:18.976490Z"}], "thread_id": "Thread-4", "execution_time": 0.027704954147338867, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__engagement_note_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:18.964116Z", "completed_at": "2021-04-01T21:53:18.983166Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:19.000372Z", "completed_at": "2021-04-01T21:53:19.000384Z"}], "thread_id": "Thread-2", "execution_time": 0.03848004341125488, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__engagement_task_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:18.977214Z", "completed_at": "2021-04-01T21:53:19.001240Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:19.002271Z", "completed_at": "2021-04-01T21:53:19.002278Z"}], "thread_id": "Thread-1", "execution_time": 0.03766226768493652, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__owner_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:18.977819Z", "completed_at": "2021-04-01T21:53:19.001976Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:19.013158Z", "completed_at": "2021-04-01T21:53:19.013170Z"}], "thread_id": "Thread-3", "execution_time": 0.03755021095275879, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__ticket_company_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:19.001877Z", "completed_at": "2021-04-01T21:53:19.014970Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:19.026387Z", "completed_at": "2021-04-01T21:53:19.026401Z"}], "thread_id": "Thread-4", "execution_time": 0.026859045028686523, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__ticket_contact_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:19.014860Z", "completed_at": "2021-04-01T21:53:19.038978Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:19.046174Z", "completed_at": "2021-04-01T21:53:19.046188Z"}], "thread_id": "Thread-2", "execution_time": 0.039524078369140625, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__ticket_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:19.027893Z", "completed_at": "2021-04-01T21:53:19.054107Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:19.065364Z", "completed_at": "2021-04-01T21:53:19.065374Z"}], "thread_id": "Thread-3", "execution_time": 0.03955411911010742, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__ticket_engagement_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:19.027143Z", "completed_at": "2021-04-01T21:53:19.054376Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:19.065632Z", "completed_at": "2021-04-01T21:53:19.065639Z"}], "thread_id": "Thread-1", "execution_time": 0.050913095474243164, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__ticket_deal_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:19.053656Z", "completed_at": "2021-04-01T21:53:19.066714Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:19.077641Z", "completed_at": "2021-04-01T21:53:19.077653Z"}], "thread_id": "Thread-4", "execution_time": 0.026935100555419922, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__ticket_pipeline_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:19.065963Z", "completed_at": "2021-04-01T21:53:19.079873Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:19.081034Z", "completed_at": "2021-04-01T21:53:19.081052Z"}], "thread_id": "Thread-2", "execution_time": 0.04318690299987793, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__ticket_pipeline_stage_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:19.080216Z", "completed_at": "2021-04-01T21:53:19.108879Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:19.121680Z", "completed_at": "2021-04-01T21:53:19.121695Z"}], "thread_id": "Thread-3", "execution_time": 0.04766082763671875, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__ticket_property_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:19.126555Z", "completed_at": "2021-04-01T21:53:19.276300Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:19.277285Z", "completed_at": "2021-04-01T21:53:19.277298Z"}], "thread_id": "Thread-2", "execution_time": 0.15294909477233887, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__contact"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:19.108736Z", "completed_at": "2021-04-01T21:53:19.276701Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:19.277580Z", "completed_at": "2021-04-01T21:53:19.277589Z"}], "thread_id": "Thread-4", "execution_time": 0.1710350513458252, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__company_property_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:19.080399Z", "completed_at": "2021-04-01T21:53:19.276981Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:19.278053Z", "completed_at": "2021-04-01T21:53:19.278061Z"}], "thread_id": "Thread-1", "execution_time": 0.200531005859375, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__company"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:19.140586Z", "completed_at": "2021-04-01T21:53:19.277785Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:19.278956Z", "completed_at": "2021-04-01T21:53:19.278964Z"}], "thread_id": "Thread-3", "execution_time": 0.1401519775390625, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__contact_list"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:19.282476Z", "completed_at": "2021-04-01T21:53:19.466804Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:19.467095Z", "completed_at": "2021-04-01T21:53:19.467106Z"}], "thread_id": "Thread-2", "execution_time": 0.18663811683654785, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__contact_list_member"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:19.283131Z", "completed_at": "2021-04-01T21:53:19.468003Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:19.468545Z", "completed_at": "2021-04-01T21:53:19.468553Z"}], "thread_id": "Thread-1", "execution_time": 0.18712687492370605, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__deal_company"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:19.307092Z", "completed_at": "2021-04-01T21:53:19.505578Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:19.507171Z", "completed_at": "2021-04-01T21:53:19.507184Z"}], "thread_id": "Thread-3", "execution_time": 0.22482919692993164, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__deal"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:19.282646Z", "completed_at": "2021-04-01T21:53:19.566109Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:19.566493Z", "completed_at": "2021-04-01T21:53:19.566504Z"}], "thread_id": "Thread-4", "execution_time": 0.2858109474182129, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__contact_property_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:19.508812Z", "completed_at": "2021-04-01T21:53:19.647058Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:19.647489Z", "completed_at": "2021-04-01T21:53:19.647502Z"}], "thread_id": "Thread-3", "execution_time": 0.13973188400268555, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__deal_property_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:19.482863Z", "completed_at": "2021-04-01T21:53:19.648067Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:19.648862Z", "completed_at": "2021-04-01T21:53:19.648870Z"}], "thread_id": "Thread-1", "execution_time": 0.16734886169433594, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__deal_pipeline_stage"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:19.468836Z", "completed_at": "2021-04-01T21:53:19.648298Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:19.649128Z", "completed_at": "2021-04-01T21:53:19.649136Z"}], "thread_id": "Thread-2", "execution_time": 0.1818687915802002, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__deal_pipeline"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:19.568711Z", "completed_at": "2021-04-01T21:53:19.708696Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:19.709006Z", "completed_at": "2021-04-01T21:53:19.709018Z"}], "thread_id": "Thread-4", "execution_time": 0.14105916023254395, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__deal_stage"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:19.667000Z", "completed_at": "2021-04-01T21:53:19.837767Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:19.838052Z", "completed_at": "2021-04-01T21:53:19.838063Z"}], "thread_id": "Thread-2", "execution_time": 0.18097996711730957, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__email_event_click"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:19.650261Z", "completed_at": "2021-04-01T21:53:19.838272Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:19.838869Z", "completed_at": "2021-04-01T21:53:19.838877Z"}], "thread_id": "Thread-3", "execution_time": 0.19036102294921875, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__email_campaign"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:19.666859Z", "completed_at": "2021-04-01T21:53:19.876974Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:19.880115Z", "completed_at": "2021-04-01T21:53:19.880127Z"}], "thread_id": "Thread-1", "execution_time": 0.2251121997833252, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__email_event_bounce"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:19.710334Z", "completed_at": "2021-04-01T21:53:19.879289Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:19.881447Z", "completed_at": "2021-04-01T21:53:19.881459Z"}], "thread_id": "Thread-4", "execution_time": 0.17300915718078613, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__email_event"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:19.857459Z", "completed_at": "2021-04-01T21:53:20.060016Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:20.060270Z", "completed_at": "2021-04-01T21:53:20.060280Z"}], "thread_id": "Thread-3", "execution_time": 0.21995806694030762, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__email_event_delivered"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:19.840369Z", "completed_at": "2021-04-01T21:53:20.082521Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:20.082864Z", "completed_at": "2021-04-01T21:53:20.082875Z"}], "thread_id": "Thread-2", "execution_time": 0.2432868480682373, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__email_event_deferred"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:19.885387Z", "completed_at": "2021-04-01T21:53:20.107586Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:20.107877Z", "completed_at": "2021-04-01T21:53:20.107886Z"}], "thread_id": "Thread-4", "execution_time": 0.22327303886413574, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__email_event_forward"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:19.885253Z", "completed_at": "2021-04-01T21:53:20.121738Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:20.122020Z", "completed_at": "2021-04-01T21:53:20.122028Z"}], "thread_id": "Thread-1", "execution_time": 0.23780012130737305, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__email_event_dropped"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:20.061376Z", "completed_at": "2021-04-01T21:53:20.196083Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:20.196314Z", "completed_at": "2021-04-01T21:53:20.196324Z"}], "thread_id": "Thread-3", "execution_time": 0.13550114631652832, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__email_event_open"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:20.083703Z", "completed_at": "2021-04-01T21:53:20.235690Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:20.236003Z", "completed_at": "2021-04-01T21:53:20.236014Z"}], "thread_id": "Thread-2", "execution_time": 0.15294790267944336, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__email_event_sent"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:20.108700Z", "completed_at": "2021-04-01T21:53:20.262785Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:20.263342Z", "completed_at": "2021-04-01T21:53:20.263352Z"}], "thread_id": "Thread-4", "execution_time": 0.1556107997894287, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__email_event_print"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:20.122800Z", "completed_at": "2021-04-01T21:53:20.263683Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:20.264241Z", "completed_at": "2021-04-01T21:53:20.264247Z"}], "thread_id": "Thread-1", "execution_time": 0.1425309181213379, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__email_event_spam_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:20.197093Z", "completed_at": "2021-04-01T21:53:20.315294Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:20.315622Z", "completed_at": "2021-04-01T21:53:20.315631Z"}], "thread_id": "Thread-3", "execution_time": 0.11908388137817383, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__email_event_status_change"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:20.237863Z", "completed_at": "2021-04-01T21:53:20.402780Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:20.403018Z", "completed_at": "2021-04-01T21:53:20.403027Z"}], "thread_id": "Thread-2", "execution_time": 0.16617870330810547, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__engagement_call"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:20.271746Z", "completed_at": "2021-04-01T21:53:20.420041Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:20.420285Z", "completed_at": "2021-04-01T21:53:20.420293Z"}], "thread_id": "Thread-1", "execution_time": 0.1545100212097168, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__engagement_contact"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:20.265979Z", "completed_at": "2021-04-01T21:53:20.447821Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:20.449259Z", "completed_at": "2021-04-01T21:53:20.449271Z"}], "thread_id": "Thread-4", "execution_time": 0.1884782314300537, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__engagement_company"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:20.316654Z", "completed_at": "2021-04-01T21:53:20.470349Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:20.471225Z", "completed_at": "2021-04-01T21:53:20.471235Z"}], "thread_id": "Thread-3", "execution_time": 0.15540289878845215, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__engagement"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:20.403849Z", "completed_at": "2021-04-01T21:53:20.560826Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:20.561077Z", "completed_at": "2021-04-01T21:53:20.561087Z"}], "thread_id": "Thread-2", "execution_time": 0.15780186653137207, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__engagement_deal"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:20.455116Z", "completed_at": "2021-04-01T21:53:20.618302Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:20.618544Z", "completed_at": "2021-04-01T21:53:20.618554Z"}], "thread_id": "Thread-4", "execution_time": 0.1640331745147705, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__engagement_meeting"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:20.421436Z", "completed_at": "2021-04-01T21:53:20.625104Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:20.625411Z", "completed_at": "2021-04-01T21:53:20.625417Z"}], "thread_id": "Thread-1", "execution_time": 0.20451688766479492, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__engagement_email"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:20.472847Z", "completed_at": "2021-04-01T21:53:20.657916Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:20.658272Z", "completed_at": "2021-04-01T21:53:20.658283Z"}], "thread_id": "Thread-3", "execution_time": 0.18621420860290527, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__engagement_note"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:20.562005Z", "completed_at": "2021-04-01T21:53:20.754710Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:20.754988Z", "completed_at": "2021-04-01T21:53:20.754999Z"}], "thread_id": "Thread-2", "execution_time": 0.19369912147521973, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__engagement_task"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:20.634883Z", "completed_at": "2021-04-01T21:53:20.780698Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:20.781156Z", "completed_at": "2021-04-01T21:53:20.781172Z"}], "thread_id": "Thread-1", "execution_time": 0.15584111213684082, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__ticket_company"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:20.659535Z", "completed_at": "2021-04-01T21:53:20.782013Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:20.782783Z", "completed_at": "2021-04-01T21:53:20.782798Z"}], "thread_id": "Thread-3", "execution_time": 0.12468099594116211, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__ticket_contact"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:20.619337Z", "completed_at": "2021-04-01T21:53:20.804680Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:20.815486Z", "completed_at": "2021-04-01T21:53:20.815504Z"}], "thread_id": "Thread-4", "execution_time": 0.19878506660461426, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__owner"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:20.756363Z", "completed_at": "2021-04-01T21:53:20.897928Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:20.898209Z", "completed_at": "2021-04-01T21:53:20.898221Z"}], "thread_id": "Thread-2", "execution_time": 0.1428067684173584, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__ticket"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:20.803632Z", "completed_at": "2021-04-01T21:53:20.951376Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:20.951660Z", "completed_at": "2021-04-01T21:53:20.951672Z"}], "thread_id": "Thread-3", "execution_time": 0.14933109283447266, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__ticket_deal"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:20.784035Z", "completed_at": "2021-04-01T21:53:20.979196Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:20.979930Z", "completed_at": "2021-04-01T21:53:20.979943Z"}], "thread_id": "Thread-1", "execution_time": 0.19747304916381836, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__ticket_engagement"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:20.819585Z", "completed_at": "2021-04-01T21:53:20.979574Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:20.980212Z", "completed_at": "2021-04-01T21:53:20.980222Z"}], "thread_id": "Thread-4", "execution_time": 0.16175580024719238, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__ticket_pipeline"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:20.982601Z", "completed_at": "2021-04-01T21:53:21.011419Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:21.011972Z", "completed_at": "2021-04-01T21:53:21.011984Z"}], "thread_id": "Thread-1", "execution_time": 0.031187057495117188, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.not_null_stg_hubspot__contact_contact_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:20.982747Z", "completed_at": "2021-04-01T21:53:21.011710Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:21.012267Z", "completed_at": "2021-04-01T21:53:21.012277Z"}], "thread_id": "Thread-4", "execution_time": 0.031126976013183594, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.unique_stg_hubspot__contact_contact_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:21.014712Z", "completed_at": "2021-04-01T21:53:21.040513Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:21.041207Z", "completed_at": "2021-04-01T21:53:21.041219Z"}], "thread_id": "Thread-4", "execution_time": 0.027814865112304688, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.unique_stg_hubspot__company_company_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:21.014543Z", "completed_at": "2021-04-01T21:53:21.040835Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:21.041577Z", "completed_at": "2021-04-01T21:53:21.041587Z"}], "thread_id": "Thread-1", "execution_time": 0.028722047805786133, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.not_null_stg_hubspot__company_company_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:20.899576Z", "completed_at": "2021-04-01T21:53:21.042344Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:21.043370Z", "completed_at": "2021-04-01T21:53:21.043378Z"}], "thread_id": "Thread-2", "execution_time": 0.14528203010559082, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__ticket_pipeline_stage"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:21.046017Z", "completed_at": "2021-04-01T21:53:21.076074Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:21.076369Z", "completed_at": "2021-04-01T21:53:21.076380Z"}], "thread_id": "Thread-4", "execution_time": 0.03310585021972656, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.not_null_stg_hubspot__contact_list_contact_list_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:21.046493Z", "completed_at": "2021-04-01T21:53:21.076611Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:21.077281Z", "completed_at": "2021-04-01T21:53:21.077292Z"}], "thread_id": "Thread-1", "execution_time": 0.03362727165222168, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.unique_stg_hubspot__contact_list_contact_list_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:21.066107Z", "completed_at": "2021-04-01T21:53:21.077578Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:21.078514Z", "completed_at": "2021-04-01T21:53:21.078522Z"}], "thread_id": "Thread-2", "execution_time": 0.02808403968811035, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.not_null_stg_hubspot__deal_deal_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:21.080036Z", "completed_at": "2021-04-01T21:53:21.105456Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:21.115739Z", "completed_at": "2021-04-01T21:53:21.115754Z"}], "thread_id": "Thread-4", "execution_time": 0.03778409957885742, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.unique_stg_hubspot__deal_deal_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:21.094598Z", "completed_at": "2021-04-01T21:53:21.116189Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:21.116839Z", "completed_at": "2021-04-01T21:53:21.116847Z"}], "thread_id": "Thread-1", "execution_time": 0.03744697570800781, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.not_null_stg_hubspot__deal_pipeline_stage_deal_pipeline_stage_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:21.105362Z", "completed_at": "2021-04-01T21:53:21.117364Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:21.118212Z", "completed_at": "2021-04-01T21:53:21.118219Z"}], "thread_id": "Thread-2", "execution_time": 0.024187803268432617, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.unique_stg_hubspot__deal_pipeline_stage_deal_pipeline_stage_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:21.118683Z", "completed_at": "2021-04-01T21:53:21.148958Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:21.155208Z", "completed_at": "2021-04-01T21:53:21.155224Z"}], "thread_id": "Thread-4", "execution_time": 0.03797101974487305, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.not_null_stg_hubspot__deal_pipeline_deal_pipeline_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:20.952613Z", "completed_at": "2021-04-01T21:53:21.155485Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:21.159862Z", "completed_at": "2021-04-01T21:53:21.159872Z"}], "thread_id": "Thread-3", "execution_time": 0.20880794525146484, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__ticket_property_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:21.137338Z", "completed_at": "2021-04-01T21:53:21.160122Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:21.161399Z", "completed_at": "2021-04-01T21:53:21.161408Z"}], "thread_id": "Thread-1", "execution_time": 0.04369616508483887, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.unique_stg_hubspot__deal_pipeline_deal_pipeline_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:21.148353Z", "completed_at": "2021-04-01T21:53:21.162031Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:21.163129Z", "completed_at": "2021-04-01T21:53:21.163138Z"}], "thread_id": "Thread-2", "execution_time": 0.03678107261657715, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.not_null_stg_hubspot__email_event_click_event_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:21.162966Z", "completed_at": "2021-04-01T21:53:21.190544Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:21.202162Z", "completed_at": "2021-04-01T21:53:21.202175Z"}], "thread_id": "Thread-4", "execution_time": 0.041358232498168945, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.unique_stg_hubspot__email_event_click_event_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:21.174527Z", "completed_at": "2021-04-01T21:53:21.202597Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:21.213960Z", "completed_at": "2021-04-01T21:53:21.213975Z"}], "thread_id": "Thread-3", "execution_time": 0.05211186408996582, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.not_null_stg_hubspot__email_campaign_email_campaign_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:21.190399Z", "completed_at": "2021-04-01T21:53:21.208685Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:21.214731Z", "completed_at": "2021-04-01T21:53:21.214741Z"}], "thread_id": "Thread-1", "execution_time": 0.04206395149230957, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.unique_stg_hubspot__email_campaign_email_campaign_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:21.202499Z", "completed_at": "2021-04-01T21:53:21.216992Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:21.218081Z", "completed_at": "2021-04-01T21:53:21.218090Z"}], "thread_id": "Thread-2", "execution_time": 0.03867387771606445, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.not_null_stg_hubspot__email_event_bounce_event_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:21.217770Z", "completed_at": "2021-04-01T21:53:21.237414Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:21.254088Z", "completed_at": "2021-04-01T21:53:21.254101Z"}], "thread_id": "Thread-4", "execution_time": 0.03907203674316406, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.unique_stg_hubspot__email_event_bounce_event_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:21.229890Z", "completed_at": "2021-04-01T21:53:21.255098Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:21.265630Z", "completed_at": "2021-04-01T21:53:21.265642Z"}], "thread_id": "Thread-3", "execution_time": 0.04863786697387695, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.not_null_stg_hubspot__email_event_event_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:21.230459Z", "completed_at": "2021-04-01T21:53:21.264865Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:21.266106Z", "completed_at": "2021-04-01T21:53:21.266116Z"}], "thread_id": "Thread-1", "execution_time": 0.0386810302734375, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.unique_stg_hubspot__email_event_event_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:21.254670Z", "completed_at": "2021-04-01T21:53:21.267181Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:21.268181Z", "completed_at": "2021-04-01T21:53:21.268189Z"}], "thread_id": "Thread-2", "execution_time": 0.026931047439575195, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.not_null_stg_hubspot__email_event_delivered_event_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:21.267769Z", "completed_at": "2021-04-01T21:53:21.282912Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:21.304536Z", "completed_at": "2021-04-01T21:53:21.304549Z"}], "thread_id": "Thread-4", "execution_time": 0.03892207145690918, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.unique_stg_hubspot__email_event_delivered_event_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:21.281998Z", "completed_at": "2021-04-01T21:53:21.315798Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:21.316968Z", "completed_at": "2021-04-01T21:53:21.316979Z"}], "thread_id": "Thread-3", "execution_time": 0.03866720199584961, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.not_null_stg_hubspot__email_event_deferred_event_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:21.282732Z", "completed_at": "2021-04-01T21:53:21.316542Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:21.317626Z", "completed_at": "2021-04-01T21:53:21.317635Z"}], "thread_id": "Thread-1", "execution_time": 0.03754997253417969, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.unique_stg_hubspot__email_event_deferred_event_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:21.304937Z", "completed_at": "2021-04-01T21:53:21.317862Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:21.318871Z", "completed_at": "2021-04-01T21:53:21.318878Z"}], "thread_id": "Thread-2", "execution_time": 0.036849021911621094, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.not_null_stg_hubspot__email_event_dropped_event_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:21.318427Z", "completed_at": "2021-04-01T21:53:21.333808Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:21.355913Z", "completed_at": "2021-04-01T21:53:21.355925Z"}], "thread_id": "Thread-4", "execution_time": 0.03964090347290039, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.not_null_stg_hubspot__email_event_forward_event_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:21.333395Z", "completed_at": "2021-04-01T21:53:21.420711Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:21.421741Z", "completed_at": "2021-04-01T21:53:21.421754Z"}], "thread_id": "Thread-3", "execution_time": 0.09165501594543457, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.unique_stg_hubspot__email_event_dropped_event_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:21.333617Z", "completed_at": "2021-04-01T21:53:21.421307Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:21.422525Z", "completed_at": "2021-04-01T21:53:21.422534Z"}], "thread_id": "Thread-1", "execution_time": 0.09167003631591797, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.unique_stg_hubspot__email_event_forward_event_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:21.423198Z", "completed_at": "2021-04-01T21:53:21.437532Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:21.459563Z", "completed_at": "2021-04-01T21:53:21.459577Z"}], "thread_id": "Thread-4", "execution_time": 0.03828692436218262, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.unique_stg_hubspot__email_event_open_event_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:21.437226Z", "completed_at": "2021-04-01T21:53:21.460527Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:21.461013Z", "completed_at": "2021-04-01T21:53:21.461022Z"}], "thread_id": "Thread-3", "execution_time": 0.025640010833740234, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.not_null_stg_hubspot__email_event_sent_event_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:21.437406Z", "completed_at": "2021-04-01T21:53:21.461307Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:21.462202Z", "completed_at": "2021-04-01T21:53:21.462209Z"}], "thread_id": "Thread-1", "execution_time": 0.026050090789794922, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.unique_stg_hubspot__email_event_sent_event_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:21.462453Z", "completed_at": "2021-04-01T21:53:21.473728Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:21.484229Z", "completed_at": "2021-04-01T21:53:21.484244Z"}], "thread_id": "Thread-4", "execution_time": 0.025936126708984375, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.not_null_stg_hubspot__email_event_print_event_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:21.473357Z", "completed_at": "2021-04-01T21:53:21.487986Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:21.498100Z", "completed_at": "2021-04-01T21:53:21.498112Z"}], "thread_id": "Thread-3", "execution_time": 0.02678704261779785, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.unique_stg_hubspot__email_event_print_event_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:21.486989Z", "completed_at": "2021-04-01T21:53:21.500130Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:21.510311Z", "completed_at": "2021-04-01T21:53:21.510322Z"}], "thread_id": "Thread-1", "execution_time": 0.037342071533203125, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.not_null_stg_hubspot__email_event_spam_report_event_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:21.499874Z", "completed_at": "2021-04-01T21:53:21.511767Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:21.521748Z", "completed_at": "2021-04-01T21:53:21.521759Z"}], "thread_id": "Thread-4", "execution_time": 0.024029016494750977, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.unique_stg_hubspot__email_event_spam_report_event_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:21.510952Z", "completed_at": "2021-04-01T21:53:21.523440Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:21.534179Z", "completed_at": "2021-04-01T21:53:21.534195Z"}], "thread_id": "Thread-3", "execution_time": 0.02541208267211914, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.not_null_stg_hubspot__email_event_status_change_event_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:21.523053Z", "completed_at": "2021-04-01T21:53:21.535840Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:21.545727Z", "completed_at": "2021-04-01T21:53:21.545739Z"}], "thread_id": "Thread-1", "execution_time": 0.024746179580688477, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.unique_stg_hubspot__email_event_status_change_event_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:21.535650Z", "completed_at": "2021-04-01T21:53:21.547112Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:21.547866Z", "completed_at": "2021-04-01T21:53:21.547874Z"}], "thread_id": "Thread-4", "execution_time": 0.023144960403442383, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.not_null_stg_hubspot__engagement_call_engagement_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:21.547487Z", "completed_at": "2021-04-01T21:53:21.570865Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:21.571150Z", "completed_at": "2021-04-01T21:53:21.571157Z"}], "thread_id": "Thread-3", "execution_time": 0.025182008743286133, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.unique_stg_hubspot__engagement_call_engagement_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:21.564310Z", "completed_at": "2021-04-01T21:53:21.588441Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:21.589172Z", "completed_at": "2021-04-01T21:53:21.589196Z"}], "thread_id": "Thread-4", "execution_time": 0.025839805603027344, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.unique_stg_hubspot__engagement_engagement_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:21.557887Z", "completed_at": "2021-04-01T21:53:21.588905Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:21.589551Z", "completed_at": "2021-04-01T21:53:21.589558Z"}], "thread_id": "Thread-1", "execution_time": 0.03711509704589844, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.not_null_stg_hubspot__engagement_engagement_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:21.571977Z", "completed_at": "2021-04-01T21:53:21.590093Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:21.591192Z", "completed_at": "2021-04-01T21:53:21.591199Z"}], "thread_id": "Thread-3", "execution_time": 0.020231246948242188, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.not_null_stg_hubspot__engagement_meeting_engagement_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:21.592466Z", "completed_at": "2021-04-01T21:53:21.611216Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:21.620276Z", "completed_at": "2021-04-01T21:53:21.620287Z"}], "thread_id": "Thread-4", "execution_time": 0.05297517776489258, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.unique_stg_hubspot__engagement_meeting_engagement_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:21.592817Z", "completed_at": "2021-04-01T21:53:21.611545Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:21.620515Z", "completed_at": "2021-04-01T21:53:21.620522Z"}], "thread_id": "Thread-1", "execution_time": 0.052838802337646484, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.not_null_stg_hubspot__engagement_email_engagement_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:21.610558Z", "completed_at": "2021-04-01T21:53:21.645098Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:21.645979Z", "completed_at": "2021-04-01T21:53:21.645988Z"}], "thread_id": "Thread-3", "execution_time": 0.04518318176269531, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.unique_stg_hubspot__engagement_email_engagement_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:21.356217Z", "completed_at": "2021-04-01T21:53:21.646186Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:21.647182Z", "completed_at": "2021-04-01T21:53:21.647188Z"}], "thread_id": "Thread-2", "execution_time": 0.3137819766998291, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.not_null_stg_hubspot__email_event_open_event_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:21.647417Z", "completed_at": "2021-04-01T21:53:21.671728Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:21.674769Z", "completed_at": "2021-04-01T21:53:21.674777Z"}], "thread_id": "Thread-4", "execution_time": 0.04051995277404785, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.not_null_stg_hubspot__engagement_note_engagement_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:21.647549Z", "completed_at": "2021-04-01T21:53:21.674451Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:21.675098Z", "completed_at": "2021-04-01T21:53:21.675105Z"}], "thread_id": "Thread-1", "execution_time": 0.04223012924194336, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.unique_stg_hubspot__engagement_note_engagement_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:21.665937Z", "completed_at": "2021-04-01T21:53:21.686265Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:21.689044Z", "completed_at": "2021-04-01T21:53:21.689051Z"}], "thread_id": "Thread-3", "execution_time": 0.024565935134887695, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.not_null_stg_hubspot__engagement_task_engagement_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:21.674655Z", "completed_at": "2021-04-01T21:53:21.690401Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:21.691117Z", "completed_at": "2021-04-01T21:53:21.691123Z"}], "thread_id": "Thread-2", "execution_time": 0.03451681137084961, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.unique_stg_hubspot__engagement_task_engagement_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:21.691007Z", "completed_at": "2021-04-01T21:53:21.710310Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:21.710670Z", "completed_at": "2021-04-01T21:53:21.710679Z"}], "thread_id": "Thread-4", "execution_time": 0.020936965942382812, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.not_null_stg_hubspot__ticket_ticket_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-01T21:53:21.691327Z", "completed_at": "2021-04-01T21:53:21.711205Z"}, {"name": "execute", "started_at": "2021-04-01T21:53:21.711441Z", "completed_at": "2021-04-01T21:53:21.711447Z"}], "thread_id": "Thread-1", "execution_time": 0.021093130111694336, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.unique_stg_hubspot__ticket_ticket_id"}], "elapsed_time": 5.40561318397522, "args": {"log_format": "default", "write_json": true, "profiles_dir": "/Users/joseph.markiewicz/.dbt", "target": "bigquery", "use_cache": true, "compile": true, "version_check": true, "which": "generate", "rpc_method": "docs.generate"}} \ No newline at end of file +{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/run-results/v1.json", "dbt_version": "0.19.0", "generated_at": "2021-04-06T15:07:30.169644Z", "invocation_id": "96770ca8-34ed-4397-b376-b40fa34cd6bc", "env": {}}, "results": [{"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:26.722878Z", "completed_at": "2021-04-06T15:07:26.741630Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:26.748282Z", "completed_at": "2021-04-06T15:07:26.748296Z"}], "thread_id": "Thread-1", "execution_time": 0.032807111740112305, "message": null, "adapter_response": {}, "unique_id": "seed.hubspot_source_integration_tests.company_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:26.741496Z", "completed_at": "2021-04-06T15:07:26.754847Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:26.806337Z", "completed_at": "2021-04-06T15:07:26.806349Z"}], "thread_id": "Thread-2", "execution_time": 0.07332372665405273, "message": null, "adapter_response": {}, "unique_id": "seed.hubspot_source_integration_tests.company_property_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:26.742222Z", "completed_at": "2021-04-06T15:07:26.805182Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:26.807141Z", "completed_at": "2021-04-06T15:07:26.807151Z"}], "thread_id": "Thread-3", "execution_time": 0.06774330139160156, "message": null, "adapter_response": {}, "unique_id": "seed.hubspot_source_integration_tests.contact_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:26.748490Z", "completed_at": "2021-04-06T15:07:26.818288Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:26.827682Z", "completed_at": "2021-04-06T15:07:26.827693Z"}], "thread_id": "Thread-4", "execution_time": 0.08684277534484863, "message": null, "adapter_response": {}, "unique_id": "seed.hubspot_source_integration_tests.contact_list_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:26.817698Z", "completed_at": "2021-04-06T15:07:26.828140Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:26.836799Z", "completed_at": "2021-04-06T15:07:26.836810Z"}], "thread_id": "Thread-1", "execution_time": 0.037400007247924805, "message": null, "adapter_response": {}, "unique_id": "seed.hubspot_source_integration_tests.contact_list_member_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:26.827992Z", "completed_at": "2021-04-06T15:07:26.845177Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:26.846498Z", "completed_at": "2021-04-06T15:07:26.846507Z"}], "thread_id": "Thread-2", "execution_time": 0.02924203872680664, "message": null, "adapter_response": {}, "unique_id": "seed.hubspot_source_integration_tests.contact_property_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:26.828419Z", "completed_at": "2021-04-06T15:07:26.845922Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:26.846984Z", "completed_at": "2021-04-06T15:07:26.846993Z"}], "thread_id": "Thread-3", "execution_time": 0.021258115768432617, "message": null, "adapter_response": {}, "unique_id": "seed.hubspot_source_integration_tests.deal_company_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:26.847521Z", "completed_at": "2021-04-06T15:07:26.856319Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:26.864474Z", "completed_at": "2021-04-06T15:07:26.864483Z"}], "thread_id": "Thread-4", "execution_time": 0.01910996437072754, "message": null, "adapter_response": {}, "unique_id": "seed.hubspot_source_integration_tests.deal_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:26.855785Z", "completed_at": "2021-04-06T15:07:26.864831Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:26.871980Z", "completed_at": "2021-04-06T15:07:26.871989Z"}], "thread_id": "Thread-1", "execution_time": 0.031087160110473633, "message": null, "adapter_response": {}, "unique_id": "seed.hubspot_source_integration_tests.deal_pipeline_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:26.864721Z", "completed_at": "2021-04-06T15:07:26.878596Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:26.879953Z", "completed_at": "2021-04-06T15:07:26.879962Z"}], "thread_id": "Thread-2", "execution_time": 0.024686813354492188, "message": null, "adapter_response": {}, "unique_id": "seed.hubspot_source_integration_tests.deal_pipeline_stage_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:26.865058Z", "completed_at": "2021-04-06T15:07:26.879333Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:26.880732Z", "completed_at": "2021-04-06T15:07:26.880740Z"}], "thread_id": "Thread-3", "execution_time": 0.0176699161529541, "message": null, "adapter_response": {}, "unique_id": "seed.hubspot_source_integration_tests.deal_property_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:26.881043Z", "completed_at": "2021-04-06T15:07:26.889035Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:26.896431Z", "completed_at": "2021-04-06T15:07:26.896441Z"}], "thread_id": "Thread-4", "execution_time": 0.017826080322265625, "message": null, "adapter_response": {}, "unique_id": "seed.hubspot_source_integration_tests.deal_stage_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:26.888710Z", "completed_at": "2021-04-06T15:07:26.896874Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:26.903971Z", "completed_at": "2021-04-06T15:07:26.903980Z"}], "thread_id": "Thread-1", "execution_time": 0.029675006866455078, "message": null, "adapter_response": {}, "unique_id": "seed.hubspot_source_integration_tests.email_campaign_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:26.896749Z", "completed_at": "2021-04-06T15:07:26.910530Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:26.911789Z", "completed_at": "2021-04-06T15:07:26.911796Z"}], "thread_id": "Thread-2", "execution_time": 0.023569822311401367, "message": null, "adapter_response": {}, "unique_id": "seed.hubspot_source_integration_tests.email_event_bounce_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:26.897119Z", "completed_at": "2021-04-06T15:07:26.911291Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:26.912317Z", "completed_at": "2021-04-06T15:07:26.912324Z"}], "thread_id": "Thread-3", "execution_time": 0.017455101013183594, "message": null, "adapter_response": {}, "unique_id": "seed.hubspot_source_integration_tests.email_event_click_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:26.912771Z", "completed_at": "2021-04-06T15:07:26.922338Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:26.928803Z", "completed_at": "2021-04-06T15:07:26.928828Z"}], "thread_id": "Thread-4", "execution_time": 0.023432254791259766, "message": null, "adapter_response": {}, "unique_id": "seed.hubspot_source_integration_tests.email_event_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:26.921473Z", "completed_at": "2021-04-06T15:07:26.929081Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:26.935196Z", "completed_at": "2021-04-06T15:07:26.935202Z"}], "thread_id": "Thread-1", "execution_time": 0.028453826904296875, "message": null, "adapter_response": {}, "unique_id": "seed.hubspot_source_integration_tests.email_event_deferred_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:26.928535Z", "completed_at": "2021-04-06T15:07:26.941156Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:26.942160Z", "completed_at": "2021-04-06T15:07:26.942167Z"}], "thread_id": "Thread-2", "execution_time": 0.021105051040649414, "message": null, "adapter_response": {}, "unique_id": "seed.hubspot_source_integration_tests.email_event_delivered_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:26.929271Z", "completed_at": "2021-04-06T15:07:26.941897Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:26.942841Z", "completed_at": "2021-04-06T15:07:26.942847Z"}], "thread_id": "Thread-3", "execution_time": 0.015594959259033203, "message": null, "adapter_response": {}, "unique_id": "seed.hubspot_source_integration_tests.email_event_dropped_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:26.943336Z", "completed_at": "2021-04-06T15:07:26.950388Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:26.956658Z", "completed_at": "2021-04-06T15:07:26.956665Z"}], "thread_id": "Thread-4", "execution_time": 0.021236896514892578, "message": null, "adapter_response": {}, "unique_id": "seed.hubspot_source_integration_tests.email_event_forward_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:26.949709Z", "completed_at": "2021-04-06T15:07:26.956905Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:26.963754Z", "completed_at": "2021-04-06T15:07:26.963760Z"}], "thread_id": "Thread-1", "execution_time": 0.026491880416870117, "message": null, "adapter_response": {}, "unique_id": "seed.hubspot_source_integration_tests.email_event_open_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:26.956538Z", "completed_at": "2021-04-06T15:07:26.969403Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:26.970574Z", "completed_at": "2021-04-06T15:07:26.970580Z"}], "thread_id": "Thread-2", "execution_time": 0.021455764770507812, "message": null, "adapter_response": {}, "unique_id": "seed.hubspot_source_integration_tests.email_event_print_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:26.957162Z", "completed_at": "2021-04-06T15:07:26.970352Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:26.971124Z", "completed_at": "2021-04-06T15:07:26.971130Z"}], "thread_id": "Thread-3", "execution_time": 0.015870332717895508, "message": null, "adapter_response": {}, "unique_id": "seed.hubspot_source_integration_tests.email_event_sent_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:26.971703Z", "completed_at": "2021-04-06T15:07:26.978428Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:26.985130Z", "completed_at": "2021-04-06T15:07:26.985138Z"}], "thread_id": "Thread-4", "execution_time": 0.020529747009277344, "message": null, "adapter_response": {}, "unique_id": "seed.hubspot_source_integration_tests.email_event_spam_report_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:26.977784Z", "completed_at": "2021-04-06T15:07:26.985350Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:26.991447Z", "completed_at": "2021-04-06T15:07:26.991454Z"}], "thread_id": "Thread-1", "execution_time": 0.025568008422851562, "message": null, "adapter_response": {}, "unique_id": "seed.hubspot_source_integration_tests.email_event_status_change_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:26.984996Z", "completed_at": "2021-04-06T15:07:26.996953Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:26.997900Z", "completed_at": "2021-04-06T15:07:26.997906Z"}], "thread_id": "Thread-2", "execution_time": 0.020921945571899414, "message": null, "adapter_response": {}, "unique_id": "seed.hubspot_source_integration_tests.engagement_call_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:26.985556Z", "completed_at": "2021-04-06T15:07:26.997640Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:26.998491Z", "completed_at": "2021-04-06T15:07:26.998497Z"}], "thread_id": "Thread-3", "execution_time": 0.014798879623413086, "message": null, "adapter_response": {}, "unique_id": "seed.hubspot_source_integration_tests.engagement_company_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:26.999107Z", "completed_at": "2021-04-06T15:07:27.005809Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:27.012708Z", "completed_at": "2021-04-06T15:07:27.012715Z"}], "thread_id": "Thread-4", "execution_time": 0.020303964614868164, "message": null, "adapter_response": {}, "unique_id": "seed.hubspot_source_integration_tests.engagement_contact_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:27.005234Z", "completed_at": "2021-04-06T15:07:27.013036Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:27.023691Z", "completed_at": "2021-04-06T15:07:27.023698Z"}], "thread_id": "Thread-1", "execution_time": 0.025553226470947266, "message": null, "adapter_response": {}, "unique_id": "seed.hubspot_source_integration_tests.engagement_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:27.012607Z", "completed_at": "2021-04-06T15:07:27.023906Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:27.024901Z", "completed_at": "2021-04-06T15:07:27.024907Z"}], "thread_id": "Thread-2", "execution_time": 0.02028799057006836, "message": null, "adapter_response": {}, "unique_id": "seed.hubspot_source_integration_tests.engagement_deal_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:27.012947Z", "completed_at": "2021-04-06T15:07:27.024363Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:27.025333Z", "completed_at": "2021-04-06T15:07:27.025339Z"}], "thread_id": "Thread-3", "execution_time": 0.015031099319458008, "message": null, "adapter_response": {}, "unique_id": "seed.hubspot_source_integration_tests.engagement_email_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:27.026268Z", "completed_at": "2021-04-06T15:07:27.034301Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:27.040532Z", "completed_at": "2021-04-06T15:07:27.040541Z"}], "thread_id": "Thread-4", "execution_time": 0.027025222778320312, "message": null, "adapter_response": {}, "unique_id": "seed.hubspot_source_integration_tests.engagement_meeting_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:27.033696Z", "completed_at": "2021-04-06T15:07:27.040815Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:27.052289Z", "completed_at": "2021-04-06T15:07:27.052297Z"}], "thread_id": "Thread-1", "execution_time": 0.026453018188476562, "message": null, "adapter_response": {}, "unique_id": "seed.hubspot_source_integration_tests.engagement_note_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:27.040171Z", "completed_at": "2021-04-06T15:07:27.052507Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:27.053585Z", "completed_at": "2021-04-06T15:07:27.053590Z"}], "thread_id": "Thread-3", "execution_time": 0.020615816116333008, "message": null, "adapter_response": {}, "unique_id": "seed.hubspot_source_integration_tests.owner_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:27.039858Z", "completed_at": "2021-04-06T15:07:27.052704Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:27.053807Z", "completed_at": "2021-04-06T15:07:27.053814Z"}], "thread_id": "Thread-2", "execution_time": 0.021136045455932617, "message": null, "adapter_response": {}, "unique_id": "seed.hubspot_source_integration_tests.engagement_task_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:27.055113Z", "completed_at": "2021-04-06T15:07:27.063257Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:27.069843Z", "completed_at": "2021-04-06T15:07:27.069851Z"}], "thread_id": "Thread-4", "execution_time": 0.02777385711669922, "message": null, "adapter_response": {}, "unique_id": "seed.hubspot_source_integration_tests.ticket_company_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:27.062582Z", "completed_at": "2021-04-06T15:07:27.075654Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:27.082071Z", "completed_at": "2021-04-06T15:07:27.082077Z"}], "thread_id": "Thread-1", "execution_time": 0.027720928192138672, "message": null, "adapter_response": {}, "unique_id": "seed.hubspot_source_integration_tests.ticket_contact_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:27.068595Z", "completed_at": "2021-04-06T15:07:27.082272Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:27.083261Z", "completed_at": "2021-04-06T15:07:27.083267Z"}], "thread_id": "Thread-3", "execution_time": 0.021439075469970703, "message": null, "adapter_response": {}, "unique_id": "seed.hubspot_source_integration_tests.ticket_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:27.069727Z", "completed_at": "2021-04-06T15:07:27.082458Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:27.083483Z", "completed_at": "2021-04-06T15:07:27.083488Z"}], "thread_id": "Thread-2", "execution_time": 0.02160048484802246, "message": null, "adapter_response": {}, "unique_id": "seed.hubspot_source_integration_tests.ticket_deal_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:27.084800Z", "completed_at": "2021-04-06T15:07:27.092149Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:27.098165Z", "completed_at": "2021-04-06T15:07:27.098173Z"}], "thread_id": "Thread-4", "execution_time": 0.02715277671813965, "message": null, "adapter_response": {}, "unique_id": "seed.hubspot_source_integration_tests.ticket_engagement_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:27.091565Z", "completed_at": "2021-04-06T15:07:27.103734Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:27.111167Z", "completed_at": "2021-04-06T15:07:27.111174Z"}], "thread_id": "Thread-1", "execution_time": 0.027203083038330078, "message": null, "adapter_response": {}, "unique_id": "seed.hubspot_source_integration_tests.ticket_pipeline_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:27.097877Z", "completed_at": "2021-04-06T15:07:27.110963Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:27.111674Z", "completed_at": "2021-04-06T15:07:27.111680Z"}], "thread_id": "Thread-3", "execution_time": 0.02115917205810547, "message": null, "adapter_response": {}, "unique_id": "seed.hubspot_source_integration_tests.ticket_pipeline_stage_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:27.098065Z", "completed_at": "2021-04-06T15:07:27.111358Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:27.112311Z", "completed_at": "2021-04-06T15:07:27.112317Z"}], "thread_id": "Thread-2", "execution_time": 0.02150702476501465, "message": null, "adapter_response": {}, "unique_id": "seed.hubspot_source_integration_tests.ticket_property_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:27.113584Z", "completed_at": "2021-04-06T15:07:27.144635Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:27.152372Z", "completed_at": "2021-04-06T15:07:27.152382Z"}], "thread_id": "Thread-4", "execution_time": 0.04322981834411621, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__company_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:27.128718Z", "completed_at": "2021-04-06T15:07:27.155941Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:27.156469Z", "completed_at": "2021-04-06T15:07:27.156490Z"}], "thread_id": "Thread-1", "execution_time": 0.043940067291259766, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__company_property_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:27.129257Z", "completed_at": "2021-04-06T15:07:27.156692Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:27.158095Z", "completed_at": "2021-04-06T15:07:27.158102Z"}], "thread_id": "Thread-3", "execution_time": 0.030379772186279297, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__contact_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:27.138155Z", "completed_at": "2021-04-06T15:07:27.157147Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:27.158323Z", "completed_at": "2021-04-06T15:07:27.158329Z"}], "thread_id": "Thread-2", "execution_time": 0.030287981033325195, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__contact_list_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:27.158522Z", "completed_at": "2021-04-06T15:07:27.168724Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:27.177109Z", "completed_at": "2021-04-06T15:07:27.177117Z"}], "thread_id": "Thread-4", "execution_time": 0.03652477264404297, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__contact_list_member_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:27.168057Z", "completed_at": "2021-04-06T15:07:27.194179Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:27.195196Z", "completed_at": "2021-04-06T15:07:27.195219Z"}], "thread_id": "Thread-1", "execution_time": 0.028995990753173828, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__contact_property_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:27.176955Z", "completed_at": "2021-04-06T15:07:27.195398Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:27.196402Z", "completed_at": "2021-04-06T15:07:27.196408Z"}], "thread_id": "Thread-2", "execution_time": 0.02863311767578125, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__deal_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:27.174070Z", "completed_at": "2021-04-06T15:07:27.195623Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:27.196650Z", "completed_at": "2021-04-06T15:07:27.196656Z"}], "thread_id": "Thread-3", "execution_time": 0.029265165328979492, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__deal_company_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:27.196843Z", "completed_at": "2021-04-06T15:07:27.206695Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:27.215218Z", "completed_at": "2021-04-06T15:07:27.215225Z"}], "thread_id": "Thread-4", "execution_time": 0.01997995376586914, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__deal_pipeline_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:27.206529Z", "completed_at": "2021-04-06T15:07:27.216092Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:27.232312Z", "completed_at": "2021-04-06T15:07:27.232320Z"}], "thread_id": "Thread-1", "execution_time": 0.027678966522216797, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__deal_pipeline_stage_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:27.215424Z", "completed_at": "2021-04-06T15:07:27.233357Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:27.234038Z", "completed_at": "2021-04-06T15:07:27.234044Z"}], "thread_id": "Thread-2", "execution_time": 0.0370488166809082, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__deal_property_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:27.215520Z", "completed_at": "2021-04-06T15:07:27.233700Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:27.239665Z", "completed_at": "2021-04-06T15:07:27.239672Z"}], "thread_id": "Thread-3", "execution_time": 0.03706502914428711, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__deal_stage_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:27.233623Z", "completed_at": "2021-04-06T15:07:27.244706Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:27.253559Z", "completed_at": "2021-04-06T15:07:27.253567Z"}], "thread_id": "Thread-4", "execution_time": 0.021560192108154297, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__email_campaign_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:27.244377Z", "completed_at": "2021-04-06T15:07:27.254545Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:27.272771Z", "completed_at": "2021-04-06T15:07:27.272779Z"}], "thread_id": "Thread-1", "execution_time": 0.030285120010375977, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__email_event_bounce_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:27.254097Z", "completed_at": "2021-04-06T15:07:27.274069Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:27.275327Z", "completed_at": "2021-04-06T15:07:27.275348Z"}], "thread_id": "Thread-2", "execution_time": 0.032378196716308594, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__email_event_click_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:27.254482Z", "completed_at": "2021-04-06T15:07:27.274837Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:27.285081Z", "completed_at": "2021-04-06T15:07:27.285089Z"}], "thread_id": "Thread-3", "execution_time": 0.03226804733276367, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__email_event_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:27.274622Z", "completed_at": "2021-04-06T15:07:27.286324Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:27.295898Z", "completed_at": "2021-04-06T15:07:27.295906Z"}], "thread_id": "Thread-4", "execution_time": 0.023946046829223633, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__email_event_deferred_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:27.286247Z", "completed_at": "2021-04-06T15:07:27.318083Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:27.319102Z", "completed_at": "2021-04-06T15:07:27.319112Z"}], "thread_id": "Thread-1", "execution_time": 0.03538012504577637, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__email_event_delivered_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:27.297219Z", "completed_at": "2021-04-06T15:07:27.319916Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:27.330592Z", "completed_at": "2021-04-06T15:07:27.330627Z"}], "thread_id": "Thread-2", "execution_time": 0.03655719757080078, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__email_event_dropped_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:27.297362Z", "completed_at": "2021-04-06T15:07:27.320892Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:27.331759Z", "completed_at": "2021-04-06T15:07:27.331789Z"}], "thread_id": "Thread-3", "execution_time": 0.03706693649291992, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__email_event_forward_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:27.319691Z", "completed_at": "2021-04-06T15:07:27.333947Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:27.335745Z", "completed_at": "2021-04-06T15:07:27.335760Z"}], "thread_id": "Thread-4", "execution_time": 0.03660082817077637, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__email_event_open_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:27.334618Z", "completed_at": "2021-04-06T15:07:27.368581Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:27.379434Z", "completed_at": "2021-04-06T15:07:27.379446Z"}], "thread_id": "Thread-1", "execution_time": 0.047292232513427734, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__email_event_print_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:27.355188Z", "completed_at": "2021-04-06T15:07:27.386433Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:27.393798Z", "completed_at": "2021-04-06T15:07:27.393813Z"}], "thread_id": "Thread-2", "execution_time": 0.05894613265991211, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__email_event_sent_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:27.355358Z", "completed_at": "2021-04-06T15:07:27.386734Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:27.394270Z", "completed_at": "2021-04-06T15:07:27.394278Z"}], "thread_id": "Thread-3", "execution_time": 0.04819297790527344, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__email_event_spam_report_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:27.379994Z", "completed_at": "2021-04-06T15:07:27.396067Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:27.402977Z", "completed_at": "2021-04-06T15:07:27.402989Z"}], "thread_id": "Thread-4", "execution_time": 0.029143095016479492, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__email_event_status_change_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:27.395891Z", "completed_at": "2021-04-06T15:07:27.414769Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:27.431924Z", "completed_at": "2021-04-06T15:07:27.431938Z"}], "thread_id": "Thread-1", "execution_time": 0.03864908218383789, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__engagement_call_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:27.408519Z", "completed_at": "2021-04-06T15:07:27.433449Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:27.447093Z", "completed_at": "2021-04-06T15:07:27.447100Z"}], "thread_id": "Thread-2", "execution_time": 0.04069995880126953, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__engagement_company_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:27.408674Z", "completed_at": "2021-04-06T15:07:27.445560Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:27.447413Z", "completed_at": "2021-04-06T15:07:27.447418Z"}], "thread_id": "Thread-3", "execution_time": 0.040869951248168945, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__engagement_contact_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:27.432769Z", "completed_at": "2021-04-06T15:07:27.448823Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:27.449696Z", "completed_at": "2021-04-06T15:07:27.449701Z"}], "thread_id": "Thread-4", "execution_time": 0.027693986892700195, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__engagement_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:27.449033Z", "completed_at": "2021-04-06T15:07:27.459769Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:27.476883Z", "completed_at": "2021-04-06T15:07:27.476892Z"}], "thread_id": "Thread-1", "execution_time": 0.029908180236816406, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__engagement_deal_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:27.459361Z", "completed_at": "2021-04-06T15:07:27.477853Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:27.492939Z", "completed_at": "2021-04-06T15:07:27.492958Z"}], "thread_id": "Thread-2", "execution_time": 0.0360109806060791, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__engagement_email_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:27.459528Z", "completed_at": "2021-04-06T15:07:27.483152Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:27.493591Z", "completed_at": "2021-04-06T15:07:27.493599Z"}], "thread_id": "Thread-3", "execution_time": 0.03633403778076172, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__engagement_meeting_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:27.477333Z", "completed_at": "2021-04-06T15:07:27.495574Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:27.505420Z", "completed_at": "2021-04-06T15:07:27.505429Z"}], "thread_id": "Thread-4", "execution_time": 0.029778003692626953, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__engagement_note_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:27.495341Z", "completed_at": "2021-04-06T15:07:27.506803Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:27.525476Z", "completed_at": "2021-04-06T15:07:27.525486Z"}], "thread_id": "Thread-1", "execution_time": 0.03254508972167969, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__owner_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:27.506562Z", "completed_at": "2021-04-06T15:07:27.526676Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:27.538284Z", "completed_at": "2021-04-06T15:07:27.538300Z"}], "thread_id": "Thread-2", "execution_time": 0.03639626502990723, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__engagement_task_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:27.506724Z", "completed_at": "2021-04-06T15:07:27.526908Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:27.540746Z", "completed_at": "2021-04-06T15:07:27.540762Z"}], "thread_id": "Thread-3", "execution_time": 0.03670191764831543, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__ticket_company_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:27.526596Z", "completed_at": "2021-04-06T15:07:27.543589Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:27.553050Z", "completed_at": "2021-04-06T15:07:27.553060Z"}], "thread_id": "Thread-4", "execution_time": 0.02808976173400879, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__ticket_contact_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:27.542849Z", "completed_at": "2021-04-06T15:07:27.572569Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:27.574437Z", "completed_at": "2021-04-06T15:07:27.574465Z"}], "thread_id": "Thread-1", "execution_time": 0.03442215919494629, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__ticket_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:27.553480Z", "completed_at": "2021-04-06T15:07:27.574671Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:27.575916Z", "completed_at": "2021-04-06T15:07:27.575923Z"}], "thread_id": "Thread-3", "execution_time": 0.034980058670043945, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__ticket_engagement_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:27.553271Z", "completed_at": "2021-04-06T15:07:27.574990Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:27.576292Z", "completed_at": "2021-04-06T15:07:27.576299Z"}], "thread_id": "Thread-2", "execution_time": 0.03807497024536133, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__ticket_deal_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:27.575353Z", "completed_at": "2021-04-06T15:07:27.589912Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:27.591692Z", "completed_at": "2021-04-06T15:07:27.591703Z"}], "thread_id": "Thread-4", "execution_time": 0.027486085891723633, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__ticket_pipeline_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:27.590569Z", "completed_at": "2021-04-06T15:07:27.626129Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:27.627171Z", "completed_at": "2021-04-06T15:07:27.627179Z"}], "thread_id": "Thread-1", "execution_time": 0.03979206085205078, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__ticket_pipeline_stage_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:27.600753Z", "completed_at": "2021-04-06T15:07:27.627353Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:27.628771Z", "completed_at": "2021-04-06T15:07:27.628778Z"}], "thread_id": "Thread-3", "execution_time": 0.05397295951843262, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__ticket_property_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:27.600865Z", "completed_at": "2021-04-06T15:07:27.796857Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:27.797085Z", "completed_at": "2021-04-06T15:07:27.797095Z"}], "thread_id": "Thread-2", "execution_time": 0.20607423782348633, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__company"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:27.661607Z", "completed_at": "2021-04-06T15:07:27.825046Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:27.825429Z", "completed_at": "2021-04-06T15:07:27.825439Z"}], "thread_id": "Thread-3", "execution_time": 0.1787557601928711, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__contact_list"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:27.627883Z", "completed_at": "2021-04-06T15:07:27.838897Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:27.843406Z", "completed_at": "2021-04-06T15:07:27.843417Z"}], "thread_id": "Thread-4", "execution_time": 0.21749520301818848, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__company_property_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:27.646013Z", "completed_at": "2021-04-06T15:07:27.842949Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:27.844043Z", "completed_at": "2021-04-06T15:07:27.844051Z"}], "thread_id": "Thread-1", "execution_time": 0.19986772537231445, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__contact"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:27.797965Z", "completed_at": "2021-04-06T15:07:27.980710Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:27.980943Z", "completed_at": "2021-04-06T15:07:27.980953Z"}], "thread_id": "Thread-2", "execution_time": 0.18354392051696777, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__contact_list_member"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:27.826282Z", "completed_at": "2021-04-06T15:07:28.001170Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:28.001406Z", "completed_at": "2021-04-06T15:07:28.001438Z"}], "thread_id": "Thread-3", "execution_time": 0.17577123641967773, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__contact_property_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:27.848494Z", "completed_at": "2021-04-06T15:07:28.007852Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:28.015017Z", "completed_at": "2021-04-06T15:07:28.015025Z"}], "thread_id": "Thread-1", "execution_time": 0.16785097122192383, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__deal_company"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:27.848151Z", "completed_at": "2021-04-06T15:07:28.045887Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:28.046158Z", "completed_at": "2021-04-06T15:07:28.046169Z"}], "thread_id": "Thread-4", "execution_time": 0.19975614547729492, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__deal"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:27.981760Z", "completed_at": "2021-04-06T15:07:28.171648Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:28.171904Z", "completed_at": "2021-04-06T15:07:28.171914Z"}], "thread_id": "Thread-2", "execution_time": 0.19071483612060547, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__deal_pipeline"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:28.019005Z", "completed_at": "2021-04-06T15:07:28.205011Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:28.205817Z", "completed_at": "2021-04-06T15:07:28.205828Z"}], "thread_id": "Thread-1", "execution_time": 0.18813514709472656, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__deal_property_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:28.002269Z", "completed_at": "2021-04-06T15:07:28.205544Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:28.206136Z", "completed_at": "2021-04-06T15:07:28.206145Z"}], "thread_id": "Thread-3", "execution_time": 0.20491600036621094, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__deal_pipeline_stage"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:28.047186Z", "completed_at": "2021-04-06T15:07:28.206331Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:28.207121Z", "completed_at": "2021-04-06T15:07:28.207127Z"}], "thread_id": "Thread-4", "execution_time": 0.1614210605621338, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__deal_stage"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:28.172752Z", "completed_at": "2021-04-06T15:07:28.359556Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:28.359791Z", "completed_at": "2021-04-06T15:07:28.359801Z"}], "thread_id": "Thread-2", "execution_time": 0.1876051425933838, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__email_campaign"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:28.209337Z", "completed_at": "2021-04-06T15:07:28.380506Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:28.380732Z", "completed_at": "2021-04-06T15:07:28.380776Z"}], "thread_id": "Thread-1", "execution_time": 0.1728346347808838, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__email_event_bounce"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:28.209451Z", "completed_at": "2021-04-06T15:07:28.456541Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:28.457329Z", "completed_at": "2021-04-06T15:07:28.457343Z"}], "thread_id": "Thread-3", "execution_time": 0.2491140365600586, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__email_event_click"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:28.220103Z", "completed_at": "2021-04-06T15:07:28.498014Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:28.498299Z", "completed_at": "2021-04-06T15:07:28.498310Z"}], "thread_id": "Thread-4", "execution_time": 0.2896242141723633, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__email_event"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:28.360814Z", "completed_at": "2021-04-06T15:07:28.573500Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:28.573728Z", "completed_at": "2021-04-06T15:07:28.573737Z"}], "thread_id": "Thread-2", "execution_time": 0.21349310874938965, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__email_event_deferred"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:28.461629Z", "completed_at": "2021-04-06T15:07:28.614333Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:28.614555Z", "completed_at": "2021-04-06T15:07:28.614565Z"}], "thread_id": "Thread-3", "execution_time": 0.15408110618591309, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__email_event_dropped"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:28.383015Z", "completed_at": "2021-04-06T15:07:28.633272Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:28.634318Z", "completed_at": "2021-04-06T15:07:28.634343Z"}], "thread_id": "Thread-1", "execution_time": 0.25273895263671875, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__email_event_delivered"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:28.499734Z", "completed_at": "2021-04-06T15:07:28.656979Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:28.657256Z", "completed_at": "2021-04-06T15:07:28.657266Z"}], "thread_id": "Thread-4", "execution_time": 0.15810608863830566, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__email_event_forward"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:28.574521Z", "completed_at": "2021-04-06T15:07:28.734484Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:28.734709Z", "completed_at": "2021-04-06T15:07:28.734719Z"}], "thread_id": "Thread-2", "execution_time": 0.16073322296142578, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__email_event_open"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:28.658455Z", "completed_at": "2021-04-06T15:07:28.793844Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:28.794541Z", "completed_at": "2021-04-06T15:07:28.794551Z"}], "thread_id": "Thread-4", "execution_time": 0.1373729705810547, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__email_event_spam_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:28.636596Z", "completed_at": "2021-04-06T15:07:28.794312Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:28.795002Z", "completed_at": "2021-04-06T15:07:28.795010Z"}], "thread_id": "Thread-1", "execution_time": 0.16004204750061035, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__email_event_sent"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:28.615342Z", "completed_at": "2021-04-06T15:07:28.859693Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:28.860057Z", "completed_at": "2021-04-06T15:07:28.860092Z"}], "thread_id": "Thread-3", "execution_time": 0.2457869052886963, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__email_event_print"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:28.735501Z", "completed_at": "2021-04-06T15:07:28.887538Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:28.887949Z", "completed_at": "2021-04-06T15:07:28.887959Z"}], "thread_id": "Thread-2", "execution_time": 0.15302801132202148, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__email_event_status_change"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:28.798916Z", "completed_at": "2021-04-06T15:07:28.969305Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:28.969530Z", "completed_at": "2021-04-06T15:07:28.969539Z"}], "thread_id": "Thread-1", "execution_time": 0.17214512825012207, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__engagement_company"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:28.862242Z", "completed_at": "2021-04-06T15:07:28.993233Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:28.993475Z", "completed_at": "2021-04-06T15:07:28.993484Z"}], "thread_id": "Thread-3", "execution_time": 0.1320359706878662, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__engagement_contact"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:28.798772Z", "completed_at": "2021-04-06T15:07:29.016855Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:29.017365Z", "completed_at": "2021-04-06T15:07:29.017420Z"}], "thread_id": "Thread-4", "execution_time": 0.22029995918273926, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__engagement_call"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:28.889338Z", "completed_at": "2021-04-06T15:07:29.056550Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:29.056789Z", "completed_at": "2021-04-06T15:07:29.056799Z"}], "thread_id": "Thread-2", "execution_time": 0.16818904876708984, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__engagement"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:28.970848Z", "completed_at": "2021-04-06T15:07:29.122587Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:29.123000Z", "completed_at": "2021-04-06T15:07:29.123009Z"}], "thread_id": "Thread-1", "execution_time": 0.15299105644226074, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__engagement_deal"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:29.018886Z", "completed_at": "2021-04-06T15:07:29.177036Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:29.177287Z", "completed_at": "2021-04-06T15:07:29.177297Z"}], "thread_id": "Thread-4", "execution_time": 0.159621000289917, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__engagement_meeting"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:28.994483Z", "completed_at": "2021-04-06T15:07:29.195808Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:29.204094Z", "completed_at": "2021-04-06T15:07:29.204106Z"}], "thread_id": "Thread-3", "execution_time": 0.21063613891601562, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__engagement_email"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:29.057598Z", "completed_at": "2021-04-06T15:07:29.204797Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:29.205987Z", "completed_at": "2021-04-06T15:07:29.205993Z"}], "thread_id": "Thread-2", "execution_time": 0.1497809886932373, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__engagement_note"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:29.124051Z", "completed_at": "2021-04-06T15:07:29.284334Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:29.284650Z", "completed_at": "2021-04-06T15:07:29.284666Z"}], "thread_id": "Thread-1", "execution_time": 0.16136813163757324, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__owner"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:29.207529Z", "completed_at": "2021-04-06T15:07:29.346136Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:29.346424Z", "completed_at": "2021-04-06T15:07:29.346435Z"}], "thread_id": "Thread-3", "execution_time": 0.14028286933898926, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__ticket_company"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:29.219186Z", "completed_at": "2021-04-06T15:07:29.368693Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:29.368920Z", "completed_at": "2021-04-06T15:07:29.368928Z"}], "thread_id": "Thread-2", "execution_time": 0.15045714378356934, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__ticket_contact"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:29.187334Z", "completed_at": "2021-04-06T15:07:29.374634Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:29.374971Z", "completed_at": "2021-04-06T15:07:29.374979Z"}], "thread_id": "Thread-4", "execution_time": 0.1973268985748291, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__engagement_task"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:29.286049Z", "completed_at": "2021-04-06T15:07:29.444994Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:29.445673Z", "completed_at": "2021-04-06T15:07:29.445683Z"}], "thread_id": "Thread-1", "execution_time": 0.16037702560424805, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__ticket"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:29.369695Z", "completed_at": "2021-04-06T15:07:29.501650Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:29.502077Z", "completed_at": "2021-04-06T15:07:29.502087Z"}], "thread_id": "Thread-2", "execution_time": 0.13312935829162598, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__ticket_deal"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:29.347380Z", "completed_at": "2021-04-06T15:07:29.501877Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:29.502284Z", "completed_at": "2021-04-06T15:07:29.502290Z"}], "thread_id": "Thread-3", "execution_time": 0.15574908256530762, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__ticket_engagement"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:29.503936Z", "completed_at": "2021-04-06T15:07:29.530087Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:29.532315Z", "completed_at": "2021-04-06T15:07:29.532342Z"}], "thread_id": "Thread-3", "execution_time": 0.02937602996826172, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.not_null_stg_hubspot__company_company_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:29.533772Z", "completed_at": "2021-04-06T15:07:29.544969Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:29.545217Z", "completed_at": "2021-04-06T15:07:29.545227Z"}], "thread_id": "Thread-3", "execution_time": 0.011997222900390625, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.unique_stg_hubspot__company_company_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:29.385410Z", "completed_at": "2021-04-06T15:07:29.557909Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:29.558139Z", "completed_at": "2021-04-06T15:07:29.558147Z"}], "thread_id": "Thread-4", "execution_time": 0.17442107200622559, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__ticket_pipeline"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:29.549831Z", "completed_at": "2021-04-06T15:07:29.567506Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:29.567763Z", "completed_at": "2021-04-06T15:07:29.567788Z"}], "thread_id": "Thread-3", "execution_time": 0.022016048431396484, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.not_null_stg_hubspot__contact_list_contact_list_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:29.559028Z", "completed_at": "2021-04-06T15:07:29.568381Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:29.569096Z", "completed_at": "2021-04-06T15:07:29.569103Z"}], "thread_id": "Thread-4", "execution_time": 0.010766029357910156, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.unique_stg_hubspot__contact_list_contact_list_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:29.569312Z", "completed_at": "2021-04-06T15:07:29.584406Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:29.588192Z", "completed_at": "2021-04-06T15:07:29.588251Z"}], "thread_id": "Thread-3", "execution_time": 0.023554086685180664, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.not_null_stg_hubspot__contact_contact_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:29.578250Z", "completed_at": "2021-04-06T15:07:29.592978Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:29.593512Z", "completed_at": "2021-04-06T15:07:29.593518Z"}], "thread_id": "Thread-4", "execution_time": 0.016389131546020508, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.unique_stg_hubspot__contact_contact_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:29.446491Z", "completed_at": "2021-04-06T15:07:29.593752Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:29.594653Z", "completed_at": "2021-04-06T15:07:29.594659Z"}], "thread_id": "Thread-1", "execution_time": 0.14927005767822266, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__ticket_pipeline_stage"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:29.594962Z", "completed_at": "2021-04-06T15:07:29.611914Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:29.614593Z", "completed_at": "2021-04-06T15:07:29.614601Z"}], "thread_id": "Thread-3", "execution_time": 0.02876901626586914, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.not_null_stg_hubspot__deal_deal_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:29.605981Z", "completed_at": "2021-04-06T15:07:29.632012Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:29.632346Z", "completed_at": "2021-04-06T15:07:29.632353Z"}], "thread_id": "Thread-4", "execution_time": 0.027294158935546875, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.unique_stg_hubspot__deal_deal_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:29.612242Z", "completed_at": "2021-04-06T15:07:29.633639Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:29.634760Z", "completed_at": "2021-04-06T15:07:29.634786Z"}], "thread_id": "Thread-1", "execution_time": 0.029571056365966797, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.not_null_stg_hubspot__deal_pipeline_deal_pipeline_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:29.623538Z", "completed_at": "2021-04-06T15:07:29.634485Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:29.635275Z", "completed_at": "2021-04-06T15:07:29.635302Z"}], "thread_id": "Thread-3", "execution_time": 0.022547006607055664, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.unique_stg_hubspot__deal_pipeline_deal_pipeline_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:29.635113Z", "completed_at": "2021-04-06T15:07:29.647772Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:29.648230Z", "completed_at": "2021-04-06T15:07:29.648238Z"}], "thread_id": "Thread-4", "execution_time": 0.026112079620361328, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.not_null_stg_hubspot__deal_pipeline_stage_deal_pipeline_stage_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:29.648010Z", "completed_at": "2021-04-06T15:07:29.678415Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:29.679445Z", "completed_at": "2021-04-06T15:07:29.679454Z"}], "thread_id": "Thread-1", "execution_time": 0.033358097076416016, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.unique_stg_hubspot__deal_pipeline_stage_deal_pipeline_stage_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:29.648128Z", "completed_at": "2021-04-06T15:07:29.678766Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:29.679888Z", "completed_at": "2021-04-06T15:07:29.679894Z"}], "thread_id": "Thread-3", "execution_time": 0.03349113464355469, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.not_null_stg_hubspot__email_campaign_email_campaign_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:29.660726Z", "completed_at": "2021-04-06T15:07:29.679065Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:29.680091Z", "completed_at": "2021-04-06T15:07:29.680097Z"}], "thread_id": "Thread-4", "execution_time": 0.020885944366455078, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.unique_stg_hubspot__email_campaign_email_campaign_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:29.503825Z", "completed_at": "2021-04-06T15:07:29.679695Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:29.680552Z", "completed_at": "2021-04-06T15:07:29.680558Z"}], "thread_id": "Thread-2", "execution_time": 0.1789989471435547, "message": null, "adapter_response": {}, "unique_id": "model.hubspot_source.stg_hubspot__ticket_property_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:29.684736Z", "completed_at": "2021-04-06T15:07:29.720713Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:29.721365Z", "completed_at": "2021-04-06T15:07:29.721375Z"}], "thread_id": "Thread-1", "execution_time": 0.039224863052368164, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.not_null_stg_hubspot__email_event_bounce_event_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:29.685213Z", "completed_at": "2021-04-06T15:07:29.720918Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:29.722133Z", "completed_at": "2021-04-06T15:07:29.722139Z"}], "thread_id": "Thread-3", "execution_time": 0.039385080337524414, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.unique_stg_hubspot__email_event_bounce_event_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:29.695902Z", "completed_at": "2021-04-06T15:07:29.721685Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:29.722618Z", "completed_at": "2021-04-06T15:07:29.722652Z"}], "thread_id": "Thread-2", "execution_time": 0.03918313980102539, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.unique_stg_hubspot__email_event_click_event_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:29.685352Z", "completed_at": "2021-04-06T15:07:29.721951Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:29.722880Z", "completed_at": "2021-04-06T15:07:29.722886Z"}], "thread_id": "Thread-4", "execution_time": 0.040023088455200195, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.not_null_stg_hubspot__email_event_click_event_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:29.725637Z", "completed_at": "2021-04-06T15:07:29.761781Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:29.762268Z", "completed_at": "2021-04-06T15:07:29.762278Z"}], "thread_id": "Thread-1", "execution_time": 0.03782820701599121, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.not_null_stg_hubspot__email_event_event_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:29.726194Z", "completed_at": "2021-04-06T15:07:29.771199Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:29.771432Z", "completed_at": "2021-04-06T15:07:29.771440Z"}], "thread_id": "Thread-3", "execution_time": 0.04639101028442383, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.unique_stg_hubspot__email_event_event_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:29.735525Z", "completed_at": "2021-04-06T15:07:29.777486Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:29.777718Z", "completed_at": "2021-04-06T15:07:29.777725Z"}], "thread_id": "Thread-2", "execution_time": 0.0522770881652832, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.not_null_stg_hubspot__email_event_deferred_event_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:29.763472Z", "completed_at": "2021-04-06T15:07:29.791476Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:29.792953Z", "completed_at": "2021-04-06T15:07:29.792979Z"}], "thread_id": "Thread-1", "execution_time": 0.0313420295715332, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.not_null_stg_hubspot__email_event_dropped_event_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:29.735845Z", "completed_at": "2021-04-06T15:07:29.791949Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:29.793568Z", "completed_at": "2021-04-06T15:07:29.793575Z"}], "thread_id": "Thread-4", "execution_time": 0.06875205039978027, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.unique_stg_hubspot__email_event_deferred_event_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:29.778496Z", "completed_at": "2021-04-06T15:07:29.793308Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:29.794371Z", "completed_at": "2021-04-06T15:07:29.794378Z"}], "thread_id": "Thread-2", "execution_time": 0.01716780662536621, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.not_null_stg_hubspot__email_event_delivered_event_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:29.772255Z", "completed_at": "2021-04-06T15:07:29.793775Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:29.794876Z", "completed_at": "2021-04-06T15:07:29.794883Z"}], "thread_id": "Thread-3", "execution_time": 0.02396225929260254, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.unique_stg_hubspot__email_event_dropped_event_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:29.796946Z", "completed_at": "2021-04-06T15:07:29.874223Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:29.874761Z", "completed_at": "2021-04-06T15:07:29.874774Z"}], "thread_id": "Thread-1", "execution_time": 0.07920002937316895, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.unique_stg_hubspot__email_event_delivered_event_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:29.797288Z", "completed_at": "2021-04-06T15:07:29.875510Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:29.876373Z", "completed_at": "2021-04-06T15:07:29.876382Z"}], "thread_id": "Thread-4", "execution_time": 0.0809178352355957, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.not_null_stg_hubspot__email_event_forward_event_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:29.811610Z", "completed_at": "2021-04-06T15:07:29.875977Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:29.877044Z", "completed_at": "2021-04-06T15:07:29.877053Z"}], "thread_id": "Thread-3", "execution_time": 0.08051204681396484, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.not_null_stg_hubspot__email_event_open_event_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:29.877648Z", "completed_at": "2021-04-06T15:07:29.888713Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:29.907273Z", "completed_at": "2021-04-06T15:07:29.907286Z"}], "thread_id": "Thread-1", "execution_time": 0.03139829635620117, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.unique_stg_hubspot__email_event_open_event_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:29.888399Z", "completed_at": "2021-04-06T15:07:29.908279Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:29.908971Z", "completed_at": "2021-04-06T15:07:29.908979Z"}], "thread_id": "Thread-4", "execution_time": 0.022469043731689453, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.not_null_stg_hubspot__email_event_spam_report_event_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:29.888585Z", "completed_at": "2021-04-06T15:07:29.909175Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:29.910271Z", "completed_at": "2021-04-06T15:07:29.910279Z"}], "thread_id": "Thread-3", "execution_time": 0.023148059844970703, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.unique_stg_hubspot__email_event_spam_report_event_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:29.910770Z", "completed_at": "2021-04-06T15:07:29.923150Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:29.932282Z", "completed_at": "2021-04-06T15:07:29.932292Z"}], "thread_id": "Thread-1", "execution_time": 0.032737016677856445, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.not_null_stg_hubspot__email_event_sent_event_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:29.929435Z", "completed_at": "2021-04-06T15:07:29.943811Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:29.944503Z", "completed_at": "2021-04-06T15:07:29.944512Z"}], "thread_id": "Thread-3", "execution_time": 0.03049921989440918, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.not_null_stg_hubspot__email_event_print_event_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:29.922679Z", "completed_at": "2021-04-06T15:07:29.944038Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:29.944759Z", "completed_at": "2021-04-06T15:07:29.944766Z"}], "thread_id": "Thread-4", "execution_time": 0.03336024284362793, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.unique_stg_hubspot__email_event_sent_event_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:29.944378Z", "completed_at": "2021-04-06T15:07:29.954540Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:29.955379Z", "completed_at": "2021-04-06T15:07:29.955387Z"}], "thread_id": "Thread-1", "execution_time": 0.012852907180786133, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.unique_stg_hubspot__email_event_print_event_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:29.955699Z", "completed_at": "2021-04-06T15:07:29.972890Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:29.973822Z", "completed_at": "2021-04-06T15:07:29.973830Z"}], "thread_id": "Thread-3", "execution_time": 0.025097131729125977, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.not_null_stg_hubspot__email_event_status_change_event_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:29.955894Z", "completed_at": "2021-04-06T15:07:29.973363Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:29.974052Z", "completed_at": "2021-04-06T15:07:29.974058Z"}], "thread_id": "Thread-4", "execution_time": 0.028825998306274414, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.unique_stg_hubspot__email_event_status_change_event_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:29.973699Z", "completed_at": "2021-04-06T15:07:29.985938Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:29.987287Z", "completed_at": "2021-04-06T15:07:29.987302Z"}], "thread_id": "Thread-1", "execution_time": 0.02523326873779297, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.not_null_stg_hubspot__engagement_call_engagement_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:29.987116Z", "completed_at": "2021-04-06T15:07:30.012548Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:30.012859Z", "completed_at": "2021-04-06T15:07:30.012869Z"}], "thread_id": "Thread-3", "execution_time": 0.027624845504760742, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.unique_stg_hubspot__engagement_call_engagement_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:29.987633Z", "completed_at": "2021-04-06T15:07:30.013497Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:30.016084Z", "completed_at": "2021-04-06T15:07:30.016095Z"}], "thread_id": "Thread-4", "execution_time": 0.030761003494262695, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.not_null_stg_hubspot__engagement_engagement_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:30.006514Z", "completed_at": "2021-04-06T15:07:30.017217Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:30.025380Z", "completed_at": "2021-04-06T15:07:30.025388Z"}], "thread_id": "Thread-1", "execution_time": 0.02000904083251953, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.unique_stg_hubspot__engagement_engagement_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:30.016651Z", "completed_at": "2021-04-06T15:07:30.026560Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:30.037139Z", "completed_at": "2021-04-06T15:07:30.037154Z"}], "thread_id": "Thread-3", "execution_time": 0.024427175521850586, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.not_null_stg_hubspot__engagement_meeting_engagement_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:30.026477Z", "completed_at": "2021-04-06T15:07:30.038538Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:30.039476Z", "completed_at": "2021-04-06T15:07:30.039484Z"}], "thread_id": "Thread-4", "execution_time": 0.02396988868713379, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.unique_stg_hubspot__engagement_meeting_engagement_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:30.039003Z", "completed_at": "2021-04-06T15:07:30.068847Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:30.078286Z", "completed_at": "2021-04-06T15:07:30.078296Z"}], "thread_id": "Thread-1", "execution_time": 0.0415339469909668, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.not_null_stg_hubspot__engagement_email_engagement_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:29.805912Z", "completed_at": "2021-04-06T15:07:30.078073Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:30.078734Z", "completed_at": "2021-04-06T15:07:30.078741Z"}], "thread_id": "Thread-2", "execution_time": 0.2919931411743164, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.unique_stg_hubspot__email_event_forward_event_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:30.068578Z", "completed_at": "2021-04-06T15:07:30.088622Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:30.089914Z", "completed_at": "2021-04-06T15:07:30.089938Z"}], "thread_id": "Thread-3", "execution_time": 0.04224705696105957, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.unique_stg_hubspot__engagement_email_engagement_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:30.078509Z", "completed_at": "2021-04-06T15:07:30.091124Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:30.092107Z", "completed_at": "2021-04-06T15:07:30.092115Z"}], "thread_id": "Thread-4", "execution_time": 0.022927284240722656, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.not_null_stg_hubspot__engagement_note_engagement_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:30.091964Z", "completed_at": "2021-04-06T15:07:30.116835Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:30.119575Z", "completed_at": "2021-04-06T15:07:30.119584Z"}], "thread_id": "Thread-1", "execution_time": 0.03727293014526367, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.unique_stg_hubspot__engagement_note_engagement_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:30.092492Z", "completed_at": "2021-04-06T15:07:30.126115Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:30.128270Z", "completed_at": "2021-04-06T15:07:30.128277Z"}], "thread_id": "Thread-2", "execution_time": 0.037560224533081055, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.not_null_stg_hubspot__engagement_task_engagement_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:30.110736Z", "completed_at": "2021-04-06T15:07:30.128583Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:30.129533Z", "completed_at": "2021-04-06T15:07:30.129539Z"}], "thread_id": "Thread-3", "execution_time": 0.029249191284179688, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.unique_stg_hubspot__engagement_task_engagement_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:30.117051Z", "completed_at": "2021-04-06T15:07:30.129792Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:30.130625Z", "completed_at": "2021-04-06T15:07:30.130631Z"}], "thread_id": "Thread-4", "execution_time": 0.0204010009765625, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.not_null_stg_hubspot__ticket_ticket_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-04-06T15:07:30.130848Z", "completed_at": "2021-04-06T15:07:30.142888Z"}, {"name": "execute", "started_at": "2021-04-06T15:07:30.143327Z", "completed_at": "2021-04-06T15:07:30.143336Z"}], "thread_id": "Thread-1", "execution_time": 0.013695955276489258, "message": null, "adapter_response": {}, "unique_id": "test.hubspot_source.unique_stg_hubspot__ticket_ticket_id"}], "elapsed_time": 4.309812068939209, "args": {"log_format": "default", "write_json": true, "profiles_dir": "/Users/joseph.markiewicz/.dbt", "target": "bigquery", "use_cache": true, "compile": true, "version_check": true, "which": "generate", "rpc_method": "docs.generate"}} \ No newline at end of file diff --git a/integration_tests/data/company_data.csv b/integration_tests/data/company_data.csv index 6940bc1..249ea21 100644 --- a/integration_tests/data/company_data.csv +++ b/integration_tests/data/company_data.csv @@ -1,101 +1,25 @@ -id,is_deleted -2353903565,False -2353090146,False -1714014519,False -2353081236,False -2353090027,False -2353090067,False -2353082624,False -2353074904,False -2353083432,False -2353903742,False -2353091320,False -2354002878,False -2354004020,False -2609221877,False -2353160757,False -2353090044,False -2353074604,False -2353082601,False -2353090896,False -2353880921,False -2353162353,False -2353162327,False -2353076152,False -2353857607,False -2353081740,False -2353089911,False -2353081346,False -2354002853,False -2353082665,False -2928664627,False -1714666930,False -3023743689,False -2353090573,False -2353076438,False -2353091210,False -3058699192,False -2353080884,False -1714669103,False -2842711247,False -2353089818,False -2353083134,False -2353083456,False -2353091214,False -2354004007,False -2859583448,False -2353081451,False -1714669158,False -2353160704,False -2697164402,False -2353081748,False -2353083317,False -2353377966,False -3092326537,False -2353089987,False -2353081235,False -2354003947,False -3059382475,False -2353076477,False -2353091188,False -2353880913,False -3091763982,False -1714669153,False -2353083635,False -2353903767,False -2353161202,False -2353089980,False -2493800096,False -2353881196,False -2488788969,False -2353081933,False -2354003472,False -2353081256,False -2353378168,False -2353090773,False -2353074488,False -2353162309,False -2353083152,False -2353090649,False -2353083205,False -2353070893,False -2353881918,False -2353857401,False -2353881157,False -2353083461,False -2353064402,False -2528042160,False -2353090768,False -2353074547,False -2353161205,False -2353076423,False -2353160792,False -2354003895,False -2519088032,False -1714023000,False -2353090076,False -1715221982,False -2970019339,False -2613711843,False -2545069241,False -2509525676,False \ No newline at end of file +id,is_deleted,_fivetran_synced,property_name,property_description,property_createdate,property_industry,property_address,property_address_2,property_city,property_state,property_country,property_annualrevenue +2182162682,false,2020-12-30 3:15:52,4b2c13cca3eb58ee49bbddcf00417130,0f478ed365082ae132c370744c96790e,2019-07-05 20:35:26,37a6259cc0c1dae299a7866489dff0bd,6cb5c4eeb3599d4201118f569157c95b,37a6259cc0c1dae299a7866489dff0bd,,XX,United States,10000000 +2319384765,false,2020-12-30 3:15:53,205020e0c4a91e8ee3f36b068dee85d3,60b8a67a7dbada5edc7639304bd3d9c2,2019-08-12 15:38:30,37a6259cc0c1dae299a7866489dff0bd,0928d268e6a6802df980208759313326,3d5b3c2fe48975cd1afc0fe69d2ac28b,1046ecca1bf740bddd6fb8d780795314,XX,United States,10000000 +2539352677,false,2020-12-30 4:16:24,fafc347400679e25e47860b0d74d0d48,d4e9c03ef85c2e7952b28198eef04410,2019-10-29 10:00:41,4835236f5484f4ce65c05aaac3bd5297,a1ecccfdd09bf7b66cb7b9e06de4e680,37a6259cc0c1dae299a7866489dff0bd,87809c954948d8a20507bee3648281b3,XX,United States,10000000 +2258956513,false,2020-12-30 4:16:23,06a77d6464bc6d5404513281a55f69d2,751bc1dafa963237e06c0f69f1cf23d6,2019-07-29 17:54:22,d471cfef4b5766cab06c98616c6e4c12,692a1af299911a0b74907c99c796ef81,37a6259cc0c1dae299a7866489dff0bd,87809c954948d8a20507bee3648281b3,XX,United Kingdom,10000000 +858780924,false,2020-12-30 4:16:23,8d4cacc32973fa43806d6e743a315e90,7cc08a5696f7385f44b085addd439255,2018-07-11 20:53:41,37a6259cc0c1dae299a7866489dff0bd,0e59ca4fcd625a9e8cbcaef12e52a29d,37a6259cc0c1dae299a7866489dff0bd,538f6af1d2490971ef1ccfa44b11e49c,XX,United States,10000000 +2050238876,false,2020-12-30 4:16:22,fd845fa89c0f4541437564a0d4a83db1,a966d2c4f4a432623f710043a0a9f814,2019-05-23 12:37:25,37a6259cc0c1dae299a7866489dff0bd,3f5794cc394b2f88cdcac4b04fa1a68e,19e93bb1ceb58937019c5e8bbd02901d,32ce3f1410510651a5f862f64e137868,XX,United States,10000000 +2426544794,false,2020-12-30 3:15:52,9b1d5c6d91c9abcb04b3a6125152d177,41b60e9f786fd88c706129dd478fb713,2019-09-19 18:08:42,37a6259cc0c1dae299a7866489dff0bd,7af8dcc119f9f2dbffc67bb47fc432a8,37a6259cc0c1dae299a7866489dff0bd,87809c954948d8a20507bee3648281b3,XX,United States,10000000 +2568965709,false,2020-12-30 4:16:21,40afc385ed39ff1a890b09aa05853446,35c9aa14cd59eea7550e94bd01b8ed45,2019-11-09 21:05:19,fdc8c08a76b5f12553dc839b8924f0df,8f76e1a2370a4b0a61c65fcad235ae69,37a6259cc0c1dae299a7866489dff0bd,0d66d119a9a135af72195d2c3ca7fce3,XX,United States,10000000 +2412860846,false,2020-12-30 4:16:20,668fdfbd0e9af92ea4eaf05fabddc3db,d41d8cd98f00b204e9800998ecf8427e,2019-09-15 2:50:54,8ca443b7a43b9681d196a55f8d090e62,2fdd9c57430a26cc45b67ba5222a9172,37a6259cc0c1dae299a7866489dff0bd,08d9eaf148bca47f7fd699c606e4558e,XX,United States,10000000 +2172830982,false,2020-12-30 4:16:22,ea1f5fc85bc26ed0284a6ac983a50fa8,25cf0f84ed5240a781f1fae5a4a15e6e,2019-07-02 22:48:57,87512a2bed0bf5045b31244650d4dce4,1c0bde7cc4b2af8e7d3c09ae152e8ebb,37a6259cc0c1dae299a7866489dff0bd,d41d8cd98f00b204e9800998ecf8427e,XX,United States,10000000 +2436861098,false,2021-01-08 19:16:04,9b24a2dd46e664c5cbdcc015ab926921,b08d4d22fe821cf682878489fbd0b990,2019-09-24 18:47:58,b755ecacb563d4689aa5ce826cb358b2,89b5a06bb493df9f9f1c09795c0c8152,37a6259cc0c1dae299a7866489dff0bd,40097d120d9885baa23e22ee3c1fb509,XX,United States,10000000 +1875804727,false,2021-01-01 1:15:54,76d284a57e820e5352fed186b2bb49cb,9dd3e7102bdbfa45fac1a4e0a89be7f3,2019-05-01 11:46:34,3e549b5e426932c7c8be79851c800d33,bab5e0044f4c4accb048cfcbc646ea97,37a6259cc0c1dae299a7866489dff0bd,87809c954948d8a20507bee3648281b3,XX,United States,10000000 +1755751861,false,2021-01-01 20:15:54,ae52b283b310874855392edad9860f1b,5aec0f1d3c77e8fde09666951cc5960a,2019-03-21 18:44:36,08ded3e3b8d060ebb163f9dd4a2fe847,18bc9940888c7ab60926b62f2606e019,37a6259cc0c1dae299a7866489dff0bd,87809c954948d8a20507bee3648281b3,XX,United Kingdom,10000000 +2802517900,false,2020-12-30 4:16:22,05c2cd208f223ed13cf46856f3637369,ad4d0c38c4ffed1631b40c06661ce02d,2020-01-08 2:13:54,37a6259cc0c1dae299a7866489dff0bd,9ac4b85e60c1eb3b26f853bca29e25fe,37a6259cc0c1dae299a7866489dff0bd,59ead8d1e124ccfb79f3ace06f43e703,XX,United States,10000000 +2318645267,false,2020-12-30 4:16:19,80b9f7df9b05e9118515093787ab450a,897c7f6ab3be7d330a164102c1c57b84,2019-08-12 11:54:55,37a6259cc0c1dae299a7866489dff0bd,eb15251744565ff877503436b2fbded9,37a6259cc0c1dae299a7866489dff0bd,87809c954948d8a20507bee3648281b3,XX,United States,10000000 +2308842161,false,2020-12-30 4:16:23,23bda4a4a5e92e0b92281434635e001d,89bf926c2515d8dca94e673e685ed3f0,2019-08-08 12:32:54,8ca443b7a43b9681d196a55f8d090e62,920cfa229fed31fa4e7ef91c6ecfc9b4,37a6259cc0c1dae299a7866489dff0bd,f0dddde0d04dc3b9ec79302c612a3fae,XX,United States,10000000 +860870157,false,2020-06-26 2:25:42,449aad8808e10090e96d6e3f5da9067e,25884bf2573ae3371dd3194d9a7472ac,2018-07-13 12:55:25,d41d8cd98f00b204e9800998ecf8427e,7d6a756d9535452035490acc4e47db39,37a6259cc0c1dae299a7866489dff0bd,1422ded96c56c5b778bfbd78603dfafd,XX,United States,10000000 +2396583124,false,2020-12-30 4:16:22,9b017cf05a4e8e99ab17f775e085c0a8,753dae9ea2b87c5055c32981801ca928,2019-09-10 15:51:15,6796258c8758595c95121cce6706bb96,d2aee195f7fb0a54bc83a81bcaaec890,37a6259cc0c1dae299a7866489dff0bd,04ec30e97b990f9087f5fdad71ba4336,XX,United States,10000000 +1771990873,false,2020-12-30 4:16:23,6c1ade589848a6f5b97e27946ec5c790,c0f57d2f61377273ad37df68a1dfc9f9,2019-03-30 1:24:37,67fa9476899309473e77fe4c832035d2,cc3e9116a8c3c6c59d467f602689d7a7,37a6259cc0c1dae299a7866489dff0bd,d1ada0d3ae8ff2720b9a48a608d3d4ae,XX,United States,10000000 +2165366027,false,2020-12-30 4:16:24,beee8abdf076860d8049f6b34f87f560,7aec43fa866665673f2e49c802264290,2019-07-01 15:02:38,150b1db2e79cd4b9012c6756b5720e1a,f79d92c5b3c52f5636a3b197b34b18cb,37a6259cc0c1dae299a7866489dff0bd,09ea9b5e69df9e1385463fde29bc41cf,XX,United States,10000000 +2453842109,false,2020-12-30 4:16:20,8b7b90c56f36ccfaaf3a1c2e0ce1be5c,71e38b3556f324b7e82d4e728bf84fc3,2019-09-28 23:27:44,37a6259cc0c1dae299a7866489dff0bd,fae086294a1b1da828c0dec9b185259d,37a6259cc0c1dae299a7866489dff0bd,25efc916cf9837e321f5157f8e9fed4c,XX,United States,10000000 +2814875518,false,2020-12-30 4:16:23,5b6c46120aeaee12a013d088acde8ecf,e1f23fc586d2dce96d72b8d24b5c61f2,2020-01-10 17:13:01,37a6259cc0c1dae299a7866489dff0bd,95829bb5cb0436f1513dfb18678eadfd,37a6259cc0c1dae299a7866489dff0bd,9cfa1e69f507d007a516eb3e9f5074e2,XX,United States,10000000 +2759780517,false,2020-12-30 4:16:20,685012b2729f6a580c6620f0a5192e8d,e1e4464aae529785549615b5e53f8c3a,2019-12-27 20:19:25,d41d8cd98f00b204e9800998ecf8427e,88957c6c21a2bc52a54880f22002c3db,37a6259cc0c1dae299a7866489dff0bd,c17ba32b360562102687b5ac3f122692,XX,United States,10000000 +2402736100,false,2020-12-30 4:16:23,29ffbc5b6f1e85c758b08acc61e586b0,d86afee1071e0be83e787857d1c67a47,2019-09-11 16:59:48,d41d8cd98f00b204e9800998ecf8427e,dcdcdfa2e85d945e97fa72b2da9affbc,37a6259cc0c1dae299a7866489dff0bd,25efc916cf9837e321f5157f8e9fed4c,XX,United States,10000000 \ No newline at end of file diff --git a/integration_tests/data/contact_data.csv b/integration_tests/data/contact_data.csv index df3a699..93bf659 100644 --- a/integration_tests/data/contact_data.csv +++ b/integration_tests/data/contact_data.csv @@ -1,101 +1,23 @@ -id,property_email,_fivetran_deleted -34391651,w64Fg0wpGtgNnyFSCaxc1g==,False -32881601,vRsmCw58xQQenH6aM9zPoQ==,False -34298801,XTM9OgDeoOIpN4Q/dhbXVg==,False -31400151,aLvlJoM+cjeUq2BmaGKRNQ==,False -32149701,kIywMt8bE5i8Dkk7l1EI5A==,False -29408851,5MyJvl5wn/qZAoTxIHe+Hg==,False -27120001,2jZVc9tOvBqhZmKy6uIwZQ==,False -36306851,P+MQYTZ3ViqUypmWq7LxsA==,False -35475951,E+nric7mkG3mBBEwGF+0KA==,False -33311901,9fXLGhp7Dpjdnnr9GlhH7w==,False -26151351,VyieWA51zLi7DpfhR5LwLg==,False -33159551,nPSTdQ1XX36NlTPdQ2icCg==,False -35372551,qk3f1w7rD8E40zhLuhPKwA==,False -35123051,sU0JFmxn9VKgIWOU4+3CVw==,False -31050001,w6Cpa9P5K3dQMlG0b1WuEA==,False -34291851,qqSa7z8R5iY3pvLB45nLcA==,False -26954951,x8gDW52C7tVb55di/5WY5Q==,False -36352701,xHQOgUQ1iwd3jlkXBvU8dA==,False -30496501,jPOmeFoNgruq3Vnwj6erxg==,False -28224501,tDbKhqo9VGwUD4K53cIXkQ==,False -33553701,seya+WTJtulTCYoWjjNk0A==,False -32476851,BCy3kMsCNAKkDogPTvb6Dw==,False -26901201,oD3uOvhEfItRe2IR/IJ+GQ==,False -30491151,CHQ5pV4vk3/UF/UxjFul2Q==,False -36344151,Lqmsnip+HQpmOUQrc74l9A==,False -32699251,fUuzm48csLj0yEvbujp8LA==,False -32375451,Kgp1w2QEWIHJz8AXrTh2iw==,False -31554351,zbCG88OH0XtwstIIBJB+VA==,False -34602301,3/hmGAIEhkLpmmdUUFIddw==,False -30173851,J8L+aGjDHA1LNL2C+Q94sw==,False -30610901,9nXCd6K985aQ77EZejAztA==,False -29559851,b/348X13PW5mOUJ0w01pmA==,False -29796251,pXocy1lUtKeh0p011CKA5A==,False -26260401,TcP7+Vzd5qGkDFOZURj8/w==,False -26313501,XZKoLYyn3ZLblGY7qSKbAw==,False -30012951,E0bkRPWdjc5ssYRi4AOH8g==,False -31002951,w0VPgZzPQqkHyxJ/iAIfFA==,False -35203951,AEbiEaXCRdVpKKftrIceoA==,False -29069051,7AY1/r1BaRnpIaR29tGdfQ==,False -29991551,AqgNIkTzkEXIca08f9AoPw==,False -29107101,6MULMiBsQY20mlvNXUTvlw==,False -35956601,nfGXoS+tzaNP7vl/0Zea7w==,False -33998301,RMi4An0qRlLtUUKUHaOxXg==,False -35416401,8a5J5UOsFbcCTj0RhD5zEg==,False -36011001,KsFFW561PQ0Xei/CAmvQqg==,False -34388201,nr35Zdjzq3FALiEKEnBGHw==,False -30477551,QQaxDIbay0EmK2tfIQPrCw==,False -28250101,jD8Sf+43DCb0xPo9IJsn8g==,False -31800101,qSlcw3ETLZ5aStITO1Ia8w==,False -35799501,6hHY8x0EKQ8zOOTIY0y0wA==,False -31765451,jISsDT6Lvtut2hkfe2zusQ==,False -33772451,RLnh8YzTAub7rXcdzspUnQ==,False -32288301,Js1e756ID1Ab/cwbWprEAQ==,False -35872351,AuG5WV/EcyjhXL+4PxXgkQ==,False -34234451,ucvHk8TfnPZV88/18+Mqhg==,False -34125301,Gtz77UTpAExCHHcY0dmpSw==,False -33649501,5PyAMrR9/Q+8dbDs1gU8Ew==,False -34540401,8Rc5YSFSeb8IMW2caYaGiQ==,False -33811001,+gj/o+lVcsotNEduiBZxhg==,False -33839151,UPFmVrQMESPzUbY/G9VBZQ==,False -35985751,yQ6LTHBrB3bJezUZ8chjAg==,False -33779801,6hQJDB3/V2SdaCD9wkSmFg==,False -36199901,5Cv+oA7YNFbXjQ1YdisYyQ==,False -35966151,O1DMPwsLkRaXB17Gae8tMw==,False -33908551,DXJIU+3OuIWoUBXbbGbEMA==,False -30240801,+7GP6HMvZ9jHDGVojhj6uQ==,False -35739701,T4uVuKQJy9q1UXurh2MyRg==,False -28853953,fnBj8bn7UZU6PELM3lOlFQ==,False -35747101,eSCTqZwKpn24UuvpRHTYHg==,False -36256751,P4TLkgSG4U3lScLbLEy0cg==,False -36159251,JeVw/gmUUIihkblI6Qon7A==,False -35308101,ezVjmptBJPI/Pboiw/JxMw==,False -36249301,pCbboNBbdmx/XYkyGzqY/A==,False -26632701,/zhdg2ao0TCiRqQPMmLKdg==,False -26853101,y+p+rLwLMI/aly7+KVy/Pg==,False -26854051,vf1f01I5oz7K+EnokRWbdw==,False -26657001,ZAs1I6UBQB3bKnQuoIYH1w==,False -28048951,l3C6i5mlnOmWLx+LXEBCTA==,False -26261301,RgAHIHjrpSlHbswRhSOEMQ==,False -28063401,ZqAUXjyJvZ/SwDd1oYw6Og==,False -26728651,kXIiYYHCCl5xVQaeSu+V3w==,False -33489101,4/bBqMDTUtFMD5R4T3gohg==,False -28462401,XoUaV1HdMyV7qdKnoYJomw==,False -35637351,lGgclhMSR0sZvKwaMGzlAQ==,False -28290551,tkUng76J+AXCr5v5iv4ivQ==,False -32473101,shTtF7Y1kpD+djJWpvRufw==,False -30063451,+bdBC8uZN7vhaPvD8m8iQQ==,False -33730751,JBv5BOLhR7/Gl8Wk/fAWpg==,False -30148951,02k/MZcBX5iv7wJulC1Ggg==,False -35958701,baDzffdqSbHneE8X+Eauag==,False -35917151,WmT/Re/rg/pG6PwbNVelMg==,False -29588651,JdJuRVlJcjRFtzDD4vv08g==,False -33340301,o2MVyi1srHxuvMUWjT2lWQ==,False -34140601,0bdBH0D+AEYGsoc/s6u7+Q==,False -31722401,V4Av0OBkB6Dck5W5TfN9Jg==,False -32779401,+MjigFCxbix2u2w88/kATA==,False -32518101,OxmlrqG8gGU2YUOiuoigHQ==,False -32236551,u/XuEADERvHhsYCva+lVsg==,False -29937951,AOD2fREt3cEryQqEyff33A==,False -28402551,EGrXge9rCk35wP0IFqMy+Q==,False \ No newline at end of file +_fivetran_deleted,_fivetran_synced,property_email,id,property_company,property_firstname,property_lastname,property_email_1,property_createdate,property_jobtitle,property_annualrevenue +FALSE,2021-04-02 11:16:05,fcb67ef339b691956cc85fa12be6490c,78971951,SampleCompany,db320f93ead463e1a2faee198cd9a122,22370ea245fce0b355938327d41bd1e4,261d3936e165a33b3f31e5fdd0e3121d,2021-04-01 17:32:47,,111111 +FALSE,2021-03-22 11:16:06,6528bb7211b1dc066fc5c292561150c2,76340251,,b70e7b267b0652ee4030c4043cba7cf7,a0a1e71392fc13041b04f743c6727ca2,629f41f1733632c69114a624bca1e1d5,2021-03-21 14:33:30,, +FALSE,2021-04-02 11:20:23,3abfda161ad50142007f6107db915761,46897301,,c13e13da2073260c2194c15d782e86a9,26c4e5c8064dc58f08b4ef2ebf463beb,4e52945af09feaa93bcfbf710fb23570,2020-10-08 21:13:55,, +FALSE,2021-03-22 11:16:08,d8215e6e62b9398166ad67ca484fc58d,76226001,,48bc893fcbc0a33ed3ad2cf2d5d57cfe,7a03155bc7e8c00f13d70edae7974096,0474ac00326d6e93558e7727da5e3bdc,2021-03-20 21:42:56,, +FALSE,2021-04-02 11:19:58,d63232cbab97fc1bb5808e4cba500347,36842001,,a703d6d14769d658f85a3b4c2c1ef9c7,5f55afd748fc4ad2580b768611325148,af58c55d6520c2470fd58e6893c06816,2020-07-15 4:46:01,, +FALSE,2021-04-02 11:17:59,67717a9896fdbf93e2fa6655e75eb70f,55703851,,bf7c755353603f0bfca9f2070dbaa923,526664ec12dc5105f2c3171ca0909570,8370f130e1bb6435da412b168e29a0ab,2020-12-03 14:43:55,, +FALSE,2021-04-02 11:17:15,90d65041363376d2abd1f0916df8fa42,74075201,,464e07afc9e46359fb480839150595c5,9c6e765da2eebc87f290f43f74d57c8d,24e5c02e37b9441c33978a53038200d4,2021-03-11 13:08:45,, +FALSE,2021-04-02 11:21:27,226045995fbc87c01b2eb3847bc4ea8f,48722101,,464e07afc9e46359fb480839150595c5,7fe70fef470fcc46826966e201147015,5cf8d1f804144c2ef34dc98db0fd0105,2020-10-24 13:28:24,, +FALSE,2021-04-02 11:22:22,b26ae870d0b4763efe3f4bbc53aab1d6,48067201,,8295bd3d7037a0e0c2ee11c99050a9c1,59830e37ce261d31ad0da0d5d270d0e1,abd71c63abd25c0f8286e76f319b9939,2020-10-19 2:34:46,, +FALSE,2021-04-02 11:20:39,52a2d91b793f582dbe837ea464505732,69869451,,81b8a1b77068d06e1c8190825253066f,20c0c9b9bd7addf3a005da2e3ff184f4,674c0664494482302ec62fa4f11947bc,2021-02-19 13:23:50,, +FALSE,2021-04-02 11:20:49,cba06e5c14a5aecfbb42d2e813ceb18e,32820151,,399423ff652ebb6a6701be7ec3202fc6,c22e1816539af64a7eadc2b81c3a1905,a37a075d75315d60478339a67c39340f,2020-05-22 16:46:41,, +FALSE,2021-04-02 11:21:02,045ddfbc7f5c8b229872583f77677b88,70526501,,399423ff652ebb6a6701be7ec3202fc6,c1861b5a8a30be3af3f7fd5e1592296a,4dd5fdb40b67ee13fc486d0073df7bcb,2021-02-22 12:18:44,, +FALSE,2021-04-02 11:16:53,033e21ce25808e0cda0d02b859ee0690,69487901,,7802feb8467a9bc4dba34269b099230f,36bc4059766459cd3364e405157aa855,263a8a2a4bf46bd88b3fb46072b56982,2021-02-18 15:40:04,, +FALSE,2021-04-02 11:16:28,693f827dd3adc99c5eb1403f5758dc69,41932551,,4d236810821e8e83a025f2a83ea31820,b18e66b41efd9a3df1a7bc8758da1883,a1ea6eae3d51c7c339478f8ddc3190cf,2020-08-31 4:44:28,, +FALSE,2021-04-02 11:22:04,0de6489271133caa4da8e73898a66616,75141301,,7c1f90bd9bdc70cc059640a7a6209389,e1229bab1c271d1f1796cb0c52ab9933,c6bf5326b632c7411bd68500eb283e0c,2021-03-16 1:44:16,, +FALSE,2021-04-02 11:16:59,8c1596c5770ae37d6db57236eabf2883,42820351,,e1229bab1c271d1f1796cb0c52ab9933,b7a71d8799cf6dd75b711a7f52de6675,3d5c92d654be9b684cc91ec6143323d5,2020-09-07 16:19:50,, +FALSE,2021-04-02 11:15:59,458e4126009a63e8f549af197a6b72f7,79092001,,4ffe35db90d94c6041fb8ddf7b44df29,da4660701a8f38bf4956342c95d87d21,991c1b99ab97f625eb1ead100949bfc9,2021-04-02 1:12:17,, +FALSE,2021-04-02 11:22:07,3f9e56a211a07baa5836171617f978a8,56072901,,c477d14fc1b786cb85f4b23a0b00fe1c,d8a1d6833510c7544156f41c55aec258,8c9975dd59d43d516775fde0eb57c03f,2020-12-05 17:49:01,, +FALSE,2021-04-02 11:17:41,6f1eb8fdc225b3b026898b68df5d5be2,39543551,,7f15f1ad99c489dc0314952535e424d5,6252d6e4aef4917a48e2660a821732e3,74be16979710d4c4e7c6647856088456,2020-08-13 15:34:30,, +FALSE,2021-04-02 11:16:22,0a28bb660df1a8d53b40999f1b1fe2b5,33419651,,d52e32f3a96a64786814ae9b5279fbe5,630a16c4dbe8f48822a279b4a554916f,a71704548944161196a1841e61a3cb4c,2020-06-01 21:13:09,, +FALSE,2021-04-02 11:21:02,1bd784044acca0b18e917d0255cc619d,69477701,,61409aa1fd47d4a5332de23cbf59a36f,10af01955bb93519c3c287d7e60c670b,e70d013e17f9dd4a17bc37c0a5c0f203,2021-02-18 15:21:47,, +FALSE,2021-04-02 11:22:27,d547e990ecd4e5e327b41f98cb8f3f4d,39893151,,6fa95b1427af77b3d769ae9cb853382f,f55fbaaca148300ac11f7752528cae3d,bc16a8351419c08a72f2169f4d2ade21,2020-08-17 2:50:12,, \ No newline at end of file diff --git a/integration_tests/data/deal_data.csv b/integration_tests/data/deal_data.csv index 3926e42..3a80c3c 100644 --- a/integration_tests/data/deal_data.csv +++ b/integration_tests/data/deal_data.csv @@ -1,101 +1,45 @@ -deal_id,owner_id,deal_pipeline_id,deal_pipeline_stage_id,is_deleted -1105125948,,,,False -1078129009,,,,False -1078777539,,,,False -1075671446,,,,False -1956207094,,,,False -1077595021,,,,False -956076349,,,,False -1084839389,,,,False -1244495215,,,,False -1078138977,,,,False -956082547,,,,False -1077598754,,,,False -1076722161,,,,False -1078239920,,,,False -1157123597,,,,False -956090172,,,,False -1077687691,,,,False -1077836456,,,,False -1076737030,,,,False -1077712176,,,,False -1174418560,,,,False -1077731317,,,,False -1124536815,,,,False -1388085811,,,,False -1077721597,,,,False -1969418007,,,,False -1106555947,,,,False -1678108660,,,,False -1999199011,,,,False -1177438702,,,,False -1076920020,,,,False -1177524855,,,,False -1105133912,,,,False -1077659220,,,,False -2266336287,35252170,,,False -1915568724,35252170,,,False -1348398344,35252170,,,False -2365566196,35252170,,,False -1260142865,35252170,,,False -1565004294,35252170,,,False -2325157681,35252170,,,False -1957317823,35252170,,,False -1806318738,35252170,,,False -2382202760,35252170,,,False -2069431145,35252170,,,False -1521493450,37790786,,,False -1444227049,40706000,,,False -1438355126,40706000,,,False -1084630520,,default,b768209,False -1084635489,,default,b768209,False -1084648788,,default,b768209,False -1084656359,,default,b768209,False -1084622984,,default,b768209,False -1084622983,,default,b768209,False -1084656357,,default,b768209,False -1084641513,,default,b768209,False -1084648787,,default,b768209,False -1084630522,,default,b768209,False -1084656356,,default,b768209,False -1084630526,,default,b768209,False -1084630534,,default,b768209,False -1084648791,,default,b768209,False -1084635493,,default,b768209,False -1084622986,,default,b768209,False -1084648803,,default,b768209,False -1084641511,,default,b768209,False -1084656360,,default,b768209,False -1084641526,,default,b768209,False -1084622991,,default,b768209,False -1084656358,,default,b768209,False -1084635492,,default,b768209,False -1084656361,,default,b768209,False -1084656354,,default,b768209,False -1084630525,,default,b768209,False -1084622990,,default,b768209,False -1084648801,,default,b768209,False -1084635491,,default,b768209,False -1084641515,,default,b768209,False -1084622989,,default,b768209,False -1084630524,,default,b768209,False -1084648789,,default,b768209,False -1084622987,,default,b768209,False -1084635488,,default,b768209,False -1084641517,,default,b768209,False -1084635486,,default,b768209,False -1084635499,,default,b768209,False -1084656362,,default,b768209,False -1084656355,,default,b768209,False -1084622985,,default,b768209,False -1084641509,,default,b768209,False -1084630528,,default,b768209,False -1084622988,,default,b768209,False -1084635494,,default,b768209,False -1084641512,,default,b768209,False -1084648790,,default,b768209,False -1084630521,,default,b768209,False -1084641510,,default,b768209,False -1084635490,,default,b768209,False -1084630523,,default,b768209,False -1084630527,,default,b768209,False \ No newline at end of file +deal_id,is_deleted,deal_pipeline_id,deal_pipeline_stage_id,owner_id,portal_id,property_dealname,property_description,property_amount,property_closedate,property_createdate +1244495215,false,,,,4727653,1f03614fdf8999728ac2cfeb1c4b3984,,,,2019-12-04 12:48:22 +1075671446,false,,,,4727653,1d2a45a7d55ecc5fb7072ed75d8a3afc,,,,2019-10-07 20:36:05 +1077598754,false,,,,4727653,5fefe701fdcd03dc5b16c50cf1c8e6ed,,,,2019-10-08 10:01:15 +1077836456,false,,,,4727653,95cf7794ba54e56638529c05ba1364ae,,,,2019-10-08 13:54:32 +1077659220,false,,,,4727653,6cec89eca1970181422965e7da1826b6,,,,2019-10-08 11:05:56 +1076737030,false,,,,4727653,de6ab3cd99f288d36526d23787d54496,,,,2019-10-08 6:40:15 +1076920020,false,,,,4727653,7e99288de3ccf4e39a5f1a4605453282,,,,2019-10-08 9:08:29 +1078777539,false,,,,4727653,9cae9efcc3ed720b21e3e9eac0c20af3,,,,2019-10-08 17:30:50 +1076722161,false,,,,4727653,3657db95a0167aa409df0adc760f3b07,,,,2019-10-08 6:38:07 +1177438702,false,,,,4727653,c5d2784ea14c0d55a8ddec57bbc49353,,,,2019-11-16 15:48:14 +1077731317,false,,,,4727653,034aa917268df3bbba8fe0a38ef4911b,,,,2019-10-08 12:05:26 +1077712176,false,,,,4727653,e475834860834e4aa86f8b6aff90d305,,,,2019-10-08 11:44:36 +1157123597,false,,,,4727653,17aafdff734eceeec12ae30c70c6a028,,,,2019-11-11 10:47:55 +1078129009,false,,,,4727653,f532465c1ecd06fc1ced0f8f05e0175a,,,,2019-10-08 16:09:08 +1077721597,false,,,,4727653,388ff8b0d3ffe54d2dd8ba143d44a044,,,,2019-10-08 11:58:39 +1078239920,false,,,,4727653,98e871a61968f5d545e228e3f571609d,,,,2019-10-08 17:04:46 +1105133912,false,,,,4727653,62832fa2337b0bb4612f568cea32839a,,,,2019-10-20 19:31:55 +1174418560,false,,,,4727653,857b7b834d602eeca4131f8ac2d27c5a,,,,2019-11-15 13:29:45 +1077687691,false,,,,4727653,b09381ef4e822f0db1669a444a8ca41b,,,,2019-10-08 11:05:38 +1105125948,false,,,,4727653,e67b7b59ceea183ab66f7d8b778321b4,,,,2019-10-20 19:15:14 +1078138977,false,,,,4727653,15e3a4ac6dac5bdd0d81c16de0060aef,,,,2019-10-08 16:27:11 +1077595021,false,,,,4727653,1340d06d3787f65d6ac929e0109dc9f3,,,,2019-10-08 9:38:08 +2392872971,false,,,35252170,4727653,3299bfc43f7022de0c9b160b8514217a,,,,2020-07-09 20:15:11 +3555117472,false,,,35252170,4727653,9d5bce9dbcf730760da05e15d5780ee8,,,,2020-12-02 18:37:16 +3414241230,false,,,35252170,4727653,69f549bb037e620b1d885f93ee9f4066,,,,2020-11-16 12:28:06 +1260142865,false,,,35252170,4727653,fd812d8764c7c61f10272c19edbc7cd7,,,,2019-12-08 18:50:34 +3490328157,false,,,35252170,4727653,7d4c4f68fd6caaed0b60fc85ef885488,,,,2020-11-24 4:09:08 +1348398344,false,,,35252170,4727653,48c75cdc84023b42e3b5848e4f6c7b64,,,,2019-12-28 22:22:10 +1565004294,false,,,35252170,4727653,7cd0be503d42f40eba1007078c7111ed,,,,2020-02-14 8:29:05 +2325157681,false,,,35252170,4727653,d2e3a557367294d5f9775b00d72ae6bf,,,,2020-06-21 22:12:04 +2812830555,false,,,35252170,4727653,e4882ca627433a3dcfff675f72022202,,,,2020-08-15 14:28:51 +2266336287,false,,,35252170,4727653,d23796b608032091e99224c34c83e4ab,,,,2020-06-04 11:17:08 +1915568724,false,,,35252170,4727653,f0a1e4c6ee9b862a2a51b4fc2d219d04,,,,2020-04-23 2:14:04 +1806318738,false,,,35252170,4727653,024994ae44c700902ced23c777cf25d2,,,,2020-03-30 21:54:50 +3874091911,false,,,35252170,4727653,e5b65ff90ba5ef1c6731b9bebb4b9ebd,,,,2020-12-30 14:32:33 +2069431145,false,,,35252170,4727653,24fce16220474dec968af73001ecd513,,,,2020-05-25 19:16:14 +3996516327,false,,,35252170,4727653,31d96496493a6201b5921a4650b35ece,,,,2021-01-15 23:14:50 +2784249448,false,,,35252170,4727653,b0f527ef9842f89b169969e9365eccbf,,,,2020-08-11 22:34:50 +2365566196,false,,,35252170,4727653,f3230624b5edc27b276460ed6128f486,,,,2020-07-02 15:31:21 +1957317823,false,,,35252170,4727653,0d71588381d91663ccb0f5285fb63807,,,,2020-05-02 1:04:30 +2382202760,false,,,35252170,4727653,aa7e87e846c56ba8e7c32aa5b863eea0,,,,2020-07-06 23:09:46 +1521493450,false,,,37790786,4727653,4dbcabc36590c987b39f1c1ccc231ea5,,,,2020-02-06 4:12:22 +1438355126,false,,,40706000,4727653,9474fee25ee63a367375cb3ea04004c2,,,,2020-01-19 14:49:41 +2990334288,false,,,40706000,4727653,6674c2be62f9c509e1e966b878861653,,,,2020-09-25 3:30:12 \ No newline at end of file diff --git a/integration_tests/data/ticket_data.csv b/integration_tests/data/ticket_data.csv index d518219..ef60ccd 100644 --- a/integration_tests/data/ticket_data.csv +++ b/integration_tests/data/ticket_data.csv @@ -1,10 +1,25 @@ -id,property_closed_date,property_createdate,property_hubspot_owner_id,property_hs_pipeline,property_hs_pipeline_stage,is_deleted -1,2020-07-09 11:06:21.056,2020-07-09 11:06:21.056,1,2,3,false -2,2020-07-09 11:06:21.056,2020-07-09 11:06:21.056,1,2,3,false -3,2020-07-09 11:06:21.056,2020-07-09 11:06:21.056,1,2,3,false -4,2020-07-09 11:06:21.056,2020-07-09 11:06:21.056,2,3,3,false -5,2020-07-09 11:06:21.056,2020-07-09 11:06:21.056,2,3,3,false -6,2020-07-09 11:06:21.056,2020-07-09 11:06:21.056,2,3,3,false -7,2020-07-09 11:06:21.056,2020-07-09 11:06:21.056,2,3,3,false -8,2020-07-09 11:06:21.056,2020-07-09 11:06:21.056,2,3,3,false -9,2020-07-09 11:06:21.056,2020-07-09 11:06:21.056,2,3,3,false \ No newline at end of file +_fivetran_synced,id,is_deleted,property_closed_date,property_createdate,property_first_agent_reply_date,property_hs_pipeline,property_hs_pipeline_stage,property_hs_ticket_category,property_hs_ticket_priority,property_hubspot_owner_id,property_subject,property_content +2020-11-26 18:51:39,307034542,FALSE,2020-11-10 14:54:50,2021-02-16 20:31:05,2021-02-17 21:59:58,1626124,7970058,948482e333e299e112732c3c6e6e6de2,,,dd273fbf46aecd6bc19ce5ef0f83c1c9,391aefc69771e45194f258b9213d4483 +2020-11-26 18:51:39,293370454,FALSE,,2021-01-29 15:02:38,2021-01-29 15:37:44,1626124,7970058,948482e333e299e112732c3c6e6e6de2,,,4a95c7da3d462ed5fff2f6dc91cb5b04,f42033dc77134aa54ec2eacc3ee6c5d9 +2020-11-26 18:51:39,297600437,FALSE,,2021-02-04 12:54:52,2021-02-04 17:39:16,1626124,1626129,948482e333e299e112732c3c6e6e6de2,,,62c833a3dcf7d6fed8ec89a7de76105e,233bee1cbfbb7d5d37ab787a0c9d95c2 +2020-11-26 18:51:39,238832209,FALSE,2020-11-10 14:54:50,2020-11-10 14:54:50,,1486381,1706266,,,,7b580a65e5e3909d52f9bf1abb666424,37a6259cc0c1dae299a7866489dff0bd +2020-11-26 18:51:39,198967590,FALSE,2020-09-15 15:57:06,2020-09-15 15:57:06,,1486381,1706266,,,,8aed29c4d9e20db9fdeca1cc16d919ff,37a6259cc0c1dae299a7866489dff0bd +2020-11-26 18:51:39,324550015,FALSE,2021-03-05 20:45:10,2021-03-05 20:45:10,,1486381,1706266,,,,2cb1671ed65723daa97e2c597dcaad85,37a6259cc0c1dae299a7866489dff0bd +2020-11-26 18:51:39,275758552,FALSE,2021-01-04 14:01:52,2021-01-04 14:01:52,,1486381,1706266,,,,431d63ae8bf57461b2659042b6f973ad,37a6259cc0c1dae299a7866489dff0bd +2020-11-26 18:51:39,137513066,FALSE,2020-05-28 20:56:07,2020-05-28 20:56:07,,1486381,1706266,,,,5a10eeb6c3015a0d1432777a0eb693c3,37a6259cc0c1dae299a7866489dff0bd +2020-11-26 18:51:39,156039663,FALSE,2020-07-07 13:25:57,2020-07-07 13:25:57,,1486381,1706266,,,,175dce42f9d6fa73dfd8e29cceb17629,37a6259cc0c1dae299a7866489dff0bd +2020-11-26 18:51:39,200728971,FALSE,2020-09-17 23:07:26,2020-09-17 23:07:26,,1486381,1706266,,,,2df4c89f5c0d2a8688cd843f7ef14f26,37a6259cc0c1dae299a7866489dff0bd +2020-11-26 18:51:39,197316537,FALSE,2020-09-12 19:53:15,2020-09-12 19:53:15,,1486381,1706266,,,,28a8d366cc9182135385d79b15c7b7af,37a6259cc0c1dae299a7866489dff0bd +2020-11-26 18:51:39,121723395,FALSE,2020-04-20 12:49:01,2020-04-20 12:49:01,,1486381,1706266,,,,87b17cc25902180b6572f3f35a059711,37a6259cc0c1dae299a7866489dff0bd +2020-11-26 18:51:39,226600613,FALSE,2020-10-22 18:44:56,2020-10-22 18:44:56,,1486381,1706266,,,,98ff5402c937d4664bbbb00ec05cfe47,37a6259cc0c1dae299a7866489dff0bd +2020-11-26 18:51:39,338430345,FALSE,2021-03-16 0:32:29,2021-03-16 0:32:29,,1486381,1706266,,,,d8254b6c7ad36c09cf05a464856dd19d,37a6259cc0c1dae299a7866489dff0bd +2020-11-26 18:51:39,210718823,FALSE,2020-10-02 21:12:18,2020-10-02 21:12:18,,1486381,1706266,,,,5f4a993802657bf17e2d7016288b0bab,37a6259cc0c1dae299a7866489dff0bd +2020-11-26 18:51:39,198968635,FALSE,2020-09-15 15:27:16,2020-09-15 15:27:16,,1486381,1706266,,,,d52dbfdbb2eb5c94c701cf7c63eea941,37a6259cc0c1dae299a7866489dff0bd +2020-11-26 18:51:39,200415373,FALSE,2020-09-17 15:43:38,2020-09-17 15:43:38,,1486381,1706266,,,,5e05e38174cc749a7d0a04236be00fbc,37a6259cc0c1dae299a7866489dff0bd +2020-11-26 18:51:39,287177375,FALSE,2021-01-20 18:36:51,2021-01-20 18:36:51,,1486381,1706266,,,,8c697d166a33fa3758f03c2097779d9f,37a6259cc0c1dae299a7866489dff0bd +2020-11-26 18:51:39,234235597,FALSE,2020-11-03 14:24:28,2020-11-03 14:24:28,,1486381,1706266,,,,54e965e21077751164217935c380facb,37a6259cc0c1dae299a7866489dff0bd +2020-11-26 18:51:39,280473935,FALSE,2021-01-11 3:42:30,2021-01-11 3:42:30,,1486381,1706266,,,,2f03edf45aaa4d282095e7e88330cecc,37a6259cc0c1dae299a7866489dff0bd +2020-11-26 18:51:39,201110733,FALSE,2020-09-18 13:30:40,2020-09-18 13:30:40,,1486381,1706266,,,,a7aaed53b33cdd85eee6308d6bc7a240,37a6259cc0c1dae299a7866489dff0bd +2020-11-26 18:51:39,120338492,FALSE,2020-04-16 13:25:03,2020-04-16 13:25:03,,1486381,1706266,,,,e11b8d7610e2205e2c3cb233b926d56d,37a6259cc0c1dae299a7866489dff0bd +2020-11-26 18:51:39,171529540,FALSE,2020-08-03 2:49:24,2020-08-03 2:49:24,,1486381,1706266,,,,6c5237eee681e041f8def82aff141375,37a6259cc0c1dae299a7866489dff0bd +2020-11-26 18:51:39,249658461,FALSE,2020-11-26 18:51:39,2020-11-26 18:51:39,,1486381,1706266,,,,f053faea765fc8b6632e6099f62b09f1,37a6259cc0c1dae299a7866489dff0bd \ No newline at end of file diff --git a/integration_tests/dbt_project.yml b/integration_tests/dbt_project.yml index fb30f1d..e1f8a7f 100644 --- a/integration_tests/dbt_project.yml +++ b/integration_tests/dbt_project.yml @@ -1,6 +1,6 @@ name: 'hubspot_source_integration_tests' -version: '0.3.1' +version: '0.3.2' profile: 'integration_tests' config-version: 2 diff --git a/macros/get_company_columns.sql b/macros/get_company_columns.sql index 26a8177..626762d 100644 --- a/macros/get_company_columns.sql +++ b/macros/get_company_columns.sql @@ -3,7 +3,17 @@ {% set columns = [ {"name": "_fivetran_synced", "datatype": dbt_utils.type_timestamp()}, {"name": "id", "datatype": dbt_utils.type_int()}, - {"name": "is_deleted", "datatype": "boolean"} + {"name": "is_deleted", "datatype": "boolean"}, + {"name": "property_name", "datatype": dbt_utils.type_string()}, + {"name": "property_description", "datatype": dbt_utils.type_string()}, + {"name": "property_createdate", "datatype": dbt_utils.type_timestamp()}, + {"name": "property_industry", "datatype": dbt_utils.type_string()}, + {"name": "property_address", "datatype": dbt_utils.type_string()}, + {"name": "property_address_2", "datatype": dbt_utils.type_string()}, + {"name": "property_city", "datatype": dbt_utils.type_string()}, + {"name": "property_state", "datatype": dbt_utils.type_string()}, + {"name": "property_country", "datatype": dbt_utils.type_string()}, + {"name": "property_annualrevenue", "datatype": dbt_utils.type_int()} ] %} {{ fivetran_utils.add_pass_through_columns(columns, var('hubspot__company_pass_through_columns')) }} diff --git a/macros/get_contact_columns.sql b/macros/get_contact_columns.sql index 5aba502..fd77988 100644 --- a/macros/get_contact_columns.sql +++ b/macros/get_contact_columns.sql @@ -4,7 +4,13 @@ {"name": "_fivetran_deleted", "datatype": "boolean"}, {"name": "_fivetran_synced", "datatype": dbt_utils.type_timestamp()}, {"name": "id", "datatype": dbt_utils.type_int()}, - {"name": "property_email", "datatype": dbt_utils.type_string()} + {"name": "property_email", "datatype": dbt_utils.type_string()}, + {"name": "property_company", "datatype": dbt_utils.type_string()}, + {"name": "property_firstname", "datatype": dbt_utils.type_string()}, + {"name": "property_lastname", "datatype": dbt_utils.type_string()}, + {"name": "property_createdate", "datatype": dbt_utils.type_timestamp()}, + {"name": "property_jobtitle", "datatype": dbt_utils.type_string()}, + {"name": "property_annualrevenue", "datatype": dbt_utils.type_int()} ] %} {{ fivetran_utils.add_pass_through_columns(columns, var('hubspot__contact_pass_through_columns')) }} diff --git a/macros/get_deal_columns.sql b/macros/get_deal_columns.sql index f4bc18d..d46ced5 100644 --- a/macros/get_deal_columns.sql +++ b/macros/get_deal_columns.sql @@ -7,7 +7,12 @@ {"name": "deal_pipeline_stage_id", "datatype": dbt_utils.type_string()}, {"name": "is_deleted", "datatype": "boolean"}, {"name": "owner_id", "datatype": dbt_utils.type_int()}, - {"name": "portal_id", "datatype": dbt_utils.type_int()} + {"name": "portal_id", "datatype": dbt_utils.type_int()}, + {"name": "property_dealname", "datatype": dbt_utils.type_string()}, + {"name": "property_description", "datatype": dbt_utils.type_string()}, + {"name": "property_amount", "datatype": dbt_utils.type_int()}, + {"name": "property_closedate", "datatype": dbt_utils.type_timestamp()}, + {"name": "property_createdate", "datatype": dbt_utils.type_timestamp()} ] %} {{ fivetran_utils.add_pass_through_columns(columns, var('hubspot__deal_pass_through_columns')) }} diff --git a/macros/get_ticket_columns.sql b/macros/get_ticket_columns.sql index 28de546..c9be757 100644 --- a/macros/get_ticket_columns.sql +++ b/macros/get_ticket_columns.sql @@ -3,7 +3,17 @@ {% set columns = [ {"name": "_fivetran_synced", "datatype": dbt_utils.type_timestamp()}, {"name": "id", "datatype": dbt_utils.type_int()}, - {"name": "is_deleted", "datatype": "boolean"} + {"name": "is_deleted", "datatype": "boolean"}, + {"name": "property_closed_date", "datatype": dbt_utils.type_timestamp()}, + {"name": "property_createdate", "datatype": dbt_utils.type_timestamp()}, + {"name": "property_first_agent_reply_date", "datatype": dbt_utils.type_timestamp()}, + {"name": "property_hs_pipeline", "datatype": dbt_utils.type_string()}, + {"name": "property_hs_pipeline_stage", "datatype": dbt_utils.type_string()}, + {"name": "property_hs_ticket_category", "datatype": dbt_utils.type_string()}, + {"name": "property_hs_ticket_priority", "datatype": dbt_utils.type_string()}, + {"name": "property_hubspot_owner_id", "datatype": dbt_utils.type_int()}, + {"name": "property_subject", "datatype": dbt_utils.type_string()}, + {"name": "property_content", "datatype": dbt_utils.type_string()} ] %} {{ fivetran_utils.add_pass_through_columns(columns, var('hubspot__ticket_pass_through_columns')) }} diff --git a/models/src_hubspot.yml b/models/src_hubspot.yml index fceac2c..3557ca8 100644 --- a/models/src_hubspot.yml +++ b/models/src_hubspot.yml @@ -95,6 +95,36 @@ sources: - name: is_deleted description: '{{ doc("is_deleted") }}' + + - name: property_name + description: The name of the company. + + - name: property_description + description: A short statement about the company's mission and goals. + + - name: property_createdate + description: The date the company was added to your account. + + - name: property_industry + description: The type of business the company performs. + + - name: property_address + description: The street address of the company. + + - name: property_address_2 + description: Additional address information for the company. + + - name: property_city + description: The city where the company is located. + + - name: property_state + description: The state where the company is located. + + - name: property_country + description: The country where the company is located. + + - name: property_annualrevenue + description: The actual or estimated annual revenue of the company. - name: company_property_history description: Each record represents a change to company record in Hubspot. @@ -132,6 +162,27 @@ sources: - name: property_email description: The email address of the contact. + - name: property_company + description: The name of the contact's company + + - name: property_firstname + description: The contact's first name. + + - name: property_lastname + description: The contact's last name. + + - name: property_email + description: The contact's email. + + - name: property_createdate + description: The date that the contact was created in your HubSpot account. + + - name: property_jobtitle + description: The contact's job title. + + - name: property_annualrevenue + description: The contact's annual company revenue. + - name: contact_form_submission description: TBD columns: @@ -273,6 +324,21 @@ sources: - name: owner_id description: The ID of the deal's owner. + - name: property_dealname + description: The name you have given this deal. + + - name: property_description + description: A brief description of the deal. + + - name: property_amount + description: The total value of the deal in the deal's currency. + + - name: property_closedate + description: The day the deal is expected to close, or was closed. + + - name: property_createdate + description: The date the deal was created. This property is set automatically by HubSpot. + - name: deal_stage description: Each record represents a deal stage. columns: @@ -1269,11 +1335,26 @@ sources: - name: portal_id description: '{{ doc("portal_id") }}' + - name: property_closed_date + description: The date the ticket was closed. + + - name: property_createdate + description: The date the ticket was created. + + - name: property_first_agent_reply_date + description: the date for the first agent reply on the ticket. + - name: property_hs_pipeline description: The ID of the ticket's pipeline. - name: property_hs_pipeline_stage description: The ID of the ticket's pipeline stage. + + - name: property_hs_ticket_priority + description: The priority of the ticket. + + - name: property_hs_ticket_category + description: The category of the ticket. - name: property_hubspot_owner_id description: The ID of the deal's owner. @@ -1284,8 +1365,3 @@ sources: - name: property_content description: Text in body of the ticket. - - name: property_reason_for_contact - description: Reason for customer contact. - - - name: property_root_cause - description: Root cause of customer contact. diff --git a/models/stg_hubspot__company.sql b/models/stg_hubspot__company.sql index 90d302a..d0938ab 100644 --- a/models/stg_hubspot__company.sql +++ b/models/stg_hubspot__company.sql @@ -21,7 +21,17 @@ with base as ( select id as company_id, - _fivetran_synced + _fivetran_synced, + property_name as company_name, + property_description as description, + property_createdate as created_at, + property_industry as industry, + property_address as street_address, + property_address_2 as street_address_2, + property_city as city, + property_state as state, + property_country as country, + property_annualrevenue as company_annual_revenue --The below macro adds the fields defined within your hubspot__ticket_pass_through_columns variable into the staging model {{ fivetran_utils.fill_pass_through_columns('hubspot__company_pass_through_columns') }} diff --git a/models/stg_hubspot__company.yml b/models/stg_hubspot__company.yml index 3e6b9e3..ee2b435 100644 --- a/models/stg_hubspot__company.yml +++ b/models/stg_hubspot__company.yml @@ -40,4 +40,34 @@ models: - name: is_deleted description: '{{ doc("is_deleted") }}' + + - name: company_name + description: The name of the company. + + - name: description + description: A short statement about the company's mission and goals. + + - name: created_at + description: The date the company was added to your account. + + - name: industry + description: The type of business the company performs. + + - name: street_address + description: The street address of the company. + + - name: street_address_2 + description: Additional address information for the company. + + - name: city + description: The city where the company is located. + + - name: state + description: The state where the company is located. + + - name: country + description: The country where the company is located. + + - name: company_annual_revenue + description: The actual or estimated annual revenue of the company. \ No newline at end of file diff --git a/models/stg_hubspot__contact.sql b/models/stg_hubspot__contact.sql index 2d23dbe..9a9ab7d 100644 --- a/models/stg_hubspot__contact.sql +++ b/models/stg_hubspot__contact.sql @@ -23,8 +23,13 @@ with base as ( _fivetran_deleted, _fivetran_synced, property_email as email, - id as contact_id - + id as contact_id, + property_company as contact_company, + property_firstname as first_name, + property_lastname as last_name, + property_createdate as created_at, + property_jobtitle as job_title, + property_annualrevenue as company_annual_revenue --The below macro adds the fields defined within your hubspot__contact_pass_through_columns variable into the staging model {{ fivetran_utils.fill_pass_through_columns('hubspot__contact_pass_through_columns') }} diff --git a/models/stg_hubspot__contact.yml b/models/stg_hubspot__contact.yml index 1d97656..333b011 100644 --- a/models/stg_hubspot__contact.yml +++ b/models/stg_hubspot__contact.yml @@ -104,4 +104,24 @@ models: - name: email description: The email address of the contact. - \ No newline at end of file + + - name: contact_company + description: The name of the contact's company + + - name: first_name + description: The contact's first name. + + - name: last_name + description: The contact's last name. + + - name: email + description: The contact's email. + + - name: created_at + description: The date that the contact was created in your HubSpot account. + + - name: job_title + description: The contact's job title. + + - name: company_annual_revenue + description: The contact's annual company revenue. \ No newline at end of file diff --git a/models/stg_hubspot__deal.sql b/models/stg_hubspot__deal.sql index beeaf39..ed4a50b 100644 --- a/models/stg_hubspot__deal.sql +++ b/models/stg_hubspot__deal.sql @@ -24,7 +24,12 @@ with base as ( deal_pipeline_id, deal_pipeline_stage_id, owner_id, - portal_id + portal_id, + property_dealname as deal_name, + property_description as description, + property_amount as amount, + property_closedate as closed_at, + property_createdate as created_at --The below macro adds the fields defined within your hubspot__deal_pass_through_columns variable into the staging model {{ fivetran_utils.fill_pass_through_columns('hubspot__deal_pass_through_columns') }} diff --git a/models/stg_hubspot__deal.yml b/models/stg_hubspot__deal.yml index ed9fbf9..8156a8b 100644 --- a/models/stg_hubspot__deal.yml +++ b/models/stg_hubspot__deal.yml @@ -83,6 +83,21 @@ models: - name: owner_id description: The ID of the deal's owner. + - name: deal_name + description: The name you have given this deal. + + - name: description + description: A brief description of the deal. + + - name: amount + description: The total value of the deal in the deal's currency. + + - name: closed_at + description: The day the deal is expected to close, or was closed. + + - name: created_at + description: The date the deal was created. This property is set automatically by HubSpot. + - name: stg_hubspot__deal_stage description: Each record represents a deal stage. columns: diff --git a/models/stg_hubspot__ticket.sql b/models/stg_hubspot__ticket.sql index 69d890b..b3590e8 100644 --- a/models/stg_hubspot__ticket.sql +++ b/models/stg_hubspot__ticket.sql @@ -22,7 +22,17 @@ with base as ( select id as ticket_id, _fivetran_synced, - is_deleted + is_deleted, + property_closed_date as closed_at, + property_createdate as created_at, + property_first_agent_reply_date as first_agent_reply_at, + property_hs_pipeline as ticket_pipeline_id, + property_hs_pipeline_stage as ticket_pipeline_stage_id, + property_hs_ticket_category as ticket_category, + property_hs_ticket_priority as ticket_priority, + property_hubspot_owner_id as owner_id, + property_subject as ticket_subject, + property_content as ticket_content --The below macro adds the fields defined within your hubspot__ticket_pass_through_columns variable into the staging model {{ fivetran_utils.fill_pass_through_columns('hubspot__ticket_pass_through_columns') }} diff --git a/models/stg_hubspot__ticket.yml b/models/stg_hubspot__ticket.yml index 00616bf..c6610a0 100644 --- a/models/stg_hubspot__ticket.yml +++ b/models/stg_hubspot__ticket.yml @@ -86,33 +86,45 @@ models: - unique - not_null + - name: _fivetran_synced + description: '{{ doc("_fivetran_synced") }}' + - name: is_deleted description: Whether the record was deleted. - name: portal_id description: '{{ doc("portal_id") }}' + - name: closed_at + description: The date the ticket was closed. + + - name: created_at + description: The date the ticket was created. + + - name: first_agent_reply_at + description: the date for the first agent reply on the ticket. + - name: ticket_pipeline_id description: The ID of the ticket's pipeline. - name: ticket_pipeline_stage_id description: The ID of the ticket's pipeline stage. + + - name: ticket_priority + description: The priority of the ticket. + + - name: ticket_category + description: The category of the ticket. - name: owner_id description: The ID of the deal's owner. - - name: subject + - name: ticket_subject description: Short summary of ticket. - - name: content + - name: ticket_content description: Text in body of the ticket. - - name: reason_for_contact - description: Reason for customer contact. - - - name: root_cause - description: Root cause of customer contact. - - name: stg_hubspot__ticket_pipeline_stage description: Each record represents a ticket pipeline stage. columns: @@ -128,7 +140,7 @@ models: description: Boolean indicating if the pipeline stage is closed. - name: label description: The human-readable label for the stage. The label is used when showing the stage in HubSpot. - - name: pipeline_id + - name: ticket_pipeline_id description: The ID of the pipeline. - name: stage_id description: The ID of the pipeline stage. @@ -150,5 +162,5 @@ models: description: The human-readable label for the stage. The label is used when showing the stage in HubSpot. - name: object_type_id description: Reference to the object type. - - name: pipeline_id + - name: ticket_pipeline_id description: Reference to the pipeline. diff --git a/models/stg_hubspot__ticket_pipeline.sql b/models/stg_hubspot__ticket_pipeline.sql index 3e17660..16c8131 100644 --- a/models/stg_hubspot__ticket_pipeline.sql +++ b/models/stg_hubspot__ticket_pipeline.sql @@ -23,7 +23,7 @@ fields as ( final as ( select - cast(pipeline_id as {{ dbt_utils.type_int() }} ) as pipeline_id, + cast(pipeline_id as {{ dbt_utils.type_int() }} ) as ticket_pipeline_id, _fivetran_deleted, _fivetran_synced, active as is_active, diff --git a/models/stg_hubspot__ticket_pipeline_stage.sql b/models/stg_hubspot__ticket_pipeline_stage.sql index 85f2db8..cbd2aae 100644 --- a/models/stg_hubspot__ticket_pipeline_stage.sql +++ b/models/stg_hubspot__ticket_pipeline_stage.sql @@ -29,7 +29,7 @@ final as ( display_order, is_closed, label, - cast(pipeline_id as {{ dbt_utils.type_int() }} ) as pipeline_id, + cast(pipeline_id as {{ dbt_utils.type_int() }} ) as ticket_pipeline_id, stage_id, ticket_state from fields From c5827786c24449455ddece0ff14db8edcc59fd0b Mon Sep 17 00:00:00 2001 From: fivetran-joemarkiewicz Date: Tue, 6 Apr 2021 10:17:57 -0500 Subject: [PATCH 2/6] version keep --- dbt_project.yml | 2 +- integration_tests/dbt_project.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dbt_project.yml b/dbt_project.yml index 4abed44..b3698c9 100644 --- a/dbt_project.yml +++ b/dbt_project.yml @@ -1,5 +1,5 @@ name: 'hubspot_source' -version: '0.3.2' +version: '0.3.1' config-version: 2 require-dbt-version: [">=0.18.0", "<0.20.0"] diff --git a/integration_tests/dbt_project.yml b/integration_tests/dbt_project.yml index e1f8a7f..fb30f1d 100644 --- a/integration_tests/dbt_project.yml +++ b/integration_tests/dbt_project.yml @@ -1,6 +1,6 @@ name: 'hubspot_source_integration_tests' -version: '0.3.2' +version: '0.3.1' profile: 'integration_tests' config-version: 2 From 9ddca18b6c52489e2c0498ccca0a17a94d0e7b7d Mon Sep 17 00:00:00 2001 From: fivetran-joemarkiewicz Date: Tue, 6 Apr 2021 11:59:06 -0500 Subject: [PATCH 3/6] stage id name change --- README.md | 1 - models/stg_hubspot__ticket_pipeline_stage.sql | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 0063e2c..879abb2 100644 --- a/README.md +++ b/README.md @@ -107,7 +107,6 @@ vars: transform_sql: "cast(this_other_field as string)" hubspot__contact_pass_through_columns: - name: "wow_i_can_add_all_my_custom_fields" - alias: "best_field" hubspot__company_pass_through_columns: - name: "this_is_radical" alias: "radical_field" diff --git a/models/stg_hubspot__ticket_pipeline_stage.sql b/models/stg_hubspot__ticket_pipeline_stage.sql index cbd2aae..8128c84 100644 --- a/models/stg_hubspot__ticket_pipeline_stage.sql +++ b/models/stg_hubspot__ticket_pipeline_stage.sql @@ -30,7 +30,7 @@ final as ( is_closed, label, cast(pipeline_id as {{ dbt_utils.type_int() }} ) as ticket_pipeline_id, - stage_id, + stage_id as ticket_pipeline_stage_id, ticket_state from fields where not coalesce(_fivetran_deleted, false) From 1371ceda7df2016ed0be251429d2467b2599733a Mon Sep 17 00:00:00 2001 From: Jamesyoub Date: Tue, 6 Apr 2021 16:37:18 -0400 Subject: [PATCH 4/6] stg_hubspot__deal missing _fivetran_synced --- models/stg_hubspot__deal.sql | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/models/stg_hubspot__deal.sql b/models/stg_hubspot__deal.sql index ed4a50b..2b32c3b 100644 --- a/models/stg_hubspot__deal.sql +++ b/models/stg_hubspot__deal.sql @@ -4,7 +4,7 @@ with base as ( select * from {{ ref('stg_hubspot__deal_tmp') }} - where not coalesce(is_deleted, false) + where not coalesce(is_deleted, false) ), macro as ( @@ -20,6 +20,7 @@ with base as ( ), fields as ( select + _fivetran_synced, deal_id, deal_pipeline_id, deal_pipeline_stage_id, @@ -35,8 +36,8 @@ with base as ( {{ fivetran_utils.fill_pass_through_columns('hubspot__deal_pass_through_columns') }} from macro - + ) select * -from fields \ No newline at end of file +from fields From a3a3066110479afb83830b6e3d262614c732bc7e Mon Sep 17 00:00:00 2001 From: Jamesyoub Date: Tue, 6 Apr 2021 16:38:01 -0400 Subject: [PATCH 5/6] casting ID fields and making labels more specific --- models/stg_hubspot__ticket.yml | 12 ++++++------ models/stg_hubspot__ticket_pipeline.sql | 12 ++++++------ models/stg_hubspot__ticket_pipeline_stage.sql | 14 +++++++------- 3 files changed, 19 insertions(+), 19 deletions(-) diff --git a/models/stg_hubspot__ticket.yml b/models/stg_hubspot__ticket.yml index c6610a0..bc08fc2 100644 --- a/models/stg_hubspot__ticket.yml +++ b/models/stg_hubspot__ticket.yml @@ -97,10 +97,10 @@ models: - name: closed_at description: The date the ticket was closed. - + - name: created_at description: The date the ticket was created. - + - name: first_agent_reply_at description: the date for the first agent reply on the ticket. @@ -109,7 +109,7 @@ models: - name: ticket_pipeline_stage_id description: The ID of the ticket's pipeline stage. - + - name: ticket_priority description: The priority of the ticket. @@ -138,7 +138,7 @@ models: description: Used to determine the order in which the stages appear when viewed in HubSpot. - name: is_closed description: Boolean indicating if the pipeline stage is closed. - - name: label + - name: pipeline_stage_label description: The human-readable label for the stage. The label is used when showing the stage in HubSpot. - name: ticket_pipeline_id description: The ID of the pipeline. @@ -146,7 +146,7 @@ models: description: The ID of the pipeline stage. - name: ticket_state description: State of the ticket. - + - name: stg_hubspot__ticket_pipeline description: Each record represents a ticket pipeline. columns: @@ -158,7 +158,7 @@ models: description: Boolean indicating whether the pipeline is active. - name: display_order description: Used to determine the order in which the stages appear when viewed in HubSpot. - - name: label + - name: pipeline_label description: The human-readable label for the stage. The label is used when showing the stage in HubSpot. - name: object_type_id description: Reference to the object type. diff --git a/models/stg_hubspot__ticket_pipeline.sql b/models/stg_hubspot__ticket_pipeline.sql index 16c8131..c32becd 100644 --- a/models/stg_hubspot__ticket_pipeline.sql +++ b/models/stg_hubspot__ticket_pipeline.sql @@ -2,7 +2,7 @@ with base as ( - select * + select * from {{ ref('stg_hubspot__ticket_pipeline_tmp') }} ), @@ -16,23 +16,23 @@ fields as ( staging_columns=get_ticket_pipeline_columns() ) }} - + from base ), final as ( - - select + + select cast(pipeline_id as {{ dbt_utils.type_int() }} ) as ticket_pipeline_id, _fivetran_deleted, _fivetran_synced, active as is_active, display_order, - label, + label as pipeline_label, object_type_id from fields where not coalesce(_fivetran_deleted, false) ) -select * +select * from final diff --git a/models/stg_hubspot__ticket_pipeline_stage.sql b/models/stg_hubspot__ticket_pipeline_stage.sql index 8128c84..db8ad9f 100644 --- a/models/stg_hubspot__ticket_pipeline_stage.sql +++ b/models/stg_hubspot__ticket_pipeline_stage.sql @@ -2,7 +2,7 @@ with base as ( - select * + select * from {{ ref('stg_hubspot__ticket_pipeline_stage_tmp') }} ), @@ -16,25 +16,25 @@ fields as ( staging_columns=get_ticket_pipeline_stage_columns() ) }} - + from base ), final as ( - - select + + select _fivetran_deleted, _fivetran_synced, active as is_active, display_order, is_closed, - label, + label as pipeline_stage_label, cast(pipeline_id as {{ dbt_utils.type_int() }} ) as ticket_pipeline_id, - stage_id as ticket_pipeline_stage_id, + cast(stage_id as {{ dbt_utils.type_int() }} ) as ticket_pipeline_stage_id, ticket_state from fields where not coalesce(_fivetran_deleted, false) ) -select * +select * from final From 4c8fe7965705a016ff8930d39a43d7765ef3d38d Mon Sep 17 00:00:00 2001 From: Joe Markiewicz <74217849+fivetran-joemarkiewicz@users.noreply.github.com> Date: Tue, 6 Apr 2021 15:48:26 -0500 Subject: [PATCH 6/6] Update models/stg_hubspot__ticket.yml --- models/stg_hubspot__ticket.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/stg_hubspot__ticket.yml b/models/stg_hubspot__ticket.yml index bc08fc2..caddc7a 100644 --- a/models/stg_hubspot__ticket.yml +++ b/models/stg_hubspot__ticket.yml @@ -142,7 +142,7 @@ models: description: The human-readable label for the stage. The label is used when showing the stage in HubSpot. - name: ticket_pipeline_id description: The ID of the pipeline. - - name: stage_id + - name: ticket_pipeline_stage_id description: The ID of the pipeline stage. - name: ticket_state description: State of the ticket.