a few small details

This commit is contained in:
Pablo Martin 2024-05-14 16:20:48 +02:00
parent bc4ca1cbc3
commit eba636b16c
3 changed files with 6 additions and 3 deletions

View file

@ -2,9 +2,8 @@ with stg_xero__contacts as (select * from {{ ref("stg_xero__contacts") }})
select
id_contact,
account_number,
case
when account_number ~ '^[0-9]{10,11}$' then account_number else null
end as id_deal,
case when account_number ~ '^[0-9]{10,11}$' then account_number else null end::text
as id_deal,
contact_name,
is_customer,
is_supplier,