Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
fivetran-catfritz committed Dec 27, 2023
1 parent 8d63de6 commit 62ee9bc
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 85 deletions.
2 changes: 1 addition & 1 deletion dbt_project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ models:
+schema: sfmc
+materialized: table
intermediate:
+materialized: table
+materialized: ephemeral
+schema: int_sfmc
staging:
+materialized: view
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/seeds/event_data.csv
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ Sent,rlDvAlkuIN+VD8tsqLdKkRdaiOg=,FALSE,2023-10-06 06:21:26,0,,,,2023-10-05T20:4
Sent,kInRpDUgNobOsBGxBYaobpB1px0=,FALSE,2023-10-06 06:21:26,0,,,,2023-10-05T20:46:35,,,,1491592,0,,random1@random.com,,0,
Sent,IsfQrN9Vit7I4Dyww+PnNFyal84=,FALSE,2023-10-06 06:21:26,0,,,,2023-10-05T20:35:35,,,,1491591,0,,random2@random.com,,0,
Sent,oWvcpj4so1+XxXgLgNkq3AchNvI=,FALSE,2023-10-06 06:21:26,0,,,,2023-10-05T20:35:35,,,,1491591,0,,random1@random.com,,0,
Sent,jsSGXrFAloj+mvhhBpVGtgKDoU8=,FALSE,2023-10-06 06:21:26,0,,,,2023-10-05T20:35:35,,,,1491591,0,,random3@random.com,,0,
Sent,jsSGXrFAloj+mvhhBpVGtgKDoU8=,FALSE,2023-10-06 06:21:26,0,,,,2023-12-05T20:35:35,,,,1491591,0,,random3@random.com,,0,
4 changes: 2 additions & 2 deletions models/intermediate/int_salesforce_markering_cloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ version: 2

models:

- name: int_salesforce_marketing_cloud__events_enhanced
- name: salesforce_marketing_cloud__events_enhanced
description: Each record represents an event with pivoted event type data.

- name: int_salesforce_marketing_cloud__subscribers_enhanced
- name: salesforce_marketing_cloud__subscribers_enhanced
description: Each record represents a subscriber with pivoted subscriber status data.

This file was deleted.

This file was deleted.

2 changes: 1 addition & 1 deletion models/salesforce_marketing_cloud__email_overview.sql
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ with emails as (

), events_enhanced as (
select *
from {{ ref('int_salesforce_marketing_cloud__events_enhanced') }}
from {{ ref('salesforce_marketing_cloud__events_enhanced') }}

), events_stats as (
select
Expand Down
2 changes: 1 addition & 1 deletion models/salesforce_marketing_cloud__sends_overview.sql
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ with sends as (

), events_enhanced as (
select *
from {{ ref('int_salesforce_marketing_cloud__events_enhanced') }}
from {{ ref('salesforce_marketing_cloud__events_enhanced') }}

), events_stats as (
select
Expand Down
2 changes: 1 addition & 1 deletion models/salesforce_marketing_cloud__subscriber_lists.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
-- this is meant to be stand alone since subscribers could belong to multiple lists, and I did not want to do a list agg to include this in the subscriber overview, but open for discussion
with subscribers as (
select *
from {{ ref('int_salesforce_marketing_cloud__subscribers_enhanced') }}
from {{ ref('salesforce_marketing_cloud__subscribers_enhanced') }}

), lists_subscribers as (
select *
Expand Down
4 changes: 2 additions & 2 deletions models/salesforce_marketing_cloud__subscriber_overview.sql
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
-- aggregates at the subscriber grain
with subscribers as (
select *
from {{ ref('int_salesforce_marketing_cloud__subscribers_enhanced') }}
from {{ ref('salesforce_marketing_cloud__subscribers_enhanced') }}

), events_enhanced as (
select *
from {{ ref('int_salesforce_marketing_cloud__events_enhanced') }}
from {{ ref('salesforce_marketing_cloud__events_enhanced') }}

), aggs as (
select
Expand Down

0 comments on commit 62ee9bc

Please sign in to comment.