Skip to content

Commit e8204e3

Browse files
committed
added test for dim_products and fct_assets_locked. cleaned rows where token_id is null
1 parent 64429a8 commit e8204e3

File tree

4 files changed

+13
-2
lines changed

4 files changed

+13
-2
lines changed

models/50_intermediate/goldsky/int_goldsky_mezo_bridge_mainnet__assets_locked.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ with
3131
left join
3232
currency_lookup
3333
on assets_locked.token_address = currency_lookup.ethereum_address
34+
where currency_lookup.id is not null
3435
),
3536

3637
currency_conversion as (

models/80_marts/fct_assets_locked.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,13 @@ models:
2929
meta: {}
3030
tags: []
3131
description: Hash of the transaction that emitted this event.
32-
- name: fk_token_adress
32+
- name: fk_token_id
3333
data_type: STRING
34+
tests:
35+
- not_null
36+
- relationships:
37+
field: id
38+
to: ref('dim1_token')
3439
config:
3540
meta: {}
3641
tags: []

models/80_marts/fct_orders.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ models:
3131
description: Hash of the transaction in which the order was placed.
3232
- name: fk_dim1__products
3333
data_type: STRING
34+
tests:
35+
- not_null
36+
- relationships:
37+
field: id
38+
to: ref('dim1_products')
3439
config:
3540
meta: {}
3641
tags: []

models/80_marts/fct_sessions.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ models:
2828
meta: {}
2929
tags: []
3030
data_type: DATE
31-
description: ''
31+
description: Foreign key to the DATE dimension
3232
- name: fk_campaign
3333
description: Foreign key to the campaign dimension
3434
data_tests:

0 commit comments

Comments
 (0)