-
Notifications
You must be signed in to change notification settings - Fork 10
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/reduce-date-spine #57
base: main
Are you sure you want to change the base?
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-catfritz thanks for applying these updates and for the detailed validation steps. This PR looks good to me and ready for release review!
- ✅ Confirmed all deleted variables from the dbt_project.yml either are no longer used or have a default value provided each time they are referenced in the code.
- ✅ Confirmed all
mixpanel.date_today()
macro references have been updated to usecurrent_date
. - ✅ Confirmed the
dbt compile
command works on first run to validate theflags.WHICH
update to the date spine model. - ✅ Confirmed all validations have been provided and are passing or show expected results.
- ✅ Confirmed for each incremental end model appropriately included new records on incremental runs.
- ✅ Confirmed that subsequent incremental runs are idempotent
|
||
## Under the Hood | ||
- macro removal | ||
|
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.
I'd also recommend adding an under the hood piece detailing why we're removing the variable declarations in the dbt_project.yml. Mainly for our reference in the future, but also good to callout since that may look like a big change, when it's really not.
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.
Updated!
|
||
sessionization_inactivity: 30 # number of minutes it takes for a session to timeout due to inactivity | ||
# session_event_criteria: # filter to place on events in order to qualify for sessionization | ||
sessionization_trailing_window: 3 # number of hours to look back at for each mixpanel__sessions run. this allows you to sessionize events that arrive late without requiring a full refresh |
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.
Looks like it's really appropriate to remove this since we essentially deprecated a few releases ago.
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.
Thanks @fivetran-catfritz just had a question!
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.
Should the default date '2010-01-01' in line 28 also be removed?
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.
I considered it, but it should stay. The issue with the date spine was that it internally generates all dates back to 2010 even if there weren't records that went back that far, whereas this model only references existing records. We need a default value of some sort but I wanted to avoid pinging the source and incurring costs if we didn't need to.
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.
Gotcha! Thanks for explaining!
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
PR Overview
This PR will address the following Issue/Feature:
Submission Checklist
Submitter:
Reviewer:
Changelog
Full draft after PR approval
Validation: