-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] Merged deals don't get remove in final models #134
Comments
Thanks @codingcyclist for noticing this! I've dug around and just want to make sure we're on the same page: There is a merged_deal table that should be added in our package so that we can create a field such as 'is_merged' in the end deal model so you can filter out the merged (stale ) deals. So for the example above, the 1st column Vice versa, it would also be helpful to introduce a new column such as 'calculated_merged_deal_ids' that will aggregate all deals that have merged, for each record that it's been merged into. Let me know if I'm missing anything! |
Ah I see your point. Filtering out individual deals if they're already merged and aggregating them in 1 record; that way we'll have a continuous history for these rather them going stale. Great, I believe I got the scope of this ticket, will look into adding this to an future sprint for our team! |
Hi @codingcyclist, we've been able to work on the issue of merged deals. If you're interested in trying it out before we release it, see the branch below to paste into your packages.yml. Keen to see what you think!
|
Hi @codingcyclist , we have merged this into the main branch! Let us know if this suits your needs and if you have any further questions! Will close this out for now |
Thanks a lot for the quick turnaround! I really appreciate it |
Is there an existing issue for this?
Describe the issue
calculated_merged_vids
in the final models (using theCONTACT.property_hs_calculated_merged_vids
column)is_deleted
columnRelevant error log or model output
No response
Expected behavior
Adopt the same behavior as for contacts: merged deals should get removed in final models (using the
merged_deal
table) and the IDs of merged deals should get collapsed into acalculated_merged_vids
columndbt Project configurations
Package versions
What database are you using dbt with?
snowflake
dbt Version
1.7.4
Additional Context
No response
Are you willing to open a PR to help address this issue?
The text was updated successfully, but these errors were encountered: