Singular tests
with large_payments_by_method as (
select
paymentmethod,
amount,
status
from {{ source("stripe", "raw_payments") }}
where status = 'success'
and (
(paymentmethod = 'bank_transfer' and amount > 10000) or
(paymentmethod = 'credit_card' and amount > 5000) or
(paymentmethod = 'gift_card' and amount > 1000)
)
)
select *
from large_payments_by_methodCreate a singular test

Last updated