From 340fc7bc317f0832c11fe820708de6e6d78dd857 Mon Sep 17 00:00:00 2001 From: btkcodedev Date: Sun, 8 Sep 2024 23:50:23 +0530 Subject: [PATCH] fix models --- .../models/fivetran_converter/contact_list_member.sql | 2 +- .../models/fivetran_converter/contact_merged_audit.sql | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/connectors/source_hubspot/models/fivetran_converter/contact_list_member.sql b/connectors/source_hubspot/models/fivetran_converter/contact_list_member.sql index f3f2c70..08fab30 100644 --- a/connectors/source_hubspot/models/fivetran_converter/contact_list_member.sql +++ b/connectors/source_hubspot/models/fivetran_converter/contact_list_member.sql @@ -2,6 +2,6 @@ SELECT 'FALSE' AS is_contact_list_member_deleted, {{ dbt.current_timestamp() }} AS _fivetran_synced, NULL AS contact_id, - ROW_NUMBER() OVER (ORDER BY {{ dbt.current_timestamp() }} DESC) = 1 AS contact_list_id + NULL AS contact_list_id FROM {{ source('source_hubspot', 'contacts_list_memberships') }} diff --git a/connectors/source_hubspot/models/fivetran_converter/contact_merged_audit.sql b/connectors/source_hubspot/models/fivetran_converter/contact_merged_audit.sql index 5ac092d..09bf483 100644 --- a/connectors/source_hubspot/models/fivetran_converter/contact_merged_audit.sql +++ b/connectors/source_hubspot/models/fivetran_converter/contact_merged_audit.sql @@ -2,7 +2,7 @@ SELECT {{ dbt.current_timestamp() }} AS fivetran_synced, - "canonical-vid" AS canonical_id, + NULL AS canonical_id, vid_to_merge AS contact_id, entity_id, first_name, @@ -18,7 +18,7 @@ FROM SELECT {{ dbt.current_timestamp() }} AS fivetran_synced, - "canonical-vid" AS canonical_id, + NULL AS canonical_id, vid_to_merge AS contact_id, entity_id, first_name, @@ -34,7 +34,7 @@ FROM SELECT {{ dbt.current_timestamp() }} AS fivetran_synced, - `canonical_vid` AS canonical_id, + NULL AS canonical_id, vid_to_merge AS contact_id, entity_id, first_name,