Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix littlepay failing tests due renamed table #3676

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading