multi account working on staging
This commit is contained in:
parent
28aae293ab
commit
e2655a9e06
1 changed files with 7 additions and 2 deletions
|
|
@ -1,6 +1,10 @@
|
|||
with
|
||||
raw_balance_transactions as (
|
||||
select * from {{ source("stripe_uk", "balance_transactions") }}
|
||||
select *, 'stripe_uk_account' as stripe_source_account
|
||||
from {{ source("stripe_uk", "balance_transactions") }}
|
||||
union all
|
||||
select *, 'stripe_us_account' as stripe_source_account
|
||||
from {{ source("stripe_us", "balance_transactions") }}
|
||||
),
|
||||
stg_seed__currencies as (select * from {{ ref("stg_seed__currencies") }}),
|
||||
stg_stripe__balance_transactions as (
|
||||
|
|
@ -39,7 +43,8 @@ with
|
|||
{{ adapter.quote("_airbyte_extracted_at") }} as dwh_extracted_at_utc,
|
||||
cast(
|
||||
{{ adapter.quote("_airbyte_extracted_at") }} as date
|
||||
) as dwh_extracted_date_utc
|
||||
) as dwh_extracted_date_utc,
|
||||
{{ adapter.quote("stripe_source_account") }}
|
||||
|
||||
from raw_balance_transactions bt
|
||||
left join
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue