Update/crm api v3 - contact_merge_audit table removed #100
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Are you a current Fivetran customer?
internal
What change(s) does this PR introduce?
aligns with recent changes to the hubspot API
property_hs_calculated_merged_vids
field to the contact table seed dataproperty_hs_calculated_merged_vids
source field to merge contacts.hubspot_contact_merge_audit_enabled
to false (the default value of this variable istarget.type == 'bigquery'
)calculated_merged_vids
into an array, and then split it out into rows, and then split it again along a:
(the format of this field isvid_to_merge:long_number_that_looks_like_epoch_seconds;second_vid_to_merge;another_epoch_time_maybe;...
)target.name
totarget.type
and fixed some wonky seed filesi heavily leveraged our iterable code https://github.com/fivetran/dbt_iterable/blob/main/models/intermediate/int_iterable__list_user_unnest.sql
here's a breakdown of the logic/expected output:
let's say in the
contact
table we have 3 records, and their contact_ids are100
,200
, and300
when we look at
property_hs_calculated_merged_vids
, it stores the contact ids that should be merged into the maincontact_id
. the format isvid_to_be_merged:long_number_that_looks_like_epoch_seconds;second_vid_to_merge;another_epoch_time_maybe;...
let's say contact
100
has aproperty_hs_calculated_merged_vids
value of200:1654364535;300:165404030
. this means that contacts200
and300
were merged into100
, so only100
should persist in the finalhubspot__contacts
modelDid you update the CHANGELOG?
Does this PR introduce a breaking change?
default behavior is different for most users (though they should end up with the same result...so maybe not?)
Did you update the dbt_project.yml files with the version upgrade (please leverage standard semantic versioning)? (In both your main project and integration_tests)
Is this PR in response to a previously created Bug or Feature Request
How did you test the PR changes?
Select which warehouse(s) were used to test the PR
Provide an emoji that best describes your current mood
🧛
Feedback
We are so excited you decided to contribute to the Fivetran community dbt package! We continue to work to improve the packages and would greatly appreciate your feedback on our existing dbt packages or what you'd like to see next.