-
Notifications
You must be signed in to change notification settings - Fork 21
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/department id casting #44
Feature/department id casting #44
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-joemarkiewicz I noticed that the seed files had mostly null department ids so I tried and tested with and without a department id to make sure everything looked good (passed both on the source and transform so all looks good there).
Only one significant comment to address and you should be good to go!
Thanks for the review @fivetran-avinash! Applied the changes and all is ready for re-review! |
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.
Time to merge!
PR Overview
This PR will address the following Issue/Feature: This is a complimentary PR to the dbt_quickbooks PR#82 that adds the department_id to the GL model.
This PR will result in the following new package version:
v0.8.0
Although this is not a breaking change, it will be batched with other breaking changes.
Please detail what change(s) this PR introduces and any additional information that should be known during the review of this PR:
This PR includes string type casting for the
department_id
in the relevant header and line item tables.stg_quickbooks__bill
stg_quickbooks__bill_payment
stg_quickbooks__credit_memo
stg_quickbooks__department
stg_quickbooks__deposit
stg_quickbooks__invoice
stg_quickbooks__journal_entry_line
stg_quickbooks__purchase
stg_quickbooks__refund_receipt
stg_quickbooks__sales_receipt
stg_quickbooks__vendor_credit
PR Checklist
Basic Validation
Please acknowledge that you have successfully performed the following commands locally:
Before marking this PR as “ready for review” the following have been applied:
Detailed Validation
Please acknowledge that the following validation checks have been performed prior to marking this PR as “ready for review”:
This is a pretty straight forward update where the
department_id
fields are casted in the relevant staging models in order to ensure the unioning of the fields downstream are successful. This casting is particularly necessary for tables that have allnull
values as the datatype cannot always be inferred. Therefore, the casting is necessary to ensure success.Additionally, it was confirmed that all relevant macros have the
department_id
and set to datatype string. Therefore we can be comfortable that the field will be included regardless.Standard Updates
Please acknowledge that your PR contains the following standard updates:
dbt Docs
Please acknowledge that after the above were all completed the below were applied to your branch:
If you had to summarize this PR in an emoji, which would it be?
🧵