-
Notifications
You must be signed in to change notification settings - Fork 38
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
fix/datespine-empty #119
fix/datespine-empty #119
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.
lgtm! should we make a quickbooks version of this exploratory issue as well? fivetran/dbt_salesforce#49
That is great callout. Maybe we just consolidate QuickBooks in the FR you referenced for Salesforce. I believe when we get around to that FR we can explore the suggestion with all other datespine models in mind. As it will probably be relevant for all others as well. |
models/intermediate/int_quickbooks__general_ledger_date_spine.sql
Outdated
Show resolved
Hide resolved
models/intermediate/int_quickbooks__general_ledger_date_spine.sql
Outdated
Show resolved
Hide resolved
Following the recent casting changes, I can confirm the results are still what we would expect.
|
PR Overview
This PR will address the following Issue/Feature: Issue #118
This PR will result in the following new package version:
v0.12.3
This is simply adding default start and end dates to the
int_quickbooks__general_ledger_date_spine
model. This will not result in breaking changes. Instead it will ensure users who do not yet have transactions are able to see success in the end models.Please provide the finalized CHANGELOG entry which details the relevant changes included in this PR:
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 share any and all of your validation steps:
To validate these changes, I first attempted to run the QuickBooks data model on a schema where no transactions were present (I did this by just choosing a non existent schema to run the package against) and installed the production version of the data model. After doing this, I was able to see the run failed with the same error highlighted in the issue.
I then wanted to confirm that when using the same non existent schema (to emulate a schema with no transactions) that the data model would succeed given the changes in this PR. I was able to validate that these changes do in fact result in the expected outcome.
Further, I can confirm that this causes no issues on schemas that do have transactions present in the source schema. See in the screenshot below how prod and dev both have the same min and max dates in the general ledger date spine before/after this update is applied. Therefore, existing users will not experience any changes and this will simply address the issue when customers do not have transactions present.
If you had to summarize this PR in an emoji, which would it be?
📆