I am using Azure Data Factory Mapping Data Flows.
I am trying to write an equivalent of sql 'case' statement to get a value in a derived column based on cashed sink.
My cashed sink input is a query: 'select ID from dbo.aaa'. It returns all ID as Integers, they are visible in 'Data Preview'.
My derived column expression is:
iif(contains(chachedIDs#, #item==ID), "upserted row", "deleted row").
The above must be wrong as I cannot preview, ADF says: 'Type mismatch'. 'Expression type could not be evaluated, correct the expression'