I am trying to filter out the null record from previous lookup activity in azure synapse workspace. To do this, I have used the below mentioned expressions in filter activity. But I am not able to get rid of the null records in the filter activity output. I have used the coalesce() function also to do that.
FYI, I know there is IsNull expression in data flow activity, but I don't want to use Data flow in pipeline as the pipeline is small and dataflow execution is extra cost.
PFB, details and attached screenshot.
Approach used : Filter activity to filter null records using coalesce() function and without coalesce(). Expression:
- @if(equals(coalesce(activity('LookupID').output.value[0].ID,''),''), true,false)
- @if(equals(activity('LookupID').output.value[0].ID, null), false,true)
- @if(equals(activity('LookupID').output.value[0].ID, ''),''), false,true)
With any of the above expressions, the filter output has all the records including null value records. Please share your suggestion if I am missing anything.