fivetran / dbt_sage_intacct

Fivetran data models for Sage Intacct using dbt.
https://fivetran.github.io/dbt_sage_intacct/#!/overview
Apache License 2.0
5 stars 6 forks source link

Bug Fix: Date spine timestamp error #24

Closed fivetran-avinash closed 1 month ago

fivetran-avinash commented 1 month ago

PR Overview

This PR will address the following Issue/Feature: [#23]

This PR will result in the following new package version: 0.5.0

No fields were changed in this update, just the behavior of the spine for empty general ledger models.

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

Bug Fixes

Under The Hood

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 reproduce the error, I created empty versions of the seed files that flowed into the general ledger model, in this case gl_account, gl_batch and gl_detail, then ran it in snowflake.

Screenshot 2024-07-29 at 8 59 46 PM

Adding the new logic fixed the error on a dbt run.

Also updating the date spine model to match our recent salesforce updates led to a successful dbt compile. Screenshot 2024-07-26 at 2 20 39 PM

To validate these changes on devprod, I created:

One note:

Screenshot 2024-07-30 at 12 29 06 AM

So this test should fail on this PR, but should work for all future PRs. I've left it in here with the expectation that it'll fail here but is a useful test for future models.

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

🦴
fivetran-avinash commented 1 month ago

@fivetran-avinash thanks for your work on this PR. It's looking great, I just have a few small notes before approval. Let me know if you want to sync on any of my notes.

@fivetran-joemarkiewicz This is ready for re-review.