turcsanyip commented on PR #10031:
URL: https://github.com/apache/nifi/pull/10031#issuecomment-3232910909

   > I also agree that using the CAS attribute would be beneficial. However, as 
I've observed, upsert and replace are not equivalent in terms of functionality. 
They're not simply interchangeable because replace doesn't provide insertion 
capability. It would likely be best to add a separate processor specifically to 
support the replace function with CAS.
   
   `insert()` + `replace()` could be used to achieve the same upsert 
functionality. It can be the scope of a follow-up jira because it is beyond the 
basic functionality. As far as I can see it now, I would not add a separate 
processor because naming could be problematic and there are also other options 
we may want to support later (e.g. insert only, update only) so creating new 
processors would be overkill.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to