Skip to content
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] Removal of deleted record filter resulting in uniqueness test failures #93

Closed
2 of 4 tasks
kcraig-ats opened this issue Jan 29, 2023 · 8 comments
Closed
2 of 4 tasks
Assignees
Labels
priority:p2 Affects most users; fix needed status:in_progress Currently being worked on type:bug Something is broken or incorrect update_type:testing Primary focus requires testing updates

Comments

@kcraig-ats
Copy link
Contributor

Is there an existing issue for this?

  • I have searched the existing issues

Describe the issue

Updating to version 0.8.0 of the HubSpot package resulted in uniqueness test failures. I read in dbt_hubspot_source #96 that the methods where not coalesce(is_deleted, false) and where not coalesce(_fivetran_deleted, false) were removed from a number of models to allow for greater flexibility. In testing this does appear to be the cause of the failures. The records that are failing have different deleted flag values. Each set of duplicates has one false flag and the remaining flags are true. Note, I have contact merge auditing enabled and tested it to rule it out as the cause. In my case, this was specific to email events but seems like it might apply to other models where the filter was removed.

Relevant error log or model output

No response

Expected behavior

Uniqueness tests should pass.

dbt Project configurations

n/a

Package versions

0.8.0

What database are you using dbt with?

redshift

dbt Version

1.3

Additional Context

Discussion with Jamie in dbt slack

Are you willing to open a PR to help address this issue?

  • Yes.
  • Yes, but I will need assistance and will schedule time during our office hours for guidance
  • No.
@bdtoole
Copy link

bdtoole commented Jan 31, 2023

Adding that we're experiencing the same issue on Snowflake, also with email events (models/marketing/email_events/email_events.yml) on the is_contact_deleted column

@fivetran-joemarkiewicz
Copy link
Contributor

Thanks for the note @bdtoole!

Our team is currently working on an update to the downstream tests to account for this change. I will post back once we have an update.

@fivetran-joemarkiewicz fivetran-joemarkiewicz added priority:p2 Affects most users; fix needed type:bug Something is broken or incorrect status:accepted Scoped and accepted into queue update_type:testing Primary focus requires testing updates labels Feb 1, 2023
@fivetran-joemarkiewicz fivetran-joemarkiewicz self-assigned this Feb 1, 2023
@fivetran-jamie
Copy link
Collaborator

@bdtoole @kcraig-ats just to confirm, are y'all only seeing the failures in the models/marketing/email_events models? or anywhere else as well?

@kcraig-ats
Copy link
Contributor Author

@fivetran-jamie confirming it's just email_events for me, but I also don't have hubspot_deal_enabled enabled and tickets are not in use.

@fivetran-joemarkiewicz
Copy link
Contributor

Hi @kcraig-ats thanks for sharing the additional details here on the tests you are seeing experiencing the failures.

I have been able to open a PR that I believe should address the issue you are experiencing. Would you be able to test the following version of the package (you can replace the normal package dependency in your packages.yml with the following):

packages:
  - git: https://github.com/fivetran/dbt_hubspot.git
    revision: bugfix/uniqueness-test-adjustment
    warn-unpinned: false 

Let me know if using this version of the package addresses the original issue you started seeing after upgrading. Thanks!

@fivetran-joemarkiewicz fivetran-joemarkiewicz added status:in_progress Currently being worked on and removed status:accepted Scoped and accepted into queue labels Feb 2, 2023
@kcraig-ats
Copy link
Contributor Author

@fivetran-joemarkiewicz Yep, that fixed the issue! TY!!

@bdtoole
Copy link

bdtoole commented Feb 2, 2023

Confirming that the issue seems fixed for us, too!

@fivetran-joemarkiewicz
Copy link
Contributor

Thanks all for your help in raising this issue to our team. We have since been able to address the issue in the latest release of the dbt_hubspot package (v0.8.2). Feel free to upgrade to see the test failures resolved.

As a result, I will close out this issue. Please feel free to reopen if the issue persists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority:p2 Affects most users; fix needed status:in_progress Currently being worked on type:bug Something is broken or incorrect update_type:testing Primary focus requires testing updates
Projects
None yet
Development

No branches or pull requests

4 participants