-
Notifications
You must be signed in to change notification settings - Fork 16
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
reach + frequency metrics #35
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-jamie thanks for quickly working through this update and for putting such a strong emphasis on backwards compatibility! I do have one small comment to try and make the code a bit more dynamic in the staging model. Let me know your thoughts.
Co-authored-by: Joe Markiewicz <74217849+fivetran-joemarkiewicz@users.noreply.github.com>
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-jamie thanks for making these changes! This looks good to me! This is good to have docs regen'd and then kick off the release 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.
@fivetran-jamie A few comments before approval!
CHANGELOG.md
Outdated
@@ -23,10 +32,10 @@ | |||
|
|||
# dbt_facebook_ads_source v0.UPDATE.UPDATE |
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 this Under the Hood section be incorporated into a release (and this v.0.UPDATE.UPDATE line be removed)?
@@ -23,10 +32,10 @@ | |||
|
|||
# dbt_facebook_ads_source v0.UPDATE.UPDATE | |||
|
|||
## Under the Hood: | |||
|
|||
## Under the Hood: | |||
- Incorporated the new `fivetran_utils.drop_schemas_automation` macro into the end of each Buildkite integration test job. |
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.
Do you know which release these changes came from? We should probably move these bullets to that release section.
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!
CHANGELOG.md
Outdated
[PR #35](https://github.com/fivetran/dbt_facebook_ads_source/pull/35) includes the following updates: | ||
|
||
## Bug Fixes | ||
- Resolved the "duplicate column" error that would arise when the `facebook_ads__basic_ad_passthrough_metrics` variable included `reach` or `frequency`. `Reach` and `frequency` are included by default in the `stg_facebook_ads__basic_ad` model but will only persist to downstream transform models if specified in the `facebook_ads__basic_ad_passthrough_metrics` variable. |
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 we call out how we resolved it in a sub-bullet using a for loop in the specific models/macros? Doesn't have to be too involved, just always nice to explain how to the customer.
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.
added!
Co-authored-by: Avinash Kunnath <108772760+fivetran-avinash@users.noreply.github.com>
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:
#34
This PR will result in the following new package version:
v0.7.3
Please provide the finalized CHANGELOG entry which details the relevant changes included in this PR:
Bug Fixes
facebook_ads__basic_ad_passthrough_metrics
variable includedreach
orfrequency
.Reach
andfrequency
are included by default in thestg_facebook_ads__basic_ad
model but will only persist to downstream transform models if specified in thefacebook_ads__basic_ad_passthrough_metrics
variable.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:
So in my dev
dbt_project.yml
, I added the following config:I expected the above inclusion of
reach
(but notfrequency
actually due to the alias) to cause a failure, which it did instg_facebook_ads__basic_ad
With this branch, running
dbt run +ad_reporting
completed successfullyAnd I see
reach
andfake_freq_name
in my facebook ads models (and with non-zero/null values)If you had to summarize this PR in an emoji, which would it be?
📊