Skip to content

Commit

Permalink
fix: filter out non USD transactions
Browse files Browse the repository at this point in the history
  • Loading branch information
Jabolol committed Sep 24, 2024
1 parent 5a41ecf commit de3834c
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
with open_collective_expenses as (
select * from {{ open_collective_events("stg_open_collective__expenses") }}
select *
from {{ open_collective_events("stg_open_collective__expenses") }}
where JSON_VALUE(amount, "$.currency") = "USD"
),

open_collective_deposits as (
select * from {{ open_collective_events("stg_open_collective__deposits") }}
select *
from {{ open_collective_events("stg_open_collective__deposits") }}
where JSON_VALUE(amount, "$.currency") = "USD"
)

select * from open_collective_expenses
Expand Down

0 comments on commit de3834c

Please sign in to comment.