data prep function upsert_array_replace is not replacing array, but appending to array
Hi Community,
I have to replace complete array with new values of array on every batch ingestion, but on every batch ingestion new items gets appended to this array in target dataset instead of replace. I have used upsert_array_replace in a calculated field and my dataset is profile and upsert enabled. Below is the structure of my target and source array, it has a primary identifier as "key" and "comm_details" array object to replace.
Calculate Field : upsert_array_replace (_tenant.comm_details) -- Source
Dataset Field : _tenant.comm_detail[*] -- Target
I have already gone through documentation.
https://experienceleague.adobe.com/sv/docs/experience-platform/data-prep/functions#arrays
Could you please let me know if this is expected behavior or I am missing anything.