-
Notifications
You must be signed in to change notification settings - Fork 35
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
Feature/normalized billing model #81
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fivetran-reneeli please see below for my comments and questions. Additionally, there are a few items that are leaving me a bit puzzled when reviewing the resulting data. I schedule some time for later today to discuss in more detail and determine next steps.
Before we meet, it would be great if you can review the questions and make any necessary changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
model has been updated to remove duplicates
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As of the latest updates there are still some duplicates. I was able to narrow it down to needing parentheses in this where clause to separate the index and not null clauses.
dbt_stripe/models/common_data_models/stripe__line_item_enhanced.sql
Lines 254 to 255 in b5d29fc
where line_item_index = 1 | |
and discount_amount is not null or tax_amount is not null or fee_amount is not null or refund_amount is not null |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fivetran-reneeli thanks for making these updates! There were a few final comments I have, but I ended up consolidating and moving the changes to PR #82. This way there is a more clean PR (with less initial review comments) that we can share externally with the community and where they can add their own comments.
We will like close this out, but please review the minor changes between the branches to understand the updates I applied.
- name: stripe__line_item_enhanced | ||
description: Add description | ||
tests: | ||
- dbt_utils.unique_combination_of_columns: | ||
combination_of_columns: | ||
- header_id | ||
- line_item_id |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like this test is failing at the moment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As of the latest updates there are still some duplicates. I was able to narrow it down to needing parentheses in this where clause to separate the index and not null clauses.
dbt_stripe/models/common_data_models/stripe__line_item_enhanced.sql
Lines 254 to 255 in b5d29fc
where line_item_index = 1 | |
and discount_amount is not null or tax_amount is not null or fee_amount is not null or refund_amount is not null |
Closing this as PR #82 will address this |
to be completed