I have created a data factory to Update my existing Cosmos DB using data stored in Blob as csv file. The csv file contains two fields column "X" and "Y" and their values. I want to insert new key in my existing Cosmos Db as Y ,filter criteria is column X which is unique
I already created the pipeline ,and upsert the documents in cosmosdb. But in current Pipeline old data is getting removed and only column Y is getting inserted.
Data in current Document in cosmos db
{
"_id" : ObjectId("5dad5adbfa882146ea8e7a0e"),
"x" : "UUID",
"old_key" : true
}
Data in csv file
x,new_key
UUID, "new_value"
Expected output
{
"_id" : ObjectId("5dad5adbfa882146ea8e7a0e"),
"x" : "UUID",
"old_key" : true,
"new_key":"new_value"
}
My output which i tried(old keys are removed)
{
"_id" : ObjectId("5dad5adbfa882146ea8e7a0e"),
"x" : "UUID"
"new_key":"new_value"
}
