-
Notifications
You must be signed in to change notification settings - Fork 47
Expand file tree
/
Copy pathrun_results.json
More file actions
1 lines (1 loc) · 347 KB
/
Copy pathrun_results.json
File metadata and controls
1 lines (1 loc) · 347 KB
1
{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/run-results/v5.json", "dbt_version": "1.7.18", "generated_at": "2024-09-03T21:23:55.268611Z", "invocation_id": "0f7c4e79-5863-434c-9ad2-054088b12066", "env": {}}, "results": [{"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:23.027747Z", "completed_at": "2024-09-03T21:23:24.008538Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:24.009401Z", "completed_at": "2024-09-03T21:23:24.009416Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 1.1363701820373535, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__contact_list_tmp", "compiled": true, "compiled_code": "\n\nselect \"id\",\n \"_fivetran_deleted\",\n \"_fivetran_synced\",\n \"created_at\",\n \"deleteable\",\n \"dynamic\",\n \"metadata_error\",\n \"metadata_last_processing_state_change_at\",\n \"metadata_last_size_change_at\",\n \"metadata_processing\",\n \"metadata_size\",\n \"offset\",\n \"portal_id\",\n \"updated_at\",\n \"name\"\nfrom \"postgres\".\"hubspot_integration_tests_58\".\"contact_list_data\"", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__contact_list_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:22.968373Z", "completed_at": "2024-09-03T21:23:24.058099Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:24.058558Z", "completed_at": "2024-09-03T21:23:24.058563Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 1.18837571144104, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__company_property_history_tmp", "compiled": true, "compiled_code": "\n\nselect \"company_id\",\n \"timestamp\",\n \"_fivetran_synced\",\n \"source\",\n \"source_id\",\n \"name\",\n \"value\"\nfrom \"postgres\".\"hubspot_integration_tests_58\".\"company_property_history_data\"", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__company_property_history_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:22.992453Z", "completed_at": "2024-09-03T21:23:24.054659Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:24.055217Z", "completed_at": "2024-09-03T21:23:24.055223Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 1.1945583820343018, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__company_tmp", "compiled": true, "compiled_code": "\n\nselect \"id\",\n \"is_deleted\"\nfrom \"postgres\".\"hubspot_integration_tests_58\".\"company_data\"", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__company_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:23.031916Z", "completed_at": "2024-09-03T21:23:24.076221Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:24.076724Z", "completed_at": "2024-09-03T21:23:24.076728Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 1.1968262195587158, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__contact_list_member_tmp", "compiled": true, "compiled_code": "\n\nselect \"contact_id\",\n \"contact_list_id\",\n \"_fivetran_deleted\",\n \"_fivetran_synced\",\n \"added_at\"\nfrom \"postgres\".\"hubspot_integration_tests_58\".\"contact_list_member_data\"", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__contact_list_member_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:24.105630Z", "completed_at": "2024-09-03T21:23:25.140765Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:25.141245Z", "completed_at": "2024-09-03T21:23:25.141251Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 1.1435749530792236, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__contact_merge_audit_tmp", "compiled": true, "compiled_code": "\n\nselect \"canonical_vid\",\n \"contact_id\",\n \"vid_to_merge\",\n \"_fivetran_synced\",\n \"entity_id\",\n \"first_name\",\n \"last_name\",\n \"num_properties_moved\",\n \"timestamp\",\n \"user_id\"\nfrom \"postgres\".\"hubspot_integration_tests_58\".\"contact_merge_audit_data\"", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__contact_merge_audit_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:24.155947Z", "completed_at": "2024-09-03T21:23:25.232828Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:25.233314Z", "completed_at": "2024-09-03T21:23:25.233319Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 1.1763970851898193, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__contact_property_history_tmp", "compiled": true, "compiled_code": "\n\nselect \"contact_id\",\n \"timestamp\",\n \"_fivetran_synced\",\n \"source\",\n \"name\",\n \"value\",\n \"source_id\"\nfrom \"postgres\".\"hubspot_integration_tests_58\".\"contact_property_history_data\"", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__contact_property_history_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:24.163073Z", "completed_at": "2024-09-03T21:23:25.238346Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:25.238797Z", "completed_at": "2024-09-03T21:23:25.238801Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 1.1808030605316162, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__contact_tmp", "compiled": true, "compiled_code": "\n\nselect \"_fivetran_deleted\",\n \"_fivetran_synced\",\n \"property_email\",\n \"id\",\n \"property_company\",\n \"property_firstname\",\n \"property_lastname\",\n \"property_email_1\",\n \"property_createdate\",\n \"property_jobtitle\",\n \"property_annualrevenue\",\n \"property_hs_calculated_merged_vids\",\n \"property_created_at\"\nfrom \"postgres\".\"hubspot_integration_tests_58\".\"contact_data\"", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__contact_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:24.179619Z", "completed_at": "2024-09-03T21:23:25.258218Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:25.258886Z", "completed_at": "2024-09-03T21:23:25.258893Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 1.1823060512542725, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__deal_company_tmp", "compiled": true, "compiled_code": "\n\nselect \"company_id\",\n \"deal_id\",\n \"type_id\"\nfrom \"postgres\".\"hubspot_integration_tests_58\".\"deal_company_data\"", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__deal_company_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:25.250217Z", "completed_at": "2024-09-03T21:23:26.256173Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:26.256685Z", "completed_at": "2024-09-03T21:23:26.256691Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 1.1149110794067383, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__deal_contact_tmp", "compiled": true, "compiled_code": "\n\nselect \"contact_id\",\n \"deal_id\",\n \"_fivetran_synced\",\n \"type_id\"\nfrom \"postgres\".\"hubspot_integration_tests_58\".\"deal_contact_data\"", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__deal_contact_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:25.361971Z", "completed_at": "2024-09-03T21:23:26.325042Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:26.325536Z", "completed_at": "2024-09-03T21:23:26.325542Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 1.0784461498260498, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__deal_property_history_tmp", "compiled": true, "compiled_code": "\n\nselect \"deal_id\",\n \"timestamp\",\n \"_fivetran_synced\",\n \"source\",\n \"name\",\n \"source_id\",\n \"value\"\nfrom \"postgres\".\"hubspot_integration_tests_58\".\"deal_property_history_data\"", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__deal_property_history_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:25.333098Z", "completed_at": "2024-09-03T21:23:26.382262Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:26.382741Z", "completed_at": "2024-09-03T21:23:26.382744Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 1.1589350700378418, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__deal_pipeline_stage_tmp", "compiled": true, "compiled_code": "\n\nselect \"_fivetran_deleted\",\n \"_fivetran_synced\",\n \"active\",\n \"closed_won\",\n \"display_order\",\n \"probability\",\n \"stage_id\",\n \"label\",\n \"pipeline_id\",\n \"created_at\",\n \"updated_at\"\nfrom \"postgres\".\"hubspot_integration_tests_58\".\"deal_pipeline_stage_data\"", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__deal_pipeline_stage_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:25.344515Z", "completed_at": "2024-09-03T21:23:26.381285Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:26.381815Z", "completed_at": "2024-09-03T21:23:26.381820Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 1.1490809917449951, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__deal_pipeline_tmp", "compiled": true, "compiled_code": "\n\nselect \"pipeline_id\",\n \"_fivetran_deleted\",\n \"_fivetran_synced\",\n \"active\",\n \"display_order\",\n \"label\",\n \"created_at\",\n \"updated_at\"\nfrom \"postgres\".\"hubspot_integration_tests_58\".\"deal_pipeline_data\"", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__deal_pipeline_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:26.365682Z", "completed_at": "2024-09-03T21:23:27.431429Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:27.431969Z", "completed_at": "2024-09-03T21:23:27.431976Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 1.1689891815185547, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__deal_stage_tmp", "compiled": true, "compiled_code": "\n\nselect \"_fivetran_start\",\n \"deal_id\",\n \"_fivetran_active\",\n \"_fivetran_end\",\n \"_fivetran_synced\",\n \"date_entered\",\n \"source\",\n \"source_id\",\n \"value\"\nfrom \"postgres\".\"hubspot_integration_tests_58\".\"deal_stage_data\"", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__deal_stage_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:26.441299Z", "completed_at": "2024-09-03T21:23:27.576416Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:27.577841Z", "completed_at": "2024-09-03T21:23:27.577851Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 1.2480828762054443, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__deal_tmp", "compiled": true, "compiled_code": "\n\nselect \"deal_id\",\n \"owner_id\",\n \"deal_pipeline_id\",\n \"deal_pipeline_stage_id\",\n \"is_deleted\"\nfrom \"postgres\".\"hubspot_integration_tests_58\".\"deal_data\"", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__deal_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:26.499581Z", "completed_at": "2024-09-03T21:23:27.649828Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:27.651111Z", "completed_at": "2024-09-03T21:23:27.651117Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 1.276982069015503, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__email_event_bounce_tmp", "compiled": true, "compiled_code": "\n\nselect \"id\",\n \"_fivetran_synced\",\n \"category\",\n \"status\",\n \"response\"\nfrom \"postgres\".\"hubspot_integration_tests_58\".\"email_event_bounce_data\"", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__email_event_bounce_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:26.494643Z", "completed_at": "2024-09-03T21:23:27.640352Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:27.642703Z", "completed_at": "2024-09-03T21:23:27.642722Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 1.2784221172332764, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__email_campaign_tmp", "compiled": true, "compiled_code": "\n\nselect \"id\",\n \"_fivetran_synced\",\n \"app_id\",\n \"content_id\",\n \"num_included\",\n \"num_queued\",\n \"sub_type\",\n \"type\",\n \"app_name\",\n \"name\",\n \"subject\"\nfrom \"postgres\".\"hubspot_integration_tests_58\".\"email_campaign_data\"", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__email_campaign_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:27.548883Z", "completed_at": "2024-09-03T21:23:28.702621Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:28.703098Z", "completed_at": "2024-09-03T21:23:28.703105Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 1.2602131366729736, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__email_event_click_tmp", "compiled": true, "compiled_code": "\n\nselect \"id\",\n \"_fivetran_synced\",\n \"referer\",\n \"browser\",\n \"location\",\n \"ip_address\",\n \"url\",\n \"user_agent\"\nfrom \"postgres\".\"hubspot_integration_tests_58\".\"email_event_click_data\"", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__email_event_click_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:27.702808Z", "completed_at": "2024-09-03T21:23:28.815331Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:28.816165Z", "completed_at": "2024-09-03T21:23:28.816176Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 1.2302567958831787, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__email_event_deferred_tmp", "compiled": true, "compiled_code": "\n\nselect \"id\",\n \"_fivetran_synced\",\n \"attempt\",\n \"response\"\nfrom \"postgres\".\"hubspot_integration_tests_58\".\"email_event_deferred_data\"", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__email_event_deferred_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:27.778999Z", "completed_at": "2024-09-03T21:23:28.939174Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:28.939647Z", "completed_at": "2024-09-03T21:23:28.939653Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 1.2619280815124512, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__email_event_dropped_tmp", "compiled": true, "compiled_code": "\n\nselect \"id\",\n \"_fivetran_synced\",\n \"drop_reason\",\n \"bcc\",\n \"cc\",\n \"drop_message\",\n \"from\",\n \"reply_to\",\n \"subject\"\nfrom \"postgres\".\"hubspot_integration_tests_58\".\"email_event_dropped_data\"", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__email_event_dropped_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:27.774187Z", "completed_at": "2024-09-03T21:23:28.943924Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:28.944379Z", "completed_at": "2024-09-03T21:23:28.944382Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 1.269521951675415, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__email_event_delivered_tmp", "compiled": true, "compiled_code": "\n\nselect \"id\",\n \"_fivetran_synced\",\n \"response\",\n \"smtp_id\"\nfrom \"postgres\".\"hubspot_integration_tests_58\".\"email_event_delivered_data\"", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__email_event_delivered_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:28.808084Z", "completed_at": "2024-09-03T21:23:29.862933Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:29.863782Z", "completed_at": "2024-09-03T21:23:29.863798Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 1.16264009475708, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__email_event_forward_tmp", "compiled": true, "compiled_code": "\n\nselect \"id\",\n \"_fivetran_synced\",\n \"browser\",\n \"ip_address\",\n \"location\",\n \"user_agent\"\nfrom \"postgres\".\"hubspot_integration_tests_58\".\"email_event_forward_data\"", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__email_event_forward_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:28.929755Z", "completed_at": "2024-09-03T21:23:29.886034Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:29.886537Z", "completed_at": "2024-09-03T21:23:29.886543Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 1.0659241676330566, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__email_event_open_tmp", "compiled": true, "compiled_code": "\n\nselect \"id\",\n \"_fivetran_synced\",\n \"duration\",\n \"browser\",\n \"ip_address\",\n \"location\",\n \"user_agent\"\nfrom \"postgres\".\"hubspot_integration_tests_58\".\"email_event_open_data\"", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__email_event_open_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:29.043925Z", "completed_at": "2024-09-03T21:23:30.108662Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:30.110005Z", "completed_at": "2024-09-03T21:23:30.110019Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 1.188162088394165, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__email_event_sent_tmp", "compiled": true, "compiled_code": "\n\nselect \"id\",\n \"_fivetran_synced\",\n \"bcc\",\n \"cc\",\n \"from\",\n \"reply_to\",\n \"subject\"\nfrom \"postgres\".\"hubspot_integration_tests_58\".\"email_event_sent_data\"", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__email_event_sent_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:29.036483Z", "completed_at": "2024-09-03T21:23:30.114500Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:30.114979Z", "completed_at": "2024-09-03T21:23:30.114984Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 1.204813003540039, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__email_event_print_tmp", "compiled": true, "compiled_code": "\n\nselect \"id\",\n \"_fivetran_synced\",\n \"browser\",\n \"ip_address\",\n \"location\",\n \"user_agent\"\nfrom \"postgres\".\"hubspot_integration_tests_58\".\"email_event_print_data\"", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__email_event_print_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:29.996165Z", "completed_at": "2024-09-03T21:23:31.114672Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:31.115303Z", "completed_at": "2024-09-03T21:23:31.115312Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 1.2275049686431885, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__email_event_status_change_tmp", "compiled": true, "compiled_code": "\n\nselect \"id\",\n \"_fivetran_synced\",\n \"bounced\",\n \"portal_subscription_status\",\n \"requested_by\",\n \"source\",\n \"subscriptions\"\nfrom \"postgres\".\"hubspot_integration_tests_58\".\"email_event_status_change_data\"", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__email_event_status_change_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:29.971209Z", "completed_at": "2024-09-03T21:23:31.118035Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:31.118498Z", "completed_at": "2024-09-03T21:23:31.118502Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 1.2668490409851074, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__email_event_spam_report_tmp", "compiled": true, "compiled_code": "\n\nselect \"id\",\n \"_fivetran_synced\",\n \"ip_address\",\n \"user_agent\"\nfrom \"postgres\".\"hubspot_integration_tests_58\".\"email_event_spam_report_data\"", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__email_event_spam_report_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:30.232840Z", "completed_at": "2024-09-03T21:23:31.313643Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:31.314133Z", "completed_at": "2024-09-03T21:23:31.314140Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 1.1961071491241455, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__email_event_tmp", "compiled": true, "compiled_code": "\n\nselect \"id\",\n \"_fivetran_synced\",\n \"app_id\",\n \"caused_by_created\",\n \"caused_by_id\",\n \"created\",\n \"email_campaign_id\",\n \"obsoleted_by_created\",\n \"obsoleted_by_id\",\n \"portal_id\",\n \"sent_by_created\",\n \"sent_by_id\",\n \"type\",\n \"filtered_event\",\n \"recipient\"\nfrom \"postgres\".\"hubspot_integration_tests_58\".\"email_event_data\"", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__email_event_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:30.242907Z", "completed_at": "2024-09-03T21:23:31.414111Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:31.414648Z", "completed_at": "2024-09-03T21:23:31.414654Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 1.2799088954925537, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__engagement_call_tmp", "compiled": true, "compiled_code": "\n\nselect \"engagement_id\",\n \"_fivetran_deleted\",\n \"_fivetran_synced\",\n \"property_hs_createdate\",\n \"property_hs_timestamp\",\n \"type\"\nfrom \"postgres\".\"hubspot_integration_tests_58\".\"engagement_call_data\"", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__engagement_call_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:31.238822Z", "completed_at": "2024-09-03T21:23:32.195368Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:32.195891Z", "completed_at": "2024-09-03T21:23:32.195904Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 1.061959981918335, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__engagement_contact_tmp", "compiled": true, "compiled_code": "\n\nselect \"contact_id\",\n \"engagement_id\",\n \"engagement_type\",\n \"type_id\",\n \"_fivetran_synced\"\nfrom \"postgres\".\"hubspot_integration_tests_58\".\"engagement_contact_data\"", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__engagement_contact_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:31.226055Z", "completed_at": "2024-09-03T21:23:32.196776Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:32.197998Z", "completed_at": "2024-09-03T21:23:32.198006Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 1.0862090587615967, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__engagement_company_tmp", "compiled": true, "compiled_code": "\n\nselect \"company_id\",\n \"engagement_id\",\n \"engagement_type\",\n \"type_id\",\n \"_fivetran_synced\"\nfrom \"postgres\".\"hubspot_integration_tests_58\".\"engagement_company_data\"", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__engagement_company_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:31.429621Z", "completed_at": "2024-09-03T21:23:32.448320Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:32.448815Z", "completed_at": "2024-09-03T21:23:32.448822Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 1.1389660835266113, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__engagement_deal_tmp", "compiled": true, "compiled_code": "\n\nselect \"deal_id\",\n \"engagement_id\",\n \"engagement_type\",\n \"type_id\",\n \"_fivetran_synced\"\nfrom \"postgres\".\"hubspot_integration_tests_58\".\"engagement_deal_data\"", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__engagement_deal_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:31.524459Z", "completed_at": "2024-09-03T21:23:32.475223Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:32.475682Z", "completed_at": "2024-09-03T21:23:32.475686Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 1.0603859424591064, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__engagement_email_tmp", "compiled": true, "compiled_code": "\n\nselect \"engagement_id\",\n \"_fivetran_deleted\",\n \"_fivetran_synced\",\n \"property_hs_all_owner_ids\",\n \"property_hs_all_team_ids\",\n \"property_hs_createdate\",\n \"property_hs_email_subject\",\n \"property_hs_email_text\",\n \"property_hs_lastmodifieddate\",\n \"property_hs_modified_by\",\n \"property_hs_timestamp\",\n \"property_hubspot_owner_id\",\n \"property_hubspot_team_id\",\n \"type\"\nfrom \"postgres\".\"hubspot_integration_tests_58\".\"engagement_email_data\"", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__engagement_email_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:32.312955Z", "completed_at": "2024-09-03T21:23:33.297319Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:33.298039Z", "completed_at": "2024-09-03T21:23:33.298046Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 1.1012682914733887, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__engagement_note_tmp", "compiled": true, "compiled_code": "\n\nselect \"engagement_id\",\n \"_fivetran_deleted\",\n \"_fivetran_synced\",\n \"property_hs_body_preview\",\n \"property_hs_createdate\",\n \"property_hs_lastmodifieddate\",\n \"property_hs_note_body\",\n \"property_hs_timestamp\",\n \"property_hubspot_owner_id\",\n \"property_hubspot_team_id\",\n \"type\"\nfrom \"postgres\".\"hubspot_integration_tests_58\".\"engagement_note_data\"", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__engagement_note_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:32.302577Z", "completed_at": "2024-09-03T21:23:33.335859Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:33.336373Z", "completed_at": "2024-09-03T21:23:33.336378Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 1.1432340145111084, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__engagement_meeting_tmp", "compiled": true, "compiled_code": "\n\nselect \"engagement_id\",\n \"_fivetran_synced\",\n \"created_from_link_id\",\n \"end_time\",\n \"pre_meeting_prospect_reminders\",\n \"source\",\n \"source_id\",\n \"start_time\",\n \"web_conference_meeting_id\",\n \"meeting_outcome\",\n \"body\",\n \"external_url\",\n \"title\"\nfrom \"postgres\".\"hubspot_integration_tests_58\".\"engagement_meeting_data\"", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__engagement_meeting_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:32.585189Z", "completed_at": "2024-09-03T21:23:33.527723Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:33.528192Z", "completed_at": "2024-09-03T21:23:33.528198Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 1.054399013519287, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__engagement_tmp", "compiled": true, "compiled_code": "\n\nselect \"id\",\n \"type\",\n \"_fivetran_synced\",\n \"portal_id\"\nfrom \"postgres\".\"hubspot_integration_tests_58\".\"engagement_data\"", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__engagement_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:32.572558Z", "completed_at": "2024-09-03T21:23:33.583835Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:33.584298Z", "completed_at": "2024-09-03T21:23:33.584304Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 1.1126079559326172, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__engagement_task_tmp", "compiled": true, "compiled_code": "\n\nselect \"engagement_id\",\n \"_fivetran_deleted\",\n \"_fivetran_synced\",\n \"property_hs_createdate\",\n \"property_hs_object_id\",\n \"property_hs_task_type\",\n \"property_hs_timestamp\",\n \"property_hubspot_owner_id\",\n \"property_hubspot_team_id\",\n \"type\",\n \"task_type\",\n \"property_hs_engagement_source\"\nfrom \"postgres\".\"hubspot_integration_tests_58\".\"engagement_task_data\"", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__engagement_task_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:33.415013Z", "completed_at": "2024-09-03T21:23:34.376908Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:34.377402Z", "completed_at": "2024-09-03T21:23:34.377409Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 1.0665037631988525, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__merged_deal_tmp", "compiled": true, "compiled_code": "\n\nselect \"deal_id\",\n \"merged_deal_id\",\n \"_fivetran_synced\"\nfrom \"postgres\".\"hubspot_integration_tests_58\".\"merged_deal_data\"", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__merged_deal_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:33.445685Z", "completed_at": "2024-09-03T21:23:34.494998Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:34.495568Z", "completed_at": "2024-09-03T21:23:34.495574Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 1.1576509475708008, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__owner_tmp", "compiled": true, "compiled_code": "\n\nselect \"owner_id\",\n \"_fivetran_synced\",\n \"created_at\",\n \"portal_id\",\n \"type\",\n \"updated_at\",\n \"email\",\n \"first_name\",\n \"last_name\"\nfrom \"postgres\".\"hubspot_integration_tests_58\".\"owner_data\"", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__owner_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:33.640121Z", "completed_at": "2024-09-03T21:23:34.551235Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:34.551759Z", "completed_at": "2024-09-03T21:23:34.551764Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 1.018348217010498, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__property_option_tmp", "compiled": true, "compiled_code": "\n\nselect \"label\",\n \"property_id\",\n \"_fivetran_synced\",\n \"display_order\",\n \"hidden\",\n \"value\"\nfrom \"postgres\".\"hubspot_integration_tests_58\".\"property_option_data\"", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__property_option_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:33.685731Z", "completed_at": "2024-09-03T21:23:34.740757Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:34.741245Z", "completed_at": "2024-09-03T21:23:34.741252Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 1.157580852508545, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__property_tmp", "compiled": true, "compiled_code": "\n\nselect \"_fivetran_id\",\n \"_fivetran_synced\",\n \"calculated\",\n \"created_at\",\n \"description\",\n \"field_type\",\n \"group_name\",\n \"hubspot_defined\",\n \"hubspot_object\",\n \"label\",\n \"name\",\n \"show_currency_symbol\",\n \"type\",\n \"updated_at\"\nfrom \"postgres\".\"hubspot_integration_tests_58\".\"property_data\"", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__property_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:34.482145Z", "completed_at": "2024-09-03T21:23:35.432319Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:35.432935Z", "completed_at": "2024-09-03T21:23:35.432949Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 1.0470468997955322, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__ticket_company_tmp", "compiled": true, "compiled_code": "\n\nselect \"_fivetran_synced\",\n \"ticket_id\",\n \"company_id\"\nfrom \"postgres\".\"hubspot_integration_tests_58\".\"ticket_company_data\"", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__ticket_company_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:34.604028Z", "completed_at": "2024-09-03T21:23:35.525379Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:35.525856Z", "completed_at": "2024-09-03T21:23:35.525861Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 1.0371549129486084, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__ticket_contact_tmp", "compiled": true, "compiled_code": "\n\nselect \"_fivetran_synced\",\n \"ticket_id\",\n \"contact_id\"\nfrom \"postgres\".\"hubspot_integration_tests_58\".\"ticket_contact_data\"", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__ticket_contact_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:34.659129Z", "completed_at": "2024-09-03T21:23:35.613043Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:35.613547Z", "completed_at": "2024-09-03T21:23:35.613553Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 1.0594470500946045, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__ticket_engagement_tmp", "compiled": true, "compiled_code": "\n\nselect \"_fivetran_synced\",\n \"ticket_id\",\n \"engagement_id\"\nfrom \"postgres\".\"hubspot_integration_tests_58\".\"ticket_engagement_data\"", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__ticket_engagement_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:34.845253Z", "completed_at": "2024-09-03T21:23:35.794112Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:35.794685Z", "completed_at": "2024-09-03T21:23:35.794694Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 1.0518770217895508, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__ticket_pipeline_stage_tmp", "compiled": true, "compiled_code": "\n\nselect \"stage_id\",\n \"_fivetran_deleted\",\n \"_fivetran_synced\",\n \"active\",\n \"display_order\",\n \"is_closed\",\n \"label\",\n \"pipeline_id\",\n \"ticket_state\",\n \"created_at\",\n \"updated_at\"\nfrom \"postgres\".\"hubspot_integration_tests_58\".\"ticket_pipeline_stage_data\"", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__ticket_pipeline_stage_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:35.899329Z", "completed_at": "2024-09-03T21:23:35.900683Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:35.901151Z", "completed_at": "2024-09-03T21:23:35.901156Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.002949237823486328, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.hubspot_integration_tests.company_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:35.902605Z", "completed_at": "2024-09-03T21:23:35.903564Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:35.904019Z", "completed_at": "2024-09-03T21:23:35.904022Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.0023717880249023438, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.hubspot_integration_tests.company_property_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:35.905531Z", "completed_at": "2024-09-03T21:23:35.906541Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:35.906960Z", "completed_at": "2024-09-03T21:23:35.906963Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.0023717880249023438, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.hubspot_integration_tests.contact_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:35.908305Z", "completed_at": "2024-09-03T21:23:35.909904Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:35.910944Z", "completed_at": "2024-09-03T21:23:35.910952Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.004019021987915039, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.hubspot_integration_tests.contact_list_data_postgres", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:35.913698Z", "completed_at": "2024-09-03T21:23:35.915791Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:35.916573Z", "completed_at": "2024-09-03T21:23:35.916579Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.004324913024902344, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.hubspot_integration_tests.contact_list_member_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:35.918871Z", "completed_at": "2024-09-03T21:23:35.920021Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:35.920622Z", "completed_at": "2024-09-03T21:23:35.920628Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.002966165542602539, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.hubspot_integration_tests.contact_merge_audit_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:35.922215Z", "completed_at": "2024-09-03T21:23:35.923237Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:35.923745Z", "completed_at": "2024-09-03T21:23:35.923749Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.0025281906127929688, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.hubspot_integration_tests.contact_property_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:35.925248Z", "completed_at": "2024-09-03T21:23:35.926274Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:35.926744Z", "completed_at": "2024-09-03T21:23:35.926747Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.002408266067504883, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.hubspot_integration_tests.deal_company_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:35.928159Z", "completed_at": "2024-09-03T21:23:35.929704Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:35.930133Z", "completed_at": "2024-09-03T21:23:35.930137Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.002855062484741211, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.hubspot_integration_tests.deal_contact_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:35.931468Z", "completed_at": "2024-09-03T21:23:35.932447Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:35.932898Z", "completed_at": "2024-09-03T21:23:35.932901Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.0023207664489746094, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.hubspot_integration_tests.deal_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:35.934328Z", "completed_at": "2024-09-03T21:23:35.935350Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:35.935789Z", "completed_at": "2024-09-03T21:23:35.935793Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.0023860931396484375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.hubspot_integration_tests.deal_pipeline_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:35.937162Z", "completed_at": "2024-09-03T21:23:35.938640Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:35.939385Z", "completed_at": "2024-09-03T21:23:35.939391Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.0033049583435058594, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.hubspot_integration_tests.deal_pipeline_stage_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:35.941438Z", "completed_at": "2024-09-03T21:23:35.942551Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:35.943029Z", "completed_at": "2024-09-03T21:23:35.943034Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.0029571056365966797, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.hubspot_integration_tests.deal_property_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:35.945087Z", "completed_at": "2024-09-03T21:23:35.947269Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:35.947919Z", "completed_at": "2024-09-03T21:23:35.947925Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.0040340423583984375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.hubspot_integration_tests.deal_stage_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:35.949948Z", "completed_at": "2024-09-03T21:23:36.022880Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:36.023546Z", "completed_at": "2024-09-03T21:23:36.023551Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.07483863830566406, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.hubspot_integration_tests.email_campaign_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:36.025210Z", "completed_at": "2024-09-03T21:23:36.026294Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:36.026744Z", "completed_at": "2024-09-03T21:23:36.026747Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.002526998519897461, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.hubspot_integration_tests.email_event_bounce_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:36.028127Z", "completed_at": "2024-09-03T21:23:36.029141Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:36.029558Z", "completed_at": "2024-09-03T21:23:36.029561Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.002307891845703125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.hubspot_integration_tests.email_event_click_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:36.030876Z", "completed_at": "2024-09-03T21:23:36.031822Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:36.032235Z", "completed_at": "2024-09-03T21:23:36.032238Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.0022809505462646484, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.hubspot_integration_tests.email_event_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:36.033821Z", "completed_at": "2024-09-03T21:23:36.034841Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:36.035291Z", "completed_at": "2024-09-03T21:23:36.035294Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.0024802684783935547, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.hubspot_integration_tests.email_event_deferred_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:36.036723Z", "completed_at": "2024-09-03T21:23:36.038442Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:36.038931Z", "completed_at": "2024-09-03T21:23:36.038934Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.0031549930572509766, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.hubspot_integration_tests.email_event_delivered_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:36.040321Z", "completed_at": "2024-09-03T21:23:36.041373Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:36.041878Z", "completed_at": "2024-09-03T21:23:36.041882Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.002553701400756836, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.hubspot_integration_tests.email_event_dropped_data_postgres", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:36.043574Z", "completed_at": "2024-09-03T21:23:36.044585Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:36.045015Z", "completed_at": "2024-09-03T21:23:36.045019Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.002335071563720703, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.hubspot_integration_tests.email_event_forward_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:36.046352Z", "completed_at": "2024-09-03T21:23:36.047282Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:36.047682Z", "completed_at": "2024-09-03T21:23:36.047685Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.002167940139770508, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.hubspot_integration_tests.email_event_open_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:36.048956Z", "completed_at": "2024-09-03T21:23:36.049863Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:36.050287Z", "completed_at": "2024-09-03T21:23:36.050290Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.002150297164916992, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.hubspot_integration_tests.email_event_print_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:36.051801Z", "completed_at": "2024-09-03T21:23:36.053835Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:36.054258Z", "completed_at": "2024-09-03T21:23:36.054261Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.003520965576171875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.hubspot_integration_tests.email_event_sent_data_postgres", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:36.055527Z", "completed_at": "2024-09-03T21:23:36.056489Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:36.056890Z", "completed_at": "2024-09-03T21:23:36.056893Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.002179861068725586, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.hubspot_integration_tests.email_event_spam_report_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:36.058159Z", "completed_at": "2024-09-03T21:23:36.059067Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:36.059686Z", "completed_at": "2024-09-03T21:23:36.059690Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.0024499893188476562, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.hubspot_integration_tests.email_event_status_change_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:36.061206Z", "completed_at": "2024-09-03T21:23:36.062312Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:36.062756Z", "completed_at": "2024-09-03T21:23:36.062760Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.002508878707885742, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.hubspot_integration_tests.engagement_call_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:36.064186Z", "completed_at": "2024-09-03T21:23:36.065128Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:36.065555Z", "completed_at": "2024-09-03T21:23:36.065558Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.002252817153930664, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.hubspot_integration_tests.engagement_company_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:36.066947Z", "completed_at": "2024-09-03T21:23:36.067929Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:36.068350Z", "completed_at": "2024-09-03T21:23:36.068353Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.0022830963134765625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.hubspot_integration_tests.engagement_contact_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:36.069800Z", "completed_at": "2024-09-03T21:23:36.071659Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:36.072087Z", "completed_at": "2024-09-03T21:23:36.072090Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.00321197509765625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.hubspot_integration_tests.engagement_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:36.073437Z", "completed_at": "2024-09-03T21:23:36.074404Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:36.074813Z", "completed_at": "2024-09-03T21:23:36.074816Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.0022470951080322266, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.hubspot_integration_tests.engagement_deal_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:36.076153Z", "completed_at": "2024-09-03T21:23:36.077077Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:36.077488Z", "completed_at": "2024-09-03T21:23:36.077491Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.0021948814392089844, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.hubspot_integration_tests.engagement_email_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:36.078895Z", "completed_at": "2024-09-03T21:23:36.079834Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:36.080250Z", "completed_at": "2024-09-03T21:23:36.080253Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.0022771358489990234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.hubspot_integration_tests.engagement_meeting_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:36.081577Z", "completed_at": "2024-09-03T21:23:36.082513Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:36.082961Z", "completed_at": "2024-09-03T21:23:36.082964Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.002235889434814453, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.hubspot_integration_tests.engagement_note_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:36.084278Z", "completed_at": "2024-09-03T21:23:36.085951Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:36.086416Z", "completed_at": "2024-09-03T21:23:36.086419Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.0029790401458740234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.hubspot_integration_tests.engagement_task_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:36.087756Z", "completed_at": "2024-09-03T21:23:36.088789Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:36.089313Z", "completed_at": "2024-09-03T21:23:36.089317Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.0024671554565429688, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.hubspot_integration_tests.merged_deal_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:36.090716Z", "completed_at": "2024-09-03T21:23:36.091693Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:36.092240Z", "completed_at": "2024-09-03T21:23:36.092244Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.0024080276489257812, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.hubspot_integration_tests.owner_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:36.093542Z", "completed_at": "2024-09-03T21:23:36.094538Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:36.094930Z", "completed_at": "2024-09-03T21:23:36.094933Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.0022051334381103516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.hubspot_integration_tests.property_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:36.096470Z", "completed_at": "2024-09-03T21:23:36.097629Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:36.098087Z", "completed_at": "2024-09-03T21:23:36.098092Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.002696990966796875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.hubspot_integration_tests.property_option_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:36.099493Z", "completed_at": "2024-09-03T21:23:36.101312Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:36.101768Z", "completed_at": "2024-09-03T21:23:36.101771Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.003162860870361328, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.hubspot_integration_tests.ticket_company_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:36.103122Z", "completed_at": "2024-09-03T21:23:36.104079Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:36.104490Z", "completed_at": "2024-09-03T21:23:36.104493Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.0022308826446533203, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.hubspot_integration_tests.ticket_contact_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:36.105819Z", "completed_at": "2024-09-03T21:23:36.106756Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:36.107160Z", "completed_at": "2024-09-03T21:23:36.107163Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.0021829605102539062, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.hubspot_integration_tests.ticket_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:36.108528Z", "completed_at": "2024-09-03T21:23:36.109543Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:36.109962Z", "completed_at": "2024-09-03T21:23:36.109966Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.0023508071899414062, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.hubspot_integration_tests.ticket_deal_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:36.111283Z", "completed_at": "2024-09-03T21:23:36.112241Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:36.112740Z", "completed_at": "2024-09-03T21:23:36.112743Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.0023190975189208984, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.hubspot_integration_tests.ticket_engagement_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:36.114293Z", "completed_at": "2024-09-03T21:23:36.115399Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:36.115910Z", "completed_at": "2024-09-03T21:23:36.115914Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.0026450157165527344, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.hubspot_integration_tests.ticket_pipeline_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:36.117333Z", "completed_at": "2024-09-03T21:23:36.119181Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:36.119621Z", "completed_at": "2024-09-03T21:23:36.119625Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.003178834915161133, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.hubspot_integration_tests.ticket_pipeline_stage_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:36.120981Z", "completed_at": "2024-09-03T21:23:36.121965Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:36.122385Z", "completed_at": "2024-09-03T21:23:36.122388Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.0023779869079589844, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.hubspot_integration_tests.ticket_property_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:35.529839Z", "completed_at": "2024-09-03T21:23:36.550548Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:36.551094Z", "completed_at": "2024-09-03T21:23:36.551103Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 1.1333770751953125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__ticket_pipeline_tmp", "compiled": true, "compiled_code": "\n\nselect \"pipeline_id\",\n \"_fivetran_deleted\",\n \"_fivetran_synced\",\n \"active\",\n \"display_order\",\n \"label\",\n \"object_type_id\",\n \"created_at\",\n \"updated_at\"\nfrom \"postgres\".\"hubspot_integration_tests_58\".\"ticket_pipeline_data\"", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__ticket_pipeline_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:35.644101Z", "completed_at": "2024-09-03T21:23:36.626826Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:36.627310Z", "completed_at": "2024-09-03T21:23:36.627316Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 1.105172872543335, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__ticket_property_history_tmp", "compiled": true, "compiled_code": "\n\nselect \"_fivetran_start\",\n \"name\",\n \"ticket_id\",\n \"_fivetran_active\",\n \"_fivetran_end\",\n \"_fivetran_synced\",\n \"source\",\n \"source_id\",\n \"timestamp_instant\",\n \"value\"\nfrom \"postgres\".\"hubspot_integration_tests_58\".\"ticket_property_history_data\"", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__ticket_property_history_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:35.720261Z", "completed_at": "2024-09-03T21:23:36.700594Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:36.701110Z", "completed_at": "2024-09-03T21:23:36.701116Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 1.096818208694458, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__ticket_tmp", "compiled": true, "compiled_code": "\n\nselect \"_fivetran_synced\",\n \"id\",\n \"is_deleted\",\n \"property_closed_date\",\n \"property_createdate\",\n \"property_first_agent_reply_date\",\n \"property_hs_pipeline\",\n \"property_hs_pipeline_stage\",\n \"property_hs_ticket_category\",\n \"property_hs_ticket_priority\",\n \"property_hubspot_owner_id\",\n \"property_subject\",\n \"property_content\"\nfrom \"postgres\".\"hubspot_integration_tests_58\".\"ticket_data\"", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__ticket_tmp\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:36.123906Z", "completed_at": "2024-09-03T21:23:37.087185Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:37.087730Z", "completed_at": "2024-09-03T21:23:37.087738Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 1.0556790828704834, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__contact_list", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__contact_list_tmp\"\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 as is_contact_list_deleted,\n cast(_fivetran_synced as timestamp) as _fivetran_synced,\n cast(created_at as timestamp) as created_timestamp,\n deleteable as is_deletable,\n dynamic as is_dynamic,\n id as contact_list_id,\n metadata_error,\n cast(metadata_last_processing_state_change_at as timestamp) as metadata_last_processing_state_change_at,\n cast(metadata_last_size_change_at as timestamp) as metadata_last_size_change_at,\n metadata_processing,\n metadata_size,\n name as contact_list_name,\n portal_id,\n cast(updated_at as timestamp) as updated_timestamp\n from macro\n \n)\n\nselect *\nfrom fields", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__contact_list\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:36.666485Z", "completed_at": "2024-09-03T21:23:37.615103Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:37.615696Z", "completed_at": "2024-09-03T21:23:37.615704Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 1.0554089546203613, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__company_property_history", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"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 cast(_fivetran_synced as timestamp) as _fivetran_synced,\n company_id,\n name as field_name,\n source as change_source,\n source_id as change_source_id,\n cast(change_timestamp as timestamp) as change_timestamp, -- source field name = timestamp ; alias declared in macros/get_company_property_history_columns.sql\n value as new_value\n from macro\n \n)\n\nselect *\nfrom fields", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__company_property_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:36.749861Z", "completed_at": "2024-09-03T21:23:37.773645Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:37.774117Z", "completed_at": "2024-09-03T21:23:37.774124Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 1.1336512565612793, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__company", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__company_tmp\"\n\n), macro as (\n\n select\n \n cast(null as timestamp) as \n \n _fivetran_synced\n \n , \n \n \n id\n \n as company_id , \n \n \n is_deleted\n \n as is_company_deleted , \n cast(null as TEXT) as company_name , \n cast(null as TEXT) as description , \n cast(null as timestamp) as created_date , \n cast(null as TEXT) as industry , \n cast(null as TEXT) as street_address , \n cast(null as TEXT) as street_address_2 , \n cast(null as TEXT) as city , \n cast(null as TEXT) as state , \n cast(null as TEXT) as country , \n cast(null as integer) as company_annual_revenue \n\n\n from base\n\n), fields as (\n\n select\n\n\n -- just default columns + explicitly configured passthrough columns\n -- a few columns below are aliased within the macros/get_company_columns.sql macro\n company_id,\n is_company_deleted,\n cast(_fivetran_synced as timestamp) as _fivetran_synced,\n company_name,\n description,\n created_date,\n industry,\n street_address,\n street_address_2,\n city,\n state,\n country,\n 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 -- The below macro add the ability to create calculated fields using the hubspot__company_calculated_fields variable.\n \n\n\n \n from macro\n\n\n\n), joined as (\n \n\nselect fields.*\n\nfrom fields\n)\n\nselect *\nfrom joined", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__company\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:36.818979Z", "completed_at": "2024-09-03T21:23:37.875227Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:37.875718Z", "completed_at": "2024-09-03T21:23:37.875725Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 1.1652979850769043, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__contact_list_member", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__contact_list_member_tmp\" \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 as is_contact_list_member_deleted,\n cast(_fivetran_synced as timestamp) as _fivetran_synced,\n cast(added_at as timestamp) as added_timestamp,\n contact_id,\n contact_list_id\n from macro\n \n)\n\nselect *\nfrom fields", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__contact_list_member\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:37.180225Z", "completed_at": "2024-09-03T21:23:38.210582Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:38.211070Z", "completed_at": "2024-09-03T21:23:38.211077Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 1.1311607360839844, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__contact_merge_audit", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__contact_merge_audit_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 canonical_vid\n \n as \n \n canonical_vid\n \n, \n \n \n contact_id\n \n as \n \n contact_id\n \n, \n \n \n entity_id\n \n as \n \n entity_id\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 num_properties_moved\n \n as \n \n num_properties_moved\n \n, \n \n \n timestamp\n \n as \n \n timestamp\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vid_to_merge\n \n as \n \n vid_to_merge\n \n\n\n\n from base\n\n), fields as (\n\n select\n canonical_vid,\n contact_id,\n entity_id,\n first_name,\n last_name,\n num_properties_moved,\n cast( \n timestamp\n as timestamp) as timestamp_at,\n user_id,\n vid_to_merge,\n cast(_fivetran_synced as timestamp) as _fivetran_synced\n from macro\n \n)\n\nselect *\nfrom fields", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__contact_merge_audit\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:37.722690Z", "completed_at": "2024-09-03T21:23:38.755929Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:38.756446Z", "completed_at": "2024-09-03T21:23:38.756453Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 1.140707015991211, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__contact_property_history", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"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 cast(_fivetran_synced as timestamp) as _fivetran_synced,\n contact_id,\n name as field_name,\n source as change_source,\n source_id as change_source_id,\n cast(change_timestamp as timestamp) as change_timestamp, -- source field name = timestamp ; alias declared in macros/get_contact_property_history_columns.sql\n value as new_value\n from macro\n \n)\n\nselect *\nfrom fields", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__contact_property_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:37.883986Z", "completed_at": "2024-09-03T21:23:38.853186Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:38.853665Z", "completed_at": "2024-09-03T21:23:38.853672Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 1.0775549411773682, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__contact", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__contact_tmp\"\n\n), macro as (\n\n select\n \n \n \n _fivetran_deleted\n \n as is_contact_deleted , \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as contact_id , \n \n \n property_hs_calculated_merged_vids\n \n as calculated_merged_vids , \n \n \n property_email\n \n as email , \n \n \n property_company\n \n as contact_company , \n \n \n property_firstname\n \n as first_name , \n \n \n property_lastname\n \n as last_name , \n \n \n property_createdate\n \n as created_date , \n \n \n property_jobtitle\n \n as job_title , \n \n \n property_annualrevenue\n \n as company_annual_revenue \n\n\n from base\n\n), fields as (\n\n select\n\n\n -- just default columns + explicitly configured passthrough columns.\n -- a few columns below are aliased within the macros/get_contact_columns.sql macro\n contact_id,\n is_contact_deleted,\n calculated_merged_vids, -- will be null for BigQuery users until v3 api is rolled out to them\n email,\n contact_company,\n first_name,\n last_name,\n cast(created_date as timestamp) as created_date,\n job_title,\n company_annual_revenue,\n cast(_fivetran_synced as timestamp) as _fivetran_synced\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 -- The below macro add the ability to create calculated fields using the hubspot__contact_calculated_fields variable.\n \n\n\n\n from macro\n \n\n), joined as (\n \n\nselect fields.*\n\nfrom fields\n)\n\nselect *\nfrom joined", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__contact\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:37.986511Z", "completed_at": "2024-09-03T21:23:39.044265Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:39.044918Z", "completed_at": "2024-09-03T21:23:39.044924Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 1.1640629768371582, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__deal_company", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__deal_company_tmp\"\n\n), macro as (\n\n select \n \n cast(null as timestamp) 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 type_id\n \n as \n \n type_id\n \n\n\n\n from base\n\n), fields as (\n\n select\n company_id,\n deal_id,\n type_id,\n cast(_fivetran_synced as timestamp) as _fivetran_synced\n \n from macro\n \n)\n\nselect *\nfrom fields", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__deal_company\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:38.311974Z", "completed_at": "2024-09-03T21:23:39.397251Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:39.397870Z", "completed_at": "2024-09-03T21:23:39.397877Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 1.191066026687622, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__deal_contact", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__deal_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 deal_id\n \n as \n \n deal_id\n \n, \n \n \n contact_id\n \n as \n \n contact_id\n \n, \n \n \n type_id\n \n as \n \n type_id\n \n\n\n\n from base\n\n), fields as (\n\n select\n contact_id,\n deal_id,\n type_id,\n cast(_fivetran_synced as timestamp) as _fivetran_synced\n \n from macro\n \n)\n\nselect *\nfrom fields", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__deal_contact\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:38.962145Z", "completed_at": "2024-09-03T21:23:40.110396Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:40.111351Z", "completed_at": "2024-09-03T21:23:40.111354Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 1.2637438774108887, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__deal_pipeline_stage", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__deal_pipeline_stage_tmp\"\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 created_at\n \n as \n \n created_at\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 as is_deal_pipeline_stage_deleted,\n cast(_fivetran_synced as timestamp) as _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 cast(stage_id as TEXT) as deal_pipeline_stage_id,\n created_at as deal_pipeline_stage_created_at,\n updated_at as deal_pipeline_stage_updated_at\n from macro\n \n)\n\nselect *\nfrom fields", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__deal_pipeline_stage\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:38.863975Z", "completed_at": "2024-09-03T21:23:40.109989Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:40.111106Z", "completed_at": "2024-09-03T21:23:40.111113Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 1.3662998676300049, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__deal_property_history", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"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 cast(_fivetran_synced as timestamp) as _fivetran_synced,\n deal_id,\n name as field_name,\n source as change_source,\n source_id as change_source_id,\n cast(change_timestamp as timestamp) as change_timestamp, -- source field name = timestamp ; alias declared in macros/get_deal_property_history_columns.sql\n value as new_value\n from macro\n \n)\n\nselect *\nfrom fields", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__deal_property_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:39.150185Z", "completed_at": "2024-09-03T21:23:40.320532Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:40.321019Z", "completed_at": "2024-09-03T21:23:40.321027Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 1.4180920124053955, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__deal_pipeline", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__deal_pipeline_tmp\"\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 created_at\n \n as \n \n created_at\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 as is_deal_pipeline_deleted,\n cast(_fivetran_synced as timestamp) as _fivetran_synced,\n active as is_active,\n display_order,\n label as pipeline_label,\n cast(pipeline_id as TEXT) as deal_pipeline_id,\n created_at as deal_pipeline_created_at,\n updated_at as deal_pipeline_updated_at\n from macro\n \n)\n\nselect *\nfrom fields", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__deal_pipeline\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:39.503916Z", "completed_at": "2024-09-03T21:23:40.814469Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:40.814935Z", "completed_at": "2024-09-03T21:23:40.814941Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 1.4269371032714844, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__deal_stage", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"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 cast(date_entered as timestamp) as date_entered,\n deal_id,\n source,\n source_id,\n value as deal_stage_name,\n _fivetran_active,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as timestamp) as _fivetran_start\n from fields\n)\n\nselect * \nfrom final", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__deal_stage\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:40.230829Z", "completed_at": "2024-09-03T21:23:41.322872Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:41.323480Z", "completed_at": "2024-09-03T21:23:41.323488Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 1.185966968536377, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__deal", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__deal_tmp\"\n\n), macro as (\n\n select\n \n cast(null as timestamp) 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 is_deal_deleted , \n \n \n owner_id\n \n as \n \n owner_id\n \n, \n cast(null as integer) as \n \n portal_id\n \n , \n cast(null as TEXT) as deal_name , \n cast(null as TEXT) as description , \n cast(null as integer) as amount , \n cast(null as timestamp) as closed_date , \n cast(null as timestamp) as created_date \n\n\n from base\n\n), fields as (\n\n select\n\n\n -- just default columns + explicitly configured passthrough columns\n -- a few columns below are aliased within the macros/get_deal_columns.sql macro\n deal_name,\n cast(closed_date as timestamp) as closed_date,\n cast(created_date as timestamp) as created_date,\n is_deal_deleted,\n cast(_fivetran_synced as timestamp) as _fivetran_synced,\n deal_id,\n cast(deal_pipeline_id as TEXT) as deal_pipeline_id,\n cast(deal_pipeline_stage_id as TEXT) as deal_pipeline_stage_id,\n owner_id,\n portal_id,\n description,\n amount\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 -- The below macro add the ability to create calculated fields using the hubspot__deal_calculated_fields variable.\n \n\n\n\n from macro\n\n\n), joined as (\n \n\nselect fields.*\n\nfrom fields\n)\n\nselect *\nfrom joined", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__deal\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:40.240553Z", "completed_at": "2024-09-03T21:23:41.338698Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:41.339165Z", "completed_at": "2024-09-03T21:23:41.339171Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 1.1898880004882812, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__email_event_bounce", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"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 cast(_fivetran_synced as timestamp) as _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", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__email_event_bounce\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:40.570065Z", "completed_at": "2024-09-03T21:23:41.534352Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:41.534852Z", "completed_at": "2024-09-03T21:23:41.534858Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 1.0623860359191895, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__email_campaign", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"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 cast(_fivetran_synced as timestamp) as _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", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__email_campaign\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:40.932232Z", "completed_at": "2024-09-03T21:23:41.990407Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:41.991374Z", "completed_at": "2024-09-03T21:23:41.991382Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 1.166821002960205, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__email_event_click", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"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 cast(_fivetran_synced as timestamp) as _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", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__email_event_click\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:41.415776Z", "completed_at": "2024-09-03T21:23:42.377006Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:42.377543Z", "completed_at": "2024-09-03T21:23:42.377550Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 1.0626220703125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__email_event_deferred", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"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 cast(_fivetran_synced as timestamp) as _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", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__email_event_deferred\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:41.430821Z", "completed_at": "2024-09-03T21:23:42.470687Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:42.471174Z", "completed_at": "2024-09-03T21:23:42.471184Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 1.14621901512146, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__email_event_dropped", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"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 cast(_fivetran_synced as timestamp) as _fivetran_synced,\n bcc as bcc_emails,\n cc as cc_emails,\n drop_message,\n drop_reason,\n from_email, -- source field name = from ; alias declared in macros/get_email_event_dropped_columns.sql\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", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__email_event_dropped\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:41.632457Z", "completed_at": "2024-09-03T21:23:42.679498Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:42.679968Z", "completed_at": "2024-09-03T21:23:42.679975Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 1.1597750186920166, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__email_event_delivered", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"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 cast(_fivetran_synced as timestamp) as _fivetran_synced,\n id as event_id,\n response as returned_response,\n smtp_id\n from macro\n \n)\n\nselect *\nfrom fields", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__email_event_delivered\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:42.100937Z", "completed_at": "2024-09-03T21:23:43.072504Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:43.073216Z", "completed_at": "2024-09-03T21:23:43.073224Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 1.0717990398406982, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__email_event_forward", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"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 cast(_fivetran_synced as timestamp) as _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", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__email_event_forward\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:42.478644Z", "completed_at": "2024-09-03T21:23:43.397184Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:43.397837Z", "completed_at": "2024-09-03T21:23:43.397851Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 1.0168728828430176, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__email_event_open", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"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 cast(_fivetran_synced as timestamp) as _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", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__email_event_open\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:42.577574Z", "completed_at": "2024-09-03T21:23:43.610448Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:43.610929Z", "completed_at": "2024-09-03T21:23:43.610935Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 1.1470911502838135, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__email_event_sent", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"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 cast(_fivetran_synced as timestamp) as _fivetran_synced,\n bcc as bcc_emails,\n cc as cc_emails,\n from_email, -- source field name = from ; alias declared in macros/get_email_event_sent_columns.sql\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", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__email_event_sent\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:42.793655Z", "completed_at": "2024-09-03T21:23:43.823818Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:43.824349Z", "completed_at": "2024-09-03T21:23:43.824356Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 1.1335327625274658, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__email_event_print", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"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 cast(_fivetran_synced as timestamp) as _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", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__email_event_print\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:43.172542Z", "completed_at": "2024-09-03T21:23:44.194611Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:44.195262Z", "completed_at": "2024-09-03T21:23:44.195270Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 1.1328401565551758, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__email_event_status_change", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"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 cast(_fivetran_synced as timestamp) as _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", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__email_event_status_change\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:43.496167Z", "completed_at": "2024-09-03T21:23:44.475622Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:44.476772Z", "completed_at": "2024-09-03T21:23:44.476783Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 1.079225778579712, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__email_event_spam_report", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"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 cast(_fivetran_synced as timestamp) as _fivetran_synced,\n id as event_id,\n ip_address,\n user_agent\n from macro\n \n)\n\nselect *\nfrom fields", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__email_event_spam_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:43.727155Z", "completed_at": "2024-09-03T21:23:44.696055Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:44.696554Z", "completed_at": "2024-09-03T21:23:44.696561Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 1.079801082611084, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__email_event", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"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 cast(_fivetran_synced as timestamp) as _fivetran_synced,\n app_id,\n cast(caused_by_created as timestamp) as caused_timestamp,\n caused_by_id as caused_by_event_id,\n cast(created as timestamp) as created_timestamp,\n email_campaign_id,\n filtered_event as is_filtered_event,\n id as event_id,\n cast(obsoleted_by_created as timestamp) as obsoleted_timestamp,\n obsoleted_by_id as obsoleted_by_event_id,\n portal_id,\n recipient as recipient_email_address,\n cast(sent_by_created as timestamp) 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\n", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__email_event\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:43.927818Z", "completed_at": "2024-09-03T21:23:44.877108Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:44.877595Z", "completed_at": "2024-09-03T21:23:44.877603Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 1.0520179271697998, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__engagement_call", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__engagement_call_tmp\"\n\n), macro as (\n\n select\n \n \n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n engagement_id\n \n as \n \n engagement_id\n \n, \n \n \n type\n \n as engagement_type , \n \n \n property_hs_createdate\n \n as created_timestamp , \n \n \n property_hs_timestamp\n \n as occurred_timestamp , \n cast(null as integer) as owner_id , \n cast(null as integer) as team_id \n\n\n \n \n \n \n\n \n \n\n \n \n from base\n\n)\n\nselect *\nfrom macro", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__engagement_call\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:44.308103Z", "completed_at": "2024-09-03T21:23:45.323258Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:45.323774Z", "completed_at": "2024-09-03T21:23:45.323780Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 1.1162512302398682, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__engagement_contact", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__engagement_contact_tmp\"\n\n), macro as (\n\n select\n \n \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 \n \n \n \n \n \n\n \n \n , \"engagement_type\"\n , \"type_id\"\n\n \n \n from base\n\n)\n\nselect *\nfrom macro", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__engagement_contact\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:44.575975Z", "completed_at": "2024-09-03T21:23:45.596956Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:45.597438Z", "completed_at": "2024-09-03T21:23:45.597445Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 1.1358752250671387, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__engagement_company", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__engagement_company_tmp\"\n\n), macro as (\n\n select \n \n \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 \n \n \n \n \n \n\n \n \n , \"engagement_type\"\n , \"type_id\"\n\n \n \n from base\n)\n\nselect *\nfrom macro", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__engagement_company\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:44.809114Z", "completed_at": "2024-09-03T21:23:45.792916Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:45.793408Z", "completed_at": "2024-09-03T21:23:45.793415Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 1.0933918952941895, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__engagement_deal", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__engagement_deal_tmp\"\n\n), macro as (\n\n select\n \n \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 \n \n \n \n \n \n\n \n \n , \"engagement_type\"\n , \"type_id\"\n\n \n \n from base\n\n)\n\nselect *\nfrom macro", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__engagement_deal\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:44.982589Z", "completed_at": "2024-09-03T21:23:45.924208Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:45.924716Z", "completed_at": "2024-09-03T21:23:45.924724Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 1.0385489463806152, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__engagement_email", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__engagement_email_tmp\"\n\n), macro as (\n\n select\n \n \n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n type\n \n as engagement_type , \n \n \n engagement_id\n \n as \n \n engagement_id\n \n, \n \n \n property_hs_createdate\n \n as created_timestamp , \n \n \n property_hs_timestamp\n \n as occurred_timestamp , \n \n \n property_hubspot_owner_id\n \n as owner_id , \n \n \n property_hubspot_team_id\n \n as team_id \n\n\n \n \n \n \n \n \n \n \n \n \n\n \n \n , \"property_hs_all_owner_ids\" as all_owner_ids\n , \"property_hs_all_team_ids\" as all_team_ids\n , \"property_hs_email_subject\" as email_subject\n , \"property_hs_email_text\" as email_text\n , \"property_hs_lastmodifieddate\" as lastmodifieddate\n , \"property_hs_modified_by\" as modified_by\n\n \n \n from base\n\n)\n\nselect *\nfrom macro", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__engagement_email\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:45.425594Z", "completed_at": "2024-09-03T21:23:46.495027Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:46.495699Z", "completed_at": "2024-09-03T21:23:46.495709Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 1.171694040298462, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__engagement_note", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__engagement_note_tmp\"\n\n), macro as (\n\n select\n \n \n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n cast(null as TEXT) as note , \n \n \n type\n \n as engagement_type , \n \n \n engagement_id\n \n as \n \n engagement_id\n \n, \n \n \n property_hs_createdate\n \n as created_timestamp , \n \n \n property_hs_timestamp\n \n as occurred_timestamp , \n \n \n property_hubspot_owner_id\n \n as owner_id , \n \n \n property_hubspot_team_id\n \n as team_id \n\n\n \n \n \n \n \n \n \n\n \n \n , \"property_hs_body_preview\" as body_preview\n , \"property_hs_lastmodifieddate\" as lastmodifieddate\n , \"property_hs_note_body\" as note_body\n\n \n \n from base\n\n)\n\nselect *\nfrom macro", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__engagement_note\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:45.712505Z", "completed_at": "2024-09-03T21:23:46.784300Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:46.784816Z", "completed_at": "2024-09-03T21:23:46.784823Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 1.1925861835479736, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__engagement_meeting", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__engagement_meeting_tmp\"\n\n), macro as (\n\n select\n \n \n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n cast(null as boolean) as \n \n _fivetran_deleted\n \n , \n cast(null as TEXT) as engagement_type , \n \n \n engagement_id\n \n as \n \n engagement_id\n \n, \n cast(null as timestamp) as created_timestamp , \n cast(null as timestamp) as occurred_timestamp , \n cast(null as integer) as owner_id , \n cast(null as integer) as team_id \n\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n , \"created_from_link_id\"\n , \"end_time\"\n , \"pre_meeting_prospect_reminders\"\n , \"source\"\n , \"source_id\"\n , \"start_time\"\n , \"web_conference_meeting_id\"\n , \"meeting_outcome\"\n , \"body\"\n , \"external_url\"\n , \"title\"\n\n \n \n from base\n\n)\n\nselect *\nfrom macro", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__engagement_meeting\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:45.902559Z", "completed_at": "2024-09-03T21:23:46.822024Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:46.822491Z", "completed_at": "2024-09-03T21:23:46.822496Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 1.0131640434265137, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__engagement", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"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 cast(null as boolean) as is_active , \n cast(null as timestamp) as created_timestamp , \n \n \n id\n \n as \n \n id\n \n, \n cast(null as integer) as \n \n owner_id\n \n , \n \n \n portal_id\n \n as \n \n portal_id\n \n, \n cast(null as timestamp) 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 cast(_fivetran_synced as timestamp) as _fivetran_synced,\n id as engagement_id,\n created_timestamp,\n owner_id,\n occurred_timestamp,\n portal_id,\n engagement_type,\n is_active\n from macro\n \n)\n\nselect *\nfrom fields", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__engagement\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:46.021565Z", "completed_at": "2024-09-03T21:23:46.986660Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:46.987154Z", "completed_at": "2024-09-03T21:23:46.987161Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 1.0674712657928467, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__engagement_task", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__engagement_task_tmp\"\n\n), macro as (\n\n select\n \n \n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n engagement_id\n \n as \n \n engagement_id\n \n, \n \n \n type\n \n as engagement_type , \n \n \n property_hs_createdate\n \n as created_timestamp , \n \n \n property_hs_timestamp\n \n as occurred_timestamp , \n \n \n property_hubspot_owner_id\n \n as owner_id , \n \n \n property_hubspot_team_id\n \n as team_id \n\n\n \n \n \n \n , \"property_hs_task_type\" as task_type\n \n \n \n\n \n \n , \"property_hs_object_id\" as object_id\n , \"property_hs_engagement_source\" as engagement_source\n\n \n \n from base\n)\n\nselect *\nfrom macro", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__engagement_task\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:46.598081Z", "completed_at": "2024-09-03T21:23:47.607266Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:47.607740Z", "completed_at": "2024-09-03T21:23:47.607748Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 1.111414909362793, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__merged_deal", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__merged_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 merged_deal_id\n \n as \n \n merged_deal_id\n \n\n\n\n from base\n\n), fields as (\n \n select\n cast(_fivetran_synced as timestamp) as _fivetran_synced,\n deal_id,\n merged_deal_id\n from macro\n)\n\nselect *\nfrom fields", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__merged_deal\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:46.906778Z", "completed_at": "2024-09-03T21:23:47.952393Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:47.952872Z", "completed_at": "2024-09-03T21:23:47.952879Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 1.1465389728546143, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__owner", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"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 cast(_fivetran_synced as timestamp) as _fivetran_synced,\n cast(created_at as timestamp) 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 cast(updated_at as timestamp) as updated_timestamp,\n trim( first_name || ' ' || last_name ) as full_name\n from macro\n \n)\n\nselect *\nfrom fields", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__owner\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:46.917027Z", "completed_at": "2024-09-03T21:23:48.071992Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:48.072554Z", "completed_at": "2024-09-03T21:23:48.072563Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 1.2580857276916504, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__property_option", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__property_option_tmp\"\n\n), macro as (\n\n select\n \n \n \n label\n \n as \n \n label\n \n, \n \n \n property_id\n \n as \n \n property_id\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n display_order\n \n as \n \n display_order\n \n, \n \n \n hidden\n \n as \n \n hidden\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 label as property_option_label,\t\n property_id,\n _fivetran_synced,\n display_order,\n hidden,\n value as property_option_value\n from macro\n \n)\n\nselect *\nfrom fields", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__property_option\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:47.091432Z", "completed_at": "2024-09-03T21:23:48.172416Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:48.173295Z", "completed_at": "2024-09-03T21:23:48.173302Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 1.190701961517334, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__property", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__property_tmp\"\n\n), macro as (\n\n select\n \n \n \n _fivetran_id\n \n as \n \n _fivetran_id\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n calculated\n \n as \n \n calculated\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n field_type\n \n as \n \n field_type\n \n, \n \n \n group_name\n \n as \n \n group_name\n \n, \n \n \n hubspot_defined\n \n as \n \n hubspot_defined\n \n, \n \n \n hubspot_object\n \n as \n \n hubspot_object\n \n, \n \n \n label\n \n as \n \n label\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n show_currency_symbol\n \n as \n \n show_currency_symbol\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_id,\n _fivetran_synced,\n calculated,\n created_at,\n description,\n field_type,\n group_name,\n hubspot_defined,\n hubspot_object,\n label as property_label,\n name as property_name,\n type as property_type,\n updated_at\n from macro\n \n)\n\nselect *\nfrom fields", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__property\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:47.710402Z", "completed_at": "2024-09-03T21:23:48.674660Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:48.675149Z", "completed_at": "2024-09-03T21:23:48.675157Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 1.1715431213378906, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__ticket_company", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__ticket_company_tmp\"\n\n), macro as (\n\n select\n \n \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 \n \n \n \n\n \n \n\n \n \n from base\n\n)\n\nselect *\nfrom macro", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__ticket_company\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:48.056155Z", "completed_at": "2024-09-03T21:23:49.136959Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:49.137496Z", "completed_at": "2024-09-03T21:23:49.137503Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 1.181922197341919, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__ticket_contact", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__ticket_contact_tmp\"\n\n), macro as (\n\n select\n \n \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 \n \n \n \n\n \n \n\n \n \n from base\n\n)\n\nselect *\nfrom macro", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__ticket_contact\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:48.175798Z", "completed_at": "2024-09-03T21:23:49.231482Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:49.232015Z", "completed_at": "2024-09-03T21:23:49.232022Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 1.1498820781707764, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__ticket_engagement", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__ticket_engagement_tmp\"\n\n), macro as (\n\n select\n \n \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 \n \n \n \n\n \n \n\n \n \n from base\n\n)\n\nselect *\nfrom macro", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__ticket_engagement\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:48.282660Z", "completed_at": "2024-09-03T21:23:49.354472Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:49.355107Z", "completed_at": "2024-09-03T21:23:49.355114Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 1.186525821685791, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__ticket_pipeline_stage", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"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 created_at\n \n as \n \n created_at\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n _fivetran_deleted as is_ticket_pipeline_stage_deleted,\n cast(_fivetran_synced as timestamp) as _fivetran_synced,\n active as is_active,\n display_order,\n is_closed,\n label as pipeline_stage_label,\n cast(pipeline_id as integer ) as ticket_pipeline_id,\n cast(stage_id as integer ) as ticket_pipeline_stage_id,\n ticket_state,\n created_at as ticket_pipeline_stage_created_at,\n updated_at as ticket_pipeline_stage_updated_at\n from fields\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__ticket_pipeline_stage\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:49.470522Z", "completed_at": "2024-09-03T21:23:49.478942Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:49.479399Z", "completed_at": "2024-09-03T21:23:49.479406Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.010162115097045898, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot_source.not_null_stg_hubspot__contact_list_contact_list_id.ff8e4cc29a", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect contact_list_id\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__contact_list\"\nwhere contact_list_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:49.481264Z", "completed_at": "2024-09-03T21:23:49.485761Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:49.486204Z", "completed_at": "2024-09-03T21:23:49.486208Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.0059049129486083984, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot_source.unique_stg_hubspot__contact_list_contact_list_id.036739c1b0", "compiled": true, "compiled_code": "\n \n \n\nselect\n contact_list_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__contact_list\"\nwhere contact_list_id is not null\ngroup by contact_list_id\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:49.487597Z", "completed_at": "2024-09-03T21:23:49.497449Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:49.498103Z", "completed_at": "2024-09-03T21:23:49.498114Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.01146697998046875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot.hubspot__company_history", "compiled": true, "compiled_code": "\n\nwith history as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__company_property_history\"\n\n), windows as (\n\n select\n company_id,\n field_name,\n change_source,\n change_source_id,\n change_timestamp as valid_from,\n new_value,\n lead(change_timestamp) over (partition by company_id, field_name order by change_timestamp) as valid_to\n from history\n\n), surrogate as (\n\n select \n windows.*,\n md5(cast(coalesce(cast(field_name as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(company_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(valid_from as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as id\n from windows\n\n)\n\nselect *\nfrom surrogate", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__company_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:49.499706Z", "completed_at": "2024-09-03T21:23:49.504276Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:49.504989Z", "completed_at": "2024-09-03T21:23:49.504995Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.006387948989868164, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot_source.not_null_stg_hubspot__company_company_id.0d0a080d43", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect company_id\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__company\"\nwhere company_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:49.506955Z", "completed_at": "2024-09-03T21:23:49.510513Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:49.511041Z", "completed_at": "2024-09-03T21:23:49.511046Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.005211830139160156, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot_source.unique_stg_hubspot__company_company_id.394a2a4ba0", "compiled": true, "compiled_code": "\n \n \n\nselect\n company_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__company\"\nwhere company_id is not null\ngroup by company_id\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:49.513003Z", "completed_at": "2024-09-03T21:23:49.517854Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:49.518475Z", "completed_at": "2024-09-03T21:23:49.518481Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.006641864776611328, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot.hubspot__contact_history", "compiled": true, "compiled_code": "\n\nwith history as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__contact_property_history\"\n\n), windows as (\n\n select\n contact_id,\n field_name,\n change_source,\n change_source_id,\n change_timestamp as valid_from,\n new_value,\n lead(change_timestamp) over (partition by contact_id, field_name order by change_timestamp) as valid_to\n from history\n\n), surrogate as (\n\n select \n windows.*,\n md5(cast(coalesce(cast(field_name as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(contact_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(valid_from as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as id\n from windows\n\n)\n\nselect *\nfrom surrogate", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__contact_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:49.520100Z", "completed_at": "2024-09-03T21:23:49.525053Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:49.525507Z", "completed_at": "2024-09-03T21:23:49.525513Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.006325960159301758, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot.int_hubspot__contact_merge_adjust", "compiled": true, "compiled_code": "\n\nwith contacts as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__contact\"\n), contact_merge_audit as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__contact_merge_audit\"\n\n\n), contact_merge_removal as (\n select \n contacts.*\n from contacts\n \n left join contact_merge_audit\n on cast(contacts.contact_id as TEXT) = cast(contact_merge_audit.vid_to_merge as TEXT)\n \n where contact_merge_audit.vid_to_merge is null\n)\n\nselect *\nfrom contact_merge_removal", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"int_hubspot__contact_merge_adjust\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:49.527091Z", "completed_at": "2024-09-03T21:23:49.530024Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:49.530475Z", "completed_at": "2024-09-03T21:23:49.530482Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.00428009033203125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot_source.not_null_stg_hubspot__contact_contact_id.9f112f8944", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect contact_id\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__contact\"\nwhere contact_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:49.531891Z", "completed_at": "2024-09-03T21:23:49.534665Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:49.535098Z", "completed_at": "2024-09-03T21:23:49.535102Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.004086732864379883, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot_source.unique_stg_hubspot__contact_contact_id.b9135eb03a", "compiled": true, "compiled_code": "\n \n \n\nselect\n contact_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__contact\"\nwhere contact_id is not null\ngroup by contact_id\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:49.536552Z", "completed_at": "2024-09-03T21:23:49.542709Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:49.543178Z", "completed_at": "2024-09-03T21:23:49.543182Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.007592916488647461, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot_source.dbt_utils_unique_combination_of_columns_stg_hubspot__deal_company_company_id__deal_id__type_id.59d48f3923", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n company_id, deal_id, type_id\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__deal_company\"\n group by company_id, deal_id, type_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:49.544645Z", "completed_at": "2024-09-03T21:23:49.547738Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:49.548190Z", "completed_at": "2024-09-03T21:23:49.548194Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.004449129104614258, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot_source.dbt_utils_unique_combination_of_columns_stg_hubspot__deal_contact_contact_id__deal_id__type_id.37de71798b", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n contact_id, deal_id, type_id\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__deal_contact\"\n group by contact_id, deal_id, type_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:49.549729Z", "completed_at": "2024-09-03T21:23:49.553619Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:49.554105Z", "completed_at": "2024-09-03T21:23:49.554111Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.005322933197021484, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot_source.not_null_stg_hubspot__deal_pipeline_stage_deal_pipeline_stage_id.d53656553e", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect deal_pipeline_stage_id\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__deal_pipeline_stage\"\nwhere deal_pipeline_stage_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:49.555595Z", "completed_at": "2024-09-03T21:23:49.558404Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:49.558882Z", "completed_at": "2024-09-03T21:23:49.558887Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.00419306755065918, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot_source.unique_stg_hubspot__deal_pipeline_stage_deal_pipeline_stage_id.ba90fa6113", "compiled": true, "compiled_code": "\n \n \n\nselect\n deal_pipeline_stage_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__deal_pipeline_stage\"\nwhere deal_pipeline_stage_id is not null\ngroup by deal_pipeline_stage_id\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:49.560301Z", "completed_at": "2024-09-03T21:23:49.564171Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:49.564605Z", "completed_at": "2024-09-03T21:23:49.564609Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.0051839351654052734, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot.hubspot__deal_history", "compiled": true, "compiled_code": "\n\nwith history as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__deal_property_history\"\n\n), windows as (\n\n select\n deal_id,\n field_name,\n change_source,\n change_source_id,\n change_timestamp as valid_from,\n new_value,\n lead(change_timestamp) over (partition by deal_id, field_name order by change_timestamp) as valid_to\n from history\n\n), surrogate as (\n\n select \n windows.*,\n md5(cast(coalesce(cast(field_name as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(deal_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(valid_from as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as id\n from windows\n\n)\n\nselect *\nfrom surrogate", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__deal_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:49.566083Z", "completed_at": "2024-09-03T21:23:49.568975Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:49.569416Z", "completed_at": "2024-09-03T21:23:49.569421Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.0044019222259521484, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot_source.not_null_stg_hubspot__deal_pipeline_deal_pipeline_id.8a0e3cd7a3", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect deal_pipeline_id\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__deal_pipeline\"\nwhere deal_pipeline_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:49.571175Z", "completed_at": "2024-09-03T21:23:49.574094Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:49.574534Z", "completed_at": "2024-09-03T21:23:49.574539Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.004389286041259766, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot_source.unique_stg_hubspot__deal_pipeline_deal_pipeline_id.dff6c45403", "compiled": true, "compiled_code": "\n \n \n\nselect\n deal_pipeline_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__deal_pipeline\"\nwhere deal_pipeline_id is not null\ngroup by deal_pipeline_id\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:49.575982Z", "completed_at": "2024-09-03T21:23:49.628600Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:49.629085Z", "completed_at": "2024-09-03T21:23:49.629091Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.05406522750854492, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot_source.not_null_stg_hubspot__deal_deal_id.ff48693e20", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect deal_id\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__deal\"\nwhere deal_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:49.630738Z", "completed_at": "2024-09-03T21:23:49.633737Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:49.634184Z", "completed_at": "2024-09-03T21:23:49.634189Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.004446983337402344, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot_source.unique_stg_hubspot__deal_deal_id.ac1628ac69", "compiled": true, "compiled_code": "\n \n \n\nselect\n deal_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__deal\"\nwhere deal_id is not null\ngroup by deal_id\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:49.635723Z", "completed_at": "2024-09-03T21:23:49.639002Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:49.639481Z", "completed_at": "2024-09-03T21:23:49.639487Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.004728078842163086, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot_source.not_null_stg_hubspot__email_event_bounce_event_id.71b13d26d3", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect event_id\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__email_event_bounce\"\nwhere event_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:49.640980Z", "completed_at": "2024-09-03T21:23:49.644189Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:49.644721Z", "completed_at": "2024-09-03T21:23:49.644726Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.004686832427978516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot_source.unique_stg_hubspot__email_event_bounce_event_id.0341ffa8e9", "compiled": true, "compiled_code": "\n \n \n\nselect\n event_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__email_event_bounce\"\nwhere event_id is not null\ngroup by event_id\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:49.646383Z", "completed_at": "2024-09-03T21:23:49.649276Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:49.649842Z", "completed_at": "2024-09-03T21:23:49.649847Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.004534006118774414, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot_source.not_null_stg_hubspot__email_campaign_email_campaign_id.79921899a6", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect email_campaign_id\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__email_campaign\"\nwhere email_campaign_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:49.651558Z", "completed_at": "2024-09-03T21:23:49.656168Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:49.656627Z", "completed_at": "2024-09-03T21:23:49.656633Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.006092071533203125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot_source.unique_stg_hubspot__email_campaign_email_campaign_id.9820d33f2e", "compiled": true, "compiled_code": "\n \n \n\nselect\n email_campaign_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__email_campaign\"\nwhere email_campaign_id is not null\ngroup by email_campaign_id\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:49.658473Z", "completed_at": "2024-09-03T21:23:49.661245Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:49.661685Z", "completed_at": "2024-09-03T21:23:49.661689Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.004409074783325195, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot_source.not_null_stg_hubspot__email_event_click_event_id.8a1be931c5", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect event_id\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__email_event_click\"\nwhere event_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:49.663365Z", "completed_at": "2024-09-03T21:23:49.666449Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:49.666935Z", "completed_at": "2024-09-03T21:23:49.666940Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.0047419071197509766, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot_source.unique_stg_hubspot__email_event_click_event_id.da8d8487a1", "compiled": true, "compiled_code": "\n \n \n\nselect\n event_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__email_event_click\"\nwhere event_id is not null\ngroup by event_id\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:49.668579Z", "completed_at": "2024-09-03T21:23:49.671727Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:49.672206Z", "completed_at": "2024-09-03T21:23:49.672210Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.0047130584716796875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot_source.not_null_stg_hubspot__email_event_deferred_event_id.80293078e0", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect event_id\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__email_event_deferred\"\nwhere event_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:49.673916Z", "completed_at": "2024-09-03T21:23:49.676837Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:49.677248Z", "completed_at": "2024-09-03T21:23:49.677252Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.00452423095703125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot_source.unique_stg_hubspot__email_event_deferred_event_id.2f779e2912", "compiled": true, "compiled_code": "\n \n \n\nselect\n event_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__email_event_deferred\"\nwhere event_id is not null\ngroup by event_id\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:49.678831Z", "completed_at": "2024-09-03T21:23:49.682942Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:49.683419Z", "completed_at": "2024-09-03T21:23:49.683424Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.0057010650634765625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot_source.not_null_stg_hubspot__email_event_dropped_event_id.c92d449f52", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect event_id\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__email_event_dropped\"\nwhere event_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:49.684905Z", "completed_at": "2024-09-03T21:23:49.687868Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:49.688435Z", "completed_at": "2024-09-03T21:23:49.688440Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.004492998123168945, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot_source.unique_stg_hubspot__email_event_dropped_event_id.40706bbf71", "compiled": true, "compiled_code": "\n \n \n\nselect\n event_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__email_event_dropped\"\nwhere event_id is not null\ngroup by event_id\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:49.690080Z", "completed_at": "2024-09-03T21:23:49.693241Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:49.693664Z", "completed_at": "2024-09-03T21:23:49.693669Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.004621982574462891, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot_source.not_null_stg_hubspot__email_event_delivered_event_id.87c8eb3f20", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect event_id\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__email_event_delivered\"\nwhere event_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:49.695405Z", "completed_at": "2024-09-03T21:23:49.698552Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:49.699007Z", "completed_at": "2024-09-03T21:23:49.699012Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.004715919494628906, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot_source.unique_stg_hubspot__email_event_delivered_event_id.f818bf03fc", "compiled": true, "compiled_code": "\n \n \n\nselect\n event_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__email_event_delivered\"\nwhere event_id is not null\ngroup by event_id\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:49.700601Z", "completed_at": "2024-09-03T21:23:49.703572Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:49.704022Z", "completed_at": "2024-09-03T21:23:49.704026Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.004375934600830078, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot_source.not_null_stg_hubspot__email_event_forward_event_id.b9a8bf63b3", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect event_id\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__email_event_forward\"\nwhere event_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:49.705666Z", "completed_at": "2024-09-03T21:23:49.709599Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:49.710090Z", "completed_at": "2024-09-03T21:23:49.710095Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.005538225173950195, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot_source.unique_stg_hubspot__email_event_forward_event_id.7f133d2dd1", "compiled": true, "compiled_code": "\n \n \n\nselect\n event_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__email_event_forward\"\nwhere event_id is not null\ngroup by event_id\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:49.711684Z", "completed_at": "2024-09-03T21:23:49.714406Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:49.714819Z", "completed_at": "2024-09-03T21:23:49.714823Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.004167795181274414, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot_source.not_null_stg_hubspot__email_event_open_event_id.a2e658fe16", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect event_id\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__email_event_open\"\nwhere event_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:49.716426Z", "completed_at": "2024-09-03T21:23:49.719626Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:49.720184Z", "completed_at": "2024-09-03T21:23:49.720188Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.004847049713134766, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot_source.unique_stg_hubspot__email_event_open_event_id.3a369549b1", "compiled": true, "compiled_code": "\n \n \n\nselect\n event_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__email_event_open\"\nwhere event_id is not null\ngroup by event_id\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:49.721796Z", "completed_at": "2024-09-03T21:23:49.724901Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:49.725385Z", "completed_at": "2024-09-03T21:23:49.725391Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.0046558380126953125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot_source.not_null_stg_hubspot__email_event_sent_event_id.cf77d9f15d", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect event_id\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__email_event_sent\"\nwhere event_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:49.726934Z", "completed_at": "2024-09-03T21:23:49.730591Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:49.731017Z", "completed_at": "2024-09-03T21:23:49.731021Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.005028247833251953, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot_source.unique_stg_hubspot__email_event_sent_event_id.122cb22272", "compiled": true, "compiled_code": "\n \n \n\nselect\n event_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__email_event_sent\"\nwhere event_id is not null\ngroup by event_id\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:49.732647Z", "completed_at": "2024-09-03T21:23:49.735736Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:49.736217Z", "completed_at": "2024-09-03T21:23:49.736223Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.004683017730712891, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot_source.not_null_stg_hubspot__email_event_print_event_id.94d4e09b3b", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect event_id\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__email_event_print\"\nwhere event_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:49.737812Z", "completed_at": "2024-09-03T21:23:49.740463Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:49.740871Z", "completed_at": "2024-09-03T21:23:49.740875Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.004051923751831055, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot_source.unique_stg_hubspot__email_event_print_event_id.40a8ccd3f3", "compiled": true, "compiled_code": "\n \n \n\nselect\n event_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__email_event_print\"\nwhere event_id is not null\ngroup by event_id\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:49.742581Z", "completed_at": "2024-09-03T21:23:49.745566Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:49.746096Z", "completed_at": "2024-09-03T21:23:49.746100Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.0047109127044677734, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot_source.not_null_stg_hubspot__email_event_status_change_event_id.c5e80297b1", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect event_id\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__email_event_status_change\"\nwhere event_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:49.747474Z", "completed_at": "2024-09-03T21:23:49.750090Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:49.750514Z", "completed_at": "2024-09-03T21:23:49.750517Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.003905057907104492, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot_source.unique_stg_hubspot__email_event_status_change_event_id.13105203e0", "compiled": true, "compiled_code": "\n \n \n\nselect\n event_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__email_event_status_change\"\nwhere event_id is not null\ngroup by event_id\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:49.752163Z", "completed_at": "2024-09-03T21:23:49.756101Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:49.756532Z", "completed_at": "2024-09-03T21:23:49.756537Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.0054700374603271484, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot_source.not_null_stg_hubspot__email_event_spam_report_event_id.2a56aced8f", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect event_id\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__email_event_spam_report\"\nwhere event_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:49.758202Z", "completed_at": "2024-09-03T21:23:49.761305Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:49.761786Z", "completed_at": "2024-09-03T21:23:49.761791Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.0047647953033447266, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot_source.unique_stg_hubspot__email_event_spam_report_event_id.448320447a", "compiled": true, "compiled_code": "\n \n \n\nselect\n event_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__email_event_spam_report\"\nwhere event_id is not null\ngroup by event_id\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:49.769279Z", "completed_at": "2024-09-03T21:23:49.772196Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:49.772649Z", "completed_at": "2024-09-03T21:23:49.772653Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.004270076751708984, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot_source.not_null_stg_hubspot__email_event_event_id.4f287f3531", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect event_id\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__email_event\"\nwhere event_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:49.774100Z", "completed_at": "2024-09-03T21:23:49.776937Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:49.777404Z", "completed_at": "2024-09-03T21:23:49.777409Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.004230022430419922, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot_source.unique_stg_hubspot__email_event_event_id.734683460d", "compiled": true, "compiled_code": "\n \n \n\nselect\n event_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__email_event\"\nwhere event_id is not null\ngroup by event_id\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:49.778823Z", "completed_at": "2024-09-03T21:23:49.782534Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:49.783024Z", "completed_at": "2024-09-03T21:23:49.783028Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.005129337310791016, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot_source.not_null_stg_hubspot__engagement_call_engagement_id.5ceb3917bf", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect engagement_id\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__engagement_call\"\nwhere engagement_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:49.784561Z", "completed_at": "2024-09-03T21:23:49.787369Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:49.787812Z", "completed_at": "2024-09-03T21:23:49.787816Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.00415492057800293, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot_source.unique_stg_hubspot__engagement_call_engagement_id.43b4413603", "compiled": true, "compiled_code": "\n \n \n\nselect\n engagement_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__engagement_call\"\nwhere engagement_id is not null\ngroup by engagement_id\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:49.789236Z", "completed_at": "2024-09-03T21:23:49.792131Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:49.792578Z", "completed_at": "2024-09-03T21:23:49.792582Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.004248142242431641, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot_source.not_null_stg_hubspot__engagement_email_engagement_id.175561ecca", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect engagement_id\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__engagement_email\"\nwhere engagement_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:49.793987Z", "completed_at": "2024-09-03T21:23:49.796632Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:49.797066Z", "completed_at": "2024-09-03T21:23:49.797070Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.003970146179199219, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot_source.unique_stg_hubspot__engagement_email_engagement_id.5eeb06dcfc", "compiled": true, "compiled_code": "\n \n \n\nselect\n engagement_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__engagement_email\"\nwhere engagement_id is not null\ngroup by engagement_id\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:49.798470Z", "completed_at": "2024-09-03T21:23:49.801725Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:49.802164Z", "completed_at": "2024-09-03T21:23:49.802169Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.004585981369018555, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot_source.not_null_stg_hubspot__engagement_note_engagement_id.244059891e", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect engagement_id\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__engagement_note\"\nwhere engagement_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:49.803576Z", "completed_at": "2024-09-03T21:23:49.807379Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:49.807934Z", "completed_at": "2024-09-03T21:23:49.807939Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.00528407096862793, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot_source.unique_stg_hubspot__engagement_note_engagement_id.e2eaf5256e", "compiled": true, "compiled_code": "\n \n \n\nselect\n engagement_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__engagement_note\"\nwhere engagement_id is not null\ngroup by engagement_id\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:49.809590Z", "completed_at": "2024-09-03T21:23:49.812727Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:49.813213Z", "completed_at": "2024-09-03T21:23:49.813219Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.0047032833099365234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot_source.not_null_stg_hubspot__engagement_meeting_engagement_id.18dd11dc28", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect engagement_id\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__engagement_meeting\"\nwhere engagement_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:49.814851Z", "completed_at": "2024-09-03T21:23:49.817607Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:49.818058Z", "completed_at": "2024-09-03T21:23:49.818062Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.004122734069824219, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot_source.unique_stg_hubspot__engagement_meeting_engagement_id.70721fb830", "compiled": true, "compiled_code": "\n \n \n\nselect\n engagement_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__engagement_meeting\"\nwhere engagement_id is not null\ngroup by engagement_id\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:49.819460Z", "completed_at": "2024-09-03T21:23:49.827282Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:49.827745Z", "completed_at": "2024-09-03T21:23:49.827750Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.009187936782836914, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot.hubspot__engagements", "compiled": true, "compiled_code": "\n\nwith engagements as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__engagement\"\n\n\n\n), contacts as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__engagement_contact\"\n\n), contacts_agg as (\n\n select \n engagement_id,\n \n array_agg(contact_id)\n as contact_ids\n from contacts\n group by 1\n\n\n\n\n\n), deals as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__engagement_deal\"\n \n), deals_agg as (\n\n select \n engagement_id,\n \n array_agg(deal_id)\n as deal_ids\n from deals\n group by 1\n\n\n\n\n\n), companies as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__engagement_company\"\n\n), companies_agg as (\n\n select \n engagement_id,\n \n array_agg(company_id)\n as company_ids\n from companies\n group by 1\n\n\n\n), joined as (\n\n select \n contacts_agg.contact_ids, \n deals_agg.deal_ids, \n companies_agg.company_ids, \n engagements.*\n from engagements\n left join contacts_agg using (engagement_id) \n left join deals_agg using (engagement_id) \n left join companies_agg using (engagement_id) \n\n)\n\nselect *\nfrom joined", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__engagements\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:49.829345Z", "completed_at": "2024-09-03T21:23:49.832408Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:49.832845Z", "completed_at": "2024-09-03T21:23:49.832849Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.004408121109008789, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot_source.not_null_stg_hubspot__engagement_engagement_id.b26f4d328f", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect engagement_id\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__engagement\"\nwhere engagement_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:49.834373Z", "completed_at": "2024-09-03T21:23:49.838045Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:49.838614Z", "completed_at": "2024-09-03T21:23:49.838619Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.005303859710693359, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot_source.unique_stg_hubspot__engagement_engagement_id.4f054187b0", "compiled": true, "compiled_code": "\n \n \n\nselect\n engagement_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__engagement\"\nwhere engagement_id is not null\ngroup by engagement_id\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:49.840180Z", "completed_at": "2024-09-03T21:23:49.843033Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:49.843477Z", "completed_at": "2024-09-03T21:23:49.843481Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.004223823547363281, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot_source.not_null_stg_hubspot__engagement_task_engagement_id.0bbd752d82", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect engagement_id\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__engagement_task\"\nwhere engagement_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:49.844884Z", "completed_at": "2024-09-03T21:23:49.847500Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:49.847943Z", "completed_at": "2024-09-03T21:23:49.847949Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.003956794738769531, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot_source.unique_stg_hubspot__engagement_task_engagement_id.0f578bc80c", "compiled": true, "compiled_code": "\n \n \n\nselect\n engagement_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__engagement_task\"\nwhere engagement_id is not null\ngroup by engagement_id\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:49.849386Z", "completed_at": "2024-09-03T21:23:49.852174Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:49.852613Z", "completed_at": "2024-09-03T21:23:49.852617Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.004145145416259766, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot_source.not_null_stg_hubspot__merged_deal_deal_id.a843ca0610", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect deal_id\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__merged_deal\"\nwhere deal_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:49.854022Z", "completed_at": "2024-09-03T21:23:49.856826Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:49.857267Z", "completed_at": "2024-09-03T21:23:49.857271Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.004155158996582031, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot_source.not_null_stg_hubspot__merged_deal_merged_deal_id.c2d24039b9", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect merged_deal_id\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__merged_deal\"\nwhere merged_deal_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:49.867998Z", "completed_at": "2024-09-03T21:23:49.871591Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:49.872080Z", "completed_at": "2024-09-03T21:23:49.872085Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.005098819732666016, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot_source.dbt_utils_unique_combination_of_columns_stg_hubspot__property_option_property_id__property_option_label.2792c4669b", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n property_id, property_option_label\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__property_option\"\n group by property_id, property_option_label\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:49.873704Z", "completed_at": "2024-09-03T21:23:49.878557Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:49.879180Z", "completed_at": "2024-09-03T21:23:49.879187Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.00653386116027832, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot_source.not_null_stg_hubspot__property__fivetran_id.37b6ec5db1", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect _fivetran_id\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__property\"\nwhere _fivetran_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:49.881278Z", "completed_at": "2024-09-03T21:23:49.884358Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:49.884811Z", "completed_at": "2024-09-03T21:23:49.884816Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.004893064498901367, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot_source.unique_stg_hubspot__property__fivetran_id.1d41a2aa95", "compiled": true, "compiled_code": "\n \n \n\nselect\n _fivetran_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__property\"\nwhere _fivetran_id is not null\ngroup by _fivetran_id\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:49.886482Z", "completed_at": "2024-09-03T21:23:49.896972Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:49.898193Z", "completed_at": "2024-09-03T21:23:49.898196Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.012915849685668945, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot.dbt_utils_unique_combination_of_columns_hubspot__company_history_company_id__field_name__valid_to.654ef778b1", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n company_id, field_name, valid_to\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__company_history\"\n group by company_id, field_name, valid_to\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:49.899962Z", "completed_at": "2024-09-03T21:23:49.903408Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:49.903883Z", "completed_at": "2024-09-03T21:23:49.903889Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.004912853240966797, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot.not_null_hubspot__company_history_id.33035793ff", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect id\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__company_history\"\nwhere id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:49.905410Z", "completed_at": "2024-09-03T21:23:49.908369Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:49.908827Z", "completed_at": "2024-09-03T21:23:49.908831Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.004364013671875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot.unique_hubspot__company_history_id.f1af964b1f", "compiled": true, "compiled_code": "\n \n \n\nselect\n id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__company_history\"\nwhere id is not null\ngroup by id\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:49.910343Z", "completed_at": "2024-09-03T21:23:49.913361Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:49.913902Z", "completed_at": "2024-09-03T21:23:49.913908Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.0045621395111083984, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot.dbt_utils_unique_combination_of_columns_hubspot__contact_history_contact_id__field_name__valid_to.42ccfb8329", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n contact_id, field_name, valid_to\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__contact_history\"\n group by contact_id, field_name, valid_to\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:49.915546Z", "completed_at": "2024-09-03T21:23:49.918890Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:49.919376Z", "completed_at": "2024-09-03T21:23:49.919383Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.004915952682495117, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot.not_null_hubspot__contact_history_id.eaae22e088", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect id\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__contact_history\"\nwhere id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:49.920870Z", "completed_at": "2024-09-03T21:23:49.924723Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:49.925179Z", "completed_at": "2024-09-03T21:23:49.925184Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.0052297115325927734, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot.unique_hubspot__contact_history_id.aef69ae1ec", "compiled": true, "compiled_code": "\n \n \n\nselect\n id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__contact_history\"\nwhere id is not null\ngroup by id\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:49.926672Z", "completed_at": "2024-09-03T21:23:49.931290Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:49.931796Z", "completed_at": "2024-09-03T21:23:49.931800Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.0060749053955078125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot.hubspot__email_event_bounce", "compiled": true, "compiled_code": "\n\n\n\nwith base as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__email_event_bounce\"\n\n), events as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__email_event\"\n\n\n), contacts as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"int_hubspot__contact_merge_adjust\" \n\n\n), events_joined as (\n\n select \n base.*,\n events.created_timestamp,\n events.email_campaign_id,\n events.recipient_email_address,\n events.sent_timestamp as email_send_timestamp,\n events.sent_by_event_id as email_send_id\n from base\n left join events\n using (event_id)\n\n\n), contacts_joined as (\n\n select \n events_joined.*,\n contacts.contact_id,\n coalesce(contacts.is_contact_deleted, false) as is_contact_deleted\n from events_joined\n left join contacts\n on events_joined.recipient_email_address = contacts.email\n\n)\n\nselect *\nfrom contacts_joined\n\n\n", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__email_event_bounce\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:49.933456Z", "completed_at": "2024-09-03T21:23:49.937069Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:49.937518Z", "completed_at": "2024-09-03T21:23:49.937522Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.005111217498779297, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot.hubspot__email_event_clicks", "compiled": true, "compiled_code": "\n\n\n\nwith base as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__email_event_click\"\n\n), events as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__email_event\"\n\n\n), contacts as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"int_hubspot__contact_merge_adjust\" \n\n\n), events_joined as (\n\n select \n base.*,\n events.created_timestamp,\n events.email_campaign_id,\n events.recipient_email_address,\n events.sent_timestamp as email_send_timestamp,\n events.sent_by_event_id as email_send_id\n from base\n left join events\n using (event_id)\n\n\n), contacts_joined as (\n\n select \n events_joined.*,\n contacts.contact_id,\n coalesce(contacts.is_contact_deleted, false) as is_contact_deleted\n from events_joined\n left join contacts\n on events_joined.recipient_email_address = contacts.email\n\n)\n\nselect *\nfrom contacts_joined\n\n\n", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__email_event_clicks\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:49.938988Z", "completed_at": "2024-09-03T21:23:49.942217Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:49.942659Z", "completed_at": "2024-09-03T21:23:49.942663Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.004559755325317383, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot.hubspot__email_event_deferred", "compiled": true, "compiled_code": "\n\n\n\nwith base as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__email_event_deferred\"\n\n), events as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__email_event\"\n\n\n), contacts as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"int_hubspot__contact_merge_adjust\" \n\n\n), events_joined as (\n\n select \n base.*,\n events.created_timestamp,\n events.email_campaign_id,\n events.recipient_email_address,\n events.sent_timestamp as email_send_timestamp,\n events.sent_by_event_id as email_send_id\n from base\n left join events\n using (event_id)\n\n\n), contacts_joined as (\n\n select \n events_joined.*,\n contacts.contact_id,\n coalesce(contacts.is_contact_deleted, false) as is_contact_deleted\n from events_joined\n left join contacts\n on events_joined.recipient_email_address = contacts.email\n\n)\n\nselect *\nfrom contacts_joined\n\n\n", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__email_event_deferred\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:49.944105Z", "completed_at": "2024-09-03T21:23:49.947193Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:49.947639Z", "completed_at": "2024-09-03T21:23:49.947643Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.004429817199707031, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot.hubspot__email_event_delivered", "compiled": true, "compiled_code": "\n\n\n\nwith base as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__email_event_delivered\"\n\n), events as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__email_event\"\n\n\n), contacts as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"int_hubspot__contact_merge_adjust\" \n\n\n), events_joined as (\n\n select \n base.*,\n events.created_timestamp,\n events.email_campaign_id,\n events.recipient_email_address,\n events.sent_timestamp as email_send_timestamp,\n events.sent_by_event_id as email_send_id\n from base\n left join events\n using (event_id)\n\n\n), contacts_joined as (\n\n select \n events_joined.*,\n contacts.contact_id,\n coalesce(contacts.is_contact_deleted, false) as is_contact_deleted\n from events_joined\n left join contacts\n on events_joined.recipient_email_address = contacts.email\n\n)\n\nselect *\nfrom contacts_joined\n\n\n", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__email_event_delivered\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:49.949124Z", "completed_at": "2024-09-03T21:23:49.953283Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:49.953729Z", "completed_at": "2024-09-03T21:23:49.953734Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.005494117736816406, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot.hubspot__email_event_dropped", "compiled": true, "compiled_code": "\n\n\n\nwith base as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__email_event_dropped\"\n\n), events as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__email_event\"\n\n\n), contacts as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"int_hubspot__contact_merge_adjust\" \n\n\n), events_joined as (\n\n select \n base.*,\n events.created_timestamp,\n events.email_campaign_id,\n events.recipient_email_address,\n events.sent_timestamp as email_send_timestamp,\n events.sent_by_event_id as email_send_id\n from base\n left join events\n using (event_id)\n\n\n), contacts_joined as (\n\n select \n events_joined.*,\n contacts.contact_id,\n coalesce(contacts.is_contact_deleted, false) as is_contact_deleted\n from events_joined\n left join contacts\n on events_joined.recipient_email_address = contacts.email\n\n)\n\nselect *\nfrom contacts_joined\n\n\n", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__email_event_dropped\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:49.955266Z", "completed_at": "2024-09-03T21:23:49.958627Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:49.959078Z", "completed_at": "2024-09-03T21:23:49.959083Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.004789113998413086, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot.hubspot__email_event_forward", "compiled": true, "compiled_code": "\n\n\n\nwith base as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__email_event_forward\"\n\n), events as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__email_event\"\n\n\n), contacts as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"int_hubspot__contact_merge_adjust\" \n\n\n), events_joined as (\n\n select \n base.*,\n events.created_timestamp,\n events.email_campaign_id,\n events.recipient_email_address,\n events.sent_timestamp as email_send_timestamp,\n events.sent_by_event_id as email_send_id\n from base\n left join events\n using (event_id)\n\n\n), contacts_joined as (\n\n select \n events_joined.*,\n contacts.contact_id,\n coalesce(contacts.is_contact_deleted, false) as is_contact_deleted\n from events_joined\n left join contacts\n on events_joined.recipient_email_address = contacts.email\n\n)\n\nselect *\nfrom contacts_joined\n\n\n", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__email_event_forward\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:49.960544Z", "completed_at": "2024-09-03T21:23:49.963735Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:49.964182Z", "completed_at": "2024-09-03T21:23:49.964186Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.004524946212768555, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot.hubspot__email_event_opens", "compiled": true, "compiled_code": "\n\n\n\nwith base as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__email_event_open\"\n\n), events as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__email_event\"\n\n\n), contacts as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"int_hubspot__contact_merge_adjust\" \n\n\n), events_joined as (\n\n select \n base.*,\n events.created_timestamp,\n events.email_campaign_id,\n events.recipient_email_address,\n events.sent_timestamp as email_send_timestamp,\n events.sent_by_event_id as email_send_id\n from base\n left join events\n using (event_id)\n\n\n), contacts_joined as (\n\n select \n events_joined.*,\n contacts.contact_id,\n coalesce(contacts.is_contact_deleted, false) as is_contact_deleted\n from events_joined\n left join contacts\n on events_joined.recipient_email_address = contacts.email\n\n)\n\nselect *\nfrom contacts_joined\n\n\n", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__email_event_opens\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:49.965657Z", "completed_at": "2024-09-03T21:23:49.968786Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:49.969223Z", "completed_at": "2024-09-03T21:23:49.969227Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.004463911056518555, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot.hubspot__email_event_print", "compiled": true, "compiled_code": "\n\n\n\nwith base as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__email_event_print\"\n\n), events as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__email_event\"\n\n\n), contacts as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"int_hubspot__contact_merge_adjust\" \n\n\n), events_joined as (\n\n select \n base.*,\n events.created_timestamp,\n events.email_campaign_id,\n events.recipient_email_address,\n events.sent_timestamp as email_send_timestamp,\n events.sent_by_event_id as email_send_id\n from base\n left join events\n using (event_id)\n\n\n), contacts_joined as (\n\n select \n events_joined.*,\n contacts.contact_id,\n coalesce(contacts.is_contact_deleted, false) as is_contact_deleted\n from events_joined\n left join contacts\n on events_joined.recipient_email_address = contacts.email\n\n)\n\nselect *\nfrom contacts_joined\n\n\n", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__email_event_print\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:49.970679Z", "completed_at": "2024-09-03T21:23:49.974787Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:49.975229Z", "completed_at": "2024-09-03T21:23:49.975233Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.005434989929199219, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot.hubspot__email_event_sent", "compiled": true, "compiled_code": "\n\n\n\nwith base as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__email_event_sent\"\n\n), events as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__email_event\"\n\n\n), contacts as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"int_hubspot__contact_merge_adjust\" \n\n\n), events_joined as (\n\n select \n base.*,\n events.created_timestamp,\n events.email_campaign_id,\n events.recipient_email_address,\n events.sent_timestamp as email_send_timestamp,\n events.sent_by_event_id as email_send_id\n from base\n left join events\n using (event_id)\n\n\n), contacts_joined as (\n\n select \n events_joined.*,\n contacts.contact_id,\n coalesce(contacts.is_contact_deleted, false) as is_contact_deleted\n from events_joined\n left join contacts\n on events_joined.recipient_email_address = contacts.email\n\n)\n\nselect *\nfrom contacts_joined\n\n\n", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__email_event_sent\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:49.976702Z", "completed_at": "2024-09-03T21:23:49.979985Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:49.980430Z", "completed_at": "2024-09-03T21:23:49.980434Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.004638195037841797, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot.hubspot__email_event_spam_report", "compiled": true, "compiled_code": "\n\n\n\nwith base as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__email_event_spam_report\"\n\n), events as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__email_event\"\n\n\n), contacts as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"int_hubspot__contact_merge_adjust\" \n\n\n), events_joined as (\n\n select \n base.*,\n events.created_timestamp,\n events.email_campaign_id,\n events.recipient_email_address,\n events.sent_timestamp as email_send_timestamp,\n events.sent_by_event_id as email_send_id\n from base\n left join events\n using (event_id)\n\n\n), contacts_joined as (\n\n select \n events_joined.*,\n contacts.contact_id,\n coalesce(contacts.is_contact_deleted, false) as is_contact_deleted\n from events_joined\n left join contacts\n on events_joined.recipient_email_address = contacts.email\n\n)\n\nselect *\nfrom contacts_joined\n\n\n", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__email_event_spam_report\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:49.981991Z", "completed_at": "2024-09-03T21:23:49.985104Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:49.985545Z", "completed_at": "2024-09-03T21:23:49.985549Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.004565000534057617, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot.hubspot__email_event_status_change", "compiled": true, "compiled_code": "\n\n\n\nwith base as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__email_event_status_change\"\n\n), events as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__email_event\"\n\n\n), contacts as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"int_hubspot__contact_merge_adjust\" \n\n\n), events_joined as (\n\n select \n base.*,\n events.created_timestamp,\n events.email_campaign_id,\n events.recipient_email_address,\n events.sent_timestamp as email_send_timestamp,\n events.sent_by_event_id as email_send_id\n from base\n left join events\n using (event_id)\n\n\n), contacts_joined as (\n\n select \n events_joined.*,\n contacts.contact_id,\n coalesce(contacts.is_contact_deleted, false) as is_contact_deleted\n from events_joined\n left join contacts\n on events_joined.recipient_email_address = contacts.email\n\n)\n\nselect *\nfrom contacts_joined\n\n\n", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__email_event_status_change\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:49.987038Z", "completed_at": "2024-09-03T21:23:49.990274Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:49.990739Z", "completed_at": "2024-09-03T21:23:49.990744Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.004637002944946289, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot.dbt_utils_unique_combination_of_columns_hubspot__deal_history_deal_id__field_name__valid_to.f55c724804", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n deal_id, field_name, valid_to\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__deal_history\"\n group by deal_id, field_name, valid_to\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:49.992233Z", "completed_at": "2024-09-03T21:23:49.994965Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:49.995393Z", "completed_at": "2024-09-03T21:23:49.995397Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.004055023193359375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot.not_null_hubspot__deal_history_id.a1c6cd6a75", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect id\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__deal_history\"\nwhere id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:48.882447Z", "completed_at": "2024-09-03T21:23:49.896520Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:49.897372Z", "completed_at": "2024-09-03T21:23:49.897379Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 1.1191658973693848, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__ticket_pipeline", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"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 created_at\n \n as \n \n created_at\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n cast(pipeline_id as integer ) as ticket_pipeline_id,\n _fivetran_deleted as is_ticket_pipeline_deleted,\n cast(_fivetran_synced as timestamp) as _fivetran_synced,\n active as is_active,\n display_order,\n label as pipeline_label,\n object_type_id,\n created_at as ticket_pipeline_created_at,\n updated_at as ticket_pipeline_updated_at\n from fields\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__ticket_pipeline\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:49.996822Z", "completed_at": "2024-09-03T21:23:50.000663Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:50.001864Z", "completed_at": "2024-09-03T21:23:50.001868Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.006285905838012695, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot.unique_hubspot__deal_history_id.1cb93fca79", "compiled": true, "compiled_code": "\n \n \n\nselect\n id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__deal_history\"\nwhere id is not null\ngroup by id\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:50.003333Z", "completed_at": "2024-09-03T21:23:50.010927Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:50.011822Z", "completed_at": "2024-09-03T21:23:50.011827Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.010343790054321289, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot.not_null_int_hubspot__email_event_aggregates_email_send_id.ac29e6997a", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__int_hubspot__email_event_aggregates as (\n\n\nwith events as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__email_event\"\n\n), aggregates as (\n\n select\n sent_by_event_id as email_send_id,\n count(case when event_type = 'OPEN' then sent_by_event_id end) as opens,\n count(case when event_type = 'SENT' then sent_by_event_id end) as sends,\n count(case when event_type = 'DELIVERED' then sent_by_event_id end) as deliveries,\n count(case when event_type = 'DROPPED' then sent_by_event_id end) as drops,\n count(case when event_type = 'CLICK' then sent_by_event_id end) as clicks,\n count(case when event_type = 'FORWARD' then sent_by_event_id end) as forwards,\n count(case when event_type = 'DEFERRED' then sent_by_event_id end) as deferrals,\n count(case when event_type = 'BOUNCE' then sent_by_event_id end) as bounces,\n count(case when event_type = 'SPAMREPORT' then sent_by_event_id end) as spam_reports,\n count(case when event_type = 'PRINT' then sent_by_event_id end) as prints\n from events\n where sent_by_event_id is not null\n group by 1\n\n)\n\nselect *\nfrom aggregates\n) select email_send_id\nfrom __dbt__cte__int_hubspot__email_event_aggregates\nwhere email_send_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:50.007220Z", "completed_at": "2024-09-03T21:23:50.011161Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:50.012052Z", "completed_at": "2024-09-03T21:23:50.012055Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.006289243698120117, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot.unique_int_hubspot__email_event_aggregates_email_send_id.4deec238f9", "compiled": true, "compiled_code": "\n \n \n\nwith __dbt__cte__int_hubspot__email_event_aggregates as (\n\n\nwith events as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__email_event\"\n\n), aggregates as (\n\n select\n sent_by_event_id as email_send_id,\n count(case when event_type = 'OPEN' then sent_by_event_id end) as opens,\n count(case when event_type = 'SENT' then sent_by_event_id end) as sends,\n count(case when event_type = 'DELIVERED' then sent_by_event_id end) as deliveries,\n count(case when event_type = 'DROPPED' then sent_by_event_id end) as drops,\n count(case when event_type = 'CLICK' then sent_by_event_id end) as clicks,\n count(case when event_type = 'FORWARD' then sent_by_event_id end) as forwards,\n count(case when event_type = 'DEFERRED' then sent_by_event_id end) as deferrals,\n count(case when event_type = 'BOUNCE' then sent_by_event_id end) as bounces,\n count(case when event_type = 'SPAMREPORT' then sent_by_event_id end) as spam_reports,\n count(case when event_type = 'PRINT' then sent_by_event_id end) as prints\n from events\n where sent_by_event_id is not null\n group by 1\n\n)\n\nselect *\nfrom aggregates\n) select\n email_send_id as unique_field,\n count(*) as n_records\n\nfrom __dbt__cte__int_hubspot__email_event_aggregates\nwhere email_send_id is not null\ngroup by email_send_id\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:50.014835Z", "completed_at": "2024-09-03T21:23:50.028134Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:50.028713Z", "completed_at": "2024-09-03T21:23:50.028721Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.01546025276184082, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot.hubspot__companies", "compiled": true, "compiled_code": "\n\nwith companies as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__company\"\n\n\n\n), engagements as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__engagements\"\n\n), engagement_companies as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__engagement_company\"\n\n), engagement_companies_joined as (\n\n select\n engagements.engagement_type,\n engagement_companies.company_id\n from engagements\n inner join engagement_companies\n using (engagement_id)\n\n), engagement_companies_agg as (\n\n \n\n select\n company_id,\n count(case when engagement_type = 'NOTE' then company_id end) as count_engagement_notes,\n count(case when engagement_type = 'TASK' then company_id end) as count_engagement_tasks,\n count(case when engagement_type = 'CALL' then company_id end) as count_engagement_calls,\n count(case when engagement_type = 'MEETING' then company_id end) as count_engagement_meetings,\n count(case when engagement_type = 'EMAIL' then company_id end) as count_engagement_emails,\n count(case when engagement_type = 'INCOMING_EMAIL' then company_id end) as count_engagement_incoming_emails,\n count(case when engagement_type = 'FORWARDED_EMAIL' then company_id end) as count_engagement_forwarded_emails\n from engagement_companies_joined\n group by 1\n\n\n\n), joined as (\n\n select \n companies.*,\n \n coalesce(engagement_companies_agg.count_engagement_notes,0) as count_engagement_notes ,\n \n coalesce(engagement_companies_agg.count_engagement_tasks,0) as count_engagement_tasks ,\n \n coalesce(engagement_companies_agg.count_engagement_calls,0) as count_engagement_calls ,\n \n coalesce(engagement_companies_agg.count_engagement_meetings,0) as count_engagement_meetings ,\n \n coalesce(engagement_companies_agg.count_engagement_emails,0) as count_engagement_emails ,\n \n coalesce(engagement_companies_agg.count_engagement_incoming_emails,0) as count_engagement_incoming_emails ,\n \n coalesce(engagement_companies_agg.count_engagement_forwarded_emails,0) as count_engagement_forwarded_emails \n \n from companies\n left join engagement_companies_agg\n using (company_id)\n\n)\n\nselect *\nfrom joined\n\n", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__companies\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:49.237792Z", "completed_at": "2024-09-03T21:23:50.188566Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:50.189190Z", "completed_at": "2024-09-03T21:23:50.189197Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 1.065023422241211, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__ticket_property_history", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__ticket_property_history_tmp\"\n\n), macro as (\n\n select\n \n \n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n ticket_id\n \n as \n \n ticket_id\n \n, \n \n \n name\n \n as field_name , \n \n \n source\n \n as change_source , \n \n \n source_id\n \n as change_source_id , \n \n \n timestamp_instant\n \n as change_timestamp , \n \n \n value\n \n as new_value \n\n\n \n \n \n \n \n\n \n \n , \"_fivetran_active\"\n\n \n \n from base\n\n)\n\nselect *\nfrom macro", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__ticket_property_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:49.326198Z", "completed_at": "2024-09-03T21:23:50.325695Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:50.326159Z", "completed_at": "2024-09-03T21:23:50.326166Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 1.1219959259033203, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot_source.stg_hubspot__ticket", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__ticket_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 ticket_id , \n cast(null as boolean) as _fivetran_ticket_deleted , \n \n \n is_deleted\n \n as is_ticket_deleted , \n \n \n property_closed_date\n \n as closed_date , \n \n \n property_createdate\n \n as created_date , \n \n \n property_first_agent_reply_date\n \n as first_agent_reply_at , \n \n \n property_hs_pipeline\n \n as ticket_pipeline_id , \n \n \n property_hs_pipeline_stage\n \n as ticket_pipeline_stage_id , \n \n \n property_hs_ticket_category\n \n as ticket_category , \n \n \n property_hs_ticket_priority\n \n as ticket_priority , \n \n \n property_hubspot_owner_id\n \n as owner_id , \n \n \n property_subject\n \n as ticket_subject , \n \n \n property_content\n \n as ticket_content \n\n\n from base\n\n), fields as (\n\n select\n\n\n -- just default columns + explicitly configured passthrough columns\n -- a few columns below are aliased within the macros/get_ticket_columns.sql macro\n ticket_id,\n coalesce(_fivetran_ticket_deleted, is_ticket_deleted) as is_ticket_deleted,\n cast(_fivetran_synced as timestamp) as _fivetran_synced,\n cast(closed_date as timestamp) as closed_date,\n cast(created_date as timestamp) as created_date,\n first_agent_reply_at,\n ticket_pipeline_id,\n ticket_pipeline_stage_id,\n ticket_category,\n ticket_priority,\n owner_id,\n ticket_subject,\n 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 -- The below macro add the ability to create calculated fields using the hubspot__ticket_calculated_fields variable.\n \n\n\n \n from macro\n\n\n), joined as (\n \n\nselect fields.*\n\nfrom fields\n)\n\nselect *\nfrom joined", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__ticket\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:50.030589Z", "completed_at": "2024-09-03T21:23:51.050271Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:51.051173Z", "completed_at": "2024-09-03T21:23:51.051178Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 1.1288361549377441, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot.hubspot__engagement_emails", "compiled": true, "compiled_code": "\n\n\n\nwith base as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__engagement_email\"\n\n), engagements as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__engagements\"\n\n), joined as (\n\n select \n base.\"_fivetran_synced\",\n base.\"engagement_type\",\n base.\"engagement_id\",\n base.\"team_id\",\n base.\"all_owner_ids\",\n base.\"all_team_ids\",\n base.\"email_subject\",\n base.\"email_text\",\n base.\"lastmodifieddate\",\n base.\"modified_by\",\n engagements.contact_ids, \n engagements.deal_ids, \n engagements.company_ids, \n coalesce(engagements.is_active, not base._fivetran_deleted) as is_active,\n coalesce(engagements.created_timestamp, base.created_timestamp) as created_timestamp,\n coalesce(engagements.occurred_timestamp, base.occurred_timestamp) as occurred_timestamp,\n coalesce(engagements.owner_id, base.owner_id) as owner_id\n from base\n left join engagements\n on base.engagement_id = engagements.engagement_id\n\n)\n\nselect *\nfrom joined\n\n", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__engagement_emails\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:50.020646Z", "completed_at": "2024-09-03T21:23:51.049323Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:51.049957Z", "completed_at": "2024-09-03T21:23:51.049967Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 1.1518661975860596, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot.hubspot__engagement_calls", "compiled": true, "compiled_code": "\n\n\n\nwith base as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__engagement_call\"\n\n), engagements as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__engagements\"\n\n), joined as (\n\n select \n base.\"_fivetran_synced\",\n base.\"engagement_id\",\n base.\"engagement_type\",\n base.\"team_id\",\n engagements.contact_ids, \n engagements.deal_ids, \n engagements.company_ids, \n coalesce(engagements.is_active, not base._fivetran_deleted) as is_active,\n coalesce(engagements.created_timestamp, base.created_timestamp) as created_timestamp,\n coalesce(engagements.occurred_timestamp, base.occurred_timestamp) as occurred_timestamp,\n coalesce(engagements.owner_id, base.owner_id) as owner_id\n from base\n left join engagements\n on base.engagement_id = engagements.engagement_id\n\n)\n\nselect *\nfrom joined\n\n", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__engagement_calls\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:51.173940Z", "completed_at": "2024-09-03T21:23:51.176877Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:51.177328Z", "completed_at": "2024-09-03T21:23:51.177332Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.004286050796508789, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot.not_null_hubspot__engagements_engagement_id.59b32bc0d7", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect engagement_id\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__engagements\"\nwhere engagement_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:51.178743Z", "completed_at": "2024-09-03T21:23:51.181490Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:51.181934Z", "completed_at": "2024-09-03T21:23:51.181938Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.004079103469848633, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot.unique_hubspot__engagements_engagement_id.01d5c3ee5d", "compiled": true, "compiled_code": "\n \n \n\nselect\n engagement_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__engagements\"\nwhere engagement_id is not null\ngroup by engagement_id\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:51.183329Z", "completed_at": "2024-09-03T21:23:51.236626Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:51.237256Z", "completed_at": "2024-09-03T21:23:51.237267Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.05495500564575195, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot.hubspot__deal_stages", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_hubspot__deals_enhanced as (\n\n\nwith deals as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__deal\"\n\n\n), merged_deals as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__merged_deal\"\n\n), aggregate_merged_deals as (\n\n select\n deal_id,\n \n array_agg(merged_deal_id)\n as merged_deal_ids\n from merged_deals\n group by 1\n\n\n), pipelines as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__deal_pipeline\"\n\n), pipeline_stages as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__deal_pipeline_stage\"\n\n\n), owners as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__owner\"\n\n\n), deal_fields_joined as (\n\n select \n deals.*,\n\n \n aggregate_merged_deals.merged_deal_ids,\n \n\n coalesce(pipelines.is_deal_pipeline_deleted, false) as is_deal_pipeline_deleted,\n pipelines.pipeline_label,\n pipelines.is_active as is_pipeline_active,\n coalesce(pipeline_stages.is_deal_pipeline_stage_deleted, false) as is_deal_pipeline_stage_deleted,\n pipelines.deal_pipeline_created_at,\n pipelines.deal_pipeline_updated_at,\n pipeline_stages.pipeline_stage_label\n\n \n , owners.email_address as owner_email_address\n , owners.full_name as owner_full_name\n \n\n from deals \n left join pipelines \n on deals.deal_pipeline_id = pipelines.deal_pipeline_id\n left join pipeline_stages \n on deals.deal_pipeline_stage_id = pipeline_stages.deal_pipeline_stage_id\n\n \n left join owners \n on deals.owner_id = owners.owner_id\n \n\n \n left join aggregate_merged_deals\n on deals.deal_id = aggregate_merged_deals.deal_id\n\n left join merged_deals\n on deals.deal_id = merged_deals.merged_deal_id\n where merged_deals.merged_deal_id is null\n \n) \n\nselect *\nfrom deal_fields_joined\n), deals_enhanced as (\n\n select *\n from __dbt__cte__int_hubspot__deals_enhanced\n\n), deal_stage as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__deal_stage\"\n\n), pipeline_stage as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__deal_pipeline_stage\"\n\n), pipeline as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__deal_pipeline\"\n\n), final as (\n\n select\n deal_stage.deal_id || '-' || row_number() over(partition by deal_stage.deal_id order by deal_stage.date_entered asc) as deal_stage_id,\n deals_enhanced.deal_id,\n deals_enhanced.deal_name,\n\n \n deals_enhanced.merged_deal_ids,\n \n \n deal_stage._fivetran_start as date_stage_entered,\n deal_stage._fivetran_end as date_stage_exited,\n deal_stage._fivetran_active as is_stage_active,\n deal_stage.deal_stage_name as pipeline_stage_id,\n pipeline_stage.pipeline_stage_label,\n pipeline_stage.deal_pipeline_id as pipeline_id,\n pipeline.pipeline_label,\n deal_stage.source,\n deal_stage.source_id,\n pipeline_stage.is_active as is_pipeline_stage_active,\n pipeline.is_active as is_pipeline_active,\n pipeline_stage.is_closed_won as is_pipeline_stage_closed_won,\n pipeline_stage.display_order as pipeline_stage_display_order,\n pipeline.display_order as pipeline_display_order,\n pipeline_stage.probability as pipeline_stage_probability,\n coalesce(pipeline.is_deal_pipeline_deleted, false) as is_deal_pipeline_deleted,\n coalesce(pipeline_stage.is_deal_pipeline_stage_deleted, false) as is_deal_pipeline_stage_deleted,\n coalesce(deals_enhanced.is_deal_deleted, false) as is_deal_deleted,\n pipeline_stage.deal_pipeline_stage_created_at,\n pipeline_stage.deal_pipeline_stage_updated_at\n\n from deal_stage\n\n left join pipeline_stage\n on deal_stage.deal_stage_name = pipeline_stage.deal_pipeline_stage_id\n \n left join pipeline\n on pipeline_stage.deal_pipeline_id = pipeline.deal_pipeline_id\n\n left join deals_enhanced\n on deal_stage.deal_id = deals_enhanced.deal_id\n)\n\nselect * \nfrom final", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__deal_stages\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:51.238883Z", "completed_at": "2024-09-03T21:23:51.258048Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:51.258474Z", "completed_at": "2024-09-03T21:23:51.258476Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.020611047744750977, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot.hubspot__deals", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_hubspot__deals_enhanced as (\n\n\nwith deals as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__deal\"\n\n\n), merged_deals as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__merged_deal\"\n\n), aggregate_merged_deals as (\n\n select\n deal_id,\n \n array_agg(merged_deal_id)\n as merged_deal_ids\n from merged_deals\n group by 1\n\n\n), pipelines as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__deal_pipeline\"\n\n), pipeline_stages as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__deal_pipeline_stage\"\n\n\n), owners as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__owner\"\n\n\n), deal_fields_joined as (\n\n select \n deals.*,\n\n \n aggregate_merged_deals.merged_deal_ids,\n \n\n coalesce(pipelines.is_deal_pipeline_deleted, false) as is_deal_pipeline_deleted,\n pipelines.pipeline_label,\n pipelines.is_active as is_pipeline_active,\n coalesce(pipeline_stages.is_deal_pipeline_stage_deleted, false) as is_deal_pipeline_stage_deleted,\n pipelines.deal_pipeline_created_at,\n pipelines.deal_pipeline_updated_at,\n pipeline_stages.pipeline_stage_label\n\n \n , owners.email_address as owner_email_address\n , owners.full_name as owner_full_name\n \n\n from deals \n left join pipelines \n on deals.deal_pipeline_id = pipelines.deal_pipeline_id\n left join pipeline_stages \n on deals.deal_pipeline_stage_id = pipeline_stages.deal_pipeline_stage_id\n\n \n left join owners \n on deals.owner_id = owners.owner_id\n \n\n \n left join aggregate_merged_deals\n on deals.deal_id = aggregate_merged_deals.deal_id\n\n left join merged_deals\n on deals.deal_id = merged_deals.merged_deal_id\n where merged_deals.merged_deal_id is null\n \n) \n\nselect *\nfrom deal_fields_joined\n), deals_enhanced as (\n\n select *\n from __dbt__cte__int_hubspot__deals_enhanced\n\n\n\n), engagements as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__engagements\"\n\n), engagement_deals as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__engagement_deal\"\n\n), engagement_deal_joined as (\n\n select\n engagements.engagement_type,\n engagement_deals.deal_id\n from engagements\n inner join engagement_deals\n on cast(engagements.engagement_id as bigint) = cast(engagement_deals.engagement_id as bigint )\n\n), engagement_deal_agg as (\n\n \n\n select\n deal_id,\n count(case when engagement_type = 'NOTE' then deal_id end) as count_engagement_notes,\n count(case when engagement_type = 'TASK' then deal_id end) as count_engagement_tasks,\n count(case when engagement_type = 'CALL' then deal_id end) as count_engagement_calls,\n count(case when engagement_type = 'MEETING' then deal_id end) as count_engagement_meetings,\n count(case when engagement_type = 'EMAIL' then deal_id end) as count_engagement_emails,\n count(case when engagement_type = 'INCOMING_EMAIL' then deal_id end) as count_engagement_incoming_emails,\n count(case when engagement_type = 'FORWARDED_EMAIL' then deal_id end) as count_engagement_forwarded_emails\n from engagement_deal_joined\n group by 1\n\n\n\n), engagements_joined as (\n\n select \n deals_enhanced.*,\n \n coalesce(engagement_deal_agg.count_engagement_notes,0) as count_engagement_notes ,\n \n coalesce(engagement_deal_agg.count_engagement_tasks,0) as count_engagement_tasks ,\n \n coalesce(engagement_deal_agg.count_engagement_calls,0) as count_engagement_calls ,\n \n coalesce(engagement_deal_agg.count_engagement_meetings,0) as count_engagement_meetings ,\n \n coalesce(engagement_deal_agg.count_engagement_emails,0) as count_engagement_emails ,\n \n coalesce(engagement_deal_agg.count_engagement_incoming_emails,0) as count_engagement_incoming_emails ,\n \n coalesce(engagement_deal_agg.count_engagement_forwarded_emails,0) as count_engagement_forwarded_emails \n \n from deals_enhanced\n left join engagement_deal_agg\n on cast(deals_enhanced.deal_id as bigint) = cast(engagement_deal_agg.deal_id as bigint )\n\n)\n\nselect *\nfrom engagements_joined\n\n", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__deals\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:51.260176Z", "completed_at": "2024-09-03T21:23:51.263422Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:51.263889Z", "completed_at": "2024-09-03T21:23:51.263893Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.0046939849853515625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot.not_null_hubspot__email_event_bounce_event_id.39d8daa6f5", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect event_id\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__email_event_bounce\"\nwhere event_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:51.265321Z", "completed_at": "2024-09-03T21:23:51.268124Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:51.268564Z", "completed_at": "2024-09-03T21:23:51.268570Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.004130840301513672, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot.unique_hubspot__email_event_bounce_event_id.7a1c6704e1", "compiled": true, "compiled_code": "\n \n \n\nselect\n event_id as unique_field,\n count(*) as n_records\n\nfrom (select * from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__email_event_bounce\" where not coalesce(is_contact_deleted, false)) dbt_subquery\nwhere event_id is not null\ngroup by event_id\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:51.269971Z", "completed_at": "2024-09-03T21:23:51.273707Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:51.274152Z", "completed_at": "2024-09-03T21:23:51.274156Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.00509190559387207, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot.not_null_hubspot__email_event_clicks_event_id.f603501ca0", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect event_id\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__email_event_clicks\"\nwhere event_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:51.275608Z", "completed_at": "2024-09-03T21:23:51.278404Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:51.278856Z", "completed_at": "2024-09-03T21:23:51.278860Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.004160165786743164, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot.unique_hubspot__email_event_clicks_event_id.60d3912846", "compiled": true, "compiled_code": "\n \n \n\nselect\n event_id as unique_field,\n count(*) as n_records\n\nfrom (select * from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__email_event_clicks\" where not coalesce(is_contact_deleted, false)) dbt_subquery\nwhere event_id is not null\ngroup by event_id\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:51.280305Z", "completed_at": "2024-09-03T21:23:51.283077Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:51.283511Z", "completed_at": "2024-09-03T21:23:51.283515Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.004102945327758789, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot.not_null_hubspot__email_event_deferred_event_id.2c6decaa91", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect event_id\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__email_event_deferred\"\nwhere event_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:51.284906Z", "completed_at": "2024-09-03T21:23:51.287536Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:51.287967Z", "completed_at": "2024-09-03T21:23:51.287971Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.004230976104736328, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot.unique_hubspot__email_event_deferred_event_id.bb75dcb83a", "compiled": true, "compiled_code": "\n \n \n\nselect\n event_id as unique_field,\n count(*) as n_records\n\nfrom (select * from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__email_event_deferred\" where not coalesce(is_contact_deleted, false)) dbt_subquery\nwhere event_id is not null\ngroup by event_id\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:51.290006Z", "completed_at": "2024-09-03T21:23:51.293245Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:51.293672Z", "completed_at": "2024-09-03T21:23:51.293677Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.0047910213470458984, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot.not_null_hubspot__email_event_delivered_event_id.0609870be3", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect event_id\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__email_event_delivered\"\nwhere event_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:51.295365Z", "completed_at": "2024-09-03T21:23:51.299574Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:51.300065Z", "completed_at": "2024-09-03T21:23:51.300071Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.005894899368286133, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot.unique_hubspot__email_event_delivered_event_id.242e838cce", "compiled": true, "compiled_code": "\n \n \n\nselect\n event_id as unique_field,\n count(*) as n_records\n\nfrom (select * from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__email_event_delivered\" where not coalesce(is_contact_deleted, false)) dbt_subquery\nwhere event_id is not null\ngroup by event_id\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:51.301828Z", "completed_at": "2024-09-03T21:23:51.304948Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:51.305428Z", "completed_at": "2024-09-03T21:23:51.305433Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.004677772521972656, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot.not_null_hubspot__email_event_dropped_event_id.5cfe4eeb95", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect event_id\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__email_event_dropped\"\nwhere event_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:51.306908Z", "completed_at": "2024-09-03T21:23:51.310038Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:51.310518Z", "completed_at": "2024-09-03T21:23:51.310526Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.004538774490356445, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot.unique_hubspot__email_event_dropped_event_id.093040860b", "compiled": true, "compiled_code": "\n \n \n\nselect\n event_id as unique_field,\n count(*) as n_records\n\nfrom (select * from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__email_event_dropped\" where not coalesce(is_contact_deleted, false)) dbt_subquery\nwhere event_id is not null\ngroup by event_id\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:51.311979Z", "completed_at": "2024-09-03T21:23:51.314794Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:51.315255Z", "completed_at": "2024-09-03T21:23:51.315260Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.0041692256927490234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot.not_null_hubspot__email_event_forward_event_id.417a73da08", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect event_id\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__email_event_forward\"\nwhere event_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:51.317006Z", "completed_at": "2024-09-03T21:23:51.319993Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:51.320430Z", "completed_at": "2024-09-03T21:23:51.320435Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.004418611526489258, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot.unique_hubspot__email_event_forward_event_id.064956aaa7", "compiled": true, "compiled_code": "\n \n \n\nselect\n event_id as unique_field,\n count(*) as n_records\n\nfrom (select * from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__email_event_forward\" where not coalesce(is_contact_deleted, false)) dbt_subquery\nwhere event_id is not null\ngroup by event_id\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:51.322013Z", "completed_at": "2024-09-03T21:23:51.326174Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:51.326572Z", "completed_at": "2024-09-03T21:23:51.326576Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.005548000335693359, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot.not_null_hubspot__email_event_opens_event_id.a9fe279ee1", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect event_id\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__email_event_opens\"\nwhere event_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:51.328133Z", "completed_at": "2024-09-03T21:23:51.331309Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:51.331721Z", "completed_at": "2024-09-03T21:23:51.331725Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.004617929458618164, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot.unique_hubspot__email_event_opens_event_id.d7963f4eb0", "compiled": true, "compiled_code": "\n \n \n\nselect\n event_id as unique_field,\n count(*) as n_records\n\nfrom (select * from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__email_event_opens\" where not coalesce(is_contact_deleted, false)) dbt_subquery\nwhere event_id is not null\ngroup by event_id\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:51.333351Z", "completed_at": "2024-09-03T21:23:51.336372Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:51.336847Z", "completed_at": "2024-09-03T21:23:51.336853Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.004629611968994141, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot.not_null_hubspot__email_event_print_event_id.9dac8a147e", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect event_id\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__email_event_print\"\nwhere event_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:51.338446Z", "completed_at": "2024-09-03T21:23:51.341414Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:51.341929Z", "completed_at": "2024-09-03T21:23:51.341937Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.004561901092529297, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot.unique_hubspot__email_event_print_event_id.548f6cece7", "compiled": true, "compiled_code": "\n \n \n\nselect\n event_id as unique_field,\n count(*) as n_records\n\nfrom (select * from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__email_event_print\" where not coalesce(is_contact_deleted, false)) dbt_subquery\nwhere event_id is not null\ngroup by event_id\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:51.343850Z", "completed_at": "2024-09-03T21:23:51.346762Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:51.347210Z", "completed_at": "2024-09-03T21:23:51.347215Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.004608154296875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot.not_null_hubspot__email_event_sent_event_id.5507dcc5b9", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect event_id\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__email_event_sent\"\nwhere event_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:50.303279Z", "completed_at": "2024-09-03T21:23:51.256913Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:51.257508Z", "completed_at": "2024-09-03T21:23:51.257515Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 1.0502829551696777, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot.hubspot__engagement_meetings", "compiled": true, "compiled_code": "\n\n\n\nwith base as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__engagement_meeting\"\n\n), engagements as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__engagements\"\n\n), joined as (\n\n select \n base.\"_fivetran_synced\",\n base.\"engagement_type\",\n base.\"engagement_id\",\n base.\"team_id\",\n base.\"created_from_link_id\",\n base.\"end_time\",\n base.\"pre_meeting_prospect_reminders\",\n base.\"source\",\n base.\"source_id\",\n base.\"start_time\",\n base.\"web_conference_meeting_id\",\n base.\"meeting_outcome\",\n base.\"body\",\n base.\"external_url\",\n base.\"title\",\n engagements.contact_ids, \n engagements.deal_ids, \n engagements.company_ids, \n coalesce(engagements.is_active, not base._fivetran_deleted) as is_active,\n coalesce(engagements.created_timestamp, base.created_timestamp) as created_timestamp,\n coalesce(engagements.occurred_timestamp, base.occurred_timestamp) as occurred_timestamp,\n coalesce(engagements.owner_id, base.owner_id) as owner_id\n from base\n left join engagements\n on base.engagement_id = engagements.engagement_id\n\n)\n\nselect *\nfrom joined\n\n", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__engagement_meetings\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:51.348654Z", "completed_at": "2024-09-03T21:23:51.353611Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:51.355042Z", "completed_at": "2024-09-03T21:23:51.355047Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.010198831558227539, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot.unique_hubspot__email_event_sent_event_id.68076270f8", "compiled": true, "compiled_code": "\n \n \n\nselect\n event_id as unique_field,\n count(*) as n_records\n\nfrom (select * from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__email_event_sent\" where not coalesce(is_contact_deleted, false)) dbt_subquery\nwhere event_id is not null\ngroup by event_id\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:51.355310Z", "completed_at": "2024-09-03T21:23:51.362565Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:51.363532Z", "completed_at": "2024-09-03T21:23:51.363538Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.010544061660766602, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot.not_null_hubspot__email_event_spam_report_event_id.5ddca8771a", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect event_id\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__email_event_spam_report\"\nwhere event_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:51.359709Z", "completed_at": "2024-09-03T21:23:51.363782Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:51.365289Z", "completed_at": "2024-09-03T21:23:51.365292Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.006932973861694336, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot.unique_hubspot__email_event_spam_report_event_id.20aab81ec6", "compiled": true, "compiled_code": "\n \n \n\nselect\n event_id as unique_field,\n count(*) as n_records\n\nfrom (select * from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__email_event_spam_report\" where not coalesce(is_contact_deleted, false)) dbt_subquery\nwhere event_id is not null\ngroup by event_id\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:51.369842Z", "completed_at": "2024-09-03T21:23:51.372989Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:51.374557Z", "completed_at": "2024-09-03T21:23:51.374563Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.006411075592041016, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot.not_null_hubspot__email_event_status_change_event_id.a1737e44b3", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect event_id\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__email_event_status_change\"\nwhere event_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:51.376508Z", "completed_at": "2024-09-03T21:23:51.383964Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:51.384550Z", "completed_at": "2024-09-03T21:23:51.384555Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.010163068771362305, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot.unique_hubspot__email_event_status_change_event_id.2e5b2b72e2", "compiled": true, "compiled_code": "\n \n \n\nselect\n event_id as unique_field,\n count(*) as n_records\n\nfrom (select * from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__email_event_status_change\" where not coalesce(is_contact_deleted, false)) dbt_subquery\nwhere event_id is not null\ngroup by event_id\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:51.381224Z", "completed_at": "2024-09-03T21:23:51.385589Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:51.386809Z", "completed_at": "2024-09-03T21:23:51.386813Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.009721040725708008, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot.not_null_hubspot__companies_company_id.687ec98e97", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect company_id\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__companies\"\nwhere company_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:51.387052Z", "completed_at": "2024-09-03T21:23:51.391539Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:51.404704Z", "completed_at": "2024-09-03T21:23:51.404713Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.01939702033996582, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot.unique_hubspot__companies_company_id.a58ceac3f2", "compiled": true, "compiled_code": "\n \n \n\nselect\n company_id as unique_field,\n count(*) as n_records\n\nfrom (select * from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__companies\" where not coalesce(is_company_deleted, false)) dbt_subquery\nwhere company_id is not null\ngroup by company_id\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:51.391776Z", "completed_at": "2024-09-03T21:23:51.405836Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:51.407118Z", "completed_at": "2024-09-03T21:23:51.407123Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.024433135986328125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot.int_hubspot__daily_ticket_history", "compiled": true, "compiled_code": "\n\nwith history as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__ticket_property_history\"\n\n -- should we include an option pivot out ALL properties? in the same vein as our passthrough-all-columns var\n where lower(field_name) in \n ('hs_pipeline', 'hs_pipeline_stage'\n )\n\n \n and change_timestamp >= (select cast(max(date_day) as timestamp) from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"int_hubspot__daily_ticket_history\" )\n \n\n), windows as (\n\n select\n cast(date_trunc('day', change_timestamp) as date) as date_day,\n ticket_id,\n field_name,\n new_value,\n change_source,\n change_source_id,\n change_timestamp as valid_from,\n _fivetran_end as valid_to\n -- if it is currently active fivetran_end = 9999-12-31 23:59:59, but the calendar_spine will end at the current_date\n from history\n\n), order_daily_changes as (\n\n select \n *,\n row_number() over (\n partition by date_day, ticket_id, field_name\n order by valid_from desc\n ) as row_num\n from windows\n\n), extract_latest as (\n \n select \n date_day,\n ticket_id,\n field_name,\n case when new_value is null then 'is_null' else new_value end as new_value,\n change_source,\n change_source_id,\n valid_from,\n valid_to\n\n from order_daily_changes\n where row_num = 1\n\n), surrogate as (\n\n select \n *,\n md5(cast(coalesce(cast(field_name as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(ticket_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(date_day as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as id\n from extract_latest\n\n)\n\nselect *\nfrom surrogate", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"int_hubspot__daily_ticket_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:51.417616Z", "completed_at": "2024-09-03T21:23:51.420716Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:51.421164Z", "completed_at": "2024-09-03T21:23:51.421169Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.004744052886962891, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot_source.not_null_stg_hubspot__ticket_ticket_id.299e7c4c53", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ticket_id\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__ticket\"\nwhere ticket_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:51.422646Z", "completed_at": "2024-09-03T21:23:51.425379Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:51.425809Z", "completed_at": "2024-09-03T21:23:51.425813Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.004111051559448242, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot_source.unique_stg_hubspot__ticket_ticket_id.78c6fbfcaf", "compiled": true, "compiled_code": "\n \n \n\nselect\n ticket_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__ticket\"\nwhere ticket_id is not null\ngroup by ticket_id\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:51.427571Z", "completed_at": "2024-09-03T21:23:51.441586Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:51.442029Z", "completed_at": "2024-09-03T21:23:51.442035Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.015646934509277344, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot.hubspot__tickets", "compiled": true, "compiled_code": "\n\nwith ticket as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__ticket\"\n\n), ticket_pipeline as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__ticket_pipeline\"\n\n), ticket_pipeline_stage as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__ticket_pipeline_stage\"\n\n\n\n\n), ticket_company as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__ticket_company\"\n\n), company as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__company\"\n\n), join_companies as (\n \n select\n ticket_company.ticket_id,\n ticket_company.company_id,\n company.company_name\n\n from ticket_company\n left join company \n on ticket_company.company_id = company.company_id\n\n), agg_companies as (\n\n select\n ticket_id,\n \n array_agg(case when company_id is null then '' else cast(company_id as TEXT) end)\n as company_ids,\n \n array_agg(case when company_name is null then '' else company_name end)\n as company_names\n\n from join_companies\n group by 1\n\n\n\n\n), ticket_contact as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__ticket_contact\"\n\n), contact as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__contact\"\n\n), join_contacts as (\n \n select\n ticket_contact.ticket_id,\n ticket_contact.contact_id,\n contact.email\n\n from ticket_contact\n left join contact \n on ticket_contact.contact_id = contact.contact_id\n\n), agg_contacts as (\n\n select\n ticket_id,\n \n array_agg(case when contact_id is null then '' else cast(contact_id as TEXT) end)\n as contact_ids,\n \n array_agg(case when email is null then '' else email end)\n as contact_emails\n\n from join_contacts\n group by 1\n\n\n\n\n), owner as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__owner\"\n\n\n\n\n), engagement as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__engagements\"\n\n), ticket_engagement as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__ticket_engagement\"\n\n), join_engagements as (\n\n select \n engagement.engagement_type,\n ticket_engagement.ticket_id\n from engagement\n inner join ticket_engagement\n on cast(engagement.engagement_id as bigint) = cast(ticket_engagement.engagement_id as bigint )\n\n), agg_engagements as (\n\n \n\n select\n ticket_id,\n count(case when engagement_type = 'NOTE' then ticket_id end) as count_engagement_notes,\n count(case when engagement_type = 'TASK' then ticket_id end) as count_engagement_tasks,\n count(case when engagement_type = 'CALL' then ticket_id end) as count_engagement_calls,\n count(case when engagement_type = 'MEETING' then ticket_id end) as count_engagement_meetings,\n count(case when engagement_type = 'EMAIL' then ticket_id end) as count_engagement_emails,\n count(case when engagement_type = 'INCOMING_EMAIL' then ticket_id end) as count_engagement_incoming_emails,\n count(case when engagement_type = 'FORWARDED_EMAIL' then ticket_id end) as count_engagement_forwarded_emails\n from join_engagements\n group by 1\n\n\n\n\n\n), final_join as (\n\n select\n ticket.*,\n ticket_pipeline_stage.ticket_state,\n ticket_pipeline_stage.is_closed,\n ticket_pipeline_stage.pipeline_stage_label,\n ticket_pipeline.pipeline_label,\n ticket_pipeline_stage.display_order as pipeline_stage_order,\n ticket_pipeline.is_ticket_pipeline_deleted,\n ticket_pipeline_stage.is_ticket_pipeline_stage_deleted\n\n \n , owner.email_address as owner_email\n , owner.full_name as owner_full_name\n \n\n \n\n \n , agg_contacts.contact_ids\n , agg_contacts.contact_emails\n \n\n \n , agg_companies.company_ids\n , agg_companies.company_names\n \n\n \n \n , coalesce(agg_engagements.count_engagement_notes,0) as count_engagement_notes\n \n , coalesce(agg_engagements.count_engagement_tasks,0) as count_engagement_tasks\n \n , coalesce(agg_engagements.count_engagement_calls,0) as count_engagement_calls\n \n , coalesce(agg_engagements.count_engagement_meetings,0) as count_engagement_meetings\n \n , coalesce(agg_engagements.count_engagement_emails,0) as count_engagement_emails\n \n , coalesce(agg_engagements.count_engagement_incoming_emails,0) as count_engagement_incoming_emails\n \n , coalesce(agg_engagements.count_engagement_forwarded_emails,0) as count_engagement_forwarded_emails\n \n \n\n from ticket\n\n left join ticket_pipeline \n on ticket.ticket_pipeline_id = ticket_pipeline.ticket_pipeline_id \n \n left join ticket_pipeline_stage \n on ticket.ticket_pipeline_stage_id = ticket_pipeline_stage.ticket_pipeline_stage_id\n and ticket_pipeline.ticket_pipeline_id = ticket_pipeline_stage.ticket_pipeline_id\n\n \n left join owner \n on ticket.owner_id = owner.owner_id\n \n\n \n\n \n left join agg_contacts\n on ticket.ticket_id = agg_contacts.ticket_id \n \n\n \n left join agg_companies\n on ticket.ticket_id = agg_companies.ticket_id \n \n\n \n left join agg_engagements\n on ticket.ticket_id = agg_engagements.ticket_id\n \n)\n\nselect *\nfrom final_join", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__tickets\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:51.443846Z", "completed_at": "2024-09-03T21:23:51.447876Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:51.448287Z", "completed_at": "2024-09-03T21:23:51.448291Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.005589008331298828, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot.not_null_hubspot__engagement_emails_engagement_id.13a39d1e09", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect engagement_id\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__engagement_emails\"\nwhere engagement_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:51.449887Z", "completed_at": "2024-09-03T21:23:51.452958Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:51.453473Z", "completed_at": "2024-09-03T21:23:51.453478Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.00467991828918457, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot.unique_hubspot__engagement_emails_engagement_id.b18e2acbde", "compiled": true, "compiled_code": "\n \n \n\nselect\n engagement_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__engagement_emails\"\nwhere engagement_id is not null\ngroup by engagement_id\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:51.455133Z", "completed_at": "2024-09-03T21:23:51.457895Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:51.458312Z", "completed_at": "2024-09-03T21:23:51.458317Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.0041332244873046875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot.not_null_hubspot__engagement_calls_engagement_id.00f8d8357f", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect engagement_id\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__engagement_calls\"\nwhere engagement_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:51.459895Z", "completed_at": "2024-09-03T21:23:51.462914Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:51.463369Z", "completed_at": "2024-09-03T21:23:51.463374Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.0045452117919921875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot.unique_hubspot__engagement_calls_engagement_id.972572ce6c", "compiled": true, "compiled_code": "\n \n \n\nselect\n engagement_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__engagement_calls\"\nwhere engagement_id is not null\ngroup by engagement_id\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:51.464871Z", "completed_at": "2024-09-03T21:23:51.468212Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:51.468659Z", "completed_at": "2024-09-03T21:23:51.468663Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.004716157913208008, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot.not_null_int_hubspot__engagement_metrics__by_contact_contact_id.4a800df06b", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__int_hubspot__engagement_metrics__by_contact as (\n\n\nwith engagements as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__engagements\"\n\n), engagement_contacts as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__engagement_contact\"\n\n), engagement_contacts_joined as (\n\n select\n engagements.engagement_type,\n engagement_contacts.contact_id\n from engagements\n inner join engagement_contacts\n using (engagement_id)\n\n), engagement_contacts_agg as (\n\n \n\n select\n contact_id,\n count(case when engagement_type = 'NOTE' then contact_id end) as count_engagement_notes,\n count(case when engagement_type = 'TASK' then contact_id end) as count_engagement_tasks,\n count(case when engagement_type = 'CALL' then contact_id end) as count_engagement_calls,\n count(case when engagement_type = 'MEETING' then contact_id end) as count_engagement_meetings,\n count(case when engagement_type = 'EMAIL' then contact_id end) as count_engagement_emails,\n count(case when engagement_type = 'INCOMING_EMAIL' then contact_id end) as count_engagement_incoming_emails,\n count(case when engagement_type = 'FORWARDED_EMAIL' then contact_id end) as count_engagement_forwarded_emails\n from engagement_contacts_joined\n group by 1\n\n\n\n)\n\nselect *\nfrom engagement_contacts_agg\n) select contact_id\nfrom __dbt__cte__int_hubspot__engagement_metrics__by_contact\nwhere contact_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:51.470086Z", "completed_at": "2024-09-03T21:23:51.474800Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:51.475248Z", "completed_at": "2024-09-03T21:23:51.475252Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.0060558319091796875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot.unique_int_hubspot__engagement_metrics__by_contact_contact_id.1c156b64ed", "compiled": true, "compiled_code": "\n \n \n\nwith __dbt__cte__int_hubspot__engagement_metrics__by_contact as (\n\n\nwith engagements as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__engagements\"\n\n), engagement_contacts as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__engagement_contact\"\n\n), engagement_contacts_joined as (\n\n select\n engagements.engagement_type,\n engagement_contacts.contact_id\n from engagements\n inner join engagement_contacts\n using (engagement_id)\n\n), engagement_contacts_agg as (\n\n \n\n select\n contact_id,\n count(case when engagement_type = 'NOTE' then contact_id end) as count_engagement_notes,\n count(case when engagement_type = 'TASK' then contact_id end) as count_engagement_tasks,\n count(case when engagement_type = 'CALL' then contact_id end) as count_engagement_calls,\n count(case when engagement_type = 'MEETING' then contact_id end) as count_engagement_meetings,\n count(case when engagement_type = 'EMAIL' then contact_id end) as count_engagement_emails,\n count(case when engagement_type = 'INCOMING_EMAIL' then contact_id end) as count_engagement_incoming_emails,\n count(case when engagement_type = 'FORWARDED_EMAIL' then contact_id end) as count_engagement_forwarded_emails\n from engagement_contacts_joined\n group by 1\n\n\n\n)\n\nselect *\nfrom engagement_contacts_agg\n) select\n contact_id as unique_field,\n count(*) as n_records\n\nfrom __dbt__cte__int_hubspot__engagement_metrics__by_contact\nwhere contact_id is not null\ngroup by contact_id\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:51.476686Z", "completed_at": "2024-09-03T21:23:51.480894Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:51.481386Z", "completed_at": "2024-09-03T21:23:51.481390Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.005900859832763672, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot.not_null_hubspot__deal_stages_deal_stage_id.162d2d204b", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect deal_stage_id\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__deal_stages\"\nwhere deal_stage_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:51.483860Z", "completed_at": "2024-09-03T21:23:51.486735Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:51.487174Z", "completed_at": "2024-09-03T21:23:51.487178Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.004494190216064453, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot.unique_hubspot__deal_stages_deal_stage_id.7fd3732373", "compiled": true, "compiled_code": "\n \n \n\nselect\n deal_stage_id as unique_field,\n count(*) as n_records\n\nfrom (select * from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__deal_stages\" where not coalesce(is_deal_pipeline_stage_deleted, false)) dbt_subquery\nwhere deal_stage_id is not null\ngroup by deal_stage_id\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:51.488745Z", "completed_at": "2024-09-03T21:23:51.491728Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:51.492145Z", "completed_at": "2024-09-03T21:23:51.492150Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.004370927810668945, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot.not_null_hubspot__deals_deal_id.bdbfe47fcd", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect deal_id\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__deals\"\nwhere deal_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:51.493728Z", "completed_at": "2024-09-03T21:23:51.496931Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:51.497386Z", "completed_at": "2024-09-03T21:23:51.497391Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.004722118377685547, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot.unique_hubspot__deals_deal_id.d728fe5f71", "compiled": true, "compiled_code": "\n \n \n\nselect\n deal_id as unique_field,\n count(*) as n_records\n\nfrom (select * from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__deals\" where not coalesce(is_deal_deleted, false)) dbt_subquery\nwhere deal_id is not null\ngroup by deal_id\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:51.499253Z", "completed_at": "2024-09-03T21:23:51.503483Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:51.503909Z", "completed_at": "2024-09-03T21:23:51.503914Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.005908966064453125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot.not_null_hubspot__engagement_meetings_engagement_id.83a791c3df", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect engagement_id\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__engagement_meetings\"\nwhere engagement_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:51.505318Z", "completed_at": "2024-09-03T21:23:51.508033Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:51.508448Z", "completed_at": "2024-09-03T21:23:51.508452Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.003997087478637695, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot.unique_hubspot__engagement_meetings_engagement_id.3098aabcd1", "compiled": true, "compiled_code": "\n \n \n\nselect\n engagement_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__engagement_meetings\"\nwhere engagement_id is not null\ngroup by engagement_id\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:51.510085Z", "completed_at": "2024-09-03T21:23:51.521676Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:51.522176Z", "completed_at": "2024-09-03T21:23:51.522182Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.013226985931396484, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot.hubspot__email_sends", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__int_hubspot__email_event_aggregates as (\n\n\nwith events as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__email_event\"\n\n), aggregates as (\n\n select\n sent_by_event_id as email_send_id,\n count(case when event_type = 'OPEN' then sent_by_event_id end) as opens,\n count(case when event_type = 'SENT' then sent_by_event_id end) as sends,\n count(case when event_type = 'DELIVERED' then sent_by_event_id end) as deliveries,\n count(case when event_type = 'DROPPED' then sent_by_event_id end) as drops,\n count(case when event_type = 'CLICK' then sent_by_event_id end) as clicks,\n count(case when event_type = 'FORWARD' then sent_by_event_id end) as forwards,\n count(case when event_type = 'DEFERRED' then sent_by_event_id end) as deferrals,\n count(case when event_type = 'BOUNCE' then sent_by_event_id end) as bounces,\n count(case when event_type = 'SPAMREPORT' then sent_by_event_id end) as spam_reports,\n count(case when event_type = 'PRINT' then sent_by_event_id end) as prints\n from events\n where sent_by_event_id is not null\n group by 1\n\n)\n\nselect *\nfrom aggregates\n), __dbt__cte__int_hubspot__email_aggregate_status_change as (\n\n\nwith base as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__email_event_status_change\"\n\n), aggregates as (\n\n select\n email_campaign_id,\n email_send_id,\n count(case when subscription_status = 'UNSUBSCRIBED' then 1 end) as unsubscribes\n from base\n where email_send_id is not null\n group by 1,2\n\n)\n\nselect *\nfrom aggregates\n), sends as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__email_event_sent\"\n\n), metrics as (\n\n select *\n from __dbt__cte__int_hubspot__email_event_aggregates\n\n), joined as (\n\n select\n sends.*,\n coalesce(metrics.bounces,0) as bounces,\n coalesce(metrics.clicks,0) as clicks,\n coalesce(metrics.deferrals,0) as deferrals,\n coalesce(metrics.deliveries,0) as deliveries,\n coalesce(metrics.drops,0) as drops,\n coalesce(metrics.forwards,0) as forwards,\n coalesce(metrics.opens,0) as opens,\n coalesce(metrics.prints,0) as prints,\n coalesce(metrics.spam_reports,0) as spam_reports\n from sends\n left join metrics using (email_send_id)\n\n), booleans as (\n\n select \n *,\n bounces > 0 as was_bounced,\n clicks > 0 as was_clicked,\n deferrals > 0 as was_deferred,\n deliveries > 0 as was_delivered,\n forwards > 0 as was_forwarded,\n opens > 0 as was_opened,\n prints > 0 as was_printed,\n spam_reports > 0 as was_spam_reported\n from joined\n\n\n\n), unsubscribes as (\n\n select *\n from __dbt__cte__int_hubspot__email_aggregate_status_change\n\n), unsubscribes_joined as (\n\n select \n booleans.*,\n coalesce(unsubscribes.unsubscribes,0) as unsubscribes,\n coalesce(unsubscribes.unsubscribes,0) > 0 as was_unsubscribed\n from booleans\n left join unsubscribes using (email_send_id)\n\n)\n\nselect *\nfrom unsubscribes_joined\n\n", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__email_sends\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:51.523922Z", "completed_at": "2024-09-03T21:23:51.527655Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:51.528157Z", "completed_at": "2024-09-03T21:23:51.528162Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.005204200744628906, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot.not_null_int_hubspot__email_aggregate_status_change_email_send_id.16bf74a3bc", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__int_hubspot__email_aggregate_status_change as (\n\n\nwith base as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__email_event_status_change\"\n\n), aggregates as (\n\n select\n email_campaign_id,\n email_send_id,\n count(case when subscription_status = 'UNSUBSCRIBED' then 1 end) as unsubscribes\n from base\n where email_send_id is not null\n group by 1,2\n\n)\n\nselect *\nfrom aggregates\n) select email_send_id\nfrom __dbt__cte__int_hubspot__email_aggregate_status_change\nwhere email_send_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:51.529811Z", "completed_at": "2024-09-03T21:23:51.534903Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:51.535373Z", "completed_at": "2024-09-03T21:23:51.535378Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.006810903549194336, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot.unique_int_hubspot__email_aggregate_status_change_email_send_id.7c03e87c05", "compiled": true, "compiled_code": "\n \n \n\nwith __dbt__cte__int_hubspot__email_aggregate_status_change as (\n\n\nwith base as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__email_event_status_change\"\n\n), aggregates as (\n\n select\n email_campaign_id,\n email_send_id,\n count(case when subscription_status = 'UNSUBSCRIBED' then 1 end) as unsubscribes\n from base\n where email_send_id is not null\n group by 1,2\n\n)\n\nselect *\nfrom aggregates\n) select\n email_send_id as unique_field,\n count(*) as n_records\n\nfrom __dbt__cte__int_hubspot__email_aggregate_status_change\nwhere email_send_id is not null\ngroup by email_send_id\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:51.537056Z", "completed_at": "2024-09-03T21:23:51.543075Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:51.543519Z", "completed_at": "2024-09-03T21:23:51.543524Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.00738215446472168, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot.int_hubspot__pivot_daily_ticket_history", "compiled": true, "compiled_code": "\n\n\n\nwith daily_history as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"int_hubspot__daily_ticket_history\"\n\n \n where date_day >= (select max(date_day) from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"int_hubspot__pivot_daily_ticket_history\" )\n \n\n), pivot_out as (\n\n select \n date_day, \n ticket_id\n\n -- should we remove the `hs_` prefix? could introduce some duplicates if people already have something like `hs_owner` and `owner`\n , max(case when lower(field_name) = 'hs_pipeline' then new_value end) as hs_pipeline\n , max(case when lower(field_name) = 'hs_pipeline_stage' then new_value end) as hs_pipeline_stage\n from daily_history\n\n group by 1,2\n\n), surrogate as (\n\n select \n *,\n md5(cast(coalesce(cast(date_day as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(ticket_id as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as id\n from pivot_out\n)\n\nselect *\nfrom surrogate", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"int_hubspot__pivot_daily_ticket_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:51.545037Z", "completed_at": "2024-09-03T21:23:51.548375Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:51.548854Z", "completed_at": "2024-09-03T21:23:51.548860Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.004867076873779297, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot.not_null_hubspot__tickets_ticket_id.259c6846d7", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ticket_id\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__tickets\"\nwhere ticket_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:51.550409Z", "completed_at": "2024-09-03T21:23:51.553329Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:51.553777Z", "completed_at": "2024-09-03T21:23:51.553781Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.004290103912353516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot.unique_hubspot__tickets_ticket_id.4b54466361", "compiled": true, "compiled_code": "\n \n \n\nselect\n ticket_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__tickets\"\nwhere ticket_id is not null\ngroup by ticket_id\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:50.448945Z", "completed_at": "2024-09-03T21:23:51.481611Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:51.482849Z", "completed_at": "2024-09-03T21:23:51.482852Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 1.1480038166046143, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot.hubspot__engagement_notes", "compiled": true, "compiled_code": "\n\n\n\nwith base as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__engagement_note\"\n\n), engagements as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__engagements\"\n\n), joined as (\n\n select \n base.\"_fivetran_synced\",\n base.\"note\",\n base.\"engagement_type\",\n base.\"engagement_id\",\n base.\"team_id\",\n base.\"body_preview\",\n base.\"lastmodifieddate\",\n base.\"note_body\",\n engagements.contact_ids, \n engagements.deal_ids, \n engagements.company_ids, \n coalesce(engagements.is_active, not base._fivetran_deleted) as is_active,\n coalesce(engagements.created_timestamp, base.created_timestamp) as created_timestamp,\n coalesce(engagements.occurred_timestamp, base.occurred_timestamp) as occurred_timestamp,\n coalesce(engagements.owner_id, base.owner_id) as owner_id\n from base\n left join engagements\n on base.engagement_id = engagements.engagement_id\n\n)\n\nselect *\nfrom joined\n\n", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__engagement_notes\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:51.160065Z", "completed_at": "2024-09-03T21:23:52.150035Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:52.151361Z", "completed_at": "2024-09-03T21:23:52.151375Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 1.0975041389465332, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot.hubspot__engagement_tasks", "compiled": true, "compiled_code": "\n\n\n\nwith base as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__engagement_task\"\n\n), engagements as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__engagements\"\n\n), joined as (\n\n select \n base.\"_fivetran_synced\",\n base.\"engagement_id\",\n base.\"engagement_type\",\n base.\"team_id\",\n base.\"task_type\",\n base.\"object_id\",\n base.\"engagement_source\",\n engagements.contact_ids, \n engagements.deal_ids, \n engagements.company_ids, \n coalesce(engagements.is_active, not base._fivetran_deleted) as is_active,\n coalesce(engagements.created_timestamp, base.created_timestamp) as created_timestamp,\n coalesce(engagements.occurred_timestamp, base.occurred_timestamp) as occurred_timestamp,\n coalesce(engagements.owner_id, base.owner_id) as owner_id\n from base\n left join engagements\n on base.engagement_id = engagements.engagement_id\n\n)\n\nselect *\nfrom joined\n\n", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__engagement_tasks\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:52.258657Z", "completed_at": "2024-09-03T21:23:52.264551Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:52.265594Z", "completed_at": "2024-09-03T21:23:52.265605Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.008549213409423828, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot.hubspot__marketing_events_standardized", "compiled": true, "compiled_code": "\n\nwith events as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__email_sends\" \n),\n\nstandardized as (\n\n select \n event_id,\n coalesce(email_send_timestamp, created_timestamp) as activity_timestamp,\n email_campaign_id as campaign_id,\n recipient_email_address as email,\n contact_id,\n 'email send' as event_type,\n cast(null as numeric(28,6)) as event_value, \n cast(null as timestamp) as updated_at,\n email_subject,\n bounces as total_bounces,\n clicks as total_clicks,\n deferrals as total_deferrals,\n deliveries as total_deliveries,\n drops as total_drops,\n forwards as total_forwards,\n opens as total_opens,\n spam_reports as total_spam_reports,\n unsubscribes as total_unsubscribes,\n was_bounced,\n was_clicked,\n was_deferred,\n was_delivered,\n was_forwarded,\n was_opened,\n was_unsubscribed \n from events\n)\n\nselect *\nfrom standardized", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__marketing_events_standardized\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:51.555396Z", "completed_at": "2024-09-03T21:23:52.661589Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:52.663231Z", "completed_at": "2024-09-03T21:23:52.663238Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 1.2090072631835938, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot.hubspot__contacts", "compiled": true, "compiled_code": "\n\n\n\nwith __dbt__cte__int_hubspot__engagement_metrics__by_contact as (\n\n\nwith engagements as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__engagements\"\n\n), engagement_contacts as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__engagement_contact\"\n\n), engagement_contacts_joined as (\n\n select\n engagements.engagement_type,\n engagement_contacts.contact_id\n from engagements\n inner join engagement_contacts\n using (engagement_id)\n\n), engagement_contacts_agg as (\n\n \n\n select\n contact_id,\n count(case when engagement_type = 'NOTE' then contact_id end) as count_engagement_notes,\n count(case when engagement_type = 'TASK' then contact_id end) as count_engagement_tasks,\n count(case when engagement_type = 'CALL' then contact_id end) as count_engagement_calls,\n count(case when engagement_type = 'MEETING' then contact_id end) as count_engagement_meetings,\n count(case when engagement_type = 'EMAIL' then contact_id end) as count_engagement_emails,\n count(case when engagement_type = 'INCOMING_EMAIL' then contact_id end) as count_engagement_incoming_emails,\n count(case when engagement_type = 'FORWARDED_EMAIL' then contact_id end) as count_engagement_forwarded_emails\n from engagement_contacts_joined\n group by 1\n\n\n\n)\n\nselect *\nfrom engagement_contacts_agg\n), contacts as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"int_hubspot__contact_merge_adjust\" \n\n\n), email_sends as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__email_sends\"\n\n), email_metrics as (\n \n select \n recipient_email_address,\n \n sum(bounces) as total_bounces,\n count(distinct case when bounces > 0 then email_send_id end) as total_unique_bounces\n ,\n \n sum(clicks) as total_clicks,\n count(distinct case when clicks > 0 then email_send_id end) as total_unique_clicks\n ,\n \n sum(deferrals) as total_deferrals,\n count(distinct case when deferrals > 0 then email_send_id end) as total_unique_deferrals\n ,\n \n sum(deliveries) as total_deliveries,\n count(distinct case when deliveries > 0 then email_send_id end) as total_unique_deliveries\n ,\n \n sum(drops) as total_drops,\n count(distinct case when drops > 0 then email_send_id end) as total_unique_drops\n ,\n \n sum(forwards) as total_forwards,\n count(distinct case when forwards > 0 then email_send_id end) as total_unique_forwards\n ,\n \n sum(opens) as total_opens,\n count(distinct case when opens > 0 then email_send_id end) as total_unique_opens\n ,\n \n sum(prints) as total_prints,\n count(distinct case when prints > 0 then email_send_id end) as total_unique_prints\n ,\n \n sum(spam_reports) as total_spam_reports,\n count(distinct case when spam_reports > 0 then email_send_id end) as total_unique_spam_reports\n \n \n \n , sum(unsubscribes) as total_unsubscribes\n \n from email_sends\n group by 1\n\n), email_joined as (\n\n select \n contacts.*,\n \n coalesce(email_metrics.total_bounces, 0) as total_bounces,\n coalesce(email_metrics.total_unique_bounces, 0) as total_unique_bounces\n ,\n \n coalesce(email_metrics.total_clicks, 0) as total_clicks,\n coalesce(email_metrics.total_unique_clicks, 0) as total_unique_clicks\n ,\n \n coalesce(email_metrics.total_deferrals, 0) as total_deferrals,\n coalesce(email_metrics.total_unique_deferrals, 0) as total_unique_deferrals\n ,\n \n coalesce(email_metrics.total_deliveries, 0) as total_deliveries,\n coalesce(email_metrics.total_unique_deliveries, 0) as total_unique_deliveries\n ,\n \n coalesce(email_metrics.total_drops, 0) as total_drops,\n coalesce(email_metrics.total_unique_drops, 0) as total_unique_drops\n ,\n \n coalesce(email_metrics.total_forwards, 0) as total_forwards,\n coalesce(email_metrics.total_unique_forwards, 0) as total_unique_forwards\n ,\n \n coalesce(email_metrics.total_opens, 0) as total_opens,\n coalesce(email_metrics.total_unique_opens, 0) as total_unique_opens\n ,\n \n coalesce(email_metrics.total_prints, 0) as total_prints,\n coalesce(email_metrics.total_unique_prints, 0) as total_unique_prints\n ,\n \n coalesce(email_metrics.total_spam_reports, 0) as total_spam_reports,\n coalesce(email_metrics.total_unique_spam_reports, 0) as total_unique_spam_reports\n \n \n \n , coalesce(email_metrics.total_unsubscribes, 0) as total_unsubscribes\n \n from contacts\n left join email_metrics\n on contacts.email = email_metrics.recipient_email_address\n\n\n\n\n\n\n\n), engagements as (\n\n select *\n from __dbt__cte__int_hubspot__engagement_metrics__by_contact\n\n), engagements_joined as (\n\n select \n email_joined.*,\n \n coalesce(engagements.count_engagement_notes,0) as count_engagement_notes ,\n \n coalesce(engagements.count_engagement_tasks,0) as count_engagement_tasks ,\n \n coalesce(engagements.count_engagement_calls,0) as count_engagement_calls ,\n \n coalesce(engagements.count_engagement_meetings,0) as count_engagement_meetings ,\n \n coalesce(engagements.count_engagement_emails,0) as count_engagement_emails ,\n \n coalesce(engagements.count_engagement_incoming_emails,0) as count_engagement_incoming_emails ,\n \n coalesce(engagements.count_engagement_forwarded_emails,0) as count_engagement_forwarded_emails \n \n from email_joined\n left join engagements\n using (contact_id)\n\n)\n\nselect *\nfrom engagements_joined\n\n", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__contacts\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:51.407401Z", "completed_at": "2024-09-03T21:23:52.661242Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:52.662960Z", "completed_at": "2024-09-03T21:23:52.662964Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 1.3861310482025146, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot.int_hubspot__ticket_calendar_spine", "compiled": true, "compiled_code": "\n\nwith calendar as (\n\n \n \n \n \n \n\n select * \n from (\n \n\n\n\n\n\nwith rawdata as (\n\n \n\n \n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n \n p0.generated_number * power(2, 0)\n + \n \n p1.generated_number * power(2, 1)\n + \n \n p2.generated_number * power(2, 2)\n + \n \n p3.generated_number * power(2, 3)\n + \n \n p4.generated_number * power(2, 4)\n + \n \n p5.generated_number * power(2, 5)\n + \n \n p6.generated_number * power(2, 6)\n + \n \n p7.generated_number * power(2, 7)\n + \n \n p8.generated_number * power(2, 8)\n + \n \n p9.generated_number * power(2, 9)\n + \n \n p10.generated_number * power(2, 10)\n \n \n + 1\n as generated_number\n\n from\n\n \n p as p0\n cross join \n \n p as p1\n cross join \n \n p as p2\n cross join \n \n p as p3\n cross join \n \n p as p4\n cross join \n \n p as p5\n cross join \n \n p as p6\n cross join \n \n p as p7\n cross join \n \n p as p8\n cross join \n \n p as p9\n cross join \n \n p as p10\n \n \n\n )\n\n select *\n from unioned\n where generated_number <= 1608\n order by generated_number\n\n\n\n),\n\nall_periods as (\n\n select (\n \n\n cast('2020-04-16' as date) + ((interval '1 day') * (row_number() over (order by 1) - 1))\n\n\n ) as date_day\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_day <= \n\n \n (current_timestamp at time zone 'utc')::timestamp\n + ((interval '1 week') * (1))\n\n\n\n)\n\nselect * from filtered\n\n \n ) as date_spine\n\n \n where date_day >= (select min(date_day) from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"int_hubspot__ticket_calendar_spine\" )\n \n\n), ticket as (\n\n select \n *,\n cast( date_trunc('day', case when closed_date is null then \n current_timestamp::timestamp\n else closed_date end) as date) as open_until\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__ticket\"\n where not coalesce(is_ticket_deleted, false)\n\n), joined as (\n\n select \n cast(calendar.date_day as date) as date_day,\n ticket.ticket_id\n from calendar \n inner join ticket\n on cast(calendar.date_day as date) >= cast(ticket.created_date as date)\n -- use this variable to extend the ticket's history past its close date (for reporting/data viz purposes :-)\n and cast(calendar.date_day as date) <= \n\n ticket.open_until + ((interval '1 day') * (0))\n\n\n\n), surrogate as (\n\n select\n *,\n md5(cast(coalesce(cast(date_day as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(ticket_id as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as id\n from joined\n\n)\n\nselect *\nfrom surrogate", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"int_hubspot__ticket_calendar_spine\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:51.597557Z", "completed_at": "2024-09-03T21:23:52.660850Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:52.662669Z", "completed_at": "2024-09-03T21:23:52.662679Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 1.1961660385131836, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot.hubspot__email_campaigns", "compiled": true, "compiled_code": "\n\n\nwith campaigns as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__email_campaign\"\n\n), email_sends as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__email_sends\"\n\n), email_metrics as (\n \n select \n email_campaign_id,\n \n sum(email_sends.bounces) as total_bounces,\n count(distinct case when email_sends.bounces > 0 then email_send_id end) as total_unique_bounces\n ,\n \n sum(email_sends.clicks) as total_clicks,\n count(distinct case when email_sends.clicks > 0 then email_send_id end) as total_unique_clicks\n ,\n \n sum(email_sends.deferrals) as total_deferrals,\n count(distinct case when email_sends.deferrals > 0 then email_send_id end) as total_unique_deferrals\n ,\n \n sum(email_sends.deliveries) as total_deliveries,\n count(distinct case when email_sends.deliveries > 0 then email_send_id end) as total_unique_deliveries\n ,\n \n sum(email_sends.drops) as total_drops,\n count(distinct case when email_sends.drops > 0 then email_send_id end) as total_unique_drops\n ,\n \n sum(email_sends.forwards) as total_forwards,\n count(distinct case when email_sends.forwards > 0 then email_send_id end) as total_unique_forwards\n ,\n \n sum(email_sends.opens) as total_opens,\n count(distinct case when email_sends.opens > 0 then email_send_id end) as total_unique_opens\n ,\n \n sum(email_sends.prints) as total_prints,\n count(distinct case when email_sends.prints > 0 then email_send_id end) as total_unique_prints\n ,\n \n sum(email_sends.spam_reports) as total_spam_reports,\n count(distinct case when email_sends.spam_reports > 0 then email_send_id end) as total_unique_spam_reports\n \n \n \n , sum(unsubscribes) as total_unsubscribes\n \n from email_sends\n group by 1\n\n), joined as (\n\n select \n campaigns.*,\n \n coalesce(email_metrics.total_bounces, 0) as total_bounces,\n coalesce(email_metrics.total_unique_bounces, 0) as total_unique_bounces\n ,\n \n coalesce(email_metrics.total_clicks, 0) as total_clicks,\n coalesce(email_metrics.total_unique_clicks, 0) as total_unique_clicks\n ,\n \n coalesce(email_metrics.total_deferrals, 0) as total_deferrals,\n coalesce(email_metrics.total_unique_deferrals, 0) as total_unique_deferrals\n ,\n \n coalesce(email_metrics.total_deliveries, 0) as total_deliveries,\n coalesce(email_metrics.total_unique_deliveries, 0) as total_unique_deliveries\n ,\n \n coalesce(email_metrics.total_drops, 0) as total_drops,\n coalesce(email_metrics.total_unique_drops, 0) as total_unique_drops\n ,\n \n coalesce(email_metrics.total_forwards, 0) as total_forwards,\n coalesce(email_metrics.total_unique_forwards, 0) as total_unique_forwards\n ,\n \n coalesce(email_metrics.total_opens, 0) as total_opens,\n coalesce(email_metrics.total_unique_opens, 0) as total_unique_opens\n ,\n \n coalesce(email_metrics.total_prints, 0) as total_prints,\n coalesce(email_metrics.total_unique_prints, 0) as total_unique_prints\n ,\n \n coalesce(email_metrics.total_spam_reports, 0) as total_spam_reports,\n coalesce(email_metrics.total_unique_spam_reports, 0) as total_unique_spam_reports\n \n \n \n , coalesce(email_metrics.total_unsubscribes, 0) as total_unsubscribes\n \n from campaigns\n left join email_metrics\n on campaigns.email_campaign_id = email_metrics.email_campaign_id\n\n)\n\nselect *\nfrom joined", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__email_campaigns\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:52.785110Z", "completed_at": "2024-09-03T21:23:52.811202Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:52.871669Z", "completed_at": "2024-09-03T21:23:52.871681Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.10712385177612305, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot.not_null_hubspot__email_sends_event_id.9fc8a8bef3", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect event_id\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__email_sends\"\nwhere event_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:52.811946Z", "completed_at": "2024-09-03T21:23:52.875062Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:52.906151Z", "completed_at": "2024-09-03T21:23:52.906170Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.1309659481048584, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot.unique_hubspot__email_sends_event_id.b01306228f", "compiled": true, "compiled_code": "\n \n \n\nselect\n event_id as unique_field,\n count(*) as n_records\n\nfrom (select * from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__email_sends\" where not coalesce(is_contact_deleted, false)) dbt_subquery\nwhere event_id is not null\ngroup by event_id\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:52.973504Z", "completed_at": "2024-09-03T21:23:52.995763Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:52.997080Z", "completed_at": "2024-09-03T21:23:52.997088Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.05192685127258301, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot.unique_hubspot__engagement_notes_engagement_id.c9864b5001", "compiled": true, "compiled_code": "\n \n \n\nselect\n engagement_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__engagement_notes\"\nwhere engagement_id is not null\ngroup by engagement_id\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:52.959388Z", "completed_at": "2024-09-03T21:23:52.996078Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:52.997402Z", "completed_at": "2024-09-03T21:23:52.997409Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.05304217338562012, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot.not_null_hubspot__engagement_notes_engagement_id.76434ac965", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect engagement_id\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__engagement_notes\"\nwhere engagement_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:53.000951Z", "completed_at": "2024-09-03T21:23:53.007335Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:53.007976Z", "completed_at": "2024-09-03T21:23:53.007983Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.008900880813598633, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot.not_null_hubspot__engagement_tasks_engagement_id.67738794ae", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect engagement_id\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__engagement_tasks\"\nwhere engagement_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:53.004095Z", "completed_at": "2024-09-03T21:23:53.008781Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:53.009923Z", "completed_at": "2024-09-03T21:23:53.009927Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.010509014129638672, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot.unique_hubspot__engagement_tasks_engagement_id.754d36b939", "compiled": true, "compiled_code": "\n \n \n\nselect\n engagement_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__engagement_tasks\"\nwhere engagement_id is not null\ngroup by engagement_id\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:53.010820Z", "completed_at": "2024-09-03T21:23:53.018177Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:53.018703Z", "completed_at": "2024-09-03T21:23:53.018708Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.00998997688293457, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot.not_null_hubspot__marketing_events_standardized_event_id.04bbf23276", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect event_id\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__marketing_events_standardized\"\nwhere event_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:53.015141Z", "completed_at": "2024-09-03T21:23:53.019003Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:53.020343Z", "completed_at": "2024-09-03T21:23:53.020347Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.006682872772216797, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot.unique_hubspot__marketing_events_standardized_event_id.2e1e3ff399", "compiled": true, "compiled_code": "\n \n \n\nselect\n event_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__marketing_events_standardized\"\nwhere event_id is not null\ngroup by event_id\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:53.022255Z", "completed_at": "2024-09-03T21:23:53.033116Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:53.033895Z", "completed_at": "2024-09-03T21:23:53.033908Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.014149904251098633, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot.hubspot__marketing_contacts_standardized", "compiled": true, "compiled_code": "\n\nwith contacts as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__contacts\" \n),\n\nstandardized as (\n\n select \n contact_id,\n first_name,\n last_name,\n email,\n contact_company,\n cast(created_date as timestamp) as created_at,\n cast(null as TEXT) as contact_phone,\n cast(null as timestamp) as updated_at,\n cast(null as TEXT) as contact_address,\n cast(null as TEXT) as contact_city,\n cast(null as TEXT) as contact_state,\n cast(null as TEXT) as contact_country,\n cast(null as TEXT) as contact_timezone,\n cast(null as TEXT) as contact_language,\n cast(null as timestamp) as first_event_at,\n cast(null as timestamp) as last_event_at,\n cast(null as TEXT) as contact_status,\n total_bounces,\n total_clicks,\n total_deferrals,\n total_deliveries,\n total_drops,\n total_forwards,\n total_opens,\n total_unsubscribes,\n count_engagement_emails as total_sends, -- check this\n cast(null as integer) as total_replies, \n cast(null as integer) as total_responses, \n total_unique_opens,\n total_unique_clicks\n from contacts\n)\n\nselect * \nfrom standardized", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__marketing_contacts_standardized\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:53.029991Z", "completed_at": "2024-09-03T21:23:53.033640Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:53.035315Z", "completed_at": "2024-09-03T21:23:53.035319Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.0070667266845703125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot.not_null_hubspot__contacts_contact_id.e28e88dce3", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect contact_id\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__contacts\"\nwhere contact_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:53.037848Z", "completed_at": "2024-09-03T21:23:53.044785Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:53.045321Z", "completed_at": "2024-09-03T21:23:53.045331Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.009556055068969727, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot.unique_hubspot__contacts_contact_id.8f627121df", "compiled": true, "compiled_code": "\n \n \n\nselect\n contact_id as unique_field,\n count(*) as n_records\n\nfrom (select * from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__contacts\" where not coalesce(is_contact_deleted, false)) dbt_subquery\nwhere contact_id is not null\ngroup by contact_id\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:53.041022Z", "completed_at": "2024-09-03T21:23:53.045650Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:53.047130Z", "completed_at": "2024-09-03T21:23:53.047135Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.010393857955932617, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot.hubspot__marketing_campaigns_standardized", "compiled": true, "compiled_code": "\n\nwith campaigns as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__email_campaigns\" \n),\n\nstandardized as (\n\n select \n email_campaign_id as campaign_id,\n email_campaign_name as campaign_name,\n email_campaign_type as campaign_type,\n email_campaign_sub_type as campaign_sub_type,\n email_campaign_subject as campaign_subject,\n coalesce(app_id, content_id) as secondary_id,\n cast(null as timestamp) as created_at,\n cast(null as timestamp) as updated_at,\n total_bounces,\n total_clicks,\n total_deferrals,\n total_deliveries,\n total_opens,\n total_unsubscribes,\n total_unique_clicks,\n total_unique_opens\n from campaigns\n)\n\nselect *\nfrom standardized", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__marketing_campaigns_standardized\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:53.048822Z", "completed_at": "2024-09-03T21:23:53.056659Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:53.057351Z", "completed_at": "2024-09-03T21:23:53.057357Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.011254072189331055, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot.not_null_hubspot__email_campaigns_email_campaign_id.6b2d6f43c0", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect email_campaign_id\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__email_campaigns\"\nwhere email_campaign_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:53.053730Z", "completed_at": "2024-09-03T21:23:53.059010Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:53.060481Z", "completed_at": "2024-09-03T21:23:53.060486Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.008856058120727539, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot.unique_hubspot__email_campaigns_email_campaign_id.2470fabe62", "compiled": true, "compiled_code": "\n \n \n\nselect\n email_campaign_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__email_campaigns\"\nwhere email_campaign_id is not null\ngroup by email_campaign_id\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:53.062023Z", "completed_at": "2024-09-03T21:23:53.070992Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:53.072220Z", "completed_at": "2024-09-03T21:23:53.072228Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.01293492317199707, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot.not_null_hubspot__marketing_contacts_standardized_contact_id.7be44fda82", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect contact_id\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__marketing_contacts_standardized\"\nwhere contact_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:53.067575Z", "completed_at": "2024-09-03T21:23:53.071924Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:53.073324Z", "completed_at": "2024-09-03T21:23:53.073327Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.007361888885498047, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot.unique_hubspot__marketing_contacts_standardized_contact_id.9d7857b44a", "compiled": true, "compiled_code": "\n \n \n\nselect\n contact_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__marketing_contacts_standardized\"\nwhere contact_id is not null\ngroup by contact_id\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:53.075672Z", "completed_at": "2024-09-03T21:23:53.085051Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:53.085597Z", "completed_at": "2024-09-03T21:23:53.085605Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.011626958847045898, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot.not_null_hubspot__marketing_campaigns_standardized_campaign_id.7b59048a9f", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__marketing_campaigns_standardized\"\nwhere campaign_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:53.079333Z", "completed_at": "2024-09-03T21:23:53.086458Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:53.086940Z", "completed_at": "2024-09-03T21:23:53.086944Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.012051820755004883, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot.unique_hubspot__marketing_campaigns_standardized_campaign_id.c71cac8d22", "compiled": true, "compiled_code": "\n \n \n\nselect\n campaign_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__marketing_campaigns_standardized\"\nwhere campaign_id is not null\ngroup by campaign_id\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:52.267891Z", "completed_at": "2024-09-03T21:23:53.288547Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:53.289101Z", "completed_at": "2024-09-03T21:23:53.289107Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 1.1273682117462158, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot.int_hubspot__email_metrics__by_contact_list", "compiled": true, "compiled_code": "\n\nwith email_sends as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__email_sends\"\n\n), contact_list_member as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__contact_list_member\"\n\n), joined as (\n\n select\n email_sends.*,\n contact_list_member.contact_list_id\n from email_sends\n left join contact_list_member\n using (contact_id)\n where contact_list_member.contact_list_id is not null\n\n), email_metrics as (\n \n select \n contact_list_id,\n \n sum(bounces) as total_bounces,\n count(distinct case when bounces > 0 then email_send_id end) as total_unique_bounces\n ,\n \n sum(clicks) as total_clicks,\n count(distinct case when clicks > 0 then email_send_id end) as total_unique_clicks\n ,\n \n sum(deferrals) as total_deferrals,\n count(distinct case when deferrals > 0 then email_send_id end) as total_unique_deferrals\n ,\n \n sum(deliveries) as total_deliveries,\n count(distinct case when deliveries > 0 then email_send_id end) as total_unique_deliveries\n ,\n \n sum(drops) as total_drops,\n count(distinct case when drops > 0 then email_send_id end) as total_unique_drops\n ,\n \n sum(forwards) as total_forwards,\n count(distinct case when forwards > 0 then email_send_id end) as total_unique_forwards\n ,\n \n sum(opens) as total_opens,\n count(distinct case when opens > 0 then email_send_id end) as total_unique_opens\n ,\n \n sum(prints) as total_prints,\n count(distinct case when prints > 0 then email_send_id end) as total_unique_prints\n ,\n \n sum(spam_reports) as total_spam_reports,\n count(distinct case when spam_reports > 0 then email_send_id end) as total_unique_spam_reports\n \n \n from joined\n group by 1\n\n)\n\nselect *\nfrom email_metrics", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"int_hubspot__email_metrics__by_contact_list\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:53.404404Z", "completed_at": "2024-09-03T21:23:53.411727Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:53.413195Z", "completed_at": "2024-09-03T21:23:53.413204Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.011278152465820312, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot.not_null_int_hubspot__email_metrics__by_contact_list_contact_list_id.1d3cf4caf2", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect contact_list_id\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"int_hubspot__email_metrics__by_contact_list\"\nwhere contact_list_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:53.407487Z", "completed_at": "2024-09-03T21:23:53.412191Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:53.413573Z", "completed_at": "2024-09-03T21:23:53.413577Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.01129913330078125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot.unique_int_hubspot__email_metrics__by_contact_list_contact_list_id.095d72d5b8", "compiled": true, "compiled_code": "\n \n \n\nselect\n contact_list_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"int_hubspot__email_metrics__by_contact_list\"\nwhere contact_list_id is not null\ngroup by contact_list_id\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:52.820008Z", "completed_at": "2024-09-03T21:23:53.885464Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:53.886676Z", "completed_at": "2024-09-03T21:23:53.886687Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 1.1864409446716309, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot.int_hubspot__scd_daily_ticket_history", "compiled": true, "compiled_code": "with change_data as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"int_hubspot__pivot_daily_ticket_history\"\n\n), set_values as (\n\n select \n date_day, \n ticket_id,\n id\n\n \n , hs_pipeline as hs_pipeline\n -- create a batch/partition once a new value is provided\n , sum( case when hs_pipeline is null then 0 else 1 end) over (partition by ticket_id \n order by date_day rows unbounded preceding) as hs_pipeline_field_partition\n\n \n , hs_pipeline_stage as hs_pipeline_stage\n -- create a batch/partition once a new value is provided\n , sum( case when hs_pipeline_stage is null then 0 else 1 end) over (partition by ticket_id \n order by date_day rows unbounded preceding) as hs_pipeline_stage_field_partition\n\n \n \n from change_data\n\n), fill_values as (\n\n-- each row of the pivoted table includes ticket property values if that property was updated on that day\n-- we need to backfill to persist values that have been previously updated and are still valid \n select \n date_day, \n ticket_id,\n id\n \n \n\n -- grab the value that started this batch/partition\n , first_value( hs_pipeline ) over (\n partition by ticket_id, hs_pipeline_field_partition \n order by date_day asc rows between unbounded preceding and current row) as hs_pipeline\n\n \n\n -- grab the value that started this batch/partition\n , first_value( hs_pipeline_stage ) over (\n partition by ticket_id, hs_pipeline_stage_field_partition \n order by date_day asc rows between unbounded preceding and current row) as hs_pipeline_stage\n\n \n\n from set_values\n\n)\n\nselect *\nfrom fill_values", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"int_hubspot__scd_daily_ticket_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:53.395800Z", "completed_at": "2024-09-03T21:23:54.463155Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:54.463689Z", "completed_at": "2024-09-03T21:23:54.463702Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 1.1688251495361328, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot.hubspot__contact_lists", "compiled": true, "compiled_code": "\n\nwith contact_lists as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__contact_list\"\n\n\n\n), email_metrics as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"int_hubspot__email_metrics__by_contact_list\"\n\n), joined as (\n \n select \n contact_lists.*,\n \n coalesce(email_metrics.total_bounces, 0) as total_bounces,\n coalesce(email_metrics.total_unique_bounces, 0) as total_unique_bounces\n ,\n \n coalesce(email_metrics.total_clicks, 0) as total_clicks,\n coalesce(email_metrics.total_unique_clicks, 0) as total_unique_clicks\n ,\n \n coalesce(email_metrics.total_deferrals, 0) as total_deferrals,\n coalesce(email_metrics.total_unique_deferrals, 0) as total_unique_deferrals\n ,\n \n coalesce(email_metrics.total_deliveries, 0) as total_deliveries,\n coalesce(email_metrics.total_unique_deliveries, 0) as total_unique_deliveries\n ,\n \n coalesce(email_metrics.total_drops, 0) as total_drops,\n coalesce(email_metrics.total_unique_drops, 0) as total_unique_drops\n ,\n \n coalesce(email_metrics.total_forwards, 0) as total_forwards,\n coalesce(email_metrics.total_unique_forwards, 0) as total_unique_forwards\n ,\n \n coalesce(email_metrics.total_opens, 0) as total_opens,\n coalesce(email_metrics.total_unique_opens, 0) as total_unique_opens\n ,\n \n coalesce(email_metrics.total_prints, 0) as total_prints,\n coalesce(email_metrics.total_unique_prints, 0) as total_unique_prints\n ,\n \n coalesce(email_metrics.total_spam_reports, 0) as total_spam_reports,\n coalesce(email_metrics.total_unique_spam_reports, 0) as total_unique_spam_reports\n \n \n from contact_lists\n left join email_metrics\n using (contact_list_id)\n\n)\n\nselect *\nfrom joined\n\n", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__contact_lists\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:54.567411Z", "completed_at": "2024-09-03T21:23:54.577925Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:54.578780Z", "completed_at": "2024-09-03T21:23:54.578791Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.013730049133300781, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot.not_null_hubspot__contact_lists_contact_list_id.3bde1bb891", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect contact_list_id\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__contact_lists\"\nwhere contact_list_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:54.572495Z", "completed_at": "2024-09-03T21:23:54.579261Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:54.580468Z", "completed_at": "2024-09-03T21:23:54.580471Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.014234781265258789, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot.unique_hubspot__contact_lists_contact_list_id.ea9ef03bac", "compiled": true, "compiled_code": "\n \n \n\nselect\n contact_list_id as unique_field,\n count(*) as n_records\n\nfrom (select * from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__contact_lists\" where not coalesce(is_contact_list_deleted, false)) dbt_subquery\nwhere contact_list_id is not null\ngroup by contact_list_id\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:53.996601Z", "completed_at": "2024-09-03T21:23:55.131710Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:55.132188Z", "completed_at": "2024-09-03T21:23:55.132199Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 1.2564492225646973, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.hubspot.hubspot__daily_ticket_history", "compiled": true, "compiled_code": "with change_data as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"int_hubspot__scd_daily_ticket_history\"\n\n\n where date_day >= (select max(date_day) from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__daily_ticket_history\")\n\n-- If no issue fields have been updated since the last incremental run, the pivoted_daily_history CTE will return no record/rows.\n-- When this is the case, we need to grab the most recent day's records from the previously built table so that we can persist \n-- those values into the future.\n\n), most_recent_data as ( \n\n select \n *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__daily_ticket_history\"\n where date_day = (select max(date_day) from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__daily_ticket_history\" )\n\n\n), calendar as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"int_hubspot__ticket_calendar_spine\"\n\n \n where date_day >= (select max(date_day) from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__daily_ticket_history\")\n \n\n), pipeline as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__ticket_pipeline\"\n\n), pipeline_stage as (\n\n select *\n from \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"stg_hubspot__ticket_pipeline_stage\"\n\n), joined as (\n\n select \n calendar.date_day,\n calendar.ticket_id\n \n \n , coalesce(change_data.hs_pipeline, most_recent_data.hs_pipeline) as hs_pipeline\n \n , coalesce(change_data.hs_pipeline_stage, most_recent_data.hs_pipeline_stage) as hs_pipeline_stage\n \n \n \n\n from calendar\n left join change_data\n on calendar.ticket_id = change_data.ticket_id\n and calendar.date_day = change_data.date_day\n \n \n left join most_recent_data\n on calendar.ticket_id = most_recent_data.ticket_id\n and calendar.date_day = most_recent_data.date_day\n \n\n), set_values as (\n\n select \n date_day,\n ticket_id\n \n \n , hs_pipeline\n -- create a batch/partition once a new value is provided\n , sum(case when joined.hs_pipeline is null then 0 else 1 end) over (\n partition by ticket_id\n order by date_day rows unbounded preceding) as hs_pipeline_partition\n \n , hs_pipeline_stage\n -- create a batch/partition once a new value is provided\n , sum(case when joined.hs_pipeline_stage is null then 0 else 1 end) over (\n partition by ticket_id\n order by date_day rows unbounded preceding) as hs_pipeline_stage_partition\n \n\n from joined\n\n), fill_values as (\n\n select \n date_day,\n ticket_id\n\n \n -- grab the value that started this batch/partition\n , first_value( hs_pipeline ) over (\n partition by ticket_id, hs_pipeline_partition \n order by date_day asc rows between unbounded preceding and current row) as hs_pipeline\n \n -- grab the value that started this batch/partition\n , first_value( hs_pipeline_stage ) over (\n partition by ticket_id, hs_pipeline_stage_partition \n order by date_day asc rows between unbounded preceding and current row) as hs_pipeline_stage\n \n\n from set_values\n\n), fix_null_values as (\n\n select \n date_day,\n ticket_id,\n pipeline_stage.ticket_state,\n pipeline.pipeline_label as hs_pipeline_label,\n pipeline_stage.pipeline_stage_label as hs_pipeline_stage_label\n\n \n -- we de-nulled the true null values earlier in order to differentiate them from nulls that just needed to be backfilled\n , case when cast( hs_pipeline as TEXT ) = 'is_null' then null else hs_pipeline end as hs_pipeline\n \n -- we de-nulled the true null values earlier in order to differentiate them from nulls that just needed to be backfilled\n , case when cast( hs_pipeline_stage as TEXT ) = 'is_null' then null else hs_pipeline_stage end as hs_pipeline_stage\n \n\n from fill_values\n\n left join pipeline \n on cast(fill_values.hs_pipeline as integer) = pipeline.ticket_pipeline_id\n left join pipeline_stage \n on cast(fill_values.hs_pipeline_stage as integer) = pipeline_stage.ticket_pipeline_stage_id\n and pipeline.ticket_pipeline_id = pipeline_stage.ticket_pipeline_id\n\n), surrogate as (\n\n select\n md5(cast(coalesce(cast(date_day as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(ticket_id as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as ticket_day_id,\n *\n\n from fix_null_values\n)\n\nselect *\nfrom surrogate", "relation_name": "\"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__daily_ticket_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:55.256122Z", "completed_at": "2024-09-03T21:23:55.265036Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:55.265518Z", "completed_at": "2024-09-03T21:23:55.265524Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.011097908020019531, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot.not_null_hubspot__daily_ticket_history_ticket_day_id.087496580e", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ticket_day_id\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__daily_ticket_history\"\nwhere ticket_day_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-09-03T21:23:55.260369Z", "completed_at": "2024-09-03T21:23:55.266260Z"}, {"name": "execute", "started_at": "2024-09-03T21:23:55.266669Z", "completed_at": "2024-09-03T21:23:55.266671Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.011699914932250977, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.hubspot.unique_hubspot__daily_ticket_history_ticket_day_id.294440dc9c", "compiled": true, "compiled_code": "\n \n \n\nselect\n ticket_day_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"hubspot_integration_tests_58_hubspot_dev\".\"hubspot__daily_ticket_history\"\nwhere ticket_day_id is not null\ngroup by ticket_day_id\nhaving count(*) > 1\n\n\n", "relation_name": null}], "elapsed_time": 35.80698204040527, "args": {"show_resource_report": false, "log_level_file": "debug", "log_path": "/Users/avinash.kunnath/Documents/dbt_packages/hubspot/dbt_hubspot/integration_tests/logs", "print": true, "populate_cache": true, "vars": {}, "partial_parse_file_diff": true, "log_format_file": "debug", "macro_debugging": false, "partial_parse": true, "send_anonymous_usage_stats": true, "which": "generate", "warn_error_options": {"include": [], "exclude": []}, "introspect": true, "strict_mode": false, "log_file_max_bytes": 10485760, "target": "postgres", "use_colors": true, "defer": false, "invocation_command": "dbt docs generate -t postgres", "exclude": [], "favor_state": false, "cache_selected_only": false, "profiles_dir": "/Users/avinash.kunnath/.dbt", "enable_legacy_logger": false, "project_dir": "/Users/avinash.kunnath/Documents/dbt_packages/hubspot/dbt_hubspot/integration_tests", "static_parser": true, "use_colors_file": true, "version_check": true, "require_explicit_package_overrides_for_builtin_materializations": false, "quiet": false, "static": false, "log_level": "info", "select": [], "write_json": true, "compile": true, "empty_catalog": false, "log_format": "default", "indirect_selection": "eager", "printer_width": 80}}