Skip to content

Commit 3434340

Browse files
feature: add cross market dimension and facts (#45)
* feature: add cross market dimension and facts * chore: formating * chore: fix cautions selection
1 parent 9623468 commit 3434340

33 files changed

+312
-161
lines changed

models/00_sources/cost_import_sheet.yml

Lines changed: 39 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,43 @@ sources:
77
description: Other marketing costs imported from Google Sheets
88
external:
99
options:
10-
format: 'GOOGLE_SHEETS'
11-
uris: ['https://docs.google.com/spreadsheets/d/1ayInoMFB6jwTUhExq9XmQDuzw6GzYmE88O39kLgjyU8/edit?usp=sharing']
12-
sheet_range: 'Sheet1!A1:H1000'
10+
format: GOOGLE_SHEETS
11+
uris: ["https://docs.google.com/spreadsheets/d/1ayInoMFB6jwTUhExq9XmQDuzw6GzYmE88O39kLgjyU8/edit?usp=sharing"]
12+
sheet_range: Sheet1!A1:H1000
1313
skip_leading_rows: 1
14+
columns:
15+
- name: date_start
16+
description: ''
17+
config:
18+
meta: {}
19+
tags: []
20+
- name: date_end
21+
description: ''
22+
config:
23+
meta: {}
24+
tags: []
25+
- name: referrer_source
26+
description: ''
27+
config:
28+
meta: {}
29+
tags: []
30+
- name: referrer_medium
31+
description: ''
32+
config:
33+
meta: {}
34+
tags: []
35+
- name: spend
36+
description: ''
37+
config:
38+
meta: {}
39+
tags: []
40+
- name: impressions
41+
description: ''
42+
config:
43+
meta: {}
44+
tags: []
45+
- name: clicks
46+
description: ''
47+
config:
48+
meta: {}
49+
tags: []

models/10_staging/paid/stg_paid__raw_other_marketing_costs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ models:
44
columns:
55
- name: date_start
66
description: The date the record was created
7-
data_type: STRING
7+
data_type: DATE
88
config:
99
meta: {}
1010
tags: []
1111
- name: date_end
1212
description: The date the record was ended
13-
data_type: STRING
13+
data_type: DATE
1414
config:
1515
meta: {}
1616
tags: []

models/10_staging/seed/stg_seed_musd_market_map.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ models:
44
Standardized view of MUSD market mappings used for market identification and reference data.
55
columns:
66
- name: market_id
7-
description: >-
8-
The unique identifier for the market (either a blockchain address or a numeric ID)
7+
description: The unique identifier for the market (either a blockchain address or a numeric
8+
ID)
99
data_tests:
1010
- not_null
1111
- unique

models/10_staging/segment/base/stg_segment_profiles__pages.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,11 @@ models:
135135
config:
136136
meta: {}
137137
tags: []
138+
- name: page_path
139+
description: ''
140+
config:
141+
meta: {}
142+
tags: []
138143
- name: received_at_tstamp
139144
description: Timestamp when Segment received the event
140145
config:
@@ -165,6 +170,11 @@ models:
165170
config:
166171
meta: {}
167172
tags: []
173+
- name: page_title
174+
description: ''
175+
config:
176+
meta: {}
177+
tags: []
168178
- name: page_url
169179
description: Full page URL (protocol + domain + path + query)
170180
config:

models/10_staging/segment/stg_segment__events.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,16 @@ models:
217217
config:
218218
meta: {}
219219
tags: []
220+
- name: page_path
221+
description: ''
222+
config:
223+
meta: {}
224+
tags: []
225+
- name: page_title
226+
description: ''
227+
config:
228+
meta: {}
229+
tags: []
220230
- name: context_actions_amplitude_session_id
221231
description: Amplitude session ID if available
222232
config:

models/10_staging/segment/stg_segment__union_events.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,16 @@ models:
217217
config:
218218
meta: {}
219219
tags: []
220+
- name: page_path
221+
description: ''
222+
config:
223+
meta: {}
224+
tags: []
225+
- name: page_title
226+
description: ''
227+
config:
228+
meta: {}
229+
tags: []
220230
- name: context_actions_amplitude_session_id
221231
description: Amplitude session ID if available
222232
config:

models/50_intermediate/goldsky/with_graph/int_goldsky_mezo_bridge_mainnet__assets_locked_graph.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ models:
3232
config:
3333
meta: {}
3434
tags: []
35-
- name: token_adress
35+
- name: token_address
3636
description: Address of the token
3737
config:
3838
meta: {}

models/50_intermediate/goldsky/with_graph_and_referrer/int_goldsky_borrower_operations_mezo__loans_graph_with_referrer.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,11 +120,11 @@ models:
120120
meta: {}
121121
tags: []
122122
- name: referrer_id
123-
description: Surrogate key for the channel grouping, generated from referrer source + medium.
123+
description: Surrogate key for the channel grouping, generated from referrer source +
124+
medium.
124125
config:
125126
meta: {}
126127
tags: []
127-
data_type: STRING
128128
data_tests:
129129
- not_null
130130
- name: referrer_source

models/50_intermediate/goldsky/with_graph_and_referrer/int_goldsky_market_mezo__donated_graph_with_referrer.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,11 @@ models:
7070
meta: {}
7171
tags: []
7272
- name: referrer_id
73-
description: Surrogate key for the channel grouping, generated from referrer source + medium.
73+
description: Surrogate key for the channel grouping, generated from referrer source +
74+
medium.
7475
config:
7576
meta: {}
7677
tags: []
77-
data_type: STRING
7878
data_tests:
7979
- not_null
8080
- name: referrer_source

models/50_intermediate/goldsky/with_graph_and_referrer/int_goldsky_market_mezo__order_placed_graph_with_referrer.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,11 @@ models:
7575
meta: {}
7676
tags: []
7777
- name: referrer_id
78-
description: Surrogate key for the channel grouping, generated from referrer source + medium.
78+
description: Surrogate key for the channel grouping, generated from referrer source +
79+
medium.
7980
config:
8081
meta: {}
8182
tags: []
82-
data_type: STRING
8383
data_tests:
8484
- not_null
8585
- name: referrer_source

0 commit comments

Comments
 (0)