-
Notifications
You must be signed in to change notification settings - Fork 7
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 that added ad squad & campaign in the ad report #33
Merged
fivetran-avinash
merged 11 commits into
main
from
feature/add-ad-squad-campaign-ad-report
Feb 19, 2025
+369
−102
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
6010466
add ad_squad and campaign to ad report
JeremyDOwens 0f90d3e
update version
JeremyDOwens 6a6f3f7
update changelog and fix missing comma
JeremyDOwens eebb110
Feature that added ad squad & campaign in the ad report
fivetran-avinash f57ee2d
CHANGELOG
fivetran-avinash 6b35f4b
Merge branch 'feature/add-ad-squad-campaign-ad-report' into feat-add-…
fivetran-avinash 3a64440
Merge pull request #32 from JeremyDOwens/feat-add-campaign-and-ad-squ…
fivetran-avinash cf38880
Add yml and validation test
fivetran-avinash 641a5f4
Merge branch 'feature/add-ad-squad-campaign-ad-report' of https://git…
fivetran-avinash 4c03630
PR rereview
fivetran-avinash 7513f3f
bump schema
fivetran-avinash File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
integration_tests/tests/integrity/vertical_ad_grain_row_comparison.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{{ config( | ||
tags="fivetran_validations", | ||
enabled=var('fivetran_validation_tests_enabled', false) | ||
) }} | ||
|
||
with ad_day_source as ( | ||
|
||
select | ||
ad_id, | ||
cast(date_hour as date) as date_day_source | ||
from {{ ref('stg_snapchat_ads__ad_hourly_report') }} | ||
{{ dbt_utils.group_by(2) }} | ||
), | ||
|
||
ad_day_end as ( | ||
|
||
select | ||
ad_id, | ||
date_day as date_day_end | ||
from {{ ref('snapchat_ads__ad_report') }} | ||
|
||
{{ dbt_utils.group_by(2) }} | ||
), | ||
|
||
final as ( | ||
-- test will fail if any rows from source not found in end | ||
(select * from ad_day_source | ||
except distinct | ||
select * from ad_day_end) | ||
|
||
union all -- union since we only care if rows are produced | ||
|
||
-- test will fail if any rows from end are not found in source | ||
(select * from ad_day_end | ||
except distinct | ||
select * from ad_day_source) | ||
) | ||
|
||
select * | ||
from final |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Yikes, looks like we missed updating this in the last release.