Skip to content

Commit

Permalink
decision log
Browse files Browse the repository at this point in the history
  • Loading branch information
fivetran-jamie committed Apr 30, 2024
1 parent 4383776 commit 8e17066
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DECISIONLOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Linkedin's "campaign group" reporting is the equivalent to all other platforms'
### Snapchat Ad Account Report Metrics Associated with Deleted Entities
Snapchat Ads will hard-delete entities (i.e. ads, ad squads, campaigns, accounts) from their `*_history` tables but retain associated records in their respective `*_hourly_report` tables. This typically does not pose an issue for our `not_null` tests on our Ad Reporting and Snapchat Ads end models, as most entities have their own `<entity>_hourly_report` source tables that come with the appropriate entity-level ID. However, `snapchat_ads__account_report` (and the downstream `ad_reporting__account_report` model) draws from the Snapchat `ad_hourly_report` table, rolls it up to the account level, and joins in the ad `account_id` using history tables. Thus, if any ad report record is associated with a deleted ad, campaign, ad squad, or account, the ad `account_id` will be `null`.

We have opted to keep these records in `snapchat_ads__account_report` and `ad_reporting__account_report`, as it may be valuable to know that non-zero ad metrics are associated with deleted entities. However, we have changed the severity of the `not_null` test on ad `account_id` to be `warn` instead of `error`.
We have opted to keep these records in `snapchat_ads__account_report` and `ad_reporting__account_report`, as it may be valuable to know that non-zero ad metrics are associated with deleted entities (though null-account Snapchat records will be grouped together). However, we have changed the severity of the `not_null` test on ad `account_id` to be `warn` instead of `error`.

If you would like to disable this `not_null` test completely to avoid warnings, add the following to your root project `dbt_project.yml`:
```yml
Expand Down

0 comments on commit 8e17066

Please sign in to comment.