Closed CraigWilson-ZOE closed 2 years ago
Hi @CraigWilson-ZOE , apologies for the wait, the team was out last week. I'll be taking a look this week!
Hi @CraigWilson-ZOE Just an update that the dbt v1 upgrades delayed some progress; we are still looking into this!
Hey @CraigWilson-ZOE! Apologies again for the delay; we were able to work on this a bit and see that it passed on our local runs. However since we don't have real data, it would be great if you could try running the branch and let me know if the tests pass/ all else looks fine?
Just drop this in your packages.yml:
packages:
- git: https://github.com/fivetran/dbt_mailchimp_source.git
revision: bug/unique_tests
warn-unpinned: false
Thank you again for bringing this issue up with us 😄
Hi @CraigWilson-ZOE, just checking to see if you've been notified!
Hi Craig, we're going to go ahead and close this issue for now without merging the branch. You can run with this bug/unique_tests
branch; once we are notified that the branch solves the issue we can merge it; if it doesn't resolve the issue, we can reopen this!
Just make sure to drop this in your packages.yml
:
packages:
- git: https://github.com/fivetran/dbt_mailchimp_source.git
revision: bug/unique_tests
warn-unpinned: false
Are you a current Fivetran customer? Craig Wilson, Data Engineering, ZOE
Describe the bug When running the tests in the mailchimp package we are getting the following errors:
Steps to reproduce
dbt run --select Mailchimp
dbt test --select Mailchimp
Expected behavior All tests to pass without error
Project variables configuration
Package Version
Warehouse
- [x] BigQuery - [ ] Redshift - [ ] Snowflake - [ ] Postgres - [ ] Databricks - [ ] Other (provide details below) **Additional context**When investigating this with the solutions team we found that user can belong to many lists (
list_id
) and that is the cause of at least one of the errors. This should be added as part of the primary key check. In addition, themailchimp_members
table aggregation seemed to join too many times generating an aggregate with duplicates apart from two distinct fields which seemed to be mutually exclusive:automation_sends
andautomation_unsubscribes
On the duplicate rows, each of these were 0 on one row and had a number on the other i.e. ROW 1: automation_sends = 6, automation_unsubscribes = 0 ROW 2: automation_sends = 0, automation_unsubscribes = 5
Screenshots
Please indicate the level of urgency
This is impacting our ability to see if we wish to use the Mailchimp data for analysis.
Are you interested in contributing to this package?