fivetran / dbt_stripe

Data models for Stripe built using dbt.
https://fivetran.github.io/dbt_stripe/
Apache License 2.0
29 stars 33 forks source link

BUG - Customer Overview Model Should Include No Associate Customer Records #28

Closed fivetran-joemarkiewicz closed 2 years ago

fivetran-joemarkiewicz commented 2 years ago

Are you a current Fivetran customer?

Fivetran created bug.

Describe the bug

Currently, the stripe__customer_overview model is joining the transaction into the customer object. However, this results in transactions that are no associated with a customer to be included in the model. This can be confusing for customers as the totals for this model will not tie out to the other models if they have transactions not associated with customers. As mentioned in this dbt Slack thread, this is something that is confusing and should be updated.

Expected behavior

All transactions (even the ones not associated with a customer) should be included in the stripe__customer_overview model. For those that are not associated, we should include them in the "No Associated Customer Records" record.

fivetran-joemarkiewicz commented 2 years ago

The merged PR above resolved this issue and the fix is live in the latest version of the package.