Hi, I have field where users can upload csv file (fileInput1), then they can map column names from csv file to column names in database (listView2) and then they can see the final table with the content of csv file and mapped column names (tableLegacy1).
I want to create sql query that returns true or false deppending if the vat_number in tableLegacy1 already exists in BigQuery table marts.leads_for_retool or not.
I can't understand why my query does not work?
select case when count<>0 then true else false end as exist_in_db from (
select count(vat_number) count from marts.leads_for_retool
where vat_number IN UNNEST({{ tableLegacy1.vat_number }})
)
I get error:
Incorrect number of parameter types provided.
Could someone please help me understand what might be causing this error and how I can fix it?
Thank you in advance for your assistance!
