Exclude Fivetran's incorrect Stripe customer discount records from SubPlat ETLs. (#6443)
This commit is contained in:
Родитель
76351c7cfb
Коммит
73f47fc0e3
|
@ -12,3 +12,6 @@ SELECT
|
|||
subscription_id,
|
||||
FROM
|
||||
`moz-fx-data-bq-fivetran`.stripe.customer_discount
|
||||
WHERE
|
||||
-- Fivetran used to have a bug where it synced subscription discounts as customer discounts.
|
||||
subscription_id IS NULL
|
||||
|
|
|
@ -17,3 +17,6 @@ SELECT
|
|||
subscription_id,
|
||||
FROM
|
||||
`moz-fx-data-bq-fivetran.stripe.discount`
|
||||
WHERE
|
||||
-- Fivetran used to have a bug where it synced subscription discounts as customer discounts.
|
||||
NOT (type = 'CUSTOMER' AND subscription_id IS NOT NULL)
|
||||
|
|
Загрузка…
Ссылка в новой задаче