Skip to content

Commit

Permalink
Fix littlepay failing test due renamed table.
Browse files Browse the repository at this point in the history
  • Loading branch information
erikamov committed Feb 5, 2025
1 parent 58fb581 commit 1f04012
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
-- check_empty:
-- - "*"

with int_littlepay__cleaned_micropayment_device_transactions as (
with int_payments__cleaned_micropayment_device_transactions as (

select * from {{ ref('int_littlepay__cleaned_micropayment_device_transactions') }}
select * from {{ ref('int_payments__cleaned_micropayment_device_transactions') }}

),

Expand All @@ -24,7 +24,7 @@ stg_littlepay__micropayments as (
multiple_debit_transaction_ids as (

select littlepay_transaction_id
from int_littlepay__cleaned_micropayment_device_transactions
from int_payments__cleaned_micropayment_device_transactions
inner join stg_littlepay__micropayments as m using (micropayment_id)
where m.type = 'DEBIT'
group by 1
Expand All @@ -37,7 +37,7 @@ validate_cleaned_micropayment_device_transactions as (
select
littlepay_transaction_id,
m.*
from int_littlepay__cleaned_micropayment_device_transactions
from int_payments__cleaned_micropayment_device_transactions
inner join stg_littlepay__micropayments as m using (micropayment_id)
inner join multiple_debit_transaction_ids using (littlepay_transaction_id)
-- commented out the line below because I could not get rid of sqlfluff error L054
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ WITH stg_littlepay__micropayments AS (

),

int_littlepay__cleaned_micropayment_device_transactions AS (
int_payments__cleaned_micropayment_device_transactions AS (

SELECT * FROM {{ ref('int_littlepay__cleaned_micropayment_device_transactions') }}
SELECT * FROM {{ ref('int_payments__cleaned_micropayment_device_transactions') }}

),

Expand All @@ -32,8 +32,8 @@ validate_cleaned_micropayment_transaction_time_order AS (
) AS transaction_date_time_utc
FROM stg_littlepay__micropayments
INNER JOIN
int_littlepay__cleaned_micropayment_device_transactions ON
stg_littlepay__micropayments.micropayment_id = int_littlepay__cleaned_micropayment_device_transactions.micropayment_id
int_payments__cleaned_micropayment_device_transactions ON
stg_littlepay__micropayments.micropayment_id = int_payments__cleaned_micropayment_device_transactions.micropayment_id
INNER JOIN
stg_littlepay__device_transactions USING (littlepay_transaction_id)
WHERE
Expand Down

0 comments on commit 1f04012

Please sign in to comment.