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

Resolve "Divide by 0" error in stripe__line_item_enhanced #89

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

fivetran-jamie
Copy link
Contributor

@fivetran-jamie fivetran-jamie commented Sep 23, 2024

PR Overview

This PR will address the following Issue/Feature:
#86

This PR will result in the following new package version:

This specific change would be 0.14.1, but batched with the other existing Stripe PRs, the release will probably be a breaking change

Please provide the finalized CHANGELOG entry which details the relevant changes included in this PR:

Bug Fixes

  • Addressed a potential Divide by 0 error in calculating unit_amount in the stripe__line_item_enhanced model. Now, if the denominator invoice_line_item.quantity is 0, unit_amount will also be 0.

PR Checklist

Basic Validation

Please acknowledge that you have successfully performed the following commands locally:

  • dbt run –full-refresh && dbt test
  • dbt run (if incremental models are present) && dbt test

Before marking this PR as "ready for review" the following have been applied:

  • The appropriate issue has been linked, tagged, and properly assigned
  • All necessary documentation and version upgrades have been applied
  • docs were regenerated (unless this PR does not include any code or yml updates) -- Will do in release branch
  • BuildKite integration tests are passing
  • Detailed validation steps have been provided below

Detailed Validation

Please share any and all of your validation steps:

Adjusted consistency_line_item_enhanced_count test to also look at differences in unit_amount (though this should be covered by consistency_line_item_enhanced as well) and all validation tests are passing
image

If you had to summarize this PR in an emoji, which would it be?

0️⃣

@fivetran-jamie fivetran-jamie self-assigned this Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant